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.2.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-VFsTA/isBw0H7qXQhOX6K2p1QcVxO7q5TIzf8YivVgc=";
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 changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${version}";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}