parent
093130f802
commit
e8880627e8
30
pkgs/development/python-modules/whoosh/default.nix
Normal file
30
pkgs/development/python-modules/whoosh/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -677,15 +677,15 @@ in {
|
|||||||
aniso8601 = buildPythonPackage rec {
|
aniso8601 = buildPythonPackage rec {
|
||||||
name = "aniso8601-${version}";
|
name = "aniso8601-${version}";
|
||||||
version = "1.2.0";
|
version = "1.2.0";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Parses ISO 8601 strings.";
|
description = "Parses ISO 8601 strings.";
|
||||||
homepage = "https://bitbucket.org/nielsenb/aniso8601";
|
homepage = "https://bitbucket.org/nielsenb/aniso8601";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ dateutil ];
|
propagatedBuildInputs = with self; [ dateutil ];
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/a/aniso8601/${name}.tar.gz";
|
url = "mirror://pypi/a/aniso8601/${name}.tar.gz";
|
||||||
sha256 = "502400f82574afa804cc915d83f15c67533d364dcd594f8a6b9d2053f3404dd4";
|
sha256 = "502400f82574afa804cc915d83f15c67533d364dcd594f8a6b9d2053f3404dd4";
|
||||||
@ -22087,7 +22087,7 @@ in {
|
|||||||
homepage = "https://github.com/goinnn/django-multiselectfield";
|
homepage = "https://github.com/goinnn/django-multiselectfield";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
reviewboard = buildPythonPackage rec {
|
reviewboard = buildPythonPackage rec {
|
||||||
name = "ReviewBoard-2.5.1.1";
|
name = "ReviewBoard-2.5.1.1";
|
||||||
|
|
||||||
@ -31070,32 +31070,7 @@ EOF
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
whoosh = buildPythonPackage rec {
|
whoosh = callPackage ../development/python-modules/whoosh { };
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
packet-python = buildPythonPackage rec {
|
packet-python = buildPythonPackage rec {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user