blob: b058ee9bb1233177e2d6b88b4f29c02339894b61 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
requests,
setuptools,
zeroconf,
}:
buildPythonPackage rec {
pname = "netdisco";
version = "3.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-TbtZBILzd8zEYeAXQnB8y+jx0tGyhXivkdybf+vNy9I=";
};
build-system = [ setuptools ];
dependencies = [
requests
zeroconf
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Broken due to removed discoverables in https://github.com/home-assistant-libs/netdisco/commit/477db5a1dc93919a6c5bd61b4b1d3c80e75785bd
"tests/test_xboxone.py"
];
pythonImportsCheck = [
"netdisco"
"netdisco.discovery"
];
meta = {
description = "Python library to scan local network for services and devices";
homepage = "https://github.com/home-assistant/netdisco";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|