From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Gradl Subject: Re: [Patch] Add python-rope Date: Fri, 20 May 2016 09:32:35 -0500 Message-ID: <87posgssu4.fsf@openmailbox.org> References: <87y474st15.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3lTt-0006tM-2E for guix-devel@gnu.org; Fri, 20 May 2016 10:32:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3lTm-0000P4-P4 for guix-devel@gnu.org; Fri, 20 May 2016 10:32:47 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:33296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3lTm-0000P0-Eb for guix-devel@gnu.org; Fri, 20 May 2016 10:32:42 -0400 Received: from localhost (cpe-72-182-41-182.austin.res.rr.com [72.182.41.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: lgradl@openmailbox.org) by mail2.openmailbox.org (Postfix) with ESMTPSA id B45381048A5 for ; Fri, 20 May 2016 16:32:36 +0200 (CEST) In-Reply-To: <87y474st15.fsf@openmailbox.org> (Lukas Gradl's message of "Fri, 20 May 2016 09:28:22 -0500") 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 --=-=-= Content-Type: text/plain Lukas Gradl writes: > Hello, > > This patch adds the Rope refactoring library for python. > I am only interested in this package as a dependency of elpy. > > There is no particular reason why the old (0.10.2) would be needed, > AFAIK. > > There are some tests that fail on the python-3 version. According to > this (https://groups.google.com/forum/#!topic/rope-dev/rmimG01CHUk), > upstream seems to have no particular interest in fixing that at the > moment. > > > Thank you in advance for considering this! > > Best, > Lukas > > Being new to GNUS I accidently sent this email when trying to attach the patch. Sorry about that! Here it is: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-python-Add-python-rope.patch Content-Transfer-Encoding: quoted-printable >From 3779adbcf435d62f49c74675af1a7085bd0cdbfd Mon Sep 17 00:00:00 2001 From: Lukas Gradl Date: Fri, 20 May 2016 09:13:30 -0500 Subject: [PATCH] gnu: python: Add python-rope. * gnu/packages/python.scm (python-rope): New variable. (python2-rope): New variable. (python2-rope-old): New variable. --- gnu/packages/python.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 37c8594..15fed58 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -18,6 +18,7 @@ ;;; Copyright =C2=A9 2015 Kyle Meyer ;;; Copyright =C2=A9 2015, 2016 Chris Marusich ;;; Copyright =C2=A9 2016 Danny Milosavljevic +;;; Copyright =C2=A9 2016 Lukas Gradl ;;; ;;; This file is part of GNU Guix. ;;; @@ -8760,3 +8761,70 @@ respectively.") (description (string-append "This is an experimental compiler for a subs= et of Python. It generates C++ code and a Makefile.")) (license (list gpl3 bsd-3 license:expat)))) + + +(define-public python2-rope-old + (package + (name "python2-rope") + (version "0.10.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rope" version)) + (sha256 + (base32 + "0rdlvp8h74qs49wz1hx6qy8mgp2ddwlfs7z13h9139ynq04a3z7z")))) + (arguments + `(#:python ,python-2)) + (build-system python-build-system) + (native-inputs + `(("python2-unittest2" ,python2-unittest2) + ("python2-setuptools" ,python2-setuptools))) + (home-page "http://rope.sf.net/") + (synopsis "Refactoring library for Python") + (description "Rope is a Refactoring library for Python.") + (license gpl2))) + +(define-public python2-rope + (package + (name "python2-rope") + (version "0.10.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rope" version)) + (sha256 + (base32 + "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) + (arguments + `(#:python ,python-2)) + (build-system python-build-system) + (native-inputs + `(("python2-unittest2" ,python2-unittest2) + ("python2-setuptools" ,python2-setuptools))) + (home-page "http://rope.sf.net/") + (synopsis "Refactoring library for Python") + (description "Rope is a Refactoring library for Python.") + (license gpl2))) + +(define-public python-rope + (package + (name "python-rope") + (version "0.9.4-1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rope_py3k" version)) + (sha256 + (base32 + "1yh7hb4qha0c77ac9qyilv5ka3ljd1vcxvsa85clxndrrm3m1fgy")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; 23 out of 1524 tests fail + (native-inputs + `(("python-unittest2" ,python-unittest2) + ("python-setuptools" ,python-setuptools))) + (home-page "http://rope.sf.net/") + (synopsis "Refactoring library for Python") + (description "Rope is a Refactoring library for Python.") + (license gpl2))) --=20 2.7.4 --=-=-=--