nixpkgs/pkgs/development/python-modules/whoosh/default.nix

31 lines
815 B
Nix
Raw Normal View History

2019-06-16 18:13:53 +01:00
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
2017-05-12 20:36:37 +01:00
buildPythonPackage rec {
pname = "Whoosh";
version = "2.7.4";
src = fetchPypi {
inherit pname version;
sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw";
};
2019-06-16 18:13:53 +01:00
checkInputs = [ pytest ];
2017-05-12 20:36:37 +01:00
# Wrong encoding
postPatch = ''
rm tests/test_reading.py
2019-06-16 18:13:53 +01:00
substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
2017-05-12 20:36:37 +01:00
'';
checkPhase = ''
# FIXME: test_minimize_dfa fails on python 3.6
py.test -k "not test_timelimit and not test_minimize_dfa"
'';
meta = with stdenv.lib; {
description = "Fast, pure-Python full text indexing, search, and spell
checking library.";
2018-06-27 21:12:57 +01:00
homepage = https://bitbucket.org/mchaput/whoosh;
2017-05-12 20:36:37 +01:00
license = licenses.bsd2;
maintainers = with maintainers; [ nand0p ];
};
}