1{ stdenv, buildPythonPackage, fetchPypi, pytest }: 2 3buildPythonPackage rec { 4 name = "${pname}-${version}"; 5 pname = "Whoosh"; 6 version = "2.7.4"; 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"; 10 }; 11 buildInputs = [ pytest ]; 12 13 # Wrong encoding 14 postPatch = '' 15 rm tests/test_reading.py 16 ''; 17 checkPhase = '' 18 # FIXME: test_minimize_dfa fails on python 3.6 19 py.test -k "not test_timelimit and not test_minimize_dfa" 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "Fast, pure-Python full text indexing, search, and spell 24checking library."; 25 homepage = "http://bitbucket.org/mchaput/whoosh"; 26 license = licenses.bsd2; 27 maintainers = with maintainers; [ nand0p ]; 28 platforms = platforms.all; 29 }; 30}