11 buildPythonPackage rec {
14 format = "setuptools";
16 src = fetchFromGitHub {
17 owner = "snowballstem";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-bJVFeO7XP+aZ2nowQiuws5ziL/FmS1eaOllW6QxA70U=";
23 nativeBuildInputs = [ cython ];
27 # Allow building with system libstemmer
28 url = "https://github.com/snowballstem/pystemmer/commit/2f52b4b2ff113fe6c33cebe14ed4fd4388bb1742.patch";
29 hash = "sha256-JqR/DUmABgWaq23CNjoKSasL0mNhM2QuU986mouK6A8=";
33 url = "https://github.com/snowballstem/pystemmer/commit/b2826f19fe8ba65238b5f3b4cee7096a698f048e.patch";
34 hash = "sha256-VTZydjYaJJ/KoHD4KbON36kZnkuAyO51H0Oeg6VXTqg=";
39 export PYSTEMMER_SYSTEM_LIBSTEMMER="${lib.getDev libstemmer}/include"
42 env.NIX_CFLAGS_COMPILE = toString [
43 "-I${lib.getDev libstemmer}/include"
50 pythonImportsCheck = [
56 ${python.interpreter} runtests.py
61 description = "Snowball stemming algorithms, for information retrieval";
62 homepage = "http://snowball.tartarus.org/";
63 license = licenses.mit;
64 platforms = platforms.unix;