[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 1/3] gnu: Add python-snowballstemmer.
From: |
Danny Milosavljevic |
Subject: |
[PATCH v4 1/3] gnu: Add python-snowballstemmer. |
Date: |
Wed, 4 Jan 2017 21:43:12 +0100 |
* gnu/packages/python.scm (python-snowballstemmer,
python2-snowballstemmer): New variables.
---
gnu/packages/python.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 04cd3fa90..6589c59e3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11695,6 +11695,31 @@ 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 word stemmer algorithms generated
+from Snowball algorithms. It includes the 15 original ones plus the Poerter
+English stemmer.")
+ (license license:bsd-3)
+ (properties `((python2-variant . ,(delay python2-snowballstemmer))))))
+
+(define-public python2-snowballstemmer
+ (package-with-python2 (strip-python2-variant python-snowballstemmer)))
+
(define-public python-betamax
(package
(name "python-betamax")