2013-01-15 03:29:28 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
2014-02-07 23:44:26 +01:00
|
|
|
|
;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
|
2013-08-27 10:49:43 +02:00
|
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
2013-01-15 03:29:28 +01:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
|
(define-module (gnu packages python)
|
2013-10-28 22:54:48 +01:00
|
|
|
|
#:use-module ((guix licenses)
|
2014-03-03 00:22:33 +01:00
|
|
|
|
#:select (bsd-3 bsd-style psfl x11 x11-style
|
|
|
|
|
gpl2 gpl2+ lgpl2.1+))
|
2013-09-12 15:31:45 +02:00
|
|
|
|
#:use-module ((guix licenses) #:select (zlib)
|
2013-09-21 01:59:46 +02:00
|
|
|
|
#:renamer (symbol-prefix-proc 'license:))
|
2013-04-06 00:28:39 +02:00
|
|
|
|
#:use-module (gnu packages)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-04-06 00:28:39 +02:00
|
|
|
|
#:use-module (gnu packages gdbm)
|
2013-09-22 09:44:49 +02:00
|
|
|
|
#:use-module (gnu packages icu4c)
|
2014-02-01 01:39:04 +01:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2013-04-06 00:28:39 +02:00
|
|
|
|
#:use-module (gnu packages readline)
|
2013-01-18 01:06:24 +01:00
|
|
|
|
#:use-module (gnu packages openssl)
|
2013-12-15 23:27:56 +01:00
|
|
|
|
#:use-module (gnu packages elf)
|
2014-02-01 01:39:04 +01:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2013-09-12 15:31:45 +02:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2013-01-15 03:29:28 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2013-09-08 16:57:37 +02:00
|
|
|
|
#:use-module (guix utils)
|
2013-05-23 03:49:02 +02:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2013-09-03 21:27:40 +02:00
|
|
|
|
#:use-module (guix build-system python)
|
|
|
|
|
#:use-module (guix build-system trivial))
|
2013-01-15 03:29:28 +01:00
|
|
|
|
|
2013-09-02 21:48:50 +02:00
|
|
|
|
(define-public python-2
|
2013-01-15 03:29:28 +01:00
|
|
|
|
(package
|
|
|
|
|
(name "python")
|
2013-12-28 15:24:08 +01:00
|
|
|
|
(version "2.7.6")
|
2013-01-15 03:29:28 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2014-03-17 18:24:13 +01:00
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
2013-01-15 03:29:28 +01:00
|
|
|
|
version "/Python-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2013-12-28 15:24:08 +01:00
|
|
|
|
"18gnpyh071dxa0rv3silrz92jw9qpblswzwv4gzqcwxzz20qxmhz"))))
|
2013-01-15 03:29:28 +01:00
|
|
|
|
(build-system gnu-build-system)
|
2013-04-06 00:28:39 +02:00
|
|
|
|
(arguments
|
2013-08-27 10:49:43 +02:00
|
|
|
|
`(#:tests? #f
|
|
|
|
|
;; 258 tests OK.
|
|
|
|
|
;; 103 tests failed:
|
|
|
|
|
;; test_bz2 test_distutils test_file test_file2k test_popen2
|
|
|
|
|
;; test_shutil test_signal test_site test_slice test_smtplib
|
|
|
|
|
;; test_smtpnet test_socket test_socketserver test_softspace
|
|
|
|
|
;; test_sort test_sqlite test_ssl test_startfile test_str
|
|
|
|
|
;; test_strftime test_string test_stringprep test_strop test_strptime
|
|
|
|
|
;; test_strtod test_struct test_structmembers test_structseq
|
|
|
|
|
;; test_subprocess test_sunaudiodev test_sundry test_symtable
|
|
|
|
|
;; test_syntax test_sys test_sys_setprofile test_sys_settrace
|
|
|
|
|
;; test_sysconfig test_tarfile test_tcl test_telnetlib test_tempfile
|
|
|
|
|
;; test_textwrap test_thread test_threaded_import
|
|
|
|
|
;; test_threadedtempfile test_threading test_threading_local
|
|
|
|
|
;; test_threadsignals test_time test_timeout test_tk test_tokenize
|
|
|
|
|
;; test_tools test_trace test_traceback test_transformer
|
|
|
|
|
;; test_ttk_guionly test_ttk_textonly test_tuple test_typechecks
|
|
|
|
|
;; test_ucn test_unary test_undocumented_details test_unicode
|
|
|
|
|
;; test_unicode_file test_unicodedata test_univnewlines
|
|
|
|
|
;; test_univnewlines2k test_unpack test_urllib test_urllib2
|
|
|
|
|
;; test_urllib2_localnet test_urllib2net test_urllibnet test_urlparse
|
|
|
|
|
;; test_userdict test_userlist test_userstring test_uu test_uuid
|
|
|
|
|
;; test_wait3 test_wait4 test_warnings test_wave test_weakref
|
|
|
|
|
;; test_weakset test_whichdb test_winreg test_winsound test_with
|
|
|
|
|
;; test_wsgiref test_xdrlib test_xml_etree test_xml_etree_c
|
|
|
|
|
;; test_xmllib test_xmlrpc test_xpickle test_xrange test_zipfile
|
|
|
|
|
;; test_zipfile64 test_zipimport test_zipimport_support test_zlib
|
|
|
|
|
;; 31 tests skipped:
|
|
|
|
|
;; test_aepack test_al test_applesingle test_ascii_formatd test_bsddb
|
|
|
|
|
;; test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn
|
|
|
|
|
;; test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr
|
|
|
|
|
;; test_codecmaps_tw test_ctypes test_curses test_dl test_gdb test_gl
|
|
|
|
|
;; test_imageop test_imgfile test_ioctl test_kqueue
|
|
|
|
|
;; test_linuxaudiodev test_macos test_macostools test_msilib
|
|
|
|
|
;; test_multiprocessing test_ossaudiodev test_pep277
|
|
|
|
|
;; test_scriptpackages
|
|
|
|
|
;; 7 skips unexpected on linux2:
|
|
|
|
|
;; test_ascii_formatd test_bsddb test_bsddb3 test_ctypes test_gdb
|
|
|
|
|
;; test_ioctl test_multiprocessing
|
|
|
|
|
;; One of the typical errors:
|
|
|
|
|
;; test_unicode
|
|
|
|
|
;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No such file or directory
|
|
|
|
|
#:test-target "test"
|
2013-04-06 00:28:39 +02:00
|
|
|
|
#:configure-flags
|
|
|
|
|
(let ((bz2 (assoc-ref %build-inputs "bzip2"))
|
|
|
|
|
(gdbm (assoc-ref %build-inputs "gdbm"))
|
2014-02-01 01:39:04 +01:00
|
|
|
|
(libffi (assoc-ref %build-inputs "libffi"))
|
2013-04-06 00:28:39 +02:00
|
|
|
|
(openssl (assoc-ref %build-inputs "openssl"))
|
|
|
|
|
(readline (assoc-ref %build-inputs "readline"))
|
|
|
|
|
(zlib (assoc-ref %build-inputs "zlib")))
|
2013-05-08 01:50:21 +02:00
|
|
|
|
(list "--enable-shared" ; allow embedding
|
2014-02-01 01:39:04 +01:00
|
|
|
|
"--with-system-ffi" ; build ctypes
|
2013-05-08 01:50:21 +02:00
|
|
|
|
(string-append "CPPFLAGS="
|
2013-04-06 00:28:39 +02:00
|
|
|
|
"-I" bz2 "/include "
|
|
|
|
|
"-I" gdbm "/include "
|
|
|
|
|
"-I" openssl "/include "
|
|
|
|
|
"-I" readline "/include "
|
|
|
|
|
"-I" zlib "/include")
|
|
|
|
|
(string-append "LDFLAGS="
|
|
|
|
|
"-L" bz2 "/lib "
|
|
|
|
|
"-L" gdbm "/lib "
|
2014-02-01 01:39:04 +01:00
|
|
|
|
"-L" libffi "/lib "
|
2013-04-06 00:28:39 +02:00
|
|
|
|
"-L" openssl "/lib "
|
|
|
|
|
"-L" readline "/lib "
|
2013-05-08 01:50:21 +02:00
|
|
|
|
"-L" zlib "/lib")))
|
|
|
|
|
|
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
2013-05-08 23:24:05 +02:00
|
|
|
|
(guix build rpath)
|
2013-05-08 01:50:21 +02:00
|
|
|
|
(srfi srfi-26))
|
2013-05-08 23:24:05 +02:00
|
|
|
|
#:imported-modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build rpath))
|
2013-05-08 01:50:21 +02:00
|
|
|
|
|
|
|
|
|
#:phases
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'strip 'add-lib-to-runpath
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(lib (string-append out "/lib")))
|
|
|
|
|
;; Add LIB to the RUNPATH of all the executables.
|
|
|
|
|
(with-directory-excursion out
|
|
|
|
|
(for-each (cut augment-rpath <> lib)
|
|
|
|
|
(find-files "bin" ".*")))))
|
2014-03-31 01:09:10 +02:00
|
|
|
|
(alist-cons-before
|
|
|
|
|
'configure 'patch-lib-shells
|
|
|
|
|
(lambda _
|
2014-04-03 22:47:09 +02:00
|
|
|
|
;; Filter for existing files, since some may not exist in all
|
|
|
|
|
;; versions of python that are built with this recipe.
|
|
|
|
|
(substitute* (filter file-exists?
|
|
|
|
|
'("Lib/subprocess.py"
|
|
|
|
|
"Lib/popen2.py"
|
|
|
|
|
"Lib/distutils/tests/test_spawn.py"
|
|
|
|
|
"Lib/test/test_subprocess.py"))
|
2014-03-31 01:09:10 +02:00
|
|
|
|
(("/bin/sh") (which "sh"))))
|
2014-03-03 01:53:11 +01:00
|
|
|
|
(alist-cons-before
|
|
|
|
|
'check 'pre-check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; 'Lib/test/test_site.py' needs a valid $HOME
|
|
|
|
|
(setenv "HOME" (getcwd)))
|
|
|
|
|
%standard-phases)))))
|
2013-01-15 03:29:28 +01:00
|
|
|
|
(inputs
|
2013-04-06 00:28:39 +02:00
|
|
|
|
`(("bzip2" ,bzip2)
|
|
|
|
|
("gdbm" ,gdbm)
|
2014-02-01 01:39:04 +01:00
|
|
|
|
("libffi" ,libffi) ; for ctypes
|
2013-01-15 03:29:28 +01:00
|
|
|
|
("openssl" ,openssl)
|
2013-04-06 00:28:39 +02:00
|
|
|
|
("readline" ,readline)
|
2013-05-08 01:50:21 +02:00
|
|
|
|
("zlib" ,zlib)
|
2013-05-08 23:24:05 +02:00
|
|
|
|
("patchelf" ,patchelf))) ; for (guix build rpath)
|
2014-02-01 01:39:04 +01:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
2013-03-30 22:50:45 +01:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "PYTHONPATH")
|
|
|
|
|
(directories '("lib/python2.7/site-packages")))))
|
2013-01-15 03:29:28 +01:00
|
|
|
|
(home-page "http://python.org")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python, a high-level dynamically-typed programming language")
|
|
|
|
|
(description
|
|
|
|
|
"Python is a remarkably powerful dynamic programming language that
|
|
|
|
|
is used in a wide variety of application domains. Some of its key
|
|
|
|
|
distinguishing features include: clear, readable syntax; strong
|
|
|
|
|
introspection capabilities; intuitive object orientation; natural
|
|
|
|
|
expression of procedural code; full modularity, supporting hierarchical
|
|
|
|
|
packages; exception-based error handling; and very high level dynamic
|
|
|
|
|
data types.")
|
|
|
|
|
(license psfl)))
|
2013-05-23 03:49:02 +02:00
|
|
|
|
|
2013-09-02 21:48:50 +02:00
|
|
|
|
(define-public python
|
|
|
|
|
(package (inherit python-2)
|
2014-04-07 22:50:48 +02:00
|
|
|
|
(version "3.3.5")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.python.org/ftp/python/"
|
|
|
|
|
version "/Python-" version ".tar.xz"))
|
|
|
|
|
(patches (list (search-patch "python-fix-tests.patch")))
|
|
|
|
|
(patch-flags '("-p0"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1rdncc7g8g6f3lfdg33rli1yffbiq8z283xy4f5ksl1l8i49psdb"))))
|
2014-03-03 01:53:11 +01:00
|
|
|
|
(arguments
|
|
|
|
|
(let ((args `(#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
,@(package-arguments python-2))))
|
|
|
|
|
(substitute-keyword-arguments args
|
|
|
|
|
((#:tests? _) #t))))
|
2013-08-31 18:43:17 +02:00
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "PYTHONPATH")
|
|
|
|
|
(directories '("lib/python3.3/site-packages")))))))
|
2013-08-31 14:52:24 +02:00
|
|
|
|
|
2013-09-03 21:27:40 +02:00
|
|
|
|
(define-public python-wrapper
|
|
|
|
|
(package (inherit python)
|
|
|
|
|
(name "python-wrapper")
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(inputs `(("python" ,python)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
(let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
|
|
|
|
|
(python (string-append (assoc-ref %build-inputs "python") "/bin/")))
|
|
|
|
|
(mkdir-p bin)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (old new)
|
|
|
|
|
(symlink (string-append python old)
|
|
|
|
|
(string-append bin "/" new)))
|
|
|
|
|
`("python3", "pydoc3", "idle3")
|
|
|
|
|
`("python", "pydoc", "idle"))))))
|
|
|
|
|
(description (string-append (package-description python)
|
|
|
|
|
"\n\nThis wrapper package provides symbolic links to the python binaries
|
|
|
|
|
without version suffix."))))
|
|
|
|
|
|
|
|
|
|
|
2013-09-04 22:12:33 +02:00
|
|
|
|
(define-public python-pytz
|
2013-05-23 03:49:02 +02:00
|
|
|
|
(package
|
2013-09-04 22:12:33 +02:00
|
|
|
|
(name "python-pytz")
|
2013-05-23 03:49:02 +02:00
|
|
|
|
(version "2013b")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://launchpad.net/pytz/main/" version
|
|
|
|
|
"/+download/pytz-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19giwgfcrg0nr1gdv49qnmf2jb2ilkcfc7qyqvfpz4dp0p64ksv5"))))
|
|
|
|
|
(build-system python-build-system)
|
2013-09-05 18:55:27 +02:00
|
|
|
|
(arguments `(#:tests? #f)) ; no test target
|
2013-05-23 03:49:02 +02:00
|
|
|
|
(home-page "https://launchpad.net/pytz")
|
|
|
|
|
(synopsis "The Python timezone library.")
|
|
|
|
|
(description
|
|
|
|
|
"This library allows accurate and cross platform timezone calculations
|
|
|
|
|
using Python 2.4 or higher and provides access to the Olson timezone database.")
|
|
|
|
|
(license x11)))
|
2013-05-23 03:52:20 +02:00
|
|
|
|
|
2013-09-04 22:12:33 +02:00
|
|
|
|
(define-public python2-pytz
|
2013-09-08 16:57:37 +02:00
|
|
|
|
(package-with-python2 python-pytz))
|
2013-09-04 22:12:33 +02:00
|
|
|
|
|
2013-09-11 15:51:13 +02:00
|
|
|
|
|
2013-09-04 22:12:33 +02:00
|
|
|
|
(define-public python-babel
|
2013-05-23 03:52:20 +02:00
|
|
|
|
(package
|
2013-09-04 22:12:33 +02:00
|
|
|
|
(name "python-babel")
|
2013-09-11 22:56:52 +02:00
|
|
|
|
(version "1.3")
|
2013-05-23 03:52:20 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2013-09-11 22:56:52 +02:00
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/B/Babel/Babel-"
|
2013-05-23 03:52:20 +02:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2013-09-11 22:56:52 +02:00
|
|
|
|
"0bnin777lc53nxd1hp3apq410jj5wx92n08h7h4izpl4f4sx00lz"))))
|
2013-05-23 03:52:20 +02:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
2013-09-11 22:56:52 +02:00
|
|
|
|
`(("python-pytz" ,python-pytz)
|
|
|
|
|
("python-setuptools" ,python-setuptools)))
|
2013-09-05 18:55:27 +02:00
|
|
|
|
(arguments `(#:tests? #f)) ; no test target
|
2013-09-11 22:56:52 +02:00
|
|
|
|
(home-page "http://babel.pocoo.org/")
|
2013-05-23 03:52:20 +02:00
|
|
|
|
(synopsis
|
|
|
|
|
"Tools for internationalizing Python applications")
|
|
|
|
|
(description
|
|
|
|
|
"Babel is composed of two major parts:
|
|
|
|
|
- tools to build and work with gettext message catalogs
|
|
|
|
|
- a Python interface to the CLDR (Common Locale Data Repository), providing
|
|
|
|
|
access to various locale display names, localized number and date formatting,
|
|
|
|
|
etc. ")
|
|
|
|
|
(license bsd-3)))
|
2013-09-04 22:12:33 +02:00
|
|
|
|
|
|
|
|
|
(define-public python2-babel
|
2013-09-08 16:57:37 +02:00
|
|
|
|
(package-with-python2 python-babel))
|
2013-09-10 21:08:12 +02:00
|
|
|
|
|
2013-09-11 15:51:13 +02:00
|
|
|
|
|
2013-09-10 21:08:12 +02:00
|
|
|
|
(define-public python-setuptools
|
|
|
|
|
(package
|
|
|
|
|
(name "python-setuptools")
|
|
|
|
|
(version "1.1.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0hl9sa5xr9bi2ifq51wy1bawsjv5nzvpbac7m9z1ciz778874csf"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2013-09-11 15:47:34 +02:00
|
|
|
|
`(#:tests? #f))
|
2013-09-10 21:08:12 +02:00
|
|
|
|
;;FIXME: test_sdist_with_utf8_encoded_filename fails in
|
|
|
|
|
;; /tmp/nix-build-python2-setuptools-1.1.4.drv-0/setuptools-1.1.4/setuptools/tests/test_sdist.py"
|
|
|
|
|
;; line 354
|
|
|
|
|
;; The tests pass with Python 2.7.5.
|
|
|
|
|
(home-page "https://pypi.python.org/pypi/setuptools")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Library designed to facilitate packaging Python projects")
|
|
|
|
|
(description
|
|
|
|
|
"Setuptools is a fully-featured, stable library designed to facilitate
|
|
|
|
|
packaging Python projects, where packaging includes:
|
|
|
|
|
Python package and module definitions,
|
|
|
|
|
distribution package metadata,
|
|
|
|
|
test hooks,
|
|
|
|
|
project installation,
|
|
|
|
|
platform-specific details,
|
|
|
|
|
Python 3 support.")
|
|
|
|
|
(license psfl)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-setuptools
|
|
|
|
|
(package-with-python2 python-setuptools))
|
2013-09-11 15:51:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-public python-dateutil
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dateutil")
|
|
|
|
|
(version "1.5") ; last version for python < 3
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://labix.org/download/python-dateutil/python-dateutil-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-setuptools" ,python-setuptools)))
|
|
|
|
|
(home-page "http://labix.org/python-dateutil")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Extensions to the standard datetime module, available in Python 2.3+")
|
|
|
|
|
(description
|
|
|
|
|
"The dateutil module provides powerful extensions to the standard
|
|
|
|
|
datetime module, available in Python 2.3+.")
|
|
|
|
|
(license psfl)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-dateutil
|
|
|
|
|
(package-with-python2 python-dateutil))
|
2013-09-12 15:31:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-public python2-pysqlite
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pysqlite")
|
2014-02-07 23:44:26 +01:00
|
|
|
|
(version "2.6.3a") ; see below
|
2013-09-12 15:31:45 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2014-02-07 23:44:26 +01:00
|
|
|
|
;; During the switch from code.google.com to pypi.python.org, the 2.6.3
|
|
|
|
|
;; tarball was modified, but the version number was kept:
|
|
|
|
|
;; <https://lists.gnu.org/archive/html/guix-devel/2014-02/msg00077.html>.
|
|
|
|
|
;; Here we want to refer to the pypi-hosted 2.6.3 tarball.
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://pypi.python.org/packages/source/p/pysqlite/pysqlite-"
|
|
|
|
|
"2.6.3" ".tar.gz"))
|
2013-09-12 15:31:45 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2014-02-07 23:44:26 +01:00
|
|
|
|
"13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y"))))
|
2013-09-12 15:31:45 +02:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("sqlite" ,sqlite)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; incompatible with Python 3
|
|
|
|
|
#:tests? #f)) ; no test target
|
2014-02-07 23:44:26 +01:00
|
|
|
|
(home-page "https://pypi.python.org/pypi/pysqlite")
|
|
|
|
|
(synopsis "SQLite bindings for Python")
|
2013-09-12 15:31:45 +02:00
|
|
|
|
(description
|
|
|
|
|
"Pysqlite provides SQLite bindings for Python that comply to the
|
|
|
|
|
Database API 2.0T.")
|
2013-09-21 01:59:46 +02:00
|
|
|
|
(license license:zlib)))
|
2013-09-12 15:31:45 +02:00
|
|
|
|
|
2013-09-13 14:25:53 +02:00
|
|
|
|
|
|
|
|
|
(define-public python2-mechanize
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-mechanize")
|
|
|
|
|
(version "0.2.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python2-setuptools" ,python2-setuptools)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; apparently incompatible with Python 3
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
;; test fails with message
|
|
|
|
|
;; AttributeError: 'module' object has no attribute 'test_pullparser'
|
|
|
|
|
;; (python-3.3.2) or
|
|
|
|
|
;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
|
|
|
|
|
;; (python-2.7.5).
|
|
|
|
|
;; The source code is from March 2011 and probably not up-to-date
|
|
|
|
|
;; with respect to python unit tests.
|
|
|
|
|
(home-page "http://wwwsearch.sourceforge.net/mechanize/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Stateful programmatic web browsing in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Mechanize implements stateful programmatic web browsing in Python,
|
|
|
|
|
after Andy Lester’s Perl module WWW::Mechanize.")
|
|
|
|
|
(license (bsd-style "file://COPYING"
|
|
|
|
|
"See COPYING in the distribution."))))
|
|
|
|
|
|
2013-09-21 21:14:19 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-simplejson
|
|
|
|
|
(package
|
|
|
|
|
(name "python-simplejson")
|
|
|
|
|
(version "3.3.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "http://simplejson.readthedocs.org/en/latest/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Json library for Python")
|
|
|
|
|
(description
|
|
|
|
|
"JSON (JavaScript Object Notation) is a subset of JavaScript syntax
|
2013-10-13 22:35:50 +02:00
|
|
|
|
(ECMA-262 3rd edition) used as a lightweight data interchange format.
|
2013-09-21 21:14:19 +02:00
|
|
|
|
|
|
|
|
|
Simplejson exposes an API familiar to users of the standard library marshal
|
|
|
|
|
and pickle modules. It is the externally maintained version of the json
|
|
|
|
|
library contained in Python 2.6, but maintains compatibility with Python 2.5
|
|
|
|
|
and (currently) has significant performance advantages, even without using
|
|
|
|
|
the optional C extension for speedups. Simplejson is also supported on
|
|
|
|
|
Python 3.3+.")
|
|
|
|
|
(license x11)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-simplejson
|
|
|
|
|
(package-with-python2 python-simplejson))
|
2013-09-22 09:44:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-public python2-pyicu
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pyicu")
|
|
|
|
|
(version "1.5")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"011vwflpir8wvh48mvi6d9a7vw0f43bkwv0w6bzxbzmvz20ax5vm"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("icu4c" ,icu4c)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; Python 3 works also, but needs special care for
|
|
|
|
|
; linking with libpython3.3m
|
|
|
|
|
#:tests? #f)) ; no check target
|
|
|
|
|
(home-page "http://pyicu.osafoundation.org/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Python extension wrapping the ICU C++ API.")
|
|
|
|
|
(description
|
|
|
|
|
"PyICU is a python extension wrapping the ICU C++ API.")
|
|
|
|
|
(license x11)))
|
2013-10-13 22:35:50 +02:00
|
|
|
|
|
|
|
|
|
(define-public python2-dogtail
|
|
|
|
|
;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
|
|
|
|
|
;; spaces in indentation" with Python 3.
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-dogtail")
|
|
|
|
|
(version "0.8.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://fedorahosted.org/released/dogtail/dogtail-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments `(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; invalid command "test"
|
|
|
|
|
(home-page "https://fedorahosted.org/dogtail/")
|
|
|
|
|
(synopsis "GUI test tool and automation framework written in Python")
|
|
|
|
|
(description
|
|
|
|
|
"dogtail is a GUI test tool and automation framework written in Python.
|
|
|
|
|
It uses Accessibility (a11y) technologies to communicate with desktop
|
|
|
|
|
applications. dogtail scripts are written in Python and executed like any
|
|
|
|
|
other Python program.")
|
|
|
|
|
(license gpl2+)))
|
2013-10-17 22:27:39 +02:00
|
|
|
|
|
2013-10-28 22:54:48 +01:00
|
|
|
|
(define-public python2-empy
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-empy")
|
|
|
|
|
(version "3.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://www.alcyone.com/software/empy/empy-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:phases (alist-replace
|
|
|
|
|
'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "./test.sh")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://www.alcyone.com/software/empy/")
|
|
|
|
|
(synopsis "Templating system for Python")
|
|
|
|
|
(description
|
|
|
|
|
"EmPy is a system for embedding Python expressions and statements in
|
|
|
|
|
template text; it takes an EmPy source file, processes it, and produces
|
|
|
|
|
output. This is accomplished via expansions, which are special signals to the
|
|
|
|
|
EmPy system and are set off by a special prefix (by default the at sign, @).
|
|
|
|
|
EmPy can expand arbitrary Python expressions and statements in this way, as
|
|
|
|
|
well as a variety of special forms. Textual data not explicitly delimited in
|
|
|
|
|
this way is sent unaffected to the output, allowing Python to be used in
|
|
|
|
|
effect as a markup language. Also supported are callbacks via hooks,
|
|
|
|
|
recording and playback via diversions, and dynamic, chainable filters. The
|
|
|
|
|
system is highly configurable via command line options and embedded
|
|
|
|
|
commands.")
|
|
|
|
|
(license lgpl2.1+)))
|
|
|
|
|
|
2014-03-03 00:22:33 +01:00
|
|
|
|
(define-public python2-element-tree
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-element-tree")
|
|
|
|
|
(version "1.2.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://effbot.org/media/downloads/elementtree-"
|
|
|
|
|
version "-20050316.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; seems to be part of Python 3
|
|
|
|
|
#:tests? #f)) ; no 'test' sub-command
|
|
|
|
|
(synopsis "Toolkit for XML processing in Python")
|
|
|
|
|
(description
|
|
|
|
|
"ElementTree is a Python library supporting lightweight XML processing.")
|
|
|
|
|
(home-page "http://effbot.org/zone/element-index.htm")
|
|
|
|
|
(license (x11-style "http://docs.python.org/2/license.html"
|
|
|
|
|
"Like \"CWI LICENSE AGREEMENT FOR PYTHON \
|
|
|
|
|
0.9.0 THROUGH 1.2\"."))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pybugz
|
|
|
|
|
(package
|
|
|
|
|
(name "python2-pybugz")
|
|
|
|
|
(version "0.6.11")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://bits.liquidx.net/projects/pybugz/pybugz-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:python ,python-2 ; SyntaxError with Python 3
|
|
|
|
|
#:tests? #f)) ; no 'test' sub-command
|
|
|
|
|
(inputs `(("element-tree" ,python2-element-tree)))
|
|
|
|
|
(synopsis "Python and command-line interface to Bugzilla")
|
|
|
|
|
(description
|
|
|
|
|
"PyBugz is a Python library and command-line tool to query the Bugzilla
|
|
|
|
|
bug tracking system. It is meant as an aid to speed up interaction with the
|
|
|
|
|
bug tracker.")
|
|
|
|
|
(home-page "http://www.liquidx.net/pybugz/")
|
|
|
|
|
(license gpl2)))
|
|
|
|
|
|
2013-10-17 22:27:39 +02:00
|
|
|
|
(define-public scons
|
|
|
|
|
(package
|
|
|
|
|
(name "scons")
|
|
|
|
|
(version "2.1.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/scons/scons-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"07cjn4afb2cljjrd3cr7xf062qq58z8q96f58z6yplhdyqafsfa1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; With Python 3.x, fails to build with a syntax error.
|
|
|
|
|
`(#:python ,python-2
|
|
|
|
|
#:tests? #f)) ; no 'python setup.py test' command
|
|
|
|
|
(home-page "http://scons.org/")
|
|
|
|
|
(synopsis "Software construction tool written in Python")
|
|
|
|
|
(description
|
|
|
|
|
"SCons is a software construction tool. Think of SCons as an improved,
|
|
|
|
|
cross-platform substitute for the classic Make utility with integrated
|
|
|
|
|
functionality similar to autoconf/automake and compiler caches such as ccache.
|
|
|
|
|
In short, SCons is an easier, more reliable and faster way to build
|
|
|
|
|
software.")
|
|
|
|
|
(license x11)))
|
2013-10-28 22:54:48 +01:00
|
|
|
|
|