diff mbox

Add python-rope

Message ID 87posgssu4.fsf@openmailbox.org
State New
Headers show

Commit Message

Lukas Gradl May 20, 2016, 2:32 p.m. UTC
Lukas Gradl <lgradl@openmailbox.org> 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:
diff mbox

Patch

From 3779adbcf435d62f49c74675af1a7085bd0cdbfd Mon Sep 17 00:00:00 2001
From: Lukas Gradl <lgradl@openmailbox.org>
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 © 2015 Kyle Meyer <kyle@kyleam.com>
 ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
+;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8760,3 +8761,70 @@  respectively.")
   (description (string-append "This is an experimental compiler for a subset 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)))
-- 
2.7.4