Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyfritzhome / default.nix
blob4118e780d3d0bedfbb9a61787e92e287fca8a4cc
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "pyfritzhome";
13   version = "0.6.11";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "hthiery";
20     repo = "python-fritzhome";
21     rev = "refs/tags/${version}";
22     hash = "sha256-YzrRkFa4J3NXdc4W5CHrHvqSVJ8yBGtaf6gRqmiY7gI=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     cryptography
31     requests
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [
39     "pyfritzhome"
40   ];
42   meta = with lib; {
43     description = "Python Library to access AVM FRITZ!Box homeautomation";
44     mainProgram = "fritzhome";
45     homepage = "https://github.com/hthiery/python-fritzhome";
46     changelog = "https://github.com/hthiery/python-fritzhome/releases/tag/${version}";
47     license = licenses.mit;
48     maintainers = with maintainers; [ hexa ];
49   };