diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-01 18:54:43 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-01 18:54:43 +0100 |
commit | 3b4a2ea585be5ced1fa371bdfc4b37e532eb40c7 (patch) | |
tree | 1613cf8aa0395e4f5fdea8d20c9631ceef4d4eb1 /pkgs/development/python-modules/python-mystrom | |
parent | d4a76b1f5fb48896a3348c394196e7552e3eb9ef (diff) |
python3Packages.python-mystrom: init at 2.0.0
Diffstat (limited to 'pkgs/development/python-modules/python-mystrom')
-rw-r--r-- | pkgs/development/python-modules/python-mystrom/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-mystrom/default.nix b/pkgs/development/python-modules/python-mystrom/default.nix new file mode 100644 index 0000000000000..ccda98b2eb1a4 --- /dev/null +++ b/pkgs/development/python-modules/python-mystrom/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, aiohttp +, click +, requests +, setuptools +}: + +buildPythonPackage rec { + pname = "python-mystrom"; + version = "2.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "050dkx29wrmdd8z7pmyk36k2ihpapqi4qmyb70bm6xl5l4jh4k7j"; + }; + + propagatedBuildInputs = [ + aiohttp + click + requests + setuptools + ]; + + # no tests are present + doCheck = false; + + pythonImportsCheck = [ + "pymystrom.bulb" + "pymystrom.pir" + "pymystrom.switch" + ]; + + meta = with lib; { + description = "Python API client for interacting with myStrom devices"; + longDescription = '' + Asynchronous Python API client for interacting with myStrom devices. + There is support for bulbs, motion sensors, plugs and buttons. + ''; + homepage = "https://github.com/home-assistant-ecosystem/python-mystrom"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |