94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
49 lines
931 B
Nix
49 lines
931 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, requests-mock
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyfibaro";
|
|
version = "0.7.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rappenze";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-fgFbwMqlQcF83k345kztw/SN5j447/TuJUPYmFPKiFY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|