1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 requests,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pyfritzhome";
14 version = "0.6.11";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "hthiery";
21 repo = "python-fritzhome";
22 rev = "refs/tags/${version}";
23 hash = "sha256-YzrRkFa4J3NXdc4W5CHrHvqSVJ8yBGtaf6gRqmiY7gI=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 cryptography
30 requests
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "pyfritzhome" ];
36
37 meta = with lib; {
38 description = "Python Library to access AVM FRITZ!Box homeautomation";
39 mainProgram = "fritzhome";
40 homepage = "https://github.com/hthiery/python-fritzhome";
41 changelog = "https://github.com/hthiery/python-fritzhome/releases/tag/${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ hexa ];
44 };
45}