diff --git a/pkgs/development/python-modules/aioairctrl/default.nix b/pkgs/development/python-modules/aioairctrl/default.nix new file mode 100644 index 000000000000..4a1de2c77dfb --- /dev/null +++ b/pkgs/development/python-modules/aioairctrl/default.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + aiocoap, + pycryptodomex, +}: + +buildPythonPackage rec { + pname = "aioairctrl"; + version = "0.2.5"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-BPUV79S2A0F6vZA2pd3XNLpmRHTp6RSoNXPcI+OJRbk="; + }; + + build-system = [ + setuptools + wheel + ]; + + dependencies = [ + aiocoap + pycryptodomex + ]; + + pythonImportsCheck = [ "aioairctrl" ]; + + doCheck = false; # no tests + + meta = { + description = "Library for controlling Philips air purifiers (using encrypted CoAP)"; + homepage = "https://github.com/kongo09/aioairctrl"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ justinas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 19a640eaf5ef..359eb578f7b3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -153,6 +153,8 @@ self: super: with self; { aio-pika = callPackage ../development/python-modules/aio-pika { }; + aioairctrl = callPackage ../development/python-modules/aioairctrl { }; + aioacaia = callPackage ../development/python-modules/aioacaia { }; aioairzone = callPackage ../development/python-modules/aioairzone { };