2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 20:37:32 +01:00
|
|
|
, buildPythonPackage
|
2019-02-12 02:24:55 +00:00
|
|
|
, isPyPy
|
2018-10-15 20:37:32 +01:00
|
|
|
, fetchPypi
|
2019-05-25 02:06:00 +01:00
|
|
|
, pytest
|
2018-10-15 20:37:32 +01:00
|
|
|
, setuptools_scm
|
|
|
|
, apipkg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "execnet";
|
2019-10-16 10:43:06 +01:00
|
|
|
version = "1.7.1";
|
2018-10-15 20:37:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:06 +01:00
|
|
|
sha256 = "cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50";
|
2018-10-15 20:37:32 +01:00
|
|
|
};
|
|
|
|
|
2019-05-25 02:06:00 +01:00
|
|
|
checkInputs = [ pytest ];
|
2019-01-05 09:31:16 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-10-15 20:37:32 +01: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 02:24:55 +00:00
|
|
|
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
|
2018-10-15 20:37:32 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test testing
|
|
|
|
'';
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 20:37:32 +01:00
|
|
|
description = "Rapid multi-Python deployment";
|
|
|
|
license = licenses.gpl2;
|
2019-05-25 02:06:00 +01:00
|
|
|
homepage = "https://execnet.readthedocs.io/";
|
2018-10-15 20:37:32 +01:00
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|