depot/third_party/nixpkgs/pkgs/development/python-modules/execnet/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

66 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, isPyPy
, fetchPypi
, hatchling
, hatch-vcs
, gevent
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "execnet";
version = "2.0.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-zFm8RCN0L9ca0icSLrDdRNtR77PcQJW0WsmgjHcAlq8=";
};
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
'';
nativeBuildInputs = [
hatchling
hatch-vcs
];
# sometimes crashes with: OSError: [Errno 9] Bad file descriptor
doCheck = !isPyPy;
nativeCheckInputs = [
gevent
pytestCheckHook
];
disabledTests = [
# gets stuck
"test_popen_io"
# OSError: [Errno 9] Bad file descriptor
"test_stdouterrin_setnull"
];
pytestFlagsArray = [ "-vvv" ];
pythonImportsCheck = [
"execnet"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
changelog = "https://github.com/pytest-dev/execnet/blob/v${version}/CHANGELOG.rst";
description = "Distributed Python deployment and communication";
homepage = "https://execnet.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}