From 8e8725cef223e3653f6fe8087cc26841af24e406 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Feb 2023 22:45:35 +0100 Subject: [PATCH] python310Packages.pyfibaro: init at 0.6.8 --- .../python-modules/pyfibaro/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/pyfibaro/default.nix diff --git a/pkgs/development/python-modules/pyfibaro/default.nix b/pkgs/development/python-modules/pyfibaro/default.nix new file mode 100644 index 000000000000..759fe47221b7 --- /dev/null +++ b/pkgs/development/python-modules/pyfibaro/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, requests +, requests-mock +, setuptools +}: + +buildPythonPackage rec { + pname = "pyfibaro"; + version = "0.6.8"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "rappenze"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-2BDVCukm2y4rZyIWozRWJ+pY2bI2A7Vpitjd8jSJoWQ="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + requests + ]; + + nativeCheckInputs = [ + pytestCheckHook + requests-mock + ]; + + pythonImportsCheck = [ + "pyfibaro" + ]; + + meta = with lib; { + description = "Library to access FIBARO Home center"; + homepage = "https://github.com/rappenze/pyfibaro"; + changelog = "https://github.com/rappenze/pyfibaro/releases/tag/${version}"; + 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 28812e165401..4d2677b71551 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7243,6 +7243,8 @@ self: super: with self; { pycoolmasternet-async = callPackage ../development/python-modules/pycoolmasternet-async { }; + pyfibaro = callPackage ../development/python-modules/pyfibaro { }; + pyfireservicerota = callPackage ../development/python-modules/pyfireservicerota { }; pyflexit = callPackage ../development/python-modules/pyflexit { };