From 26eecaaf05235d392607af74aad78a0491e109fd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 2 Jun 2021 13:28:05 +0200 Subject: [PATCH] python3Packages.boschshcpy: init at 0.2.18 --- .../python-modules/boschshcpy/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/boschshcpy/default.nix diff --git a/pkgs/development/python-modules/boschshcpy/default.nix b/pkgs/development/python-modules/boschshcpy/default.nix new file mode 100644 index 000000000000..0ac1cbc83c75 --- /dev/null +++ b/pkgs/development/python-modules/boschshcpy/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, cryptography +, fetchFromGitHub +, getmac +, pythonOlder +, requests +, zeroconf +}: + +buildPythonPackage rec { + pname = "boschshcpy"; + version = "0.2.18"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "tschamm"; + repo = pname; + rev = version; + sha256 = "08bfg3g0hifjaa17d4zmws2ikbijdm0b98svgj8jdcl8v0nlqx69"; + }; + + propagatedBuildInputs = [ + cryptography + getmac + requests + zeroconf + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "boschshcpy" ]; + + meta = with lib; { + description = "Python module to work with the Bosch Smart Home Controller API"; + homepage = "https://github.com/tschamm/boschshcpy"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6acd64cd19be..fa02008c33b8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1124,6 +1124,8 @@ in { enablePython = true; }); + boschshcpy = callPackage ../development/python-modules/boschshcpy { }; + boto3 = callPackage ../development/python-modules/boto3 { }; boto = callPackage ../development/python-modules/boto { };