aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2013-08-31 14:52:24 +0200
committerAndreas Enge <andreas@enge.fr>2013-08-31 14:52:24 +0200
commitf26a77ffbc68274591cdbc576185e37d583e21db (patch)
tree12feaff3543b8817dfac09d3333bf93222210d49 /gnu/packages/python.scm
parent91dcbafab95746827c6a9255599086afb55273c4 (diff)
downloadguix-f26a77ffbc68274591cdbc576185e37d583e21db.tar
guix-f26a77ffbc68274591cdbc576185e37d583e21db.tar.gz
gnu: Add Python 3.
* gnu/packages/python.scm (python-2): Rename from python for version 2. * gnu/packages/python.scm (python): New variable for version 3.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 35d5b51e06..090fd8239e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -31,7 +31,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system python))
-(define-public python
+(define-public python-2
(package
(name "python")
(version "2.7.5")
@@ -151,6 +151,18 @@ packages; exception-based error handling; and very high level dynamic
data types.")
(license psfl)))
+(define-public python
+ (package (inherit python-2)
+ (version "3.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://www.python.org/ftp/python/"
+ version "/Python-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0hsbwqjnhr85a2w252c8d3yj8d9i5sy8s6a6cfk6zqqhp3234nvl"))))))
+
(define-public pytz
(package
(name "pytz")