2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, isPyPy
|
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
, hatchling
|
|
|
|
, hatch-vcs
|
|
|
|
, gevent
|
2021-03-09 03:18:52 +00:00
|
|
|
, 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";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
# 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
|
|
|
'';
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
nativeBuildInputs = [
|
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" ];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"execnet"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/execnet/blob/v${version}/CHANGELOG.rst";
|
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/";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = licenses.mit;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|