python.pkgs.whoosh: use latest pytest

This commit is contained in:
Frederik Rietdijk 2019-06-16 19:13:53 +02:00 committed by Frederik Rietdijk
parent fd97819cd0
commit a09c62c1a3

View File

@ -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;
};
}