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