2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Whoosh";
|
|
|
|
version = "2.7.4";
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
py.test -k "not test_timelimit and not test_minimize_dfa"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast, pure-Python full text indexing, search, and spell
|
|
|
|
checking library.";
|
|
|
|
homepage = "https://bitbucket.org/mchaput/whoosh";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|