2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
28 lines
634 B
Nix
28 lines
634 B
Nix
{ stdenv, python, fetchPypi, buildPythonPackage, cython }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyStemmer";
|
|
version = "2.0.0.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "57d1e353b11c5f90566efec7037deaa0e411b1df1e4e5522ce97d7be34b49478";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|