From b68437e15698999718efc3fd2934728db26a378c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 17 Feb 2021 10:20:40 +0100 Subject: [PATCH] python3Packages.execnet: switch to pytestCheckHook --- .../python-modules/execnet/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/execnet/default.nix b/pkgs/development/python-modules/execnet/default.nix index ec4bcca9f86..e45df492ed4 100644 --- a/pkgs/development/python-modules/execnet/default.nix +++ b/pkgs/development/python-modules/execnet/default.nix @@ -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 ]; };