depot/third_party/nixpkgs/pkgs/development/python-modules/pyfritzhome/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
989 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "pyfritzhome";
version = "0.6.11";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-fritzhome";
rev = "refs/tags/${version}";
hash = "sha256-YzrRkFa4J3NXdc4W5CHrHvqSVJ8yBGtaf6gRqmiY7gI=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
cryptography
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyfritzhome" ];
meta = with lib; {
description = "Python Library to access AVM FRITZ!Box homeautomation";
mainProgram = "fritzhome";
homepage = "https://github.com/hthiery/python-fritzhome";
changelog = "https://github.com/hthiery/python-fritzhome/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}