Whoosh: fix python3.6

fixes #25745
This commit is contained in:
Jörg Thalheim 2017-05-12 20:36:37 +01:00
parent 093130f802
commit e8880627e8
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 35 additions and 30 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Whoosh";
version = "2.7.4";
src = fetchPypi {
inherit pname version;
sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw";
};
buildInputs = [ pytest ];
# Wrong encoding
postPatch = ''
rm tests/test_reading.py
'';
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.";
homepage = "http://bitbucket.org/mchaput/whoosh";
license = licenses.bsd2;
maintainers = with maintainers; [ nand0p ];
platforms = platforms.all;
};
}

View File

@ -31070,32 +31070,7 @@ EOF
};
};
whoosh = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "Whoosh";
version = "2.7.4";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/25/2b/6beed2107b148edc1321da0d489afc4617b9ed317ef7b72d4993cad9b684/${name}.tar.gz";
sha256 = "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw";
};
buildInputs = with self; [ pytest ];
# Wrong encoding
postPatch = ''
rm tests/test_reading.py
'';
checkPhase = ''
py.test -k "not test_timelimit"
'';
meta = {
description = "Fast, pure-Python full text indexing, search, and spell checking library.";
homepage = "http://bitbucket.org/mchaput/whoosh";
license = licenses.bsd2;
maintainers = with maintainers; [ nand0p ];
platforms = platforms.all;
};
};
whoosh = callPackage ../development/python-modules/whoosh { };
packet-python = buildPythonPackage rec {
name = "${pname}-${version}";