nixpkgs/pkgs/development/python-modules/execnet/default.nix
2019-06-26 13:22:30 +02:00

47 lines
941 B
Nix

{ stdenv
, lib
, buildPythonPackage
, isPyPy
, fetchPypi
, pytest
, setuptools_scm
, apipkg
}:
buildPythonPackage rec {
pname = "execnet";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "1lvj8z6fikpb5r4rq9n53x3lmsm3vlbr58ikz28x85kly633fakm";
};
checkInputs = [ pytest ];
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ apipkg ];
# remove vbox tests
postPatch = ''
rm -v testing/test_termination.py
rm -v testing/test_channel.py
rm -v testing/test_xspec.py
rm -v testing/test_gateway.py
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
'';
checkPhase = ''
py.test testing
'';
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
description = "Rapid multi-Python deployment";
license = licenses.gpl2;
homepage = "https://execnet.readthedocs.io/";
maintainers = with maintainers; [ nand0p ];
};
}