nixpkgs-suyu/pkgs/development/python-modules/execnet/default.nix

47 lines
953 B
Nix
Raw Normal View History

{ stdenv
, lib
, buildPythonPackage
, isPyPy
, fetchPypi
2019-05-25 03:06:00 +02:00
, pytest
, setuptools_scm
, apipkg
}:
buildPythonPackage rec {
pname = "execnet";
2019-08-18 09:16:47 +02:00
version = "1.7.0";
src = fetchPypi {
inherit pname version;
2019-08-18 09:16:47 +02:00
sha256 = "3839f3c1e9270926e7b3d9b0a52a57be89c302a3826a2b19c8d6e6c3d2b506d2";
};
2019-05-25 03:06:00 +02:00
checkInputs = [ pytest ];
2019-01-05 10:31:16 +01:00
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"}
'';
checkPhase = ''
py.test testing
'';
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
description = "Rapid multi-Python deployment";
license = licenses.gpl2;
2019-05-25 03:06:00 +02:00
homepage = "https://execnet.readthedocs.io/";
maintainers = with maintainers; [ nand0p ];
};
}