From 96a0fbb587e614ffed924d0c5d4b4cca1b80efbd Mon Sep 17 00:00:00 2001 From: Fernando J Pando Date: Wed, 31 Aug 2016 13:59:31 -0400 Subject: pythonPackages.whoosh: init at 2.7.4 Tested on Linux - python 2.7 - python 3.5 --- pkgs/top-level/python-packages.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'pkgs/top-level') diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9defa610f424..773d3b05446a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -29824,4 +29824,32 @@ in modules // { sha256 = "1lqa8dy1sr1bxi00ri79lmbxvzxi84ki8p46zynyrgcqhwicxq2n"; }; }; + + 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 + ''; + + 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; + }; + }; + } -- cgit 1.4.1