Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 46 lines 953 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, isPyPy 5, fetchPypi 6, pytest 7, setuptools_scm 8, apipkg 9}: 10 11buildPythonPackage rec { 12 pname = "execnet"; 13 version = "1.7.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "3839f3c1e9270926e7b3d9b0a52a57be89c302a3826a2b19c8d6e6c3d2b506d2"; 18 }; 19 20 checkInputs = [ pytest ]; 21 nativeBuildInputs = [ setuptools_scm ]; 22 propagatedBuildInputs = [ apipkg ]; 23 24 # remove vbox tests 25 postPatch = '' 26 rm -v testing/test_termination.py 27 rm -v testing/test_channel.py 28 rm -v testing/test_xspec.py 29 rm -v testing/test_gateway.py 30 ${lib.optionalString isPyPy "rm -v testing/test_multi.py"} 31 ''; 32 33 checkPhase = '' 34 py.test testing 35 ''; 36 37 __darwinAllowLocalNetworking = true; 38 39 meta = with stdenv.lib; { 40 description = "Rapid multi-Python deployment"; 41 license = licenses.gpl2; 42 homepage = "https://execnet.readthedocs.io/"; 43 maintainers = with maintainers; [ nand0p ]; 44 }; 45 46}