1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 poetry-core,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "python-mystrom";
13 version = "2.5.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "home-assistant-ecosystem";
18 repo = "python-mystrom";
19 tag = version;
20 hash = "sha256-G3LbaEF7e61woa1Y3J1OmR0krIfjk2t6nX13lil+4G0=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [
26 aiohttp
27 click
28 requests
29 ];
30
31 # no tests are present
32 doCheck = false;
33
34 pythonImportsCheck = [
35 "pymystrom.bulb"
36 "pymystrom.pir"
37 "pymystrom.switch"
38 ];
39
40 meta = with lib; {
41 description = "Python API client for interacting with myStrom devices";
42 longDescription = ''
43 Asynchronous Python API client for interacting with myStrom devices.
44 There is support for bulbs, motion sensors, plugs and buttons.
45 '';
46 homepage = "https://github.com/home-assistant-ecosystem/python-mystrom";
47 changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${src.tag}";
48 license = licenses.mit;
49 maintainers = with maintainers; [ fab ];
50 mainProgram = "mystrom";
51 };
52}