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