1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pystemmer/default.nix

29 lines
634 B
Nix
Raw Normal View History

{ stdenv, python, fetchPypi, buildPythonPackage, cython }:
buildPythonPackage rec {
pname = "PyStemmer";
2020-06-06 07:47:26 +01:00
version = "2.0.0.1";
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:26 +01:00
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;
};
}