From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 04/11] gnu: Add python-nltk. Date: Mon, 22 Aug 2016 15:20:11 +0200 Message-ID: <20160822132018.19828-4-david@craven.ch> References: <20160822132018.19828-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9f-0007xF-Nk for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbp9Y-000577-P0 for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:42 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:60480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbp9X-00056F-F8 for guix-devel@gnu.org; Mon, 22 Aug 2016 09:20:36 -0400 In-Reply-To: <20160822132018.19828-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-nltk): New variable. (python2-nltk): New variable. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c184fd3..c1eaf12 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10012,3 +10012,27 @@ binary or text.") (inputs `(("python2-enum34" ,python2-enum34) ,@(package-inputs base)))))) + +(define-public python-nltk + (package + (name "python-nltk") + (version "3.2.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "nltk" version)) + (sha256 + (base32 + "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym")))) + (build-system python-build-system) + (home-page "http://nltk.org/") + (synopsis "Natural Language Toolkit") + (description "Natural Language Toolkit") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-nltk)))))) + +(define-public python2-nltk + (let ((base (package-with-python2 (strip-python2-variant python-nltk)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- 2.9.0