2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPyPy,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
hatch-vcs,
|
|
|
|
gevent,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "execnet";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.1.1";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-UYm1LGEhwk/q4ogWarQbMlScfiNIZSc2VAuebn1OcuM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
postPatch =
|
|
|
|
''
|
|
|
|
# remove vbox tests
|
|
|
|
rm testing/test_termination.py
|
|
|
|
rm testing/test_channel.py
|
|
|
|
rm testing/test_xspec.py
|
|
|
|
rm testing/test_gateway.py
|
|
|
|
''
|
|
|
|
+ lib.optionalString isPyPy ''
|
|
|
|
rm testing/test_multi.py
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [
|
2023-11-16 04:20:00 +00:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# sometimes crashes with: OSError: [Errno 9] Bad file descriptor
|
|
|
|
doCheck = !isPyPy;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
gevent
|
2023-01-20 10:41:00 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# gets stuck
|
|
|
|
"test_popen_io"
|
|
|
|
# OSError: [Errno 9] Bad file descriptor
|
|
|
|
"test_stdouterrin_setnull"
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "-vvv" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "execnet" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2021-03-09 03:18:52 +00:00
|
|
|
description = "Distributed Python deployment and communication";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://execnet.readthedocs.io/";
|
2024-06-20 14:57:18 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/execnet/blob/v${version}/CHANGELOG.rst";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|