1{ lib, 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
11 checkInputs = [ pytest ];
12
13 # Wrong encoding
14 postPatch = ''
15 rm tests/test_reading.py
16 substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
17 '';
18 checkPhase = ''
19 # FIXME: test_minimize_dfa fails on python 3.6
20 py.test -k "not test_timelimit and not test_minimize_dfa"
21 '';
22
23 meta = with lib; {
24 description = "Fast, pure-Python full text indexing, search, and spell
25checking library.";
26 homepage = "https://bitbucket.org/mchaput/whoosh";
27 license = licenses.bsd2;
28 maintainers = with maintainers; [ ];
29 };
30}