guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#48091] [PATCH v6 05/10] gnu: Add python-nltk@3.4.


From: Raghav Gururajan
Subject: [bug#48091] [PATCH v6 05/10] gnu: Add python-nltk@3.4.
Date: Sat, 1 May 2021 11:05:08 -0400

* gnu/packages/python-xyz.scm (python-nltk-3.4): New variable.
---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a17a2b11b1..912868f0e8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15075,6 +15075,25 @@ for classification, tokenization, stemming, tagging, 
parsing, and semantic
 reasoning, wrappers for natural language processing libraries.")
     (license license:asl2.0)))
 
+;; Versions >=3.5 breaks backward-compatibility,
+;; so we keep version 3.4.x around for a while.
+(define-public python-nltk-3.4
+  (package
+    (inherit python-nltk)
+    (name "python-nltk")
+    (version "3.4.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/nltk/nltk";)
+         (commit version)))
+       (file-name
+        (git-file-name name version))
+       (sha256
+        (base32 "1zh8ryzr203zq53nf1wb19gf3bd5y1nd7any56a7vxw4d7hq35nn"))))))
+
 (define-public python2-nltk
   (package-with-python2 python-nltk))
 
-- 
2.31.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]