From d9de25761781f03b9ddf8444e889ac842100af13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 22 Jun 2021 23:45:51 +0200 Subject: [PATCH] python3Packages.pyrsistent: use pytestCheckHook Also use default version of hypothesis and introduce pythonImportsCheck. --- .../python-modules/pyrsistent/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyrsistent/default.nix b/pkgs/development/python-modules/pyrsistent/default.nix index 79f6666474e6..8a6eb47a46c7 100644 --- a/pkgs/development/python-modules/pyrsistent/default.nix +++ b/pkgs/development/python-modules/pyrsistent/default.nix @@ -3,9 +3,8 @@ , fetchPypi , isPy27 , six -, pytest_4 -, hypothesis_4 -, pytestrunner +, pytestCheckHook +, hypothesis }: buildPythonPackage rec { @@ -21,12 +20,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ six ]; - checkInputs = [ pytestrunner pytest_4 hypothesis_4 ]; + checkInputs = [ pytestCheckHook hypothesis ]; postPatch = '' - substituteInPlace setup.py --replace 'pytest<5' 'pytest' + substituteInPlace setup.py \ + --replace 'pytest<5' 'pytest' \ + --replace 'hypothesis<5' 'hypothesis' ''; + pythonImportsCheck = [ "pyrsistent" ]; + meta = with lib; { homepage = "https://github.com/tobgu/pyrsistent/"; description = "Persistent/Functional/Immutable data structures";