1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

python3Packages.python-mystrom: init at 2.0.0

This commit is contained in:
Fabian Affolter 2021-01-01 18:54:43 +01:00
parent d4a76b1f5f
commit 3b4a2ea585
3 changed files with 48 additions and 1 deletions

View file

@ -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 ];
};
}

View file

@ -522,7 +522,7 @@
"mycroft" = ps: with ps; [ ]; # missing inputs: mycroftapi
"myq" = ps: with ps; [ ]; # missing inputs: pymyq
"mysensors" = ps: with ps; [ aiohttp-cors paho-mqtt ]; # missing inputs: pymysensors
"mystrom" = ps: with ps; [ aiohttp-cors ]; # missing inputs: python-mystrom
"mystrom" = ps: with ps; [ aiohttp-cors python-mystrom ];
"mythicbeastsdns" = ps: with ps; [ ]; # missing inputs: mbddns
"n26" = ps: with ps; [ ]; # missing inputs: n26
"nad" = ps: with ps; [ ]; # missing inputs: nad_receiver

View file

@ -6025,6 +6025,8 @@ in {
python-multipart = callPackage ../development/python-modules/python-multipart { };
python-mystrom = callPackage ../development/python-modules/python-mystrom { };
python-nest = callPackage ../development/python-modules/python-nest { };
pythonnet = callPackage