Merge pull request #108144 from fabaff/python-mystrom

python3Packages.python-mystrom: init at 2.0.0
This commit is contained in:
Pavol Rusnak 2021-01-02 17:04:53 +01:00 committed by GitHub
commit 4965fc7341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -6049,6 +6049,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