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