12 buildPythonPackage rec {
17 src = fetchFromGitHub {
18 owner = "snowballstem";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-ngPx95ybgJmndpNPBwCa3BCNsozRg+dlEw+nhlIwI58=";
26 # relax cython constraint
27 name = "pystemmer-relax-cython.patch";
28 url = "https://github.com/snowballstem/pystemmer/commit/d3d423dc877b4f49e0ab1776f7edaff37feb6799.patch";
29 hash = "sha256-9K6gy/cLFPfW82XYHVVPXUbQhf8XyB4NUi4YqNtyWcw=";
39 export PYSTEMMER_SYSTEM_LIBSTEMMER="${lib.getDev libstemmer}/include"
42 env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev libstemmer}/include" ];
44 NIX_CFLAGS_LINK = [ "-L${libstemmer}/lib" ];
46 pythonImportsCheck = [ "Stemmer" ];
50 ${python.interpreter} runtests.py
55 description = "Snowball stemming algorithms, for information retrieval";
56 downloadPage = "https://github.com/snowballstem/pystemmer";
57 homepage = "http://snowball.tartarus.org/";
58 license = with licenses; [
62 platforms = platforms.unix;