depot/third_party/nixpkgs/pkgs/development/python-modules/pyfibaro/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
910 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "pyfibaro";
version = "0.7.8";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "rappenze";
repo = "pyfibaro";
rev = "refs/tags/${version}";
hash = "sha256-gid+qbl4RgT47zC5i1Usw2Zco+jb2LJeeMkKvni/aDM=";
};
build-system = [ setuptools ];
dependencies = [ 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 ];
};
}