2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-15 19:37:32 +00:00
|
|
|
, buildPythonPackage
|
2019-02-12 02:24:55 +00:00
|
|
|
, isPyPy
|
2018-10-15 19:37:32 +00:00
|
|
|
, fetchPypi
|
2021-02-17 09:20:40 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
2018-10-15 19:37:32 +00:00
|
|
|
, apipkg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "execnet";
|
2021-02-17 09:16:38 +00:00
|
|
|
version = "1.8.0";
|
2018-10-15 19:37:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-17 09:16:38 +00:00
|
|
|
sha256 = "sha256-tzxVZeUX8kti3qilzqwXjGYcQwnTqgw+QghWwHLEEbQ=";
|
2018-10-15 19:37:32 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 09:20:40 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2018-10-15 19:37:32 +00: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 19:37:32 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-17 09:20:40 +00:00
|
|
|
pythonImportsCheck = [ "execnet" ];
|
2018-10-15 19:37:32 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-17 09:20:40 +00:00
|
|
|
description = "Distributed Python deployment and communication";
|
|
|
|
license = licenses.mit;
|
2019-05-25 01:06:00 +00:00
|
|
|
homepage = "https://execnet.readthedocs.io/";
|
2018-10-15 19:37:32 +00:00
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|