2018-10-15 21:37:32 +02:00
|
|
|
{ stdenv
|
2019-02-12 03:24:55 +01:00
|
|
|
, lib
|
2018-10-15 21:37:32 +02:00
|
|
|
, buildPythonPackage
|
2019-02-12 03:24:55 +01:00
|
|
|
, isPyPy
|
2018-10-15 21:37:32 +02:00
|
|
|
, fetchPypi
|
2019-02-14 11:07:19 +01:00
|
|
|
, pytest_3
|
2018-10-15 21:37:32 +02:00
|
|
|
, setuptools_scm
|
|
|
|
, apipkg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "execnet";
|
2018-11-04 11:34:58 +01:00
|
|
|
version = "1.5.0";
|
2018-10-15 21:37:32 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 11:34:58 +01:00
|
|
|
sha256 = "a7a84d5fa07a089186a329528f127c9d73b9de57f1a1131b82bb5320ee651f6a";
|
2018-10-15 21:37:32 +02:00
|
|
|
};
|
|
|
|
|
2019-02-12 03:24:55 +01:00
|
|
|
checkInputs = [ pytest_3 ];
|
2019-01-05 10:31:16 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-10-15 21:37:32 +02:00
|
|
|
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
|
2019-02-12 03:24:55 +01:00
|
|
|
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
|
2018-10-15 21:37:32 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test testing
|
|
|
|
'';
|
|
|
|
|
2019-02-14 11:07:19 +01:00
|
|
|
# not yet compatible with pytest 4
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-15 21:37:32 +02:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Rapid multi-Python deployment";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "http://codespeak.net/execnet";
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|