gnu: Add seqmagick.
[jackhill/guix/guix.git] / gnu / packages / python.scm
CommitLineData
a01b6da7
NK
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
da6dd842 3;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
03411993 4;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
e99f4211 5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
a480bc41 6;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
da6ce3f1 7;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
e99f4211 8;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
d95a56c6 9;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
ad320b20 10;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
f4de5b3b 11;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
345f0611 12;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
89b2e0b0 13;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
a01b6da7
NK
14;;;
15;;; This file is part of GNU Guix.
16;;;
17;;; GNU Guix is free software; you can redistribute it and/or modify it
18;;; under the terms of the GNU General Public License as published by
19;;; the Free Software Foundation; either version 3 of the License, or (at
20;;; your option) any later version.
21;;;
22;;; GNU Guix is distributed in the hope that it will be useful, but
23;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25;;; GNU General Public License for more details.
26;;;
27;;; You should have received a copy of the GNU General Public License
28;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29
1ffa7090 30(define-module (gnu packages python)
011b18c3 31 #:use-module ((guix licenses)
45203542 32 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
b8050e71 33 gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+
feb0d9c3 34 isc psfl public-domain x11-style))
bd3fa666 35 #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
3fdc99da 36 #:use-module (gnu packages)
89b2e0b0 37 #:use-module (gnu packages attr)
1ffa7090 38 #:use-module (gnu packages compression)
4ed20663 39 #:use-module (gnu packages databases)
4ed20663 40 #:use-module (gnu packages fontutils)
3fdc99da 41 #:use-module (gnu packages gdbm)
4ed20663
AE
42 #:use-module (gnu packages gcc)
43 #:use-module (gnu packages ghostscript)
44 #:use-module (gnu packages glib)
45 #:use-module (gnu packages gtk)
421a80a2 46 #:use-module (gnu packages icu4c)
c937562e 47 #:use-module (gnu packages image)
4ed20663 48 #:use-module (gnu packages imagemagick)
b10ab723 49 #:use-module (gnu packages libffi)
89b2e0b0 50 #:use-module (gnu packages linux)
0da98533 51 #:use-module (gnu packages maths)
4ed20663 52 #:use-module (gnu packages multiprecision)
45203542 53 #:use-module (gnu packages networking)
be7134bf 54 #:use-module (gnu packages ncurses)
c9b1b4f9 55 #:use-module (gnu packages pcre)
4ed20663 56 #:use-module (gnu packages perl)
b10ab723 57 #:use-module (gnu packages pkg-config)
4ed20663 58 #:use-module (gnu packages readline)
c9b1b4f9 59 #:use-module (gnu packages statistics)
1c65314c
FB
60 #:use-module (gnu packages texlive)
61 #:use-module (gnu packages texinfo)
cc2b77df 62 #:use-module (gnu packages tls)
8d12be1e 63 #:use-module (gnu packages web)
ce0614dd 64 #:use-module (gnu packages base)
26b307e2 65 #:use-module (gnu packages xml)
6fa14469 66 #:use-module (gnu packages xorg)
4ed20663 67 #:use-module (gnu packages zip)
a01b6da7
NK
68 #:use-module (guix packages)
69 #:use-module (guix download)
ea5456c8 70 #:use-module (guix git-download)
11bb85a1 71 #:use-module (guix utils)
acc26ff1 72 #:use-module (guix build-system gnu)
898238b9 73 #:use-module (guix build-system python)
1c65314c
FB
74 #:use-module (guix build-system trivial)
75 #:use-module (srfi srfi-1))
a01b6da7 76
b24d1cfc 77(define-public python-2
a01b6da7
NK
78 (package
79 (name "python")
ff6f33cf 80 (version "2.7.10")
a01b6da7
NK
81 (source
82 (origin
83 (method url-fetch)
9b43a0ff 84 (uri (string-append "https://www.python.org/ftp/python/"
a01b6da7
NK
85 version "/Python-" version ".tar.xz"))
86 (sha256
87 (base32
ff6f33cf 88 "1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw"))))
a01b6da7 89 (build-system gnu-build-system)
3fdc99da 90 (arguments
af807dea 91 `(#:tests? #f
ff6f33cf
ED
92 ;; 268 tests OK.
93 ;; 103 tests failed:
94 ;; test_distutils test_shutil test_signal test_site test_slice
95 ;; test_smtplib test_smtpnet test_socket test_socketserver
96 ;; test_softspace test_sort test_spwd test_sqlite test_ssl
97 ;; test_startfile test_stat test_str test_strftime test_string
98 ;; test_stringprep test_strop test_strptime test_strtod test_struct
99 ;; test_structmembers test_structseq test_subprocess test_sunau
100 ;; test_sunaudiodev test_sundry test_symtable test_syntax test_sys
101 ;; test_sys_setprofile test_sys_settrace test_sysconfig test_tarfile
102 ;; test_tcl test_telnetlib test_tempfile test_textwrap test_thread
103 ;; test_threaded_import test_threadedtempfile test_threading
104 ;; test_threading_local test_threadsignals test_time test_timeit
105 ;; test_timeout test_tk test_tokenize test_tools test_trace
106 ;; test_traceback test_transformer test_ttk_guionly test_ttk_textonly
107 ;; test_tuple test_typechecks test_ucn test_unary
108 ;; test_undocumented_details test_unicode test_unicode_file
109 ;; test_unicodedata test_univnewlines test_univnewlines2k test_unpack
110 ;; test_urllib test_urllib2 test_urllib2_localnet test_urllib2net
111 ;; test_urllibnet test_urlparse test_userdict test_userlist
112 ;; test_userstring test_uu test_uuid test_wait3 test_wait4
113 ;; test_warnings test_wave test_weakref test_weakset test_whichdb
114 ;; test_winreg test_winsound test_with test_wsgiref test_xdrlib
115 ;; test_xml_etree test_xml_etree_c test_xmllib test_xmlrpc
116 ;; test_xpickle test_xrange test_zipfile test_zipfile64
117 ;; test_zipimport test_zipimport_support test_zlib
118 ;; 30 tests skipped:
119 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
120 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
121 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_crypt
122 ;; test_curses test_dl test_gdb test_gl test_idle test_imageop
123 ;; test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos
124 ;; test_macostools test_msilib test_nis test_ossaudiodev
125 ;; test_scriptpackages
126 ;; 6 skips unexpected on linux2:
127 ;; test_bsddb test_bsddb3 test_crypt test_gdb test_idle test_ioctl
128 ;; One of the typical errors:
129 ;; test_unicode
130 ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No
131 ;; such file or directory
af807dea 132 #:test-target "test"
3fdc99da
CR
133 #:configure-flags
134 (let ((bz2 (assoc-ref %build-inputs "bzip2"))
135 (gdbm (assoc-ref %build-inputs "gdbm"))
b10ab723 136 (libffi (assoc-ref %build-inputs "libffi"))
b88e1b0a 137 (sqlite (assoc-ref %build-inputs "sqlite"))
3fdc99da
CR
138 (openssl (assoc-ref %build-inputs "openssl"))
139 (readline (assoc-ref %build-inputs "readline"))
1f434457
MW
140 (zlib (assoc-ref %build-inputs "zlib"))
141 (out (assoc-ref %outputs "out")))
fd982732 142 (list "--enable-shared" ; allow embedding
b10ab723 143 "--with-system-ffi" ; build ctypes
fd982732 144 (string-append "CPPFLAGS="
3fdc99da
CR
145 "-I" bz2 "/include "
146 "-I" gdbm "/include "
b88e1b0a 147 "-I" sqlite "/include "
3fdc99da
CR
148 "-I" openssl "/include "
149 "-I" readline "/include "
150 "-I" zlib "/include")
151 (string-append "LDFLAGS="
152 "-L" bz2 "/lib "
153 "-L" gdbm "/lib "
b10ab723 154 "-L" libffi "/lib "
b88e1b0a 155 "-L" sqlite "/lib "
3fdc99da
CR
156 "-L" openssl "/lib "
157 "-L" readline "/lib "
1f434457
MW
158 "-L" zlib "/lib "
159 "-Wl,-rpath=" out "/lib")))
fd982732 160
46472ecd
MW
161 #:modules ((ice-9 ftw)
162 ,@%gnu-build-system-modules)
fd982732 163 #:phases
46472ecd
MW
164 (modify-phases %standard-phases
165 (add-before
166 'configure 'patch-lib-shells
167 (lambda _
168 ;; Filter for existing files, since some may not exist in all
169 ;; versions of python that are built with this recipe.
170 (substitute* (filter file-exists?
171 '("Lib/subprocess.py"
172 "Lib/popen2.py"
173 "Lib/distutils/tests/test_spawn.py"
174 "Lib/test/test_subprocess.py"))
175 (("/bin/sh") (which "sh")))
176 #t))
177 (add-before
178 'check 'pre-check
179 (lambda _
180 ;; 'Lib/test/test_site.py' needs a valid $HOME
181 (setenv "HOME" (getcwd))
182 #t))
183 (add-after
184 'unpack 'set-source-file-times-to-1980
185 ;; XXX One of the tests uses a ZIP library to pack up some of the
186 ;; source tree, and fails with "ZIP does not support timestamps
187 ;; before 1980". Work around this by setting the file times in the
188 ;; source tree to sometime in early 1980.
189 (lambda _
190 (let ((circa-1980 (* 10 366 24 60 60)))
191 (ftw "." (lambda (file stat flag)
192 (utime file circa-1980 circa-1980)
193 #t))
194 #t))))))
a01b6da7 195 (inputs
3fdc99da
CR
196 `(("bzip2" ,bzip2)
197 ("gdbm" ,gdbm)
b10ab723 198 ("libffi" ,libffi) ; for ctypes
b88e1b0a 199 ("sqlite" ,sqlite) ; for sqlite extension
a01b6da7 200 ("openssl" ,openssl)
3fdc99da 201 ("readline" ,readline)
1f434457 202 ("zlib" ,zlib)))
b10ab723
CR
203 (native-inputs
204 `(("pkg-config" ,pkg-config)))
9be8d7c8
LC
205 (native-search-paths
206 (list (search-path-specification
207 (variable "PYTHONPATH")
af070955 208 (files '("lib/python2.7/site-packages")))))
a01b6da7
NK
209 (home-page "http://python.org")
210 (synopsis
35b9e423 211 "High-level, dynamically-typed programming language")
a01b6da7
NK
212 (description
213 "Python is a remarkably powerful dynamic programming language that
214is used in a wide variety of application domains. Some of its key
215distinguishing features include: clear, readable syntax; strong
216introspection capabilities; intuitive object orientation; natural
217expression of procedural code; full modularity, supporting hierarchical
218packages; exception-based error handling; and very high level dynamic
219data types.")
220 (license psfl)))
acc26ff1 221
b24d1cfc
AE
222(define-public python
223 (package (inherit python-2)
08c04509 224 (version "3.4.3")
717003e3
LC
225 (source (origin
226 (method url-fetch)
227 (uri (string-append "https://www.python.org/ftp/python/"
228 version "/Python-" version ".tar.xz"))
4c50e5ab
MW
229 (patches (list (search-patch "python-fix-tests.patch")
230 ;; XXX Try removing this patch for python > 3.4.3
231 (search-patch "python-disable-ssl-test.patch")))
717003e3
LC
232 (patch-flags '("-p0"))
233 (sha256
234 (base32
08c04509 235 "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm"))))
1f434457
MW
236 (arguments (substitute-keyword-arguments (package-arguments python-2)
237 ((#:tests? _) #t)))
1aebc0cb
AE
238 (native-search-paths
239 (list (search-path-specification
240 (variable "PYTHONPATH")
0e05d01e
SB
241 (files (list (string-append "lib/python"
242 (version-major+minor version)
243 "/site-packages"))))))))
f26a77ff 244
898238b9
AE
245(define-public python-wrapper
246 (package (inherit python)
247 (name "python-wrapper")
248 (source #f)
249 (build-system trivial-build-system)
3c0f2329 250 (propagated-inputs `(("python" ,python)))
898238b9
AE
251 (arguments
252 `(#:modules ((guix build utils))
253 #:builder
254 (begin
255 (use-modules (guix build utils))
256 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
257 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
258 (mkdir-p bin)
259 (for-each
260 (lambda (old new)
261 (symlink (string-append python old)
262 (string-append bin "/" new)))
263 `("python3", "pydoc3", "idle3")
264 `("python", "pydoc", "idle"))))))
265 (description (string-append (package-description python)
266 "\n\nThis wrapper package provides symbolic links to the python binaries
267 without version suffix."))))
268
aaf625b8
RW
269(define-public python-psutil
270 (package
271 (name "python-psutil")
272 (version "3.0.1")
273 (source
274 (origin
275 (method url-fetch)
276 (uri (string-append
277 "https://pypi.python.org/packages/source/p/psutil/psutil-"
278 version ".tar.gz"))
279 (sha256
280 (base32
281 "00c8h1mzqysih99z8pnbmdv117d2naldf11yjy50dhykxsf3n89z"))))
282 (build-system python-build-system)
283 (native-inputs
284 `(("python-setuptools" ,python-setuptools)))
285 (home-page "https://pypi.python.org/pypi/psutil/")
286 (synopsis "Library for retrieving information on running processes")
287 (description
288 "psutil (Python system and process utilities) is a library for retrieving
289information on running processes and system utilization (CPU, memory, disks,
290network) in Python. It is useful mainly for system monitoring, profiling and
291limiting process resources and management of running processes. It implements
292many functionalities offered by command line tools such as: ps, top, lsof,
293netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
294pidof, tty, taskset, pmap.")
295 (license bsd-3)))
296
297(define-public python2-psutil
298 (package-with-python2 python-psutil))
898238b9 299
f9da1d8a
ED
300(define-public python-passlib
301 (package
302 (name "python-passlib")
303 (version "1.6.2")
304 (source
305 (origin
306 (method url-fetch)
307 (uri (string-append
308 "https://pypi.python.org/packages/source/p/passlib/passlib-"
309 version
310 ".tar.gz"))
311 (sha256
312 (base32
313 "0b9rd161b3mmiwd7nx1v599yh9sp07mlfwac65sjy9qn1l0gd1z9"))))
314 (build-system python-build-system)
315 (native-inputs
316 `(("python-nose" ,python-nose)
317 ("python-setuptools" ,python-setuptools)))
318 (inputs
319 `(("python-py-bcrypt" ,python-py-bcrypt)))
320 (arguments
321 `(#:phases
322 (alist-cons-before
323 'check 'set-PYTHON_EGG_CACHE
324 ;; some tests require access to "$HOME/.cython"
325 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
326 %standard-phases)))
327 (home-page "https://bitbucket.org/ecollins/passlib")
328 (synopsis
329 "Comprehensive password hashing framework")
330 (description
331 "Passlib is a password hashing library for Python 2 & 3, which provides
332cross-platform implementations of over 30 password hashing algorithms, as well
333as a framework for managing existing password hashes. It's designed to be
334useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
335to providing full-strength password hashing for multi-user application.")
336 (license bsd-3)))
337
338(define-public python2-passlib
339 (package-with-python2 python-passlib))
340
feb0d9c3
ED
341(define-public python-py-bcrypt
342 (package
343 (name "python-py-bcrypt")
344 (version "0.4")
345 (source
346 (origin
347 (method url-fetch)
348 (uri (string-append
349 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
350 version
351 ".tar.gz"))
352 (sha256
353 (base32
354 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
355 (build-system python-build-system)
356 (native-inputs
357 `(("python-setuptools" ,python-setuptools)))
358 (home-page "https://code.google.com/p/py-bcrypt")
359 (synopsis
360 "Bcrypt password hashing and key derivation")
361 (description
362 "A python wrapper of OpenBSD's Blowfish password hashing code. This
363system hashes passwords using a version of Bruce Schneier's Blowfish block
364cipher with modifications designed to raise the cost of off-line password
365cracking and frustrate fast hardware implementation. The computation cost of
366the algorithm is parametised, so it can be increased as computers get faster.
367The intent is to make a compromise of a password database less likely to
368result in an attacker gaining knowledge of the plaintext passwords (e.g. using
369John the Ripper).")
370 ;; "sha2.c" is under BSD-3;
371 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
372 ;; the rest is under ISC.
373 (license (list isc bsd-3 bsd-4))))
374
375(define-public python2-py-bcrypt
376 (package-with-python2 python-py-bcrypt))
377
378
429fdea1
ED
379(define-public python-paramiko
380 (package
381 (name "python-paramiko")
382 (version "1.15.2")
383 (source
384 (origin
385 (method url-fetch)
386 (uri (string-append
387 "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
388 version
389 ".tar.gz"))
390 (sha256
391 (base32
392 "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
393 (build-system python-build-system)
394 (native-inputs
395 `(("python-setuptools" ,python-setuptools)))
396 (inputs
397 `(("python-ecdsa" ,python-ecdsa)
398 ("python-pycrypto" ,python-pycrypto)))
399 (home-page "http://www.paramiko.org/")
400 (synopsis "SSHv2 protocol library")
401 (description "Paramiko is a python implementation of the SSHv2 protocol,
402providing both client and server functionality. While it leverages a Python C
403extension for low level cryptography (PyCrypto), Paramiko itself is a pure
404Python interface around SSH networking concepts.")
405 (license lgpl2.1+)))
406
407(define-public python2-paramiko
408 (package-with-python2 python-paramiko))
409
410
de73dbf6
ED
411(define-public python-httplib2
412 (package
413 (name "python-httplib2")
414 (version "0.9.1")
415 (source
416 (origin
417 (method url-fetch)
418 (uri (string-append
419 "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
420 version
421 ".tar.gz"))
422 (sha256
423 (base32
424 "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
425 (build-system python-build-system)
426 (native-inputs
427 `(("python-setuptools" ,python-setuptools)))
428 (home-page
429 "https://github.com/jcgregorio/httplib2")
430 (synopsis "Comprehensive HTTP client library")
431 (description
432 "A comprehensive HTTP client library supporting many features left out of
433other HTTP libraries.")
434 (license license:expat)))
435
436(define-public python2-httplib2
437 (package-with-python2 python-httplib2))
438
67039875
ED
439(define-public python-ecdsa
440 (package
441 (name "python-ecdsa")
442 (version "0.13")
443 (source
444 (origin
445 (method url-fetch)
446 (uri (string-append
447 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
448 version
449 ".tar.gz"))
450 (sha256
451 (base32
452 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
453 (build-system python-build-system)
454 (native-inputs
455 `(("python-setuptools" ,python-setuptools)))
456 (inputs
457 `(("openssl" ,openssl)))
458 (home-page
459 "http://github.com/warner/python-ecdsa")
460 (synopsis
461 "ECDSA cryptographic signature library (pure python)")
462 (description
463 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
464Curve Digital Signature Algorithm), implemented purely in Python. With this
465library, you can quickly create keypairs (signing key and verifying key), sign
466messages, and verify the signatures. The keys and signatures are very short,
467making them easy to handle and incorporate into other protocols.")
468 (license license:expat)))
469
470(define-public python2-ecdsa
471 (package-with-python2 python-ecdsa))
472
52323f32
ED
473(define-public python-ccm
474 (package
475 (name "python-ccm")
476 (version "2.0.4.1")
477 (source
478 (origin
479 (method url-fetch)
480 (uri (string-append
481 "https://pypi.python.org/packages/source/c/ccm/ccm-"
482 version
483 ".tar.gz"))
484 (sha256
485 (base32
486 "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
487 (build-system python-build-system)
488 (native-inputs
489 `(("python-setuptools" ,python-setuptools)))
490 (inputs
491 `(("python-pyyaml" ,python-pyyaml)
492 ("python-six" ,python-six)))
493 (home-page "https://github.com/pcmanus/ccm")
494 (synopsis "Cassandra Cluster Manager")
495 (description "A script/library to create, launch and remove an Apache
496Cassandra cluster on localhost.")
497 (license asl2.0)))
498
499(define-public python2-ccm
500 (package-with-python2 python-ccm))
501
89114f39 502(define-public python-pytz
acc26ff1 503 (package
89114f39 504 (name "python-pytz")
acc26ff1
CR
505 (version "2013b")
506 (source
507 (origin
508 (method url-fetch)
509 (uri (string-append "https://launchpad.net/pytz/main/" version
510 "/+download/pytz-" version ".tar.bz2"))
511 (sha256
512 (base32
513 "19giwgfcrg0nr1gdv49qnmf2jb2ilkcfc7qyqvfpz4dp0p64ksv5"))))
514 (build-system python-build-system)
8498b8cf 515 (arguments `(#:tests? #f)) ; no test target
acc26ff1 516 (home-page "https://launchpad.net/pytz")
9e771e3b 517 (synopsis "Python timezone library")
acc26ff1
CR
518 (description
519 "This library allows accurate and cross platform timezone calculations
520using Python 2.4 or higher and provides access to the Olson timezone database.")
521 (license x11)))
5ace6e2f 522
89114f39 523(define-public python2-pytz
11bb85a1 524 (package-with-python2 python-pytz))
89114f39 525
fc50e9c6 526
89114f39 527(define-public python-babel
5ace6e2f 528 (package
89114f39 529 (name "python-babel")
e1804763 530 (version "1.3")
5ace6e2f
CR
531 (source
532 (origin
533 (method url-fetch)
e1804763 534 (uri (string-append "https://pypi.python.org/packages/source/B/Babel/Babel-"
5ace6e2f
CR
535 version ".tar.gz"))
536 (sha256
537 (base32
e1804763 538 "0bnin777lc53nxd1hp3apq410jj5wx92n08h7h4izpl4f4sx00lz"))))
5ace6e2f
CR
539 (build-system python-build-system)
540 (inputs
e1804763
AE
541 `(("python-pytz" ,python-pytz)
542 ("python-setuptools" ,python-setuptools)))
8498b8cf 543 (arguments `(#:tests? #f)) ; no test target
e1804763 544 (home-page "http://babel.pocoo.org/")
5ace6e2f
CR
545 (synopsis
546 "Tools for internationalizing Python applications")
547 (description
548 "Babel is composed of two major parts:
549- tools to build and work with gettext message catalogs
550- a Python interface to the CLDR (Common Locale Data Repository), providing
551access to various locale display names, localized number and date formatting,
552etc. ")
553 (license bsd-3)))
89114f39
AE
554
555(define-public python2-babel
11bb85a1 556 (package-with-python2 python-babel))
73adf220 557
ed377cc6
RW
558(define-public python2-backport-ssl-match-hostname
559 (package
560 (name "python2-backport-ssl-match-hostname")
561 (version "3.4.0.2")
562 (source
563 (origin
564 (method url-fetch)
565 (uri (string-append
566 "https://pypi.python.org/packages/source/b/"
567 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
568 version ".tar.gz"))
569 (sha256
570 (base32
571 "1bnn47ipvhy49n0m50v27lp4xj6sqdkdw676ypd7pawsn1zhwh87"))))
572 (build-system python-build-system)
573 (arguments `(#:python ,python-2))
574 (inputs
575 `(("python2-setuptools" ,python2-setuptools)))
576 (home-page "https://pypi.python.org/pypi/backports.ssl_match_hostname")
577 (synopsis "Backport of ssl.match_hostname() function from Python 3.4")
578 (description
579 "This backport brings the ssl.match_hostname() function to users of
580earlier versions of Python. The function checks the hostname in the
581certificate returned by the server to which a connection has been established,
582and verifies that it matches the intended target hostname.")
583 (license psfl)))
584
ef5cbf9b
RW
585(define-public python-h5py
586 (package
587 (name "python-h5py")
588 (version "2.4.0")
589 (source
590 (origin
591 (method url-fetch)
592 (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-"
593 version ".tar.gz"))
594 (sha256
595 (base32
596 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps"))))
597 (build-system python-build-system)
598 (inputs
599 `(("python-cython" ,python-cython)
600 ("python-numpy" ,python-numpy)
601 ("hdf5" ,hdf5)))
602 (native-inputs
603 `(("python-setuptools" ,python-setuptools)))
604 (arguments `(#:tests? #f)) ; no test target
605 (home-page "http://www.h5py.org/")
606 (synopsis "Read and write HDF5 files from Python")
607 (description
608 "The h5py package provides both a high- and low-level interface to the
609HDF5 library from Python. The low-level interface is intended to be a
610complete wrapping of the HDF5 API, while the high-level component supports
611access to HDF5 files, datasets and groups using established Python and NumPy
612concepts.")
613 (license bsd-3)))
614
615(define-public python2-h5py
616 (let ((h5py (package-with-python2 python-h5py)))
617 (package (inherit h5py)
618 (inputs
619 `(("python2-numpy" ,python2-numpy)
620 ,@(alist-delete
621 "python-numpy"
622 (package-inputs h5py)))))))
623
c1448c69
EB
624(define-public python-lockfile
625 (package
626 (name "python-lockfile")
627 (version "0.9.1")
628 (source
629 (origin
630 (method url-fetch)
631 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
632 "lockfile-" version ".tar.gz"))
633 (sha256
634 (base32
635 "0iwif7i84gwpvrnpv4brshdk8j6l77smvknm8k3bg77mj6f5ini3"))))
636 (build-system python-build-system)
637 (arguments '(#:test-target "check"))
638 (home-page "http://code.google.com/p/pylockfile/")
639 (synopsis "Platform-independent file locking module")
640 (description
641 "The lockfile package exports a LockFile class which provides a simple
642API for locking files.")
bd3fa666 643 (license license:expat)))
c1448c69
EB
644
645(define-public python2-lockfile
646 (package-with-python2 python-lockfile))
647
5a1a4bf6
EB
648(define-public python-mock
649 (package
650 (name "python-mock")
651 (version "1.0.1")
652 (source
653 (origin
654 (method url-fetch)
655 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
656 "mock-" version ".tar.gz"))
657 (sha256
658 (base32
659 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
660 (build-system python-build-system)
661 (arguments '(#:test-target "check"))
07af3e5e 662 (home-page "http://code.google.com/p/mock/")
9e771e3b 663 (synopsis "Python mocking and patching library for testing")
5a1a4bf6
EB
664 (description
665 "Mock is a library for testing in Python. It allows you to replace parts
666of your system under test with mock objects and make assertions about how they
667have been used.")
bd3fa666 668 (license license:expat)))
5a1a4bf6
EB
669
670(define-public python2-mock
671 (package-with-python2 python-mock))
672
fc50e9c6 673
73adf220
AE
674(define-public python-setuptools
675 (package
676 (name "python-setuptools")
d3d656c5 677 (version "12.1")
73adf220
AE
678 (source
679 (origin
680 (method url-fetch)
681 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
682 version ".tar.gz"))
683 (sha256
684 (base32
d3d656c5 685 "04bfk7si1pwj3b5k2b1x9b1zkiclybmzpw6alrs5bciri56lg9zs"))))
73adf220 686 (build-system python-build-system)
d3d656c5
AE
687 ;; FIXME: Tests require pytest, which itself relies on setuptools.
688 ;; One could bootstrap with an internal untested setuptools.
73adf220 689 (arguments
824af8ca 690 `(#:tests? #f))
73adf220
AE
691 (home-page "https://pypi.python.org/pypi/setuptools")
692 (synopsis
693 "Library designed to facilitate packaging Python projects")
694 (description
695 "Setuptools is a fully-featured, stable library designed to facilitate
696packaging Python projects, where packaging includes:
697Python package and module definitions,
698distribution package metadata,
699test hooks,
700project installation,
701platform-specific details,
702Python 3 support.")
703 (license psfl)))
704
705(define-public python2-setuptools
706 (package-with-python2 python-setuptools))
fc50e9c6
AE
707
708
cafc3f5a
EB
709(define-public python-pycrypto
710 (package
711 (name "python-pycrypto")
712 (version "2.6.1")
713 (source
714 (origin
715 (method url-fetch)
716 (uri (string-append "https://pypi.python.org/packages/source/p/"
717 "pycrypto/pycrypto-" version ".tar.gz"))
718 (sha256
719 (base32
720 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
721 (build-system python-build-system)
722 (native-inputs
723 `(("python-setuptools" ,python-setuptools)))
724 (inputs
725 `(("python" ,python)
726 ("gmp" ,gmp)))
727 (arguments
728 `(#:phases
729 (alist-cons-before
730 'build 'set-build-env
731 ;; pycrypto runs an autoconf configure script behind the scenes
732 (lambda _
733 (setenv "CONFIG_SHELL" (which "bash")))
734 %standard-phases)))
735 (home-page "http://www.pycrypto.org/")
736 (synopsis "Cryptographic modules for Python")
737 (description
738 "Pycrypto is a collection of both secure hash functions (such as SHA256
739and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
35b9e423 740etc.). The package is structured to make adding new modules easy.")
cafc3f5a
EB
741 (license public-domain)))
742
345f0611
ED
743(define-public python2-pycrypto
744 (package-with-python2 python-pycrypto))
745
cafc3f5a
EB
746(define-public python-keyring
747 (package
748 (name "python-keyring")
749 (version "3.8")
750 (source
751 (origin
752 (method url-fetch)
753 (uri (string-append "https://pypi.python.org/packages/source/k/"
754 "keyring/keyring-" version ".zip"))
755 (sha256
756 (base32
757 "1vxazfbcwggyfyramh55shkxs08skhpqrkm6lrrjnygnm8c1l2zg"))))
758 (build-system python-build-system)
759 (native-inputs
760 `(("unzip" ,unzip)
761 ("python-setuptools" ,python-setuptools)
762 ("python-mock" ,python-mock)))
763 (inputs
764 `(("python-pycrypto" ,python-pycrypto)))
765 (arguments
766 `(#:tests? #f ;TODO: tests require pytest
767 #:phases
768 (alist-replace
769 'unpack
770 (lambda _
771 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
772 "/bin/unzip"))
773 (source (assoc-ref %build-inputs "source")))
774 (and (zero? (system* unzip source))
775 (chdir (string-append "keyring-" ,version)))))
776 %standard-phases)))
777 (home-page "http://bitbucket.org/kang/python-keyring-lib")
778 (synopsis "Store and access your passwords safely")
779 (description
780 "The Python keyring lib provides a easy way to access the system keyring
35b9e423 781service from python. It can be used in any application that needs safe
cafc3f5a
EB
782password storage.")
783 ;; "MIT" and PSF dual license
784 (license x11)))
785
d7af1069
CR
786(define-public python2-keyring
787 (package-with-python2 python-keyring))
788
a480bc41
EB
789(define-public python-six
790 (package
791 (name "python-six")
98bdee67 792 (version "1.9.0")
a480bc41
EB
793 (source
794 (origin
795 (method url-fetch)
796 (uri (string-append "https://pypi.python.org/packages/source/s/"
797 "six/six-" version ".tar.gz"))
798 (sha256
799 (base32
98bdee67 800 "1mci5i8mjqmljmv33h0q3d4djc13zk1kfmb3fbvd3yy43x0m4h72"))))
a480bc41
EB
801 (build-system python-build-system)
802 (inputs
803 `(("python-setuptools" ,python-setuptools)))
804 (home-page "http://pypi.python.org/pypi/six/")
805 (synopsis "Python 2 and 3 compatibility utilities")
806 (description
35b9e423 807 "Six is a Python 2 and 3 compatibility library. It provides utility
a480bc41
EB
808functions for smoothing over the differences between the Python versions with
809the goal of writing Python code that is compatible on both Python versions.
35b9e423 810Six supports every Python version since 2.5. It is contained in only one
a480bc41
EB
811Python file, so it can be easily copied into your project.")
812 (license x11)))
813
0c20025c
AE
814(define-public python2-six
815 (package-with-python2 python-six))
816
cafc3f5a
EB
817(define-public python-dateutil-2
818 (package
819 (name "python-dateutil")
820 (version "2.2")
821 (source
822 (origin
823 (method url-fetch)
824 (uri (string-append "https://pypi.python.org/packages/source/p/"
825 name "/" name "-" version ".tar.gz"))
826 (sha256
827 (base32
828 "0s74ad6r789810s10dxgvaf48ni6adac2icrdad34zxygqq6bj7f"))))
829 (build-system python-build-system)
830 (inputs
831 `(("python-setuptools" ,python-setuptools)
832 ("python-six" ,python-six)))
833 (home-page "http://labix.org/python-dateutil")
834 (synopsis "Extensions to the standard datetime module")
835 (description
836 "The dateutil module provides powerful extensions to the standard
837datetime module, available in Python 2.3+.")
838 (license bsd-3)))
839
840(define-public python2-dateutil-2
841 (package-with-python2 python-dateutil-2))
842
fc50e9c6
AE
843(define-public python-dateutil
844 (package
845 (name "python-dateutil")
846 (version "1.5") ; last version for python < 3
847 (source
848 (origin
849 (method url-fetch)
cafc3f5a
EB
850 (uri (string-append "http://labix.org/download/python-dateutil/"
851 "python-dateutil-" version ".tar.gz"))
fc50e9c6
AE
852 (sha256
853 (base32
854 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
855 (build-system python-build-system)
856 (inputs
857 `(("python-setuptools" ,python-setuptools)))
858 (home-page "http://labix.org/python-dateutil")
cafc3f5a 859 (synopsis "Extensions to the standard datetime module")
fc50e9c6
AE
860 (description
861 "The dateutil module provides powerful extensions to the standard
862datetime module, available in Python 2.3+.")
863 (license psfl)))
864
865(define-public python2-dateutil
866 (package-with-python2 python-dateutil))
1d08c01f 867
cafc3f5a
EB
868(define-public python-parsedatetime
869 (package
870 (name "python-parsedatetime")
871 (version "1.2")
872 (source
873 (origin
874 (method url-fetch)
875 (uri (string-append "https://pypi.python.org/packages/source/p/"
876 "parsedatetime/parsedatetime-" version ".tar.gz"))
877 (sha256
878 (base32
879 "1zcj0pzxvpl4j2ma9awmpkfxldybi2kjaahjjpmgfbg5cxwcjsqv"))))
880 (build-system python-build-system)
881 (native-inputs
882 `(("python-setuptools" ,python-setuptools)))
883 (arguments `(#:tests? #f)) ;no test target
884 (home-page "http://github.com/bear/parsedatetime/")
885 (synopsis
886 "Parse human-readable date/time text")
887 (description
e881752c 888 "Parse human-readable date/time text.")
cafc3f5a
EB
889 (license asl2.0)))
890
d072efcb
RW
891(define-public python-pandas
892 (package
893 (name "python-pandas")
894 (version "0.16.0")
895 (source
896 (origin
897 (method url-fetch)
898 (uri (string-append "https://pypi.python.org/packages/source/p/"
899 "pandas/pandas-" version ".tar.gz"))
900 (sha256
901 (base32 "1wfrp8dx1zcsry6f09ndza6qm1yr7f163211f4l9vjlnhxpxw4s0"))))
902 (build-system python-build-system)
903 (arguments
904 `(;; Three tests fail:
905 ;; - test_read_google
906 ;; - test_read_yahoo
907 ;; - test_month_range_union_tz_dateutil
908 #:tests? #f))
909 (propagated-inputs
910 `(("python-numpy" ,python-numpy)
911 ("python-pytz" ,python-pytz)
912 ("python-dateutil" ,python-dateutil-2)))
913 (native-inputs
914 `(("python-nose" ,python-nose)
915 ("python-setuptools" ,python-setuptools)))
916 (home-page "http://pandas.pydata.org")
917 (synopsis "Data structures for data analysis, time series, and statistics")
918 (description
919 "Pandas is a Python package providing fast, flexible, and expressive data
920structures designed to make working with structured (tabular,
921multidimensional, potentially heterogeneous) and time series data both easy
922and intuitive. It aims to be the fundamental high-level building block for
923doing practical, real world data analysis in Python.")
924 (license bsd-3)))
925
926(define-public python2-pandas
927 (package-with-python2 python-pandas))
928
cafc3f5a
EB
929(define-public python-tzlocal
930 (package
931 (name "python-tzlocal")
932 (version "1.1.1")
933 (source
934 (origin
935 (method url-fetch)
936 (uri (string-append "https://pypi.python.org/packages/source/t/"
937 "tzlocal/tzlocal-" version ".zip"))
938 (sha256
939 (base32
940 "1m3y918c3chf41fwg2bx4w42bqsjzn3dyvvcmwwy13c8gj6zssv9"))))
941 (build-system python-build-system)
942 (native-inputs
943 `(("unzip" ,unzip)
944 ("python-setuptools" ,python-setuptools)))
945 (inputs `(("python-pytz" ,python-pytz)))
946 (arguments
947 `(#:phases
948 (alist-replace
949 'unpack
950 (lambda _
951 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
952 "/bin/unzip"))
953 (source (assoc-ref %build-inputs "source")))
954 (and (zero? (system* unzip source))
955 (chdir (string-append "tzlocal-" ,version)))))
956 %standard-phases)))
957 (home-page "https://github.com/regebro/tzlocal")
958 (synopsis
35b9e423 959 "Local timezone information for Python")
cafc3f5a
EB
960 (description
961 "Tzlocal returns a tzinfo object with the local timezone information.
962This module attempts to fix a glaring hole in pytz, that there is no way to
963get the local timezone information, unless you know the zoneinfo name, and
964under several distributions that's hard or impossible to figure out.")
965 (license cc0)))
966
be7134bf
RW
967(define-public python-pysam
968 (package
969 (name "python-pysam")
970 (version "0.8.1")
971 (source
972 (origin
973 (method url-fetch)
974 (uri (string-append "https://pypi.python.org/packages/source/p/pysam/pysam-"
975 version ".tar.gz"))
976 (sha256
977 (base32
978 "1fb6i6hbpzxaxb62kyyp5alaidwhj40f7c6gwbhr6njzlqd5l459"))))
979 (build-system python-build-system)
980 (arguments
981 `(#:tests? #f ; tests are excluded in the manifest
982 #:phases
983 (alist-cons-before
984 'build 'set-flags
985 (lambda _
986 (setenv "LDFLAGS" "-lncurses")
987 (setenv "CFLAGS" "-D_CURSES_LIB=1"))
988 %standard-phases)))
989 (inputs
990 `(("python-cython" ,python-cython)
991 ("python-setuptools" ,python-setuptools)
992 ("ncurses" ,ncurses)
993 ("zlib" ,zlib)))
994 (home-page "https://github.com/pysam-developers/pysam")
995 (synopsis "Python bindings to the SAMtools C API")
996 (description
997 "Pysam is a Python module for reading and manipulating files in the
998SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
999also includes an interface for tabix.")
bd3fa666 1000 (license license:expat)))
be7134bf
RW
1001
1002(define-public python2-pysam
1003 (package-with-python2 python-pysam))
1d08c01f
AE
1004
1005(define-public python2-pysqlite
1006 (package
1007 (name "python2-pysqlite")
7a03af70 1008 (version "2.6.3a") ; see below
1d08c01f
AE
1009 (source
1010 (origin
1011 (method url-fetch)
7a03af70
LC
1012 ;; During the switch from code.google.com to pypi.python.org, the 2.6.3
1013 ;; tarball was modified, but the version number was kept:
1014 ;; <https://lists.gnu.org/archive/html/guix-devel/2014-02/msg00077.html>.
1015 ;; Here we want to refer to the pypi-hosted 2.6.3 tarball.
1016 (uri (string-append
1017 "https://pypi.python.org/packages/source/p/pysqlite/pysqlite-"
1018 "2.6.3" ".tar.gz"))
1d08c01f
AE
1019 (sha256
1020 (base32
7a03af70 1021 "13djzgnbi71znjjyaw4nybg6smilgszcid646j5qav7mdchkb77y"))))
1d08c01f
AE
1022 (build-system python-build-system)
1023 (inputs
1024 `(("sqlite" ,sqlite)))
1025 (arguments
1026 `(#:python ,python-2 ; incompatible with Python 3
1027 #:tests? #f)) ; no test target
7a03af70
LC
1028 (home-page "https://pypi.python.org/pypi/pysqlite")
1029 (synopsis "SQLite bindings for Python")
1d08c01f
AE
1030 (description
1031 "Pysqlite provides SQLite bindings for Python that comply to the
1032Database API 2.0T.")
ed0cdf83 1033 (license license:zlib)))
1d08c01f 1034
2875caf5
AE
1035
1036(define-public python2-mechanize
1037 (package
1038 (name "python2-mechanize")
1039 (version "0.2.5")
1040 (source
1041 (origin
1042 (method url-fetch)
1043 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1044 version ".tar.gz"))
1045 (sha256
1046 (base32
1047 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1048 (build-system python-build-system)
1049 (inputs
1050 `(("python2-setuptools" ,python2-setuptools)))
1051 (arguments
1052 `(#:python ,python-2 ; apparently incompatible with Python 3
1053 #:tests? #f))
1054 ;; test fails with message
1055 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1056 ;; (python-3.3.2) or
1057 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1058 ;; (python-2.7.5).
1059 ;; The source code is from March 2011 and probably not up-to-date
1060 ;; with respect to python unit tests.
1061 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1062 (synopsis
1063 "Stateful programmatic web browsing in Python")
1064 (description
1065 "Mechanize implements stateful programmatic web browsing in Python,
1066after Andy Lester’s Perl module WWW::Mechanize.")
166191b3 1067 (license (non-copyleft "file://COPYING"
e881752c 1068 "See COPYING in the distribution."))))
2875caf5 1069
0352532e
AE
1070
1071(define-public python-simplejson
1072 (package
1073 (name "python-simplejson")
1074 (version "3.3.0")
1075 (source
1076 (origin
1077 (method url-fetch)
1078 (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-"
1079 version ".tar.gz"))
1080 (sha256
1081 (base32
1082 "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks"))))
1083 (build-system python-build-system)
1084 (home-page "http://simplejson.readthedocs.org/en/latest/")
1085 (synopsis
1086 "Json library for Python")
1087 (description
e881752c
AK
1088 "JSON (JavaScript Object Notation) is a subset of JavaScript
1089syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1090format.
0352532e
AE
1091
1092Simplejson exposes an API familiar to users of the standard library marshal
1093and pickle modules. It is the externally maintained version of the json
1094library contained in Python 2.6, but maintains compatibility with Python 2.5
1095and (currently) has significant performance advantages, even without using
1096the optional C extension for speedups. Simplejson is also supported on
1097Python 3.3+.")
1098 (license x11)))
1099
1100(define-public python2-simplejson
1101 (package-with-python2 python-simplejson))
421a80a2
AE
1102
1103
1104(define-public python2-pyicu
1105 (package
1106 (name "python2-pyicu")
569ac046 1107 (version "1.8")
421a80a2
AE
1108 (source
1109 (origin
1110 (method url-fetch)
1111 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1112 version ".tar.gz"))
1113 (sha256
1114 (base32
569ac046 1115 "1y361x82lnh9k9srmdx3q92z5iag112z7r5fxm0n1sfwb349yjdw"))))
421a80a2
AE
1116 (build-system python-build-system)
1117 (inputs
1118 `(("icu4c" ,icu4c)))
1119 (arguments
1120 `(#:python ,python-2 ; Python 3 works also, but needs special care for
1121 ; linking with libpython3.3m
1122 #:tests? #f)) ; no check target
1123 (home-page "http://pyicu.osafoundation.org/")
9e771e3b 1124 (synopsis "Python extension wrapping the ICU C++ API")
421a80a2
AE
1125 (description
1126 "PyICU is a python extension wrapping the ICU C++ API.")
1127 (license x11)))
cc20a22a
LC
1128
1129(define-public python2-dogtail
1130 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1131 ;; spaces in indentation" with Python 3.
1132 (package
1133 (name "python2-dogtail")
1134 (version "0.8.2")
1135 (source (origin
1136 (method url-fetch)
1137 (uri (string-append
1138 "https://fedorahosted.org/released/dogtail/dogtail-"
1139 version ".tar.gz"))
1140 (sha256
1141 (base32
1142 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1143 (build-system python-build-system)
1144 (arguments `(#:python ,python-2
1145 #:tests? #f)) ; invalid command "test"
1146 (home-page "https://fedorahosted.org/dogtail/")
1147 (synopsis "GUI test tool and automation framework written in ​Python")
1148 (description
35b9e423 1149 "Dogtail is a GUI test tool and automation framework written in Python.
cc20a22a
LC
1150It uses Accessibility (a11y) technologies to communicate with desktop
1151applications. dogtail scripts are written in Python and executed like any
1152other Python program.")
1153 (license gpl2+)))
515e6878 1154
011b18c3
LC
1155(define-public python2-empy
1156 (package
1157 (name "python2-empy")
1158 (version "3.3")
1159 (source (origin
1160 (method url-fetch)
1161 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1162 version ".tar.gz"))
1163 (sha256
1164 (base32
1165 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1166 (build-system python-build-system)
1167 (arguments
1168 `(#:python ,python-2
1169 #:phases (alist-replace
1170 'check
1171 (lambda _
1172 (zero? (system* "./test.sh")))
1173 %standard-phases)))
1174 (home-page "http://www.alcyone.com/software/empy/")
1175 (synopsis "Templating system for Python")
1176 (description
1177 "EmPy is a system for embedding Python expressions and statements in
1178template text; it takes an EmPy source file, processes it, and produces
1179output. This is accomplished via expansions, which are special signals to the
1cd4027c 1180EmPy system and are set off by a special prefix (by default the at sign, @@).
011b18c3
LC
1181EmPy can expand arbitrary Python expressions and statements in this way, as
1182well as a variety of special forms. Textual data not explicitly delimited in
1183this way is sent unaffected to the output, allowing Python to be used in
1184effect as a markup language. Also supported are callbacks via hooks,
1185recording and playback via diversions, and dynamic, chainable filters. The
1186system is highly configurable via command line options and embedded
1187commands.")
1188 (license lgpl2.1+)))
1189
8deeda0c
LC
1190(define-public python2-element-tree
1191 (package
1192 (name "python2-element-tree")
1193 (version "1.2.6")
1194 (source (origin
1195 (method url-fetch)
1196 (uri (string-append
1197 "http://effbot.org/media/downloads/elementtree-"
1198 version "-20050316.tar.gz"))
1199 (sha256
1200 (base32
1201 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1202 (build-system python-build-system)
1203 (arguments
1204 `(#:python ,python-2 ; seems to be part of Python 3
1205 #:tests? #f)) ; no 'test' sub-command
1206 (synopsis "Toolkit for XML processing in Python")
1207 (description
1208 "ElementTree is a Python library supporting lightweight XML processing.")
1209 (home-page "http://effbot.org/zone/element-index.htm")
1210 (license (x11-style "http://docs.python.org/2/license.html"
1211 "Like \"CWI LICENSE AGREEMENT FOR PYTHON \
12120.9.0 THROUGH 1.2\"."))))
1213
1214(define-public python2-pybugz
1215 (package
1216 (name "python2-pybugz")
1217 (version "0.6.11")
1218 (source (origin
1219 (method url-fetch)
1220 (uri (string-append
1221 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1222 version ".tar.gz"))
1223 (sha256
1224 (base32
6f194a1e
LC
1225 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1226 (patches (map search-patch
1227 (list "pybugz-stty.patch"
1228 "pybugz-encode-error.patch")))))
8deeda0c
LC
1229 (build-system python-build-system)
1230 (arguments
1231 `(#:python ,python-2 ; SyntaxError with Python 3
1232 #:tests? #f)) ; no 'test' sub-command
1233 (inputs `(("element-tree" ,python2-element-tree)))
1234 (synopsis "Python and command-line interface to Bugzilla")
1235 (description
1236 "PyBugz is a Python library and command-line tool to query the Bugzilla
1237bug tracking system. It is meant as an aid to speed up interaction with the
1238bug tracker.")
1239 (home-page "http://www.liquidx.net/pybugz/")
1240 (license gpl2)))
1241
a480bc41
EB
1242(define-public python-enum34
1243 (package
1244 (name "python-enum34")
1245 (version "1.0")
1246 (source
1247 (origin
1248 (method url-fetch)
1249 (uri (string-append "https://pypi.python.org/packages/source/e/"
1250 "enum34/enum34-" version ".tar.gz"))
1251 (sha256
1252 (base32
1253 "0dg6mpg9n4g9diyrbnbb5vd9d1qw9f265zwhknqy0mxh0cvmjjrq"))))
1254 (build-system python-build-system)
1255 (inputs
1256 `(("python-setuptools" ,python-setuptools)))
1257 (arguments
1258 `(#:phases
1259 (alist-replace
1260 'check
1261 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1262 %standard-phases)))
1263 (home-page "https://pypi.python.org/pypi/enum34")
1264 (synopsis "Backported Python 3.4 Enum")
1265 (description
1266 "Enum34 is the new Python stdlib enum module available in Python 3.4
1267backported for previous versions of Python from 2.4 to 3.3.")
1268 (license bsd-3)))
1269
1270(define-public python-parse-type
1271 (package
1272 (name "python-parse-type")
1273 (version "0.3.4")
1274 (source
1275 (origin
1276 (method url-fetch)
1277 (uri (string-append "https://pypi.python.org/packages/source/p/"
1278 "parse_type/parse_type-" version ".tar.gz"))
1279 (sha256
1280 (base32
1281 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1282 (build-system python-build-system)
1283 (inputs
1284 `(("python-setuptools" ,python-setuptools)
1285 ("python-six" ,python-six)
1286 ("python-parse" ,python-parse)
1287 ("python-enum34" ,python-enum34))) ;required for python<3.4
1288 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1289 (home-page "https://github.com/jenisys/parse_type")
1290 (synopsis "Extended parse module")
1291 (description
1292 "Parse_type extends the python parse module.")
1293 (license bsd-3)))
1294
1295(define-public python-parse
1296 (package
1297 (name "python-parse")
1298 (version "1.6.4")
1299 (source
1300 (origin
1301 (method url-fetch)
1302 (uri (string-append "https://pypi.python.org/packages/source/p/"
1303 "parse/parse-" version ".tar.gz"))
1304 (sha256
1305 (base32
1306 "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57"))))
1307 (build-system python-build-system)
1308 (arguments
1309 `(#:phases
1310 (alist-replace
1311 'check
1312 (lambda _ (zero? (system* "python" "test_parse.py")))
1313 %standard-phases)))
1314 (home-page "https://github.com/r1chardj0n3s/parse")
1315 (synopsis "Parse strings")
1316 (description
1317 "Parse strings using a specification based on the Python format()
1318syntax.")
1319 (license x11)))
1320
1321
515e6878
LC
1322(define-public scons
1323 (package
1324 (name "scons")
a3f61425 1325 (version "2.3.4")
515e6878
LC
1326 (source (origin
1327 (method url-fetch)
1328 (uri (string-append "mirror://sourceforge/scons/scons-"
1329 version ".tar.gz"))
1330 (sha256
1331 (base32
a3f61425 1332 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
515e6878
LC
1333 (build-system python-build-system)
1334 (arguments
1335 ;; With Python 3.x, fails to build with a syntax error.
1336 `(#:python ,python-2
1337 #:tests? #f)) ; no 'python setup.py test' command
1338 (home-page "http://scons.org/")
1339 (synopsis "Software construction tool written in Python")
1340 (description
1341 "SCons is a software construction tool. Think of SCons as an improved,
1342cross-platform substitute for the classic Make utility with integrated
1343functionality similar to autoconf/automake and compiler caches such as ccache.
1344In short, SCons is an easier, more reliable and faster way to build
1345software.")
1346 (license x11)))
011b18c3 1347
c15a5c0e
DT
1348(define-public python-extras
1349 (package
1350 (name "python-extras")
1351 (version "0.0.3")
1352 (source
1353 (origin
1354 (method url-fetch)
1355 (uri (string-append
1356 "https://pypi.python.org/packages/source/e/extras/extras-"
1357 version ".tar.gz"))
1358 (sha256
1359 (base32
1360 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1361 (build-system python-build-system)
1362 (inputs
1363 `(("python-setuptools" ,python-setuptools)))
1364 (arguments
1365 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1366 '(#:tests? #f))
1367 (home-page "https://github.com/testing-cabal/extras")
1368 (synopsis "Useful extensions to the Python standard library")
1369 (description
1370 "Extras is a set of extensions to the Python standard library.")
bd3fa666 1371 (license license:expat)))
c15a5c0e
DT
1372
1373(define-public python2-extras
1374 (package-with-python2 python-extras))
1375
56ea0efd
DT
1376(define-public python-mimeparse
1377 (package
1378 (name "python-mimeparse")
1379 (version "0.1.4")
1380 (source
1381 (origin
1382 (method url-fetch)
1383 (uri (string-append
1384 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1385 version ".tar.gz"))
1386 (sha256
1387 (base32
1388 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1389 (build-system python-build-system)
1390 (inputs
1391 `(("python-setuptools" ,python-setuptools)))
1392 (arguments
1393 '(#:tests? #f)) ; no setup.py test command
1394 (home-page
1395 "https://github.com/dbtsai/python-mimeparse")
9e771e3b 1396 (synopsis "Python library for parsing MIME types")
56ea0efd
DT
1397 (description
1398 "Mimeparse provides basic functions for parsing MIME type names and
1399matching them against a list of media-ranges.")
bd3fa666 1400 (license license:expat)))
56ea0efd
DT
1401
1402(define-public python2-mimeparse
1403 (package-with-python2 python-mimeparse))
1404
4435427e
DT
1405(define-public python-nose
1406 (package
1407 (name "python-nose")
1408 (version "1.3.4")
1409 (source
1410 (origin
1411 (method url-fetch)
1412 (uri (string-append
1413 "https://pypi.python.org/packages/source/n/nose/nose-"
1414 version ".tar.gz"))
1415 (sha256
1416 (base32
1417 "00qymfgwg4iam4xi0w9bnv7lcb3fypq1hzfafzgs1rfmwaj67g3n"))))
1418 (build-system python-build-system)
1419 (inputs
1420 `(("python-setuptools" ,python-setuptools)))
1421 (arguments
1422 '(#:tests? #f)) ; FIXME: test suite fails
1423 (home-page "http://readthedocs.org/docs/nose/")
1424 (synopsis "Python testing library")
1425 (description
1426 "Nose extends the unittest library to make testing easier.")
1427 (license lgpl2.0+)))
1428
1429(define-public python2-nose
1430 (package-with-python2 python-nose))
1431
6cd9c356
DT
1432(define-public python-unittest2
1433 (package
1434 (name "python-unittest2")
1435 (version "0.5.1")
1436 (source
1437 (origin
1438 (method url-fetch)
1439 (uri (string-append
1440 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1441 version ".tar.gz"))
1442 (sha256
1443 (base32
1444 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1445 (build-system python-build-system)
1446 (inputs
1447 `(("python-setuptools" ,python-setuptools)))
1448 (home-page "http://pypi.python.org/pypi/unittest2")
1449 (synopsis "Python unit testing library")
1450 (description
1451 "Unittest2 is a replacement for the unittest module in the Python
1452standard library.")
1453 (license psfl)))
1454
1455(define-public python2-unittest2
1456 (package (inherit python-unittest2)
1457 (name "python2-unittest2")
1458 (version "0.5.1")
1459 (source
1460 (origin
1461 (method url-fetch)
1462 (uri (string-append
1463 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1464 version ".tar.gz"))
1465 (sha256
1466 (base32
1467 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1468 (inputs
1469 `(("python2-setuptools" ,python-setuptools)))
1470 (arguments
1471 `(#:python ,python-2
1472 #:tests? #f)))) ; no setup.py test command
1473
542ad60f
DT
1474(define-public python-py
1475 (package
1476 (name "python-py")
1477 (version "1.4.23")
1478 (source
1479 (origin
1480 (method url-fetch)
1481 (uri (string-append
1482 "https://pypi.python.org/packages/source/p/py/py-"
1483 version ".tar.gz"))
1484 (sha256
1485 (base32
1486 "1jkhffpai419v5rickm2vz86p9bkg3b3kcm2k4bi5wfajhw2m3xs"))))
1487 (build-system python-build-system)
1488 (inputs
1489 `(("python-setuptools" ,python-setuptools)))
1490 (home-page "http://pylib.readthedocs.org/")
1491 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1492 (description
1493 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1494code introspection, and logging.")
bd3fa666 1495 (license license:expat)))
542ad60f
DT
1496
1497(define-public python2-py
1498 (package-with-python2 python-py))
1499
855d4761
DT
1500(define-public python-pytest
1501 (package
1502 (name "python-pytest")
1503 (version "2.6.1")
1504 (source
1505 (origin
1506 (method url-fetch)
1507 (uri (string-append
1508 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1509 version ".tar.gz"))
1510 (sha256
1511 (base32
1512 "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr"))
1513 (modules '((guix build utils)))
1514 (snippet
1515 ;; One of the tests involves the /usr directory, so it fails.
1516 '(substitute* "testing/test_argcomplete.py"
1517 (("def test_remove_dir_prefix\\(self\\):")
1518 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1519 (build-system python-build-system)
1520 (inputs
1521 `(("python-setuptools" ,python-setuptools)
1522 ("python-py" ,python-py)
1523 ("python-nose" ,python-nose)
1524 ("python-mock" ,python-mock)))
1525 (home-page "http://pytest.org")
1526 (synopsis "Python testing library")
1527 (description
1528 "Pytest is a testing tool that provides auto-discovery of test modules
1529and functions, detailed info on failing assert statements, modular fixtures,
1530and many external plugins.")
bd3fa666 1531 (license license:expat)))
855d4761
DT
1532
1533(define-public python2-pytest
1534 (package-with-python2 python-pytest))
1535
84d24017
DT
1536(define-public python-scripttest
1537 (package
1538 (name "python-scripttest")
1539 (version "1.3")
1540 (source
1541 (origin
1542 (method url-fetch)
1543 (uri (string-append
1544 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1545 version ".tar.gz"))
1546 (sha256
1547 (base32
1548 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1549 (build-system python-build-system)
1550 (inputs
1551 `(("python-setuptools" ,python-setuptools)
1552 ("python-pytest" ,python-pytest)))
1553 (home-page "http://pythonpaste.org/scripttest/")
1554 (synopsis "Python library to test command-line scripts")
1555 (description "Scripttest is a Python helper library for testing
1556interactive command-line applications. With it you can run a script in a
1557subprocess and see the output as well as any file modifications.")
bd3fa666 1558 (license license:expat)))
84d24017
DT
1559
1560(define-public python2-scripttest
1561 (package-with-python2 python-scripttest))
1562
d8fa80e1
DT
1563(define-public python-testtools
1564 (package
1565 (name "python-testtools")
1566 (version "1.0.0")
1567 (source
1568 (origin
1569 (method url-fetch)
1570 (uri (string-append
1571 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1572 version ".tar.gz"))
1573 (sha256
1574 (base32
1575 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1576 (build-system python-build-system)
0e88cbf8
CR
1577 (propagated-inputs
1578 `(("python-mimeparse" ,python-mimeparse)))
d8fa80e1
DT
1579 (inputs
1580 `(("python-setuptools" ,python-setuptools)
d8fa80e1
DT
1581 ("python-extras" ,python-extras)))
1582 (home-page "https://github.com/testing-cabal/testtools")
1583 (synopsis
1584 "Extensions to the Python standard library unit testing framework")
1585 (description
1586 "Testtools extends the Python standard library unit testing framework to
1587provide matchers, more debugging information, and cross-Python
1588compatibility.")
1589 (license psfl)))
1590
1591(define-public python2-testtools
1592 (package-with-python2 python-testtools))
1593
5bf3afea
DT
1594(define-public python-testscenarios
1595 (package
1596 (name "python-testscenarios")
1597 (version "0.4")
1598 (source
1599 (origin
1600 (method url-fetch)
1601 (uri (string-append
1602 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1603 version ".tar.gz"))
1604 (sha256
1605 (base32
1606 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1607 (build-system python-build-system)
1608 (inputs
1609 `(("python-setuptools" ,python-setuptools)
1610 ("python-testtools" ,python-testtools)
1611 ("python-mimeparse" ,python-mimeparse)))
1612 (home-page "https://launchpad.net/testscenarios")
1613 (synopsis "Pyunit extension for dependency injection")
1614 (description
1615 "Testscenarios provides clean dependency injection for Python unittest
1616style tests.")
1617 (license (list bsd-3 asl2.0)))) ; at the user's option
1618
1619(define-public python2-testscenarios
1620 (package-with-python2 python-testscenarios))
1621
dac79ecc
DT
1622(define-public python-testresources
1623 (package
1624 (name "python-testresources")
1625 (version "0.2.7")
1626 (source
1627 (origin
1628 (method url-fetch)
1629 (uri (string-append
1630 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1631 version ".tar.gz"))
1632 (sha256
1633 (base32
1634 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1635 (build-system python-build-system)
1636 (inputs
1637 `(("python-setuptools" ,python-setuptools)))
1638 (home-page "https://launchpad.net/testresources")
1639 (synopsis
1640 "Pyunit extension for managing test resources")
1641 (description
1642 "Testresources is an extension to Python's unittest to allow declarative
1643use of resources by test cases.")
1644 (license (list bsd-3 asl2.0)))) ; at the user's option
1645
1646(define-public python2-testresources
1647 (package-with-python2 python-testresources))
1648
070ab058
DT
1649(define-public python-subunit
1650 (package
1651 (name "python-subunit")
1652 (version "0.0.21")
1653 (source
1654 (origin
1655 (method url-fetch)
1656 (uri (string-append
1657 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1658 version ".tar.gz"))
1659 (sha256
1660 (base32
1661 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1662 (build-system python-build-system)
1663 (inputs
1664 `(("python-setuptools" ,python-setuptools)
1665 ("python-testtools" ,python-testtools)
1666 ("python-mimeparse" ,python-mimeparse)
1667 ("python-testscenarios" ,python-testscenarios)))
1668 (home-page "http://launchpad.net/subunit")
1669 (synopsis "Python implementation of the subunit protocol")
1670 (description
1671 "Python-subunit is a Python implementation of the subunit test streaming
1672protocol.")
1673 (license (list bsd-3 asl2.0)))) ; at the user's option
1674
1675(define-public python2-subunit
1676 (package-with-python2 python-subunit))
1677
cd49454b
DT
1678(define-public python-fixtures
1679 (package
1680 (name "python-fixtures")
1681 (version "0.3.16")
1682 (source
1683 (origin
1684 (method url-fetch)
1685 (uri (string-append
1686 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1687 version ".tar.gz"))
1688 (sha256
1689 (base32
1690 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1691 (build-system python-build-system)
1692 (inputs
1693 `(("python-setuptools" ,python-setuptools)))
1694 (arguments
1695 '(#:tests? #f)) ; no setup.py test command
1696 (home-page "https://launchpad.net/python-fixtures")
1697 (synopsis "Python test fixture library")
1698 (description
1699 "Fixtures provides a way to create reusable state, useful when writing
1700Python tests.")
1701 (license (list bsd-3 asl2.0)))) ; at user's option
1702
1703(define-public python2-fixtures
1704 (package-with-python2 python-fixtures))
1705
b24a0c00
DT
1706(define-public python-testrepository
1707 (package
1708 (name "python-testrepository")
1709 (version "0.0.20")
1710 (source
1711 (origin
1712 (method url-fetch)
1713 (uri (string-append
1714 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
1715 version ".tar.gz"))
1716 (sha256
1717 (base32
1718 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
1719 (build-system python-build-system)
05de40c5
CR
1720 (propagated-inputs
1721 `(("python-fixtures" ,python-fixtures)
1722 ("python-testtools" ,python-testtools)))
b24a0c00
DT
1723 (inputs
1724 `(("python-setuptools" ,python-setuptools)
b24a0c00 1725 ("python-subunit" ,python-subunit)
b24a0c00
DT
1726 ("python-mimeparse" ,python-mimeparse)))
1727 (home-page "https://launchpad.net/testrepository")
1728 (synopsis "Database for Python test results")
1729 (description "Testrepository provides a database of test results which can
1730be used as part of a developer's workflow to check things such as what tests
1731have failed since the last commit or what tests are currently failing.")
1732 (license (list bsd-3 asl2.0)))) ; at user's option
1733
1734(define-public python2-testrepository
1735 (package-with-python2 python-testrepository))
1736
243a009a
DT
1737(define-public python-coverage
1738 (package
1739 (name "python-coverage")
1740 (version "3.7.1")
1741 (source
1742 (origin
1743 (method url-fetch)
1744 (uri (string-append
1745 "https://pypi.python.org/packages/source/c/coverage/coverage-"
1746 version ".tar.gz"))
1747 (sha256
1748 (base32
1749 "0knlbq79g2ww6xzsyknj9rirrgrgc983dpa2d9nkdf31mb2a3bni"))))
1750 (build-system python-build-system)
1751 (inputs
1752 `(("python-setuptools" ,python-setuptools)))
1753 (home-page "http://nedbatchelder.com/code/coverage")
1754 (synopsis "Code coverage measurement for Python")
1755 (description
1756 "Coverage measures code coverage, typically during test execution. It
1757uses the code analysis tools and tracing hooks provided in the Python standard
1758library to determine which lines are executable, and which have been
1759executed.")
1760 (license bsd-3)))
1761
1762(define-public python2-coverage
1763 (package-with-python2 python-coverage))
1764
041358fb
DT
1765(define-public python-discover
1766 (package
1767 (name "python-discover")
1768 (version "0.4.0")
1769 (source
1770 (origin
1771 (method url-fetch)
1772 (uri (string-append
1773 "https://pypi.python.org/packages/source/d/discover/discover-"
1774 version ".tar.gz"))
1775 (sha256
1776 (base32
1777 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
1778 (build-system python-build-system)
1779 (inputs
1780 `(("python-setuptools" ,python-setuptools)))
1781 (home-page "http://pypi.python.org/pypi/discover/")
1782 (synopsis
1783 "Python test discovery for unittest")
1784 (description
1785 "Discover provides test discovery for unittest, a feature that has been
e881752c 1786backported from Python 2.7 for Python 2.4+.")
041358fb
DT
1787 (license bsd-3)))
1788
1789(define-public python2-discover
1790 (package-with-python2 python-discover))
1791
a480bc41
EB
1792(define-public behave
1793 (package
1794 (name "behave")
1795 (version "1.2.4")
1796 (source (origin
1797 (method url-fetch)
1798 (uri (string-append "https://pypi.python.org/packages/source/b/"
1799 name "/" name "-" version ".tar.gz"))
1800 (sha256
1801 (base32
1802 "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14"))))
1803 (build-system python-build-system)
1804 (inputs
1805 `(("python-setuptools" ,python-setuptools)
1806 ("python-six" ,python-six)
1807 ("python-enum43" ,python-enum34)
1808 ("python-parse" ,python-parse)
1809 ("python-parse-type" ,python-parse-type)))
1810 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
1811 ;PyHamcrest>=1.8
1812 (home-page "http://github.com/behave/behave")
1813 (synopsis "Python behavior-driven development")
1814 (description
1815 "Behave is a tool for behavior-driven development in python.
1816Behavior-driven development (or BDD) is an agile software development
1817technique that encourages collaboration between developers, QA and
1818non-technical or business participants in a software project. Behave uses
1819tests written in a natural language style, backed up by Python code.")
1820 (license x11)))
c7303d3c
DT
1821
1822(define-public python-exif-read
1823 (package
1824 (name "python-exif-read")
1825 (version "1.4.2")
1826 (source (origin
1827 (method url-fetch)
1828 (uri
1829 (string-append
1830 "https://pypi.python.org/packages/source/E/ExifRead/ExifRead-"
1831 version ".tar.gz"))
1832 (sha256
1833 (base32
1834 "17c627gcdmyc05hz4zk8qs4pjgw6rc68qzjzgz8gh1cmpsd7acf1"))))
1835 (build-system python-build-system)
1836 (inputs
1837 `(("python-setuptools" ,python-setuptools)))
1838 (arguments `(#:tests? #f)) ; no tests
1839 (home-page "https://github.com/ianare/exif-py")
1840 (synopsis "Python library to extract EXIF data from image files")
1841 (description
1842 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
1843files.")
1844 (license bsd-3)))
1845
1846(define-public python2-exif-read
1847 (package-with-python2 python-exif-read))
d5f89b22
DT
1848
1849(define-public python-pyld
1850 (package
1851 (name "python-pyld")
1852 (version "0.6.0")
1853 (source (origin
1854 (method url-fetch)
1855 (uri
1856 (string-append
1857 "https://pypi.python.org/packages/source/P/PyLD/PyLD-"
1858 version ".tar.gz"))
1859 (sha256
1860 (base32
1861 "1l9ymj85fsvayqplinzpk0kyiq6m74ps9xd3a9fhlxfn1rldf8x8"))))
1862 (build-system python-build-system)
1863 (inputs
1864 `(("python-setuptools" ,python-setuptools)))
1865 (arguments `(#:tests? #f)) ; no tests
1866 (home-page "http://github.com/digitalbazaar/pyld")
1867 (synopsis "Python implementation of the JSON-LD specification")
1868 (description
1869 "PyLD is an implementation of the JSON-LD specification.")
1870 (license bsd-3)))
1871
1872(define-public python2-pyld
1873 (package-with-python2 python-pyld))
3a1f9a68
DT
1874
1875(define-public python-certifi
1876 (package
1877 (name "python-certifi")
1878 (version "14.05.14")
1879 (source (origin
1880 (method url-fetch)
1881 (uri
1882 (string-append
1883 "https://pypi.python.org/packages/source/c/certifi/certifi-"
1884 version ".tar.gz"))
1885 (sha256
1886 (base32
1887 "0s8vxzfz6s4m6fvxc7z25k9j35w0rh6jkw3wwcd1az1mssncn6qy"))))
1888 (build-system python-build-system)
1889 (inputs
1890 `(("python-setuptools" ,python-setuptools)))
1891 (arguments `(#:tests? #f)) ; no tests
1892 (home-page "http://python-requests.org/")
1893 (synopsis "Python CA certificate bundle")
1894 (description
1895 "Certifi is a Python library that contains a CA certificate bundle, which
1896is used by the Requests library to verify HTTPS requests.")
1897 (license asl2.0)))
1898
1899(define-public python2-certifi
1900 (package-with-python2 python-certifi))
e6cfbd36 1901
12c270dd
RW
1902(define-public python-click
1903 (package
1904 (name "python-click")
1905 (version "4.0")
1906 (source
1907 (origin
1908 (method url-fetch)
1909 (uri (string-append
1910 "https://pypi.python.org/packages/source/c/click/click-"
1911 version ".tar.gz"))
1912 (sha256
1913 (base32 "0294x9g28w6zgswl0rsygkwi0wf6n480gf7fiiw5f9az3xhh77pl"))))
1914 (build-system python-build-system)
1915 (native-inputs
1916 `(("python-setuptools" ,python-setuptools)))
1917 (home-page "http://click.pocoo.org")
1918 (synopsis "Command line library for Python")
1919 (description
1920 "Click is a Python package for creating command line interfaces in a
1921composable way with as little code as necessary. Its name stands for
1922\"Command Line Interface Creation Kit\". It's highly configurable but comes
1923with sensible defaults out of the box.")
1924 (license bsd-3)))
1925
1926(define-public python2-click
1927 (package-with-python2 python-click))
1928
ae641128 1929(define-public python-requests
e6cfbd36 1930 (package
ae641128 1931 (name "python-requests")
e6cfbd36
DT
1932 (version "2.4.0")
1933 (source (origin
1934 (method url-fetch)
1935 (uri
1936 (string-append
1937 "https://pypi.python.org/packages/source/r/requests/requests-"
1938 version ".tar.gz"))
1939 (sha256
1940 (base32
1941 "0gknlfx1wakrrm1zi8gi03x2lzj4dsns0vjw0nsmgqvkphyf01vh"))))
1942 (build-system python-build-system)
1943 (inputs
1944 `(("python-setuptools" ,python-setuptools)
1945 ("python-certifi" ,python-certifi)))
ae641128 1946 (arguments `(#:tests? #f)) ; no tests
e6cfbd36
DT
1947 (home-page "http://python-requests.org/")
1948 (synopsis "Python HTTP library")
1949 (description
1950 "Requests is a Python HTTP client library. It aims to be easier to use
1951than Python’s urllib2 library.")
1952 (license asl2.0)))
864b5211 1953
ae641128
DT
1954(define-public python2-requests
1955 (package-with-python2 python-requests))
1956
864b5211
DT
1957(define-public python-jsonschema
1958 (package
1959 (name "python-jsonschema")
1960 (version "2.4.0")
1961 (source (origin
1962 (method url-fetch)
1963 (uri
1964 (string-append
1965 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
1966 version ".tar.gz"))
1967 (sha256
1968 (base32
1969 "1yik3031ziygvq66rj3mzfqdgxj29sg1bkfc46wsgi7lnbqs560j"))))
1970 (build-system python-build-system)
1971 (inputs
1972 `(("python-setuptools" ,python-setuptools)))
1973 (home-page "http://github.com/Julian/jsonschema")
1974 (synopsis "Implementation of JSON Schema for Python")
1975 (description
1976 "Jsonschema is an implementation of JSON Schema for Python.")
bd3fa666 1977 (license license:expat)))
864b5211
DT
1978
1979(define-public python2-jsonschema
1980 (package-with-python2 python-jsonschema))
850189b8
DT
1981
1982(define-public python-unidecode
1983 (package
1984 (name "python-unidecode")
1985 (version "0.04.16")
1986 (source (origin
1987 (method url-fetch)
1988 (uri
1989 (string-append
1990 "https://pypi.python.org/packages/source/U/Unidecode/Unidecode-"
1991 version ".tar.gz"))
1992 (sha256
1993 (base32
1994 "0yv56vc49rvippyxgxvcyz7jklc07ky38rcspax7p00sgmriiljc"))))
1995 (build-system python-build-system)
1996 (inputs
1997 `(("python-setuptools" ,python-setuptools)))
1998 (home-page "https://pypi.python.org/pypi/Unidecode")
1999 (synopsis "ASCII transliterations of Unicode text")
2000 (description
2001 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2002useful when integrating with legacy code that doesn't support Unicode, or for
2003ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2004machine identifiers from human-readable Unicode strings that should still be
2005somewhat intelligeble.")
2006 (license gpl2+)))
2007
2008(define-public python2-unidecode
2009 (package-with-python2 python-unidecode))
6d45fef4
DT
2010
2011(define-public python-pyjwt
2012 (package
2013 (name "python-pyjwt")
2014 (version "0.2.1")
2015 (source
2016 (origin
2017 (method url-fetch)
2018 (uri (string-append
2019 "https://pypi.python.org/packages/source/P/PyJWT/PyJWT-"
2020 version ".tar.gz"))
2021 (sha256
2022 (base32
2023 "1ahqblfy2sj3xz34wsa48cn9rp0dspzq56p54i5znmws3b8gml6g"))))
2024 (build-system python-build-system)
2025 (inputs
2026 `(("python-setuptools" ,python-setuptools)))
2027 (arguments
2028 '(#:tests? #f)) ; test suite doesn't work
2029 (home-page "http://github.com/progrium/pyjwt")
2030 (synopsis "JSON Web Token implementation in Python")
2031 (description
2032 "PyJWT is a JSON Web Token implementation written in Python.")
bd3fa666 2033 (license license:expat)))
6d45fef4
DT
2034
2035(define-public python2-pyjwt
2036 (package-with-python2 python-pyjwt))
2037
2cec1f6f
DT
2038(define-public python-oauthlib
2039 (package
2040 (name "python-oauthlib")
2041 (version "0.6.3")
2042 (source (origin
2043 (method url-fetch)
2044 (uri
2045 (string-append
2046 "https://pypi.python.org/packages/source/o/oauthlib/oauthlib-"
2047 version ".tar.gz"))
2048 (sha256
2049 (base32
2050 "1yaj3j64la4arwsbhbfmpnickzh3jpg9nlpyg409v8pp24isn48a"))))
2051 (build-system python-build-system)
2052 (inputs
2053 `(("python-setuptools" ,python-setuptools)
2054 ("python-pyjwt" ,python-pyjwt)
2055 ("python-pycrypto" ,python-pycrypto)
2056 ("python-nose" ,python-nose)
2057 ("python-mock" ,python-mock)))
2058 (home-page "https://github.com/idan/oauthlib")
2059 (synopsis "OAuth implementation for Python")
2060 (description
2061 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2062OAuth request-signing logic.")
2063 (license bsd-3)))
2064
2065(define-public python2-oauthlib
2066 (let ((base (package-with-python2 python-oauthlib)))
2067 (package
2068 (inherit base)
2cec1f6f
DT
2069 (inputs
2070 (append (package-inputs base)
2071 `(("python2-unittest2" ,python2-unittest2)))))))
ec5dbb5c
DT
2072
2073(define-public python-itsdangerous
2074 (package
2075 (name "python-itsdangerous")
2076 (version "0.24")
2077 (source
2078 (origin
2079 (method url-fetch)
2080 (uri (string-append
2081 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2082 version ".tar.gz"))
2083 (sha256
2084 (base32
2085 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2086 (build-system python-build-system)
2087 (inputs
2088 `(("python-setuptools" ,python-setuptools)))
2089 (home-page "http://github.com/mitsuhiko/itsdangerous")
2090 (synopsis "Python library for passing data to/from untrusted environments")
2091 (description
2092 "Itsdangerous provides various helpers to pass trusted data to untrusted
2093environments and back.")
2094 (license bsd-3)))
2095
2096(define-public python2-itsdangerous
2097 (package-with-python2 python-itsdangerous))
5731cae3 2098
8d12be1e
RW
2099(define-public python-pyyaml
2100 (package
2101 (name "python-pyyaml")
2102 (version "3.11")
2103 (source
2104 (origin
2105 (method url-fetch)
2106 (uri (string-append
2107 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2108 version ".tar.gz"))
2109 (sha256
2110 (base32
2111 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2112 (build-system python-build-system)
2113 (inputs
2114 `(("libyaml" ,libyaml)))
2115 (native-inputs
2116 `(("python-setuptools" ,python-setuptools)))
2117 (home-page "http://pyyaml.org/wiki/PyYAML")
2118 (synopsis "YAML parser and emitter for Python")
2119 (description
2120 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2121complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2122API, and sensible error messages. PyYAML supports standard YAML tags and
2123provides Python-specific tags that allow to represent an arbitrary Python
2124object.")
2125 (license license:expat)))
2126
2127(define-public python2-pyyaml
2128 (package-with-python2 python-pyyaml))
2129
5731cae3
DT
2130(define-public python-virtualenv
2131 (package
2132 (name "python-virtualenv")
2133 (version "1.11.6")
2134 (source
2135 (origin
2136 (method url-fetch)
2137 (uri (string-append
2138 "https://pypi.python.org/packages/source/v/virtualenv/virtualenv-"
2139 version ".tar.gz"))
2140 (sha256
2141 (base32
2142 "1xq4prmg25n9cz5zcvbqx68lmc3kl39by582vd8pzs9f3qalqyiy"))))
2143 (build-system python-build-system)
2144 (inputs
2145 `(("python-setuptools" ,python-setuptools)
2146 ("python-mock" ,python-mock)
2147 ("python-nose" ,python-nose)))
2148 (home-page "https://virtualenv.pypa.io/")
2149 (synopsis "Virtual Python environment builder")
2150 (description
2151 "Virtualenv is a tool to create isolated Python environments.")
bd3fa666 2152 (license license:expat)))
5731cae3
DT
2153
2154(define-public python2-virtualenv
2155 (package-with-python2 python-virtualenv))
8176d4d5
DT
2156
2157(define-public python-markupsafe
2158 (package
2159 (name "python-markupsafe")
2160 (version "0.23")
2161 (source
2162 (origin
2163 (method url-fetch)
2164 (uri (string-append
2165 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2166 version ".tar.gz"))
2167 (sha256
2168 (base32
2169 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2170 (build-system python-build-system)
2171 (inputs
2172 `(("python-setuptools" ,python-setuptools)))
2173 (home-page "http://github.com/mitsuhiko/markupsafe")
2174 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2175 (description
2176 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2177for Python.")
2178 (license bsd-3)))
2179
2180(define-public python2-markupsafe
2181 (package-with-python2 python-markupsafe))
fe34f0d1
DT
2182
2183(define-public python-jinja2
2184 (package
2185 (name "python-jinja2")
2186 (version "2.7.3")
2187 (source
2188 (origin
2189 (method url-fetch)
2190 (uri (string-append
2191 "https://pypi.python.org/packages/source/J/Jinja2/Jinja2-"
2192 version ".tar.gz"))
2193 (sha256
2194 (base32
2195 "1nwg9yfqgy421lncnm63k1zf9xkd1klc0jm0fr4p3dad01fsq91f"))))
2196 (build-system python-build-system)
2197 (inputs
2198 `(("python-setuptools" ,python-setuptools)
2199 ("python-markupsafe" ,python-markupsafe)))
2200 (home-page "http://jinja.pocoo.org/")
2201 (synopsis "Python template engine")
2202 (description
2203 "Jinja2 is a small but fast and easy to use stand-alone template engine
2204written in pure Python.")
2205 (license bsd-3)))
2206
2207(define-public python2-jinja2
2208 (package-with-python2 python-jinja2))
3580ab8b
DT
2209
2210(define-public python-docutils
2211 (package
2212 (name "python-docutils")
2213 (version "0.12")
2214 (source
2215 (origin
2216 (method url-fetch)
2217 (uri (string-append
2218 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2219 version ".tar.gz"))
2220 (sha256
2221 (base32
2222 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2223 (build-system python-build-system)
2224 (inputs
2225 `(("python-setuptools" ,python-setuptools)))
2226 (arguments
2227 '(#:tests? #f)) ; no setup.py test command
2228 (home-page "http://docutils.sourceforge.net/")
2229 (synopsis "Python Documentation Utilities")
2230 (description
2231 "Docutils is a modular system for processing documentation into useful
2232formats, such as HTML, XML, and LaTeX. For input Docutils supports
2233reStructuredText.")
2234 ;; Most of the source code is public domain, but some source files are
2235 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2236 (license (list public-domain psfl bsd-2 gpl3+))))
2237
2238(define-public python2-docutils
2239 (package-with-python2 python-docutils))
fb35b7c0
DT
2240
2241(define-public python-pygments
2242 (package
2243 (name "python-pygments")
2244 (version "1.6")
2245 (source
2246 (origin
2247 (method url-fetch)
2248 (uri (string-append
2249 "https://pypi.python.org/packages/source/P/Pygments/Pygments-"
2250 version ".tar.gz"))
2251 (sha256
2252 (base32
2253 "1h11r6ss8waih51vcksfvzghfxiav2f8svc0812fa5kmyz5d97kr"))))
2254 (build-system python-build-system)
2255 (inputs
2256 `(("python-setuptools" ,python-setuptools)))
2257 (home-page "http://pygments.org/")
2258 (synopsis "Syntax highlighting")
2259 (description
2260 "Pygments is a syntax highlighting package written in Python.")
2261 (license bsd-2)))
2262
2263(define-public python2-pygments
2264 (package-with-python2 python-pygments))
9dd6078d
DT
2265
2266(define-public python-sphinx
2267 (package
2268 (name "python-sphinx")
2269 (version "1.2.3")
2270 (source
2271 (origin
2272 (method url-fetch)
2273 (uri (string-append
2274 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2275 version ".tar.gz"))
2276 (sha256
2277 (base32
2278 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2279 (build-system python-build-system)
2280 (inputs
2281 `(("python-setuptools" ,python-setuptools)
2282 ("python-jinja2" ,python-jinja2)
2283 ("python-docutils" ,python-docutils)
2284 ("python-pygments" ,python-pygments)))
2285 (home-page "http://sphinx-doc.org/")
2286 (synopsis "Python documentation generator")
2287 (description "Sphinx is a tool that makes it easy to create documentation
2288for Python projects or other documents consisting of multiple reStructuredText
2289sources.")
2290 (license bsd-3)))
2291
2292(define-public python2-sphinx
2293 (package-with-python2 python-sphinx))
6888830b 2294
ad320b20
RW
2295(define-public python-sphinx-rtd-theme
2296 (package
2297 (name "python-sphinx-rtd-theme")
2298 (version "0.1.6")
2299 (source
2300 (origin
2301 (method url-fetch)
2302 (uri (string-append "https://pypi.python.org/packages/source/s/"
2303 "sphinx_rtd_theme/sphinx_rtd_theme-"
2304 version ".tar.gz"))
2305 (sha256
2306 (base32
2307 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2308 (build-system python-build-system)
2309 (arguments
2310 `(;; With standard flags, the install phase attempts to create a zip'd
2311 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2312 ;; before 1980'
2313 #:configure-flags '("--single-version-externally-managed"
2314 "--record=sphinx-rtd-theme.txt")))
2315 (native-inputs
2316 `(("python-setuptools" ,python-setuptools)))
2317 (inputs
2318 `(("python-docutils" ,python-docutils)
2319 ("python-sphinx" ,python-sphinx)))
2320 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2321 (synopsis "ReadTheDocs.org theme for Sphinx")
2322 (description "A theme for Sphinx used by ReadTheDocs.org.")
bd3fa666 2323 (license license:expat)))
ad320b20
RW
2324
2325(define-public python2-sphinx-rtd-theme
2326 (package-with-python2 python-sphinx-rtd-theme))
2327
f4de5b3b
CAW
2328(define-public python-feedgenerator
2329 (package
2330 (name "python-feedgenerator")
2331 (version "20150710.97185b7")
2332 (source
2333 ;; Using the git checkout for now because license file not added till
2334 ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39
2335 (origin
2336 (method git-fetch)
2337 (uri (git-reference
2338 (url "https://github.com/dmdm/feedgenerator-py3k.git")
2339 (commit "97185b7566c240c4bf5ed80db7d6c271204dab39")))
2340 (sha256
2341 (base32
2342 "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a"))))
2343 (arguments
2344 `(;; With standard flags, the install phase attempts to create a zip'd
2345 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2346 ;; before 1980'
2347 #:configure-flags '("--single-version-externally-managed"
2348 "--record=feedgenerator.txt")))
2349 (build-system python-build-system)
2350 (inputs
2351 `(("python-setuptools" ,python-setuptools)
2352 ("python-pytz" ,python-pytz)
2353 ("python-six" ,python-six)))
2354 (home-page
2355 "https://github.com/dmdm/feedgenerator-py3k.git")
2356 (synopsis
2357 "Standalone version of Django's Atom/RSS feed generator")
2358 (description
2359 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2360which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2361 (license bsd-3)))
2362
2363(define-public python2-feedgenerator
2364 (package-with-python2 python-feedgenerator))
2365
59ad30e3
CAW
2366(define-public python-blinker
2367 (package
2368 (name "python-blinker")
2369 (version "1.3")
2370 (source
2371 (origin
2372 (method url-fetch)
2373 (uri (string-append
2374 "https://pypi.python.org/packages/source/b/blinker/blinker-"
2375 version ".tar.gz"))
2376 (sha256
2377 (base32
2378 "0bvfxkmjx6bpa302pv7v2vw5rwr3dlzjzfdp3bj628i6144024b8"))))
2379 (build-system python-build-system)
2380 (native-inputs
2381 `(("python-setuptools" ,python-setuptools)))
2382 ;; No "test" command supplied to setuptools, so unless there's another way
2383 ;; to run tests, we're skipping them!
2384 (arguments '(#:tests? #f))
2385 (home-page "http://pythonhosted.org/blinker/")
2386 (synopsis "Fast, simple object-to-object and broadcast signaling")
2387 (description
2388 "Blinker provides a fast dispatching system that allows any number of
2389interested parties to subscribe to events, or \"signals\".")
2390 (license license:expat)))
2391
2392(define-public python2-blinker
2393 (package-with-python2 python-blinker))
2394
b8050e71
CAW
2395(define-public pelican
2396 (package
2397 (name "pelican")
2398 (version "3.6.0")
2399 (source
2400 (origin
2401 (method url-fetch)
2402 (uri (string-append
2403 "https://pypi.python.org/packages/source/p/pelican/pelican-"
2404 version ".tar.gz"))
2405 (sha256
2406 (base32
2407 "0lbkk902mqxpp452pp76n6qcjv6f99lq2zl204xmqyzcan9zr3ps"))))
2408 (build-system python-build-system)
2409 (native-inputs
2410 `(("python-setuptools" ,python-setuptools)))
2411 (propagated-inputs
2412 `(("python-feedgenerator" ,python-feedgenerator)
2413 ("python-jinja2" ,python-jinja2)
2414 ("python-pygments" ,python-pygments)
2415 ("python-docutils" ,python-docutils)
2416 ("python-pytz" ,python-pytz)
2417 ("python-blinker" ,python-blinker)
2418 ("python-unidecode" ,python-unidecode)
2419 ("python-six" ,python-six)
2420 ("python-dateutil-2" ,python-dateutil-2)))
2421 (home-page "http://getpelican.com/")
2422 (arguments
2423 `(;; XXX Requires a lot more packages to do unit tests :P
2424 #:tests? #f
2425 #:phases (modify-phases %standard-phases
2426 (add-before
2427 'install 'adjust-requires
2428 ;; Since feedgenerator is installed from git, it doesn't
2429 ;; conform to the version requirements.
2430 ;;
2431 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2432 ;; version requirement so setuptools doesn't get confused.
2433 (lambda _
2434 (substitute* "setup.py"
2435 (("['\"]feedgenerator.*?['\"]")
2436 "'feedgenerator'")))))))
2437 (synopsis "Python-based static site publishing system")
2438 (description
2439 "Pelican is a tool to generate a static blog from reStructuredText,
2440Markdown input files, and more. Pelican uses Jinja2 for templating
2441and is very extensible.")
2442 (license agpl3+)))
2443
240ca4aa
RW
2444(define-public python-scikit-learn
2445 (package
2446 (name "python-scikit-learn")
be0a4c26 2447 (version "0.16.1")
240ca4aa
RW
2448 (source
2449 (origin
2450 (method url-fetch)
2451 (uri (string-append
2452 "https://github.com/scikit-learn/scikit-learn/archive/"
2453 version ".tar.gz"))
2454 (sha256
2455 (base32
be0a4c26 2456 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
240ca4aa
RW
2457 (build-system python-build-system)
2458 (arguments
2459 `(#:phases
2460 (alist-cons-before
2f6b3d2e
RW
2461 'check 'set-HOME
2462 ;; some tests require access to "$HOME"
2463 (lambda _ (setenv "HOME" "/tmp"))
2464 ;; Tests can only be run after the library has been installed and not
2465 ;; within the source directory.
2466 (alist-cons-after
2467 'install 'check
2468 (lambda _
2469 (with-directory-excursion "/tmp"
2470 ;; With Python 3 one test of 3334 fails
2471 ;; (sklearn.tests.test_common.test_transformers); see
2472 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
2473 (system* "nosetests" "-v" "sklearn")))
2474 (alist-delete 'check %standard-phases)))))
240ca4aa 2475 (inputs
2f6b3d2e 2476 `(("openblas" ,openblas)
240ca4aa
RW
2477 ("python-nose" ,python-nose)))
2478 (propagated-inputs
2479 `(("python-numpy" ,python-numpy)
2480 ("python-scipy" ,python-scipy)))
2481 (home-page "http://scikit-learn.org/")
2482 (synopsis "Machine Learning in Python")
2483 (description
2484 "Scikit-learn provides simple and efficient tools for data
2485mining and data analysis.")
2486 (license bsd-3)))
2487
2488(define-public python2-scikit-learn
2489 (let ((scikit (package-with-python2 python-scikit-learn)))
2490 (package (inherit scikit)
2491 (propagated-inputs
2492 `(("python2-numpy" ,python2-numpy)
2493 ("python2-scipy" ,python2-scipy)
2494 ,@(alist-delete
2495 "python-numpy"
2496 (alist-delete
2497 "python-scipy" (package-propagated-inputs scikit))))))))
2498
12f8f9bb
RW
2499(define-public python-scikit-image
2500 (package
2501 (name "python-scikit-image")
2502 (version "0.11.3")
2503 (source
2504 (origin
2505 (method url-fetch)
2506 (uri (string-append
2507 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2508 version ".tar.gz"))
2509 (sha256
2510 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2511 (build-system python-build-system)
2512 (propagated-inputs
2513 `(("python-matplotlib" ,python-matplotlib)
2514 ("python-networkx" ,python-networkx)
2515 ("python-numpy" ,python-numpy)
2516 ("python-scipy" ,python-scipy)
2517 ("python-six" ,python-six)
2518 ("python-pillow" ,python-pillow)))
2519 (native-inputs
2520 `(("python-cython" ,python-cython)
2521 ("python-setuptools" ,python-setuptools)))
2522 (home-page "http://scikit-image.org/")
2523 (synopsis "Image processing in Python")
2524 (description
e881752c 2525 "Scikit-image is a collection of algorithms for image processing.")
12f8f9bb
RW
2526 (license bsd-3)))
2527
2528(define-public python2-scikit-image
2529 (let ((scikit-image (package-with-python2 python-scikit-image)))
2530 (package (inherit scikit-image)
2531 (native-inputs
2532 `(("python2-mock" ,python2-mock)
2533 ,@(package-native-inputs scikit-image)))
2534 (propagated-inputs
2535 `(("python2-pytz" ,python2-pytz)
2536 ,@(package-propagated-inputs scikit-image))))))
2537
5394a6a6
RW
2538(define-public python-redis
2539 (package
2540 (name "python-redis")
2541 (version "2.10.3")
2542 (source
2543 (origin
2544 (method url-fetch)
2545 (uri (string-append
2546 "https://pypi.python.org/packages/source/r/redis/redis-"
2547 version ".tar.gz"))
2548 (sha256
2549 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
2550 (build-system python-build-system)
2551 ;; Tests require a running Redis server
2552 (arguments '(#:tests? #f))
2553 (native-inputs
2554 `(("python-setuptools" ,python-setuptools)
2555 ("python-pytest" ,python-pytest)))
2556 (home-page "https://github.com/andymccurdy/redis-py")
2557 (synopsis "Redis Python client")
2558 (description
2559 "This package provides a Python interface to the Redis key-value store.")
2560 (license license:expat)))
2561
2562(define-public python2-redis
2563 (package-with-python2 python-redis))
2564
748cef5b
RW
2565(define-public python-rq
2566 (package
2567 (name "python-rq")
2568 (version "0.5.2")
2569 (source
2570 (origin
2571 (method url-fetch)
2572 (uri (string-append
2573 "https://pypi.python.org/packages/source/r/rq/rq-"
2574 version ".tar.gz"))
2575 (sha256
2576 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
2577 (build-system python-build-system)
2578 (propagated-inputs
2579 `(("python-click" ,python-click)
2580 ("python-redis" ,python-redis)))
2581 (native-inputs
2582 `(("python-setuptools" ,python-setuptools)))
2583 (home-page "http://python-rq.org/")
2584 (synopsis "Simple job queues for Python")
2585 (description
2586 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2587processing them in the background with workers. It is backed by Redis and it
2588is designed to have a low barrier to entry.")
2589 (license bsd-2)))
2590
2591(define-public python2-rq
2592 (package-with-python2 python-rq))
2593
6888830b
FB
2594(define-public python-cython
2595 (package
2596 (name "python-cython")
2597 (version "0.21.1")
2598 (source
2599 (origin
2600 (method url-fetch)
2601 (uri (string-append "http://cython.org/release/Cython-"
2602 version ".tar.gz"))
2603 (sha256
2604 (base32
2605 "0ddz2l2dvcy5hdkxx4xlfiwpccvwia7ixgcy4h0pdv46a4i4vxj3"))))
2606 (build-system python-build-system)
2607 ;; we need the full python package and not just the python-wrapper
2608 ;; because we need libpython3.3m.so
2609 (inputs
2610 `(("python" ,python)))
2611 (arguments
2612 `(#:phases
2613 (alist-cons-before
2614 'check 'set-HOME
2615 ;; some tests require access to "$HOME/.cython"
2616 (lambda* _ (setenv "HOME" "/tmp"))
2617 (alist-replace
2618 'check
2619 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))
2620 %standard-phases))))
2621 (home-page "http://cython.org/")
2622 (synopsis "C extensions for Python")
2623 (description "Cython is an optimising static compiler for both the Python
2624programming language and the extended Cython programming language. It makes
2625writing C extensions for Python as easy as Python itself.")
2626 (license asl2.0)))
2627
2628(define-public python2-cython
2629 (package (inherit (package-with-python2 python-cython))
2630 (name "python2-cython")
2631 (inputs
2632 `(("python-2" ,python-2))))) ; this is not automatically changed
0da98533
FB
2633
2634;; This version of numpy is missing the documentation and is only used to
2635;; build matplotlib which is required to build numpy's documentation.
2636(define python-numpy-bootstrap
2637 (package
2638 (name "python-numpy-bootstrap")
2639 (version "1.9.1")
2640 (source
2641 (origin
2642 (method url-fetch)
2643 (uri (string-append "mirror://sourceforge/numpy"
2644 "/numpy-" version ".tar.gz"))
2645 (sha256
2646 (base32
2647 "070ybfvpgfmiz2hs94x445hvkh9dh52nyi0m8jp5kdihgvhbnx80"))))
2648 (build-system python-build-system)
2649 (inputs
2650 `(("python-nose" ,python-nose)
cba256f8
RW
2651 ("openblas" ,openblas)
2652 ("lapack" ,lapack)))
0da98533 2653 (native-inputs
19afbea1 2654 `(("gfortran" ,gfortran)))
0da98533
FB
2655 (arguments
2656 `(#:phases
2657 (alist-cons-before
2658 'build 'set-environment-variables
2659 (lambda* (#:key inputs #:allow-other-keys)
dbdfe515
RW
2660 (call-with-output-file "site.cfg"
2661 (lambda (port)
cba256f8
RW
2662 (format port
2663 "[openblas]
dbdfe515
RW
2664libraries = openblas
2665library_dirs = ~a/lib
2666include_dirs = ~a/include
cba256f8
RW
2667
2668[lapack]
2669lapack_libs = lapack
2670library_dirs = ~a/lib
2671include_dirs = ~a/include
2672"
2673 (assoc-ref inputs "openblas")
2674 (assoc-ref inputs "openblas")
2675 (assoc-ref inputs "lapack")
2676 (assoc-ref inputs "lapack"))))
dbdfe515
RW
2677 ;; Use "gcc" executable, not "cc".
2678 (substitute* "numpy/distutils/system_info.py"
2679 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
2680 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
2681 #t)
6a843168
FB
2682 ;; Tests can only be run after the library has been installed and not
2683 ;; within the source directory.
2684 (alist-cons-after
2685 'install 'check
89b5c60e 2686 (lambda _
6a843168 2687 (with-directory-excursion "/tmp"
89b5c60e 2688 (zero? (system* "python" "-c"
6a843168 2689 "import numpy; numpy.test(verbose=2)"))))
89b5c60e
AE
2690 (alist-delete
2691 'check
6a843168 2692 %standard-phases)))))
0da98533
FB
2693 (home-page "http://www.numpy.org/")
2694 (synopsis "Fundamental package for scientific computing with Python")
2695 (description "NumPy is the fundamental package for scientific computing
e881752c 2696with Python. It contains among other things: a powerful N-dimensional array
0da98533
FB
2697object, sophisticated (broadcasting) functions, tools for integrating C/C++
2698and Fortran code, useful linear algebra, Fourier transform, and random number
2699capabilities.")
2700 (license bsd-3)))
2701
2702(define python2-numpy-bootstrap
2703 (package-with-python2 python-numpy-bootstrap))
15bfe6d6 2704
3a1bfe18
RW
2705(define-public python2-fastlmm
2706 (package
2707 (name "python2-fastlmm")
2708 (version "0.2.14")
2709 (source
2710 (origin
2711 (method url-fetch)
2712 (uri (string-append
2713 "https://pypi.python.org/packages/source/f/fastlmm"
2714 "/fastlmm-" version ".zip"))
2715 (sha256
2716 (base32
2717 "023sydkrc3yxad2bycar02jfswwlh4199kafzhf2bssyx2c3xa0l"))))
2718 (build-system python-build-system)
2719 (arguments
2720 `(#:python ,python-2)) ; only Python 2.7 is supported
2721 (propagated-inputs
2722 `(("python2-numpy" ,python2-numpy)
2723 ("python2-scipy" ,python2-scipy)
2724 ("python2-matplotlib" ,python2-matplotlib)
2725 ("python2-pandas" ,python2-pandas)
2726 ("python2-scikit-learn" ,python2-scikit-learn)
2727 ("python2-cython" ,python2-cython)
2728 ("python2-pysnptools" ,python2-pysnptools)))
2729 (native-inputs
2730 `(("unzip" ,unzip)
2731 ("python2-mock" ,python2-mock)
2732 ("python2-setuptools" ,python2-setuptools)))
2733 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
2734 (synopsis "Perform genome-wide association studies on large data sets")
2735 (description
2736 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
2737Models, is a program for performing both single-SNP and SNP-set genome-wide
2738association studies (GWAS) on extremely large data sets.")
2739 (license asl2.0)))
2740
2ee8869a
FB
2741(define-public python-numpy
2742 (package (inherit python-numpy-bootstrap)
2743 (name "python-numpy")
2744 (outputs '("out" "doc"))
89b5c60e 2745 (inputs
2ee8869a
FB
2746 `(("which" ,which)
2747 ("python-setuptools" ,python-setuptools)
2748 ("python-matplotlib" ,python-matplotlib)
2749 ("python-sphinx" ,python-sphinx)
2750 ("python-pyparsing" ,python-pyparsing)
2751 ("python-numpydoc" ,python-numpydoc)
2752 ,@(package-inputs python-numpy-bootstrap)))
2753 (native-inputs
2754 `(("pkg-config" ,pkg-config)
2755 ("texlive" ,texlive)
2756 ("texinfo" ,texinfo)
2757 ("perl" ,perl)
2758 ,@(package-native-inputs python-numpy-bootstrap)))
2759 (arguments
89b5c60e 2760 `(,@(substitute-keyword-arguments
2ee8869a
FB
2761 (package-arguments python-numpy-bootstrap)
2762 ((#:phases phases)
2763 `(alist-cons-after
2764 'install 'install-doc
2765 (lambda* (#:key outputs #:allow-other-keys)
2766 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
89b5c60e
AE
2767 (doc (string-append
2768 data "/doc/" ,name "-"
2ee8869a
FB
2769 ,(package-version python-numpy-bootstrap)))
2770 (info (string-append data "/info"))
2771 (html (string-append doc "/html"))
2772 (pyver ,(string-append "PYVER=")))
2773 (with-directory-excursion "doc"
2774 (mkdir-p html)
2775 (system* "make" "html" pyver)
2776 (system* "make" "latex" "PAPER=a4" pyver)
89b5c60e 2777 (system* "make" "-C" "build/latex"
2ee8869a
FB
2778 "all-pdf" "PAPER=a4" pyver)
2779 ;; FIXME: Generation of the info file fails.
2780 ;; (system* "make" "info" pyver)
2781 ;; (mkdir-p info)
2782 ;; (copy-file "build/texinfo/numpy.info"
2783 ;; (string-append info "/numpy.info"))
2784 (for-each (lambda (file)
2785 (copy-file (string-append "build/latex" file)
2786 (string-append doc file)))
2787 '("/numpy-ref.pdf" "/numpy-user.pdf"))
2788 (with-directory-excursion "build/html"
2789 (for-each (lambda (file)
2790 (let* ((dir (dirname file))
2791 (tgt-dir (string-append html "/" dir)))
2792 (unless (equal? "." dir)
2793 (mkdir-p tgt-dir))
2794 (copy-file file (string-append html "/" file))))
2795 (find-files "." ".*"))))))
2796 ,phases)))))))
2797
764c077b
LC
2798(define-public python2-numpy
2799 (let ((numpy (package-with-python2 python-numpy)))
2800 (package (inherit numpy)
88c26834
AE
2801 ;; Make sure we use exactly PYTHON2-MATPLOTLIB, which is customized for
2802 ;; Python 2.
2803 (inputs `(("python2-matplotlib" ,python2-matplotlib)
2804 ,@(alist-delete "python-matplotlib"
2805 (package-inputs numpy)))))))
2ee8869a 2806
15bfe6d6
FB
2807(define-public python-pyparsing
2808 (package
2809 (name "python-pyparsing")
e0669289 2810 (version "2.0.3")
15bfe6d6
FB
2811 (source
2812 (origin
2813 (method url-fetch)
2814 (uri (string-append "mirror://sourceforge/pyparsing"
2815 "/pyparsing-" version ".tar.gz"))
2816 (sha256
2817 (base32
e0669289 2818 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
15bfe6d6
FB
2819 (build-system python-build-system)
2820 (outputs '("out" "doc"))
2821 (arguments
2822 `(#:tests? #f ; no test target
2823 #:modules ((guix build python-build-system)
2824 (guix build utils))
2825 #:phases
2826 (alist-cons-after
2827 'install 'install-doc
2828 (lambda* (#:key outputs #:allow-other-keys)
89b5c60e 2829 (let* ((doc (string-append (assoc-ref outputs "doc")
15bfe6d6
FB
2830 "/share/doc/" ,name "-" ,version))
2831 (html-doc (string-append doc "/html"))
2832 (examples (string-append doc "/examples")))
2833 (mkdir-p html-doc)
2834 (mkdir-p examples)
89b5c60e 2835 (for-each
15bfe6d6 2836 (lambda (dir tgt)
89b5c60e 2837 (map (lambda (file)
15bfe6d6
FB
2838 (copy-file file (string-append tgt "/" (basename file))))
2839 (find-files dir ".*")))
2840 (list "docs" "htmldoc" "examples")
2841 (list doc html-doc examples))))
2842 %standard-phases)))
2843 (home-page "http://pyparsing.wikispaces.com")
2844 (synopsis "Python parsing class library")
2845 (description
2846 "The pyparsing module is an alternative approach to creating and
2847executing simple grammars, vs. the traditional lex/yacc approach, or the use
2848of regular expressions. The pyparsing module provides a library of classes
2849that client code uses to construct the grammar directly in Python code.")
bd3fa666 2850 (license license:expat)))
15bfe6d6
FB
2851
2852(define-public python2-pyparsing
2853 (package-with-python2 python-pyparsing))
2854
ec00de35
FB
2855(define-public python-numpydoc
2856 (package
2857 (name "python-numpydoc")
2858 (version "0.5")
2859 (source
2860 (origin
2861 (method url-fetch)
89b5c60e 2862 (uri (string-append
ec00de35
FB
2863 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
2864 version ".tar.gz"))
2865 (sha256
2866 (base32
5e4d8f67
AE
2867 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
2868 (modules '((guix build utils)))
2869 (snippet
2870 '(begin
2871 ;; Drop a test requiring matplotlib, which we cannot add as an
2872 ;; input since it would create a circular dependency: Extend the
2873 ;; test for Python 3, where it is already dropped, to Python 2.
2874 (substitute* "numpydoc/tests/test_plot_directive.py"
2875 (("3") "2"))))))
ec00de35
FB
2876 (build-system python-build-system)
2877 (inputs
2878 `(("python-setuptools" ,python-setuptools)
2879 ("python-docutils" ,python-docutils)
2880 ("python-sphinx" ,python-sphinx)
2881 ("python-nose" ,python-nose)))
2882 (home-page "https://pypi.python.org/pypi/numpydoc")
2883 (synopsis
2884 "Numpy's Sphinx extensions")
2885 (description
2886 "Sphinx extension to support docstrings in Numpy format.")
2887 (license bsd-2)))
2888
2889(define-public python2-numpydoc
5e4d8f67 2890 (package-with-python2 python-numpydoc))
1c65314c
FB
2891
2892(define-public python-matplotlib
2893 (package
2894 (name "python-matplotlib")
2895 (version "1.4.2")
2896 (source
2897 (origin
2898 (method url-fetch)
2899 (uri (string-append "mirror://sourceforge/matplotlib"
2900 "/matplotlib-" version ".tar.gz"))
2901 (sha256
2902 (base32
2903 "0m6v9nwdldlwk22gcd339zg6mny5m301fxgks7z8sb8m9wawg8qp"))))
2904 (build-system python-build-system)
2905 (outputs '("out" "doc"))
25f9a068
FB
2906 (propagated-inputs ; the following packages are all needed at run time
2907 `(("python-pyparsing" ,python-pyparsing)
2908 ("python-pygobject" ,python-pygobject)
2909 ("gobject-introspection" ,gobject-introspection)
2910 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
2911 ;; from 'gtk+') provides the required 'typelib' files used by
2912 ;; 'gobject-introspection'. The location of these files is set with the
2913 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
2914 ;; is done automatically by a 'native-search-path' procedure. However,
2915 ;; at run-time the user must set this variable as follows:
2916 ;;
2917 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
25f9a068
FB
2918 ("gtk+" ,gtk+)
2919 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
2920 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
2921 ;; object. For this reason we need to import both libraries.
2922 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
2923 ("python-pycairo" ,python-pycairo)
2924 ("python-cairocffi" ,python-cairocffi)))
1c65314c
FB
2925 (inputs
2926 `(("python-setuptools" ,python-setuptools)
2927 ("python-dateutil" ,python-dateutil-2)
1c65314c
FB
2928 ("python-six" ,python-six)
2929 ("python-pytz" ,python-pytz)
2930 ("python-numpy" ,python-numpy-bootstrap)
2931 ("python-sphinx" ,python-sphinx)
2932 ("python-numpydoc" ,python-numpydoc)
2933 ("python-nose" ,python-nose)
2934 ("python-mock" ,python-mock)
2935 ("libpng" ,libpng)
2936 ("imagemagick" ,imagemagick)
2937 ("freetype" ,freetype)
25f9a068
FB
2938 ("cairo" ,cairo)
2939 ("glib" ,glib)
4e7a137a 2940 ("python-pillow" ,python-pillow)
1c65314c 2941 ;; FIXME: Add backends when available.
1c65314c
FB
2942 ;("python-wxpython" ,python-wxpython)
2943 ;("python-pyqt" ,python-pyqt)
2944 ))
2945 (native-inputs
2946 `(("pkg-config" ,pkg-config)
2947 ("texlive" ,texlive)
2948 ("texinfo" ,texinfo)))
2949 (arguments
2950 `(#:phases
25f9a068
FB
2951 (alist-cons-before
2952 'build 'configure-environment
2953 (lambda* (#:key outputs inputs #:allow-other-keys)
2954 (let ((cairo (assoc-ref inputs "cairo"))
2955 (gtk+ (assoc-ref inputs "gtk+")))
2956 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
2957 ;; has not effect.
25f9a068
FB
2958 (setenv "LD_LIBRARY_PATH"
2959 (string-append cairo "/lib:" gtk+ "/lib"))
2960 (setenv "HOME" (getcwd))
2961 (call-with-output-file "setup.cfg"
2962 (lambda (port)
2963 (format port "[rc_options]~%
2964backend = GTK3Agg~%")))))
2965 (alist-cons-after
2966 'install 'install-doc
2967 (lambda* (#:key outputs #:allow-other-keys)
2968 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
2969 (doc (string-append data "/doc/" ,name "-" ,version))
2970 (info (string-append data "/info"))
2971 (html (string-append doc "/html")))
2972 (with-directory-excursion "doc"
25f9a068
FB
2973 ;; Produce pdf in 'A4' format.
2974 (substitute* (find-files "." "conf\\.py")
2975 (("latex_paper_size = 'letter'")
2976 "latex_paper_size = 'a4'"))
2977 (mkdir-p html)
2978 (mkdir-p info)
2979 ;; The doc recommends to run the 'html' target twice.
2980 (system* "python" "make.py" "html")
2981 (system* "python" "make.py" "html")
2982 (system* "python" "make.py" "latex")
2983 (system* "python" "make.py" "texinfo")
2984 (copy-file "build/texinfo/matplotlib.info"
2985 (string-append info "/matplotlib.info"))
2986 (copy-file "build/latex/Matplotlib.pdf"
2987 (string-append doc "/Matplotlib.pdf"))
2988 (copy-recursively "build/html" html))))
2989 %standard-phases))))
1c65314c
FB
2990 (home-page "http://matplotlib.org")
2991 (synopsis "2D plotting library for Python")
2992 (description
2993 "Matplotlib is a Python 2D plotting library which produces publication
2994quality figures in a variety of hardcopy formats and interactive environments
2995across platforms. Matplotlib can be used in Python scripts, the python and
2996ipython shell, web application servers, and six graphical user interface
2997toolkits.")
2998 (license psfl)))
2999
764c077b
LC
3000(define-public python2-matplotlib
3001 (let ((matplotlib (package-with-python2 python-matplotlib)))
3002 (package (inherit matplotlib)
88c26834
AE
3003 ;; Make sure to use special packages for Python 2 instead
3004 ;; of those automatically rewritten by package-with-python2.
89b5c60e 3005 (propagated-inputs
7ca0dbc3 3006 `(("python2-pycairo" ,python2-pycairo)
764c077b
LC
3007 ("python2-pygobject-2" ,python2-pygobject-2)
3008 ,@(alist-delete "python-pycairo"
3009 (alist-delete "python-pygobject"
89b5c60e 3010 (package-propagated-inputs
88c26834 3011 matplotlib))))))))
94914805 3012
0dde6232
RW
3013(define-public python2-pysnptools
3014 (package
3015 (name "python2-pysnptools")
3016 (version "0.2.13")
3017 (source
3018 (origin
3019 (method url-fetch)
3020 (uri (string-append
3021 "https://pypi.python.org/packages/source/p/pysnptools"
3022 "/pysnptools-" version ".zip"))
3023 (sha256
3024 (base32
3025 "1rzf5qvwfvd2pp84b14pb2gdvxdk5avnj7rb41ac8gndpkr9g6ib"))))
3026 (build-system python-build-system)
3027 (arguments
3028 `(#:python ,python-2)) ; only Python 2.7 is supported
3029 (propagated-inputs
3030 `(("python2-numpy" ,python2-numpy)
3031 ("python2-scipy" ,python2-scipy)
3032 ("python2-pandas" ,python2-pandas)
3033 ("python2-cython" ,python2-cython)))
3034 (native-inputs
3035 `(("unzip" ,unzip)
3036 ("python2-setuptools" ,python2-setuptools)))
3037 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3038 (synopsis "Library for reading and manipulating genetic data")
3039 (description
3040 "PySnpTools is a library for reading and manipulating genetic data. It
3041can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3042those files. It can also efficiently manipulate ranges of integers using set
3043operators such as union, intersection, and difference.")
3044 (license asl2.0)))
3045
c9b1b4f9
RW
3046(define-public python-rpy2
3047 (package
3048 (name "python-rpy2")
3049 (version "2.6.0")
3050 (source
3051 (origin
3052 (method url-fetch)
3053 (uri (string-append "https://pypi.python.org/packages/source/r/rpy2"
3054 "/rpy2-" version ".tar.gz"))
3055 (sha256
3056 (base32
3057 "1dp4l8hpv0jpf4crz4wis6in3lvwk86cr5zvpw410y4a07rrbqjk"))))
3058 (build-system python-build-system)
3059 (inputs
3060 `(("python-six" ,python-six)
3061 ("readline" ,readline)
3062 ("icu4c" ,icu4c)
3063 ("pcre" ,pcre)
3064 ("r" ,r)))
3065 (native-inputs
3066 `(("python-setuptools" ,python-setuptools)))
3067 (home-page "http://rpy.sourceforge.net/")
3068 (synopsis "Python interface to the R language")
3069 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3070low-level interface to R from Python, a proposed high-level interface,
3071including wrappers to graphical libraries, as well as R-like structures and
3072functions.")
3073 (license gpl3+)))
3074
3075(define-public python2-rpy2
3076 (let ((rpy2 (package-with-python2 python-rpy2)))
3077 (package (inherit rpy2)
3078 (native-inputs
3079 `(("python2-singledispatch" ,python2-singledispatch)
3080 ,@(package-native-inputs rpy2))))))
3081
bb986599
FB
3082(define-public python-scipy
3083 (package
3084 (name "python-scipy")
da6ce3f1 3085 (version "0.15.0")
bb986599
FB
3086 (source
3087 (origin
3088 (method url-fetch)
3089 (uri (string-append "mirror://sourceforge/scipy"
da6ce3f1 3090 "/scipy-" version ".tar.xz"))
bb986599
FB
3091 (sha256
3092 (base32
da6ce3f1 3093 "0fsqi05s035d7p6s8h3h2pvk1axias16chy17rw9l1bxvrfhmncf"))))
bb986599
FB
3094 (build-system python-build-system)
3095 (inputs
3096 `(("python-numpy" ,python-numpy)
3097 ("python-matplotlib" ,python-matplotlib)
3098 ("python-pyparsing" ,python-pyparsing)
3099 ("python-nose" ,python-nose)
3100 ("python-sphinx" ,python-sphinx)
719b01c1
RW
3101 ("lapack" ,lapack)
3102 ("openblas" ,openblas)))
bb986599 3103 (native-inputs
19afbea1 3104 `(("gfortran" ,gfortran)
bb986599
FB
3105 ("texlive" ,texlive)
3106 ("perl" ,perl)))
3107 (outputs '("out" "doc"))
3108 (arguments
3109 `(#:phases
3110 (alist-cons-before
719b01c1 3111 'build 'configure-openblas
bb986599 3112 (lambda* (#:key inputs #:allow-other-keys)
719b01c1
RW
3113 (call-with-output-file "site.cfg"
3114 (lambda (port)
3115 (format port
3116 "[blas]
3117libraries = openblas
3118library_dirs = ~a/lib
3119include_dirs = ~a/include
3120[atlas]
3121library_dirs = ~a/lib
3122atlas_libs = openblas
3123"
3124 (assoc-ref inputs "openblas")
3125 (assoc-ref inputs "openblas")
3126 (assoc-ref inputs "openblas"))))
3127 #t)
bb986599
FB
3128 (alist-cons-after
3129 'install 'install-doc
3130 (lambda* (#:key outputs #:allow-other-keys)
3131 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3132 (doc (string-append data "/doc/" ,name "-" ,version))
3133 (html (string-append doc "/html"))
3134 (pyver ,(string-append "PYVER=")))
3135 (with-directory-excursion "doc"
bb986599
FB
3136 ;; Fix generation of images for mathematical expressions.
3137 (substitute* (find-files "source" "conf\\.py")
3138 (("pngmath_use_preview = True")
3139 "pngmath_use_preview = False"))
3140 (mkdir-p html)
3141 (system* "make" "html" pyver)
3142 (system* "make" "latex" "PAPER=a4" pyver)
3143 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3144 (copy-file "build/latex/scipy-ref.pdf"
3145 (string-append doc "/scipy-ref.pdf"))
3146 (with-directory-excursion "build/html"
3147 (for-each (lambda (file)
3148 (let* ((dir (dirname file))
3149 (tgt-dir (string-append html "/" dir)))
3150 (unless (equal? "." dir)
3151 (mkdir-p tgt-dir))
3152 (copy-file file (string-append html "/" file))))
3153 (find-files "." ".*"))))))
3154 ;; Tests can only be run after the library has been installed and not
3155 ;; within the source directory.
3156 (alist-cons-after
3157 'install 'check
89b5c60e 3158 (lambda _
bb986599
FB
3159 (with-directory-excursion "/tmp"
3160 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
89b5c60e
AE
3161 (alist-delete
3162 'check
bb986599
FB
3163 %standard-phases))))))
3164 (home-page "http://www.scipy.org/")
3165 (synopsis "The Scipy library provides efficient numerical routines")
3166 (description "The SciPy library is one of the core packages that make up
3167the SciPy stack. It provides many user-friendly and efficient numerical
3168routines such as routines for numerical integration and optimization.")
3169 (license bsd-3)))
3170
764c077b
LC
3171(define-public python2-scipy
3172 (let ((scipy (package-with-python2 python-scipy)))
3173 (package (inherit scipy)
3174 ;; Use packages customized for python-2.
3175 (inputs `(("python2-matplotlib" ,python2-matplotlib)
3176 ("python2-numpy" ,python2-numpy)
89b5c60e
AE
3177 ,@(alist-delete "python-matplotlib"
3178 (alist-delete "python-numpy"
764c077b 3179 (package-inputs scipy))))))))
bb986599 3180
94914805
EB
3181(define-public python-sqlalchemy
3182 (package
3183 (name "python-sqlalchemy")
3184 (version "0.9.7")
3185 (source
3186 (origin
3187 (method url-fetch)
3188 (uri (string-append "https://pypi.python.org/packages/source/S/"
3189 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3190 (sha256
3191 (base32
3192 "059ayifj5l08v6vv56anhyibyllscn10dlzr2fcw68gz1hfjdzsz"))))
3193 (build-system python-build-system)
3194 (native-inputs
3195 `(("python-cython" ,python-cython) ;for c extensions
3196 ("python-pytest" ,python-pytest)
3197 ("python-mock" ,python-mock))) ;for tests
3198 (arguments
3199 `(#:phases (alist-replace
3200 'check
3201 (lambda _ (zero? (system* "py.test")))
3202 %standard-phases)))
3203 (home-page "http://www.sqlalchemy.org")
3204 (synopsis "Database abstraction library")
3205 (description
3206 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3207gives application developers the full power and flexibility of SQL. It
3208provides a full suite of well known enterprise-level persistence patterns,
3209designed for efficient and high-performing database access, adapted into a
3210simple and Pythonic domain language.")
3211 (license x11)))
3212
3213(define-public python2-sqlalchemy
3214 (package-with-python2 python-sqlalchemy))
c937562e 3215
1671c07c
EB
3216(define-public python-distutils-extra
3217 (package
3218 (name "python-distutils-extra")
3219 (version "2.38")
3220 (source
3221 (origin
3222 (method url-fetch)
3223 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3224 version "/+download/python-distutils-extra-"
3225 version ".tar.gz"))
3226 (sha256
3227 (base32
3228 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3229 (build-system python-build-system)
3230 (native-inputs
3231 `(("python-setuptools" ,python-setuptools)))
3232 (home-page "https://launchpad.net/python-distutils-extra/")
3233 (synopsis "Enhancements to Python's distutils")
3234 (description
3235 "The python-distutils-extra module enables you to easily integrate
3236gettext support, themed icons, and scrollkeeper-based documentation into
3237Python's distutils.")
3238 (license gpl2)))
3239
3240(define-public python2-distutils-extra
3241 (package-with-python2 python-distutils-extra))
ea5456c8
EB
3242
3243(define-public python2-elib.intl
3244 (package
3245 (name "python2-elib.intl")
3246 (version "0.0.3")
3247 (source
3248 (origin
3249 ;; This project doesn't tag releases or publish tarballs, so we take
3250 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3251 (method git-fetch)
3252 (uri (git-reference
3253 (url "https://github.com/dieterv/elib.intl.git")
3254 (commit "d09997cfef")))
3255 (sha256
3256 (base32
3257 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3258 (build-system python-build-system)
3259 (native-inputs
3260 `(("python2-setuptools" ,python2-setuptools)))
3261 (arguments
3262 ;; incompatible with Python 3 (exception syntax)
3263 `(#:python ,python-2
3264 #:tests? #f
3265 ;; With standard flags, the install phase attempts to create a zip'd
3266 ;; egg file, and fails with an error: 'ZIP does not support timestamps
3267 ;; before 1980'
3268 #:configure-flags '("--single-version-externally-managed"
3269 "--record=elib.txt")))
3270 (home-page "https://github.com/dieterv/elib.intl")
3271 (synopsis "Enhanced internationalization for Python")
3272 (description
3273 "The elib.intl module provides enhanced internationalization (I18N)
3274services for your Python modules and applications.")
3275 (license lgpl3+)))
3276
c937562e
EB
3277(define-public python-pillow
3278 (package
3279 (name "python-pillow")
5ff408d9 3280 (version "2.8.1")
c937562e
EB
3281 (source
3282 (origin
3283 (method url-fetch)
3284 (uri (string-append "https://pypi.python.org/packages/source/P/"
3285 "Pillow/Pillow-" version ".tar.gz"))
3286 (sha256
3287 (base32
5ff408d9 3288 "15n92axxph2s3kvg68bki9gv3nzwgq7130kp7wbblpi1l0cc2q47"))))
c937562e
EB
3289 (build-system python-build-system)
3290 (native-inputs
3291 `(("python-setuptools" ,python-setuptools)
3292 ("python-nose" ,python-nose)))
3293 (inputs
5ff408d9
SB
3294 `(("freetype" ,freetype)
3295 ("lcms" ,lcms)
c937562e
EB
3296 ("zlib" ,zlib)
3297 ("libjpeg" ,libjpeg)
3298 ("openjpeg" ,openjpeg)
5ff408d9
SB
3299 ("libtiff" ,libtiff)
3300 ("libwebp" ,libwebp)))
c937562e
EB
3301 (propagated-inputs
3302 `(;; Used at runtime for pkg_resources
3303 ("python-setuptools" ,python-setuptools)))
3304 (arguments
e5358a6b
LC
3305 `(#:phases (modify-phases %standard-phases
3306 (add-before
3307 'install 'disable-egg-compression
3308 (lambda _
3309 ;; Leave the .egg uncompressed since compressing it would
3310 ;; prevent the GC from identifying run-time dependencies.
3311 ;; See <http://bugs.gnu.org/20765>.
3312 (let ((port (open-file "setup.cfg" "a")))
3313 (display "\n[easy_install]\nzip_ok = 0\n"
3314 port)
3315 (close-port port)
3316 #t)))
3317 (add-after
3318 'install 'check-installed
3319 (lambda _
3320 (begin
3321 (setenv "HOME" (getcwd))
3322 (and (zero? (system* "python" "selftest.py"
3323 "--installed"))
3324 (zero? (system* "python" "test-installed.py"))))))
3325 (delete 'check))))
c937562e
EB
3326 (home-page "https://pypi.python.org/pypi/Pillow")
3327 (synopsis "Fork of the Python Imaging Library")
3328 (description
3329 "The Python Imaging Library adds image processing capabilities to your
3330Python interpreter. This library provides extensive file format support, an
3331efficient internal representation, and fairly powerful image processing
3332capabilities. The core image library is designed for fast access to data
3333stored in a few basic pixel formats. It should provide a solid foundation for
3334a general image processing tool.")
3335 (license (x11-style
3336 "http://www.pythonware.com/products/pil/license.htm"
3337 "The PIL Software License"))))
3338
3339(define-public python2-pillow
3340 (package-with-python2 python-pillow))
bb986599 3341
a415f036
FB
3342(define-public python-pycparser
3343 (package
3344 (name "python-pycparser")
3345 (version "2.10")
3346 (source
3347 (origin
3348 (method url-fetch)
3349 (uri (string-append "https://pypi.python.org/packages/source/p/"
3350 "pycparser/pycparser-" version ".tar.gz"))
3351 (sha256
3352 (base32
3353 "0v5qfq03yvd1pi0dwlgfai0p3dh9bq94pydn19c4pdn0c6v9hzcm"))))
3354 (outputs '("out" "doc"))
3355 (build-system python-build-system)
3356 (native-inputs
3357 `(("pkg-config" ,pkg-config)
3358 ("python-setuptools" ,python-setuptools)))
3359 (arguments
89b5c60e 3360 `(#:phases
a415f036
FB
3361 (alist-replace
3362 'check
3363 (lambda _
3364 (with-directory-excursion "tests"
3365 (zero? (system* "python" "all_tests.py"))))
3366 (alist-cons-after
3367 'install 'install-doc
3368 (lambda* (#:key outputs #:allow-other-keys)
3369 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3370 (doc (string-append data "/doc/" ,name "-" ,version))
3371 (examples (string-append doc "/examples")))
3372 (mkdir-p examples)
3373 (for-each (lambda (file)
3374 (copy-file (string-append "." file)
3375 (string-append doc file)))
3376 '("/README.rst" "/CHANGES" "/LICENSE"))
3377 (copy-recursively "examples" examples)))
3378 %standard-phases))))
3379 (home-page "https://github.com/eliben/pycparser")
3380 (synopsis "C parser in Python")
3381 (description
3382 "Pycparser is a complete parser of the C language, written in pure Python
3383using the PLY parsing library. It parses C code into an AST and can serve as
3384a front-end for C compilers or analysis tools.")
3385 (license bsd-3)))
3386
3387(define-public python2-pycparser
3388 (package-with-python2 python-pycparser))
57c3f716
FB
3389
3390(define-public python-cffi
3391 (package
3392 (name "python-cffi")
4179f952 3393 (version "1.2.1")
57c3f716
FB
3394 (source
3395 (origin
3396 (method url-fetch)
3397 (uri (string-append "https://pypi.python.org/packages/source/c/"
3398 "cffi/cffi-" version ".tar.gz"))
89b5c60e 3399 (sha256
4179f952 3400 (base32 "0g8yfzinry1vsj6d1jlnd19338bh92lhhk207ksy4lm1n3g73dga"))))
57c3f716
FB
3401 (build-system python-build-system)
3402 (outputs '("out" "doc"))
3403 (inputs
3404 `(("libffi" ,libffi)))
3405 (propagated-inputs ; required at run-time
3406 `(("python-pycparser" ,python-pycparser)))
3407 (native-inputs
3408 `(("pkg-config" ,pkg-config)
3409 ("python-sphinx" ,python-sphinx)
4179f952 3410 ("python-pytest" ,python-pytest)
57c3f716
FB
3411 ("python-setuptools" ,python-setuptools)))
3412 (arguments
4179f952 3413 `(#:phases
57c3f716
FB
3414 (alist-cons-after
3415 'install 'install-doc
3416 (lambda* (#:key outputs #:allow-other-keys)
3417 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3418 (doc (string-append data "/doc/" ,name "-" ,version))
3419 (html (string-append doc "/html")))
3420 (with-directory-excursion "doc"
3421 (system* "make" "html")
3422 (mkdir-p html)
3423 (copy-recursively "build/html" html))
3424 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
3425 %standard-phases)))
3426 (home-page "http://cffi.readthedocs.org")
3427 (synopsis "Foreign function interface for Python")
3428 (description
3429 "Foreign Function Interface for Python calling C code.")
bd3fa666 3430 (license license:expat)))
57c3f716
FB
3431
3432(define-public python2-cffi
3433 (package-with-python2 python-cffi))
6fa14469
FB
3434
3435(define-public python-xcffib
3436 (package
3437 (name "python-xcffib")
3438 (version "0.1.9")
3439 (source
3440 (origin
3441 (method url-fetch)
3442 (uri (string-append "https://pypi.python.org/packages/source/x/"
3443 "xcffib/xcffib-" version ".tar.gz"))
3444 (sha256
3445 (base32
3446 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
3447 (build-system python-build-system)
3448 (inputs
3449 `(("libxcb" ,libxcb)
3450 ("python-six" ,python-six)))
3451 (native-inputs
3452 `(("python-setuptools" ,python-setuptools)))
3453 (propagated-inputs
3454 `(("python-cffi" ,python-cffi))) ; used at run time
3455 (arguments
89b5c60e 3456 `(#:phases
6fa14469
FB
3457 (alist-cons-after
3458 'install 'install-doc
3459 (lambda* (#:key outputs #:allow-other-keys)
3460 (let ((doc (string-append (assoc-ref outputs "out") "/share"
3461 "/doc/" ,name "-" ,version)))
3462 (mkdir-p doc)
3463 (copy-file "README.md"
3464 (string-append doc "/README.md"))))
3465 %standard-phases)))
3466 (home-page "https://github.com/tych0/xcffib")
3467 (synopsis "XCB Python bindings")
3468 (description
3469 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
3470support for Python 3 and PyPy. It is based on cffi.")
bd3fa666 3471 (license license:expat)))
6fa14469
FB
3472
3473(define-public python2-xcffib
3474 (package-with-python2 python-xcffib))
3475
9e099723
FB
3476(define-public python-cairocffi
3477 (package
3478 (name "python-cairocffi")
3479 (version "0.6")
3480 (source
3481 (origin
3482 (method url-fetch)
3483 ;; The archive on pypi is missing the 'utils' directory!
3484 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
3485 version ".tar.gz"))
f586c877 3486 (file-name (string-append name "-" version ".tar.gz"))
9e099723
FB
3487 (sha256
3488 (base32
3489 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
3490 (build-system python-build-system)
3491 (outputs '("out" "doc"))
3492 (inputs
3493 `(("gdk-pixbuf" ,gdk-pixbuf)
3494 ("cairo" ,cairo)))
3495 (native-inputs
3496 `(("pkg-config" ,pkg-config)
3497 ("python-sphinx" ,python-sphinx)
3498 ("python-docutils" ,python-docutils)
3499 ("python-setuptools" ,python-setuptools)))
3500 (propagated-inputs
3501 `(("python-xcffib" ,python-xcffib))) ; used at run time
3502 (arguments
89b5c60e 3503 `(#:phases
9e099723
FB
3504 (alist-cons-after
3505 'install 'install-doc
3506 (lambda* (#:key inputs outputs #:allow-other-keys)
3507 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3508 (doc (string-append data "/doc/" ,name "-" ,version))
3509 (html (string-append doc "/html")))
89b5c60e 3510 (setenv "LD_LIBRARY_PATH"
9e099723
FB
3511 (string-append (assoc-ref inputs "cairo") "/lib" ":"
3512 (assoc-ref inputs "gdk-pixbuf") "/lib"))
3513 (setenv "LANG" "en_US.UTF-8")
3514 (mkdir-p html)
3515 (for-each (lambda (file)
3516 (copy-file (string-append "." file)
3517 (string-append doc file)))
3518 '("/README.rst" "/CHANGES" "/LICENSE"))
3519 (system* "python" "setup.py" "build_sphinx")
3520 (copy-recursively "docs/_build/html" html)))
3521 %standard-phases)))
3522 (home-page "https://github.com/SimonSapin/cairocffi")
3523 (synopsis "Python bindings and object-oriented API for Cairo")
3524 (description
3525 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
3526Python bindings and object-oriented API for cairo. Cairo is a 2D vector
3527graphics library with support for multiple backends including image buffers,
3528PNG, PostScript, PDF, and SVG file output.")
3529 (license bsd-3)))
3530
3531(define-public python2-cairocffi
3532 (package-with-python2 python-cairocffi))
3533
3cff95cb
RW
3534(define-public python-decorator
3535 (package
3536 (name "python-decorator")
3537 (version "3.4.2")
3538 (source
3539 (origin
3540 (method url-fetch)
3541 (uri (string-append
3542 "https://pypi.python.org/packages/source/d/decorator/decorator-"
3543 version ".tar.gz"))
3544 (sha256
3545 (base32 "0i2bnlkh0p9gs76hb28mafandcrig2fmv56w9ai6mshxwqn0083k"))))
3546 (build-system python-build-system)
3547 (arguments '(#:tests? #f)) ; no test target
3548 (native-inputs
3549 `(("python-setuptools" ,python-setuptools)))
3550 (home-page "http://pypi.python.org/pypi/decorator/")
3551 (synopsis "Python module to simplify usage of decorators")
3552 (description
3553 "The aim of the decorator module is to simplify the usage of decorators
3554for the average programmer, and to popularize decorators usage giving examples
3555of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
3556etc. The core of this module is a decorator factory.")
3557 (license license:expat)))
3558
3559(define-public python2-decorator
3560 (package-with-python2 python-decorator))
3561
2c0499ad
RW
3562(define-public python-drmaa
3563 (package
3564 (name "python-drmaa")
3565 (version "0.7.6")
3566 (source
3567 (origin
3568 (method url-fetch)
3569 (uri (string-append
3570 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
3571 version ".tar.gz"))
3572 (sha256
3573 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
3574 (build-system python-build-system)
3575 ;; The test suite requires libdrmaa which is provided by the cluster
3576 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
3577 ;; should be set to the path of the libdrmaa library.
3578 (arguments '(#:tests? #f))
3579 (native-inputs
3580 `(("python-nose" ,python-nose)
3581 ("python-setuptools" ,python-setuptools)))
3582 (home-page "https://pypi.python.org/pypi/drmaa")
3583 (synopsis "Python bindings for the DRMAA library")
3584 (description
3585 "A Python package for Distributed Resource Management (DRM) job
3586submission and control. This package is an implementation of the DRMAA 1.0
3587Python language binding specification.")
3588 (license bsd-3)))
3589
3590(define-public python2-drmaa
3591 (package-with-python2 python-drmaa))
3592
d05c6da0
RW
3593(define-public python-gridmap
3594 (package
3595 (name "python-gridmap")
3596 (version "0.13.0")
3597 (source
3598 (origin
3599 (method url-fetch)
3600 (uri (string-append
3601 "https://github.com/pygridtools/gridmap/archive/v"
3602 version ".tar.gz"))
3603 (file-name (string-append name "-" version ".tar.gz"))
3604 (sha256
3605 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
3606 (build-system python-build-system)
3607 (inputs
3608 `(("python-psutil" ,python-psutil)
3609 ("python-drmaa" ,python-drmaa)
3610 ("python-pyzmq" ,python-pyzmq)))
3611 (native-inputs
3612 `(("python-setuptools" ,python-setuptools)))
3613 (home-page "https://github.com/pygridtools/gridmap")
3614 (synopsis "Create jobs on a cluster directly from Python")
3615 (description
3616 "Gridmap is a Python package to allow you to easily create jobs on the
3617cluster directly from Python. You can directly map Python functions onto the
3618cluster without needing to write any wrapper code yourself.")
3619 (license gpl3+)))
3620
3621(define-public python2-gridmap
3622 (package-with-python2 python-gridmap))
3623
ae1ab9fe
FB
3624(define-public python-ipython
3625 (package
3626 (name "python-ipython")
3a0b1b9a 3627 (version "3.2.1")
ae1ab9fe
FB
3628 (source
3629 (origin
3630 (method url-fetch)
3631 (uri (string-append "https://pypi.python.org/packages/source/i/"
3632 "ipython/ipython-" version ".tar.gz"))
3633 (sha256
3a0b1b9a 3634 (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9"))))
ae1ab9fe
FB
3635 (build-system python-build-system)
3636 (outputs '("out" "doc"))
3a0b1b9a
FB
3637 (propagated-inputs
3638 `(("python-pyzmq" ,python-pyzmq)
3639 ("python-terminado" ,python-terminado)))
ae1ab9fe
FB
3640 (inputs
3641 `(("readline" ,readline)
3a0b1b9a 3642 ("which" ,which)
ae1ab9fe
FB
3643 ("python-matplotlib" ,python-matplotlib)
3644 ("python-numpy" ,python-numpy-bootstrap)
3645 ("python-numpydoc" ,python-numpydoc)
3a0b1b9a
FB
3646 ("python-jinja2" ,python-jinja2)
3647 ("python-mistune" ,python-mistune)
3648 ("python-jsonschema" ,python-jsonschema)
3649 ("python-pygments" ,python-pygments)
3650 ("python-requests" ,python-requests) ;; for tests
ae1ab9fe
FB
3651 ("python-nose" ,python-nose)))
3652 (native-inputs
3653 `(("pkg-config" ,pkg-config)
3654 ("python-sphinx" ,python-sphinx)
3655 ("texlive" ,texlive)
3656 ("texinfo" ,texinfo)
3657 ("python-setuptools" ,python-setuptools)))
3658 (arguments
89b5c60e 3659 `(#:phases
3a0b1b9a
FB
3660 (modify-phases %standard-phases
3661 (add-after
3662 'install 'install-doc
3663 (lambda* (#:key inputs outputs #:allow-other-keys)
3664 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3665 (doc (string-append data "/doc/" ,name "-" ,version))
3666 (html (string-append doc "/html"))
3667 (man1 (string-append data "/man/man1"))
3668 (info (string-append data "/info"))
3669 (examples (string-append doc "/examples")))
3670 (setenv "LANG" "en_US.UTF-8")
3671 (with-directory-excursion "docs"
3672 ;; FIXME: html and pdf fail to build
3673 ;; (system* "make" "html")
3674 ;; (system* "make" "pdf" "PAPER=a4")
3675 (system* "make" "info"))
3676 (copy-recursively "docs/man" man1)
3677 (copy-recursively "examples" examples)
3678 ;; (copy-recursively "docs/build/html" html)
3679 ;; (copy-file "docs/build/latex/ipython.pdf"
3680 ;; (string-append doc "/ipython.pdf"))
3681 (mkdir-p info)
3682 (copy-file "docs/build/texinfo/ipython.info"
3683 (string-append info "/ipython.info"))
3684 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
3685 ;; Tests can only be run after the library has been installed and not
3686 ;; within the source directory.
3687 (delete 'check)
3688 (add-after
3689 'install 'check
3690 (lambda* (#:key outputs tests? #:allow-other-keys)
3691 (if tests?
3692 (with-directory-excursion "/tmp"
3693 (setenv "HOME" "/tmp/") ;; required by a test
3694 (zero? (system* (string-append (assoc-ref outputs "out")
3695 "/bin/iptest"))))
3696 #t)))
3697 (add-before
3698 'install 'fix-tests
3699 (lambda* (#:key inputs #:allow-other-keys)
3700 (substitute* "./IPython/utils/_process_posix.py"
3701 (("/usr/bin/env', 'which") (which "which")))
3702 (substitute* "./IPython/core/tests/test_inputtransformer.py"
3703 (("#!/usr/bin/env python")
3704 (string-append "#!" (which "python"))))
3705 ;; Disable 1 failing test
3706 (substitute* "./IPython/core/tests/test_magic.py"
3707 (("def test_dirops\\(\\):" all)
3708 (string-append "@dec.skipif(True)\n" all))))))))
ae1ab9fe
FB
3709 (home-page "http://ipython.org")
3710 (synopsis "IPython is a tool for interactive computing in Python")
3711 (description
3712 "IPython provides a rich architecture for interactive computing with:
3713Powerful interactive shells, a browser-based notebook, support for interactive
3714data visualization, embeddable interpreters and tools for parallel
3715computing.")
3716 (license bsd-3)))
3717
3718(define-public python2-ipython
3719 (let ((ipython (package-with-python2 python-ipython)))
3a0b1b9a
FB
3720 (package
3721 (inherit ipython)
3722 ;; FIXME: some tests are failing
3723 (arguments
3724 `(#:tests? #f ,@(package-arguments ipython)))
ae1ab9fe 3725 ;; Make sure we use custom python2-NAME packages.
3a0b1b9a 3726 ;; FIXME: add pyreadline once available.
667d90df
RW
3727 (propagated-inputs
3728 `(("python2-terminado" ,python2-terminado)
3729 ,@(alist-delete "python-terminado"
3730 (package-propagated-inputs ipython))))
89b5c60e 3731 (inputs
3a0b1b9a
FB
3732 `(("python2-mock" ,python2-mock)
3733 ("python2-matplotlib" ,python2-matplotlib)
667d90df
RW
3734 ,@(alist-delete "python-matplotlib"
3735 (package-inputs ipython)))))))
03411993
AE
3736
3737(define-public python-isodate
3738 (package
3739 (name "python-isodate")
3740 (version "0.5.1")
3741 (source
3742 (origin
3743 (method url-fetch)
3744 (uri (string-append
3745 "https://pypi.python.org/packages/source/i/isodate/isodate-"
3746 version
3747 ".tar.gz"))
3748 (sha256
3749 (base32
3750 "1yqjn0is0p64cmk9xhq4hc6q06jk86d60kg2jws58d78q0qysami"))))
3751 (build-system python-build-system)
3752 (inputs
3753 `(("python-setuptools" ,python-setuptools)))
3754 (home-page
3755 "http://cheeseshop.python.org/pypi/isodate")
3756 (synopsis
3757 "Python date parser and formatter")
3758 (description
3759 "Python-isodate is a python module for parsing and formatting
3760ISO 8601 dates, time and duration.")
3761 (license bsd-3)))
3762
3763(define-public python2-isodate
3764 (package-with-python2 python-isodate))
673ab897
AE
3765
3766(define-public python-html5lib
3767 (package
3768 (name "python-html5lib")
3769 (version "1.0b3")
3770 (source
3771 (origin
3772 (method url-fetch)
3773 (uri (string-append
3774 "https://pypi.python.org/packages/source/h/html5lib/html5lib-"
3775 version
3776 ".tar.gz"))
3777 (sha256
3778 (base32
3779 "1l5i6xzckzx4hnh9qzv9q3kyhkgjx2hsi2k9srgci3qizjmvp6ln"))))
3780 (build-system python-build-system)
3dd75476
AE
3781 (propagated-inputs
3782 `(("python-six" ,python-six))) ; required to "import html5lib"
673ab897
AE
3783 (inputs
3784 `(("python-setuptools" ,python-setuptools)))
3785 (arguments
3786 `(#:test-target "check"))
3787 (home-page
3788 "https://github.com/html5lib/html5lib-python")
3789 (synopsis
3790 "Python HTML parser based on the WHATWG HTML specifcation")
3791 (description
3792 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
3793and written in Python.")
bd3fa666 3794 (license license:expat)))
673ab897
AE
3795
3796(define-public python2-html5lib
3797 (package-with-python2 python-html5lib))
e99f4211
MW
3798
3799(define-public python-urwid
3800 (package
3801 (name "python-urwid")
3802 (version "1.3.0")
3803 (source
3804 (origin
3805 (method url-fetch)
be1f44bb
MW
3806 (uri (string-append
3807 "https://pypi.python.org/packages/source/u/urwid/urwid-"
3808 version ".tar.gz"))
e99f4211
MW
3809 (sha256
3810 (base32
3811 "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19"))))
3812 (build-system python-build-system)
3813 (native-inputs `(("python-setuptools" ,python-setuptools)))
3814 (home-page "http://urwid.org")
3815 (synopsis "Console user interface library for Python")
3816 (description
3817 "Urwid is a curses-based UI/widget library for Python. It includes many
3818features useful for text console applications.")
3819 (license lgpl2.1+)))
3820
3821(define-public python2-urwid
3822 (package-with-python2 python-urwid))
d95a56c6
PAR
3823
3824(define-public python-dbus
3825 (package
3826 (name "python-dbus")
3827 (version "1.2.0")
3828 (source
3829 (origin
3830 (method url-fetch)
3831 (uri (string-append
3832 "http://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
3833 version ".tar.gz"))
3834 (sha256
3835 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
3836 (build-system gnu-build-system)
3837 (native-inputs
3838 `(("pkg-config" ,pkg-config)))
3839 (inputs
3840 `(("python" ,python)
2e88d113 3841 ("dbus-glib" ,dbus-glib)))
d95a56c6
PAR
3842 (synopsis "Python bindings for D-bus")
3843 (description "python-dbus provides bindings for libdbus, the reference
3844implementation of D-Bus.")
3845 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
bd3fa666 3846 (license license:expat)))
b52af02b
MW
3847
3848(define-public python2-dbus
3849 (package (inherit python-dbus)
3850 (name "python2-dbus")
3851 (inputs `(("python" ,python-2)
3852 ,@(alist-delete "python"
3853 (package-inputs python-dbus)
3854 equal?)))
3855 ;; FIXME: on Python 2, the test_utf8 fails with:
3856 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
3857 (arguments `(#:tests? #f))))
a6ac8332
AE
3858
3859(define-public python-apsw
3860 (package
3861 (name "python-apsw")
3862 (version "3.8.7.3-r1")
3863 (source
3864 (origin
3865 (method url-fetch)
3866 (uri (string-append
3867 "https://pypi.python.org/packages/source/a/apsw/apsw-"
3868 version
3869 ".tar.gz"))
3870 (sha256
3871 (base32
3872 "1rgxdypg7hym0qny15rx5khrghx9fkppfgsfa2s8lg917924mv7l"))))
3873 (build-system python-build-system)
3874 (inputs
3875 `(("python-setuptools" ,python-setuptools)
3876 ("sqlite" ,sqlite)))
3877 (arguments
3878 `(#:phases
3879 ;; swap check and install phases
3880 (alist-cons-after
3881 'install 'check
3882 (assoc-ref %standard-phases 'check)
3883 (alist-delete
3884 'check
3885 %standard-phases))))
3886 (home-page "https://github.com/rogerbinns/apsw/")
3887 (synopsis "Another Python SQLite Wrapper")
3888 (description "APSW is a Python wrapper for the SQLite
3889embedded relational database engine. In contrast to other wrappers such as
3890pysqlite it focuses on being a minimal layer over SQLite attempting just to
3891translate the complete SQLite API into Python.")
abde5f37 3892 (license license:zlib)))
a6ac8332
AE
3893
3894(define-public python2-apsw
3895 (package-with-python2 python-apsw))
26b307e2
AE
3896
3897(define-public python-lxml
3898 (package
3899 (name "python-lxml")
3900 (version "3.4.2")
3901 (source
3902 (origin
3903 (method url-fetch)
3904 (uri (string-append
3905 "https://pypi.python.org/packages/source/l/lxml/lxml-"
3906 version
3907 ".tar.gz"))
3908 (sha256
3909 (base32
3910 "0pd23qz8vms1mgm41p96h4vac5y91igs4wr9640gnvxgk019kmf7"))))
3911 (build-system python-build-system)
3912 (inputs
3913 `(("libxml2" ,libxml2)
3914 ("libxslt" ,libxslt)
3915 ("python-setuptools" ,python-setuptools)))
3916 (home-page "http://lxml.de/")
3917 (synopsis
3918 "Python XML processing library")
3919 (description
3920 "The lxml XML toolkit is a Pythonic binding for the C libraries
3921libxml2 and libxslt.")
3922 (license bsd-3))) ; and a few more, see LICENSES.txt
3923
3924(define-public python2-lxml
3925 (package-with-python2 python-lxml))
4ed20663 3926
bec07a7c
AE
3927(define-public python2-pil
3928 (package
3929 (name "python2-pil")
3930 (version "1.1.7")
3931 (source
3932 (origin
3933 (method url-fetch)
3934 (uri (string-append
3935 "http://effbot.org/downloads/Imaging-"
3936 version ".tar.gz"))
3937 (sha256
3938 (base32
516277cb
AE
3939 "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9"))
3940 (modules '((guix build utils)))
3941 (snippet
3942 ;; Adapt to newer freetype. As the package is unmaintained upstream,
3943 ;; there is no use in creating a patch and reporting it.
3944 '(substitute* "_imagingft.c"
3945 (("freetype/")
3946 "freetype2/")))))
bec07a7c
AE
3947 (build-system python-build-system)
3948 (inputs
3949 `(("freetype" ,freetype)
3950 ("libjpeg" ,libjpeg)
3951 ("libtiff" ,libtiff)
3952 ("python-setuptools" ,python-setuptools)
3953 ("zlib" ,zlib)))
3954 (arguments
3955 ;; Only the fork python-pillow works with Python 3.
3956 `(#:python ,python-2
3957 #:tests? #f ; no check target
3958 #:phases
3959 (alist-cons-before
3960 'build 'configure
3961 ;; According to README and setup.py, manual configuration is
3962 ;; the preferred way of "searching" for inputs.
3963 ;; lcms is not found, TCL_ROOT refers to the unavailable tkinter.
3964 (lambda* (#:key inputs #:allow-other-keys)
3965 (let ((jpeg (assoc-ref inputs "libjpeg"))
3966 (zlib (assoc-ref inputs "zlib"))
3967 (tiff (assoc-ref inputs "libtiff"))
3968 (freetype (assoc-ref inputs "freetype")))
3969 (substitute* "setup.py"
3970 (("JPEG_ROOT = None")
3971 (string-append "JPEG_ROOT = libinclude(\"" jpeg "\")"))
3972 (("ZLIB_ROOT = None")
3973 (string-append "ZLIB_ROOT = libinclude(\"" zlib "\")"))
3974 (("TIFF_ROOT = None")
3975 (string-append "TIFF_ROOT = libinclude(\"" tiff "\")"))
3976 (("FREETYPE_ROOT = None")
3977 (string-append "FREETYPE_ROOT = libinclude(\""
3978 freetype "\")")))))
3979 %standard-phases)))
3980 (home-page "http://www.pythonware.com/products/pil/")
3981 (synopsis "Python Imaging Library")
3982 (description "The Python Imaging Library (PIL) adds image processing
3983capabilities to the Python interpreter.")
3984 (license (x11-style
3985 "file://README"
3986 "See 'README' in the distribution."))))
092e86f5
AE
3987
3988(define-public python2-cssutils
3989 (package
3990 (name "python2-cssutils")
3991 (version "1.0")
3992 (source
3993 (origin
3994 (method url-fetch)
3995 (uri (string-append
3996 "https://pypi.python.org/packages/source/c/cssutils/cssutils-"
3997 version
3998 ".zip"))
3999 (sha256
4000 (base32
4001 "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125"))))
4002 (build-system python-build-system)
4003 (native-inputs
4004 `(("python2-mock" ,python2-mock) ; for the tests
4005 ("unzip" ,unzip))) ; for unpacking the source
4006 (inputs
4007 `(("python2-setuptools" ,python2-setuptools)))
4008 (arguments
4009 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
4010 #:tests? #f ; The tests apparently download an external URL.
da6dd842 4011 ))
092e86f5
AE
4012 (home-page "http://cthedot.de/cssutils/")
4013 (synopsis
4014 "CSS Cascading Style Sheets library for Python")
4015 (description
4016 "Cssutils is a Python package for parsing and building CSS
4017Cascading Style Sheets. Currently it provides a DOM only and no rendering
4018options.")
4019 (license lgpl3+)))
880ff77c
AE
4020
4021(define-public python-cssselect
4022 (package
4023 (name "python-cssselect")
4024 (version "0.9.1")
4025 (source
4026 (origin
4027 (method url-fetch)
4028 (uri (string-append
4029 "https://pypi.python.org/packages/source/c/cssselect/cssselect-"
4030 version
4031 ".tar.gz"))
4032 (sha256
4033 (base32
4034 "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85"))))
4035 (build-system python-build-system)
4036 (inputs
4037 `(("python-setuptools" ,python-setuptools)))
4038 (arguments
4039 ;; tests fail with message
4040 ;; AttributeError: 'module' object has no attribute 'tests'
4041 `(#:tests? #f))
4042 (home-page
4043 "https://pythonhosted.org/cssselect/")
4044 (synopsis
4045 "CSS3 selector parser and translator to XPath 1.0")
4046 (description
4047 "Cssselect ia a Python module that parses CSS3 Selectors and translates
4048them to XPath 1.0 expressions. Such expressions can be used in lxml or
4049another XPath engine to find the matching elements in an XML or HTML document.")
4050 (license bsd-3)))
4051
4052(define-public python2-cssselect
4053 (package-with-python2 python-cssselect))
60357f99
AE
4054
4055(define-public python-netifaces
4056 (package
4057 (name "python-netifaces")
4058 (version "0.10.4")
4059 (source
4060 (origin
4061 (method url-fetch)
4062 (uri (string-append
4063 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
4064 version
4065 ".tar.gz"))
4066 (sha256
4067 (base32
4068 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
4069 (build-system python-build-system)
4070 (inputs
4071 `(("python-setuptools" ,python-setuptools)))
4072 (home-page
4073 "https://bitbucket.org/al45tair/netifaces")
4074 (synopsis
4075 "Python module for portable network interface information")
4076 (description
4077 "Netifaces is a Python module providing information on network
4078interfaces in an easy and portable manner.")
4079 (license license:expat)))
4080
4081(define-public python2-netifaces
4082 (package-with-python2 python-netifaces))
92cb152b 4083
32f77c04
RW
4084(define-public python-networkx
4085 (package
4086 (name "python-networkx")
4087 (version "1.9.1")
4088 (source
4089 (origin
4090 (method url-fetch)
4091 (uri (string-append
4092 "https://pypi.python.org/packages/source/n/networkx/networkx-"
4093 version ".tar.gz"))
4094 (sha256
4095 (base32 "0n8wy0yq1kmdq4wh68mlhwhkndvwzx48lg41a1z0sxxms0wfp033"))))
4096 (build-system python-build-system)
4097 ;; python-decorator is needed at runtime
4098 (propagated-inputs
4099 `(("python-decorator" ,python-decorator)))
4100 (native-inputs
4101 `(("python-setuptools" ,python-setuptools)
4102 ("python-nose" ,python-nose)))
4103 (home-page "http://networkx.github.io/")
4104 (synopsis "Python module for creating and manipulating graphs and networks")
4105 (description
4106 "NetworkX is a Python package for the creation, manipulation, and study
4107of the structure, dynamics, and functions of complex networks.")
4108 (license bsd-3)))
4109
4110(define-public python2-networkx
4111 (package-with-python2 python-networkx))
4112
92cb152b
RW
4113(define-public snakemake
4114 (package
4115 (name "snakemake")
4116 (version "3.2.1")
4117 (source
4118 (origin
4119 (method url-fetch)
4120 (uri (string-append
4121 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
4122 version ".tar.gz"))
4123 (sha256
4124 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
4125 (build-system python-build-system)
4126 (inputs `(("python-setuptools" ,python-setuptools)))
4127 (home-page "https://bitbucket.org/johanneskoester/snakemake")
4128 (synopsis "Python-based execution environment for make-like workflows")
4129 (description
4130 "Snakemake aims to reduce the complexity of creating workflows by
4131providing a clean and modern domain specific specification language (DSL) in
4132Python style, together with a fast and comfortable execution environment.")
4133 (license license:expat)))
a1920bc9 4134
35de1fbd
RW
4135(define-public python-seaborn
4136 (package
4137 (name "python-seaborn")
4138 (version "0.5.1")
4139 (source
4140 (origin
4141 (method url-fetch)
4142 (uri (string-append
4143 "https://pypi.python.org/packages/source/s/seaborn/seaborn-"
4144 version ".tar.gz"))
4145 (sha256
4146 (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc"))))
4147 (build-system python-build-system)
4148 (propagated-inputs
4149 `(("python-pandas" ,python-pandas)
4150 ("python-matplotlib" ,python-matplotlib)
4151 ("python-scipy" ,python-scipy)))
4152 (native-inputs
4153 `(("python-setuptools" ,python-setuptools)))
4154 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
4155 (synopsis "Statistical data visualization")
4156 (description
4157 "Seaborn is a library for making attractive and informative statistical
4158graphics in Python. It is built on top of matplotlib and tightly integrated
4159with the PyData stack, including support for numpy and pandas data structures
4160and statistical routines from scipy and statsmodels.")
4161 (license bsd-3)))
4162
4163(define-public python2-seaborn
4164 (let ((seaborn (package-with-python2 python-seaborn)))
4165 (package (inherit seaborn)
4166 (propagated-inputs
4167 `(("python2-pytz" ,python2-pytz)
4168 ,@(package-propagated-inputs seaborn))))))
4169
90fc547f
RW
4170(define-public python-sympy
4171 (package
4172 (name "python-sympy")
4173 (version "0.7.6")
4174 (source
4175 (origin
4176 (method url-fetch)
4177 (uri (string-append
4178 "https://github.com/sympy/sympy/releases/download/sympy-"
4179 version "/sympy-" version ".tar.gz"))
4180 (sha256
4181 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
4182 (build-system python-build-system)
4183 (native-inputs
4184 `(("python-setuptools" ,python-setuptools)))
4185 (home-page "http://www.sympy.org/")
4186 (synopsis "Python library for symbolic mathematics")
4187 (description
4188 "SymPy is a Python library for symbolic mathematics. It aims to become a
4189full-featured computer algebra system (CAS) while keeping the code as simple
4190as possible in order to be comprehensible and easily extensible.")
4191 (license bsd-3)))
4192
4193(define-public python2-sympy
4194 (package-with-python2 python-sympy))
4195
a1920bc9
FB
4196(define-public python-testlib
4197 (package
4198 (name "python-testlib")
4199 (version "0.6.5")
4200 (source
4201 (origin
4202 (method url-fetch)
4203 (uri (string-append
4204 "https://pypi.python.org/packages/source/t/testlib/testlib-"
4205 version ".zip"))
4206 (sha256
4207 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
4208 (build-system python-build-system)
4209 (inputs
4210 `(("python-setuptools" ,python-setuptools)))
4211 (native-inputs
4212 `(("unzip" ,unzip)))
4213 (arguments
4214 `(#:phases
4215 (alist-replace
4216 'unpack
4217 (lambda* (#:key inputs outputs #:allow-other-keys)
4218 (let ((unzip (string-append (assoc-ref inputs "unzip")
4219 "/bin/unzip"))
4220 (source (assoc-ref inputs "source")))
4221 (and (zero? (system* unzip source))
4222 (chdir (string-append "testlib-" ,version)))))
4223 %standard-phases)))
4224 (synopsis "Python micro test suite harness")
4225 (description "A micro unittest suite harness for Python.")
4226 (home-page "https://github.com/trentm/testlib")
1cb9c006 4227 (license license:expat)))
a1920bc9
FB
4228
4229(define-public python2-testlib
4230 (package-with-python2 python-testlib))
db62afa5
LC
4231
4232(define-public python2-xlib
4233 (package
4234 (name "python2-xlib")
4235 (version "0.14")
4236 (source (origin
4237 (method url-fetch)
4238 (uri (string-append "mirror://sourceforge/python-xlib/"
4239 "python-xlib-" version ".tar.gz"))
4240 (sha256
4241 (base32
4242 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
4243 (build-system python-build-system)
4244 (arguments
4245 `(#:python ,python-2 ;Python 2 only
4246 #:tests? #f)) ;no tests
4247 (inputs
4248 `(("python-setuptools" ,python-setuptools)))
4249 (home-page "http://python-xlib.sourceforge.net/")
4250 (synopsis "Python X11 client library")
4251 (description
4252 "The Python X Library is intended to be a fully functional X client
4253library for Python programs. It is useful to implement low-level X clients.
4254It is written entirely in Python.")
4255 (license gpl2+)))
0234ca06
DT
4256
4257(define-public python-singledispatch
4258 (package
4259 (name "python-singledispatch")
4260 (version "3.4.0.3")
4261 (source
4262 (origin
4263 (method url-fetch)
4264 (uri (string-append
4265 "https://pypi.python.org/packages/source/s/singledispatch/"
4266 "singledispatch-" version ".tar.gz"))
4267 (sha256
4268 (base32
4269 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
4270 (build-system python-build-system)
4271 (native-inputs
4272 `(("python-setuptools" ,python-setuptools)))
4273 (propagated-inputs
4274 `(("python-six" ,python-six)))
4275 (home-page
4276 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
4277 (synopsis "Backport of singledispatch feature from Python 3.4")
4278 (description
4279 "This library brings functools.singledispatch from Python 3.4 to Python
42802.6-3.3.")
4281 (license license:expat)))
4282
4283(define-public python2-singledispatch
4284 (package-with-python2 python-singledispatch))
feaae484 4285
310d218f
RW
4286(define-public python-tornado
4287 (package
4288 (name "python-tornado")
4289 (version "4.1")
4290 (source
4291 (origin
4292 (method url-fetch)
4293 (uri (string-append
4294 "https://pypi.python.org/packages/source/t/tornado/"
4295 "tornado-" version ".tar.gz"))
4296 (sha256
4297 (base32 "0a12f00h277zbifibnj46wf14801f573irvf6hwkgja5vspd7awr"))))
4298 (build-system python-build-system)
4299 (inputs
4300 `(("python-certifi" ,python-certifi)))
4301 (native-inputs
4302 `(("python-setuptools" ,python-setuptools)))
4303 (home-page "https://pypi.python.org/pypi/tornado/4.1")
4304 (synopsis "Python web framework and asynchronous networking library")
4305 (description
4306 "Tornado is a Python web framework and asynchronous networking library,
4307originally developed at FriendFeed. By using non-blocking network I/O,
4308Tornado can scale to tens of thousands of open connections, making it ideal
4309for long polling, WebSockets, and other applications that require a long-lived
4310connection to each user.")
4311 (license asl2.0)))
4312
4313(define-public python2-tornado
4314 (let ((tornado (package-with-python2 python-tornado)))
4315 (package (inherit tornado)
4316 (inputs
4317 `(("python2-backport-ssl-match-hostname"
4318 ,python2-backport-ssl-match-hostname)
4319 ,@(package-inputs tornado))))))
4320
feaae484
SB
4321(define-public python-waf
4322 (package
4323 (name "python-waf")
4324 (version "1.8.8")
4325 (source (origin
4326 (method url-fetch)
4327 (uri (string-append "https://waf.io/"
4328 "waf-" version ".tar.bz2"))
4329 (sha256
4330 (base32
4331 "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn"))))
4332 (build-system python-build-system)
4333 (arguments
4334 '(#:phases
4335 (modify-phases %standard-phases
4336 (replace 'build
4337 (lambda _
4338 (zero? (begin
4339 (system* "python" "waf-light" "configure")
4340 (system* "python" "waf-light" "build")))))
4341 (replace 'check
4342 (lambda _
4343 (zero? (system* "python" "waf" "--version"))))
4344 (replace 'install
4345 (lambda _
4346 (copy-file "waf" %output))))))
4347 (home-page "https://waf.io/")
4348 (synopsis "Python-based build system")
4349 (description
4350 "Waf is a Python-based framework for configuring, compiling and installing
4351applications.")
4352 (license bsd-3)))
4353
4354(define-public python2-waf
4355 (package-with-python2 python-waf))
45203542
RW
4356
4357(define-public python-pyzmq
4358 (package
4359 (name "python-pyzmq")
4360 (version "14.6.0")
4361 (source
4362 (origin
4363 (method url-fetch)
4364 (uri (string-append
4365 "https://pypi.python.org/packages/source/p/pyzmq/pyzmq-"
4366 version ".tar.gz"))
4367 (sha256
4368 (base32 "1frmbjykvhmdg64g7sn20c9fpamrsfxwci1nhhg8q7jgz5pq0ikp"))))
4369 (build-system python-build-system)
4370 (arguments
4371 `(#:configure-flags
4372 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
4373 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
4374 ;; --inplace' for 'python setup.py test' to work.
4375 #:tests? #f))
4376 (inputs
4377 `(("zeromq" ,zeromq)))
4378 (native-inputs
4379 `(("pkg-config" ,pkg-config)
4380 ("python-nose" ,python-nose)
4381 ("python-setuptools" ,python-setuptools)))
4382 (home-page "http://github.com/zeromq/pyzmq")
4383 (synopsis "Python bindings for 0MQ")
4384 (description
4385 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
4386 (license bsd-4)))
4387
4388(define-public python2-pyzmq
4389 (package-with-python2 python-pyzmq))
d889e6c4
CR
4390
4391(define-public python-pep8
4392 (package
4393 (name "python-pep8")
4394 (version "1.6.2")
4395 (source
4396 (origin
4397 (method url-fetch)
4398 (uri (string-append
4399 "https://pypi.python.org/packages/source/p/pep8/pep8-"
4400 version
4401 ".tar.gz"))
4402 (sha256
4403 (base32
4404 "1zybkcdw1sx84dvkfss96nhykqg9bc0cdpwpl4k9wlxm61bf7dxq"))))
4405 (build-system python-build-system)
4406 (inputs
4407 `(("python-setuptools" ,python-setuptools)))
4408 (home-page "http://pep8.readthedocs.org/")
4409 (synopsis "Python style guide checker")
4410 (description
4411 "This tools checks Python code against some of the style conventions in
4412PEP 8.")
4413 (license license:expat)))
4414
4415(define-public python2-pep8
4416 (package-with-python2 python-pep8))
e31d7f44
CR
4417
4418(define-public python-pyflakes
4419 (package
4420 (name "python-pyflakes")
4421 (version "0.9.2")
4422 (source
4423 (origin
4424 (method url-fetch)
4425 (uri (string-append
4426 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
4427 version
4428 ".tar.gz"))
4429 (sha256
4430 (base32
4431 "0pvawddspdq0y22dbraq5gld9qr6rwa7zhmpfhl2b7v9rqiiqs82"))))
4432 (build-system python-build-system)
4433 (inputs
4434 `(("python-setuptools" ,python-setuptools)))
4435 (home-page
4436 "https://github.com/pyflakes/pyflakes")
4437 (synopsis "Passive checker of Python programs")
4438 (description
4439 "Pyflakes statically checks Python source code for common errors.")
4440 (license license:expat)))
a59e017c 4441
7261d9eb
CR
4442(define-public python2-pyflakes
4443 (package-with-python2 python-pyflakes))
4444
a59e017c
CR
4445(define-public python-mccabe
4446 (package
4447 (name "python-mccabe")
4448 (version "0.3.1")
4449 (source
4450 (origin
4451 (method url-fetch)
4452 (uri (string-append
4453 "https://pypi.python.org/packages/source/m/mccabe/mccabe-"
4454 version
4455 ".tar.gz"))
4456 (sha256
4457 (base32
4458 "05ix3vdv5hjk4irl97n2n3c4g1vqvz7dbmkzs13f3bx97bxsczjz"))))
4459 (build-system python-build-system)
4460 (inputs
4461 `(("python-setuptools" ,python-setuptools)))
4462 (home-page "https://github.com/flintwork/mccabe")
4463 (synopsis "McCabe checker, plugin for flake8")
4464 (description
4465 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
4466complexity of Python source code.")
7362371d 4467 (license license:expat)))
a59e017c
CR
4468
4469(define-public python2-mccabe
4470 (package-with-python2 python-mccabe))
e8df8f47
CR
4471
4472;; Flake8 2.4.1 requires an older version of pep8.
4473;; This should be removed ASAP.
4474(define-public python-pep8-1.5.7
4475 (package (inherit python-pep8)
4476 (version "1.5.7")
4477 (source
4478 (origin
4479 (method url-fetch)
4480 (uri (string-append
4481 "https://pypi.python.org/packages/source/p/pep8/pep8-"
4482 version
4483 ".tar.gz"))
4484 (sha256
4485 (base32
4486 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
4487
4488(define-public python2-pep8-1.5.7
4489 (package-with-python2 python-pep8-1.5.7))
4490
4491;; Flake8 2.4.1 requires an older version of pyflakes.
4492;; This should be removed ASAP.
4493(define-public python-pyflakes-0.8.1
4494 (package (inherit python-pyflakes)
4495 (version "0.8.1")
4496 (source
4497 (origin
4498 (method url-fetch)
4499 (uri (string-append
4500 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
4501 version
4502 ".tar.gz"))
4503 (sha256
4504 (base32
4505 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
4506
4507(define-public python2-pyflakes-0.8.1
7261d9eb 4508 (package-with-python2 python-pyflakes-0.8.1))
e8df8f47
CR
4509
4510(define-public python-flake8
4511 (package
4512 (name "python-flake8")
4513 (version "2.4.1")
4514 (source
4515 (origin
4516 (method url-fetch)
4517 (uri (string-append
4518 "https://pypi.python.org/packages/source/f/flake8/flake8-"
4519 version
4520 ".tar.gz"))
4521 (sha256
4522 (base32
4523 "0dvmrpv7x98xkzffjz1z7lqr90sp5zdz16bdwckfd1cckpjvnzif"))))
4524 (build-system python-build-system)
4525 (inputs
4526 `(("python-setuptools" ,python-setuptools)
4527 ("python-pep8" ,python-pep8-1.5.7)
4528 ("python-pyflakes" ,python-pyflakes-0.8.1)
4529 ("python-mccabe" ,python-mccabe)
4530 ("python-mock" ,python-mock)
4531 ("python-nose" ,python-nose)))
4532 (home-page "https://gitlab.com/pycqa/flake8")
4533 (synopsis
4534 "The modular source code checker: pep8, pyflakes and co")
4535 (description
4536 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
4537 (license license:expat)))
4538
4539(define-public python2-flake8
4540 (package-with-python2 python-flake8))
61b9ac53
FB
4541
4542(define-public python-mistune
4543 (package
4544 (name "python-mistune")
4545 (version "0.7")
4546 (source
4547 (origin
4548 (method url-fetch)
4549 (uri (string-append
4550 "https://pypi.python.org/packages/source/m/mistune/mistune-"
4551 version
4552 ".tar.gz"))
4553 (sha256
4554 (base32
4555 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
4556 (build-system python-build-system)
4557 (inputs
4558 `(("python-setuptools" ,python-setuptools)
4559 ("python-nose" ,python-nose)
4560 ("python-cython" ,python-cython)))
4561 (home-page "https://github.com/lepture/mistune")
4562 (synopsis "Markdown parser in pure Python")
4563 (description "This package provides a fast markdown parser in pure
4564Python.")
4565 (license bsd-3)))
4566
4567(define-public python2-mistune
4568 (package-with-python2 python-mistune))
6d992d07
FB
4569
4570(define-public python-ptyprocess
4571 (package
4572 (name "python-ptyprocess")
4573 (version "0.5")
4574 (source
4575 (origin
4576 (method url-fetch)
4577 (uri (string-append
4578 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
4579 version ".tar.gz"))
4580 (sha256
4581 (base32
4582 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
4583 (build-system python-build-system)
4584 (inputs
4585 `(("python-setuptools" ,python-setuptools)
4586 ("python-nose" ,python-nose)))
4587 (arguments
4588 `(#:phases
4589 (modify-phases %standard-phases
4590 (replace 'check
4591 (lambda _
4592 (zero? (system* "nosetests")))))))
4593 (home-page "https://github.com/pexpect/ptyprocess")
4594 (synopsis "Run a subprocess in a pseudo terminal")
4595 (description
4596 "This package provides a Python library used to launch a subprocess in a
4597pseudo terminal (pty), and interact with both the process and its pty.")
4598 (license isc)))
4599
4600(define-public python2-ptyprocess
4601 (package-with-python2 python-ptyprocess))
4aadb1df
FB
4602
4603(define-public python-terminado
4604 (package
4605 (name "python-terminado")
4606 (version "0.5")
4607 (source
4608 (origin
4609 (method url-fetch)
4610 (uri (string-append
4611 "https://pypi.python.org/packages/source/t/terminado/terminado-"
4612 version ".tar.gz"))
4613 (sha256
4614 (base32
4615 "1dkmp1n8dj5v1jl9mfrq8lwyc7dsfrvcmz2bgkpg315sy7pr7s33"))))
4616 (build-system python-build-system)
4617 (propagated-inputs
4618 `(("python-tornado" ,python-tornado)
4619 ("python-ptyprocess" ,python-ptyprocess)))
4620 (inputs
4621 `(("python-setuptools" ,python-setuptools)
4622 ("python-nose" ,python-nose)))
4623 (arguments
4624 `(#:phases
4625 (modify-phases %standard-phases
4626 (replace 'check
4627 (lambda _
4628 (zero? (system* "nosetests")))))))
4629 (home-page "https://github.com/takluyver/terminado")
4630 (synopsis "Terminals served to term.js using Tornado websockets")
4631 (description "This package provides a Tornado websocket backend for the
4632term.js Javascript terminal emulator library.")
4633 (license bsd-2)))
4634
4635(define-public python2-terminado
4636 (let ((terminado (package-with-python2 python-terminado)))
4637 (package (inherit terminado)
4638 (propagated-inputs
4639 `(("python2-tornado" ,python2-tornado)
4640 ("python2-backport-ssl-match-hostname"
4641 ,python2-backport-ssl-match-hostname)
4642 ,@(alist-delete "python-tornado"
4643 (package-propagated-inputs terminado)))))))
5faa5ce4
RW
4644
4645(define-public python-ly
4646 (package
4647 (name "python-ly")
4648 (version "0.9.2")
4649 (source
4650 (origin
4651 (method url-fetch)
4652 (uri (string-append
4653 "https://pypi.python.org/packages/source/p/python-ly/python-ly-"
4654 version ".tar.gz"))
4655 (sha256
4656 (base32
4657 "1bsjg4q9ihr8bfdclrcmb8yjcg8xm9dznh58f3zsyrkrjzwbhcd2"))))
4658 (build-system python-build-system)
4659 (native-inputs
4660 `(("python-setuptools" ,python-setuptools)))
4661 (synopsis "Tool and library for manipulating LilyPond files")
4662 (description "This package provides a Python library to parse, manipulate
4663or create documents in LilyPond format. A command line program ly is also
4664provided that can be used to do various manipulations with LilyPond files.")
4665 (home-page "https://pypi.python.org/pypi/python-ly")
4666 (license gpl2+)))
7e7b27d9
CR
4667
4668(define-public python-appdirs
4669 (package
4670 (name "python-appdirs")
4671 (version "1.4.0")
4672 (source
4673 (origin
4674 (method url-fetch)
4675 (uri (string-append
4676 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
4677 version
4678 ".tar.gz"))
4679 (sha256
4680 (base32
4681 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
4682 (build-system python-build-system)
4683 (inputs
4684 `(("python-setuptools" ,python-setuptools)))
4685 (home-page "http://github.com/ActiveState/appdirs")
4686 (synopsis
4687 "Determine platform-specific dirs, e.g. a \"user data dir\"")
4688 (description
4689 "This module provides a portable way of finding out where user data
4690should be stored on various operating systems.")
4691 (license license:expat)))
4692
4693(define-public python2-appdirs
4694 (package-with-python2 python-appdirs))
89b2e0b0
LF
4695
4696(define-public python-llfuse
4697 (package
4698 (name "python-llfuse")
4699 (version "0.41")
4700 (source (origin
4701 (method url-fetch)
4702 (uri (string-append
4703 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
4704 "llfuse-" version ".tar.bz2"))
4705 (sha256
4706 (base32
4707 "0yzy8ixpmxk00kdq6lx5vvwbs0n6s59qnja5q0js2ahbqyxiz2hb"))))
4708 (build-system python-build-system)
4709 (inputs
4710 `(("fuse" ,fuse)
4711 ("attr" ,attr)))
4712 (native-inputs
4713 `(("pkg-config" ,pkg-config)
4714 ("python-setuptools" ,python-setuptools)))
4715 (synopsis "Python bindings for FUSE")
4716 (description
4717 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
4718 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
4719 ;; Python-LLFUSE includes underscore.js, which is MIT (expat) licensed.
4720 ;; The rest of the package is licensed under LGPL2.0 or later.
4721 (license (list license:expat lgpl2.0+))))
4722
4723(define-public python2-llfuse
4724 (package-with-python2 python-llfuse))
641c9871
LF
4725
4726(define-public python-msgpack
4727 (package
4728 (name "python-msgpack")
4729 (version "0.4.6")
4730 (source (origin
4731 (method url-fetch)
4732 (uri (string-append
4733 "https://pypi.python.org/packages/source/m/"
4734 "msgpack-python/msgpack-python-" version ".tar.gz"))
4735 (sha256
4736 (base32
4737 "1527c76b6fn4zzkgfq5xvhh7x9a9686g7fjiz717rw5vklf5ik5z"))))
4738 (build-system python-build-system)
4739 (native-inputs
4740 `(("python-setuptools" ,python-setuptools)))
4741 (synopsis "MessagePack (de)serializer")
4742 (description "MessagePack is a fast, compact binary serialization format,
4743suitable for similar data to JSON. This package provides CPython bindings for
4744reading and writing MessagePack data.")
4745 (home-page "https://pypi.python.org/pypi/msgpack-python/")
4746 (license asl2.0)))
4747
4748(define-public python2-msgpack
4749 (package-with-python2 python-msgpack))
6e5e39f4
CR
4750
4751(define-public python-netaddr
4752 (package
4753 (name "python-netaddr")
4754 (version "0.7.18")
4755 (source
4756 (origin
4757 (method url-fetch)
4758 (uri (string-append
4759 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
4760 version
4761 ".tar.gz"))
4762 (sha256
4763 (base32
4764 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
4765 (build-system python-build-system)
4766 (arguments `(#:tests? #f)) ;; No tests.
4767 (inputs
4768 `(("python-setuptools" ,python-setuptools)))
4769 (home-page "https://github.com/drkjam/netaddr/")
4770 (synopsis "Pythonic manipulation of network addresses")
4771 (description
4772 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
4773and MAC network addresses.")
4774 (license bsd-3)))
4775
4776(define-public python2-netaddr
4777 (package-with-python2 python-netaddr))
8c692a52
CR
4778
4779(define-public python-wrapt
4780 (package
4781 (name "python-wrapt")
4782 (version "1.10.5")
4783 (source
4784 (origin
4785 (method url-fetch)
4786 (uri (string-append
4787 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
4788 version
4789 ".tar.gz"))
4790 (sha256
4791 (base32
4792 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
4793 (build-system python-build-system)
4794 (arguments
4795 ;; Tests are not included in the tarball, they are only available in the
4796 ;; git repository.
4797 `(#:tests? #f))
4798 (inputs
4799 `(("python-setuptools" ,python-setuptools)))
4800 (home-page "https://github.com/GrahamDumpleton/wrapt")
4801 (synopsis "Module for decorators, wrappers and monkey patching")
4802 (description
4803 "The aim of the wrapt module is to provide a transparent object proxy for
4804 Python, which can be used as the basis for the construction of function
4805 wrappers and decorator functions.")
4806 (license bsd-2)))
4807
4808(define-public python2-wrapt
4809 (package-with-python2 python-wrapt))
b85c85be
CR
4810
4811(define-public python-iso8601
4812 (package
4813 (name "python-iso8601")
4814 (version "0.1.10")
4815 (source
4816 (origin
4817 (method url-fetch)
4818 (uri (string-append
4819 "https://pypi.python.org/packages/source/i/iso8601/iso8601-"
4820 version
4821 ".tar.gz"))
4822 (sha256
4823 (base32
4824 "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7"))))
4825 (build-system python-build-system)
4826 (inputs
4827 `(("python-setuptools" ,python-setuptools)))
4828 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
4829 (synopsis "Module to parse ISO 8601 dates")
4830 (description
4831 "This module parses the most common forms of ISO 8601 date strings (e.g.
4832@code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
4833 (license license:expat)))
4834
4835(define-public python2-iso8601
4836 (package-with-python2 python-iso8601))
5e412b63
CR
4837
4838(define-public python-monotonic
4839 (package
4840 (name "python-monotonic")
4841 (version "0.3")
4842 (source
4843 (origin
4844 (method url-fetch)
4845 (uri (string-append
4846 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
4847 version
4848 ".tar.gz"))
4849 (sha256
4850 (base32
4851 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
4852 (build-system python-build-system)
4853 (inputs
4854 `(("python-setuptools" ,python-setuptools)))
4855 (home-page "https://github.com/atdt/monotonic")
4856 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
4857 (description
4858 "This module provides a monotonic() function which returns the value (in
4859fractional seconds) of a clock which never goes backwards.")
4860 (license asl2.0)))
4861
4862(define-public python2-monotonic
4863 (package-with-python2 python-monotonic))
de34afac
CR
4864
4865(define-public python-webob
4866 (package
4867 (name "python-webob")
4868 (version "1.5.0b0")
4869 (source
4870 (origin
4871 (method url-fetch)
4872 (uri (string-append
4873 "https://pypi.python.org/packages/source/W/WebOb/WebOb-"
4874 version ".tar.gz"))
4875 (sha256
4876 (base32
4877 "140b3iczclk1j0405rvw5gxshqfkhcc8254fj520z3m23cwbql4a"))))
4878 (build-system python-build-system)
4879 (inputs
4880 `(("python-nose" ,python-nose)
4881 ("python-setuptools" ,python-setuptools)))
4882 (home-page "http://webob.org/")
4883 (synopsis "WSGI request and response object")
4884 (description
4885 "WebOb provides wrappers around the WSGI request environment, and an
4886object to help create WSGI responses.")
4887 (license license:expat)))
4888
4889(define-public python2-webob
4890 (package-with-python2 python-webob))
350ba0a3
CR
4891
4892(define-public python-prettytable
4893 (package
4894 (name "python-prettytable")
4895 (version "0.7.2")
4896 (source
4897 (origin
4898 (method url-fetch)
4899 (uri (string-append
4900 "https://pypi.python.org/packages/source/P/PrettyTable/"
4901 "prettytable-" version ".tar.bz2"))
4902 (sha256
4903 (base32
4904 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
4905 (build-system python-build-system)
4906 (inputs
4907 `(("python-setuptools" ,python-setuptools)))
4908 (home-page "http://code.google.com/p/prettytable/")
4909 (synopsis "Display tabular data in an ASCII table format")
4910 (description
4911 "A library designed to represent tabular data in visually appealing ASCII
4912tables. PrettyTable allows for selection of which columns are to be printed,
4913independent alignment of columns (left or right justified or centred) and
4914printing of sub-tables by specifying a row range.")
4915 (license bsd-3)))
4916
4917(define-public python2-prettytable
4918 (package-with-python2 python-prettytable))
7a8ac75a
RW
4919
4920(define-public python-pyasn1
4921 (package
4922 (name "python-pyasn1")
4923 (version "0.1.8")
4924 (source
4925 (origin
4926 (method url-fetch)
4927 (uri (string-append "https://pypi.python.org/packages/source/p/"
4928 "pyasn1/pyasn1-" version ".tar.gz"))
4929 (sha256
4930 (base32
4931 "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx"))))
4932 (build-system python-build-system)
4933 (home-page "http://pyasn1.sourceforge.net/")
4934 (synopsis "ASN.1 types and codecs")
4935 (description
4936 "This is an implementation of ASN.1 types and codecs in Python. It is
4937suitable for a wide range of protocols based on the ASN.1 specification.")
4938 (license bsd-2)))
4939
4940(define-public python2-pyasn1
4941 (package-with-python2 python-pyasn1))