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 bfbfb1504357..f78b6c405f1c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7239,6 +7239,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 { };