Merge pull request #217369 from fabaff/pyfibaro

python310Packages.pyfibaro: init at 0.6.8
This commit is contained in:
Fabian Affolter 2023-02-22 00:27:08 +01:00 committed by GitHub
commit 515aa2e1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };