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
|
2022-12-29 15:29:22 +00:00
|
|
|
, fetchpatch
|
2021-02-17 09:20:40 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
2018-10-15 19:37:32 +00:00
|
|
|
, apipkg
|
2022-12-29 15:29:22 +00:00
|
|
|
, py
|
2018-10-15 19:37:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "execnet";
|
2021-06-18 21:47:15 +00:00
|
|
|
version = "1.9.0";
|
2022-12-29 15:29:22 +00:00
|
|
|
format = "setuptools";
|
2018-10-15 19:37:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 21:47:15 +00:00
|
|
|
sha256 = "8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5";
|
2018-10-15 19:37:32 +00:00
|
|
|
};
|
|
|
|
|
2022-12-29 15:29:22 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# Fix test compat with pytest 7.2.0
|
|
|
|
url = "https://github.com/pytest-dev/execnet/commit/c0459b92bc4a42b08281e69b8802d24c5d3415d4.patch";
|
|
|
|
hash = "sha256-AT2qr7AUpFXcPps525U63A7ARcEVmf0HM6ya73Z2vi0=";
|
|
|
|
})
|
|
|
|
];
|
2018-10-15 19:37:32 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
'';
|
|
|
|
|
2022-12-29 15:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
apipkg
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-29 15:29:22 +00:00
|
|
|
py
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"execnet"
|
|
|
|
];
|
2018-10-15 19:37:32 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-12-29 15:29:22 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/execnet/blob/v${version}/CHANGELOG.rst";
|
2021-02-17 09:20:40 +00:00
|
|
|
description = "Distributed Python deployment and communication";
|
2019-05-25 01:06:00 +00:00
|
|
|
homepage = "https://execnet.readthedocs.io/";
|
2022-12-29 15:29:22 +00:00
|
|
|
license = licenses.mit;
|
2021-05-14 14:00:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-15 19:37:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|