blob: 8516ce84ed6978a5e4d8a95c52a0706f20d120d1 (
plain)
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
|
{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "pyfritzhome";
version = "0.6.18";
pyproject = true;
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-fritzhome";
tag = version;
hash = "sha256-tWWX3rUmESWOkiWU6Y8KIinbPUhBdolSHZ+5Rv2dnuY=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyfritzhome" ];
meta = {
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
|