1{
2 lib,
3 buildPythonPackage,
4 isPy3k,
5 fetchPypi,
6 requests,
7 zeroconf,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "netdisco";
13 version = "3.0.0";
14 format = "setuptools";
15
16 disabled = !isPy3k;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-TbtZBILzd8zEYeAXQnB8y+jx0tGyhXivkdybf+vNy9I=";
21 };
22
23 propagatedBuildInputs = [
24 requests
25 zeroconf
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 disabledTestPaths = [
31 # Broken due to removed discoverables in https://github.com/home-assistant-libs/netdisco/commit/477db5a1dc93919a6c5bd61b4b1d3c80e75785bd
32 "tests/test_xboxone.py"
33 ];
34
35 pythonImportsCheck = [
36 "netdisco"
37 "netdisco.discovery"
38 ];
39
40 meta = with lib; {
41 description = "Python library to scan local network for services and devices";
42 homepage = "https://github.com/home-assistant/netdisco";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ dotlambda ];
45 };
46}