blob: 4118e780d3d0bedfbb9a61787e92e287fca8a4cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ 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 ];
};
}
|