Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 31 lines 608 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, pbr 6, pytest 7, isPy3k 8}: 9 10buildPythonPackage rec { 11 pname = "ssdp"; 12 version = "1.0.1"; 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0yhjqs9jyvwmba8fi72xfi9k8pxy11wkz4iywayrg71ka3la49bk"; 18 }; 19 20 buildInputs = [ pbr ]; 21 checkInputs = [ pytest ]; 22 23 # test suite uses new async primitives 24 doCheck = !isPy27; 25 26 meta = with stdenv.lib; { 27 homepage = https://github.com/codingjoe/ssdp; 28 description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)."; 29 license = licenses.mit; 30 }; 31}