Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 711 B view raw
1{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "netdisco"; 5 version = "2.8.3"; 6 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "sha256-4WS9PiErB6U7QuejTvbrOmnHetbE5S4zaUyhLCbyihM="; 12 }; 13 14 propagatedBuildInputs = [ requests zeroconf ]; 15 16 checkInputs = [ pytestCheckHook ]; 17 18 pythonImportsCheck = [ 19 "netdisco" 20 "netdisco.discovery" 21 ]; 22 23 meta = with lib; { 24 description = "Python library to scan local network for services and devices"; 25 homepage = "https://github.com/home-assistant/netdisco"; 26 license = licenses.asl20; 27 maintainers = with maintainers; [ dotlambda ]; 28 }; 29}