depot/third_party/nixpkgs/pkgs/development/python-modules/execnet/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

43 lines
953 B
Nix

{ lib
, buildPythonPackage
, isPyPy
, fetchPypi
, pytestCheckHook
, setuptools-scm
, apipkg
}:
buildPythonPackage rec {
pname = "execnet";
version = "1.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-tzxVZeUX8kti3qilzqwXjGYcQwnTqgw+QghWwHLEEbQ=";
};
checkInputs = [ pytestCheckHook ];
nativeBuildInputs = [ setuptools-scm ];
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
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
'';
pythonImportsCheck = [ "execnet" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Distributed Python deployment and communication";
license = licenses.mit;
homepage = "https://execnet.readthedocs.io/";
maintainers = with maintainers; [ nand0p ];
};
}