1{ lib
2, buildPythonPackage
3, fetchPypi
4, aiohttp
5, click
6, requests
7, setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "python-mystrom";
12 version = "2.0.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "050dkx29wrmdd8z7pmyk36k2ihpapqi4qmyb70bm6xl5l4jh4k7j";
17 };
18
19 propagatedBuildInputs = [
20 aiohttp
21 click
22 requests
23 setuptools
24 ];
25
26 # no tests are present
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "pymystrom.bulb"
31 "pymystrom.pir"
32 "pymystrom.switch"
33 ];
34
35 meta = with lib; {
36 description = "Python API client for interacting with myStrom devices";
37 longDescription = ''
38 Asynchronous Python API client for interacting with myStrom devices.
39 There is support for bulbs, motion sensors, plugs and buttons.
40 '';
41 homepage = "https://github.com/home-assistant-ecosystem/python-mystrom";
42 license = with licenses; [ mit ];
43 maintainers = with maintainers; [ fab ];
44 };
45}