python3Packages.execnet: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-02-17 10:20:40 +01:00 committed by Frederik Rietdijk
parent 587c074924
commit b68437e156

View File

@ -2,8 +2,8 @@
, buildPythonPackage
, isPyPy
, fetchPypi
, pytest
, setuptools_scm
, pytestCheckHook
, setuptools-scm
, apipkg
}:
@ -16,8 +16,8 @@ buildPythonPackage rec {
sha256 = "cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50";
};
checkInputs = [ pytest ];
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [ pytestCheckHook ];
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ apipkg ];
# remove vbox tests
@ -29,15 +29,13 @@ buildPythonPackage rec {
${lib.optionalString isPyPy "rm -v testing/test_multi.py"}
'';
checkPhase = ''
py.test testing
'';
pythonImportsCheck = [ "execnet" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Rapid multi-Python deployment";
license = licenses.gpl2;
description = "Distributed Python deployment and communication";
license = licenses.mit;
homepage = "https://execnet.readthedocs.io/";
maintainers = with maintainers; [ nand0p ];
};