2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, python, fetchPypi, buildPythonPackage, cython }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyStemmer";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "2.0.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "57d1e353b11c5f90566efec7037deaa0e411b1df1e4e5522ce97d7be34b49478";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cython src/Stemmer.pyx
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Snowball stemming algorithms, for information retrieval";
|
|
|
|
homepage = "http://snowball.tartarus.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|