Update `HACKING'.
[jackhill/guix/guix.git] / distro / packages / python.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
11 ;;;
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
16 ;;;
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20 (define-module (distro packages python)
21 #:use-module ((guix licenses) #:select (psfl))
22 #:use-module (distro packages compression)
23 #:use-module (distro packages openssl)
24 #:use-module (distro packages base)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
28
29 (define-public python
30 (package
31 (name "python")
32 (version "2.7.3")
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append "http://www.python.org/ftp/python/"
37 version "/Python-" version ".tar.xz"))
38 (sha256
39 (base32
40 "11f9aw855lrmknr6c82gm1ijr3n0smc6idyp94y7774yivjnplv1"))))
41 (build-system gnu-build-system)
42 (arguments `(#:tests? #f)) ; XXX: some tests fail
43 (inputs
44 `(("zlib" ,zlib)
45 ("openssl" ,openssl)
46 ("bzip2" ,bzip2)))
47 (home-page "http://python.org")
48 (synopsis
49 "Python, a high-level dynamically-typed programming language")
50 (description
51 "Python is a remarkably powerful dynamic programming language that
52 is used in a wide variety of application domains. Some of its key
53 distinguishing features include: clear, readable syntax; strong
54 introspection capabilities; intuitive object orientation; natural
55 expression of procedural code; full modularity, supporting hierarchical
56 packages; exception-based error handling; and very high level dynamic
57 data types.")
58 (license psfl)))