python3Packages.pyrsistent: use pytestCheckHook
Also use default version of hypothesis and introduce pythonImportsCheck.
This commit is contained in:
parent
b51d8262d5
commit
d9de257617
1 changed files with 8 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue