Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.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.1"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50"; 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}