From 4a2d7d38ce6695b11aa2fdb1dae3c1d999aadbc9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 17 Nov 2021 09:53:03 +0100 Subject: [PATCH] python3Packages.niko-home-control: init at 0.2.2 --- .../niko-home-control/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/niko-home-control/default.nix diff --git a/pkgs/development/python-modules/niko-home-control/default.nix b/pkgs/development/python-modules/niko-home-control/default.nix new file mode 100644 index 000000000000..a7a696384dfb --- /dev/null +++ b/pkgs/development/python-modules/niko-home-control/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, nclib +, netaddr +, netifaces +, pythonOlder +}: + +buildPythonPackage rec { + pname = "niko-home-control"; + version = "0.2.2"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "NoUseFreak"; + repo = pname; + rev = version; + sha256 = "0ah02dfnnbk98grvd180fp9rak5gpi58xiql1yyzig5pcbjidvk3"; + }; + + propagatedBuildInputs = [ + nclib + netaddr + netifaces + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "nikohomecontrol" + ]; + + meta = with lib; { + description = "Python SDK for Niko Home Control"; + homepage = "https://github.com/NoUseFreak/niko-home-control"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7b7e9017fac..1fc605f012dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5094,6 +5094,8 @@ in { Nikola = callPackage ../development/python-modules/Nikola { }; + niko-home-control = callPackage ../development/python-modules/niko-home-control { }; + nilearn = callPackage ../development/python-modules/nilearn { }; niluclient = callPackage ../development/python-modules/niluclient { };