diff --git a/pkgs/development/python-modules/whoosh/default.nix b/pkgs/development/python-modules/whoosh/default.nix index 246b3c65fc5b..a7b34cf9b364 100644 --- a/pkgs/development/python-modules/whoosh/default.nix +++ b/pkgs/development/python-modules/whoosh/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchPypi, pytest_3 }: +{ stdenv, buildPythonPackage, fetchPypi, pytest }: buildPythonPackage rec { pname = "Whoosh"; @@ -8,11 +8,12 @@ buildPythonPackage rec { sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"; }; - checkInputs = [ pytest_3 ]; + checkInputs = [ pytest ]; # Wrong encoding postPatch = '' rm tests/test_reading.py + substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]" ''; checkPhase = '' # FIXME: test_minimize_dfa fails on python 3.6 @@ -25,6 +26,5 @@ checking library."; homepage = https://bitbucket.org/mchaput/whoosh; license = licenses.bsd2; maintainers = with maintainers; [ nand0p ]; - platforms = platforms.all; }; }