Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 783 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pytest_3 }: 2 3buildPythonPackage rec { 4 pname = "Whoosh"; 5 version = "2.7.4"; 6 src = fetchPypi { 7 inherit pname version; 8 sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"; 9 }; 10 11 checkInputs = [ pytest_3 ]; 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 = https://bitbucket.org/mchaput/whoosh; 26 license = licenses.bsd2; 27 maintainers = with maintainers; [ nand0p ]; 28 platforms = platforms.all; 29 }; 30}