From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCHv2] gnu: Add python-ply and python2-ply. Date: Tue, 7 Jun 2016 08:27:10 +0200 Message-ID: <20160607082710.4c7d4ea0@scratchpost.org> References: <20160607022625.GA29348@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAATx-0001K9-FR for guix-devel@gnu.org; Tue, 07 Jun 2016 02:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAATu-0002c7-8N for guix-devel@gnu.org; Tue, 07 Jun 2016 02:27:21 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:38707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAATu-0002bg-2K for guix-devel@gnu.org; Tue, 07 Jun 2016 02:27:18 -0400 Received: from localhost (77.118.0.43.wireless.dyn.drei.com [77.118.0.43]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 5F5121CA0392 for ; Tue, 7 Jun 2016 08:27:15 +0200 (CEST) In-Reply-To: <20160607022625.GA29348@jasmine> 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: Add python-ply and python2-ply. * gnu/packages/python.scm (python-ply, python2-ply): 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 dfbf2cc..c78577b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9009,3 +9009,31 @@ focus on event-based network programming and multiprotocol integration.") (define-public python2-twisted (package-with-python2 python-twisted)) + +(define-public python-ply + (package + (name "python-ply") + (version "3.8") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/" + "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5" + "/ply-" version ".tar.gz")) + (sha256 + (base32 + "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7")))) + (build-system python-build-system) + (home-page "http://www.dabeaz.com/ply/") + (synopsis "Python Lex & Yacc") + (description "PLY is an @code{lex}/@code{yacc} implemented purely in Python. +It uses LR parsing and does extensive error checking.") + (license bsd-3) + (properties `((python2-variant . ,(delay python2-ply)))))) + +(define-public python2-ply + (package + (inherit (package-with-python2 + (strip-python2-variant python-ply))) + (native-inputs `(("python2-setuptools" ,python2-setuptools)))))