%global _empty_manifest_terminate_build 0 Name: python-py-melissa-climate Version: 2.1.4 Release: 1 Summary: Api wrapper for Melissa Climate http://seemelissa.com License: MIT license URL: https://github.com/kennedyshead/py-melissa-climate Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a6/b9/38d59252c9fab73630d9e929a9e88536f913056dff88432d00279df8393b/py-melissa-climate-2.1.4.tar.gz BuildArch: noarch Requires: python3-requests Requires: python3-requests-futures Requires: python3-aiohttp Requires: python3-check-manifest Requires: python3-coverage Requires: python3-mock %description This is an unofficial wrapper for melissa web api: http://seemelissa.com/en `Coffee fundraiser `__ Installing ~~~~~~~~~~ pip install py-melissa-climate python >>> from melissa import Melissa >>> m = Melissa(username="email_adress", password="password") >>> m.fetch_devices() {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}} %package -n python3-py-melissa-climate Summary: Api wrapper for Melissa Climate http://seemelissa.com Provides: python-py-melissa-climate BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-py-melissa-climate This is an unofficial wrapper for melissa web api: http://seemelissa.com/en `Coffee fundraiser `__ Installing ~~~~~~~~~~ pip install py-melissa-climate python >>> from melissa import Melissa >>> m = Melissa(username="email_adress", password="password") >>> m.fetch_devices() {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}} %package help Summary: Development documents and examples for py-melissa-climate Provides: python3-py-melissa-climate-doc %description help This is an unofficial wrapper for melissa web api: http://seemelissa.com/en `Coffee fundraiser `__ Installing ~~~~~~~~~~ pip install py-melissa-climate python >>> from melissa import Melissa >>> m = Melissa(username="email_adress", password="password") >>> m.fetch_devices() {'********': {'user_id': 1, 'serial_number': '********', 'mac': '********', 'firmware_version': 'V1SHTHF', 'name': 'Melissa ********', 'type': 'melissa', 'room_id': None, 'created': '2016-07-06 18:59:46', 'id': 1, 'online': True, 'brand_id': 1, 'controller_log': {'temp': 25.4, 'created': '2018-01-06T10:12:16.249Z', 'raw_temperature': 28188, 'humidity': 18.5, 'raw_humidity': 12862}, '_links': {'self': {'href': '/v1/controllers'}}}} %prep %autosetup -n py-melissa-climate-2.1.4 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-py-melissa-climate -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 10 2023 Python_Bot - 2.1.4-1 - Package Spec generated