* gnu/packages/python.scm (python-snowballstemmer, python2-snowballstemmer): New variables. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a9fd8eb..20e01dd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11017,3 +11017,31 @@ with an associated set of resolve methods that know how to fetch data.") provide extendible implementations of common aspects of a cloud so that you can focus on building massively scalable web applications.") (license license:expat))) + +(define-public python-snowballstemmer + (package + (name "python-snowballstemmer") + (version "1.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "snowballstemmer" version)) + (sha256 + (base32 + "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi")))) + (build-system python-build-system) + (arguments + `(;; No tests exist + #:tests? #f)) + (home-page + "https://github.com/shibukawa/snowball_py") + (synopsis + "16 stemmer algorithms (15 + Poerter English stemmer)") + (description + "This package provides 16 stemmer algorithms (15 + Poerter English +stemmer) generated from Snowball algorithms.") + (license license:bsd-3) + (properties `((python2-variant . ,(delay python2-snowballstemmer)))))) + +(define-public python2-snowballstemmer + (package-with-python2 (strip-python2-variant python-snowballstemmer)))