2018-07-08 10:48:49 -07:00
|
|
|
{ stdenv, python, fetchPypi, buildPythonPackage, cython }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyStemmer";
|
2020-06-05 23:47:26 -07:00
|
|
|
version = "2.0.0.1";
|
2018-07-08 10:48:49 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:26 -07:00
|
|
|
sha256 = "57d1e353b11c5f90566efec7037deaa0e411b1df1e4e5522ce97d7be34b49478";
|
2018-07-08 10:48:49 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cython src/Stemmer.pyx
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Snowball stemming algorithms, for information retrieval";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://snowball.tartarus.org/";
|
2018-07-08 10:48:49 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|