Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 37 lines 809 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, ifaddr 5, typing 6, isPy27 7, pythonOlder 8, python 9}: 10 11buildPythonPackage rec { 12 pname = "zeroconf"; 13 version = "0.24.4"; 14 disabled = isPy27; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "f66d38f16026097572939ab78b1f46a97f556bca415491eb0fd094d0b5827dfe"; 19 }; 20 21 propagatedBuildInputs = [ ifaddr ] 22 ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ]; 23 24 # tests not included with pypi release 25 doCheck = false; 26 27 checkPhase = '' 28 ${python.interpreter} test_zeroconf.py 29 ''; 30 31 meta = with stdenv.lib; { 32 description = "A pure python implementation of multicast DNS service discovery"; 33 homepage = https://github.com/jstasiak/python-zeroconf; 34 license = licenses.lgpl21; 35 maintainers = with maintainers; [ abbradar ]; 36 }; 37}