at master 965 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 requests, 7 setuptools, 8 zeroconf, 9}: 10 11buildPythonPackage rec { 12 pname = "netdisco"; 13 version = "3.0.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-TbtZBILzd8zEYeAXQnB8y+jx0tGyhXivkdybf+vNy9I="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ 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}