blob: 86d4f0cf653fcb85321ad8bf188215559f85e6e8 (
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
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
requests,
segno,
setuptools,
}:
buildPythonPackage rec {
pname = "fritzconnection";
version = "1.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kbr";
repo = "fritzconnection";
tag = version;
hash = "sha256-ulY+nh9CSnxrktTlFSXAWJALkS4GwP/3dRIG07jQCWs=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
optional-dependencies = {
qr = [ segno ];
};
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export HOME=$TEMP
'';
pythonImportsCheck = [ "fritzconnection" ];
disabledTestPaths = [
# Functional tests require network access
"fritzconnection/tests/test_functional.py"
];
meta = {
description = "Python module to communicate with the AVM Fritz!Box";
homepage = "https://github.com/kbr/fritzconnection";
changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/version_history.html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
dotlambda
valodim
];
};
}
|