X-Git-Url: http://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/dbd40ac19df16bb2ef0387c5fcbe8103b6b64840..88bb4197c419d6095cc4061bac1ee0f96bf939b1:/gnu/packages/python.scm diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 1929f83a16..602da2d5ca 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2015 Kyle Meyer ;;; Copyright © 2015, 2016 Chris Marusich ;;; Copyright © 2016 Danny Milosavljevic +;;; Copyright © 2016 Lukas Gradl ;;; ;;; This file is part of GNU Guix. ;;; @@ -90,7 +91,7 @@ #:use-module (guix build-system trivial) #:use-module (srfi srfi-1)) -(define-public python-2 +(define-public python-2.7 (package (name "python") (version "2.7.10") @@ -262,7 +263,10 @@ packages; exception-based error handling; and very high level dynamic data types.") (license psfl))) -(define-public python +;; Current 2.x version. +(define-public python-2 python-2.7) + +(define-public python-3.4 (package (inherit python-2) (version "3.4.3") (source (origin @@ -288,6 +292,12 @@ data types.") (version-major+minor version) "/site-packages")))))))) +;; Current 3.x version. +(define-public python-3 python-3.4) + +;; Current major version. +(define-public python python-3) + ;; Minimal variants of Python, mostly used to break the cycle between Tk and ;; Python (Tk -> libxcb -> Python.) @@ -8751,3 +8761,30 @@ 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 + (package + (name "python2-rope") + (version "0.10.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rope" version)) + (sha256 + (base32 + "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb")))) + (arguments + ;; Rope is currently python-2 only. + ;; https://github.com/python-rope/rope/issues/57 + `(#:python ,python-2)) + (build-system python-build-system) + (native-inputs + `(("python2-unittest2" ,python2-unittest2) + ("python2-setuptools" ,python2-setuptools))) + (home-page "https://github.com/python-rope/rope") + (synopsis "Refactoring library for Python") + (description "Rope is a refactoring library for Python. It facilitates +the renaming, moving and extracting of attributes, functions, modules, fields +and parameters in Python 2 source code. These refactorings can also be applied +to occurences in strings and comments.") + (license gpl2)))