66ed16a543ba733e9e9096012b1cf620362da78d
[jackhill/guix/guix.git] / gnu / packages / python.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
9 ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
10 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
11 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
12 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
13 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
17 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
19 ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
21 ;;;
22 ;;; This file is part of GNU Guix.
23 ;;;
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
28 ;;;
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
33 ;;;
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
36
37 (define-module (gnu packages python)
38 #:use-module ((guix licenses)
39 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
40 gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+
41 isc mpl2.0 psfl public-domain repoze unlicense x11-style
42 zpl2.1))
43 #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages attr)
46 #:use-module (gnu packages backup)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages databases)
49 #:use-module (gnu packages file)
50 #:use-module (gnu packages fontutils)
51 #:use-module (gnu packages gcc)
52 #:use-module (gnu packages ghostscript)
53 #:use-module (gnu packages glib)
54 #:use-module (gnu packages gtk)
55 #:use-module (gnu packages icu4c)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages imagemagick)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages linux)
60 #:use-module (gnu packages maths)
61 #:use-module (gnu packages multiprecision)
62 #:use-module (gnu packages networking)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages pcre)
65 #:use-module (gnu packages perl)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages readline)
68 #:use-module (gnu packages statistics)
69 #:use-module (gnu packages texlive)
70 #:use-module (gnu packages texinfo)
71 #:use-module (gnu packages tls)
72 #:use-module (gnu packages web)
73 #:use-module (gnu packages base)
74 #:use-module (gnu packages xml)
75 #:use-module (gnu packages xorg)
76 #:use-module (gnu packages xdisorg)
77 #:use-module (gnu packages zip)
78 #:use-module (gnu packages tcl)
79 #:use-module (guix packages)
80 #:use-module (guix download)
81 #:use-module (guix git-download)
82 #:use-module (guix utils)
83 #:use-module (guix build-system gnu)
84 #:use-module (guix build-system cmake)
85 #:use-module (guix build-system python)
86 #:use-module (guix build-system trivial)
87 #:use-module (srfi srfi-1))
88
89 (define-public python-2
90 (package
91 (name "python")
92 (version "2.7.10")
93 (source
94 (origin
95 (method url-fetch)
96 (uri (string-append "https://www.python.org/ftp/python/"
97 version "/Python-" version ".tar.xz"))
98 (sha256
99 (base32
100 "1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw"))
101 (patches (map search-patch
102 '("python-2.7-search-paths.patch"
103 "python-2-deterministic-build-info.patch"
104 "python-2.7-source-date-epoch.patch")))))
105 (outputs '("out"
106 "tk")) ;tkinter; adds 50 MiB to the closure
107 (build-system gnu-build-system)
108 (arguments
109 `(#:tests? #f
110 ;; 268 tests OK.
111 ;; 103 tests failed:
112 ;; test_distutils test_shutil test_signal test_site test_slice
113 ;; test_smtplib test_smtpnet test_socket test_socketserver
114 ;; test_softspace test_sort test_spwd test_sqlite test_ssl
115 ;; test_startfile test_stat test_str test_strftime test_string
116 ;; test_stringprep test_strop test_strptime test_strtod test_struct
117 ;; test_structmembers test_structseq test_subprocess test_sunau
118 ;; test_sunaudiodev test_sundry test_symtable test_syntax test_sys
119 ;; test_sys_setprofile test_sys_settrace test_sysconfig test_tarfile
120 ;; test_tcl test_telnetlib test_tempfile test_textwrap test_thread
121 ;; test_threaded_import test_threadedtempfile test_threading
122 ;; test_threading_local test_threadsignals test_time test_timeit
123 ;; test_timeout test_tk test_tokenize test_tools test_trace
124 ;; test_traceback test_transformer test_ttk_guionly test_ttk_textonly
125 ;; test_tuple test_typechecks test_ucn test_unary
126 ;; test_undocumented_details test_unicode test_unicode_file
127 ;; test_unicodedata test_univnewlines test_univnewlines2k test_unpack
128 ;; test_urllib test_urllib2 test_urllib2_localnet test_urllib2net
129 ;; test_urllibnet test_urlparse test_userdict test_userlist
130 ;; test_userstring test_uu test_uuid test_wait3 test_wait4
131 ;; test_warnings test_wave test_weakref test_weakset test_whichdb
132 ;; test_winreg test_winsound test_with test_wsgiref test_xdrlib
133 ;; test_xml_etree test_xml_etree_c test_xmllib test_xmlrpc
134 ;; test_xpickle test_xrange test_zipfile test_zipfile64
135 ;; test_zipimport test_zipimport_support test_zlib
136 ;; 30 tests skipped:
137 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
138 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
139 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_crypt
140 ;; test_curses test_dl test_gdb test_gl test_idle test_imageop
141 ;; test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos
142 ;; test_macostools test_msilib test_nis test_ossaudiodev
143 ;; test_scriptpackages
144 ;; 6 skips unexpected on linux2:
145 ;; test_bsddb test_bsddb3 test_crypt test_gdb test_idle test_ioctl
146 ;; One of the typical errors:
147 ;; test_unicode
148 ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No
149 ;; such file or directory
150 #:test-target "test"
151 #:configure-flags
152 (list "--enable-shared" ;allow embedding
153 "--with-system-ffi" ;build ctypes
154 (string-append "LDFLAGS=-Wl,-rpath="
155 (assoc-ref %outputs "out") "/lib"))
156
157 #:modules ((ice-9 ftw) (ice-9 match)
158 (guix build utils) (guix build gnu-build-system))
159 #:phases
160 (modify-phases %standard-phases
161 (add-before
162 'configure 'patch-lib-shells
163 (lambda _
164 ;; Filter for existing files, since some may not exist in all
165 ;; versions of python that are built with this recipe.
166 (substitute* (filter file-exists?
167 '("Lib/subprocess.py"
168 "Lib/popen2.py"
169 "Lib/distutils/tests/test_spawn.py"
170 "Lib/test/test_subprocess.py"))
171 (("/bin/sh") (which "sh")))
172
173 ;; Use zero as the timestamp in .pyc files so that builds are
174 ;; deterministic. TODO: Remove it when this variable is set in
175 ;; gnu-build-system.scm.
176 (setenv "SOURCE_DATE_EPOCH" "1")
177 #t))
178 (add-before 'configure 'do-not-record-configure-flags
179 (lambda* (#:key configure-flags #:allow-other-keys)
180 ;; Remove configure flags from the installed '_sysconfigdata.py'
181 ;; and 'Makefile' so we don't end up keeping references to the
182 ;; build tools.
183 ;;
184 ;; Preserve at least '--with-system-ffi' since otherwise the
185 ;; thing tries to build libffi, fails, and we end up with a
186 ;; Python that lacks ctypes.
187 (substitute* "configure"
188 (("^CONFIG_ARGS=.*$")
189 (format #f "CONFIG_ARGS='~a'\n"
190 (if (member "--with-system-ffi" configure-flags)
191 "--with-system-ffi"
192 ""))))
193 #t))
194 (add-before
195 'check 'pre-check
196 (lambda _
197 ;; 'Lib/test/test_site.py' needs a valid $HOME
198 (setenv "HOME" (getcwd))
199 #t))
200 (add-after
201 'unpack 'set-source-file-times-to-1980
202 ;; XXX One of the tests uses a ZIP library to pack up some of the
203 ;; source tree, and fails with "ZIP does not support timestamps
204 ;; before 1980". Work around this by setting the file times in the
205 ;; source tree to sometime in early 1980.
206 (lambda _
207 (let ((circa-1980 (* 10 366 24 60 60)))
208 (ftw "." (lambda (file stat flag)
209 (utime file circa-1980 circa-1980)
210 #t))
211 #t)))
212 (add-after 'install 'move-tk-inter
213 (lambda* (#:key outputs #:allow-other-keys)
214 ;; When Tkinter support is built move it to a separate output so
215 ;; that the main output doesn't contain a reference to Tcl/Tk.
216 (let ((out (assoc-ref outputs "out"))
217 (tk (assoc-ref outputs "tk")))
218 (when tk
219 (match (find-files out "tkinter.*\\.so")
220 ((tkinter.so)
221 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
222 ;; want it under TK/lib/pythonX.Y/site-packages.
223 (let* ((len (string-length out))
224 (target (string-append
225 tk "/"
226 (string-drop
227 (dirname (dirname tkinter.so))
228 len)
229 "/site-packages")))
230 (install-file tkinter.so target)
231 (delete-file tkinter.so)))))
232 #t))))))
233 (inputs
234 `(("bzip2" ,bzip2)
235 ("gdbm" ,gdbm)
236 ("libffi" ,libffi) ; for ctypes
237 ("sqlite" ,sqlite) ; for sqlite extension
238 ("openssl" ,openssl)
239 ("readline" ,readline)
240 ("zlib" ,zlib)
241 ("tcl" ,tcl)
242 ("tk" ,tk))) ; for tkinter
243 (native-inputs
244 `(("pkg-config" ,pkg-config)))
245 (native-search-paths
246 (list (search-path-specification
247 (variable "PYTHONPATH")
248 (files '("lib/python2.7/site-packages")))))
249 (home-page "http://python.org")
250 (synopsis "High-level, dynamically-typed programming language")
251 (description
252 "Python is a remarkably powerful dynamic programming language that
253 is used in a wide variety of application domains. Some of its key
254 distinguishing features include: clear, readable syntax; strong
255 introspection capabilities; intuitive object orientation; natural
256 expression of procedural code; full modularity, supporting hierarchical
257 packages; exception-based error handling; and very high level dynamic
258 data types.")
259 (license psfl)))
260
261 (define-public python
262 (package (inherit python-2)
263 (version "3.4.3")
264 (source (origin
265 (method url-fetch)
266 (uri (string-append "https://www.python.org/ftp/python/"
267 version "/Python-" version ".tar.xz"))
268 (patches (map search-patch
269 '("python-fix-tests.patch"
270 ;; XXX Try removing this patch for python > 3.4.3
271 "python-disable-ssl-test.patch"
272 "python-3-deterministic-build-info.patch"
273 "python-3-search-paths.patch")))
274 (patch-flags '("-p0"))
275 (sha256
276 (base32
277 "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm"))))
278 (arguments (substitute-keyword-arguments (package-arguments python-2)
279 ((#:tests? _) #t)))
280 (native-search-paths
281 (list (search-path-specification
282 (variable "PYTHONPATH")
283 (files (list (string-append "lib/python"
284 (version-major+minor version)
285 "/site-packages"))))))))
286
287 ;; Minimal variants of Python, mostly used to break the cycle between Tk and
288 ;; Python (Tk -> libxcb -> Python.)
289
290 (define-public python2-minimal
291 (package (inherit python-2)
292 (name "python-minimal")
293 (outputs '("out"))
294 (arguments
295 (substitute-keyword-arguments (package-arguments python-2)
296 ((#:configure-flags cf)
297 `(append ,cf '("--without-system-ffi")))))
298 (inputs '()))) ;none of the optional dependencies
299
300 (define-public python-minimal
301 (package (inherit python)
302 (name "python-minimal")
303 (outputs '("out"))
304 (arguments
305 (substitute-keyword-arguments (package-arguments python)
306 ((#:configure-flags cf)
307 `(append ,cf '("--without-system-ffi")))))
308
309 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
310 ;; zlib is required by 'zipimport', used by pip.
311 (inputs `(("openssl" ,openssl)
312 ("zlib" ,zlib)))))
313
314 (define* (wrap-python3 python
315 #:optional
316 (name (string-append (package-name python) "-wrapper")))
317 (package (inherit python)
318 (name name)
319 (source #f)
320 (build-system trivial-build-system)
321 (outputs '("out"))
322 (propagated-inputs `(("python" ,python)))
323 (arguments
324 `(#:modules ((guix build utils))
325 #:builder
326 (begin
327 (use-modules (guix build utils))
328 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
329 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
330 (mkdir-p bin)
331 (for-each
332 (lambda (old new)
333 (symlink (string-append python old)
334 (string-append bin "/" new)))
335 `("python3" ,"pydoc3" ,"idle3")
336 `("python" ,"pydoc" ,"idle"))))))
337 (synopsis "Wrapper for the Python 3 commands")
338 (description
339 "This package provides wrappers for the commands of Python@tie{}3.x such
340 that they can be invoked under their usual name---e.g., @command{python}
341 instead of @command{python3}.")))
342
343 (define-public python-wrapper (wrap-python3 python))
344 (define-public python-minimal-wrapper (wrap-python3 python-minimal))
345
346 (define-public python-psutil
347 (package
348 (name "python-psutil")
349 (version "3.3.0")
350 (source
351 (origin
352 (method url-fetch)
353 (uri (pypi-uri "psutil" version))
354 (sha256
355 (base32
356 "11bd1555vf2ibjnmqf64im5cp55vcqfq45ccinm9ll3bs68na6s2"))))
357 (build-system python-build-system)
358 (native-inputs
359 `(("python-setuptools" ,python-setuptools)))
360 (home-page "https://pypi.python.org/pypi/psutil/")
361 (synopsis "Library for retrieving information on running processes")
362 (description
363 "psutil (Python system and process utilities) is a library for retrieving
364 information on running processes and system utilization (CPU, memory, disks,
365 network) in Python. It is useful mainly for system monitoring, profiling and
366 limiting process resources and management of running processes. It implements
367 many functionalities offered by command line tools such as: ps, top, lsof,
368 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
369 pidof, tty, taskset, pmap.")
370 (license bsd-3)))
371
372 (define-public python2-psutil
373 (package-with-python2 python-psutil))
374
375 (define-public python-passlib
376 (package
377 (name "python-passlib")
378 (version "1.6.5")
379 (source
380 (origin
381 (method url-fetch)
382 (uri (pypi-uri "passlib" version))
383 (sha256
384 (base32
385 "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"))))
386 (build-system python-build-system)
387 (native-inputs
388 `(("python-nose" ,python-nose)
389 ("python-setuptools" ,python-setuptools)))
390 (inputs
391 `(("python-py-bcrypt" ,python-py-bcrypt)))
392 (arguments
393 `(#:phases
394 (alist-cons-before
395 'check 'set-PYTHON_EGG_CACHE
396 ;; some tests require access to "$HOME/.cython"
397 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
398 %standard-phases)))
399 (home-page "https://bitbucket.org/ecollins/passlib")
400 (synopsis
401 "Comprehensive password hashing framework")
402 (description
403 "Passlib is a password hashing library for Python 2 & 3, which provides
404 cross-platform implementations of over 30 password hashing algorithms, as well
405 as a framework for managing existing password hashes. It's designed to be
406 useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
407 to providing full-strength password hashing for multi-user application.")
408 (license bsd-3)))
409
410 (define-public python2-passlib
411 (package-with-python2 python-passlib))
412
413 (define-public python-py-bcrypt
414 (package
415 (name "python-py-bcrypt")
416 (version "0.4")
417 (source
418 (origin
419 (method url-fetch)
420 (uri (string-append
421 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
422 version
423 ".tar.gz"))
424 (sha256
425 (base32
426 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
427 (build-system python-build-system)
428 (native-inputs
429 `(("python-setuptools" ,python-setuptools)))
430 (home-page "https://code.google.com/p/py-bcrypt")
431 (synopsis
432 "Bcrypt password hashing and key derivation")
433 (description
434 "A python wrapper of OpenBSD's Blowfish password hashing code. This
435 system hashes passwords using a version of Bruce Schneier's Blowfish block
436 cipher with modifications designed to raise the cost of off-line password
437 cracking and frustrate fast hardware implementation. The computation cost of
438 the algorithm is parametised, so it can be increased as computers get faster.
439 The intent is to make a compromise of a password database less likely to
440 result in an attacker gaining knowledge of the plaintext passwords (e.g. using
441 John the Ripper).")
442 ;; "sha2.c" is under BSD-3;
443 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
444 ;; the rest is under ISC.
445 (license (list isc bsd-3 bsd-4))))
446
447 (define-public python2-py-bcrypt
448 (package-with-python2 python-py-bcrypt))
449
450
451 (define-public python-paramiko
452 (package
453 (name "python-paramiko")
454 (version "1.15.2")
455 (source
456 (origin
457 (method url-fetch)
458 (uri (string-append
459 "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
460 version
461 ".tar.gz"))
462 (sha256
463 (base32
464 "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
465 (build-system python-build-system)
466 (native-inputs
467 `(("python-setuptools" ,python-setuptools)))
468 (propagated-inputs
469 `(("python-pycrypto" ,python-pycrypto)))
470 (inputs
471 `(("python-ecdsa" ,python-ecdsa)))
472 (home-page "http://www.paramiko.org/")
473 (synopsis "SSHv2 protocol library")
474 (description "Paramiko is a python implementation of the SSHv2 protocol,
475 providing both client and server functionality. While it leverages a Python C
476 extension for low level cryptography (PyCrypto), Paramiko itself is a pure
477 Python interface around SSH networking concepts.")
478 (license lgpl2.1+)))
479
480 (define-public python2-paramiko
481 (package-with-python2 python-paramiko))
482
483
484 (define-public python-httplib2
485 (package
486 (name "python-httplib2")
487 (version "0.9.1")
488 (source
489 (origin
490 (method url-fetch)
491 (uri (string-append
492 "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
493 version
494 ".tar.gz"))
495 (sha256
496 (base32
497 "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
498 (build-system python-build-system)
499 (native-inputs
500 `(("python-setuptools" ,python-setuptools)))
501 (home-page
502 "https://github.com/jcgregorio/httplib2")
503 (synopsis "Comprehensive HTTP client library")
504 (description
505 "A comprehensive HTTP client library supporting many features left out of
506 other HTTP libraries.")
507 (license license:expat)))
508
509 (define-public python2-httplib2
510 (package-with-python2 python-httplib2))
511
512 (define-public python-ecdsa
513 (package
514 (name "python-ecdsa")
515 (version "0.13")
516 (source
517 (origin
518 (method url-fetch)
519 (uri (string-append
520 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
521 version
522 ".tar.gz"))
523 (sha256
524 (base32
525 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
526 (build-system python-build-system)
527 (native-inputs
528 `(("python-setuptools" ,python-setuptools)))
529 (inputs
530 `(("openssl" ,openssl)))
531 (home-page
532 "http://github.com/warner/python-ecdsa")
533 (synopsis
534 "ECDSA cryptographic signature library (pure python)")
535 (description
536 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
537 Curve Digital Signature Algorithm), implemented purely in Python. With this
538 library, you can quickly create keypairs (signing key and verifying key), sign
539 messages, and verify the signatures. The keys and signatures are very short,
540 making them easy to handle and incorporate into other protocols.")
541 (license license:expat)))
542
543 (define-public python2-ecdsa
544 (package-with-python2 python-ecdsa))
545
546 (define-public python-ccm
547 (package
548 (name "python-ccm")
549 (version "2.0.4.1")
550 (source
551 (origin
552 (method url-fetch)
553 (uri (string-append
554 "https://pypi.python.org/packages/source/c/ccm/ccm-"
555 version
556 ".tar.gz"))
557 (sha256
558 (base32
559 "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
560 (build-system python-build-system)
561 (native-inputs
562 `(("python-setuptools" ,python-setuptools)))
563 (inputs
564 `(("python-pyyaml" ,python-pyyaml)
565 ("python-six" ,python-six)))
566 (home-page "https://github.com/pcmanus/ccm")
567 (synopsis "Cassandra Cluster Manager")
568 (description "A script/library to create, launch and remove an Apache
569 Cassandra cluster on localhost.")
570 (license asl2.0)))
571
572 (define-public python2-ccm
573 (package-with-python2 python-ccm))
574
575 (define-public python-pytz
576 (package
577 (name "python-pytz")
578 (version "2015.7")
579 (source
580 (origin
581 (method url-fetch)
582 (uri (pypi-uri "pytz" version))
583 (sha256
584 (base32
585 "1spgdfp1ssya7v3kww7zp71xpj437skpqazcvqr3kr1p1brnw9lr"))))
586 (build-system python-build-system)
587 (arguments `(#:tests? #f)) ; no test target
588 (home-page "http://pythonhosted.org/pytz")
589 (synopsis "Python timezone library")
590 (description
591 "This library allows accurate and cross platform timezone calculations
592 using Python 2.4 or higher and provides access to the Olson timezone database.")
593 (license license:expat)))
594
595 (define-public python2-pytz
596 (package-with-python2 python-pytz))
597
598
599 (define-public python-babel
600 (package
601 (name "python-babel")
602 (version "2.1.1")
603 (source
604 (origin
605 (method url-fetch)
606 (uri (pypi-uri "Babel" version))
607 (sha256
608 (base32
609 "0j2jgfzj1a2m39pm2qc36fzr7a6p5ybwndi0xdzhi2p8zw7dbdkz"))))
610 (build-system python-build-system)
611 (inputs
612 `(("python-pytz" ,python-pytz)
613 ("python-setuptools" ,python-setuptools)))
614 (arguments `(#:tests? #f)) ; no test target
615 (home-page "http://babel.pocoo.org/")
616 (synopsis
617 "Tools for internationalizing Python applications")
618 (description
619 "Babel is composed of two major parts:
620 - tools to build and work with gettext message catalogs
621 - a Python interface to the CLDR (Common Locale Data Repository), providing
622 access to various locale display names, localized number and date formatting,
623 etc. ")
624 (license bsd-3)))
625
626 (define-public python2-babel
627 (package-with-python2 python-babel))
628
629 (define-public python2-backport-ssl-match-hostname
630 (package
631 (name "python2-backport-ssl-match-hostname")
632 (version "3.5.0.1")
633 (source
634 (origin
635 (method url-fetch)
636 (uri (string-append
637 "https://pypi.python.org/packages/source/b/"
638 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
639 version ".tar.gz"))
640 (sha256
641 (base32
642 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
643 (build-system python-build-system)
644 (arguments
645 `(#:python ,python-2
646 #:tests? #f)) ; no test target
647 (inputs
648 `(("python2-setuptools" ,python2-setuptools)))
649 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
650 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
651 (description
652 "This backport brings the ssl.match_hostname() function to users of
653 earlier versions of Python. The function checks the hostname in the
654 certificate returned by the server to which a connection has been established,
655 and verifies that it matches the intended target hostname.")
656 (license psfl)))
657
658 (define-public python-h5py
659 (package
660 (name "python-h5py")
661 (version "2.4.0")
662 (source
663 (origin
664 (method url-fetch)
665 (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-"
666 version ".tar.gz"))
667 (sha256
668 (base32
669 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps"))))
670 (build-system python-build-system)
671 (arguments
672 `(#:tests? #f ; no test target
673 #:phases
674 (modify-phases %standard-phases
675 (add-after 'unpack 'fix-hdf5-paths
676 (lambda* (#:key inputs #:allow-other-keys)
677 (let ((prefix (assoc-ref inputs "hdf5")))
678 (substitute* "setup_build.py"
679 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
680 (string-append "['" prefix "/lib" "']"))
681 (("'/opt/local/include', '/usr/local/include'")
682 (string-append "'" prefix "/include" "'")))
683 (substitute* "setup_configure.py"
684 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
685 (string-append "['" prefix "/lib" "']")))
686 #t))))))
687 (propagated-inputs
688 `(("python-numpy" ,python-numpy)))
689 (inputs
690 `(("hdf5" ,hdf5)))
691 (native-inputs
692 `(("python-cython" ,python-cython)))
693 (home-page "http://www.h5py.org/")
694 (synopsis "Read and write HDF5 files from Python")
695 (description
696 "The h5py package provides both a high- and low-level interface to the
697 HDF5 library from Python. The low-level interface is intended to be a
698 complete wrapping of the HDF5 API, while the high-level component supports
699 access to HDF5 files, datasets and groups using established Python and NumPy
700 concepts.")
701 (license bsd-3)))
702
703 (define-public python2-h5py
704 (let ((h5py (package-with-python2 python-h5py)))
705 (package (inherit h5py)
706 (propagated-inputs
707 `(("python2-numpy" ,python2-numpy)
708 ,@(alist-delete
709 "python-numpy"
710 (package-propagated-inputs h5py)))))))
711
712 (define-public python-lockfile
713 (package
714 (name "python-lockfile")
715 (version "0.12.2")
716 (source
717 (origin
718 (method url-fetch)
719 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
720 "lockfile-" version ".tar.gz"))
721 (sha256
722 (base32
723 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
724 (build-system python-build-system)
725 (arguments '(#:test-target "check"))
726 (native-inputs
727 `(("python-pbr" ,python-pbr)))
728 (home-page "http://code.google.com/p/pylockfile/")
729 (synopsis "Platform-independent file locking module")
730 (description
731 "The lockfile package exports a LockFile class which provides a simple
732 API for locking files.")
733 (license license:expat)
734 (properties `((python2-variant . ,(delay python2-lockfile))))))
735
736 (define-public python2-lockfile
737 (let ((base (package-with-python2 (strip-python2-variant python-lockfile))))
738 (package
739 (inherit base)
740 (native-inputs `(("python2-setuptools" ,python2-setuptools)
741 ,@(package-native-inputs base))))))
742
743 (define-public python-mock
744 (package
745 (name "python-mock")
746 (version "1.0.1")
747 (source
748 (origin
749 (method url-fetch)
750 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
751 "mock-" version ".tar.gz"))
752 (sha256
753 (base32
754 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
755 (build-system python-build-system)
756 (arguments '(#:test-target "check"))
757 (home-page "http://code.google.com/p/mock/")
758 (synopsis "Python mocking and patching library for testing")
759 (description
760 "Mock is a library for testing in Python. It allows you to replace parts
761 of your system under test with mock objects and make assertions about how they
762 have been used.")
763 (license license:expat)))
764
765 (define-public python2-mock
766 (package-with-python2 python-mock))
767
768
769 (define-public python-setuptools
770 (package
771 (name "python-setuptools")
772 (version "18.3.1")
773 (source
774 (origin
775 (method url-fetch)
776 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
777 version ".tar.gz"))
778 (sha256
779 (base32
780 "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
781 (build-system python-build-system)
782 ;; FIXME: Tests require pytest, which itself relies on setuptools.
783 ;; One could bootstrap with an internal untested setuptools.
784 (arguments
785 `(#:tests? #f))
786 (home-page "https://pypi.python.org/pypi/setuptools")
787 (synopsis
788 "Library designed to facilitate packaging Python projects")
789 (description
790 "Setuptools is a fully-featured, stable library designed to facilitate
791 packaging Python projects, where packaging includes:
792 Python package and module definitions,
793 distribution package metadata,
794 test hooks,
795 project installation,
796 platform-specific details,
797 Python 3 support.")
798 (license psfl)))
799
800 (define-public python2-setuptools
801 (package-with-python2 python-setuptools))
802
803
804 (define-public python-pycrypto
805 (package
806 (name "python-pycrypto")
807 (version "2.6.1")
808 (source
809 (origin
810 (method url-fetch)
811 (uri (string-append "https://pypi.python.org/packages/source/p/"
812 "pycrypto/pycrypto-" version ".tar.gz"))
813 (sha256
814 (base32
815 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
816 (build-system python-build-system)
817 (native-inputs
818 `(("python-setuptools" ,python-setuptools)))
819 (inputs
820 `(("python" ,python)
821 ("gmp" ,gmp)))
822 (arguments
823 `(#:phases
824 (alist-cons-before
825 'build 'set-build-env
826 ;; pycrypto runs an autoconf configure script behind the scenes
827 (lambda _
828 (setenv "CONFIG_SHELL" (which "bash")))
829 %standard-phases)))
830 (home-page "http://www.pycrypto.org/")
831 (synopsis "Cryptographic modules for Python")
832 (description
833 "Pycrypto is a collection of both secure hash functions (such as SHA256
834 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
835 etc.). The package is structured to make adding new modules easy.")
836 (license public-domain)))
837
838 (define-public python2-pycrypto
839 (let ((pycrypto (package-with-python2 python-pycrypto)))
840 (package (inherit pycrypto)
841 (inputs
842 `(("python" ,python-2)
843 ,@(alist-delete
844 "python"
845 (package-inputs pycrypto)))))))
846
847 (define-public python-keyring
848 (package
849 (name "python-keyring")
850 (version "5.7.1")
851 (source
852 (origin
853 (method url-fetch)
854 (uri (pypi-uri "keyring" version))
855 (sha256
856 (base32
857 "1h7a1r9ick7wdd0xb5p63413nvjadna2xawrsvmklsl5ddhm5wrx"))))
858 (build-system python-build-system)
859 (native-inputs
860 `(("python-setuptools" ,python-setuptools)
861 ("python-setuptools-scm" ,python-setuptools-scm)
862 ("python-mock" ,python-mock)))
863 (inputs
864 `(("python-pycrypto" ,python-pycrypto)))
865 (arguments
866 `(#:tests? #f)) ;TODO: tests require pytest
867 (home-page "http://bitbucket.org/kang/python-keyring-lib")
868 (synopsis "Store and access your passwords safely")
869 (description
870 "The Python keyring lib provides a easy way to access the system keyring
871 service from python. It can be used in any application that needs safe
872 password storage.")
873 ;; "MIT" and PSF dual license
874 (license x11)))
875
876 (define-public python2-keyring
877 (let ((keyring (package-with-python2 python-keyring)))
878 (package (inherit keyring)
879 (inputs
880 `(("python2-pycrypto" ,python2-pycrypto))))))
881
882 (define-public python-six
883 (package
884 (name "python-six")
885 (version "1.10.0")
886 (source
887 (origin
888 (method url-fetch)
889 (uri (pypi-uri "six" version))
890 (sha256
891 (base32
892 "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
893 (build-system python-build-system)
894 (inputs
895 `(("python-setuptools" ,python-setuptools)))
896 (home-page "http://pypi.python.org/pypi/six/")
897 (synopsis "Python 2 and 3 compatibility utilities")
898 (description
899 "Six is a Python 2 and 3 compatibility library. It provides utility
900 functions for smoothing over the differences between the Python versions with
901 the goal of writing Python code that is compatible on both Python versions.
902 Six supports every Python version since 2.5. It is contained in only one
903 Python file, so it can be easily copied into your project.")
904 (license x11)))
905
906 (define-public python2-six
907 (package-with-python2 python-six))
908
909 (define-public python-dateutil-2
910 (package
911 (name "python-dateutil")
912 (version "2.4.2")
913 (source
914 (origin
915 (method url-fetch)
916 (uri (string-append "https://pypi.python.org/packages/source/p/"
917 name "/" name "-" version ".tar.gz"))
918 (sha256
919 (base32
920 "0ggbm2z72p0nwjqgvpw8s5bqzwayqiqv2iws0x2a605m3mf4959y"))))
921 (build-system python-build-system)
922 (inputs
923 `(("python-setuptools" ,python-setuptools)
924 ("python-six" ,python-six)))
925 (home-page "http://labix.org/python-dateutil")
926 (synopsis "Extensions to the standard datetime module")
927 (description
928 "The dateutil module provides powerful extensions to the standard
929 datetime module, available in Python 2.3+.")
930 (license bsd-3)))
931
932 (define-public python2-dateutil-2
933 (package-with-python2 python-dateutil-2))
934
935 (define-public python-dateutil
936 (package
937 (name "python-dateutil")
938 (version "1.5") ; last version for python < 3
939 (source
940 (origin
941 (method url-fetch)
942 (uri (string-append "http://labix.org/download/python-dateutil/"
943 "python-dateutil-" version ".tar.gz"))
944 (sha256
945 (base32
946 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
947 (build-system python-build-system)
948 (inputs
949 `(("python-setuptools" ,python-setuptools)))
950 (home-page "http://labix.org/python-dateutil")
951 (synopsis "Extensions to the standard datetime module")
952 (description
953 "The dateutil module provides powerful extensions to the standard
954 datetime module, available in Python 2.3+.")
955 (license psfl)))
956
957 (define-public python2-dateutil
958 (package-with-python2 python-dateutil))
959
960 (define-public python-parsedatetime
961 (package
962 (name "python-parsedatetime")
963 (version "1.5")
964 (source
965 (origin
966 (method url-fetch)
967 (uri (string-append "https://pypi.python.org/packages/source/p/"
968 "parsedatetime/parsedatetime-" version ".tar.gz"))
969 (sha256
970 (base32
971 "1as0mm4ql3z0324nc9bys2s1ngh507i317p16b79rx86wlmvx9ix"))))
972 (build-system python-build-system)
973 (native-inputs
974 `(("python-setuptools" ,python-setuptools)))
975 (home-page "http://github.com/bear/parsedatetime/")
976 (synopsis
977 "Parse human-readable date/time text")
978 (description
979 "Parse human-readable date/time text.")
980 (license asl2.0)))
981
982 (define-public python2-parsedatetime
983 (package-with-python2 python-parsedatetime))
984
985 (define-public python-pandas
986 (package
987 (name "python-pandas")
988 (version "0.18.0")
989 (source
990 (origin
991 (method url-fetch)
992 (uri (pypi-uri "pandas" version))
993 (sha256
994 (base32 "050qw0ap5bhyv5flp78x3lcq1dlminl3xaj6kbrm0jqmx0672xf9"))))
995 (build-system python-build-system)
996 (propagated-inputs
997 `(("python-numpy" ,python-numpy)
998 ("python-pytz" ,python-pytz)
999 ("python-dateutil" ,python-dateutil-2)))
1000 (native-inputs
1001 `(("python-nose" ,python-nose)
1002 ("python-setuptools" ,python-setuptools)))
1003 (home-page "http://pandas.pydata.org")
1004 (synopsis "Data structures for data analysis, time series, and statistics")
1005 (description
1006 "Pandas is a Python package providing fast, flexible, and expressive data
1007 structures designed to make working with structured (tabular,
1008 multidimensional, potentially heterogeneous) and time series data both easy
1009 and intuitive. It aims to be the fundamental high-level building block for
1010 doing practical, real world data analysis in Python.")
1011 (license bsd-3)))
1012
1013 (define-public python2-pandas
1014 (let ((pandas (package-with-python2 python-pandas)))
1015 (package (inherit pandas)
1016 (propagated-inputs
1017 `(("python2-numpy" ,python2-numpy)
1018 ,@(alist-delete "python-numpy"
1019 (package-propagated-inputs pandas)))))))
1020
1021 (define-public python-tzlocal
1022 (package
1023 (name "python-tzlocal")
1024 (version "1.2")
1025 (source
1026 (origin
1027 (method url-fetch)
1028 (uri (pypi-uri "tzlocal" version))
1029 (sha256
1030 (base32
1031 "12wsw2fl3adrqrwghasld57bhqdrzn0crblqrci1p5acd0ni53s3"))))
1032 (build-system python-build-system)
1033 (propagated-inputs `(("python-pytz" ,python-pytz)))
1034 (home-page "https://github.com/regebro/tzlocal")
1035 (synopsis
1036 "Local timezone information for Python")
1037 (description
1038 "Tzlocal returns a tzinfo object with the local timezone information.
1039 This module attempts to fix a glaring hole in pytz, that there is no way to
1040 get the local timezone information, unless you know the zoneinfo name, and
1041 under several distributions that's hard or impossible to figure out.")
1042 (license cc0)))
1043
1044 (define-public python2-pysqlite
1045 (package
1046 (name "python2-pysqlite")
1047 (version "2.8.1")
1048 (source
1049 (origin
1050 (method url-fetch)
1051 (uri (pypi-uri "pysqlite" version))
1052 (sha256
1053 (base32
1054 "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
1055 (build-system python-build-system)
1056 (inputs
1057 `(("sqlite" ,sqlite)))
1058 (arguments
1059 `(#:python ,python-2 ; incompatible with Python 3
1060 #:tests? #f)) ; no test target
1061 (home-page "http://github.com/ghaering/pysqlite")
1062 (synopsis "SQLite bindings for Python")
1063 (description
1064 "Pysqlite provides SQLite bindings for Python that comply to the
1065 Database API 2.0T.")
1066 (license license:zlib)))
1067
1068
1069 (define-public python2-mechanize
1070 (package
1071 (name "python2-mechanize")
1072 (version "0.2.5")
1073 (source
1074 (origin
1075 (method url-fetch)
1076 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1077 version ".tar.gz"))
1078 (sha256
1079 (base32
1080 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1081 (build-system python-build-system)
1082 (inputs
1083 `(("python2-setuptools" ,python2-setuptools)))
1084 (arguments
1085 `(#:python ,python-2 ; apparently incompatible with Python 3
1086 #:tests? #f))
1087 ;; test fails with message
1088 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1089 ;; (python-3.3.2) or
1090 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1091 ;; (python-2.7.5).
1092 ;; The source code is from March 2011 and probably not up-to-date
1093 ;; with respect to python unit tests.
1094 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1095 (synopsis
1096 "Stateful programmatic web browsing in Python")
1097 (description
1098 "Mechanize implements stateful programmatic web browsing in Python,
1099 after Andy Lester’s Perl module WWW::Mechanize.")
1100 (license (non-copyleft "file://COPYING"
1101 "See COPYING in the distribution."))))
1102
1103
1104 (define-public python-simplejson
1105 (package
1106 (name "python-simplejson")
1107 (version "3.3.0")
1108 (source
1109 (origin
1110 (method url-fetch)
1111 (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-"
1112 version ".tar.gz"))
1113 (sha256
1114 (base32
1115 "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks"))))
1116 (build-system python-build-system)
1117 (home-page "http://simplejson.readthedocs.org/en/latest/")
1118 (synopsis
1119 "Json library for Python")
1120 (description
1121 "JSON (JavaScript Object Notation) is a subset of JavaScript
1122 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1123 format.
1124
1125 Simplejson exposes an API familiar to users of the standard library marshal
1126 and pickle modules. It is the externally maintained version of the json
1127 library contained in Python 2.6, but maintains compatibility with Python 2.5
1128 and (currently) has significant performance advantages, even without using
1129 the optional C extension for speedups. Simplejson is also supported on
1130 Python 3.3+.")
1131 (license x11)))
1132
1133 (define-public python2-simplejson
1134 (package-with-python2 python-simplejson))
1135
1136
1137 (define-public python-pyicu
1138 (package
1139 (name "python-pyicu")
1140 (version "1.9.2")
1141 (source
1142 (origin
1143 (method url-fetch)
1144 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1145 version ".tar.gz"))
1146 (sha256
1147 (base32
1148 "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
1149 (build-system python-build-system)
1150 (inputs
1151 `(("icu4c" ,icu4c)))
1152 (home-page "http://pyicu.osafoundation.org/")
1153 (synopsis "Python extension wrapping the ICU C++ API")
1154 (description
1155 "PyICU is a python extension wrapping the ICU C++ API.")
1156 (license x11)
1157 (properties `((python2-variant . ,(delay python2-pyicu))))))
1158
1159 (define-public python2-pyicu
1160 (package
1161 (inherit (package-with-python2
1162 (strip-python2-variant python-pyicu)))
1163 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
1164
1165 (define-public python2-dogtail
1166 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1167 ;; spaces in indentation" with Python 3.
1168 (package
1169 (name "python2-dogtail")
1170 (version "0.8.2")
1171 (source (origin
1172 (method url-fetch)
1173 (uri (string-append
1174 "https://fedorahosted.org/released/dogtail/dogtail-"
1175 version ".tar.gz"))
1176 (sha256
1177 (base32
1178 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1179 (build-system python-build-system)
1180 (arguments `(#:python ,python-2
1181 #:tests? #f)) ; invalid command "test"
1182 (home-page "https://fedorahosted.org/dogtail/")
1183 (synopsis "GUI test tool and automation framework written in ​Python")
1184 (description
1185 "Dogtail is a GUI test tool and automation framework written in Python.
1186 It uses Accessibility (a11y) technologies to communicate with desktop
1187 applications. dogtail scripts are written in Python and executed like any
1188 other Python program.")
1189 (license gpl2+)))
1190
1191 (define-public python2-empy
1192 (package
1193 (name "python2-empy")
1194 (version "3.3")
1195 (source (origin
1196 (method url-fetch)
1197 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1198 version ".tar.gz"))
1199 (sha256
1200 (base32
1201 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1202 (build-system python-build-system)
1203 (arguments
1204 `(#:python ,python-2
1205 #:phases (alist-replace
1206 'check
1207 (lambda _
1208 (zero? (system* "./test.sh")))
1209 %standard-phases)))
1210 (home-page "http://www.alcyone.com/software/empy/")
1211 (synopsis "Templating system for Python")
1212 (description
1213 "EmPy is a system for embedding Python expressions and statements in
1214 template text; it takes an EmPy source file, processes it, and produces
1215 output. This is accomplished via expansions, which are special signals to the
1216 EmPy system and are set off by a special prefix (by default the at sign, @@).
1217 EmPy can expand arbitrary Python expressions and statements in this way, as
1218 well as a variety of special forms. Textual data not explicitly delimited in
1219 this way is sent unaffected to the output, allowing Python to be used in
1220 effect as a markup language. Also supported are callbacks via hooks,
1221 recording and playback via diversions, and dynamic, chainable filters. The
1222 system is highly configurable via command line options and embedded
1223 commands.")
1224 (license lgpl2.1+)))
1225
1226 (define-public python2-element-tree
1227 (package
1228 (name "python2-element-tree")
1229 (version "1.2.6")
1230 (source (origin
1231 (method url-fetch)
1232 (uri (string-append
1233 "http://effbot.org/media/downloads/elementtree-"
1234 version "-20050316.tar.gz"))
1235 (sha256
1236 (base32
1237 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1238 (build-system python-build-system)
1239 (arguments
1240 `(#:python ,python-2 ; seems to be part of Python 3
1241 #:tests? #f)) ; no 'test' sub-command
1242 (synopsis "Toolkit for XML processing in Python")
1243 (description
1244 "ElementTree is a Python library supporting lightweight XML processing.")
1245 (home-page "http://effbot.org/zone/element-index.htm")
1246 (license (x11-style "http://docs.python.org/2/license.html"
1247 "Like \"CWI LICENSE AGREEMENT FOR PYTHON \
1248 0.9.0 THROUGH 1.2\"."))))
1249
1250 (define-public python2-pybugz
1251 (package
1252 (name "python2-pybugz")
1253 (version "0.6.11")
1254 (source (origin
1255 (method url-fetch)
1256 (uri (string-append
1257 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1258 version ".tar.gz"))
1259 (sha256
1260 (base32
1261 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1262 (patches (map search-patch
1263 (list "pybugz-stty.patch"
1264 "pybugz-encode-error.patch")))))
1265 (build-system python-build-system)
1266 (arguments
1267 `(#:python ,python-2 ; SyntaxError with Python 3
1268 #:tests? #f)) ; no 'test' sub-command
1269 (inputs `(("element-tree" ,python2-element-tree)))
1270 (synopsis "Python and command-line interface to Bugzilla")
1271 (description
1272 "PyBugz is a Python library and command-line tool to query the Bugzilla
1273 bug tracking system. It is meant as an aid to speed up interaction with the
1274 bug tracker.")
1275 (home-page "http://www.liquidx.net/pybugz/")
1276 (license gpl2)))
1277
1278 (define-public python-enum34
1279 (package
1280 (name "python-enum34")
1281 (version "1.1.0")
1282 (source
1283 (origin
1284 (method url-fetch)
1285 (uri (pypi-uri "enum34" version))
1286 (sha256
1287 (base32
1288 "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
1289 (build-system python-build-system)
1290 (arguments
1291 `(#:phases
1292 (alist-replace
1293 'check
1294 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1295 %standard-phases)))
1296 (home-page "https://pypi.python.org/pypi/enum34")
1297 (synopsis "Backported Python 3.4 Enum")
1298 (description
1299 "Enum34 is the new Python stdlib enum module available in Python 3.4
1300 backported for previous versions of Python from 2.4 to 3.3.")
1301 (license bsd-3)))
1302
1303 (define-public python2-enum34
1304 (package-with-python2 python-enum34))
1305
1306 (define-public python-parse-type
1307 (package
1308 (name "python-parse-type")
1309 (version "0.3.4")
1310 (source
1311 (origin
1312 (method url-fetch)
1313 (uri (string-append "https://pypi.python.org/packages/source/p/"
1314 "parse_type/parse_type-" version ".tar.gz"))
1315 (sha256
1316 (base32
1317 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1318 (build-system python-build-system)
1319 (inputs
1320 `(("python-setuptools" ,python-setuptools)
1321 ("python-six" ,python-six)
1322 ("python-parse" ,python-parse)))
1323 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1324 (home-page "https://github.com/jenisys/parse_type")
1325 (synopsis "Extended parse module")
1326 (description
1327 "Parse_type extends the python parse module.")
1328 (license bsd-3)))
1329
1330 (define-public python-parse
1331 (package
1332 (name "python-parse")
1333 (version "1.6.4")
1334 (source
1335 (origin
1336 (method url-fetch)
1337 (uri (string-append "https://pypi.python.org/packages/source/p/"
1338 "parse/parse-" version ".tar.gz"))
1339 (sha256
1340 (base32
1341 "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57"))))
1342 (build-system python-build-system)
1343 (arguments
1344 `(#:phases
1345 (alist-replace
1346 'check
1347 (lambda _ (zero? (system* "python" "test_parse.py")))
1348 %standard-phases)))
1349 (home-page "https://github.com/r1chardj0n3s/parse")
1350 (synopsis "Parse strings")
1351 (description
1352 "Parse strings using a specification based on the Python format()
1353 syntax.")
1354 (license x11)))
1355
1356
1357 (define-public scons
1358 (package
1359 (name "scons")
1360 (version "2.3.4")
1361 (source (origin
1362 (method url-fetch)
1363 (uri (string-append "mirror://sourceforge/scons/scons-"
1364 version ".tar.gz"))
1365 (sha256
1366 (base32
1367 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
1368 (build-system python-build-system)
1369 (arguments
1370 ;; With Python 3.x, fails to build with a syntax error.
1371 `(#:python ,python-2
1372 #:tests? #f)) ; no 'python setup.py test' command
1373 (home-page "http://scons.org/")
1374 (synopsis "Software construction tool written in Python")
1375 (description
1376 "SCons is a software construction tool. Think of SCons as an improved,
1377 cross-platform substitute for the classic Make utility with integrated
1378 functionality similar to autoconf/automake and compiler caches such as ccache.
1379 In short, SCons is an easier, more reliable and faster way to build
1380 software.")
1381 (license x11)))
1382
1383 (define-public python-extras
1384 (package
1385 (name "python-extras")
1386 (version "0.0.3")
1387 (source
1388 (origin
1389 (method url-fetch)
1390 (uri (string-append
1391 "https://pypi.python.org/packages/source/e/extras/extras-"
1392 version ".tar.gz"))
1393 (sha256
1394 (base32
1395 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1396 (build-system python-build-system)
1397 (inputs
1398 `(("python-setuptools" ,python-setuptools)))
1399 (arguments
1400 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1401 '(#:tests? #f))
1402 (home-page "https://github.com/testing-cabal/extras")
1403 (synopsis "Useful extensions to the Python standard library")
1404 (description
1405 "Extras is a set of extensions to the Python standard library.")
1406 (license license:expat)))
1407
1408 (define-public python2-extras
1409 (package-with-python2 python-extras))
1410
1411 (define-public python-mimeparse
1412 (package
1413 (name "python-mimeparse")
1414 (version "0.1.4")
1415 (source
1416 (origin
1417 (method url-fetch)
1418 (uri (string-append
1419 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1420 version ".tar.gz"))
1421 (sha256
1422 (base32
1423 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1424 (build-system python-build-system)
1425 (inputs
1426 `(("python-setuptools" ,python-setuptools)))
1427 (arguments
1428 '(#:tests? #f)) ; no setup.py test command
1429 (home-page
1430 "https://github.com/dbtsai/python-mimeparse")
1431 (synopsis "Python library for parsing MIME types")
1432 (description
1433 "Mimeparse provides basic functions for parsing MIME type names and
1434 matching them against a list of media-ranges.")
1435 (license license:expat)))
1436
1437 (define-public python2-mimeparse
1438 (package-with-python2 python-mimeparse))
1439
1440 (define-public python-nose
1441 (package
1442 (name "python-nose")
1443 (version "1.3.7")
1444 (source
1445 (origin
1446 (method url-fetch)
1447 (uri (pypi-uri "nose" version))
1448 (sha256
1449 (base32
1450 "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
1451 (build-system python-build-system)
1452 (inputs
1453 `(("python-setuptools" ,python-setuptools)))
1454 (arguments
1455 '(#:tests? #f)) ; FIXME: test suite fails
1456 (home-page "http://readthedocs.org/docs/nose/")
1457 (synopsis "Python testing library")
1458 (description
1459 "Nose extends the unittest library to make testing easier.")
1460 (license lgpl2.0+)))
1461
1462 (define-public python2-nose
1463 (package-with-python2 python-nose))
1464
1465 (define-public python-unittest2
1466 (package
1467 (name "python-unittest2")
1468 (version "0.5.1")
1469 (source
1470 (origin
1471 (method url-fetch)
1472 (uri (string-append
1473 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1474 version ".tar.gz"))
1475 (sha256
1476 (base32
1477 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1478 (build-system python-build-system)
1479 (inputs
1480 `(("python-setuptools" ,python-setuptools)))
1481 (home-page "http://pypi.python.org/pypi/unittest2")
1482 (synopsis "Python unit testing library")
1483 (description
1484 "Unittest2 is a replacement for the unittest module in the Python
1485 standard library.")
1486 (license psfl)))
1487
1488 (define-public python2-unittest2
1489 (package (inherit python-unittest2)
1490 (name "python2-unittest2")
1491 (version "0.5.1")
1492 (source
1493 (origin
1494 (method url-fetch)
1495 (uri (string-append
1496 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1497 version ".tar.gz"))
1498 (sha256
1499 (base32
1500 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1501 (inputs
1502 `(("python2-setuptools" ,python2-setuptools)))
1503 (arguments
1504 `(#:python ,python-2
1505 #:tests? #f)))) ; no setup.py test command
1506
1507 (define-public python-py
1508 (package
1509 (name "python-py")
1510 (version "1.4.31")
1511 (source
1512 (origin
1513 (method url-fetch)
1514 (uri (pypi-uri "py" version))
1515 (sha256
1516 (base32
1517 "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
1518 (build-system python-build-system)
1519 (inputs
1520 `(("python-setuptools" ,python-setuptools)))
1521 (home-page "http://pylib.readthedocs.org/")
1522 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1523 (description
1524 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1525 code introspection, and logging.")
1526 (license license:expat)))
1527
1528 (define-public python2-py
1529 (package-with-python2 python-py))
1530
1531 (define-public python-pytest
1532 (package
1533 (name "python-pytest")
1534 (version "2.6.1")
1535 (source
1536 (origin
1537 (method url-fetch)
1538 (uri (string-append
1539 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1540 version ".tar.gz"))
1541 (sha256
1542 (base32
1543 "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr"))
1544 (modules '((guix build utils)))
1545 (snippet
1546 ;; One of the tests involves the /usr directory, so it fails.
1547 '(substitute* "testing/test_argcomplete.py"
1548 (("def test_remove_dir_prefix\\(self\\):")
1549 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1550 (build-system python-build-system)
1551 (inputs
1552 `(("python-setuptools" ,python-setuptools)
1553 ("python-py" ,python-py)
1554 ("python-nose" ,python-nose)
1555 ("python-mock" ,python-mock)))
1556 (home-page "http://pytest.org")
1557 (synopsis "Python testing library")
1558 (description
1559 "Pytest is a testing tool that provides auto-discovery of test modules
1560 and functions, detailed info on failing assert statements, modular fixtures,
1561 and many external plugins.")
1562 (license license:expat)))
1563
1564 (define-public python2-pytest
1565 (package-with-python2 python-pytest))
1566
1567 (define-public python-pytest-cov
1568 (package
1569 (name "python-pytest-cov")
1570 (version "2.2.0")
1571 (source
1572 (origin
1573 (method url-fetch)
1574 (uri (pypi-uri "pytest-cov" version))
1575 (sha256
1576 (base32
1577 "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92"))))
1578 (build-system python-build-system)
1579 (propagated-inputs
1580 `(("python-coverage" ,python-coverage)
1581 ("python-pytest" ,python-pytest)))
1582 (native-inputs
1583 `(("python-setuptools" ,python-setuptools)))
1584 (home-page "https://github.com/pytest-dev/pytest-cov")
1585 (synopsis "Pytest plugin for measuring coverage")
1586 (description
1587 "Pytest-cov produces coverage reports. It supports centralised testing and
1588 distributed testing in both @code{load} and @code{each} modes. It also
1589 supports coverage of subprocesses.")
1590 (license license:expat)))
1591
1592 (define-public python2-pytest-cov
1593 (package-with-python2 python-pytest-cov))
1594
1595 (define-public python-pytest-runner
1596 (package
1597 (name "python-pytest-runner")
1598 (version "2.6.2")
1599 (source
1600 (origin
1601 (method url-fetch)
1602 (uri (string-append "https://pypi.python.org/packages/source/p/"
1603 "pytest-runner/pytest-runner-"
1604 version ".tar.gz"))
1605 (sha256
1606 (base32
1607 "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
1608 (build-system python-build-system)
1609 (arguments
1610 `(#:phases
1611 (modify-phases %standard-phases
1612 ;; The fancy way of setting the version with setuptools_scm does not
1613 ;; seem to work here.
1614 (add-after 'unpack 'set-version
1615 (lambda _
1616 (substitute* "docs/conf.py"
1617 (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
1618 (string-append "version = \"" ,version "\"")))
1619 #t)))))
1620 (native-inputs
1621 `(("python-pytest" ,python-pytest)
1622 ("python-setuptools" ,python-setuptools)
1623 ("python-setuptools-scm" ,python-setuptools-scm)))
1624 (home-page "https://bitbucket.org/pytest-dev/pytest-runner")
1625 (synopsis "Invoke py.test as a distutils command")
1626 (description
1627 "This package provides a @command{pytest-runner} command that
1628 @file{setup.py} files can use to run tests.")
1629 (license license:expat)))
1630
1631 (define-public python2-pytest-runner
1632 (package-with-python2 python-pytest-runner))
1633
1634 (define-public python-pytest-xdist
1635 (package
1636 (name "python-pytest-xdist")
1637 (version "1.14")
1638 (source
1639 (origin
1640 (method url-fetch)
1641 (uri (pypi-uri "pytest-xdist" version ".zip"))
1642 (sha256
1643 (base32
1644 "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
1645 (build-system python-build-system)
1646 (native-inputs
1647 `(("unzip" ,unzip)
1648 ("python-setuptools" ,python-setuptools)
1649 ("python-setuptools-scm" ,python-setuptools-scm)))
1650 (propagated-inputs
1651 `(("python-execnet" ,python-execnet)
1652 ("python-pytest" ,python-pytest)
1653 ("python-py" ,python-py)))
1654 (home-page
1655 "https://github.com/pytest-dev/pytest-xdist")
1656 (synopsis
1657 "Plugin for py.test with distributed testing and loop-on-failing modes")
1658 (description
1659 "The pytest-xdist plugin extends py.test with some unique test execution
1660 modes: parallelization, running tests in boxed subprocesses, the ability
1661 to run tests repeatedly when failed, and the ability to run tests on multiple
1662 Python interpreters or platforms. It uses rsync to copy the existing
1663 program code to a remote location, executes there, and then syncs the
1664 result back.")
1665 (license license:expat)))
1666
1667 (define-public python2-pytest-xdist
1668 (package-with-python2 python-pytest-xdist))
1669
1670 (define-public python-scripttest
1671 (package
1672 (name "python-scripttest")
1673 (version "1.3")
1674 (source
1675 (origin
1676 (method url-fetch)
1677 (uri (string-append
1678 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1679 version ".tar.gz"))
1680 (sha256
1681 (base32
1682 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1683 (build-system python-build-system)
1684 (inputs
1685 `(("python-setuptools" ,python-setuptools)
1686 ("python-pytest" ,python-pytest)))
1687 (home-page "http://pythonpaste.org/scripttest/")
1688 (synopsis "Python library to test command-line scripts")
1689 (description "Scripttest is a Python helper library for testing
1690 interactive command-line applications. With it you can run a script in a
1691 subprocess and see the output as well as any file modifications.")
1692 (license license:expat)))
1693
1694 (define-public python2-scripttest
1695 (package-with-python2 python-scripttest))
1696
1697 (define-public python-testtools
1698 (package
1699 (name "python-testtools")
1700 (version "1.0.0")
1701 (source
1702 (origin
1703 (method url-fetch)
1704 (uri (string-append
1705 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1706 version ".tar.gz"))
1707 (sha256
1708 (base32
1709 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1710 (build-system python-build-system)
1711 (propagated-inputs
1712 `(("python-mimeparse" ,python-mimeparse)))
1713 (inputs
1714 `(("python-setuptools" ,python-setuptools)
1715 ("python-extras" ,python-extras)))
1716 (home-page "https://github.com/testing-cabal/testtools")
1717 (synopsis
1718 "Extensions to the Python standard library unit testing framework")
1719 (description
1720 "Testtools extends the Python standard library unit testing framework to
1721 provide matchers, more debugging information, and cross-Python
1722 compatibility.")
1723 (license psfl)))
1724
1725 (define-public python2-testtools
1726 (package-with-python2 python-testtools))
1727
1728 (define-public python-testscenarios
1729 (package
1730 (name "python-testscenarios")
1731 (version "0.4")
1732 (source
1733 (origin
1734 (method url-fetch)
1735 (uri (string-append
1736 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1737 version ".tar.gz"))
1738 (sha256
1739 (base32
1740 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1741 (build-system python-build-system)
1742 (inputs
1743 `(("python-setuptools" ,python-setuptools)
1744 ("python-testtools" ,python-testtools)
1745 ("python-mimeparse" ,python-mimeparse)))
1746 (home-page "https://launchpad.net/testscenarios")
1747 (synopsis "Pyunit extension for dependency injection")
1748 (description
1749 "Testscenarios provides clean dependency injection for Python unittest
1750 style tests.")
1751 (license (list bsd-3 asl2.0)))) ; at the user's option
1752
1753 (define-public python2-testscenarios
1754 (package-with-python2 python-testscenarios))
1755
1756 (define-public python-testresources
1757 (package
1758 (name "python-testresources")
1759 (version "0.2.7")
1760 (source
1761 (origin
1762 (method url-fetch)
1763 (uri (string-append
1764 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1765 version ".tar.gz"))
1766 (sha256
1767 (base32
1768 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1769 (build-system python-build-system)
1770 (inputs
1771 `(("python-setuptools" ,python-setuptools)))
1772 (home-page "https://launchpad.net/testresources")
1773 (synopsis
1774 "Pyunit extension for managing test resources")
1775 (description
1776 "Testresources is an extension to Python's unittest to allow declarative
1777 use of resources by test cases.")
1778 (license (list bsd-3 asl2.0)))) ; at the user's option
1779
1780 (define-public python2-testresources
1781 (package-with-python2 python-testresources))
1782
1783 (define-public python-subunit
1784 (package
1785 (name "python-subunit")
1786 (version "0.0.21")
1787 (source
1788 (origin
1789 (method url-fetch)
1790 (uri (string-append
1791 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1792 version ".tar.gz"))
1793 (sha256
1794 (base32
1795 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1796 (build-system python-build-system)
1797 (inputs
1798 `(("python-setuptools" ,python-setuptools)
1799 ("python-testtools" ,python-testtools)
1800 ("python-mimeparse" ,python-mimeparse)
1801 ("python-testscenarios" ,python-testscenarios)))
1802 (home-page "http://launchpad.net/subunit")
1803 (synopsis "Python implementation of the subunit protocol")
1804 (description
1805 "Python-subunit is a Python implementation of the subunit test streaming
1806 protocol.")
1807 (license (list bsd-3 asl2.0)))) ; at the user's option
1808
1809 (define-public python2-subunit
1810 (package-with-python2 python-subunit))
1811
1812 ;; Recent versions of python-fixtures need a recent version of python-pbr,
1813 ;; which needs a recent version of python-fixtures. To fix this circular
1814 ;; dependency, we keep old versions of python-fixtures and python-pbr to
1815 ;; bootstrap the whole thing:
1816 ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
1817 ;; - python-pbr-0.11 is used to build python-fixtures
1818 ;; - python-fixtures is used to build python-pbr
1819 (define-public python-fixtures-0.3.16
1820 (package
1821 (name "python-fixtures")
1822 (version "0.3.16")
1823 (source
1824 (origin
1825 (method url-fetch)
1826 (uri (string-append
1827 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1828 version ".tar.gz"))
1829 (sha256
1830 (base32
1831 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1832 (build-system python-build-system)
1833 (inputs
1834 `(("python-setuptools" ,python-setuptools)))
1835 (arguments
1836 '(#:tests? #f)) ; no setup.py test command
1837 (home-page "https://launchpad.net/python-fixtures")
1838 (synopsis "Python test fixture library")
1839 (description
1840 "Fixtures provides a way to create reusable state, useful when writing
1841 Python tests.")
1842 (license (list bsd-3 asl2.0)))) ; at user's option
1843
1844 (define-public python2-fixtures-0.3.16
1845 (package-with-python2 python-fixtures-0.3.16))
1846
1847 (define-public python-pbr-0.11
1848 (package
1849 (name "python-pbr")
1850 (version "0.11.0")
1851 (source
1852 (origin
1853 (method url-fetch)
1854 (uri (string-append
1855 "https://pypi.python.org/packages/source/p/pbr/pbr-"
1856 version ".tar.gz"))
1857 (sha256
1858 (base32
1859 "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
1860 (build-system python-build-system)
1861 (arguments
1862 `(#:tests? #f)) ;; Most tests seem to use the Internet.
1863 (inputs
1864 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
1865 ("python-pip" ,python-pip)
1866 ("python-setuptools" ,python-setuptools)))
1867 (home-page "https://launchpad.net/pbr")
1868 (synopsis "Change the default behavior of Python’s setuptools")
1869 (description
1870 "Python Build Reasonableness (PBR) is a library that injects some useful
1871 and sensible default behaviors into your setuptools run.")
1872 (license asl2.0)))
1873
1874 (define-public python2-pbr-0.11
1875 (package-with-python2 python-pbr-0.11))
1876
1877 (define-public python-pbr
1878 (package (inherit python-pbr-0.11)
1879 (version "1.8.1")
1880 (source
1881 (origin
1882 (method url-fetch)
1883 (uri (pypi-uri "pbr" version))
1884 (sha256
1885 (base32
1886 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
1887 (build-system python-build-system)
1888 (inputs
1889 `(("python-setuptools" ,python-setuptools)
1890 ("python-fixtures" ,python-fixtures)
1891 ("python-pip" ,python-pip)))
1892 (properties `((python2-variant . ,(delay python2-pbr))))))
1893
1894 (define-public python2-pbr
1895 (package (inherit (package-with-python2
1896 (strip-python2-variant python-pbr)))))
1897
1898 (define-public python-fixtures
1899 (package
1900 (name "python-fixtures")
1901 (version "1.4.0")
1902 (source
1903 (origin
1904 (method url-fetch)
1905 (uri (pypi-uri "fixtures" version))
1906 (sha256
1907 (base32
1908 "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
1909 (build-system python-build-system)
1910 (propagated-inputs
1911 `(("python-six" ,python-six)
1912 ("python-pbr-0.11" ,python-pbr-0.11)))
1913 (inputs
1914 `(("python-pip" ,python-pip)
1915 ("python-setuptools" ,python-setuptools)
1916 ;; Tests
1917 ("python-testtools" ,python-testtools)))
1918 (arguments
1919 '(#:tests? #f)) ; no setup.py test command
1920 (home-page "https://launchpad.net/python-fixtures")
1921 (synopsis "Python test fixture library")
1922 (description
1923 "Fixtures provides a way to create reusable state, useful when writing
1924 Python tests.")
1925 (license (list bsd-3 asl2.0)))) ; at user's option
1926
1927 (define-public python2-fixtures
1928 (package-with-python2 python-fixtures))
1929
1930 (define-public python-testrepository
1931 (package
1932 (name "python-testrepository")
1933 (version "0.0.20")
1934 (source
1935 (origin
1936 (method url-fetch)
1937 (uri (string-append
1938 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
1939 version ".tar.gz"))
1940 (sha256
1941 (base32
1942 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
1943 (build-system python-build-system)
1944 (propagated-inputs
1945 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
1946 ("python-testtools" ,python-testtools)))
1947 (inputs
1948 `(("python-setuptools" ,python-setuptools)
1949 ("python-subunit" ,python-subunit)
1950 ("python-mimeparse" ,python-mimeparse)))
1951 (home-page "https://launchpad.net/testrepository")
1952 (synopsis "Database for Python test results")
1953 (description "Testrepository provides a database of test results which can
1954 be used as part of a developer's workflow to check things such as what tests
1955 have failed since the last commit or what tests are currently failing.")
1956 (license (list bsd-3 asl2.0)))) ; at user's option
1957
1958 (define-public python2-testrepository
1959 (package-with-python2 python-testrepository))
1960
1961 (define-public python-coverage
1962 (package
1963 (name "python-coverage")
1964 (version "4.0.3")
1965 (source
1966 (origin
1967 (method url-fetch)
1968 (uri (pypi-uri "coverage" version))
1969 (sha256
1970 (base32
1971 "0qjlja8ny4gcfp8abqfwdrvr8qw9kr69lkja0b4cqqbsdmdjgcc5"))))
1972 (build-system python-build-system)
1973 (inputs
1974 `(("python-setuptools" ,python-setuptools)))
1975 (home-page "http://nedbatchelder.com/code/coverage")
1976 (synopsis "Code coverage measurement for Python")
1977 (description
1978 "Coverage measures code coverage, typically during test execution. It
1979 uses the code analysis tools and tracing hooks provided in the Python standard
1980 library to determine which lines are executable, and which have been
1981 executed.")
1982 (license bsd-3)))
1983
1984 (define-public python2-coverage
1985 (package-with-python2 python-coverage))
1986
1987 (define-public python-discover
1988 (package
1989 (name "python-discover")
1990 (version "0.4.0")
1991 (source
1992 (origin
1993 (method url-fetch)
1994 (uri (string-append
1995 "https://pypi.python.org/packages/source/d/discover/discover-"
1996 version ".tar.gz"))
1997 (sha256
1998 (base32
1999 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
2000 (build-system python-build-system)
2001 (inputs
2002 `(("python-setuptools" ,python-setuptools)))
2003 (home-page "http://pypi.python.org/pypi/discover/")
2004 (synopsis
2005 "Python test discovery for unittest")
2006 (description
2007 "Discover provides test discovery for unittest, a feature that has been
2008 backported from Python 2.7 for Python 2.4+.")
2009 (license bsd-3)))
2010
2011 (define-public python2-discover
2012 (package-with-python2 python-discover))
2013
2014 (define-public behave
2015 (package
2016 (name "behave")
2017 (version "1.2.4")
2018 (source (origin
2019 (method url-fetch)
2020 (uri (string-append "https://pypi.python.org/packages/source/b/"
2021 name "/" name "-" version ".tar.gz"))
2022 (sha256
2023 (base32
2024 "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14"))))
2025 (build-system python-build-system)
2026 (inputs
2027 `(("python-setuptools" ,python-setuptools)
2028 ("python-six" ,python-six)
2029 ("python-parse" ,python-parse)
2030 ("python-parse-type" ,python-parse-type)))
2031 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
2032 ;PyHamcrest>=1.8
2033 (home-page "http://github.com/behave/behave")
2034 (synopsis "Python behavior-driven development")
2035 (description
2036 "Behave is a tool for behavior-driven development in python.
2037 Behavior-driven development (or BDD) is an agile software development
2038 technique that encourages collaboration between developers, QA and
2039 non-technical or business participants in a software project. Behave uses
2040 tests written in a natural language style, backed up by Python code.")
2041 (license x11)))
2042
2043 (define-public python-exif-read
2044 (package
2045 (name "python-exif-read")
2046 (version "2.1.2")
2047 (source (origin
2048 (method url-fetch)
2049 (uri (pypi-uri "ExifRead" version))
2050 (sha256
2051 (base32
2052 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2053 (build-system python-build-system)
2054 (inputs
2055 `(("python-setuptools" ,python-setuptools)))
2056 (arguments `(#:tests? #f)) ; no tests
2057 (home-page "https://github.com/ianare/exif-py")
2058 (synopsis "Python library to extract EXIF data from image files")
2059 (description
2060 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2061 files.")
2062 (license bsd-3)))
2063
2064 (define-public python2-exif-read
2065 (package-with-python2 python-exif-read))
2066
2067 (define-public python-pyld
2068 (package
2069 (name "python-pyld")
2070 (version "0.6.8")
2071 (source (origin
2072 (method url-fetch)
2073 (uri (pypi-uri "PyLD" version))
2074 (sha256
2075 (base32
2076 "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad"))))
2077 (build-system python-build-system)
2078 (inputs
2079 `(("python-setuptools" ,python-setuptools)))
2080 (arguments `(#:tests? #f)) ; no tests
2081 (home-page "http://github.com/digitalbazaar/pyld")
2082 (synopsis "Python implementation of the JSON-LD specification")
2083 (description
2084 "PyLD is an implementation of the JSON-LD specification.")
2085 (license bsd-3)))
2086
2087 (define-public python2-pyld
2088 (package-with-python2 python-pyld))
2089
2090 (define-public python-certifi
2091 (package
2092 (name "python-certifi")
2093 (version "2015.11.20.1")
2094 (source (origin
2095 (method url-fetch)
2096 (uri (pypi-uri "certifi" version))
2097 (sha256
2098 (base32
2099 "05lgwf9rz1kn465azy2bpb3zmpnsn9gkypbhnjlclchv98ssgc1h"))))
2100 (build-system python-build-system)
2101 (inputs
2102 `(("python-setuptools" ,python-setuptools)))
2103 (arguments `(#:tests? #f)) ; no tests
2104 (home-page "http://python-requests.org/")
2105 (synopsis "Python CA certificate bundle")
2106 (description
2107 "Certifi is a Python library that contains a CA certificate bundle, which
2108 is used by the Requests library to verify HTTPS requests.")
2109 (license asl2.0)))
2110
2111 (define-public python2-certifi
2112 (package-with-python2 python-certifi))
2113
2114 (define-public python-click
2115 (package
2116 (name "python-click")
2117 (version "6.2")
2118 (source
2119 (origin
2120 (method url-fetch)
2121 (uri (pypi-uri "click" version))
2122 (sha256
2123 (base32 "10kavbisnk9m93jl2wi34pw7ryr2qbxshh2cysxwxd7bymqgz87v"))))
2124 (build-system python-build-system)
2125 (native-inputs
2126 `(("python-setuptools" ,python-setuptools)))
2127 (home-page "http://click.pocoo.org")
2128 (synopsis "Command line library for Python")
2129 (description
2130 "Click is a Python package for creating command line interfaces in a
2131 composable way with as little code as necessary. Its name stands for
2132 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2133 with sensible defaults out of the box.")
2134 (license bsd-3)))
2135
2136 (define-public python2-click
2137 (package-with-python2 python-click))
2138
2139 (define-public python-wheel
2140 (package
2141 (name "python-wheel")
2142 (version "0.29.0")
2143 (source
2144 (origin
2145 (method url-fetch)
2146 (uri (pypi-uri "wheel" version))
2147 (sha256
2148 (base32
2149 "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
2150 (build-system python-build-system)
2151 (native-inputs
2152 `(("python-setuptools" ,python-setuptools)
2153 ("python-jsonschema" ,python-jsonschema)
2154 ("python-pytest-cov" ,python-pytest-cov)))
2155 (home-page "https://bitbucket.org/pypa/wheel/")
2156 (synopsis "Format for built Python packages")
2157 (description
2158 "A wheel is a ZIP-format archive with a specially formatted filename and
2159 the @code{.whl} extension. It is designed to contain all the files for a PEP
2160 376 compatible install in a way that is very close to the on-disk format. Many
2161 packages will be properly installed with only the @code{Unpack} step and the
2162 unpacked archive preserves enough information to @code{Spread} (copy data and
2163 scripts to their final locations) at any later time. Wheel files can be
2164 installed with a newer @code{pip} or with wheel's own command line utility.")
2165 (license license:expat)
2166 (properties `((python2-variant . ,(delay python2-wheel))))))
2167
2168 (define-public python2-wheel
2169 (let ((wheel (package-with-python2
2170 (strip-python2-variant python-wheel))))
2171 (package (inherit wheel)
2172 (native-inputs `(("python2-functools32" ,python2-functools32)
2173 ,@(package-native-inputs wheel))))))
2174
2175
2176 (define-public python-requests
2177 (package
2178 (name "python-requests")
2179 (version "2.9.1")
2180 (source (origin
2181 (method url-fetch)
2182 (uri (pypi-uri "requests" version))
2183 (sha256
2184 (base32
2185 "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
2186 (build-system python-build-system)
2187 (native-inputs
2188 `(("python-setuptools" ,python-setuptools)))
2189 (propagated-inputs
2190 `(("python-py" ,python-py)
2191 ("python-pytest" ,python-pytest)
2192 ("python-pytest-cov" ,python-pytest-cov)
2193 ("python-wheel" ,python-wheel)))
2194 (home-page "http://python-requests.org/")
2195 (synopsis "Python HTTP library")
2196 (description
2197 "Requests is a Python HTTP client library. It aims to be easier to use
2198 than Python’s urllib2 library.")
2199 (license asl2.0)))
2200
2201 ;; Some software requires an older version of Requests, notably Docker
2202 ;; Compose.
2203 (define-public python-requests-2.7
2204 (package (inherit python-requests)
2205 (version "2.7.0")
2206 (source (origin
2207 (method url-fetch)
2208 (uri (pypi-uri "requests" version))
2209 (sha256
2210 (base32
2211 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
2212
2213 (define-public python2-requests
2214 (package-with-python2 python-requests))
2215
2216 (define-public python-vcversioner
2217 (package
2218 (name "python-vcversioner")
2219 (version "2.14.0.0")
2220 (source
2221 (origin
2222 (method url-fetch)
2223 (uri (pypi-uri "vcversioner" version))
2224 (sha256
2225 (base32
2226 "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c"))))
2227 (build-system python-build-system)
2228 (inputs
2229 `(("python-setuptools" ,python-setuptools)))
2230 (synopsis "Python library for version number discovery")
2231 (description "Vcversioner is a Python library that inspects tagging
2232 information in a variety of version control systems in order to discover
2233 version numbers.")
2234 (home-page "https://github.com/habnabit/vcversioner")
2235 (license isc)))
2236
2237 (define-public python2-vcversioner
2238 (package-with-python2 python-vcversioner))
2239
2240 (define-public python-jsonschema
2241 (package
2242 (name "python-jsonschema")
2243 (version "2.5.1")
2244 (source (origin
2245 (method url-fetch)
2246 (uri
2247 (string-append
2248 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
2249 version ".tar.gz"))
2250 (sha256
2251 (base32
2252 "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
2253 (build-system python-build-system)
2254 (inputs
2255 `(("python-setuptools" ,python-setuptools)
2256 ("python-vcversioner" ,python-vcversioner)))
2257 (home-page "http://github.com/Julian/jsonschema")
2258 (synopsis "Implementation of JSON Schema for Python")
2259 (description
2260 "Jsonschema is an implementation of JSON Schema for Python.")
2261 (license license:expat)
2262 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2263
2264 (define-public python2-jsonschema
2265 (let ((jsonschema (package-with-python2
2266 (strip-python2-variant python-jsonschema))))
2267 (package (inherit jsonschema)
2268 (inputs
2269 `(("python2-functools32" ,python2-functools32)
2270 ,@(package-inputs jsonschema))))))
2271
2272 (define-public python-unidecode
2273 (package
2274 (name "python-unidecode")
2275 (version "0.04.18")
2276 (source (origin
2277 (method url-fetch)
2278 (uri (pypi-uri "Unidecode" version))
2279 (sha256
2280 (base32
2281 "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
2282 (build-system python-build-system)
2283 (inputs
2284 `(("python-setuptools" ,python-setuptools)))
2285 (home-page "https://pypi.python.org/pypi/Unidecode")
2286 (synopsis "ASCII transliterations of Unicode text")
2287 (description
2288 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2289 useful when integrating with legacy code that doesn't support Unicode, or for
2290 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2291 machine identifiers from human-readable Unicode strings that should still be
2292 somewhat intelligeble.")
2293 (license gpl2+)))
2294
2295 (define-public python2-unidecode
2296 (package-with-python2 python-unidecode))
2297
2298 (define-public python-pyjwt
2299 (package
2300 (name "python-pyjwt")
2301 (version "1.4.0")
2302 (source
2303 (origin
2304 (method url-fetch)
2305 (uri (pypi-uri "PyJWT" version))
2306 (sha256
2307 (base32
2308 "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
2309 (build-system python-build-system)
2310 (native-inputs
2311 `(("python-setuptools" ,python-setuptools)
2312 ("python-pytest-runner" ,python-pytest-runner)))
2313 (arguments
2314 '(#:tests? #f)) ; test suite doesn't work
2315 (home-page "http://github.com/progrium/pyjwt")
2316 (synopsis "JSON Web Token implementation in Python")
2317 (description
2318 "PyJWT is a JSON Web Token implementation written in Python.")
2319 (license license:expat)))
2320
2321 (define-public python2-pyjwt
2322 (package-with-python2 python-pyjwt))
2323
2324 (define-public python-oauthlib
2325 (package
2326 (name "python-oauthlib")
2327 (version "1.0.3")
2328 (source (origin
2329 (method url-fetch)
2330 (uri (pypi-uri "oauthlib" version))
2331 (sha256
2332 (base32
2333 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
2334 (build-system python-build-system)
2335 (native-inputs
2336 `(("python-setuptools" ,python-setuptools)
2337 ("python-coverage" ,python-coverage)
2338 ("python-nose" ,python-nose)
2339 ("python-mock" ,python-mock)))
2340 (inputs
2341 `(("python-blinker" ,python-blinker)
2342 ("python-cryptography" ,python-cryptography)
2343 ("python-pyjwt" ,python-pyjwt)))
2344 (home-page "https://github.com/idan/oauthlib")
2345 (synopsis "OAuth implementation for Python")
2346 (description
2347 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2348 OAuth request-signing logic.")
2349 (license bsd-3)))
2350
2351 (define-public python2-oauthlib
2352 (let ((base (package-with-python2 python-oauthlib)))
2353 (package
2354 (inherit base)
2355 (inputs
2356 `(("python2-unittest2" ,python2-unittest2)
2357 ("python2-cryptography" ,python2-cryptography)
2358 ,@(alist-delete "python-cryptography"
2359 (package-inputs base)))))))
2360
2361 (define-public python-itsdangerous
2362 (package
2363 (name "python-itsdangerous")
2364 (version "0.24")
2365 (source
2366 (origin
2367 (method url-fetch)
2368 (uri (string-append
2369 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2370 version ".tar.gz"))
2371 (sha256
2372 (base32
2373 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2374 (build-system python-build-system)
2375 (inputs
2376 `(("python-setuptools" ,python-setuptools)))
2377 (home-page "http://github.com/mitsuhiko/itsdangerous")
2378 (synopsis "Python library for passing data to/from untrusted environments")
2379 (description
2380 "Itsdangerous provides various helpers to pass trusted data to untrusted
2381 environments and back.")
2382 (license bsd-3)))
2383
2384 (define-public python2-itsdangerous
2385 (package-with-python2 python-itsdangerous))
2386
2387 (define-public python-pyyaml
2388 (package
2389 (name "python-pyyaml")
2390 (version "3.11")
2391 (source
2392 (origin
2393 (method url-fetch)
2394 (uri (string-append
2395 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2396 version ".tar.gz"))
2397 (sha256
2398 (base32
2399 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2400 (build-system python-build-system)
2401 (inputs
2402 `(("libyaml" ,libyaml)))
2403 (native-inputs
2404 `(("python-setuptools" ,python-setuptools)))
2405 (home-page "http://pyyaml.org/wiki/PyYAML")
2406 (synopsis "YAML parser and emitter for Python")
2407 (description
2408 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2409 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2410 API, and sensible error messages. PyYAML supports standard YAML tags and
2411 provides Python-specific tags that allow to represent an arbitrary Python
2412 object.")
2413 (license license:expat)))
2414
2415 (define-public python2-pyyaml
2416 (package-with-python2 python-pyyaml))
2417
2418 (define-public python-virtualenv
2419 (package
2420 (name "python-virtualenv")
2421 (version "13.1.2")
2422 (source
2423 (origin
2424 (method url-fetch)
2425 (uri (pypi-uri "virtualenv" version))
2426 (sha256
2427 (base32
2428 "1p732accxwqfjbdna39k8w8lp9gyw91vr4kzkhm8mgfxikqqxg5a"))))
2429 (build-system python-build-system)
2430 (arguments
2431 `(#:phases
2432 (modify-phases %standard-phases
2433 (replace 'check
2434 (lambda _ (zero? (system* "py.test")))))))
2435 (inputs
2436 `(("python-setuptools" ,python-setuptools)
2437 ("python-mock" ,python-mock)
2438 ("python-pytest" ,python-pytest)))
2439 (home-page "https://virtualenv.pypa.io/")
2440 (synopsis "Virtual Python environment builder")
2441 (description
2442 "Virtualenv is a tool to create isolated Python environments.")
2443 (license license:expat)))
2444
2445 (define-public python2-virtualenv
2446 (package-with-python2 python-virtualenv))
2447
2448 (define-public python-markupsafe
2449 (package
2450 (name "python-markupsafe")
2451 (version "0.23")
2452 (source
2453 (origin
2454 (method url-fetch)
2455 (uri (string-append
2456 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2457 version ".tar.gz"))
2458 (sha256
2459 (base32
2460 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2461 (build-system python-build-system)
2462 (inputs
2463 `(("python-setuptools" ,python-setuptools)))
2464 (home-page "http://github.com/mitsuhiko/markupsafe")
2465 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2466 (description
2467 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2468 for Python.")
2469 (license bsd-3)))
2470
2471 (define-public python2-markupsafe
2472 (package-with-python2 python-markupsafe))
2473
2474 (define-public python-jinja2
2475 (package
2476 (name "python-jinja2")
2477 (version "2.8")
2478 (source
2479 (origin
2480 (method url-fetch)
2481 (uri (pypi-uri "Jinja2" version))
2482 (sha256
2483 (base32
2484 "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
2485 (build-system python-build-system)
2486 (inputs
2487 `(("python-setuptools" ,python-setuptools)
2488 ("python-markupsafe" ,python-markupsafe)))
2489 (home-page "http://jinja.pocoo.org/")
2490 (synopsis "Python template engine")
2491 (description
2492 "Jinja2 is a small but fast and easy to use stand-alone template engine
2493 written in pure Python.")
2494 (license bsd-3)))
2495
2496 (define-public python2-jinja2
2497 (package-with-python2 python-jinja2))
2498
2499 (define-public python-pystache
2500 (package
2501 (name "python-pystache")
2502 (version "0.5.4")
2503 (source (origin
2504 (method url-fetch)
2505 (uri (pypi-uri "pystache" version))
2506 (sha256
2507 (base32
2508 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2509 (build-system python-build-system)
2510 (native-inputs
2511 `(("python-setuptools" ,python-setuptools)))
2512 (home-page "http://defunkt.io/pystache/")
2513 (synopsis "Python logic-less template engine")
2514 (description
2515 "Pystache is a Python implementation of the framework agnostic,
2516 logic-free templating system Mustache.")
2517 (license license:expat)))
2518
2519 (define-public python2-pystache
2520 (package-with-python2 python-pystache))
2521
2522 (define-public python-joblib
2523 (package
2524 (name "python-joblib")
2525 (version "0.9.0b4")
2526 (source (origin
2527 (method url-fetch)
2528 (uri (string-append "https://pypi.python.org/packages/source/"
2529 "j/joblib/joblib-" version ".tar.gz"))
2530 (sha256
2531 (base32
2532 "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3"))))
2533 (build-system python-build-system)
2534 (native-inputs
2535 `(("python-setuptools" ,python-setuptools)
2536 ("python-nose" ,python-nose)))
2537 (home-page "http://pythonhosted.org/joblib/")
2538 (synopsis "Using Python functions as pipeline jobs")
2539 (description
2540 "Joblib is a set of tools to provide lightweight pipelining in Python.
2541 In particular, joblib offers: transparent disk-caching of the output values
2542 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2543 logging and tracing of the execution.")
2544 (license bsd-3)))
2545
2546 (define-public python2-joblib
2547 (package-with-python2 python-joblib))
2548
2549 (define-public python-docutils
2550 (package
2551 (name "python-docutils")
2552 (version "0.12")
2553 (source
2554 (origin
2555 (method url-fetch)
2556 (uri (string-append
2557 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2558 version ".tar.gz"))
2559 (sha256
2560 (base32
2561 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2562 (build-system python-build-system)
2563 (inputs
2564 `(("python-setuptools" ,python-setuptools)))
2565 (arguments
2566 '(#:tests? #f)) ; no setup.py test command
2567 (home-page "http://docutils.sourceforge.net/")
2568 (synopsis "Python Documentation Utilities")
2569 (description
2570 "Docutils is a modular system for processing documentation into useful
2571 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2572 reStructuredText.")
2573 ;; Most of the source code is public domain, but some source files are
2574 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2575 (license (list public-domain psfl bsd-2 gpl3+))))
2576
2577 (define-public python2-docutils
2578 (package-with-python2 python-docutils))
2579
2580 (define-public python-pygments
2581 (package
2582 (name "python-pygments")
2583 (version "2.0.2")
2584 (source
2585 (origin
2586 (method url-fetch)
2587 (uri (pypi-uri "Pygments" version))
2588 (sha256
2589 (base32
2590 "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
2591 (build-system python-build-system)
2592 (inputs
2593 `(("python-setuptools" ,python-setuptools)))
2594 (home-page "http://pygments.org/")
2595 (synopsis "Syntax highlighting")
2596 (description
2597 "Pygments is a syntax highlighting package written in Python.")
2598 (license bsd-2)))
2599
2600 (define-public python2-pygments
2601 (package-with-python2 python-pygments))
2602
2603 (define-public python-sphinx
2604 (package
2605 (name "python-sphinx")
2606 (version "1.2.3")
2607 (source
2608 (origin
2609 (method url-fetch)
2610 (uri (string-append
2611 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2612 version ".tar.gz"))
2613 (sha256
2614 (base32
2615 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2616 (build-system python-build-system)
2617 (inputs
2618 `(("python-setuptools" ,python-setuptools)
2619 ("python-jinja2" ,python-jinja2)
2620 ("python-docutils" ,python-docutils)
2621 ("python-pygments" ,python-pygments)))
2622 (home-page "http://sphinx-doc.org/")
2623 (synopsis "Python documentation generator")
2624 (description "Sphinx is a tool that makes it easy to create documentation
2625 for Python projects or other documents consisting of multiple reStructuredText
2626 sources.")
2627 (license bsd-3)))
2628
2629 (define-public python2-sphinx
2630 (package-with-python2 python-sphinx))
2631
2632 (define-public python-sphinx-rtd-theme
2633 (package
2634 (name "python-sphinx-rtd-theme")
2635 (version "0.1.6")
2636 (source
2637 (origin
2638 (method url-fetch)
2639 (uri (string-append "https://pypi.python.org/packages/source/s/"
2640 "sphinx_rtd_theme/sphinx_rtd_theme-"
2641 version ".tar.gz"))
2642 (sha256
2643 (base32
2644 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2645 (build-system python-build-system)
2646 (arguments
2647 `(;; With standard flags, the install phase attempts to create a zip'd
2648 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2649 ;; before 1980'
2650 #:configure-flags '("--single-version-externally-managed"
2651 "--record=sphinx-rtd-theme.txt")))
2652 (native-inputs
2653 `(("python-setuptools" ,python-setuptools)))
2654 (inputs
2655 `(("python-docutils" ,python-docutils)
2656 ("python-sphinx" ,python-sphinx)))
2657 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2658 (synopsis "ReadTheDocs.org theme for Sphinx")
2659 (description "A theme for Sphinx used by ReadTheDocs.org.")
2660 (license license:expat)))
2661
2662 (define-public python2-sphinx-rtd-theme
2663 (package-with-python2 python-sphinx-rtd-theme))
2664
2665 (define-public python-feedgenerator
2666 (package
2667 (name "python-feedgenerator")
2668 (version "20150710.97185b7")
2669 (source
2670 ;; Using the git checkout for now because license file not added till
2671 ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39
2672 (origin
2673 (method git-fetch)
2674 (uri (git-reference
2675 (url "https://github.com/dmdm/feedgenerator-py3k.git")
2676 (commit "97185b7566c240c4bf5ed80db7d6c271204dab39")))
2677 (sha256
2678 (base32
2679 "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a"))))
2680 (arguments
2681 `(;; With standard flags, the install phase attempts to create a zip'd
2682 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2683 ;; before 1980'
2684 #:configure-flags '("--single-version-externally-managed"
2685 "--record=feedgenerator.txt")))
2686 (build-system python-build-system)
2687 (inputs
2688 `(("python-setuptools" ,python-setuptools)
2689 ("python-pytz" ,python-pytz)
2690 ("python-six" ,python-six)))
2691 (home-page
2692 "https://github.com/dmdm/feedgenerator-py3k.git")
2693 (synopsis
2694 "Standalone version of Django's Atom/RSS feed generator")
2695 (description
2696 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2697 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2698 (license bsd-3)))
2699
2700 (define-public python2-feedgenerator
2701 (package-with-python2 python-feedgenerator))
2702
2703 (define-public python-blinker
2704 (package
2705 (name "python-blinker")
2706 (version "1.4")
2707 (source
2708 (origin
2709 (method url-fetch)
2710 (uri (pypi-uri "blinker" version))
2711 (sha256
2712 (base32
2713 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
2714 (build-system python-build-system)
2715 (native-inputs
2716 `(("python-setuptools" ,python-setuptools)))
2717 ;; No "test" command supplied to setuptools, so unless there's another way
2718 ;; to run tests, we're skipping them!
2719 (arguments '(#:tests? #f))
2720 (home-page "http://pythonhosted.org/blinker/")
2721 (synopsis "Fast, simple object-to-object and broadcast signaling")
2722 (description
2723 "Blinker provides a fast dispatching system that allows any number of
2724 interested parties to subscribe to events, or \"signals\".")
2725 (license license:expat)))
2726
2727 (define-public python2-blinker
2728 (package-with-python2 python-blinker))
2729
2730 (define-public pelican
2731 (package
2732 (name "pelican")
2733 (version "3.6.3")
2734 (source
2735 (origin
2736 (method url-fetch)
2737 (uri (pypi-uri "pelican" version))
2738 (sha256
2739 (base32
2740 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
2741 (build-system python-build-system)
2742 (native-inputs
2743 `(("python-setuptools" ,python-setuptools)))
2744 (propagated-inputs
2745 `(("python-feedgenerator" ,python-feedgenerator)
2746 ("python-jinja2" ,python-jinja2)
2747 ("python-pygments" ,python-pygments)
2748 ("python-docutils" ,python-docutils)
2749 ("python-pytz" ,python-pytz)
2750 ("python-blinker" ,python-blinker)
2751 ("python-unidecode" ,python-unidecode)
2752 ("python-six" ,python-six)
2753 ("python-dateutil-2" ,python-dateutil-2)))
2754 (home-page "http://getpelican.com/")
2755 (arguments
2756 `(;; XXX Requires a lot more packages to do unit tests :P
2757 #:tests? #f
2758 #:phases (modify-phases %standard-phases
2759 (add-before
2760 'install 'adjust-requires
2761 ;; Since feedgenerator is installed from git, it doesn't
2762 ;; conform to the version requirements.
2763 ;;
2764 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2765 ;; version requirement so setuptools doesn't get confused.
2766 (lambda _
2767 (substitute* "setup.py"
2768 (("['\"]feedgenerator.*?['\"]")
2769 "'feedgenerator'")))))))
2770 (synopsis "Python-based static site publishing system")
2771 (description
2772 "Pelican is a tool to generate a static blog from reStructuredText,
2773 Markdown input files, and more. Pelican uses Jinja2 for templating
2774 and is very extensible.")
2775 (license agpl3+)))
2776
2777 (define-public python-scikit-learn
2778 (package
2779 (name "python-scikit-learn")
2780 (version "0.16.1")
2781 (source
2782 (origin
2783 (method url-fetch)
2784 (uri (string-append
2785 "https://github.com/scikit-learn/scikit-learn/archive/"
2786 version ".tar.gz"))
2787 (sha256
2788 (base32
2789 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
2790 (build-system python-build-system)
2791 (arguments
2792 `(#:phases
2793 (alist-cons-before
2794 'check 'set-HOME
2795 ;; some tests require access to "$HOME"
2796 (lambda _ (setenv "HOME" "/tmp"))
2797 ;; Tests can only be run after the library has been installed and not
2798 ;; within the source directory.
2799 (alist-cons-after
2800 'install 'check
2801 (lambda _
2802 (with-directory-excursion "/tmp"
2803 ;; With Python 3 one test of 3334 fails
2804 ;; (sklearn.tests.test_common.test_transformers); see
2805 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
2806 (system* "nosetests" "-v" "sklearn")))
2807 (alist-delete 'check %standard-phases)))))
2808 (inputs
2809 `(("openblas" ,openblas)
2810 ("python-nose" ,python-nose)))
2811 (propagated-inputs
2812 `(("python-numpy" ,python-numpy)
2813 ("python-scipy" ,python-scipy)))
2814 (home-page "http://scikit-learn.org/")
2815 (synopsis "Machine Learning in Python")
2816 (description
2817 "Scikit-learn provides simple and efficient tools for data
2818 mining and data analysis.")
2819 (license bsd-3)))
2820
2821 (define-public python2-scikit-learn
2822 (let ((scikit (package-with-python2 python-scikit-learn)))
2823 (package (inherit scikit)
2824 (propagated-inputs
2825 `(("python2-numpy" ,python2-numpy)
2826 ("python2-scipy" ,python2-scipy)
2827 ,@(alist-delete
2828 "python-numpy"
2829 (alist-delete
2830 "python-scipy" (package-propagated-inputs scikit))))))))
2831
2832 (define-public python-scikit-image
2833 (package
2834 (name "python-scikit-image")
2835 (version "0.11.3")
2836 (source
2837 (origin
2838 (method url-fetch)
2839 (uri (string-append
2840 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2841 version ".tar.gz"))
2842 (sha256
2843 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2844 (build-system python-build-system)
2845 (propagated-inputs
2846 `(("python-matplotlib" ,python-matplotlib)
2847 ("python-networkx" ,python-networkx)
2848 ("python-numpy" ,python-numpy)
2849 ("python-scipy" ,python-scipy)
2850 ("python-six" ,python-six)
2851 ("python-pillow" ,python-pillow)))
2852 (native-inputs
2853 `(("python-cython" ,python-cython)
2854 ("python-setuptools" ,python-setuptools)))
2855 (home-page "http://scikit-image.org/")
2856 (synopsis "Image processing in Python")
2857 (description
2858 "Scikit-image is a collection of algorithms for image processing.")
2859 (license bsd-3)))
2860
2861 (define-public python2-scikit-image
2862 (let ((scikit-image (package-with-python2 python-scikit-image)))
2863 (package (inherit scikit-image)
2864 (native-inputs
2865 `(("python2-mock" ,python2-mock)
2866 ,@(package-native-inputs scikit-image)))
2867 (propagated-inputs
2868 `(("python2-pytz" ,python2-pytz)
2869 ("python2-matplotlib" ,python2-matplotlib)
2870 ("python2-numpy" ,python2-numpy)
2871 ("python2-scipy" ,python2-scipy)
2872 ,@(fold alist-delete (package-propagated-inputs scikit-image)
2873 '("python-matplotlib" "python-numpy" "python-scipy")))))))
2874
2875 (define-public python-redis
2876 (package
2877 (name "python-redis")
2878 (version "2.10.3")
2879 (source
2880 (origin
2881 (method url-fetch)
2882 (uri (string-append
2883 "https://pypi.python.org/packages/source/r/redis/redis-"
2884 version ".tar.gz"))
2885 (sha256
2886 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
2887 (build-system python-build-system)
2888 ;; Tests require a running Redis server
2889 (arguments '(#:tests? #f))
2890 (native-inputs
2891 `(("python-setuptools" ,python-setuptools)
2892 ("python-pytest" ,python-pytest)))
2893 (home-page "https://github.com/andymccurdy/redis-py")
2894 (synopsis "Redis Python client")
2895 (description
2896 "This package provides a Python interface to the Redis key-value store.")
2897 (license license:expat)))
2898
2899 (define-public python2-redis
2900 (package-with-python2 python-redis))
2901
2902 (define-public python-rq
2903 (package
2904 (name "python-rq")
2905 (version "0.5.2")
2906 (source
2907 (origin
2908 (method url-fetch)
2909 (uri (string-append
2910 "https://pypi.python.org/packages/source/r/rq/rq-"
2911 version ".tar.gz"))
2912 (sha256
2913 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
2914 (build-system python-build-system)
2915 (propagated-inputs
2916 `(("python-click" ,python-click)
2917 ("python-redis" ,python-redis)))
2918 (native-inputs
2919 `(("python-setuptools" ,python-setuptools)))
2920 (home-page "http://python-rq.org/")
2921 (synopsis "Simple job queues for Python")
2922 (description
2923 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2924 processing them in the background with workers. It is backed by Redis and it
2925 is designed to have a low barrier to entry.")
2926 (license bsd-2)))
2927
2928 (define-public python2-rq
2929 (package-with-python2 python-rq))
2930
2931 (define-public python-cython
2932 (package
2933 (name "python-cython")
2934 (version "0.23.4")
2935 (source
2936 (origin
2937 (method url-fetch)
2938 (uri (pypi-uri "Cython" version))
2939 (sha256
2940 (base32
2941 "13hdffhd37mx3gjby018xl179jaj957fy7kzi01crmimxvn2zi7y"))))
2942 (build-system python-build-system)
2943 ;; we need the full python package and not just the python-wrapper
2944 ;; because we need libpython3.3m.so
2945 (inputs
2946 `(("python" ,python)))
2947 (arguments
2948 `(#:phases
2949 (alist-cons-before
2950 'check 'set-HOME
2951 ;; some tests require access to "$HOME/.cython"
2952 (lambda* _ (setenv "HOME" "/tmp"))
2953 (alist-replace
2954 'check
2955 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))
2956 %standard-phases))))
2957 (home-page "http://cython.org/")
2958 (synopsis "C extensions for Python")
2959 (description "Cython is an optimising static compiler for both the Python
2960 programming language and the extended Cython programming language. It makes
2961 writing C extensions for Python as easy as Python itself.")
2962 (license asl2.0)
2963 (properties `((python2-variant . ,(delay python2-cython))))))
2964
2965 (define-public python2-cython
2966 (package (inherit (package-with-python2
2967 (strip-python2-variant python-cython)))
2968 (name "python2-cython")
2969 (inputs
2970 `(("python-2" ,python-2))))) ; this is not automatically changed
2971
2972 ;; This version of numpy is missing the documentation and is only used to
2973 ;; build matplotlib which is required to build numpy's documentation.
2974 (define python-numpy-bootstrap
2975 (package
2976 (name "python-numpy-bootstrap")
2977 (version "1.10.4")
2978 (source
2979 (origin
2980 (method url-fetch)
2981 (uri (string-append "mirror://sourceforge/numpy"
2982 "/numpy-" version ".tar.gz"))
2983 (sha256
2984 (base32
2985 "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
2986 (build-system python-build-system)
2987 (inputs
2988 `(("python-nose" ,python-nose)
2989 ("openblas" ,openblas)
2990 ("lapack" ,lapack)))
2991 (native-inputs
2992 `(("gfortran" ,gfortran)))
2993 (arguments
2994 `(#:phases
2995 (alist-cons-before
2996 'build 'set-environment-variables
2997 (lambda* (#:key inputs #:allow-other-keys)
2998 (call-with-output-file "site.cfg"
2999 (lambda (port)
3000 (format port
3001 "[openblas]
3002 libraries = openblas
3003 library_dirs = ~a/lib
3004 include_dirs = ~a/include
3005
3006 [lapack]
3007 lapack_libs = lapack
3008 library_dirs = ~a/lib
3009 include_dirs = ~a/include
3010 "
3011 (assoc-ref inputs "openblas")
3012 (assoc-ref inputs "openblas")
3013 (assoc-ref inputs "lapack")
3014 (assoc-ref inputs "lapack"))))
3015 ;; Use "gcc" executable, not "cc".
3016 (substitute* "numpy/distutils/system_info.py"
3017 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
3018 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
3019 #t)
3020 ;; Tests can only be run after the library has been installed and not
3021 ;; within the source directory.
3022 (alist-cons-after
3023 'install 'check
3024 (lambda _
3025 (with-directory-excursion "/tmp"
3026 (zero? (system* "python" "-c"
3027 "import numpy; numpy.test(verbose=2)"))))
3028 (alist-delete
3029 'check
3030 %standard-phases)))))
3031 (home-page "http://www.numpy.org/")
3032 (synopsis "Fundamental package for scientific computing with Python")
3033 (description "NumPy is the fundamental package for scientific computing
3034 with Python. It contains among other things: a powerful N-dimensional array
3035 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3036 and Fortran code, useful linear algebra, Fourier transform, and random number
3037 capabilities.")
3038 (license bsd-3)))
3039
3040 (define python2-numpy-bootstrap
3041 (package-with-python2 python-numpy-bootstrap))
3042
3043 (define-public python2-fastlmm
3044 (package
3045 (name "python2-fastlmm")
3046 (version "0.2.21")
3047 (source
3048 (origin
3049 (method url-fetch)
3050 (uri (pypi-uri "fastlmm" version ".zip"))
3051 (sha256
3052 (base32
3053 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3054 (build-system python-build-system)
3055 (arguments
3056 `(#:python ,python-2)) ; only Python 2.7 is supported
3057 (propagated-inputs
3058 `(("python2-numpy" ,python2-numpy)
3059 ("python2-scipy" ,python2-scipy)
3060 ("python2-matplotlib" ,python2-matplotlib)
3061 ("python2-pandas" ,python2-pandas)
3062 ("python2-scikit-learn" ,python2-scikit-learn)
3063 ("python2-cython" ,python2-cython)
3064 ("python2-pysnptools" ,python2-pysnptools)))
3065 (native-inputs
3066 `(("unzip" ,unzip)
3067 ("python2-mock" ,python2-mock)
3068 ("python2-setuptools" ,python2-setuptools)))
3069 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3070 (synopsis "Perform genome-wide association studies on large data sets")
3071 (description
3072 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3073 Models, is a program for performing both single-SNP and SNP-set genome-wide
3074 association studies (GWAS) on extremely large data sets.")
3075 (license asl2.0)))
3076
3077 (define-public python-numpy
3078 (package (inherit python-numpy-bootstrap)
3079 (name "python-numpy")
3080 (outputs '("out" "doc"))
3081 (inputs
3082 `(("which" ,which)
3083 ("python-setuptools" ,python-setuptools)
3084 ("python-matplotlib" ,python-matplotlib)
3085 ("python-sphinx" ,python-sphinx)
3086 ("python-pyparsing" ,python-pyparsing)
3087 ("python-numpydoc" ,python-numpydoc)
3088 ,@(package-inputs python-numpy-bootstrap)))
3089 (native-inputs
3090 `(("pkg-config" ,pkg-config)
3091 ("texlive" ,texlive)
3092 ("texinfo" ,texinfo)
3093 ("perl" ,perl)
3094 ,@(package-native-inputs python-numpy-bootstrap)))
3095 (arguments
3096 `(,@(substitute-keyword-arguments
3097 (package-arguments python-numpy-bootstrap)
3098 ((#:phases phases)
3099 `(alist-cons-after
3100 'install 'install-doc
3101 (lambda* (#:key outputs #:allow-other-keys)
3102 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3103 (doc (string-append
3104 data "/doc/" ,name "-"
3105 ,(package-version python-numpy-bootstrap)))
3106 (info (string-append data "/info"))
3107 (html (string-append doc "/html"))
3108 (pyver ,(string-append "PYVER=")))
3109 (with-directory-excursion "doc"
3110 (mkdir-p html)
3111 (system* "make" "html" pyver)
3112 (system* "make" "latex" "PAPER=a4" pyver)
3113 (system* "make" "-C" "build/latex"
3114 "all-pdf" "PAPER=a4" pyver)
3115 ;; FIXME: Generation of the info file fails.
3116 ;; (system* "make" "info" pyver)
3117 ;; (mkdir-p info)
3118 ;; (copy-file "build/texinfo/numpy.info"
3119 ;; (string-append info "/numpy.info"))
3120 (for-each (lambda (file)
3121 (copy-file (string-append "build/latex" file)
3122 (string-append doc file)))
3123 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3124 (with-directory-excursion "build/html"
3125 (for-each (lambda (file)
3126 (let* ((dir (dirname file))
3127 (tgt-dir (string-append html "/" dir)))
3128 (unless (equal? "." dir)
3129 (mkdir-p tgt-dir))
3130 (install-file file html)))
3131 (find-files "." ".*"))))))
3132 ,phases)))))))
3133
3134 (define-public python2-numpy
3135 (package-with-python2 python-numpy))
3136
3137 (define-public python-pyparsing
3138 (package
3139 (name "python-pyparsing")
3140 (version "2.0.3")
3141 (source
3142 (origin
3143 (method url-fetch)
3144 (uri (string-append "mirror://sourceforge/pyparsing"
3145 "/pyparsing-" version ".tar.gz"))
3146 (sha256
3147 (base32
3148 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
3149 (build-system python-build-system)
3150 (outputs '("out" "doc"))
3151 (arguments
3152 `(#:tests? #f ; no test target
3153 #:modules ((guix build python-build-system)
3154 (guix build utils))
3155 #:phases
3156 (alist-cons-after
3157 'install 'install-doc
3158 (lambda* (#:key outputs #:allow-other-keys)
3159 (let* ((doc (string-append (assoc-ref outputs "doc")
3160 "/share/doc/" ,name "-" ,version))
3161 (html-doc (string-append doc "/html"))
3162 (examples (string-append doc "/examples")))
3163 (mkdir-p html-doc)
3164 (mkdir-p examples)
3165 (for-each
3166 (lambda (dir tgt)
3167 (map (lambda (file)
3168 (install-file file tgt))
3169 (find-files dir ".*")))
3170 (list "docs" "htmldoc" "examples")
3171 (list doc html-doc examples))))
3172 %standard-phases)))
3173 (home-page "http://pyparsing.wikispaces.com")
3174 (synopsis "Python parsing class library")
3175 (description
3176 "The pyparsing module is an alternative approach to creating and
3177 executing simple grammars, vs. the traditional lex/yacc approach, or the use
3178 of regular expressions. The pyparsing module provides a library of classes
3179 that client code uses to construct the grammar directly in Python code.")
3180 (license license:expat)))
3181
3182 (define-public python2-pyparsing
3183 (package-with-python2 python-pyparsing))
3184
3185 (define-public python-numpydoc
3186 (package
3187 (name "python-numpydoc")
3188 (version "0.5")
3189 (source
3190 (origin
3191 (method url-fetch)
3192 (uri (string-append
3193 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3194 version ".tar.gz"))
3195 (sha256
3196 (base32
3197 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3198 (modules '((guix build utils)))
3199 (snippet
3200 '(begin
3201 ;; Drop a test requiring matplotlib, which we cannot add as an
3202 ;; input since it would create a circular dependency: Extend the
3203 ;; test for Python 3, where it is already dropped, to Python 2.
3204 (substitute* "numpydoc/tests/test_plot_directive.py"
3205 (("3") "2"))))))
3206 (build-system python-build-system)
3207 (inputs
3208 `(("python-setuptools" ,python-setuptools)
3209 ("python-docutils" ,python-docutils)
3210 ("python-sphinx" ,python-sphinx)
3211 ("python-nose" ,python-nose)))
3212 (home-page "https://pypi.python.org/pypi/numpydoc")
3213 (synopsis
3214 "Numpy's Sphinx extensions")
3215 (description
3216 "Sphinx extension to support docstrings in Numpy format.")
3217 (license bsd-2)))
3218
3219 (define-public python2-numpydoc
3220 (package-with-python2 python-numpydoc))
3221
3222 (define-public python-numexpr
3223 (package
3224 (name "python-numexpr")
3225 (version "2.4.4")
3226 (source
3227 (origin
3228 (method url-fetch)
3229 (uri (string-append "https://pypi.python.org/packages/source/"
3230 "n/numexpr/numexpr-" version ".tar.gz"))
3231 (sha256
3232 (base32
3233 "0nsnff5312fm38w6dm34bw7ghfqqy8vl9gig0al963h4mz8zm8nz"))))
3234 (build-system python-build-system)
3235 (arguments `(#:tests? #f)) ; no tests included
3236 (propagated-inputs
3237 `(("python-numpy" ,python-numpy)))
3238 (home-page "https://github.com/pydata/numexpr")
3239 (synopsis "Fast numerical expression evaluator for NumPy")
3240 (description
3241 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3242 expressions that operate on arrays are accelerated and use less memory than
3243 doing the same calculation in Python. In addition, its multi-threaded
3244 capabilities can make use of all your cores, which may accelerate
3245 computations, most specially if they are not memory-bounded (e.g. those using
3246 transcendental functions).")
3247 (license license:expat)))
3248
3249 (define-public python2-numexpr
3250 (let ((numexpr (package-with-python2 python-numexpr)))
3251 (package (inherit numexpr)
3252 ;; Make sure to use special packages for Python 2 instead
3253 ;; of those automatically rewritten by package-with-python2.
3254 (propagated-inputs
3255 `(("python2-numpy" ,python2-numpy)
3256 ,@(alist-delete "python-numpy"
3257 (package-propagated-inputs numexpr)))))))
3258
3259 (define-public python-matplotlib
3260 (package
3261 (name "python-matplotlib")
3262 (version "1.4.3")
3263 (source
3264 (origin
3265 (method url-fetch)
3266 (uri (string-append "mirror://sourceforge/matplotlib"
3267 "/matplotlib-" version ".tar.gz"))
3268 (sha256
3269 (base32
3270 "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
3271 (patches (list (search-patch "matplotlib-setupext-tk.patch")))))
3272 (build-system python-build-system)
3273 (outputs '("out" "doc"))
3274 (propagated-inputs ; the following packages are all needed at run time
3275 `(("python-pyparsing" ,python-pyparsing)
3276 ("python-pygobject" ,python-pygobject)
3277 ("gobject-introspection" ,gobject-introspection)
3278 ("python-tkinter" ,python "tk")
3279 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3280 ;; from 'gtk+') provides the required 'typelib' files used by
3281 ;; 'gobject-introspection'. The location of these files is set with the
3282 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3283 ;; is done automatically by a 'native-search-path' procedure. However,
3284 ;; at run-time the user must set this variable as follows:
3285 ;;
3286 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
3287 ("gtk+" ,gtk+)
3288 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3289 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3290 ;; object. For this reason we need to import both libraries.
3291 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3292 ("python-pycairo" ,python-pycairo)
3293 ("python-cairocffi" ,python-cairocffi)))
3294 (inputs
3295 `(("python-setuptools" ,python-setuptools)
3296 ("python-dateutil" ,python-dateutil-2)
3297 ("python-six" ,python-six)
3298 ("python-pytz" ,python-pytz)
3299 ("python-numpy" ,python-numpy-bootstrap)
3300 ("python-sphinx" ,python-sphinx)
3301 ("python-numpydoc" ,python-numpydoc)
3302 ("python-nose" ,python-nose)
3303 ("python-mock" ,python-mock)
3304 ("libpng" ,libpng)
3305 ("imagemagick" ,imagemagick)
3306 ("freetype" ,freetype)
3307 ("cairo" ,cairo)
3308 ("glib" ,glib)
3309 ("python-pillow" ,python-pillow)
3310 ;; FIXME: Add backends when available.
3311 ;("python-wxpython" ,python-wxpython)
3312 ;("python-pyqt" ,python-pyqt)
3313 ("tcl" ,tcl)
3314 ("tk" ,tk)))
3315 (native-inputs
3316 `(("pkg-config" ,pkg-config)
3317 ("texlive" ,texlive)
3318 ("texinfo" ,texinfo)))
3319 (arguments
3320 `(#:phases
3321 (alist-cons-before
3322 'build 'configure-environment
3323 (lambda* (#:key outputs inputs #:allow-other-keys)
3324 (let ((cairo (assoc-ref inputs "cairo"))
3325 (gtk+ (assoc-ref inputs "gtk+")))
3326 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3327 ;; has not effect.
3328 (setenv "LD_LIBRARY_PATH"
3329 (string-append cairo "/lib:" gtk+ "/lib"))
3330 (setenv "HOME" (getcwd))
3331 (call-with-output-file "setup.cfg"
3332 (lambda (port)
3333 (format port "[directories]~%
3334 basedirlist = ~a,~a~%
3335 [rc_options]~%
3336 backend = TkAgg~%"
3337 (assoc-ref inputs "tcl")
3338 (assoc-ref inputs "tk"))))))
3339 (alist-cons-after
3340 'install 'install-doc
3341 (lambda* (#:key outputs #:allow-other-keys)
3342 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3343 (doc (string-append data "/doc/" ,name "-" ,version))
3344 (info (string-append data "/info"))
3345 (html (string-append doc "/html")))
3346 (with-directory-excursion "doc"
3347 ;; Produce pdf in 'A4' format.
3348 (substitute* (find-files "." "conf\\.py")
3349 (("latex_paper_size = 'letter'")
3350 "latex_paper_size = 'a4'"))
3351 (mkdir-p html)
3352 (mkdir-p info)
3353 ;; The doc recommends to run the 'html' target twice.
3354 (system* "python" "make.py" "html")
3355 (system* "python" "make.py" "html")
3356 (copy-recursively "build/html" html)
3357 (system* "python" "make.py" "latex")
3358 (system* "python" "make.py" "texinfo")
3359 (symlink (string-append html "/_images")
3360 (string-append info "/matplotlib-figures"))
3361 (with-directory-excursion "build/texinfo"
3362 (substitute* "matplotlib.texi"
3363 (("@image\\{([^,]*)" all file)
3364 (string-append "@image{matplotlib-figures/" file)))
3365 (symlink (string-append html "/_images")
3366 "./matplotlib-figures")
3367 (system* "makeinfo" "--no-split"
3368 "-o" "matplotlib.info" "matplotlib.texi"))
3369 (copy-file "build/texinfo/matplotlib.info"
3370 (string-append info "/matplotlib.info"))
3371 (copy-file "build/latex/Matplotlib.pdf"
3372 (string-append doc "/Matplotlib.pdf")))))
3373 %standard-phases))))
3374 (home-page "http://matplotlib.org")
3375 (synopsis "2D plotting library for Python")
3376 (description
3377 "Matplotlib is a Python 2D plotting library which produces publication
3378 quality figures in a variety of hardcopy formats and interactive environments
3379 across platforms. Matplotlib can be used in Python scripts, the python and
3380 ipython shell, web application servers, and six graphical user interface
3381 toolkits.")
3382 (license psfl)
3383 (properties `((python2-variant . ,(delay python2-matplotlib))))))
3384
3385 (define-public python2-matplotlib
3386 (let ((matplotlib (package-with-python2
3387 (strip-python2-variant python-matplotlib))))
3388 (package (inherit matplotlib)
3389 ;; Make sure to use special packages for Python 2 instead
3390 ;; of those automatically rewritten by package-with-python2.
3391 (propagated-inputs
3392 `(("python2-pycairo" ,python2-pycairo)
3393 ("python2-pygobject-2" ,python2-pygobject-2)
3394 ("python2-tkinter" ,python-2 "tk")
3395 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3396 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
3397
3398 (define-public python2-pysnptools
3399 (package
3400 (name "python2-pysnptools")
3401 (version "0.3.5")
3402 (source
3403 (origin
3404 (method url-fetch)
3405 (uri (pypi-uri "pysnptools" version ".zip"))
3406 (sha256
3407 (base32
3408 "15f4j4w5q603i7mlphb5r6mb1mn33pqg81595fpjp158140yqx7b"))))
3409 (build-system python-build-system)
3410 (arguments
3411 `(#:python ,python-2)) ; only Python 2.7 is supported
3412 (propagated-inputs
3413 `(("python2-numpy" ,python2-numpy)
3414 ("python2-scipy" ,python2-scipy)
3415 ("python2-pandas" ,python2-pandas)
3416 ("python2-cython" ,python2-cython)))
3417 (native-inputs
3418 `(("unzip" ,unzip)
3419 ("python2-setuptools" ,python2-setuptools)))
3420 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3421 (synopsis "Library for reading and manipulating genetic data")
3422 (description
3423 "PySnpTools is a library for reading and manipulating genetic data. It
3424 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3425 those files. It can also efficiently manipulate ranges of integers using set
3426 operators such as union, intersection, and difference.")
3427 (license asl2.0)))
3428
3429 (define-public python-rpy2
3430 (package
3431 (name "python-rpy2")
3432 (version "2.7.6")
3433 (source
3434 (origin
3435 (method url-fetch)
3436 (uri (pypi-uri "rpy2" version))
3437 (sha256
3438 (base32
3439 "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
3440 (build-system python-build-system)
3441 (inputs
3442 `(("python-six" ,python-six)
3443 ("readline" ,readline)
3444 ("icu4c" ,icu4c)
3445 ("pcre" ,pcre)
3446 ("r" ,r)))
3447 (native-inputs
3448 `(("python-setuptools" ,python-setuptools)
3449 ("zlib" ,zlib)))
3450 (home-page "http://rpy.sourceforge.net/")
3451 (synopsis "Python interface to the R language")
3452 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3453 low-level interface to R from Python, a proposed high-level interface,
3454 including wrappers to graphical libraries, as well as R-like structures and
3455 functions.")
3456 (license gpl3+)))
3457
3458 (define-public python2-rpy2
3459 (let ((rpy2 (package-with-python2 python-rpy2)))
3460 (package (inherit rpy2)
3461 (native-inputs
3462 `(("python2-singledispatch" ,python2-singledispatch)
3463 ,@(package-native-inputs rpy2))))))
3464
3465 (define-public python-scipy
3466 (package
3467 (name "python-scipy")
3468 (version "0.16.0")
3469 (source
3470 (origin
3471 (method url-fetch)
3472 (uri (string-append "mirror://sourceforge/scipy"
3473 "/scipy-" version ".tar.xz"))
3474 (sha256
3475 (base32
3476 "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
3477 (build-system python-build-system)
3478 (propagated-inputs
3479 `(("python-numpy" ,python-numpy)
3480 ("python-matplotlib" ,python-matplotlib)
3481 ("python-pyparsing" ,python-pyparsing)))
3482 (inputs
3483 `(("lapack" ,lapack)
3484 ("openblas" ,openblas)))
3485 (native-inputs
3486 `(("python-nose" ,python-nose)
3487 ("python-sphinx" ,python-sphinx)
3488 ("python-numpydoc" ,python-numpydoc)
3489 ("gfortran" ,gfortran)
3490 ("texlive" ,texlive)
3491 ("perl" ,perl)))
3492 (outputs '("out" "doc"))
3493 (arguments
3494 `(#:phases
3495 (alist-cons-before
3496 'build 'configure-openblas
3497 (lambda* (#:key inputs #:allow-other-keys)
3498 (call-with-output-file "site.cfg"
3499 (lambda (port)
3500 (format port
3501 "[blas]
3502 libraries = openblas
3503 library_dirs = ~a/lib
3504 include_dirs = ~a/include
3505 [atlas]
3506 library_dirs = ~a/lib
3507 atlas_libs = openblas
3508 "
3509 (assoc-ref inputs "openblas")
3510 (assoc-ref inputs "openblas")
3511 (assoc-ref inputs "openblas"))))
3512 #t)
3513 (alist-cons-after
3514 'install 'install-doc
3515 (lambda* (#:key outputs #:allow-other-keys)
3516 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3517 (doc (string-append data "/doc/" ,name "-" ,version))
3518 (html (string-append doc "/html"))
3519 (pyver ,(string-append "PYVER=")))
3520 (with-directory-excursion "doc"
3521 ;; Fix generation of images for mathematical expressions.
3522 (substitute* (find-files "source" "conf\\.py")
3523 (("pngmath_use_preview = True")
3524 "pngmath_use_preview = False"))
3525 (mkdir-p html)
3526 (system* "make" "html" pyver)
3527 (system* "make" "latex" "PAPER=a4" pyver)
3528 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3529 (copy-file "build/latex/scipy-ref.pdf"
3530 (string-append doc "/scipy-ref.pdf"))
3531 (with-directory-excursion "build/html"
3532 (for-each (lambda (file)
3533 (let* ((dir (dirname file))
3534 (tgt-dir (string-append html "/" dir)))
3535 (install-file file html)))
3536 (find-files "." ".*"))))))
3537 ;; Tests can only be run after the library has been installed and not
3538 ;; within the source directory.
3539 (alist-cons-after
3540 'install 'check
3541 (lambda _
3542 (with-directory-excursion "/tmp"
3543 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
3544 (alist-delete
3545 'check
3546 (alist-cons-after
3547 'unpack 'fix-tests
3548 (lambda _
3549 (substitute* "scipy/integrate/tests/test_quadpack.py"
3550 (("libm.so") "libm.so.6"))
3551 #t)
3552 %standard-phases)))))))
3553 (home-page "http://www.scipy.org/")
3554 (synopsis "The Scipy library provides efficient numerical routines")
3555 (description "The SciPy library is one of the core packages that make up
3556 the SciPy stack. It provides many user-friendly and efficient numerical
3557 routines such as routines for numerical integration and optimization.")
3558 (license bsd-3)))
3559
3560 (define-public python2-scipy
3561 (package-with-python2 python-scipy))
3562
3563 (define-public python-sqlalchemy
3564 (package
3565 (name "python-sqlalchemy")
3566 (version "1.0.12")
3567 (source
3568 (origin
3569 (method url-fetch)
3570 (uri (string-append "https://pypi.python.org/packages/source/S/"
3571 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3572 (sha256
3573 (base32
3574 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
3575 (build-system python-build-system)
3576 (native-inputs
3577 `(("python-cython" ,python-cython) ;for c extensions
3578 ("python-pytest" ,python-pytest)
3579 ("python-mock" ,python-mock))) ;for tests
3580 (arguments
3581 `(#:phases (alist-replace
3582 'check
3583 (lambda _ (zero? (system* "py.test")))
3584 %standard-phases)))
3585 (home-page "http://www.sqlalchemy.org")
3586 (synopsis "Database abstraction library")
3587 (description
3588 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3589 gives application developers the full power and flexibility of SQL. It
3590 provides a full suite of well known enterprise-level persistence patterns,
3591 designed for efficient and high-performing database access, adapted into a
3592 simple and Pythonic domain language.")
3593 (license x11)))
3594
3595 (define-public python2-sqlalchemy
3596 (package-with-python2 python-sqlalchemy))
3597
3598 (define-public python-alembic
3599 (package
3600 (name "python-alembic")
3601 (version "0.8.4")
3602 (source
3603 (origin
3604 (method url-fetch)
3605 (uri (pypi-uri "alembic" version))
3606 (sha256
3607 (base32
3608 "0jk23a852l3ybv7gfz81xzslyrnqnpjds5x15zd234y9rh9gq1w5"))))
3609 (build-system python-build-system)
3610 (native-inputs
3611 `(("python-mock" ,python-mock)
3612 ("python-pytest-cov" ,python-pytest-cov)))
3613 (propagated-inputs
3614 `(("python-sqlalchemy" ,python-sqlalchemy)
3615 ("python-mako" ,python-mako)
3616 ("python-editor" ,python-editor)))
3617 (home-page "http://bitbucket.org/zzzeek/alembic")
3618 (synopsis
3619 "Database migration tool for SQLAlchemy")
3620 (description
3621 "Alembic is a lightweight database migration tool for usage with the
3622 SQLAlchemy Database Toolkit for Python.")
3623 (license license:expat)
3624 (properties `((python2-variant . ,(delay python2-alembic))))))
3625
3626 (define-public python2-alembic
3627 (let ((alembic (package-with-python2
3628 (strip-python2-variant python-alembic))))
3629 (package
3630 (inherit alembic)
3631 (native-inputs `(("python2-setuptools" ,python2-setuptools)
3632 ,@(package-native-inputs alembic))))))
3633
3634 (define-public python-distutils-extra
3635 (package
3636 (name "python-distutils-extra")
3637 (version "2.38")
3638 (source
3639 (origin
3640 (method url-fetch)
3641 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3642 version "/+download/python-distutils-extra-"
3643 version ".tar.gz"))
3644 (sha256
3645 (base32
3646 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3647 (build-system python-build-system)
3648 (native-inputs
3649 `(("python-setuptools" ,python-setuptools)))
3650 (home-page "https://launchpad.net/python-distutils-extra/")
3651 (synopsis "Enhancements to Python's distutils")
3652 (description
3653 "The python-distutils-extra module enables you to easily integrate
3654 gettext support, themed icons, and scrollkeeper-based documentation into
3655 Python's distutils.")
3656 (license gpl2)))
3657
3658 (define-public python2-distutils-extra
3659 (package-with-python2 python-distutils-extra))
3660
3661 (define-public python2-elib.intl
3662 (package
3663 (name "python2-elib.intl")
3664 (version "0.0.3")
3665 (source
3666 (origin
3667 ;; This project doesn't tag releases or publish tarballs, so we take
3668 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3669 (method git-fetch)
3670 (uri (git-reference
3671 (url "https://github.com/dieterv/elib.intl.git")
3672 (commit "d09997cfef")))
3673 (sha256
3674 (base32
3675 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3676 (build-system python-build-system)
3677 (native-inputs
3678 `(("python2-setuptools" ,python2-setuptools)))
3679 (arguments
3680 ;; incompatible with Python 3 (exception syntax)
3681 `(#:python ,python-2
3682 #:tests? #f
3683 ;; With standard flags, the install phase attempts to create a zip'd
3684 ;; egg file, and fails with an error: 'ZIP does not support timestamps
3685 ;; before 1980'
3686 #:configure-flags '("--single-version-externally-managed"
3687 "--record=elib.txt")))
3688 (home-page "https://github.com/dieterv/elib.intl")
3689 (synopsis "Enhanced internationalization for Python")
3690 (description
3691 "The elib.intl module provides enhanced internationalization (I18N)
3692 services for your Python modules and applications.")
3693 (license lgpl3+)))
3694
3695 (define-public python-pillow
3696 (package
3697 (name "python-pillow")
3698 (version "3.1.1")
3699 (source
3700 (origin
3701 (method url-fetch)
3702 (uri (pypi-uri "Pillow" version))
3703 (sha256
3704 (base32
3705 "1zwzakr5v0skdh0azp5cd6fwzbll5305dsk33k5jk570vv6lqvs8"))))
3706 (build-system python-build-system)
3707 (native-inputs
3708 `(("python-setuptools" ,python-setuptools)
3709 ("python-nose" ,python-nose)))
3710 (inputs
3711 `(("freetype" ,freetype)
3712 ("lcms" ,lcms)
3713 ("zlib" ,zlib)
3714 ("libjpeg" ,libjpeg)
3715 ("openjpeg" ,openjpeg)
3716 ("libtiff" ,libtiff)
3717 ("libwebp" ,libwebp)))
3718 (propagated-inputs
3719 `(;; Used at runtime for pkg_resources
3720 ("python-setuptools" ,python-setuptools)))
3721 (arguments
3722 `(#:phases (modify-phases %standard-phases
3723 (add-before
3724 'install 'disable-egg-compression
3725 (lambda _
3726 ;; Leave the .egg uncompressed since compressing it would
3727 ;; prevent the GC from identifying run-time dependencies.
3728 ;; See <http://bugs.gnu.org/20765>.
3729 (let ((port (open-file "setup.cfg" "a")))
3730 (display "\n[easy_install]\nzip_ok = 0\n"
3731 port)
3732 (close-port port)
3733 #t)))
3734 (add-after
3735 'install 'check-installed
3736 (lambda _
3737 (begin
3738 (setenv "HOME" (getcwd))
3739 (and (zero? (system* "python" "selftest.py"
3740 "--installed"))
3741 (zero? (system* "python" "test-installed.py"))))))
3742 (delete 'check))))
3743 (home-page "https://pypi.python.org/pypi/Pillow")
3744 (synopsis "Fork of the Python Imaging Library")
3745 (description
3746 "The Python Imaging Library adds image processing capabilities to your
3747 Python interpreter. This library provides extensive file format support, an
3748 efficient internal representation, and fairly powerful image processing
3749 capabilities. The core image library is designed for fast access to data
3750 stored in a few basic pixel formats. It should provide a solid foundation for
3751 a general image processing tool.")
3752 (license (x11-style
3753 "http://www.pythonware.com/products/pil/license.htm"
3754 "The PIL Software License"))))
3755
3756 (define-public python2-pillow
3757 (package-with-python2 python-pillow))
3758
3759 (define-public python-pycparser
3760 (package
3761 (name "python-pycparser")
3762 (version "2.14")
3763 (source
3764 (origin
3765 (method url-fetch)
3766 (uri (pypi-uri "pycparser" version))
3767 (sha256
3768 (base32
3769 "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
3770 (outputs '("out" "doc"))
3771 (build-system python-build-system)
3772 (native-inputs
3773 `(("pkg-config" ,pkg-config)
3774 ("python-setuptools" ,python-setuptools)))
3775 (arguments
3776 `(#:phases
3777 (alist-replace
3778 'check
3779 (lambda _
3780 (with-directory-excursion "tests"
3781 (zero? (system* "python" "all_tests.py"))))
3782 (alist-cons-after
3783 'install 'install-doc
3784 (lambda* (#:key outputs #:allow-other-keys)
3785 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3786 (doc (string-append data "/doc/" ,name "-" ,version))
3787 (examples (string-append doc "/examples")))
3788 (mkdir-p examples)
3789 (for-each (lambda (file)
3790 (copy-file (string-append "." file)
3791 (string-append doc file)))
3792 '("/README.rst" "/CHANGES" "/LICENSE"))
3793 (copy-recursively "examples" examples)))
3794 %standard-phases))))
3795 (home-page "https://github.com/eliben/pycparser")
3796 (synopsis "C parser in Python")
3797 (description
3798 "Pycparser is a complete parser of the C language, written in pure Python
3799 using the PLY parsing library. It parses C code into an AST and can serve as
3800 a front-end for C compilers or analysis tools.")
3801 (license bsd-3)))
3802
3803 (define-public python2-pycparser
3804 (package-with-python2 python-pycparser))
3805
3806 (define-public python-cffi
3807 (package
3808 (name "python-cffi")
3809 (version "1.4.2")
3810 (source
3811 (origin
3812 (method url-fetch)
3813 (uri (pypi-uri "cffi" version))
3814 (sha256
3815 (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
3816 (build-system python-build-system)
3817 (outputs '("out" "doc"))
3818 (inputs
3819 `(("libffi" ,libffi)))
3820 (propagated-inputs ; required at run-time
3821 `(("python-pycparser" ,python-pycparser)))
3822 (native-inputs
3823 `(("pkg-config" ,pkg-config)
3824 ("python-sphinx" ,python-sphinx)
3825 ("python-pytest" ,python-pytest)
3826 ("python-setuptools" ,python-setuptools)))
3827 (arguments
3828 `(#:phases
3829 (alist-cons-after
3830 'install 'install-doc
3831 (lambda* (#:key outputs #:allow-other-keys)
3832 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3833 (doc (string-append data "/doc/" ,name "-" ,version))
3834 (html (string-append doc "/html")))
3835 (with-directory-excursion "doc"
3836 (system* "make" "html")
3837 (mkdir-p html)
3838 (copy-recursively "build/html" html))
3839 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
3840 %standard-phases)))
3841 (home-page "http://cffi.readthedocs.org")
3842 (synopsis "Foreign function interface for Python")
3843 (description
3844 "Foreign Function Interface for Python calling C code.")
3845 (license license:expat)))
3846
3847 (define-public python2-cffi
3848 (package-with-python2 python-cffi))
3849
3850 (define-public python-xcffib
3851 (package
3852 (name "python-xcffib")
3853 (version "0.1.9")
3854 (source
3855 (origin
3856 (method url-fetch)
3857 (uri (string-append "https://pypi.python.org/packages/source/x/"
3858 "xcffib/xcffib-" version ".tar.gz"))
3859 (sha256
3860 (base32
3861 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
3862 (build-system python-build-system)
3863 (inputs
3864 `(("libxcb" ,libxcb)
3865 ("python-six" ,python-six)))
3866 (native-inputs
3867 `(("python-setuptools" ,python-setuptools)))
3868 (propagated-inputs
3869 `(("python-cffi" ,python-cffi))) ; used at run time
3870 (arguments
3871 `(#:phases
3872 (alist-cons-after
3873 'install 'install-doc
3874 (lambda* (#:key outputs #:allow-other-keys)
3875 (let ((doc (string-append (assoc-ref outputs "out") "/share"
3876 "/doc/" ,name "-" ,version)))
3877 (mkdir-p doc)
3878 (copy-file "README.md"
3879 (string-append doc "/README.md"))))
3880 %standard-phases)))
3881 (home-page "https://github.com/tych0/xcffib")
3882 (synopsis "XCB Python bindings")
3883 (description
3884 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
3885 support for Python 3 and PyPy. It is based on cffi.")
3886 (license license:expat)))
3887
3888 (define-public python2-xcffib
3889 (package-with-python2 python-xcffib))
3890
3891 (define-public python-cairocffi
3892 (package
3893 (name "python-cairocffi")
3894 (version "0.6")
3895 (source
3896 (origin
3897 (method url-fetch)
3898 ;; The archive on pypi is missing the 'utils' directory!
3899 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
3900 version ".tar.gz"))
3901 (file-name (string-append name "-" version ".tar.gz"))
3902 (sha256
3903 (base32
3904 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
3905 (build-system python-build-system)
3906 (outputs '("out" "doc"))
3907 (inputs
3908 `(("gdk-pixbuf" ,gdk-pixbuf)
3909 ("cairo" ,cairo)))
3910 (native-inputs
3911 `(("pkg-config" ,pkg-config)
3912 ("python-sphinx" ,python-sphinx)
3913 ("python-docutils" ,python-docutils)
3914 ("python-setuptools" ,python-setuptools)))
3915 (propagated-inputs
3916 `(("python-xcffib" ,python-xcffib))) ; used at run time
3917 (arguments
3918 `(#:phases
3919 (alist-cons-after
3920 'install 'install-doc
3921 (lambda* (#:key inputs outputs #:allow-other-keys)
3922 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3923 (doc (string-append data "/doc/" ,name "-" ,version))
3924 (html (string-append doc "/html")))
3925 (setenv "LD_LIBRARY_PATH"
3926 (string-append (assoc-ref inputs "cairo") "/lib" ":"
3927 (assoc-ref inputs "gdk-pixbuf") "/lib"))
3928 (setenv "LANG" "en_US.UTF-8")
3929 (mkdir-p html)
3930 (for-each (lambda (file)
3931 (copy-file (string-append "." file)
3932 (string-append doc file)))
3933 '("/README.rst" "/CHANGES" "/LICENSE"))
3934 (system* "python" "setup.py" "build_sphinx")
3935 (copy-recursively "docs/_build/html" html)))
3936 %standard-phases)))
3937 (home-page "https://github.com/SimonSapin/cairocffi")
3938 (synopsis "Python bindings and object-oriented API for Cairo")
3939 (description
3940 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
3941 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
3942 graphics library with support for multiple backends including image buffers,
3943 PNG, PostScript, PDF, and SVG file output.")
3944 (license bsd-3)))
3945
3946 (define-public python2-cairocffi
3947 (package-with-python2 python-cairocffi))
3948
3949 (define-public python-decorator
3950 (package
3951 (name "python-decorator")
3952 (version "4.0.9")
3953 (source
3954 (origin
3955 (method url-fetch)
3956 (uri (pypi-uri "decorator" version))
3957 (sha256
3958 (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
3959 (build-system python-build-system)
3960 (arguments '(#:tests? #f)) ; no test target
3961 (native-inputs
3962 `(("python-setuptools" ,python-setuptools)))
3963 (home-page "https://pypi.python.org/pypi/decorator/")
3964 (synopsis "Python module to simplify usage of decorators")
3965 (description
3966 "The aim of the decorator module is to simplify the usage of decorators
3967 for the average programmer, and to popularize decorators usage giving examples
3968 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
3969 etc. The core of this module is a decorator factory.")
3970 (license license:expat)))
3971
3972 (define-public python2-decorator
3973 (package-with-python2 python-decorator))
3974
3975 (define-public python-drmaa
3976 (package
3977 (name "python-drmaa")
3978 (version "0.7.6")
3979 (source
3980 (origin
3981 (method url-fetch)
3982 (uri (string-append
3983 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
3984 version ".tar.gz"))
3985 (sha256
3986 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
3987 (build-system python-build-system)
3988 ;; The test suite requires libdrmaa which is provided by the cluster
3989 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
3990 ;; should be set to the path of the libdrmaa library.
3991 (arguments '(#:tests? #f))
3992 (native-inputs
3993 `(("python-nose" ,python-nose)
3994 ("python-setuptools" ,python-setuptools)))
3995 (home-page "https://pypi.python.org/pypi/drmaa")
3996 (synopsis "Python bindings for the DRMAA library")
3997 (description
3998 "A Python package for Distributed Resource Management (DRM) job
3999 submission and control. This package is an implementation of the DRMAA 1.0
4000 Python language binding specification.")
4001 (license bsd-3)))
4002
4003 (define-public python2-drmaa
4004 (package-with-python2 python-drmaa))
4005
4006 (define-public python-gridmap
4007 (package
4008 (name "python-gridmap")
4009 (version "0.13.0")
4010 (source
4011 (origin
4012 (method url-fetch)
4013 (uri (string-append
4014 "https://github.com/pygridtools/gridmap/archive/v"
4015 version ".tar.gz"))
4016 (file-name (string-append name "-" version ".tar.gz"))
4017 (sha256
4018 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
4019 (build-system python-build-system)
4020 (inputs
4021 `(("python-psutil" ,python-psutil)
4022 ("python-drmaa" ,python-drmaa)
4023 ("python-pyzmq" ,python-pyzmq)))
4024 (native-inputs
4025 `(("python-setuptools" ,python-setuptools)))
4026 (home-page "https://github.com/pygridtools/gridmap")
4027 (synopsis "Create jobs on a cluster directly from Python")
4028 (description
4029 "Gridmap is a Python package to allow you to easily create jobs on the
4030 cluster directly from Python. You can directly map Python functions onto the
4031 cluster without needing to write any wrapper code yourself.")
4032 (license gpl3+)))
4033
4034 (define-public python2-gridmap
4035 (package-with-python2 python-gridmap))
4036
4037 (define-public python-pexpect
4038 (package
4039 (name "python-pexpect")
4040 (version "3.3")
4041 (source
4042 (origin
4043 (method url-fetch)
4044 (uri (string-append "https://pypi.python.org/packages/source/p/"
4045 "pexpect/pexpect-" version ".tar.gz"))
4046 (sha256
4047 (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
4048 (build-system python-build-system)
4049 (arguments
4050 `(#:phases
4051 (modify-phases %standard-phases
4052 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4053 (native-inputs
4054 `(("python-nose" ,python-nose)))
4055 (home-page "http://pexpect.readthedocs.org/")
4056 (synopsis "Controlling interactive console applications")
4057 (description
4058 "Pexpect is a pure Python module for spawning child applications;
4059 controlling them; and responding to expected patterns in their output.
4060 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4061 child application and control it as if a human were typing commands.")
4062 (license isc)))
4063
4064 (define-public python2-pexpect
4065 (package-with-python2 python-pexpect))
4066
4067 (define-public python-setuptools-scm
4068 (package
4069 (name "python-setuptools-scm")
4070 (version "1.9.0")
4071 (source (origin
4072 (method url-fetch)
4073 (uri (pypi-uri "setuptools_scm" version))
4074 (sha256
4075 (base32
4076 "0y24bl893zk6nrklbvdrlmpkalf214zjn6k1xrglljd29rrn4wxi"))))
4077 (build-system python-build-system)
4078 (native-inputs `(("python-setuptools" ,python-setuptools)))
4079 (home-page "https://github.com/pypa/setuptools_scm/")
4080 (synopsis "Manage Python package versions in SCM metadata")
4081 (description
4082 "Setuptools_scm handles managing your Python package versions in
4083 @dfn{software configuration management} (SCM) metadata instead of declaring
4084 them as the version argument or in a SCM managed file.")
4085 (license license:expat)))
4086
4087 (define-public python2-setuptools-scm
4088 (package-with-python2 python-setuptools-scm))
4089
4090 (define-public python-pathpy
4091 (package
4092 (name "python-pathpy")
4093 (version "8.1.1")
4094 (source
4095 (origin
4096 (method url-fetch)
4097 (uri (string-append "https://pypi.python.org/packages/source/p/"
4098 "path.py/path.py-" version ".tar.gz"))
4099 (sha256
4100 (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
4101 (build-system python-build-system)
4102 (propagated-inputs
4103 `(("python-appdirs" ,python-appdirs)))
4104 (native-inputs
4105 `(("python-setuptools" ,python-setuptools)
4106 ("python-setuptools-scm" ,python-setuptools-scm)
4107 ("python-pytest" ,python-pytest)
4108 ("python-pytest-runner" ,python-pytest-runner)))
4109 (home-page "http://github.com/jaraco/path.py")
4110 (synopsis "Python module wrapper for built-in os.path")
4111 (description
4112 "@code{path.py} implements path objects as first-class entities, allowing
4113 common operations on files to be invoked on those path objects directly.")
4114 (license license:expat)))
4115
4116 (define-public python2-pathpy
4117 (package-with-python2 python-pathpy))
4118
4119 (define-public python-pickleshare
4120 (package
4121 (name "python-pickleshare")
4122 (version "0.5")
4123 (source
4124 (origin
4125 (method url-fetch)
4126 (uri (string-append "https://pypi.python.org/packages/source/p/"
4127 "pickleshare/pickleshare-" version ".tar.gz"))
4128 (sha256
4129 (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
4130 (build-system python-build-system)
4131 (propagated-inputs
4132 `(("python-pathpy" ,python-pathpy)))
4133 (native-inputs
4134 `(("python-setuptools" ,python-setuptools)))
4135 (home-page "https://github.com/vivainio/pickleshare")
4136 (synopsis "Tiny key value database with concurrency support")
4137 (description
4138 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
4139 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
4140 shelve, many processes can access the database simultaneously. Changing a
4141 value in database is immediately visible to other processes accessing the same
4142 database. Concurrency is possible because the values are stored in separate
4143 files. Hence the “database” is a directory where all files are governed by
4144 PickleShare.")
4145 (license license:expat)))
4146
4147 (define-public python2-pickleshare
4148 (package-with-python2 python-pickleshare))
4149
4150 (define-public python-simplegeneric
4151 (package
4152 (name "python-simplegeneric")
4153 (version "0.8.1")
4154 (source
4155 (origin
4156 (method url-fetch)
4157 (uri (string-append "https://pypi.python.org/packages/source/s/"
4158 "simplegeneric/simplegeneric-" version ".zip"))
4159 (sha256
4160 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4161 (build-system python-build-system)
4162 (native-inputs
4163 `(("python-setuptools" ,python-setuptools)
4164 ("unzip" ,unzip)))
4165 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4166 (synopsis "Python module for simple generic functions")
4167 (description
4168 "The simplegeneric module lets you define simple single-dispatch generic
4169 functions, akin to Python’s built-in generic functions like @code{len()},
4170 @code{iter()} and so on. However, instead of using specially-named methods,
4171 these generic functions use simple lookup tables, akin to those used by
4172 e.g. @code{pickle.dump()} and other generic functions found in the Python
4173 standard library.")
4174 (license zpl2.1)))
4175
4176 (define-public python2-simplegeneric
4177 (package-with-python2 python-simplegeneric))
4178
4179 (define-public python-ipython-genutils
4180 (package
4181 (name "python-ipython-genutils")
4182 (version "0.1.0")
4183 (source
4184 (origin
4185 (method url-fetch)
4186 (uri (string-append "https://pypi.python.org/packages/source/i/"
4187 "ipython_genutils/ipython_genutils-"
4188 version ".tar.gz"))
4189 (sha256
4190 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4191 (build-system python-build-system)
4192 (arguments `(#:tests? #f)) ; no tests
4193 (home-page "http://ipython.org")
4194 (synopsis "Vestigial utilities from IPython")
4195 (description
4196 "This package provides retired utilities from IPython.")
4197 (license bsd-3)))
4198
4199 (define-public python2-ipython-genutils
4200 (package-with-python2 python-ipython-genutils))
4201
4202 (define-public python-traitlets
4203 (package
4204 (name "python-traitlets")
4205 (version "4.1.0")
4206 (source
4207 (origin
4208 (method url-fetch)
4209 (uri (pypi-uri "traitlets" version))
4210 (sha256
4211 (base32
4212 "0nxgj8jxlm1kqf8cx2x7vjid05zdgbxpqhjbdl46r8njlpgkh3j4"))))
4213 (build-system python-build-system)
4214 (arguments
4215 `(#:phases
4216 (modify-phases %standard-phases
4217 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4218 (propagated-inputs
4219 `(("python-ipython-genutils" ,python-ipython-genutils)
4220 ("python-decorator" ,python-decorator)))
4221 (native-inputs
4222 `(("python-mock" ,python-mock)
4223 ("python-nose" ,python-nose)))
4224 (home-page "http://ipython.org")
4225 (synopsis "Configuration system for Python applications")
4226 (description
4227 "Traitlets is a framework that lets Python classes have attributes with
4228 type checking, dynamically calculated default values, and ‘on change’
4229 callbacks. The package also includes a mechanism to use traitlets for
4230 configuration, loading values from files or from command line arguments. This
4231 is a distinct layer on top of traitlets, so you can use traitlets in your code
4232 without using the configuration machinery.")
4233 (license bsd-3)))
4234
4235 (define-public python2-traitlets
4236 (package-with-python2 python-traitlets))
4237
4238 (define-public python-ipython
4239 (package
4240 (name "python-ipython")
4241 (version "3.2.1")
4242 (source
4243 (origin
4244 (method url-fetch)
4245 (patches (list (search-patch "python-ipython-inputhook-ctype.patch")))
4246 (uri (string-append "https://pypi.python.org/packages/source/i/"
4247 "ipython/ipython-" version ".tar.gz"))
4248 (sha256
4249 (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9"))))
4250 (build-system python-build-system)
4251 (outputs '("out" "doc"))
4252 (propagated-inputs
4253 `(("python-pyzmq" ,python-pyzmq)
4254 ("python-terminado" ,python-terminado)))
4255 (inputs
4256 `(("readline" ,readline)
4257 ("which" ,which)
4258 ("python-matplotlib" ,python-matplotlib)
4259 ("python-numpy" ,python-numpy)
4260 ("python-numpydoc" ,python-numpydoc)
4261 ("python-jinja2" ,python-jinja2)
4262 ("python-mistune" ,python-mistune)
4263 ("python-jsonschema" ,python-jsonschema)
4264 ("python-pygments" ,python-pygments)
4265 ("python-requests" ,python-requests) ;; for tests
4266 ("python-nose" ,python-nose)))
4267 (native-inputs
4268 `(("pkg-config" ,pkg-config)
4269 ("python-sphinx" ,python-sphinx)
4270 ("texlive" ,texlive)
4271 ("texinfo" ,texinfo)
4272 ("python-setuptools" ,python-setuptools)))
4273 (arguments
4274 `(#:phases
4275 (modify-phases %standard-phases
4276 (add-after
4277 'install 'install-doc
4278 (lambda* (#:key inputs outputs #:allow-other-keys)
4279 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4280 (doc (string-append data "/doc/" ,name "-" ,version))
4281 (html (string-append doc "/html"))
4282 (man1 (string-append data "/man/man1"))
4283 (info (string-append data "/info"))
4284 (examples (string-append doc "/examples")))
4285 (setenv "LANG" "en_US.utf8")
4286 (with-directory-excursion "docs"
4287 ;; FIXME: html and pdf fail to build
4288 ;; (system* "make" "html")
4289 ;; (system* "make" "pdf" "PAPER=a4")
4290 (system* "make" "info"))
4291 (copy-recursively "docs/man" man1)
4292 (copy-recursively "examples" examples)
4293 ;; (copy-recursively "docs/build/html" html)
4294 ;; (copy-file "docs/build/latex/ipython.pdf"
4295 ;; (string-append doc "/ipython.pdf"))
4296 (mkdir-p info)
4297 (copy-file "docs/build/texinfo/ipython.info"
4298 (string-append info "/ipython.info"))
4299 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4300 ;; Tests can only be run after the library has been installed and not
4301 ;; within the source directory.
4302 (delete 'check)
4303 (add-after
4304 'install 'check
4305 (lambda* (#:key outputs tests? #:allow-other-keys)
4306 (if tests?
4307 (with-directory-excursion "/tmp"
4308 (setenv "HOME" "/tmp/") ;; required by a test
4309 (zero? (system* (string-append (assoc-ref outputs "out")
4310 "/bin/iptest"))))
4311 #t)))
4312 (add-before
4313 'install 'fix-tests
4314 (lambda* (#:key inputs #:allow-other-keys)
4315 (substitute* "./IPython/utils/_process_posix.py"
4316 (("/usr/bin/env', 'which") (which "which")))
4317 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4318 (("#!/usr/bin/env python")
4319 (string-append "#!" (which "python"))))
4320 ;; Disable 1 failing test
4321 (substitute* "./IPython/core/tests/test_magic.py"
4322 (("def test_dirops\\(\\):" all)
4323 (string-append "@dec.skipif(True)\n" all))))))))
4324 (home-page "http://ipython.org")
4325 (synopsis "IPython is a tool for interactive computing in Python")
4326 (description
4327 "IPython provides a rich architecture for interactive computing with:
4328 Powerful interactive shells, a browser-based notebook, support for interactive
4329 data visualization, embeddable interpreters and tools for parallel
4330 computing.")
4331 (license bsd-3)))
4332
4333 (define-public python2-ipython
4334 (let ((ipython (package-with-python2 python-ipython)))
4335 (package
4336 (inherit ipython)
4337 ;; FIXME: some tests are failing
4338 (arguments
4339 `(#:tests? #f ,@(package-arguments ipython)))
4340 ;; Make sure we use custom python2-NAME packages.
4341 ;; FIXME: add pyreadline once available.
4342 (propagated-inputs
4343 `(("python2-terminado" ,python2-terminado)
4344 ,@(alist-delete "python-terminado"
4345 (package-propagated-inputs ipython))))
4346 (inputs
4347 `(("python2-jsonschema" ,python2-jsonschema)
4348 ("python2-mock" ,python2-mock)
4349 ("python2-matplotlib" ,python2-matplotlib)
4350 ("python2-numpy" ,python2-numpy)
4351 ("python2-requests" ,python2-requests)
4352 ,@(fold alist-delete (package-inputs ipython)
4353 '("python-jsonschema" "python-matplotlib" "python-numpy" "python-requests")))))))
4354
4355 (define-public python-isodate
4356 (package
4357 (name "python-isodate")
4358 (version "0.5.4")
4359 (source
4360 (origin
4361 (method url-fetch)
4362 (uri (pypi-uri "isodate" version))
4363 (sha256
4364 (base32
4365 "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
4366 (build-system python-build-system)
4367 (inputs
4368 `(("python-setuptools" ,python-setuptools)))
4369 (home-page
4370 "http://cheeseshop.python.org/pypi/isodate")
4371 (synopsis
4372 "Python date parser and formatter")
4373 (description
4374 "Python-isodate is a python module for parsing and formatting
4375 ISO 8601 dates, time and duration.")
4376 (license bsd-3)))
4377
4378 (define-public python2-isodate
4379 (package-with-python2 python-isodate))
4380
4381 (define-public python-html5lib
4382 (package
4383 (name "python-html5lib")
4384 (version "1.0b8")
4385 (source
4386 (origin
4387 (method url-fetch)
4388 (uri (pypi-uri "html5lib" version))
4389 (sha256
4390 (base32
4391 "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
4392 (build-system python-build-system)
4393 (propagated-inputs
4394 `(("python-six" ,python-six))) ; required to "import html5lib"
4395 (inputs
4396 `(("python-setuptools" ,python-setuptools)))
4397 (arguments
4398 `(#:test-target "check"))
4399 (home-page
4400 "https://github.com/html5lib/html5lib-python")
4401 (synopsis
4402 "Python HTML parser based on the WHATWG HTML specifcation")
4403 (description
4404 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
4405 and written in Python.")
4406 (license license:expat)))
4407
4408 (define-public python2-html5lib
4409 (package-with-python2 python-html5lib))
4410
4411 (define-public python-urwid
4412 (package
4413 (name "python-urwid")
4414 (version "1.3.0")
4415 (source
4416 (origin
4417 (method url-fetch)
4418 (uri (pypi-uri "urwid" version))
4419 (sha256
4420 (base32
4421 "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19"))))
4422 (build-system python-build-system)
4423 (arguments
4424 `(#:phases
4425 (modify-phases %standard-phases
4426 ;; Disable failing test. Bug filed upstream:
4427 ;; https://github.com/wardi/urwid/issues/164
4428 ;; TODO: check again for python-urwid > 1.3.0 or python > 3.4.3.
4429 (add-after 'unpack 'disable-failing-test
4430 (lambda _
4431 (substitute* "urwid/tests/test_event_loops.py"
4432 (("test_remove_watch_file")
4433 "disable_remove_watch_file")))))))
4434 (native-inputs `(("python-setuptools" ,python-setuptools)))
4435 (home-page "http://urwid.org")
4436 (synopsis "Console user interface library for Python")
4437 (description
4438 "Urwid is a curses-based UI/widget library for Python. It includes many
4439 features useful for text console applications.")
4440 (license lgpl2.1+)))
4441
4442 (define-public python2-urwid
4443 (package-with-python2 python-urwid))
4444
4445 (define-public python-dbus
4446 (package
4447 (name "python-dbus")
4448 (version "1.2.0")
4449 (source
4450 (origin
4451 (method url-fetch)
4452 (uri (string-append
4453 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
4454 version ".tar.gz"))
4455 (sha256
4456 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
4457 (build-system gnu-build-system)
4458 (arguments
4459 '(#:phases
4460 (modify-phases %standard-phases
4461 (add-before
4462 'check 'pre-check
4463 (lambda _
4464 ;; XXX: For the missing '/etc/machine-id'.
4465 (substitute* "test/run-test.sh"
4466 (("DBUS_FATAL_WARNINGS=1")
4467 "DBUS_FATAL_WARNINGS=0"))
4468 #t)))))
4469 (native-inputs
4470 `(("pkg-config" ,pkg-config)))
4471 (inputs
4472 `(("python" ,python)
4473 ("dbus-glib" ,dbus-glib)))
4474 (synopsis "Python bindings for D-bus")
4475 (description "python-dbus provides bindings for libdbus, the reference
4476 implementation of D-Bus.")
4477 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
4478 (license license:expat)))
4479
4480 (define-public python2-dbus
4481 (package (inherit python-dbus)
4482 (name "python2-dbus")
4483 (inputs `(("python" ,python-2)
4484 ,@(alist-delete "python"
4485 (package-inputs python-dbus)
4486 equal?)))
4487 ;; FIXME: on Python 2, the test_utf8 fails with:
4488 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
4489 (arguments `(#:tests? #f))))
4490
4491 (define-public python-apsw
4492 (package
4493 (name "python-apsw")
4494 (version "3.9.2-r1")
4495 (source
4496 (origin
4497 (method url-fetch)
4498 (uri (pypi-uri "apsw" version))
4499 (sha256
4500 (base32
4501 "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
4502 (build-system python-build-system)
4503 (inputs
4504 `(("python-setuptools" ,python-setuptools)
4505 ("sqlite" ,sqlite)))
4506 (arguments
4507 `(#:phases
4508 ;; swap check and install phases
4509 (alist-cons-after
4510 'install 'check
4511 (assoc-ref %standard-phases 'check)
4512 (alist-delete
4513 'check
4514 %standard-phases))))
4515 (home-page "https://github.com/rogerbinns/apsw/")
4516 (synopsis "Another Python SQLite Wrapper")
4517 (description "APSW is a Python wrapper for the SQLite
4518 embedded relational database engine. In contrast to other wrappers such as
4519 pysqlite it focuses on being a minimal layer over SQLite attempting just to
4520 translate the complete SQLite API into Python.")
4521 (license license:zlib)))
4522
4523 (define-public python2-apsw
4524 (package-with-python2 python-apsw))
4525
4526 (define-public python-lxml
4527 (package
4528 (name "python-lxml")
4529 (version "3.5.0")
4530 (source
4531 (origin
4532 (method url-fetch)
4533 (uri (pypi-uri "lxml" version))
4534 (sha256
4535 (base32
4536 "0y7m2s8ci6q642zl85y5axkj8z827l0vhjl532acb75hlkir77rl"))))
4537 (build-system python-build-system)
4538 (inputs
4539 `(("libxml2" ,libxml2)
4540 ("libxslt" ,libxslt)
4541 ("python-setuptools" ,python-setuptools)))
4542 (home-page "http://lxml.de/")
4543 (synopsis
4544 "Python XML processing library")
4545 (description
4546 "The lxml XML toolkit is a Pythonic binding for the C libraries
4547 libxml2 and libxslt.")
4548 (license bsd-3))) ; and a few more, see LICENSES.txt
4549
4550 (define-public python2-lxml
4551 (package-with-python2 python-lxml))
4552
4553 ;; beautifulsoup4 has a totally different namespace than 3.x,
4554 ;; and pypi seems to put it under its own name, so I guess we should too
4555 (define-public python-beautifulsoup4
4556 (package
4557 (name "python-beautifulsoup4")
4558 (version "4.4.1")
4559 (source
4560 (origin
4561 (method url-fetch)
4562 (uri (pypi-uri "beautifulsoup4" version))
4563 (sha256
4564 (base32
4565 "1d36lc4pfkvl74fmzdib2nqnvknm0jddgf2n9yd7im150qyh3m47"))))
4566 (build-system python-build-system)
4567 (home-page
4568 "http://www.crummy.com/software/BeautifulSoup/bs4/")
4569 (synopsis
4570 "Python screen-scraping library")
4571 (description
4572 "Beautiful Soup is a Python library designed for rapidly setting up
4573 screen-scraping projects. It offers Pythonic idioms for navigating,
4574 searching, and modifying a parse tree, providing a toolkit for
4575 dissecting a document and extracting what you need. It automatically
4576 converts incoming documents to Unicode and outgoing documents to UTF-8.")
4577 (license license:expat)
4578 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
4579
4580 (define-public python2-beautifulsoup4
4581 (package
4582 (inherit (package-with-python2
4583 (strip-python2-variant python-beautifulsoup4)))
4584 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
4585
4586 (define-public python2-cssutils
4587 (package
4588 (name "python2-cssutils")
4589 (version "1.0")
4590 (source
4591 (origin
4592 (method url-fetch)
4593 (uri (string-append
4594 "https://pypi.python.org/packages/source/c/cssutils/cssutils-"
4595 version
4596 ".zip"))
4597 (sha256
4598 (base32
4599 "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125"))))
4600 (build-system python-build-system)
4601 (native-inputs
4602 `(("python2-mock" ,python2-mock) ; for the tests
4603 ("unzip" ,unzip))) ; for unpacking the source
4604 (inputs
4605 `(("python2-setuptools" ,python2-setuptools)))
4606 (arguments
4607 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
4608 #:tests? #f ; The tests apparently download an external URL.
4609 ))
4610 (home-page "http://cthedot.de/cssutils/")
4611 (synopsis
4612 "CSS Cascading Style Sheets library for Python")
4613 (description
4614 "Cssutils is a Python package for parsing and building CSS
4615 Cascading Style Sheets. Currently it provides a DOM only and no rendering
4616 options.")
4617 (license lgpl3+)))
4618
4619 (define-public python-cssselect
4620 (package
4621 (name "python-cssselect")
4622 (version "0.9.1")
4623 (source
4624 (origin
4625 (method url-fetch)
4626 (uri (string-append
4627 "https://pypi.python.org/packages/source/c/cssselect/cssselect-"
4628 version
4629 ".tar.gz"))
4630 (sha256
4631 (base32
4632 "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85"))))
4633 (build-system python-build-system)
4634 (inputs
4635 `(("python-setuptools" ,python-setuptools)))
4636 (arguments
4637 ;; tests fail with message
4638 ;; AttributeError: 'module' object has no attribute 'tests'
4639 `(#:tests? #f))
4640 (home-page
4641 "https://pythonhosted.org/cssselect/")
4642 (synopsis
4643 "CSS3 selector parser and translator to XPath 1.0")
4644 (description
4645 "Cssselect ia a Python module that parses CSS3 Selectors and translates
4646 them to XPath 1.0 expressions. Such expressions can be used in lxml or
4647 another XPath engine to find the matching elements in an XML or HTML document.")
4648 (license bsd-3)))
4649
4650 (define-public python2-cssselect
4651 (package-with-python2 python-cssselect))
4652
4653 (define-public python-netifaces
4654 (package
4655 (name "python-netifaces")
4656 (version "0.10.4")
4657 (source
4658 (origin
4659 (method url-fetch)
4660 (uri (string-append
4661 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
4662 version
4663 ".tar.gz"))
4664 (sha256
4665 (base32
4666 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
4667 (build-system python-build-system)
4668 (inputs
4669 `(("python-setuptools" ,python-setuptools)))
4670 (home-page
4671 "https://bitbucket.org/al45tair/netifaces")
4672 (synopsis
4673 "Python module for portable network interface information")
4674 (description
4675 "Netifaces is a Python module providing information on network
4676 interfaces in an easy and portable manner.")
4677 (license license:expat)))
4678
4679 (define-public python2-netifaces
4680 (package-with-python2 python-netifaces))
4681
4682 (define-public python-networkx
4683 (package
4684 (name "python-networkx")
4685 (version "1.11")
4686 (source
4687 (origin
4688 (method url-fetch)
4689 (uri (pypi-uri "networkx" version))
4690 (sha256
4691 (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
4692 (build-system python-build-system)
4693 ;; python-decorator is needed at runtime
4694 (propagated-inputs
4695 `(("python-decorator" ,python-decorator)))
4696 (native-inputs
4697 `(("python-setuptools" ,python-setuptools)
4698 ("python-nose" ,python-nose)))
4699 (home-page "http://networkx.github.io/")
4700 (synopsis "Python module for creating and manipulating graphs and networks")
4701 (description
4702 "NetworkX is a Python package for the creation, manipulation, and study
4703 of the structure, dynamics, and functions of complex networks.")
4704 (license bsd-3)))
4705
4706 (define-public python2-networkx
4707 (package-with-python2 python-networkx))
4708
4709 (define-public snakemake
4710 (package
4711 (name "snakemake")
4712 (version "3.2.1")
4713 (source
4714 (origin
4715 (method url-fetch)
4716 (uri (string-append
4717 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
4718 version ".tar.gz"))
4719 (sha256
4720 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
4721 (build-system python-build-system)
4722 (inputs `(("python-setuptools" ,python-setuptools)))
4723 (home-page "https://bitbucket.org/johanneskoester/snakemake")
4724 (synopsis "Python-based execution environment for make-like workflows")
4725 (description
4726 "Snakemake aims to reduce the complexity of creating workflows by
4727 providing a clean and modern domain specific specification language (DSL) in
4728 Python style, together with a fast and comfortable execution environment.")
4729 (license license:expat)))
4730
4731 (define-public python-seaborn
4732 (package
4733 (name "python-seaborn")
4734 (version "0.5.1")
4735 (source
4736 (origin
4737 (method url-fetch)
4738 (uri (string-append
4739 "https://pypi.python.org/packages/source/s/seaborn/seaborn-"
4740 version ".tar.gz"))
4741 (sha256
4742 (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc"))))
4743 (build-system python-build-system)
4744 (propagated-inputs
4745 `(("python-pandas" ,python-pandas)
4746 ("python-matplotlib" ,python-matplotlib)
4747 ("python-scipy" ,python-scipy)))
4748 (native-inputs
4749 `(("python-setuptools" ,python-setuptools)))
4750 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
4751 (synopsis "Statistical data visualization")
4752 (description
4753 "Seaborn is a library for making attractive and informative statistical
4754 graphics in Python. It is built on top of matplotlib and tightly integrated
4755 with the PyData stack, including support for numpy and pandas data structures
4756 and statistical routines from scipy and statsmodels.")
4757 (license bsd-3)))
4758
4759 (define-public python2-seaborn
4760 (let ((seaborn (package-with-python2 python-seaborn)))
4761 (package (inherit seaborn)
4762 (propagated-inputs
4763 `(("python2-pytz" ,python2-pytz)
4764 ("python2-pandas" ,python2-pandas)
4765 ("python2-matplotlib" ,python2-matplotlib)
4766 ("python2-scipy" ,python2-scipy))))))
4767
4768 (define-public python-sympy
4769 (package
4770 (name "python-sympy")
4771 (version "0.7.6")
4772 (source
4773 (origin
4774 (method url-fetch)
4775 (uri (string-append
4776 "https://github.com/sympy/sympy/releases/download/sympy-"
4777 version "/sympy-" version ".tar.gz"))
4778 (sha256
4779 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
4780 (build-system python-build-system)
4781 (native-inputs
4782 `(("python-setuptools" ,python-setuptools)))
4783 (home-page "http://www.sympy.org/")
4784 (synopsis "Python library for symbolic mathematics")
4785 (description
4786 "SymPy is a Python library for symbolic mathematics. It aims to become a
4787 full-featured computer algebra system (CAS) while keeping the code as simple
4788 as possible in order to be comprehensible and easily extensible.")
4789 (license bsd-3)))
4790
4791 (define-public python2-sympy
4792 (package-with-python2 python-sympy))
4793
4794 (define-public python-testlib
4795 (package
4796 (name "python-testlib")
4797 (version "0.6.5")
4798 (source
4799 (origin
4800 (method url-fetch)
4801 (uri (string-append
4802 "https://pypi.python.org/packages/source/t/testlib/testlib-"
4803 version ".zip"))
4804 (sha256
4805 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
4806 (build-system python-build-system)
4807 (inputs
4808 `(("python-setuptools" ,python-setuptools)))
4809 (native-inputs
4810 `(("unzip" ,unzip)))
4811 (arguments
4812 `(#:phases
4813 (alist-replace
4814 'unpack
4815 (lambda* (#:key inputs outputs #:allow-other-keys)
4816 (let ((unzip (string-append (assoc-ref inputs "unzip")
4817 "/bin/unzip"))
4818 (source (assoc-ref inputs "source")))
4819 (and (zero? (system* unzip source))
4820 (chdir (string-append "testlib-" ,version)))))
4821 %standard-phases)))
4822 (synopsis "Python micro test suite harness")
4823 (description "A micro unittest suite harness for Python.")
4824 (home-page "https://github.com/trentm/testlib")
4825 (license license:expat)))
4826
4827 (define-public python2-testlib
4828 (package-with-python2 python-testlib))
4829
4830 (define-public python2-xlib
4831 (package
4832 (name "python2-xlib")
4833 (version "0.14")
4834 (source (origin
4835 (method url-fetch)
4836 (uri (string-append "mirror://sourceforge/python-xlib/"
4837 "python-xlib-" version ".tar.gz"))
4838 (sha256
4839 (base32
4840 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
4841 (build-system python-build-system)
4842 (arguments
4843 `(#:python ,python-2 ;Python 2 only
4844 #:tests? #f)) ;no tests
4845 (inputs
4846 `(("python-setuptools" ,python-setuptools)))
4847 (home-page "http://python-xlib.sourceforge.net/")
4848 (synopsis "Python X11 client library")
4849 (description
4850 "The Python X Library is intended to be a fully functional X client
4851 library for Python programs. It is useful to implement low-level X clients.
4852 It is written entirely in Python.")
4853 (license gpl2+)))
4854
4855 (define-public python-singledispatch
4856 (package
4857 (name "python-singledispatch")
4858 (version "3.4.0.3")
4859 (source
4860 (origin
4861 (method url-fetch)
4862 (uri (string-append
4863 "https://pypi.python.org/packages/source/s/singledispatch/"
4864 "singledispatch-" version ".tar.gz"))
4865 (sha256
4866 (base32
4867 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
4868 (build-system python-build-system)
4869 (native-inputs
4870 `(("python-setuptools" ,python-setuptools)))
4871 (propagated-inputs
4872 `(("python-six" ,python-six)))
4873 (home-page
4874 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
4875 (synopsis "Backport of singledispatch feature from Python 3.4")
4876 (description
4877 "This library brings functools.singledispatch from Python 3.4 to Python
4878 2.6-3.3.")
4879 (license license:expat)))
4880
4881 (define-public python2-singledispatch
4882 (package-with-python2 python-singledispatch))
4883
4884 (define-public python-tornado
4885 (package
4886 (name "python-tornado")
4887 (version "4.3")
4888 (source
4889 (origin
4890 (method url-fetch)
4891 (uri (pypi-uri "tornado" version))
4892 (sha256
4893 (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
4894 (build-system python-build-system)
4895 (inputs
4896 `(("python-certifi" ,python-certifi)))
4897 (native-inputs
4898 `(("python-backports-abc" ,python-backports-abc)
4899 ("python-setuptools" ,python-setuptools)))
4900 (home-page "http://www.tornadoweb.org/")
4901 (synopsis "Python web framework and asynchronous networking library")
4902 (description
4903 "Tornado is a Python web framework and asynchronous networking library,
4904 originally developed at FriendFeed. By using non-blocking network I/O,
4905 Tornado can scale to tens of thousands of open connections, making it ideal
4906 for long polling, WebSockets, and other applications that require a long-lived
4907 connection to each user.")
4908 (license asl2.0)))
4909
4910 (define-public python2-tornado
4911 (let ((tornado (package-with-python2 python-tornado)))
4912 (package (inherit tornado)
4913 (inputs
4914 `(("python2-backport-ssl-match-hostname"
4915 ,python2-backport-ssl-match-hostname)
4916 ("python2-singledispatch", python2-singledispatch)
4917 ,@(package-inputs tornado))))))
4918
4919 ;; the python- version can be removed with python-3.5
4920 (define-public python-backports-abc
4921 (package
4922 (name "python-backports-abc")
4923 (version "0.4")
4924 (source
4925 (origin
4926 (method url-fetch)
4927 (uri (pypi-uri "backports_abc" version))
4928 (sha256
4929 (base32
4930 "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
4931 (build-system python-build-system)
4932 (inputs
4933 `(("python-setuptools" ,python-setuptools)))
4934 (home-page "https://github.com/cython/backports_abc")
4935 (synopsis "Backport of additions to the 'collections.abc' module.")
4936 (description
4937 "Python-backports-abc provides a backport of additions to the
4938 'collections.abc' module in Python-3.5.")
4939 (license psfl)))
4940
4941 (define-public python2-backports-abc
4942 (package-with-python2 python-backports-abc))
4943
4944 (define-public python-waf
4945 (package
4946 (name "python-waf")
4947 (version "1.8.8")
4948 (source (origin
4949 (method url-fetch)
4950 (uri (string-append "https://waf.io/"
4951 "waf-" version ".tar.bz2"))
4952 (sha256
4953 (base32
4954 "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn"))))
4955 (build-system python-build-system)
4956 (arguments
4957 '(#:phases
4958 (modify-phases %standard-phases
4959 (replace 'build
4960 (lambda _
4961 (zero? (begin
4962 (system* "python" "waf-light" "configure")
4963 (system* "python" "waf-light" "build")))))
4964 (replace 'check
4965 (lambda _
4966 (zero? (system* "python" "waf" "--version"))))
4967 (replace 'install
4968 (lambda _
4969 (copy-file "waf" %output))))))
4970 (home-page "https://waf.io/")
4971 (synopsis "Python-based build system")
4972 (description
4973 "Waf is a Python-based framework for configuring, compiling and installing
4974 applications.")
4975 (license bsd-3)))
4976
4977 (define-public python2-waf
4978 (package-with-python2 python-waf))
4979
4980 (define-public python-pyzmq
4981 (package
4982 (name "python-pyzmq")
4983 (version "15.1.0")
4984 (source
4985 (origin
4986 (method url-fetch)
4987 (uri (pypi-uri "pyzmq" version))
4988 (sha256
4989 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
4990 (build-system python-build-system)
4991 (arguments
4992 `(#:configure-flags
4993 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
4994 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
4995 ;; --inplace' for 'python setup.py test' to work.
4996 #:tests? #f))
4997 (inputs
4998 `(("zeromq" ,zeromq)))
4999 (native-inputs
5000 `(("pkg-config" ,pkg-config)
5001 ("python-nose" ,python-nose)
5002 ("python-setuptools" ,python-setuptools)))
5003 (home-page "http://github.com/zeromq/pyzmq")
5004 (synopsis "Python bindings for 0MQ")
5005 (description
5006 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
5007 (license bsd-4)))
5008
5009 (define-public python2-pyzmq
5010 (package-with-python2 python-pyzmq))
5011
5012 (define-public python-pep8
5013 (package
5014 (name "python-pep8")
5015 (version "1.7.0")
5016 (source
5017 (origin
5018 (method url-fetch)
5019 (uri (pypi-uri "pep8" version))
5020 (sha256
5021 (base32
5022 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
5023 (build-system python-build-system)
5024 (inputs
5025 `(("python-setuptools" ,python-setuptools)))
5026 (home-page "http://pep8.readthedocs.org/")
5027 (synopsis "Python style guide checker")
5028 (description
5029 "This tools checks Python code against some of the style conventions in
5030 PEP 8.")
5031 (license license:expat)))
5032
5033 (define-public python2-pep8
5034 (package-with-python2 python-pep8))
5035
5036 (define-public python-pyflakes
5037 (package
5038 (name "python-pyflakes")
5039 (version "1.0.0")
5040 (source
5041 (origin
5042 (method url-fetch)
5043 (uri (pypi-uri "pyflakes" version))
5044 (sha256
5045 (base32
5046 "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
5047 (build-system python-build-system)
5048 (inputs
5049 `(("python-setuptools" ,python-setuptools)))
5050 (home-page
5051 "https://github.com/pyflakes/pyflakes")
5052 (synopsis "Passive checker of Python programs")
5053 (description
5054 "Pyflakes statically checks Python source code for common errors.")
5055 (license license:expat)))
5056
5057 (define-public python2-pyflakes
5058 (package-with-python2 python-pyflakes))
5059
5060 (define-public python-mccabe
5061 (package
5062 (name "python-mccabe")
5063 (version "0.4.0")
5064 (source
5065 (origin
5066 (method url-fetch)
5067 (uri (pypi-uri "mccabe" version))
5068 (sha256
5069 (base32
5070 "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
5071 (build-system python-build-system)
5072 (inputs
5073 `(("python-pytest" ,python-pytest)
5074 ("python-pytest-runner" ,python-pytest-runner)
5075 ("python-setuptools" ,python-setuptools)))
5076 (home-page "https://github.com/flintwork/mccabe")
5077 (synopsis "McCabe checker, plugin for flake8")
5078 (description
5079 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5080 complexity of Python source code.")
5081 (license license:expat)))
5082
5083 (define-public python2-mccabe
5084 (package-with-python2 python-mccabe))
5085
5086 (define-public python-mccabe-0.2.1
5087 (package (inherit python-mccabe)
5088 (version "0.2.1")
5089 (source
5090 (origin
5091 (method url-fetch)
5092 (uri (pypi-uri "mccabe" version))
5093 (sha256
5094 (base32
5095 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))
5096 (inputs `(("python-setuptools" ,python-setuptools)))))
5097
5098 (define-public python2-mccabe-0.2.1
5099 (package-with-python2 python-mccabe-0.2.1))
5100
5101 ;; Flake8 2.4.1 requires an older version of pep8.
5102 ;; This should be removed ASAP.
5103 (define-public python-pep8-1.5.7
5104 (package (inherit python-pep8)
5105 (version "1.5.7")
5106 (source
5107 (origin
5108 (method url-fetch)
5109 (uri (string-append
5110 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5111 version
5112 ".tar.gz"))
5113 (sha256
5114 (base32
5115 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
5116
5117 (define-public python2-pep8-1.5.7
5118 (package-with-python2 python-pep8-1.5.7))
5119
5120 ;; Flake8 2.4.1 requires an older version of pyflakes.
5121 ;; This should be removed ASAP.
5122 (define-public python-pyflakes-0.8.1
5123 (package (inherit python-pyflakes)
5124 (version "0.8.1")
5125 (source
5126 (origin
5127 (method url-fetch)
5128 (uri (string-append
5129 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5130 version
5131 ".tar.gz"))
5132 (sha256
5133 (base32
5134 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
5135
5136 (define-public python2-pyflakes-0.8.1
5137 (package-with-python2 python-pyflakes-0.8.1))
5138
5139 (define-public python-flake8
5140 (package
5141 (name "python-flake8")
5142 (version "2.5.4")
5143 (source
5144 (origin
5145 (method url-fetch)
5146 (uri (pypi-uri "flake8" version))
5147 (sha256
5148 (base32
5149 "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
5150 (build-system python-build-system)
5151 (inputs
5152 `(("python-setuptools" ,python-setuptools)
5153 ("python-pep8" ,python-pep8)
5154 ("python-pyflakes" ,python-pyflakes)
5155 ("python-mccabe" ,python-mccabe)
5156 ("python-mock" ,python-mock)
5157 ("python-nose" ,python-nose)))
5158 (home-page "https://gitlab.com/pycqa/flake8")
5159 (synopsis
5160 "The modular source code checker: pep8, pyflakes and co")
5161 (description
5162 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5163 (license license:expat)))
5164
5165 (define-public python2-flake8
5166 (package-with-python2 python-flake8))
5167
5168 ;; This will only be needed by the python-hacking package and will not be
5169 ;; necessary once python-hacking > 0.10.2 is released.
5170 (define-public python-flake8-2.2.4
5171 (package (inherit python-flake8)
5172 (inputs
5173 `(("python-setuptools" ,python-setuptools)
5174 ("python-pep8" ,python-pep8-1.5.7)
5175 ("python-pyflakes" ,python-pyflakes-0.8.1)
5176 ("python-mccabe" ,python-mccabe-0.2.1)
5177 ("python-mock" ,python-mock)
5178 ("python-nose" ,python-nose)))
5179 (version "2.2.4")
5180 (source
5181 (origin
5182 (method url-fetch)
5183 (uri (pypi-uri "flake8" version))
5184 (sha256
5185 (base32
5186 "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
5187
5188 (define-public python2-flake8-2.2.4
5189 (package-with-python2 python-flake8-2.2.4))
5190
5191 (define-public python-mistune
5192 (package
5193 (name "python-mistune")
5194 (version "0.7")
5195 (source
5196 (origin
5197 (method url-fetch)
5198 (uri (string-append
5199 "https://pypi.python.org/packages/source/m/mistune/mistune-"
5200 version
5201 ".tar.gz"))
5202 (sha256
5203 (base32
5204 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
5205 (build-system python-build-system)
5206 (inputs
5207 `(("python-setuptools" ,python-setuptools)
5208 ("python-nose" ,python-nose)
5209 ("python-cython" ,python-cython)))
5210 (home-page "https://github.com/lepture/mistune")
5211 (synopsis "Markdown parser in pure Python")
5212 (description "This package provides a fast markdown parser in pure
5213 Python.")
5214 (license bsd-3)))
5215
5216 (define-public python2-mistune
5217 (package-with-python2 python-mistune))
5218
5219 (define-public python-markdown
5220 (package
5221 (name "python-markdown")
5222 (version "2.6.5")
5223 (source
5224 (origin
5225 (method url-fetch)
5226 (uri (pypi-uri "Markdown" version))
5227 (sha256
5228 (base32
5229 "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
5230 (build-system python-build-system)
5231 (arguments
5232 `(#:phases
5233 (modify-phases %standard-phases
5234 (replace 'check
5235 (lambda _
5236 (zero? (system* "python" "run-tests.py")))))))
5237 (native-inputs
5238 `(("python-nose" ,python-nose)
5239 ("python-pyyaml" ,python-pyyaml)))
5240 (home-page "https://pythonhosted.org/Markdown/")
5241 (synopsis "Python implementation of Markdown")
5242 (description
5243 "This package provides a Python implementation of John Gruber's
5244 Markdown. The library features international input, various Markdown
5245 extensions, and several HTML output formats. A command line wrapper
5246 markdown_py is also provided to convert Markdown files to HTML.")
5247 (license bsd-3)))
5248
5249 (define-public python2-markdown
5250 (package-with-python2 python-markdown))
5251
5252 (define-public python-ptyprocess
5253 (package
5254 (name "python-ptyprocess")
5255 (version "0.5")
5256 (source
5257 (origin
5258 (method url-fetch)
5259 (uri (string-append
5260 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
5261 version ".tar.gz"))
5262 (sha256
5263 (base32
5264 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
5265 (build-system python-build-system)
5266 (inputs
5267 `(("python-setuptools" ,python-setuptools)
5268 ("python-nose" ,python-nose)))
5269 (arguments
5270 `(#:phases
5271 (modify-phases %standard-phases
5272 (replace 'check
5273 (lambda _
5274 (zero? (system* "nosetests")))))))
5275 (home-page "https://github.com/pexpect/ptyprocess")
5276 (synopsis "Run a subprocess in a pseudo terminal")
5277 (description
5278 "This package provides a Python library used to launch a subprocess in a
5279 pseudo terminal (pty), and interact with both the process and its pty.")
5280 (license isc)))
5281
5282 (define-public python2-ptyprocess
5283 (package-with-python2 python-ptyprocess))
5284
5285 (define-public python-terminado
5286 (package
5287 (name "python-terminado")
5288 (version "0.5")
5289 (source
5290 (origin
5291 (method url-fetch)
5292 (uri (string-append
5293 "https://pypi.python.org/packages/source/t/terminado/terminado-"
5294 version ".tar.gz"))
5295 (sha256
5296 (base32
5297 "1dkmp1n8dj5v1jl9mfrq8lwyc7dsfrvcmz2bgkpg315sy7pr7s33"))))
5298 (build-system python-build-system)
5299 (propagated-inputs
5300 `(("python-tornado" ,python-tornado)
5301 ("python-ptyprocess" ,python-ptyprocess)))
5302 (inputs
5303 `(("python-setuptools" ,python-setuptools)
5304 ("python-nose" ,python-nose)))
5305 (arguments
5306 `(#:phases
5307 (modify-phases %standard-phases
5308 (replace 'check
5309 (lambda _
5310 (zero? (system* "nosetests")))))))
5311 (home-page "https://github.com/takluyver/terminado")
5312 (synopsis "Terminals served to term.js using Tornado websockets")
5313 (description "This package provides a Tornado websocket backend for the
5314 term.js Javascript terminal emulator library.")
5315 (license bsd-2)))
5316
5317 (define-public python2-terminado
5318 (let ((terminado (package-with-python2 python-terminado)))
5319 (package (inherit terminado)
5320 (propagated-inputs
5321 `(("python2-tornado" ,python2-tornado)
5322 ("python2-backport-ssl-match-hostname"
5323 ,python2-backport-ssl-match-hostname)
5324 ,@(alist-delete "python-tornado"
5325 (package-propagated-inputs terminado)))))))
5326
5327 (define-public python-fonttools
5328 (package
5329 (name "python-fonttools")
5330 (version "2.5")
5331 (source (origin
5332 (method url-fetch)
5333 (uri (string-append
5334 "https://pypi.python.org/packages/source/F/FontTools/"
5335 "fonttools-" version ".tar.gz"))
5336 (sha256
5337 (base32
5338 "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
5339 (build-system python-build-system)
5340 (arguments '(#:test-target "check"))
5341 (propagated-inputs
5342 ;; XXX: module not found if setuptools is not available.
5343 `(("python-setuptools" ,python-setuptools)))
5344 (home-page "http://github.com/behdad/fonttools")
5345 (synopsis "Tools to manipulate font files")
5346 (description
5347 "FontTools/TTX is a library to manipulate font files from Python. It
5348 supports reading and writinfg of TrueType/OpenType fonts, reading and writing
5349 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
5350 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
5351 from an XML-based format.")
5352 (license (non-copyleft "file://LICENSE.txt"
5353 "See LICENSE.txt in the distribution."))))
5354
5355 (define-public python2-fonttools
5356 (package-with-python2 python-fonttools))
5357
5358 (define-public python-ly
5359 (package
5360 (name "python-ly")
5361 (version "0.9.3")
5362 (source
5363 (origin
5364 (method url-fetch)
5365 (uri (string-append
5366 "https://pypi.python.org/packages/source/p/python-ly/python-ly-"
5367 version ".tar.gz"))
5368 (sha256
5369 (base32
5370 "1y6ananq8fia4y4m5id6gvsrm68bzpzd1y46pfzvawic0wjg2l0l"))))
5371 (build-system python-build-system)
5372 (native-inputs
5373 `(("python-setuptools" ,python-setuptools)))
5374 (synopsis "Tool and library for manipulating LilyPond files")
5375 (description "This package provides a Python library to parse, manipulate
5376 or create documents in LilyPond format. A command line program ly is also
5377 provided that can be used to do various manipulations with LilyPond files.")
5378 (home-page "https://pypi.python.org/pypi/python-ly")
5379 (license gpl2+)))
5380
5381 (define-public python-appdirs
5382 (package
5383 (name "python-appdirs")
5384 (version "1.4.0")
5385 (source
5386 (origin
5387 (method url-fetch)
5388 (uri (string-append
5389 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
5390 version
5391 ".tar.gz"))
5392 (sha256
5393 (base32
5394 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
5395 (build-system python-build-system)
5396 (inputs
5397 `(("python-setuptools" ,python-setuptools)))
5398 (home-page "http://github.com/ActiveState/appdirs")
5399 (synopsis
5400 "Determine platform-specific dirs, e.g. a \"user data dir\"")
5401 (description
5402 "This module provides a portable way of finding out where user data
5403 should be stored on various operating systems.")
5404 (license license:expat)))
5405
5406 (define-public python2-appdirs
5407 (package-with-python2 python-appdirs))
5408
5409 (define-public python-llfuse
5410 (package
5411 (name "python-llfuse")
5412 (version "1.0")
5413 (source (origin
5414 (method url-fetch)
5415 (uri (string-append
5416 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5417 "llfuse-" version ".tar.bz2"))
5418 (sha256
5419 (base32
5420 "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps"))))
5421 (build-system python-build-system)
5422 (inputs
5423 `(("fuse" ,fuse)
5424 ("attr" ,attr)))
5425 (native-inputs
5426 `(("pkg-config" ,pkg-config)
5427 ("python-setuptools" ,python-setuptools)))
5428 (synopsis "Python bindings for FUSE")
5429 (description
5430 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
5431 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
5432 (license lgpl2.0+)
5433 (properties `((python2-variant . ,(delay python2-llfuse))))))
5434
5435 (define-public python2-llfuse
5436 (package (inherit (package-with-python2
5437 (strip-python2-variant python-llfuse)))
5438 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
5439
5440 ;; For attic-0.16
5441 (define-public python-llfuse-0.41
5442 (package (inherit python-llfuse)
5443 (version "0.41.1")
5444 (source (origin
5445 (method url-fetch)
5446 (uri (string-append
5447 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5448 "llfuse-" version ".tar.bz2"))
5449 (sha256
5450 (base32
5451 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
5452 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
5453 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
5454 (license (list license:expat lgpl2.0+))))
5455
5456 (define-public python-msgpack
5457 (package
5458 (name "python-msgpack")
5459 (version "0.4.7")
5460 (source (origin
5461 (method url-fetch)
5462 (uri (pypi-uri "msgpack-python" version))
5463 (sha256
5464 (base32
5465 "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y"))))
5466 (build-system python-build-system)
5467 (synopsis "MessagePack (de)serializer")
5468 (description "MessagePack is a fast, compact binary serialization format,
5469 suitable for similar data to JSON. This package provides CPython bindings for
5470 reading and writing MessagePack data.")
5471 (home-page "https://pypi.python.org/pypi/msgpack-python/")
5472 (license asl2.0)
5473 (properties `((python2-variant . ,(delay python2-msgpack))))))
5474
5475 (define-public python2-msgpack
5476 (package (inherit (package-with-python2
5477 (strip-python2-variant python-msgpack)))
5478 (native-inputs
5479 `(("python2-setuptools" ,python2-setuptools)))))
5480
5481 (define-public python2-msgpack
5482 (package-with-python2 python-msgpack))
5483
5484 (define-public python-netaddr
5485 (package
5486 (name "python-netaddr")
5487 (version "0.7.18")
5488 (source
5489 (origin
5490 (method url-fetch)
5491 (uri (string-append
5492 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
5493 version
5494 ".tar.gz"))
5495 (sha256
5496 (base32
5497 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
5498 (build-system python-build-system)
5499 (arguments `(#:tests? #f)) ;; No tests.
5500 (inputs
5501 `(("python-setuptools" ,python-setuptools)))
5502 (home-page "https://github.com/drkjam/netaddr/")
5503 (synopsis "Pythonic manipulation of network addresses")
5504 (description
5505 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
5506 and MAC network addresses.")
5507 (license bsd-3)))
5508
5509 (define-public python2-netaddr
5510 (package-with-python2 python-netaddr))
5511
5512 (define-public python-wrapt
5513 (package
5514 (name "python-wrapt")
5515 (version "1.10.5")
5516 (source
5517 (origin
5518 (method url-fetch)
5519 (uri (string-append
5520 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
5521 version
5522 ".tar.gz"))
5523 (sha256
5524 (base32
5525 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
5526 (build-system python-build-system)
5527 (arguments
5528 ;; Tests are not included in the tarball, they are only available in the
5529 ;; git repository.
5530 `(#:tests? #f))
5531 (inputs
5532 `(("python-setuptools" ,python-setuptools)))
5533 (home-page "https://github.com/GrahamDumpleton/wrapt")
5534 (synopsis "Module for decorators, wrappers and monkey patching")
5535 (description
5536 "The aim of the wrapt module is to provide a transparent object proxy for
5537 Python, which can be used as the basis for the construction of function
5538 wrappers and decorator functions.")
5539 (license bsd-2)))
5540
5541 (define-public python2-wrapt
5542 (package-with-python2 python-wrapt))
5543
5544 (define-public python-iso8601
5545 (package
5546 (name "python-iso8601")
5547 (version "0.1.10")
5548 (source
5549 (origin
5550 (method url-fetch)
5551 (uri (string-append
5552 "https://pypi.python.org/packages/source/i/iso8601/iso8601-"
5553 version
5554 ".tar.gz"))
5555 (sha256
5556 (base32
5557 "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7"))))
5558 (build-system python-build-system)
5559 (inputs
5560 `(("python-setuptools" ,python-setuptools)))
5561 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
5562 (synopsis "Module to parse ISO 8601 dates")
5563 (description
5564 "This module parses the most common forms of ISO 8601 date strings (e.g.
5565 @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
5566 (license license:expat)))
5567
5568 (define-public python2-iso8601
5569 (package-with-python2 python-iso8601))
5570
5571 (define-public python-monotonic
5572 (package
5573 (name "python-monotonic")
5574 (version "0.3")
5575 (source
5576 (origin
5577 (method url-fetch)
5578 (uri (string-append
5579 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
5580 version
5581 ".tar.gz"))
5582 (sha256
5583 (base32
5584 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
5585 (build-system python-build-system)
5586 (inputs
5587 `(("python-setuptools" ,python-setuptools)))
5588 (home-page "https://github.com/atdt/monotonic")
5589 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
5590 (description
5591 "This module provides a monotonic() function which returns the value (in
5592 fractional seconds) of a clock which never goes backwards.")
5593 (license asl2.0)))
5594
5595 (define-public python2-monotonic
5596 (package-with-python2 python-monotonic))
5597
5598 (define-public python-webob
5599 (package
5600 (name "python-webob")
5601 (version "1.5.1")
5602 (source
5603 (origin
5604 (method url-fetch)
5605 (uri (pypi-uri "WebOb" version))
5606 (sha256
5607 (base32
5608 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
5609 (build-system python-build-system)
5610 (inputs
5611 `(("python-nose" ,python-nose)
5612 ("python-setuptools" ,python-setuptools)))
5613 (home-page "http://webob.org/")
5614 (synopsis "WSGI request and response object")
5615 (description
5616 "WebOb provides wrappers around the WSGI request environment, and an
5617 object to help create WSGI responses.")
5618 (license license:expat)))
5619
5620 (define-public python2-webob
5621 (package-with-python2 python-webob))
5622
5623 (define-public python-xlrd
5624 (package
5625 (name "python-xlrd")
5626 (version "0.9.4")
5627 (source (origin
5628 (method url-fetch)
5629 (uri (string-append "https://pypi.python.org/packages/source/x/"
5630 "xlrd/xlrd-" version ".tar.gz"))
5631 (sha256
5632 (base32
5633 "0wpa55nvidmm5m2qr622dsh3cj46akdk0h3zjgzschcmydck73cf"))))
5634 (build-system python-build-system)
5635 (arguments
5636 `(#:phases
5637 (modify-phases %standard-phases
5638 ;; Current test in setup.py does not work as of 0.9.4, so use nose to
5639 ;; run tests instead for now.
5640 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5641 (native-inputs `(("python-nose" ,python-nose)
5642 ("python-setuptools" ,python-setuptools)))
5643 (home-page "http://www.python-excel.org/")
5644 (synopsis "Library for extracting data from Excel files")
5645 (description "This packages provides a library to extract data from
5646 spreadsheets using Microsoft Excel® proprietary file formats @samp{.xls} and
5647 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
5648 Unicode-aware. It is not intended as an end-user tool.")
5649 (license bsd-3)))
5650
5651 (define-public python2-xlrd
5652 (package-with-python2 python-xlrd))
5653
5654 (define-public python-prettytable
5655 (package
5656 (name "python-prettytable")
5657 (version "0.7.2")
5658 (source
5659 (origin
5660 (method url-fetch)
5661 (uri (string-append
5662 "https://pypi.python.org/packages/source/P/PrettyTable/"
5663 "prettytable-" version ".tar.bz2"))
5664 (sha256
5665 (base32
5666 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
5667 (build-system python-build-system)
5668 (inputs
5669 `(("python-setuptools" ,python-setuptools)))
5670 (home-page "http://code.google.com/p/prettytable/")
5671 (synopsis "Display tabular data in an ASCII table format")
5672 (description
5673 "A library designed to represent tabular data in visually appealing ASCII
5674 tables. PrettyTable allows for selection of which columns are to be printed,
5675 independent alignment of columns (left or right justified or centred) and
5676 printing of sub-tables by specifying a row range.")
5677 (license bsd-3)))
5678
5679 (define-public python2-prettytable
5680 (package-with-python2 python-prettytable))
5681
5682 (define-public python-pyasn1
5683 (package
5684 (name "python-pyasn1")
5685 (version "0.1.8")
5686 (source
5687 (origin
5688 (method url-fetch)
5689 (uri (string-append "https://pypi.python.org/packages/source/p/"
5690 "pyasn1/pyasn1-" version ".tar.gz"))
5691 (sha256
5692 (base32
5693 "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx"))))
5694 (build-system python-build-system)
5695 (home-page "http://pyasn1.sourceforge.net/")
5696 (synopsis "ASN.1 types and codecs")
5697 (description
5698 "This is an implementation of ASN.1 types and codecs in Python. It is
5699 suitable for a wide range of protocols based on the ASN.1 specification.")
5700 (license bsd-2)))
5701
5702 (define-public python2-pyasn1
5703 (package-with-python2 python-pyasn1))
5704
5705 (define-public python-pyasn1-modules
5706 (package
5707 (name "python-pyasn1-modules")
5708 (version "0.0.8")
5709 (source
5710 (origin
5711 (method url-fetch)
5712 (uri (pypi-uri "pyasn1-modules" version))
5713 (sha256
5714 (base32
5715 "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
5716 (build-system python-build-system)
5717 (native-inputs
5718 `(("python-setuptools" ,python-setuptools)))
5719 (propagated-inputs
5720 `(("python-pyasn1" ,python-pyasn1)))
5721 (home-page "http://sourceforge.net/projects/pyasn1/")
5722 (synopsis "ASN.1 codec implementations")
5723 (description
5724 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
5725 implementations of ASN.1-based codecs and protocols.")
5726 (license bsd-3)))
5727
5728 (define-public python2-pyasn1-modules
5729 (package-with-python2 python-pyasn1-modules))
5730
5731 (define-public python2-ipaddress
5732 (package
5733 (name "python2-ipaddress")
5734 (version "1.0.14")
5735 (source
5736 (origin
5737 (method url-fetch)
5738 (uri (string-append "https://pypi.python.org/packages/source/i/"
5739 "ipaddress/ipaddress-" version ".tar.gz"))
5740 (sha256
5741 (base32
5742 "0givid4963n57nsjibms2fc347zmcs188q1hw9al1dkc9kj4nvr2"))))
5743 (build-system python-build-system)
5744 (arguments
5745 `(#:tests? #f ; no tests
5746 #:python ,python-2))
5747 (home-page "https://github.com/phihag/ipaddress")
5748 (synopsis "IP address manipulation library")
5749 (description
5750 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
5751 in Python. This library is used to create, poke at, and manipulate IPv4 and
5752 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
5753 module to older versions of Python.")
5754 (license psfl)))
5755
5756 (define-public python-idna
5757 (package
5758 (name "python-idna")
5759 (version "2.0")
5760 (source
5761 (origin
5762 (method url-fetch)
5763 (uri (string-append "https://pypi.python.org/packages/source/i/"
5764 "idna/idna-" version ".tar.gz"))
5765 (sha256
5766 (base32
5767 "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
5768 (build-system python-build-system)
5769 (native-inputs
5770 `(("python-setuptools" ,python-setuptools)))
5771 (home-page "https://github.com/kjd/idna")
5772 (synopsis "Internationalized domain names in applications")
5773 (description
5774 "This is a library to support the Internationalised Domain Names in
5775 Applications (IDNA) protocol as specified in RFC 5891. This version of the
5776 protocol is often referred to as “IDNA2008” and can produce different results
5777 from the earlier standard from 2003. The library is also intended to act as a
5778 suitable drop-in replacement for the “encodings.idna” module that comes with
5779 the Python standard library but currently only supports the older 2003
5780 specification.")
5781 (license bsd-4)))
5782
5783 (define-public python2-idna
5784 (package-with-python2 python-idna))
5785
5786 (define-public python-pretend
5787 (package
5788 (name "python-pretend")
5789 (version "1.0.8")
5790 (source
5791 (origin
5792 (method url-fetch)
5793 (uri (string-append "https://pypi.python.org/packages/source/p/"
5794 "pretend/pretend-" version ".tar.gz"))
5795 (sha256
5796 (base32
5797 "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
5798 (build-system python-build-system)
5799 (native-inputs
5800 `(("python-setuptools" ,python-setuptools)))
5801 (home-page "https://github.com/alex/pretend")
5802 (synopsis "Library for stubbing in Python")
5803 (description
5804 "Pretend is a library to make stubbing with Python easier. Stubbing is a
5805 technique for writing tests. You may hear the term mixed up with mocks,
5806 fakes, or doubles. Basically, a stub is an object that returns pre-canned
5807 responses, rather than doing any computation.")
5808 (license bsd-3)))
5809
5810 (define-public python2-pretend
5811 (package-with-python2 python-pretend))
5812
5813 (define-public python-cryptography-vectors
5814 (package
5815 (name "python-cryptography-vectors")
5816 (version "1.2.3")
5817 (source
5818 (origin
5819 (method url-fetch)
5820 (uri (string-append "https://pypi.python.org/packages/source/c/"
5821 "cryptography-vectors/cryptography_vectors-"
5822 version ".tar.gz"))
5823 (sha256
5824 (base32
5825 "0shawgpax79gvjrj0a313sll9gaqys7q1hxngn6j4k24lmz7bwki"))))
5826 (build-system python-build-system)
5827 (native-inputs
5828 `(("python-setuptools" ,python-setuptools)))
5829 (home-page "https://github.com/pyca/cryptography")
5830 (synopsis "Test vectors for the cryptography package.")
5831 (description
5832 "This package contains test vectors for the cryptography package.")
5833 ;; Distributed under either BSD-3 or ASL2.0
5834 (license (list bsd-3 asl2.0))))
5835
5836 (define-public python2-cryptography-vectors
5837 (package-with-python2 python-cryptography-vectors))
5838
5839 (define-public python-cryptography
5840 (package
5841 (name "python-cryptography")
5842 (version "1.2.3")
5843 (source
5844 (origin
5845 (method url-fetch)
5846 (uri (pypi-uri "cryptography" version))
5847 (sha256
5848 (base32
5849 "0kj511z4g21fhcr649pyzpl0zzkkc7hsgxxjys6z8wwfvmvirccf"))))
5850 (build-system python-build-system)
5851 (inputs
5852 `(("openssl" ,openssl)))
5853 (propagated-inputs
5854 `(("python-cffi" ,python-cffi)
5855 ("python-six" ,python-six)
5856 ("python-pyasn1" ,python-pyasn1)
5857 ("python-idna" ,python-idna)
5858 ("python-iso8601" ,python-iso8601)))
5859 (native-inputs
5860 `(("python-cryptography-vectors" ,python-cryptography-vectors)
5861 ("python-hypothesis" ,python-hypothesis)
5862 ("python-setuptools" ,python-setuptools)
5863 ("python-pretend" ,python-pretend)
5864 ("python-pyasn1" ,python-pyasn1)
5865 ("python-pyasn1-modules" ,python-pyasn1-modules)
5866 ("python-pytest" ,python-pytest)))
5867 (home-page "https://github.com/pyca/cryptography")
5868 (synopsis "Cryptographic recipes and primitives for Python")
5869 (description
5870 "cryptography is a package which provides cryptographic recipes and
5871 primitives to Python developers. It aims to be the “cryptographic standard
5872 library” for Python. The package includes both high level recipes, and low
5873 level interfaces to common cryptographic algorithms such as symmetric ciphers,
5874 message digests and key derivation functions.")
5875 ;; Distributed under either BSD-3 or ASL2.0
5876 (license (list bsd-3 asl2.0))
5877 (properties `((python2-variant . ,(delay python2-cryptography))))))
5878
5879 (define-public python2-cryptography
5880 (let ((crypto (package-with-python2
5881 (strip-python2-variant python-cryptography))))
5882 (package (inherit crypto)
5883 (propagated-inputs
5884 `(("python2-ipaddress" ,python2-ipaddress)
5885 ("python2-backport-ssl-match-hostname"
5886 ,python2-backport-ssl-match-hostname)
5887 ("python2-enum34" ,python2-enum34)
5888 ,@(package-propagated-inputs crypto))))))
5889
5890 (define-public python-pyopenssl
5891 (package
5892 (name "python-pyopenssl")
5893 (version "0.15.1")
5894 (source
5895 (origin
5896 (method url-fetch)
5897 (uri (string-append "https://pypi.python.org/packages/source/p/"
5898 "pyOpenSSL/pyOpenSSL-" version ".tar.gz"))
5899 (sha256
5900 (base32
5901 "0wnnq15rhj7fhdcd8ycwiw6r6g3w9f9lcy6cigg8226vsrq618ph"))))
5902 (build-system python-build-system)
5903 (arguments
5904 `(#:phases
5905 (modify-phases %standard-phases
5906 (add-after 'unpack 'fix-tests
5907 (lambda* (#:key inputs #:allow-other-keys)
5908 (substitute* "OpenSSL/test/test_ssl.py"
5909 (("client\\.connect\\(\\('verisign\\.com', 443\\)\\)")
5910 "return True")
5911 ;; FIXME: disable broken test
5912 (("test_set_tmp_ecdh") "disabled__set_tmp_ecdh"))
5913 (substitute* "OpenSSL/test/test_crypto.py"
5914 (("command = b\"openssl \"")
5915 (string-append "command = b\""
5916 (assoc-ref inputs "openssl")
5917 "/bin/openssl" " \""))
5918 ;; FIXME: disable four broken tests
5919 (("test_der") "disabled__der")
5920 (("test_digest") "disabled__digest")
5921 (("test_get_extension") "disabled__get_extension")
5922 (("test_extension_count") "disabled__extension_count"))
5923 #t)))))
5924 (propagated-inputs
5925 `(("python-cryptography" ,python-cryptography)
5926 ("python-six" ,python-six)))
5927 (inputs
5928 `(("openssl" ,openssl)))
5929 (native-inputs
5930 `(("python-setuptools" ,python-setuptools)))
5931 (home-page "https://github.com/pyca/pyopenssl")
5932 (synopsis "Python wrapper module around the OpenSSL library")
5933 (description
5934 "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
5935 library.")
5936 (license asl2.0)))
5937
5938 (define-public python2-pyopenssl
5939 (package-with-python2 python-pyopenssl))
5940
5941 (define-public python-pip
5942 (package
5943 (name "python-pip")
5944 (version "8.0.2")
5945 (source
5946 (origin
5947 (method url-fetch)
5948 (uri (pypi-uri "pip" version))
5949 (sha256
5950 (base32
5951 "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
5952 (build-system python-build-system)
5953 (inputs
5954 `(("python-setuptools" ,python-setuptools)
5955 ("python-virtualenv" ,python-virtualenv)
5956 ;; Tests
5957 ("python-mock" ,python-mock)
5958 ("python-pytest" ,python-pytest)
5959 ("python-scripttest" ,python-scripttest)))
5960 (home-page "https://pip.pypa.io/")
5961 (synopsis
5962 "Package manager for Python software")
5963 (description
5964 "Pip is a package manager for Python software, that finds packages on the
5965 Python Package Index (PyPI).")
5966 (license license:expat)))
5967
5968 (define-public python2-pip
5969 (package-with-python2 python-pip))
5970
5971 (define-public python-tlsh
5972 (package
5973 (name "python-tlsh")
5974 (version "3.4.4")
5975 (home-page "https://github.com/trendmicro/tlsh")
5976 (source (origin
5977 (method url-fetch)
5978 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
5979 version ".tar.gz"))
5980 (sha256
5981 (base32
5982 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
5983 (file-name (string-append name "-" version ".tar.gz"))))
5984 (build-system cmake-build-system)
5985 (arguments
5986 '(#:out-of-source? #f
5987 #:phases (modify-phases %standard-phases
5988 (replace
5989 'install
5990 (lambda* (#:key outputs #:allow-other-keys)
5991 ;; Build and install the Python bindings. The underlying
5992 ;; C++ library is apparently not meant to be installed.
5993 (let ((out (assoc-ref outputs "out")))
5994 (with-directory-excursion "py_ext"
5995 (and (system* "python" "setup.py" "build")
5996 (system* "python" "setup.py" "install"
5997 (string-append "--prefix=" out))))))))))
5998 (inputs `(("python" ,python-wrapper))) ;for the bindings
5999 (synopsis "Fuzzy matching library for Python")
6000 (description
6001 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
6002 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
6003 value which can be used for similarity comparisons. Similar objects have
6004 similar hash values, which allows for the detection of similar objects by
6005 comparing their hash values. The byte stream should have a sufficient amount
6006 of complexity; for example, a byte stream of identical bytes will not generate
6007 a hash value.")
6008 (license asl2.0)))
6009
6010 (define-public python2-tlsh
6011 (package
6012 (inherit python-tlsh)
6013 (name "python2-tlsh")
6014 (inputs `(("python" ,python-2)))))
6015
6016 (define-public python-libarchive-c
6017 (package
6018 (name "python-libarchive-c")
6019 (version "2.2")
6020 (source (origin
6021 (method url-fetch)
6022 (uri (pypi-uri "libarchive-c" version))
6023 (sha256
6024 (base32
6025 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
6026 (build-system python-build-system)
6027 (arguments
6028 '(#:phases (modify-phases %standard-phases
6029 (add-before
6030 'build 'reference-libarchive
6031 (lambda* (#:key inputs #:allow-other-keys)
6032 ;; Retain the absolute file name of libarchive.so.
6033 (let ((libarchive (assoc-ref inputs "libarchive")))
6034 (substitute* "libarchive/ffi.py"
6035 (("find_library\\('archive'\\)")
6036 (string-append "'" libarchive
6037 "/lib/libarchive.so'"))))
6038
6039 ;; Do not make a compressed egg (see
6040 ;; <http://bugs.gnu.org/20765>).
6041 (let ((port (open-file "setup.cfg" "a")))
6042 (display "\n[easy_install]\nzip_ok = 0\n"
6043 port)
6044 (close-port port)
6045 #t))))))
6046 (inputs
6047 `(("python-setuptools" ,python-setuptools)
6048 ("libarchive" ,libarchive)))
6049 (home-page "https://github.com/Changaco/python-libarchive-c")
6050 (synopsis "Python interface to libarchive")
6051 (description
6052 "This package provides Python bindings to libarchive, a C library to
6053 access possibly compressed archives in many different formats. It uses
6054 Python's @code{ctypes} foreign function interface (FFI).")
6055 (license lgpl2.0+)))
6056
6057 (define-public python2-libarchive-c
6058 (package-with-python2 python-libarchive-c))
6059
6060 (define-public python-file
6061 (package
6062 (inherit file)
6063 (name "python-file")
6064 (build-system python-build-system)
6065 (arguments
6066 '(#:tests? #f ;no tests
6067 #:phases (modify-phases %standard-phases
6068 (add-before 'build 'change-directory
6069 (lambda _
6070 (chdir "python")
6071 #t))
6072 (add-before 'build 'set-library-file-name
6073 (lambda* (#:key inputs #:allow-other-keys)
6074 (let ((file (assoc-ref inputs "file")))
6075 (substitute* "magic.py"
6076 (("find_library\\('magic'\\)")
6077 (string-append "'" file "/lib/libmagic.so'")))
6078 #t))))))
6079 (inputs `(("file" ,file)))
6080 (self-native-input? #f)
6081 (synopsis "Python bindings to the libmagic file type guesser. Note that
6082 this module and the python-magic module both provide a \"magic.py\" file;
6083 these two modules, which are different and were developed separately, both
6084 serve the same purpose: provide Python bindings for libmagic.")))
6085
6086 (define-public python2-file
6087 (package-with-python2 python-file))
6088
6089 (define-public python-debian
6090 (package
6091 (name "python-debian")
6092 (version "0.1.23")
6093 (source
6094 (origin
6095 (method url-fetch)
6096 (uri (string-append
6097 "https://pypi.python.org/packages/source/p/python-debian/python-debian-"
6098 version ".tar.gz"))
6099 (sha256
6100 (base32
6101 "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
6102 (build-system python-build-system)
6103 (inputs
6104 `(("python-six" ,python-six)))
6105 (native-inputs
6106 `(("python-setuptools" ,python-setuptools)))
6107 (home-page "http://packages.debian.org/sid/python-debian")
6108 (synopsis "Debian package related modules")
6109 (description
6110 ;; XXX: Use @enumerate instead of @itemize to work around
6111 ;; <http://bugs.gnu.org/21772>.
6112 "This package provides Python modules that abstract many formats of
6113 Debian-related files, such as:
6114
6115 @enumerate
6116 @item Debtags information;
6117 @item @file{debian/changelog} files;
6118 @item packages files, pdiffs;
6119 @item control files of single or multiple RFC822-style paragraphs---e.g.
6120 @file{debian/control}, @file{.changes}, @file{.dsc};
6121 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6122 contained files and meta-information.
6123 @end enumerate\n")
6124
6125 ;; Modules are either GPLv2+ or GPLv3+.
6126 (license gpl3+)))
6127
6128 (define-public python2-debian
6129 (package-with-python2 python-debian))
6130
6131 (define-public python-chardet
6132 (package
6133 (name "python-chardet")
6134 (version "2.3.0")
6135 (source
6136 (origin
6137 (method url-fetch)
6138 (uri (string-append
6139 "https://pypi.python.org/packages/source/c/chardet/chardet-"
6140 version
6141 ".tar.gz"))
6142 (sha256
6143 (base32
6144 "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
6145 (build-system python-build-system)
6146 (native-inputs
6147 `(("python-setuptools" ,python-setuptools)))
6148 (home-page "https://github.com/chardet/chardet")
6149 (synopsis "Universal encoding detector for Python 2 and 3")
6150 (description
6151 "This package provides @code{chardet}, a Python module that can
6152 automatically detect a wide range of file encodings.")
6153 (license lgpl2.1+)))
6154
6155 (define-public python2-chardet
6156 (package-with-python2 python-chardet))
6157
6158 (define-public python-docopt
6159 (package
6160 (name "python-docopt")
6161 (version "0.6.2")
6162 (source
6163 (origin
6164 (method url-fetch)
6165 ;; The release on PyPI does not include tests.
6166 (uri (string-append
6167 "https://github.com/docopt/docopt/archive/"
6168 version ".tar.gz"))
6169 (file-name (string-append name "-" version ".tar.gz"))
6170 (sha256
6171 (base32
6172 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
6173 (build-system python-build-system)
6174 (native-inputs
6175 `(("python-pytest" ,python-pytest)
6176 ("python-setuptools" ,python-setuptools)))
6177 (arguments
6178 `(#:phases (alist-replace
6179 'check
6180 (lambda _ (zero? (system* "py.test")))
6181 %standard-phases)))
6182 (home-page "http://docopt.org")
6183 (synopsis "Command-line interface description language for Python")
6184 (description "This library allows the user to define a command-line
6185 interface from a program's help message rather than specifying it
6186 programatically with command-line parsers like @code{getopt} and
6187 @code{argparse}.")
6188 (license license:expat)))
6189
6190 (define-public python2-docopt
6191 (package-with-python2 python-docopt))
6192
6193 (define-public python-zope-event
6194 (package
6195 (name "python-zope-event")
6196 (version "4.1.0")
6197 (source
6198 (origin
6199 (method url-fetch)
6200 (uri (string-append "https://pypi.python.org/packages/source/z"
6201 "/zope.event/zope.event-" version ".tar.gz"))
6202 (sha256
6203 (base32
6204 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
6205 (build-system python-build-system)
6206 (inputs
6207 `(("python-setuptools" ,python-setuptools)))
6208 (home-page "http://pypi.python.org/pypi/zope.event")
6209 (synopsis "Event publishing system for Python")
6210 (description "Zope.event provides an event publishing API, intended for
6211 use by applications which are unaware of any subscribers to their events. It
6212 is a simple event-dispatching system on which more sophisticated event
6213 dispatching systems can be built.")
6214 (license zpl2.1)))
6215
6216 (define-public python2-zope-event
6217 (package-with-python2 python-zope-event))
6218
6219 (define-public python-zope-interface
6220 (package
6221 (name "python-zope-interface")
6222 (version "4.1.3")
6223 (source
6224 (origin
6225 (method url-fetch)
6226 (uri (string-append "https://pypi.python.org/packages/source/z"
6227 "/zope.interface/zope.interface-" version ".tar.gz"))
6228 (sha256
6229 (base32
6230 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
6231 (build-system python-build-system)
6232 (propagated-inputs
6233 `(("python-zope-event" ,python-zope-event)))
6234 (home-page "https://github.com/zopefoundation/zope.interface")
6235 (synopsis "Python implementation of the \"design by contract\"
6236 methodology")
6237 (description "Zope.interface provides an implementation of \"object
6238 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
6239 conforming to a given API or contract.")
6240 (license zpl2.1)))
6241
6242 (define-public python2-zope-interface
6243 (package-with-python2 python-zope-interface))
6244
6245 (define-public python-zope-exceptions
6246 (package
6247 (name "python-zope-exceptions")
6248 (version "4.0.8")
6249 (source
6250 (origin
6251 (method url-fetch)
6252 (uri (string-append "https://pypi.python.org/packages/source/z"
6253 "/zope.exceptions/zope.exceptions-"
6254 version ".tar.gz"))
6255 (sha256
6256 (base32
6257 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
6258 (build-system python-build-system)
6259 (arguments
6260 '(#:tests? #f)) ; circular dependency with zope.testrunner
6261 (propagated-inputs
6262 `(("python-zope-interface" ,python-zope-interface)))
6263 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
6264 (synopsis "Zope exceptions")
6265 (description "Zope.exceptions provides general-purpose exception types
6266 that have uses outside of the Zope framework.")
6267 (license zpl2.1)))
6268
6269 (define-public python2-zope-exceptions
6270 (package-with-python2 python-zope-exceptions))
6271
6272 (define-public python-zope-testing
6273 (package
6274 (name "python-zope-testing")
6275 (version "4.5.0")
6276 (source
6277 (origin
6278 (method url-fetch)
6279 (uri (string-append "https://pypi.python.org/packages/source/z"
6280 "/zope.testing/zope.testing-" version ".tar.gz"))
6281 (sha256
6282 (base32
6283 "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))))
6284 (build-system python-build-system)
6285 (native-inputs
6286 `(("python-zope-exceptions" ,python-zope-exceptions)))
6287 (propagated-inputs
6288 `(("python-zope-interface" ,python-zope-interface)))
6289 (home-page "http://pypi.python.org/pypi/zope.testing")
6290 (synopsis "Zope testing helpers")
6291 (description "Zope.testing provides a number of testing utilities for HTML
6292 forms, HTTP servers, regular expressions, and more.")
6293 (license zpl2.1)))
6294
6295 (define-public python2-zope-testing
6296 (package-with-python2 python-zope-testing))
6297
6298 (define-public python-zope-testrunner
6299 (package
6300 (name "python-zope-testrunner")
6301 (version "4.4.9")
6302 (source
6303 (origin
6304 (method url-fetch)
6305 (uri (string-append "https://pypi.python.org/packages/source/z"
6306 "/zope.testrunner/zope.testrunner-"
6307 version ".zip"))
6308 (sha256
6309 (base32
6310 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
6311 (build-system python-build-system)
6312 (native-inputs
6313 `(("python-six" ,python-six)
6314 ("python-zope-exceptions" ,python-zope-exceptions)
6315 ("python-zope-testing" ,python-zope-testing)
6316 ("unzip" ,unzip)))
6317 (propagated-inputs
6318 `(("python-zope-interface" ,python-zope-interface)))
6319 (home-page "http://pypi.python.org/pypi/zope.testrunner")
6320 (synopsis "Zope testrunner script")
6321 (description "Zope.testrunner provides a script for running Python
6322 tests.")
6323 (license zpl2.1)))
6324
6325 (define-public python2-zope-testrunner
6326 (let ((base (package-with-python2 python-zope-testrunner)))
6327 (package
6328 (inherit base)
6329 (native-inputs
6330 (append (package-native-inputs base)
6331 `(("python2-subunit" ,python2-subunit)
6332 ("python2-mimeparse" ,python2-mimeparse)))))))
6333
6334 (define-public python-zope-i18nmessageid
6335 (package
6336 (name "python-zope-i18nmessageid")
6337 (version "4.0.3")
6338 (source
6339 (origin
6340 (method url-fetch)
6341 (uri (string-append
6342 "https://pypi.python.org/packages/source/z"
6343 "/zope.i18nmessageid/zope.i18nmessageid-"
6344 version ".tar.gz"))
6345 (sha256
6346 (base32
6347 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
6348 (build-system python-build-system)
6349 (inputs
6350 `(("python-setuptools" ,python-setuptools)))
6351 (home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
6352 (synopsis "Message identifiers for internationalization")
6353 (description "Zope.i18nmessageid provides facilities for declaring
6354 internationalized messages within program source text.")
6355 (license zpl2.1)))
6356
6357 (define-public python2-zope-i18nmessageid
6358 (package-with-python2 python-zope-i18nmessageid))
6359
6360 (define-public python-zope-schema
6361 (package
6362 (name "python-zope-schema")
6363 (version "4.4.2")
6364 (source
6365 (origin
6366 (method url-fetch)
6367 (uri (string-append "https://pypi.python.org/packages/source/z"
6368 "/zope.schema/zope.schema-" version ".tar.gz"))
6369 (sha256
6370 (base32
6371 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
6372 (build-system python-build-system)
6373 (propagated-inputs
6374 `(("python-zope-event" ,python-zope-event)
6375 ("python-zope-interface" ,python-zope-interface)))
6376 (native-inputs
6377 `(("python-zope-testing" ,python-zope-testing)))
6378 (home-page "http://pypi.python.org/pypi/zope.schema")
6379 (synopsis "Zope data schemas")
6380 (description "Zope.scheme provides extensions to zope.interface for
6381 defining data schemas.")
6382 (license zpl2.1)))
6383
6384 (define-public python2-zope-schema
6385 (package-with-python2 python-zope-schema))
6386
6387 (define-public python-zope-configuration
6388 (package
6389 (name "python-zope-configuration")
6390 (version "4.0.3")
6391 (source (origin
6392 (method url-fetch)
6393 (uri (string-append "https://pypi.python.org/packages/source/z"
6394 "/zope.configuration/zope.configuration-"
6395 version ".tar.gz"))
6396 (sha256
6397 (base32
6398 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
6399 (build-system python-build-system)
6400 (propagated-inputs
6401 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6402 ("python-zope-schema" ,python-zope-schema)))
6403 (home-page "http://pypi.python.org/pypi/zope.configuration")
6404 (synopsis "Zope Configuration Markup Language")
6405 (description "Zope.configuration implements ZCML, the Zope Configuration
6406 Markup Language.")
6407 (license zpl2.1)))
6408
6409 (define-public python2-zope-configuration
6410 (package-with-python2 python-zope-configuration))
6411
6412 (define-public python-zope-proxy
6413 (package
6414 (name "python-zope-proxy")
6415 (version "4.1.6")
6416 (source
6417 (origin
6418 (method url-fetch)
6419 (uri (string-append "https://pypi.python.org/packages/source/z"
6420 "/zope.proxy/zope.proxy-" version ".tar.gz"))
6421 (sha256
6422 (base32
6423 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
6424 (build-system python-build-system)
6425 (propagated-inputs
6426 `(("python-zope-interface" ,python-zope-interface)))
6427 (home-page "http://pypi.python.org/pypi/zope.proxy")
6428 (synopsis "Generic, transparent proxies")
6429 (description "Zope.proxy provides generic, transparent proxies for Python.
6430 Proxies are special objects which serve as mostly-transparent wrappers around
6431 another object, intervening in the apparent behavior of the wrapped object
6432 only when necessary to apply the policy (e.g., access checking, location
6433 brokering, etc.) for which the proxy is responsible.")
6434 (license zpl2.1)))
6435
6436 (define-public python2-zope-proxy
6437 (package-with-python2 python-zope-proxy))
6438
6439 (define-public python-zope-location
6440 (package
6441 (name "python-zope-location")
6442 (version "4.0.3")
6443 (source
6444 (origin
6445 (method url-fetch)
6446 (uri (string-append "https://pypi.python.org/packages/source/z"
6447 "/zope.location/zope.location-" version ".tar.gz"))
6448 (sha256
6449 (base32
6450 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
6451 (build-system python-build-system)
6452 (native-inputs
6453 `(("python-zope-proxy" ,python-zope-proxy)
6454 ("python-zope-schema" ,python-zope-schema)))
6455 (home-page "http://pypi.python.org/pypi/zope.location/")
6456 (synopsis "Zope location library")
6457 (description "Zope.location implements the concept of \"locations\" in
6458 Zope3, which are are special objects that have a structural location.")
6459 (license zpl2.1)))
6460
6461 (define-public python2-zope-location
6462 (package-with-python2 python-zope-location))
6463
6464 (define-public python-zope-security
6465 (package
6466 (name "python-zope-security")
6467 (version "4.0.3")
6468 (source
6469 (origin
6470 (method url-fetch)
6471 (uri (string-append "https://pypi.python.org/packages/source/z"
6472 "/zope.security/zope.security-" version ".tar.gz"))
6473 (sha256
6474 (base32
6475 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
6476 (build-system python-build-system)
6477 (propagated-inputs
6478 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6479 ("python-zope-component" ,python-zope-component)
6480 ("python-zope-location" ,python-zope-location)
6481 ("python-zope-proxy" ,python-zope-proxy)
6482 ("python-zope-schema" ,python-zope-schema)
6483 ("python-zope-testrunner" ,python-zope-testrunner)
6484 ("python-zope-testing" ,python-zope-testing)))
6485 (home-page "http://pypi.python.org/pypi/zope.security")
6486 (synopsis "Zope security framework")
6487 (description "Zope.security provides a generic mechanism to implement
6488 security policies on Python objects.")
6489 (license zpl2.1)))
6490
6491 (define-public python2-zope-security
6492 (let ((zope-security (package-with-python2 python-zope-security)))
6493 (package (inherit zope-security)
6494 (propagated-inputs
6495 `(("python2-zope-testrunner" ,python2-zope-testrunner)
6496 ,@(alist-delete
6497 "python-zope-testrunner"
6498 (package-propagated-inputs zope-security)))))))
6499
6500 (define-public python-zope-component
6501 (package
6502 (name "python-zope-component")
6503 (version "4.2.2")
6504 (source
6505 (origin
6506 (method url-fetch)
6507 (uri (string-append "https://pypi.python.org/packages/source/z"
6508 "/zope.component/zope.component-" version ".tar.gz"))
6509 (sha256
6510 (base32
6511 "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
6512 (build-system python-build-system)
6513 (arguments
6514 ;; Skip tests due to circular dependency with python-zope-security.
6515 '(#:tests? #f))
6516 (native-inputs
6517 `(("python-zope-testing" ,python-zope-testing)))
6518 (propagated-inputs
6519 `(("python-zope-event" ,python-zope-event)
6520 ("python-zope-interface" ,python-zope-interface)
6521 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6522 ("python-zope-configuration" ,python-zope-configuration)))
6523 (home-page "https://github.com/zopefoundation/zope.component")
6524 (synopsis "Zope Component Architecture")
6525 (description "Zope.component represents the core of the Zope Component
6526 Architecture. Together with the zope.interface package, it provides
6527 facilities for defining, registering and looking up components.")
6528 (license zpl2.1)))
6529
6530 (define-public python2-zope-component
6531 (package-with-python2 python-zope-component))
6532
6533 (define-public python2-pythondialog
6534 (package
6535 (name "python2-pythondialog")
6536 (version "3.3.0")
6537 (source
6538 (origin
6539 (method url-fetch)
6540 (uri (string-append "https://pypi.python.org/packages/source/p/"
6541 "python2-pythondialog/python2-pythondialog-"
6542 version ".tar.gz"))
6543 (sha256
6544 (base32
6545 "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry"))))
6546 (build-system python-build-system)
6547 (arguments
6548 `(#:phases
6549 (modify-phases %standard-phases
6550 (add-after 'unpack 'patch-path
6551 (lambda* (#:key inputs #:allow-other-keys)
6552 (let* ((dialog (assoc-ref inputs "dialog")))
6553 ;; Since this library really wants to grovel the search path, we
6554 ;; must hardcode dialog's store path into it.
6555 (substitute* "dialog.py"
6556 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
6557 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
6558 #t))))
6559 #:python ,python-2
6560 #:tests? #f)) ; no test suite
6561 (propagated-inputs
6562 `(("dialog" ,dialog)))
6563 (home-page "http://pythondialog.sourceforge.net/")
6564 (synopsis "Python interface to the UNIX dialog utility")
6565 (description "A Python wrapper for the dialog utility. Its purpose is to
6566 provide an easy to use, pythonic and comprehensive Python interface to dialog.
6567 This allows one to make simple text-mode user interfaces on Unix-like systems")
6568 (license lgpl2.1)))
6569
6570 (define-public python-pyrfc3339
6571 (package
6572 (name "python-pyrfc3339")
6573 (version "1.0")
6574 (source
6575 (origin
6576 (method url-fetch)
6577 (uri (pypi-uri "pyRFC3339" version))
6578 (sha256
6579 (base32
6580 "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
6581 (build-system python-build-system)
6582 (propagated-inputs
6583 `(("python-pytz" ,python-pytz)))
6584 (native-inputs
6585 `(("python-nose" ,python-nose)
6586 ("python-setuptools" ,python-setuptools)))
6587 (home-page "https://github.com/kurtraschke/pyRFC3339")
6588 (synopsis "Python timestamp library")
6589 (description "Python library for generating and parsing RFC 3339-compliant
6590 timestamps.")
6591 (license license:expat)))
6592
6593 (define-public python2-pyrfc3339
6594 (package-with-python2 python-pyrfc3339))
6595
6596 (define-public python-werkzeug
6597 (package
6598 (name "python-werkzeug")
6599 (version "0.11.2")
6600 (source
6601 (origin
6602 (method url-fetch)
6603 (uri (string-append "https://pypi.python.org/packages/source/W/Werkzeug"
6604 "/Werkzeug-" version ".tar.gz"))
6605 (file-name (string-append name "-" version ".tar.gz"))
6606 (sha256
6607 (base32
6608 "1gzwn1lkl90f3l1nzzxr7vjhm21qk8f837i8rvny5a209fcrhkzb"))))
6609 (build-system python-build-system)
6610 (native-inputs
6611 `(("python-pytest" ,python-pytest)))
6612 (home-page "http://werkzeug.pocoo.org/")
6613 (synopsis "Utilities for WSGI applications")
6614 (description "One of the most advanced WSGI utility modules. It includes a
6615 powerful debugger, full-featured request and response objects, HTTP utilities to
6616 handle entity tags, cache control headers, HTTP dates, cookie handling, file
6617 uploads, a powerful URL routing system and a bunch of community-contributed
6618 addon modules.")
6619 (license x11)))
6620
6621 (define-public python2-werkzeug
6622 (package-with-python2 python-werkzeug))
6623
6624 (define-public python-configobj
6625 (package
6626 (name "python-configobj")
6627 (version "5.0.6")
6628 (source (origin
6629 (method url-fetch)
6630 (uri (string-append
6631 "https://pypi.python.org/packages/source/c/configobj/"
6632 "configobj-" version ".tar.gz"))
6633 (sha256
6634 (base32
6635 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
6636 ;; Patch setup.py so it looks for python-setuptools, which is
6637 ;; required to parse the keyword 'install_requires' in setup.py.
6638 (patches (list (search-patch "python-configobj-setuptools.patch")))))
6639 (build-system python-build-system)
6640 (native-inputs
6641 `(("python-setuptools" ,python-setuptools)
6642 ("python-six" ,python-six)))
6643 (synopsis "Config file reading, writing and validation")
6644 (description "ConfigObj is a simple but powerful config file reader and
6645 writer: an ini file round tripper. Its main feature is that it is very easy to
6646 use, with a straightforward programmer’s interface and a simple syntax for
6647 config files.")
6648 (home-page "https://github.com/DiffSK/configobj")
6649 (license bsd-3)))
6650
6651 (define-public python2-configobj
6652 (package-with-python2 python-configobj))
6653
6654 (define-public python-configargparse
6655 (package
6656 (name "python-configargparse")
6657 (version "0.10.0")
6658 (source (origin
6659 (method url-fetch)
6660 (uri (string-append
6661 "https://pypi.python.org/packages/source/C/ConfigArgParse/"
6662 "ConfigArgParse-" version ".tar.gz"))
6663 (sha256
6664 (base32
6665 "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
6666 (build-system python-build-system)
6667 (arguments
6668 ;; FIXME: Bug in test suite filed upstream:
6669 ;; https://github.com/bw2/ConfigArgParse/issues/32
6670 '(#:tests? #f))
6671 (synopsis "Replacement for argparse")
6672 (description "A drop-in replacement for argparse that allows options to also
6673 be set via config files and/or environment variables.")
6674 (home-page "https://github.com/bw2/ConfigArgParse")
6675 (license license:expat)))
6676
6677 (define-public python2-configargparse
6678 (package-with-python2 python-configargparse))
6679
6680 (define-public python-ndg-httpsclient
6681 (package
6682 (name "python-ndg-httpsclient")
6683 (version "0.4.0")
6684 (source (origin
6685 (method url-fetch)
6686 (uri (string-append
6687 "https://pypi.python.org/packages/source/n/ndg-httpsclient/"
6688 "ndg_httpsclient-" version ".tar.gz"))
6689 (sha256
6690 (base32
6691 "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
6692 (build-system python-build-system)
6693 (propagated-inputs
6694 `(("python-pyopenssl" ,python-pyopenssl)))
6695 (synopsis "HTTPS support for Python's httplib and urllib2")
6696 (description "This is a HTTPS client implementation for httplib and urllib2
6697 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
6698 over the default provided with Python and importantly enables full verification
6699 of the SSL peer.")
6700 (home-page "https://github.com/cedadev/ndg_httpsclient/")
6701 (license bsd-3)))
6702
6703 ;; python2-openssl requires special care, so package-with-python2 is
6704 ;; insufficient.
6705 (define-public python2-ndg-httpsclient
6706 (package (inherit python-ndg-httpsclient)
6707 (name "python2-ndg-httpsclient")
6708 (arguments `(#:python ,python-2))
6709 (propagated-inputs
6710 `(("python2-pyopenssl" ,python2-pyopenssl)))))
6711
6712 (define-public python-contextlib2
6713 (package
6714 (name "python-contextlib2")
6715 (version "0.4.0")
6716 (source
6717 (origin
6718 (method url-fetch)
6719 (uri (pypi-uri "contextlib2" version))
6720 (sha256
6721 (base32
6722 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
6723 (build-system python-build-system)
6724 (arguments
6725 `(#:phases
6726 (modify-phases %standard-phases
6727 (replace 'check
6728 (lambda _ (zero?
6729 (system*
6730 "python" "test_contextlib2.py" "-v")))))))
6731 (home-page "http://contextlib2.readthedocs.org/")
6732 (synopsis "Tools for decorators and context managers")
6733 (description "This module is primarily a backport of the Python
6734 3.2 contextlib to earlier Python versions. Like contextlib, it
6735 provides utilities for common tasks involving decorators and context
6736 managers. It also contains additional features that are not part of
6737 the standard library.")
6738 (license psfl)))
6739
6740 (define-public python2-contextlib2
6741 (package-with-python2 python-contextlib2))
6742
6743 (define-public python-texttable
6744 (package
6745 (name "python-texttable")
6746 (version "0.8.4")
6747 (source
6748 (origin
6749 (method url-fetch)
6750 (uri (pypi-uri "texttable" version))
6751 (sha256
6752 (base32
6753 "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
6754 (build-system python-build-system)
6755 (arguments '(#:tests? #f)) ; no tests
6756 (home-page "https://github.com/foutaise/texttable/")
6757 (synopsis "Python module for creating simple ASCII tables")
6758 (description "Texttable is a Python module for creating simple ASCII
6759 tables.")
6760 (license lgpl2.1+)))
6761
6762 (define-public python2-texttable
6763 (package-with-python2 python-texttable))
6764
6765 (define-public python-websocket-client
6766 (package
6767 (name "python-websocket-client")
6768 (version "0.34.0")
6769 (source
6770 (origin
6771 (method url-fetch)
6772 (uri (string-append "https://pypi.python.org/packages/source/w"
6773 "/websocket-client/websocket_client-"
6774 version ".tar.gz"))
6775 (sha256
6776 (base32
6777 "1prdx6d49f1cff17kzj15bnz09palfdgc1m5dkq9jd4mr90n4ak8"))))
6778 (build-system python-build-system)
6779 (native-inputs
6780 `(("python-six" ,python-six))) ; for tests
6781 (inputs
6782 `(("python-setuptools" ,python-setuptools)))
6783 (home-page "https://github.com/liris/websocket-client")
6784 (synopsis "WebSocket client for Python")
6785 (description "The Websocket-client module provides the low level APIs for
6786 WebSocket usage in Python programs.")
6787 (license lgpl2.1+)))
6788
6789 (define-public python2-websocket-client
6790 (package-with-python2 python-websocket-client))
6791
6792 (define-public python-atomicwrites
6793 (package
6794 (name "python-atomicwrites")
6795 (version "1.0.0")
6796 (source (origin
6797 (method url-fetch)
6798 (uri (pypi-uri "atomicwrites" version))
6799 (sha256
6800 (base32
6801 "019fa4771q7fb1167yfbh6msdzcqini6v7i59rmf72mzdjd7x5qv"))))
6802 (build-system python-build-system)
6803 (synopsis "Atomic file writes in Python")
6804 (description "Library for atomic file writes using platform dependent tools
6805 for atomic filesystem operations.")
6806 (home-page "https://github.com/untitaker/python-atomicwrites")
6807 (license license:expat)
6808 (properties `((python2-variant . ,(delay python2-atomicwrites))))))
6809
6810 (define-public python2-atomicwrites
6811 (package (inherit (package-with-python2
6812 (strip-python2-variant python-atomicwrites)))
6813 (native-inputs
6814 `(("python2-setuptools" ,python2-setuptools)))))
6815
6816 (define-public python-requests-toolbelt
6817 (package
6818 (name "python-requests-toolbelt")
6819 (version "0.6.0")
6820 (source (origin
6821 (method url-fetch)
6822 (uri (pypi-uri "requests-toolbelt" version))
6823 (sha256
6824 (base32
6825 "07slish560haspn0hpwgy2izhk2snqq06s6acp8xzmhhz079qknc"))))
6826 (build-system python-build-system)
6827 (propagated-inputs
6828 `(("python-requests" ,python-requests)))
6829 (synopsis "Extensions to python-requests")
6830 (description "This is a toolbelt of useful classes and functions to be used
6831 with python-requests.")
6832 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
6833 (license asl2.0)))
6834
6835 (define-public python-click-threading
6836 (package
6837 (name "python-click-threading")
6838 (version "0.1.2")
6839 (source (origin
6840 (method url-fetch)
6841 (uri (pypi-uri "click-threading" version))
6842 (sha256
6843 (base32
6844 "0jmrv4334lfxa2ss53c06dafdwqbk1pb3ihd26izn5igw1bm8145"))))
6845 (build-system python-build-system)
6846 (propagated-inputs
6847 `(("python-click" ,python-click)))
6848 (synopsis "Utilities for multithreading in Click")
6849 (description "This package provides utilities for multithreading in Click
6850 applications.")
6851 (home-page "https://github.com/click-contrib/click-threading")
6852 (license license:expat)))
6853
6854 (define-public python-click-log
6855 (package
6856 (name "python-click-log")
6857 (version "0.1.3")
6858 (source (origin
6859 (method url-fetch)
6860 (uri (pypi-uri "click-log" version))
6861 (sha256
6862 (base32
6863 "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
6864 (build-system python-build-system)
6865 (propagated-inputs
6866 `(("python-click" ,python-click)))
6867 (synopsis "Logging for click applications")
6868 (description "This package provides a Python library for logging Click
6869 applications.")
6870 (home-page "https://github.com/click-contrib/click-log")
6871 (license license:expat)))
6872
6873 (define-public python-apipkg
6874 (package
6875 (name "python-apipkg")
6876 (version "1.4")
6877 (source (origin
6878 (method url-fetch)
6879 (uri (pypi-uri "apipkg" version))
6880 (sha256
6881 (base32
6882 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
6883 (build-system python-build-system)
6884 (propagated-inputs
6885 `(("python-pytest" ,python-pytest)))
6886 (synopsis "Namespace control and lazy-import mechanism")
6887 (description "With apipkg you can control the exported namespace of a Python
6888 package and greatly reduce the number of imports for your users. It is a small
6889 pure Python module that works on virtually all Python versions.")
6890 (home-page "https://bitbucket.org/hpk42/apipkg")
6891 (license license:expat)
6892 (properties `((python2-variant . ,(delay python2-apipkg))))))
6893
6894 (define-public python2-apipkg
6895 (package
6896 (inherit (package-with-python2
6897 (strip-python2-variant python-apipkg)))
6898 (native-inputs
6899 `(("python2-setuptools" ,python2-setuptools)))))
6900
6901 (define-public python-execnet
6902 (package
6903 (name "python-execnet")
6904 (version "1.4.1")
6905 (source (origin
6906 (method url-fetch)
6907 (uri (pypi-uri "execnet" version))
6908 (sha256
6909 (base32
6910 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
6911 (build-system python-build-system)
6912 (native-inputs
6913 `(("python-setuptools-scm" ,python-setuptools-scm)))
6914 (propagated-inputs
6915 `(("python-apipkg" ,python-apipkg)))
6916 (synopsis "Rapid multi-Python deployment")
6917 (description "Execnet provides a share-nothing model with
6918 channel-send/receive communication for distributing execution across many
6919 Python interpreters across version, platform and network barriers. It has a
6920 minimal and fast API targetting the following uses:
6921 @enumerate
6922 @item distribute tasks to (many) local or remote CPUs
6923 @item write and deploy hybrid multi-process applications
6924 @item write scripts to administer multiple environments
6925 @end enumerate")
6926 (home-page "http://codespeak.net/execnet/")
6927 (license license:expat)
6928 (properties `((python2-variant . ,(delay python2-execnet))))))
6929
6930 (define-public python2-execnet
6931 (let ((execnet (package-with-python2
6932 (strip-python2-variant python-execnet))))
6933 (package
6934 (inherit execnet)
6935 (native-inputs
6936 `(("python2-setuptools" ,python2-setuptools)
6937 ,@(package-native-inputs execnet))))))
6938
6939 ;;; The software provided by this package was integrated into pytest 2.8.
6940 (define-public python-pytest-cache
6941 (package
6942 (name "python-pytest-cache")
6943 (version "1.0")
6944 (source (origin
6945 (method url-fetch)
6946 (uri (pypi-uri "pytest-cache" version))
6947 (sha256
6948 (base32
6949 "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
6950 (build-system python-build-system)
6951 (propagated-inputs
6952 `(("python-execnet" ,python-execnet)))
6953 (synopsis "Py.test plugin with mechanisms for caching across test runs")
6954 (description "The pytest-cache plugin provides tools to rerun failures from
6955 the last py.test invocation.")
6956 (home-page "https://bitbucket.org/hpk42/pytest-cache/")
6957 (license license:expat)))
6958
6959 (define-public python-pytest-localserver
6960 (package
6961 (name "python-pytest-localserver")
6962 (version "0.3.5")
6963 (source (origin
6964 (method url-fetch)
6965 (uri (pypi-uri "pytest-localserver" version))
6966 (sha256
6967 (base32
6968 "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
6969 (build-system python-build-system)
6970 (arguments
6971 `(#:phases (modify-phases %standard-phases
6972 (replace 'check
6973 (lambda _
6974 (zero? (system* "py.test" "--genscript=runtests.py"))
6975 (zero? (system* "py.test")))))))
6976 (native-inputs
6977 `(("unzip" ,unzip)))
6978 (propagated-inputs
6979 `(("python-pytest" ,python-pytest)
6980 ("python-requests" ,python-requests)
6981 ("python-six" ,python-six)
6982 ("python-werkzeug" ,python-werkzeug)))
6983 (synopsis "Py.test plugin to test server connections locally")
6984 (description "Pytest-localserver is a plugin for the pytest testing
6985 framework which enables you to test server connections locally.")
6986 (home-page "https://pypi.python.org/pypi/pytest-localserver")
6987 (license license:expat)))
6988
6989 (define-public python-wsgi-intercept
6990 (package
6991 (name "python-wsgi-intercept")
6992 (version "1.1.2")
6993 (source (origin
6994 (method url-fetch)
6995 (uri (pypi-uri "wsgi_intercept" version))
6996 (sha256
6997 (base32
6998 "14ajy415ch5d0dnspg4b592p66wlgzah7ay218flp13517fp49zl"))))
6999 (build-system python-build-system)
7000 (native-inputs
7001 `(("python-pytest" ,python-pytest)
7002 ("python-six" ,python-six)))
7003 (propagated-inputs
7004 `(("python-httplib2" ,python-httplib2)
7005 ("python-requests" ,python-requests)))
7006 (synopsis "Puts a WSGI application in place of a real URI for testing")
7007 (description "Wsgi_intercept installs a WSGI application in place of a real
7008 URI for testing. Testing a WSGI application normally involves starting a
7009 server at a local host and port, then pointing your test code to that address.
7010 Instead, this library lets you intercept calls to any specific host/port
7011 combination and redirect them into a WSGI application importable by your test
7012 program. Thus, you can avoid spawning multiple processes or threads to test
7013 your Web app.")
7014 (home-page "https://github.com/cdent/wsgi-intercept")
7015 (license license:expat)))
7016
7017 (define-public python-pytest-xprocess
7018 (package
7019 (name "python-pytest-xprocess")
7020 (version "0.9.1")
7021 (source (origin
7022 (method url-fetch)
7023 (uri (pypi-uri "pytest-xprocess" version))
7024 (sha256
7025 (base32
7026 "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
7027 (build-system python-build-system)
7028 (propagated-inputs
7029 `(("python-pytest" ,python-pytest)
7030 ("python-pytest-cache" ,python-pytest-cache)
7031 ("python-psutil" ,python-psutil)))
7032 (synopsis "Pytest plugin to manage external processes across test runs")
7033 (description "Pytest-xprocess is an experimental py.test plugin for managing
7034 processes across test runs.")
7035 (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
7036 (license license:expat)))
7037
7038 (define-public python-icalendar
7039 (package
7040 (name "python-icalendar")
7041 (version "3.9.1")
7042 (source (origin
7043 (method url-fetch)
7044 (uri (pypi-uri "icalendar" version))
7045 (sha256
7046 (base32
7047 "0fhrczdj3jxy5bvswphp3vys7vwv5c9bpwg7asykqwa3z6253q6q"))))
7048 (build-system python-build-system)
7049 (propagated-inputs
7050 `(("python-dateutil-2" ,python-dateutil-2)
7051 ("python-pytz" ,python-pytz)))
7052 (synopsis "Python library for parsing iCalendar files")
7053 (description "The icalendar package is a parser/generator of iCalendar
7054 files for use with Python.")
7055 (home-page "https://github.com/collective/icalendar")
7056 (license bsd-2)))
7057
7058 (define-public python-sphinxcontrib-newsfeed
7059 (package
7060 (name "python-sphinxcontrib-newsfeed")
7061 (version "0.1.4")
7062 (source (origin
7063 (method url-fetch)
7064 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
7065 (sha256
7066 (base32
7067 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
7068 (build-system python-build-system)
7069 (propagated-inputs
7070 `(("python-docutils" ,python-docutils)
7071 ("python-sphinx" ,python-sphinx)))
7072 (synopsis "News Feed extension for Sphinx")
7073 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
7074 Blog, News or Announcements section to a Sphinx website.")
7075 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
7076 (license bsd-2)))
7077
7078 (define-public python-args
7079 (package
7080 (name "python-args")
7081 (version "0.1.0")
7082 (source (origin
7083 (method url-fetch)
7084 (uri (pypi-uri "args" version))
7085 (sha256
7086 (base32
7087 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
7088 (build-system python-build-system)
7089 (inputs
7090 `(("python-setuptools" ,python-setuptools)))
7091 (home-page "https://github.com/kennethreitz/args")
7092 (synopsis "Command-line argument parser")
7093 (description
7094 "This library provides a Python module to parse command-line arguments.")
7095 (license bsd-3)))
7096
7097 (define-public python2-args
7098 (package-with-python2 python-args))
7099
7100 (define-public python-clint
7101 (package
7102 (name "python-clint")
7103 (version "0.5.1")
7104 (source (origin
7105 (method url-fetch)
7106 (uri (pypi-uri "clint" version))
7107 (sha256
7108 (base32
7109 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
7110 (build-system python-build-system)
7111 (inputs
7112 `(("python-args" ,python-args)
7113 ("python-setuptools" ,python-setuptools)))
7114 (home-page "https://github.com/kennethreitz/clint")
7115 (synopsis "Command-line interface tools")
7116 (description
7117 "Clint is a Python module filled with a set of tools for developing
7118 command-line applications, including tools for colored and indented
7119 output, progress bar display, and pipes.")
7120 (license isc)))
7121
7122 (define-public python2-clint
7123 (package-with-python2 python-clint))
7124
7125 (define-public python-astor
7126 (package
7127 (name "python-astor")
7128 (version "0.5")
7129 (source (origin
7130 (method url-fetch)
7131 (uri (pypi-uri "astor" version))
7132 (sha256
7133 (base32
7134 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
7135 (build-system python-build-system)
7136 (inputs
7137 `(("python-setuptools" ,python-setuptools)))
7138 (home-page "https://github.com/berkerpeksag/astor")
7139 (synopsis "Read and write Python ASTs")
7140 (description
7141 "Astor is designed to allow easy manipulation of Python source via the
7142 Abstract Syntax Tree.")
7143 (license bsd-3)))
7144
7145 (define-public python2-astor
7146 (package-with-python2 python-astor))
7147
7148 (define-public python-rply
7149 (package
7150 (name "python-rply")
7151 (version "0.7.4")
7152 (source (origin
7153 (method url-fetch)
7154 (uri (pypi-uri "rply" version))
7155 (sha256
7156 (base32
7157 "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
7158 (build-system python-build-system)
7159 (inputs
7160 `(("python-appdirs" ,python-appdirs)
7161 ("python-setuptools" ,python-setuptools)))
7162 (home-page "https://github.com/alex/rply")
7163 (synopsis "Parser generator for Python")
7164 (description
7165 "This package provides a pure Python based parser generator, that also
7166 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
7167 with a new public API, and RPython support.")
7168 (license bsd-3)))
7169
7170 (define-public python2-rply
7171 (package-with-python2 python-rply))
7172
7173 (define-public python-hy
7174 (package
7175 (name "python-hy")
7176 (version "0.11.1")
7177 (source (origin
7178 (method url-fetch)
7179 (uri (pypi-uri "hy" version))
7180 (sha256
7181 (base32
7182 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
7183 (build-system python-build-system)
7184 (inputs
7185 `(("python-astor" ,python-astor)
7186 ("python-clint" ,python-clint)
7187 ("python-rply" ,python-rply)
7188 ("python-setuptools" ,python-setuptools)))
7189 (home-page "http://hylang.org/")
7190 (synopsis "Lisp frontend to Python")
7191 (description
7192 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
7193 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
7194 Python at your fingertips, in Lisp form.")
7195 (license license:expat)))
7196
7197 (define-public python2-hy
7198 (package-with-python2 python-hy))
7199
7200 (define-public python-rauth
7201 (package
7202 (name "python-rauth")
7203 (version "0.7.2")
7204 (source
7205 (origin
7206 (method url-fetch)
7207 (uri (pypi-uri "rauth" version))
7208 (sha256
7209 (base32
7210 "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
7211 (build-system python-build-system)
7212 (arguments
7213 `(#:test-target "check"))
7214 (native-inputs
7215 `(("python-setuptools" ,python-setuptools)))
7216 (propagated-inputs
7217 `(("python-requests" ,python-requests)))
7218 (home-page "https://github.com/litl/rauth")
7219 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
7220 (description
7221 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
7222 provides service wrappers for convenient connection initialization and
7223 authenticated session objects providing things like keep-alive.")
7224 (license license:expat)))
7225
7226 (define-public python2-rauth
7227 (let ((rauth (package-with-python2 python-rauth)))
7228 (package (inherit rauth)
7229 (propagated-inputs `(("python2-requests" ,python2-requests)))
7230 (native-inputs
7231 `(("python2-unittest2" ,python2-unittest2)
7232 ,@(package-native-inputs rauth))))))
7233
7234 (define-public python2-functools32
7235 (package
7236 (name "python2-functools32")
7237 (version "3.2.3-2")
7238 (source
7239 (origin
7240 (method url-fetch)
7241 (uri (pypi-uri "functools32" version))
7242 (sha256
7243 (base32
7244 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
7245 (build-system python-build-system)
7246 (arguments
7247 `(#:python ,python-2
7248 #:tests? #f)) ; no test target
7249 (native-inputs
7250 `(("python2-setuptools" ,python2-setuptools)))
7251 (home-page "https://github.com/MiCHiLU/python-functools32")
7252 (synopsis
7253 "Backport of the functools module from Python 3.2.3")
7254 (description
7255 "This package is a backport of the @code{functools} module from Python
7256 3.2.3 for use with older versions of Python and PyPy.")
7257 (license license:expat)))
7258
7259 (define-public python-futures
7260 (package
7261 (name "python-futures")
7262 (version "3.0.3")
7263 (source
7264 (origin
7265 (method url-fetch)
7266 (uri (pypi-uri "futures" version))
7267 (sha256
7268 (base32
7269 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
7270 (build-system python-build-system)
7271 (native-inputs
7272 `(("python-setuptools" ,python-setuptools)))
7273 (home-page "https://github.com/agronholm/pythonfutures")
7274 (synopsis
7275 "Backport of the concurrent.futures package from Python 3.2")
7276 (description
7277 "The concurrent.futures module provides a high-level interface for
7278 asynchronously executing callables. This package backports the
7279 concurrent.futures package from Python 3.2")
7280 (license bsd-3)))
7281
7282 (define-public python2-futures
7283 (package-with-python2 python-futures))
7284
7285 (define-public python-urllib3
7286 (package
7287 (name "python-urllib3")
7288 (version "1.13.1")
7289 (source
7290 (origin
7291 (method url-fetch)
7292 (uri (pypi-uri "urllib3" version))
7293 (sha256
7294 (base32
7295 "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf"))))
7296 (build-system python-build-system)
7297 (arguments `(#:tests? #f))
7298 (native-inputs
7299 `(("python-setuptools" ,python-setuptools)
7300 ;; some packages for tests
7301 ("python-nose" ,python-nose)
7302 ("python-mock" ,python-mock)
7303 ("python-tornado" ,python-tornado)))
7304 (propagated-inputs
7305 `(;; packages for https security
7306 ("python-certifi" ,python-certifi)
7307 ("python-ndg-httpsclient" ,python-ndg-httpsclient)
7308 ("python-pyasn1" ,python-pyasn1)
7309 ("python-pyopenssl" ,python-pyopenssl)))
7310 (home-page "http://urllib3.readthedocs.org/")
7311 (synopsis "HTTP library with thread-safe connection pooling")
7312 (description
7313 "Urllib3 supports features left out of urllib and urllib2 libraries. It
7314 can reuse the same socket connection for multiple requests, it can POST files,
7315 supports url redirection and retries, and also gzip and deflate decoding.")
7316 (license license:expat)))
7317
7318 (define-public python2-urllib3
7319 (package-with-python2 python-urllib3))
7320
7321 (define-public python-colorama
7322 (package
7323 (name "python-colorama")
7324 (version "0.3.3")
7325 (source
7326 (origin
7327 (method url-fetch)
7328 (uri (pypi-uri "colorama" version))
7329 (sha256
7330 (base32
7331 "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
7332 (build-system python-build-system)
7333 (inputs
7334 `(("python-setuptools" ,python-setuptools)))
7335 (synopsis "colored terminal text rendering for Python")
7336 (description "Colorama is a Python library for rendering colored terminal
7337 text.")
7338 (home-page "https://pypi.python.org/pypi/colorama")
7339 (license bsd-3)))
7340
7341 (define-public python2-colorama
7342 (package-with-python2 python-colorama))
7343
7344 (define-public python-rsa
7345 (package
7346 (name "python-rsa")
7347 (version "3.2")
7348 (source
7349 (origin
7350 (method url-fetch)
7351 (uri (pypi-uri "rsa" version))
7352 (sha256
7353 (base32
7354 "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh"))))
7355 (build-system python-build-system)
7356 (inputs
7357 `(("python-pyasn1" ,python-pyasn1)
7358 ("python-setuptools" ,python-setuptools)))
7359 (synopsis "Pure-Python RSA implementation")
7360 (description "Python-RSA is a pure-Python RSA implementation. It supports
7361 encryption and decryption, signing and verifying signatures, and key
7362 generation according to PKCS#1 version 1.5. It can be used as a Python
7363 library as well as on the command line.")
7364 (home-page "http://stuvel.eu/rsa")
7365 (license asl2.0)))
7366
7367 (define-public python2-rsa
7368 (package-with-python2 python-rsa))
7369
7370 (define-public python-pluggy
7371 (package
7372 (name "python-pluggy")
7373 (version "0.3.1")
7374 (source
7375 (origin
7376 (method url-fetch)
7377 (uri (pypi-uri "pluggy" version))
7378 (sha256
7379 (base32
7380 "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
7381 (build-system python-build-system)
7382 (inputs
7383 `(("python-setuptools" ,python-setuptools)))
7384 (synopsis "Plugin and hook calling mechanism for Python")
7385 (description "Pluggy is an extraction of the plugin manager as used by
7386 Pytest but stripped of Pytest specific details.")
7387 (home-page "https://pypi.python.org/pypi/pluggy")
7388 (license license:expat)))
7389
7390 (define-public python2-pluggy
7391 (package-with-python2 python-pluggy))
7392
7393 (define-public python-tox
7394 (package
7395 (name "python-tox")
7396 (version "2.3.1")
7397 (source
7398 (origin
7399 (method url-fetch)
7400 (uri (pypi-uri "tox" version))
7401 (sha256
7402 (base32
7403 "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
7404 (build-system python-build-system)
7405 (arguments
7406 ;; FIXME: Tests require a newer version of pytest, but upgrading our
7407 ;; pytest breaks other packages.
7408 '(#:tests? #f))
7409 (inputs
7410 `(("python-setuptools" ,python-setuptools)
7411 ("python-pluggy" ,python-pluggy)
7412 ("python-py" ,python-py)
7413 ("python-virtualenv" ,python-virtualenv)
7414 ("python-pytest" ,python-pytest)))
7415 (home-page "http://tox.testrun.org/")
7416 (synopsis "Virtualenv-based automation of test activities")
7417 (description "Tox is a generic virtualenv management and test command line
7418 tool. It can be used to check that a package installs correctly with
7419 different Python versions and interpreters, or run tests in each type of
7420 supported environment, or act as a frontend to continuous integration
7421 servers.")
7422 (license license:expat)))
7423
7424 (define-public python2-tox
7425 (package-with-python2 python-tox))
7426
7427 (define-public python-jmespath
7428 (package
7429 (name "python-jmespath")
7430 (version "0.9.0")
7431 (source
7432 (origin
7433 (method url-fetch)
7434 (uri (pypi-uri "jmespath" version))
7435 (sha256
7436 (base32
7437 "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
7438 (build-system python-build-system)
7439 (inputs
7440 `(("python-setuptools" ,python-setuptools)))
7441 (synopsis "JSON Matching Expressions")
7442 (description "JMESPath (pronounced “james path”) is a Python library that
7443 allows one to declaratively specify how to extract elements from a JSON
7444 document.")
7445 (home-page "https://github.com/jmespath/jmespath.py")
7446 (license license:expat)))
7447
7448 (define-public python2-jmespath
7449 (package-with-python2 python-jmespath))
7450
7451 (define-public python-botocore
7452 (package
7453 (name "python-botocore")
7454 (version "1.3.17")
7455 (source
7456 (origin
7457 (method url-fetch)
7458 (uri (pypi-uri "botocore" version))
7459 (sha256
7460 (base32
7461 "08vpvdixx1c1lfv6vzjig68bpiir7wfyhzf49ysxgvhbprg5ra0w"))))
7462 (build-system python-build-system)
7463 (inputs
7464 `(("python-dateutil" ,python-dateutil-2)
7465 ("python-docutils" ,python-docutils)
7466 ("python-mock" ,python-mock)
7467 ("python-nose" ,python-nose)
7468 ("python-setuptools" ,python-setuptools)
7469 ("python-tox" ,python-tox)
7470 ("python-wheel" ,python-wheel)
7471 ("python-jmespath" ,python-jmespath)))
7472 (home-page "https://github.com/boto/botocore")
7473 (synopsis "Low-level interface to AWS")
7474 (description "Botocore is a Python library that provides a low-level
7475 interface to the Amazon Web Services (AWS) API.")
7476 (license asl2.0)))
7477
7478 (define-public python2-botocore
7479 (package-with-python2 python-botocore))
7480
7481 (define-public awscli
7482 (package
7483 (name "awscli")
7484 (version "1.9.17")
7485 (source
7486 (origin
7487 (method url-fetch)
7488 (uri (string-append
7489 "https://pypi.python.org/packages/source/a/awscli/awscli-"
7490 version ".tar.gz"))
7491 (sha256
7492 (base32
7493 "1nj7jqvlpq57hfhby1njsbf8303gapa3njc4dramr6p3ffzvfi2i"))))
7494 (build-system python-build-system)
7495 (inputs
7496 `(("python-colorama" ,python-colorama)
7497 ("python-docutils" ,python-docutils)
7498 ("python-mock" ,python-mock)
7499 ("python-nose" ,python-nose)
7500 ("python-rsa" ,python-rsa)
7501 ("python-setuptools" ,python-setuptools)
7502 ("python-sphinx" ,python-sphinx)
7503 ("python-tox" ,python-tox)
7504 ("python-wheel" ,python-wheel)
7505 ("python-botocore" ,python-botocore)))
7506 (home-page "http://aws.amazon.com/cli/")
7507 (synopsis "Command line client for AWS")
7508 (description "AWS CLI provides a unified command line interface to the
7509 Amazon Web Services (AWS) API.")
7510 (license asl2.0)))
7511
7512 (define-public python-hypothesis
7513 (package
7514 (name "python-hypothesis")
7515 (version "3.1.0")
7516 (source (origin
7517 (method url-fetch)
7518 (uri (pypi-uri "hypothesis" version))
7519 (sha256
7520 (base32
7521 "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
7522 (build-system python-build-system)
7523 (propagated-inputs
7524 `(("python-flake8" ,python-flake8)
7525 ("python-pytest" ,python-pytest)))
7526 (synopsis "Library for property based testing")
7527 (description "Hypothesis is a library for testing your Python code against a
7528 much larger range of examples than you would ever want to write by hand. It’s
7529 based on the Haskell library, Quickcheck, and is designed to integrate
7530 seamlessly into your existing Python unit testing work flow.")
7531 (home-page "https://github.com/DRMacIver/hypothesis")
7532 (license mpl2.0)
7533 (properties `((python2-variant . ,(delay python2-hypothesis))))))
7534
7535 (define-public python2-hypothesis
7536 (let ((hypothesis (package-with-python2
7537 (strip-python2-variant python-hypothesis))))
7538 (package (inherit hypothesis)
7539 (native-inputs
7540 `(("python2-enum34" ,python2-enum34)
7541 ("python2-setuptools" ,python2-setuptools))))))
7542
7543 (define-public python-pytest-subtesthack
7544 (package
7545 (name "python-pytest-subtesthack")
7546 (version "0.1.1")
7547 (source (origin
7548 (method url-fetch)
7549 (uri (pypi-uri "pytest-subtesthack" version))
7550 (sha256
7551 (base32
7552 "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
7553 (build-system python-build-system)
7554 (native-inputs
7555 `(;; setuptools required for python-2 variant
7556 ("python-setuptools" ,python-setuptools)))
7557 (propagated-inputs
7558 `(("python-pytest" ,python-pytest)))
7559 (synopsis "Set-up and tear-down fixtures for unit tests")
7560 (description "This plugin allows you to set up and tear down fixtures within
7561 unit test functions that use @code{py.test}. This is useful for using
7562 @command{hypothesis} inside py.test, as @command{hypothesis} will call the test
7563 function multiple times, without setting up or tearing down fixture state as is
7564 normally the case.")
7565 (home-page "https://github.com/untitaker/pytest-subtesthack/")
7566 (license unlicense)))
7567
7568 (define-public python2-pytest-subtesthack
7569 (package-with-python2 python-pytest-subtesthack))
7570
7571 (define-public python2-xdo
7572 (package
7573 (name "python2-xdo")
7574 (version "0.2")
7575 (source (origin
7576 (method url-fetch)
7577 (uri (string-append
7578 "http://http.debian.net/debian/pool/main/p/python-xdo/"
7579 "python-xdo_" version ".orig.tar.gz"))
7580 (sha256
7581 (base32
7582 "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
7583 (build-system python-build-system)
7584 (arguments
7585 `(#:python ,python-2
7586 #:tests? #f)) ; no tests provided
7587 (inputs
7588 `(("xdotool" ,xdotool)
7589 ("libX11" ,libx11)))
7590 (home-page "https://tracker.debian.org/pkg/python-xdo")
7591 (synopsis "Python library for simulating X11 keyboard/mouse input")
7592 (description "Provides bindings to libxdo for manipulating X11 via simulated
7593 input. (Note that this is mostly a legacy library; you may wish to look at
7594 python-xdo for newer bindings.)")
7595 (license bsd-3)))
7596
7597 (define-public python-wtforms
7598 (package
7599 (name "python-wtforms")
7600 (version "2.1")
7601 (source
7602 (origin
7603 (method url-fetch)
7604 (uri (pypi-uri "WTForms" version ".zip"))
7605 (sha256
7606 (base32
7607 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
7608 (build-system python-build-system)
7609 (native-inputs
7610 `(("unzip" ,unzip)))
7611 (home-page "http://wtforms.simplecodes.com/")
7612 (synopsis
7613 "Form validation and rendering library for Python web development")
7614 (description
7615 "WTForms is a flexible forms validation and rendering library
7616 for Python web development. It is very similar to the web form API
7617 available in Django, but is a standalone package.")
7618 (license bsd-3)
7619 (properties `((python2-variant . ,(delay python2-wtforms))))))
7620
7621 (define-public python2-wtforms
7622 (package
7623 (inherit (package-with-python2
7624 (strip-python2-variant python-wtforms)))
7625 (inputs `(("python2-setuptools" ,python2-setuptools)))))
7626
7627 (define-public python-mako
7628 (package
7629 (name "python-mako")
7630 (version "1.0.3")
7631 (source
7632 (origin
7633 (method url-fetch)
7634 (uri (pypi-uri "Mako" version))
7635 (sha256
7636 (base32
7637 "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
7638 (build-system python-build-system)
7639 (native-inputs
7640 `(("python-markupsafe" ,python-markupsafe)
7641 ("python-mock" ,python-mock)
7642 ("python-nose" ,python-nose)))
7643 (home-page "http://www.makotemplates.org/")
7644 (synopsis "Templating language for Python")
7645 (description "Mako is a templating language for Python that compiles
7646 templates into Python modules.")
7647 (license license:expat)
7648 (properties `((python2-variant . ,(delay python2-mako))))))
7649
7650 (define-public python2-mako
7651 (let ((base (package-with-python2
7652 (strip-python2-variant python-mako))))
7653 (package
7654 (inherit base)
7655 (native-inputs
7656 (cons `("python2-setuptools" ,python2-setuptools)
7657 (package-native-inputs base))))))
7658
7659 (define-public python-waitress
7660 (package
7661 (name "python-waitress")
7662 (version "0.8.10")
7663 (source
7664 (origin
7665 (method url-fetch)
7666 (uri (pypi-uri "waitress" version))
7667 (sha256
7668 (base32
7669 "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
7670 (build-system python-build-system)
7671 (home-page "https://github.com/Pylons/waitress")
7672 (synopsis "Waitress WSGI server")
7673 (description "Waitress is meant to be a production-quality pure-Python WSGI
7674 server with very acceptable performance.")
7675 (license zpl2.1)
7676 (properties `((python2-variant . ,(delay python2-waitress))))))
7677
7678 (define-public python2-waitress
7679 (package
7680 (inherit (package-with-python2
7681 (strip-python2-variant python-waitress)))
7682 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
7683
7684 (define-public python-wsgiproxy2
7685 (package
7686 (name "python-wsgiproxy2")
7687 (version "0.4.2")
7688 (source
7689 (origin
7690 (method url-fetch)
7691 (uri (pypi-uri "WSGIProxy2" version ".zip"))
7692 (sha256
7693 (base32
7694 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
7695 (build-system python-build-system)
7696 (native-inputs
7697 `(("unzip" ,unzip)
7698 ("python-nose" ,python-nose)
7699 ("python-coverage" ,python-coverage)))
7700 (propagated-inputs
7701 `(("python-six" ,python-six)
7702 ("python-webob" ,python-webob)))
7703 (home-page
7704 "https://github.com/gawel/WSGIProxy2/")
7705 (synopsis "WSGI Proxy with various http client backends")
7706 (description "WSGI turns HTTP requests into WSGI function calls.
7707 WSGIProxy turns WSGI function calls into HTTP requests.
7708 It also includes code to sign requests and pass private data,
7709 and to spawn subprocesses to handle requests.")
7710 (license license:expat)
7711 (properties `((python2-variant . ,(delay python2-wsgiproxy2))))))
7712
7713 (define-public python2-wsgiproxy2
7714 (let ((wsgiproxy2 (package-with-python2
7715 (strip-python2-variant python-wsgiproxy2))))
7716 (package
7717 (inherit wsgiproxy2)
7718 (inputs `(("python2-setuptools" ,python2-setuptools)
7719 ,@(package-inputs wsgiproxy2))))))
7720
7721 (define-public python-pastedeploy
7722 (package
7723 (name "python-pastedeploy")
7724 (version "1.5.2")
7725 (source
7726 (origin
7727 (method url-fetch)
7728 (uri (pypi-uri "PasteDeploy" version))
7729 (sha256
7730 (base32
7731 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
7732 (build-system python-build-system)
7733 (native-inputs
7734 `(("python-nose" ,python-nose)))
7735 (propagated-inputs
7736 ;; This package uses pkg_resources, part of setuptools, during runtime,
7737 ;; hence why not a native-input.
7738 `(("python-setuptools" ,python-setuptools)))
7739 (home-page "http://pythonpaste.org/deploy/")
7740 (synopsis
7741 "Load, configure, and compose WSGI applications and servers")
7742 (description
7743 "This tool provides code to load WSGI applications and servers from URIs;
7744 these URIs can refer to Python Eggs for INI-style configuration files. Paste
7745 Script provides commands to serve applications based on this configuration
7746 file.")
7747 (license license:expat)))
7748
7749 (define-public python2-pastedeploy
7750 (package-with-python2 python-pastedeploy))
7751
7752 (define-public python-paste
7753 (package
7754 (name "python-paste")
7755 (version "2.0.2")
7756 (source
7757 (origin
7758 (method url-fetch)
7759 (uri (pypi-uri "Paste" version))
7760 (sha256
7761 (base32
7762 "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
7763 (patches (list (search-patch
7764 "python-paste-remove-website-test.patch")
7765 (search-patch
7766 "python-paste-remove-timing-test.patch")))))
7767 (build-system python-build-system)
7768 (native-inputs
7769 `(("python-nose" ,python-nose)))
7770 (propagated-inputs
7771 `(;; Uses pkg_resources provided by setuptools internally.
7772 ("python-setuptools" ,python-setuptools)
7773 ("python-six" ,python-six)))
7774 (arguments
7775 '(;; Tests don't pass on Python 3, but work fine on Python 2.
7776 ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
7777 ;; but is usable enough for the minimal amount it's used in MediaGoblin
7778 ;; still... things should be better by the next Paste release.)
7779 #:tests? #f))
7780 (home-page "http://pythonpaste.org")
7781 (synopsis
7782 "Python web development tools, focusing on WSGI")
7783 (description
7784 "Paste provides a variety of web development tools and middleware which
7785 can be nested together to build web applications. Paste's design closely
7786 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
7787 (license license:expat)
7788 (properties `((python2-variant . ,(delay python2-paste))))))
7789
7790 (define-public python2-paste
7791 (let ((paste (package-with-python2
7792 (strip-python2-variant python-paste))))
7793 (package
7794 (inherit paste)
7795 (arguments
7796 ;; Tests are back for Python 2!
7797 `(#:tests? #t
7798 ,@(package-arguments paste))))))
7799
7800 (define-public python-pastescript
7801 (package
7802 (name "python-pastescript")
7803 (version "2.0.2")
7804 (source
7805 (origin
7806 (method url-fetch)
7807 (uri (pypi-uri "PasteScript" version))
7808 (sha256
7809 (base32
7810 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
7811 (build-system python-build-system)
7812 (native-inputs
7813 `(("python-nose" ,python-nose)))
7814 (propagated-inputs
7815 `(;; Uses pkg_resources provided by setuptools internally.
7816 ("python-setuptools" ,python-setuptools)
7817 ("python-paste" ,python-paste)
7818 ("python-pastedeploy" ,python-pastedeploy)))
7819 (home-page "http://pythonpaste.org/script/")
7820 (arguments
7821 '(;; Unfortunately, this requires the latest unittest2,
7822 ;; but that requires traceback2 which requires linecache2 which requires
7823 ;; unittest2. So we're skipping tests for now.
7824 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
7825 ;; so in theory we could get around this situation somehow.)
7826 #:tests? #f))
7827 (synopsis
7828 "Pluggable command line tool for serving web applications and more")
7829 (description
7830 "PasteScript is a plugin-friendly command line tool which provides a
7831 variety of features, from launching web applications to bootstrapping project
7832 layouts.")
7833 (license license:expat)))
7834
7835 (define-public python2-pastescript
7836 (package-with-python2 python-pastescript))
7837
7838 (define-public python-pyquery
7839 (package
7840 (name "python-pyquery")
7841 (version "1.2.11")
7842 (source
7843 (origin
7844 (method url-fetch)
7845 (uri (pypi-uri "pyquery" version))
7846 (sha256
7847 (base32
7848 "1ikz1387nsp0pp7mzzr6ip9n5gr67acpap24yn33987v7fkjp0sa"))))
7849 (build-system python-build-system)
7850 (propagated-inputs
7851 `(("python-lxml" ,python-lxml)
7852 ("python-cssselect" ,python-cssselect)))
7853 (home-page "https://github.com/gawel/pyquery")
7854 (synopsis "Make jQuery-like queries on xml documents")
7855 (description "pyquery allows you to make jQuery queries on xml documents.
7856 The API is as much as possible the similar to jQuery. pyquery uses lxml for
7857 fast xml and html manipulation.")
7858 (license bsd-3)
7859 (properties `((python2-variant . ,(delay python2-pyquery))))))
7860
7861 (define-public python2-pyquery
7862 (let ((pyquery (package-with-python2
7863 (strip-python2-variant python-pyquery))))
7864 (package
7865 (inherit pyquery)
7866 (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
7867
7868 (define-public python-webtest
7869 (package
7870 (name "python-webtest")
7871 (version "2.0.20")
7872 (source
7873 (origin
7874 (method url-fetch)
7875 (uri (pypi-uri "WebTest" version))
7876 (sha256
7877 (base32
7878 "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
7879 (build-system python-build-system)
7880 (arguments
7881 `(;; Unfortunately we have to disable tests!
7882 ;; This release of WebTest is pinned to python-nose < 1.3,
7883 ;; but older versions of python-nose are plagued with the following
7884 ;; bug(s), which rears its ugly head during test execution:
7885 ;; https://github.com/nose-devs/nose/issues/759
7886 ;; https://github.com/nose-devs/nose/pull/811
7887 #:tests? #f))
7888 ;; Commented out code is no good, but in this case, once tests
7889 ;; are ready to be enabled again, we should put the following
7890 ;; in place:
7891 ;; (native-inputs
7892 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
7893 ;; ; but see above comment
7894 ;; ("python-coverage" ,python-coverage)
7895 ;; ("python-mock" ,python-mock)
7896 ;; ("python-pastedeploy" ,python-pastedeploy)
7897 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
7898 ;; ("python-pyquery" ,python-pyquery)))
7899 (propagated-inputs
7900 `(("python-waitress" ,python-waitress)
7901 ("python-webob" ,python-webob)
7902 ("python-six" ,python-six)
7903 ("python-beautifulsoup4" ,python-beautifulsoup4)))
7904 (home-page "http://webtest.pythonpaste.org/")
7905 (synopsis "Helper to test WSGI applications")
7906 (description "Webtest allows you to test your Python web applications
7907 without starting an HTTP server. It supports anything that supports the
7908 minimum of WSGI.")
7909 (license license:expat)
7910 (properties `((python2-variant . ,(delay python2-webtest))))))
7911
7912 (define-public python2-webtest
7913 (let ((webtest (package-with-python2
7914 (strip-python2-variant python-webtest))))
7915 (package
7916 (inherit webtest)
7917 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7918 ,@(package-native-inputs webtest))))))
7919
7920 (define-public python-anyjson
7921 (package
7922 (name "python-anyjson")
7923 (version "0.3.3")
7924 (source
7925 (origin
7926 (method url-fetch)
7927 (uri (pypi-uri "anyjson" version))
7928 (sha256
7929 (base32
7930 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
7931 (build-system python-build-system)
7932 (arguments
7933 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
7934 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
7935 ;; whatever) so this transformation needs to be done before the tests
7936 ;; can be run. Maybe we could add a build step to transform beforehand
7937 ;; but it could be annoying/difficult.
7938 ;; We can enable tests for the Python 2 version, though, and do below.
7939 #:tests? #f))
7940 (home-page "http://bitbucket.org/runeh/anyjson/")
7941 (synopsis
7942 "Wraps best available JSON implementation in a common interface")
7943 (description
7944 "Anyjson loads whichever is the fastest JSON module installed
7945 and provides a uniform API regardless of which JSON implementation is used.")
7946 (license bsd-3)
7947 (properties `((python2-variant . ,(delay python2-anyjson))))))
7948
7949 (define-public python2-anyjson
7950 (let ((anyjson (package-with-python2
7951 (strip-python2-variant python-anyjson))))
7952 (package
7953 (inherit anyjson)
7954 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
7955 #:tests? #t
7956 ,@(package-arguments anyjson)))
7957 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7958 ("python2-nose" ,python2-nose))))))
7959
7960 (define-public python-amqp
7961 (package
7962 (name "python-amqp")
7963 (version "1.4.9")
7964 (source
7965 (origin
7966 (method url-fetch)
7967 (uri (pypi-uri "amqp" version))
7968 (sha256
7969 (base32
7970 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
7971 (build-system python-build-system)
7972 (native-inputs
7973 `(("python-nose" ,python-nose)
7974 ("python-mock" ,python-mock)))
7975 (home-page "http://github.com/celery/py-amqp")
7976 (synopsis
7977 "Low-level AMQP client for Python (fork of amqplib)")
7978 (description
7979 "This is a fork of amqplib which was originally written by Barry Pederson.
7980 It is maintained by the Celery project, and used by kombu as a pure python
7981 alternative when librabbitmq is not available.")
7982 (license lgpl2.1+)
7983 (properties `((python2-variant . ,(delay python2-amqp))))))
7984
7985 (define-public python2-amqp
7986 (let ((amqp (package-with-python2
7987 (strip-python2-variant python-amqp))))
7988 (package
7989 (inherit amqp)
7990 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
7991 ;; unmaintained. Weirdly, does not do this on the python 3
7992 ;; version?
7993 #:tests? #f
7994 ,@(package-arguments amqp)))
7995 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7996 ,@(package-native-inputs amqp))))))
7997
7998 (define-public python-kombu
7999 (package
8000 (name "python-kombu")
8001 (version "3.0.33")
8002 (source
8003 (origin
8004 (method url-fetch)
8005 (uri (pypi-uri "kombu" version))
8006 (sha256
8007 (base32
8008 "16brjx2lgwbj2a37d0pjbfb84nvld6irghmqrs3qfncajp51hgc5"))))
8009 (build-system python-build-system)
8010 (native-inputs
8011 `(("python-mock" ,python-mock)
8012 ("python-nose" ,python-nose)))
8013 (propagated-inputs
8014 `(("python-anyjson" ,python-anyjson)
8015 ("python-amqp" ,python-amqp)))
8016 (home-page "http://kombu.readthedocs.org")
8017 (synopsis "Message passing library for Python")
8018 (description "The aim of Kombu is to make messaging in Python as easy as
8019 possible by providing an idiomatic high-level interface for the AMQ protocol,
8020 and also provide proven and tested solutions to common messaging problems.
8021 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
8022 message orientation, queuing, routing, reliability and security, for which the
8023 RabbitMQ messaging server is the most popular implementation.")
8024 (license bsd-3)
8025 (properties `((python2-variant . ,(delay python2-kombu))))))
8026
8027 (define-public python2-kombu
8028 (let ((kombu (package-with-python2
8029 (strip-python2-variant python-kombu))))
8030 (package
8031 (inherit kombu)
8032 (inputs `(("python2-setuptools" ,python2-setuptools)
8033 ("python2-unittest2" ,python2-unittest2)
8034 ,@(package-inputs kombu))))))
8035
8036 (define-public python-billiard
8037 (package
8038 (name "python-billiard")
8039 (version "3.3.0.22")
8040 (source
8041 (origin
8042 (method url-fetch)
8043 (uri (pypi-uri "billiard" version))
8044 (sha256
8045 (base32
8046 "0zp7h6a58alrb3mwdw61jds07395j4j0mj6iqsb8czrihw9ih5nj"))))
8047 (build-system python-build-system)
8048 (native-inputs
8049 `(("python-nose" ,python-nose)))
8050 (home-page "http://github.com/celery/billiard")
8051 (synopsis
8052 "Python multiprocessing fork with improvements and bugfixes")
8053 (description
8054 "Billiard is a fork of the Python 2.7 multiprocessing package. The
8055 multiprocessing package itself is a renamed and updated version of R Oudkerk's
8056 pyprocessing package. This standalone variant is intended to be compatible with
8057 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
8058 (license bsd-3)
8059 (properties `((python2-variant . ,(delay python2-billiard))))))
8060
8061 (define-public python2-billiard
8062 (let ((billiard (package-with-python2
8063 (strip-python2-variant python-billiard))))
8064 (package
8065 (inherit billiard)
8066 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8067 ("python2-unittest2" ,python2-unittest2)
8068 ("python2-mock" ,python2-mock)
8069 ,@(package-native-inputs billiard))))))
8070
8071 (define-public python-celery
8072 (package
8073 (name "python-celery")
8074 (version "3.1.20")
8075 (source
8076 (origin
8077 (method url-fetch)
8078 (uri (pypi-uri "celery" version))
8079 (sha256
8080 (base32
8081 "1md6ywg1s0946qyp8ndnsd677wm0yax933h2sb4m3a4j7lf1jbyh"))))
8082 (build-system python-build-system)
8083 (native-inputs
8084 `(("python-nose" ,python-nose)))
8085 (propagated-inputs
8086 `(("python-pytz" ,python-pytz)
8087 ("python-billiard" ,python-billiard)
8088 ("python-kombu" ,python-kombu)))
8089 (home-page "http://celeryproject.org")
8090 (synopsis "Distributed Task Queue")
8091 (description "Celery is an asynchronous task queue/job queue based on
8092 distributed message passing. It is focused on real-time operation, but
8093 supports scheduling as well. The execution units, called tasks, are executed
8094 concurrently on a single or more worker servers using multiprocessing,
8095 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
8096 synchronously (wait until ready).")
8097 (license bsd-3)
8098 (properties `((python2-variant . ,(delay python2-celery))))))
8099
8100 (define-public python2-celery
8101 (let ((celery (package-with-python2
8102 (strip-python2-variant python-celery))))
8103 (package
8104 (inherit celery)
8105 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8106 ("python2-unittest2" ,python2-unittest2)
8107 ("python2-mock" ,python2-mock)
8108 ,@(package-native-inputs celery))))))
8109
8110 (define-public python-translitcodec
8111 (package
8112 (name "python-translitcodec")
8113 (version "0.4.0")
8114 (source
8115 (origin
8116 (method url-fetch)
8117 (uri (pypi-uri "translitcodec" version))
8118 (sha256
8119 (base32
8120 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
8121 (build-system python-build-system)
8122 (arguments
8123 `(#:tests? #f)) ; no tests provided
8124 (home-page
8125 "https://github.com/claudep/translitcodec")
8126 (synopsis
8127 "Unicode to 8-bit charset transliteration codec")
8128 (description
8129 "This package contains codecs for transliterating ISO 10646 texts into
8130 best-effort representations using smaller coded character sets (ASCII,
8131 ISO 8859, etc.).")
8132 (license license:expat)
8133 (properties `((python2-variant . ,(delay python2-translitcodec))))))
8134
8135 (define-public python2-translitcodec
8136 (package
8137 (inherit (package-with-python2
8138 (strip-python2-variant python-translitcodec)))
8139 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8140
8141 (define-public python-editor
8142 (package
8143 (name "python-editor")
8144 (version "0.5")
8145 (source
8146 (origin
8147 (method url-fetch)
8148 (uri (pypi-uri "python-editor" version))
8149 (sha256
8150 (base32
8151 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
8152 (build-system python-build-system)
8153 (home-page
8154 "https://github.com/fmoo/python-editor")
8155 (synopsis
8156 "Programmatically open an editor, capture the result")
8157 (description
8158 "python-editor is a library that provides the editor module for
8159 programmatically interfacing with your system's $EDITOR.")
8160 (license asl2.0)
8161 (properties `((python2-variant . ,(delay python2-editor))))))
8162
8163 (define-public python2-editor
8164 (package
8165 (inherit (package-with-python2
8166 (strip-python2-variant python-editor)))
8167 (inputs `(("python2-setuptools" ,python2-setuptools)))))
8168
8169 (define-public python-sphinxcontrib-programoutput
8170 (package
8171 (name "python-sphinxcontrib-programoutput")
8172 (version "0.8")
8173 (source (origin
8174 (method url-fetch)
8175 (uri (pypi-uri "sphinxcontrib-programoutput" version))
8176 (sha256
8177 (base32
8178 "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
8179 (build-system python-build-system)
8180 (propagated-inputs
8181 `(("python-docutils" ,python-docutils)
8182 ("python-sphinx" ,python-sphinx)))
8183 (synopsis "Sphinx extension to include program output")
8184 (description "A Sphinx extension to literally insert the output of arbitrary
8185 commands into documents, helping you to keep your command examples up to date.")
8186 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
8187 (license bsd-2)
8188 (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput))))))
8189
8190 (define-public python2-sphinxcontrib-programoutput
8191 (package
8192 (inherit (package-with-python2
8193 (strip-python2-variant python-sphinxcontrib-programoutput)))
8194 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8195
8196 (define-public python-sphinx-repoze-autointerface
8197 (package
8198 (name "python-sphinx-repoze-autointerface")
8199 (version "0.7.1")
8200 (source (origin
8201 (method url-fetch)
8202 (uri (pypi-uri "repoze.sphinx.autointerface" version))
8203 (sha256
8204 (base32
8205 "016mv3wbylw278wl7z33y2liyra8ljp08zq1g0anzadh1an5zvwp"))))
8206 (build-system python-build-system)
8207 (propagated-inputs
8208 `(("python-docutils" ,python-docutils)
8209 ("python-sphinx" ,python-sphinx)
8210 ("python-zope-interface" ,python-zope-interface)))
8211 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
8212 (description "This package defines an extension for the Sphinx documentation
8213 system. The extension allows generation of API documentation by
8214 introspection of @code{zope.interface} instances in code.")
8215 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
8216 (license repoze)))
8217
8218 (define-public python2-sphinx-repoze-autointerface
8219 (package-with-python2 python-sphinx-repoze-autointerface))
8220
8221 (define-public python-psycopg2
8222 (package
8223 (name "python-psycopg2")
8224 (version "2.6.1")
8225 (source
8226 (origin
8227 (method url-fetch)
8228 (uri (pypi-uri "psycopg2" version))
8229 (sha256
8230 (base32
8231 "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
8232 (build-system python-build-system)
8233 (arguments
8234 ;; Tests would require a postgresql database "psycopg2_test"
8235 ;; and a running postgresql database management service.
8236 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
8237 (inputs
8238 `(("postgresql" ,postgresql))) ; libpq
8239 (home-page "http://initd.org/psycopg/")
8240 (synopsis "Python PostgreSQL adapter")
8241 (description
8242 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
8243 (license lgpl3+)
8244 (properties `((python2-variant . ,(delay python2-psycopg2))))))
8245
8246 (define-public python2-psycopg2
8247 (package
8248 (inherit (package-with-python2
8249 (strip-python2-variant python-psycopg2)))
8250 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8251
8252 (define-public python-vobject
8253 (package
8254 (name "python-vobject")
8255 (version "0.9.1")
8256 (source (origin
8257 (method url-fetch)
8258 (uri (pypi-uri "vobject" version))
8259 (sha256
8260 (base32
8261 "1cwzjnrdr9yg2x21wbf3kf59ibnchvj33mygd69yzi178a9gs9gz"))))
8262 (build-system python-build-system)
8263 (inputs
8264 `(("python-dateutil-2" ,python-dateutil-2)
8265 ("python-pyicu" ,python-pyicu)))
8266 (synopsis "Parse and generate vCard and vCalendar files")
8267 (description "Vobject is intended to be a full featured Python package for
8268 parsing and generating vCard and vCalendar files. Currently, iCalendar files
8269 are supported and well tested. vCard 3.0 files are supported, and all data
8270 should be imported, but only a few components are understood in a sophisticated
8271 way.")
8272 (home-page "http://eventable.github.io/vobject/")
8273 (license asl2.0)
8274 (properties `((python2-variant . ,(delay python2-vobject))))))
8275
8276 (define-public python2-vobject
8277 (package
8278 (inherit (package-with-python2
8279 (strip-python2-variant python-vobject)))
8280 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8281
8282 (define-public python-munkres
8283 (package
8284 (name "python-munkres")
8285 (version "1.0.7")
8286 (source (origin
8287 (method url-fetch)
8288 (uri (pypi-uri "munkres" version))
8289 (sha256
8290 (base32
8291 "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"))))
8292 (build-system python-build-system)
8293 (arguments
8294 '(#:tests? #f)) ; no test suite
8295 (home-page "http://software.clapper.org/munkres/")
8296 (synopsis "Implementation of the Munkres algorithm")
8297 (description "The Munkres module provides an implementation of the Munkres
8298 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
8299 useful for solving the Assignment Problem.")
8300 (license bsd-3)))
8301
8302 (define-public python2-munkres
8303 (package-with-python2 python-munkres))
8304
8305 (define-public python-flask
8306 (package
8307 (name "python-flask")
8308 (version "0.10.1")
8309 (source (origin
8310 (method url-fetch)
8311 (uri (pypi-uri "Flask" version))
8312 (sha256
8313 (base32
8314 "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"))))
8315 (build-system python-build-system)
8316 (propagated-inputs
8317 `(("python-itsdangerous" ,python-itsdangerous)
8318 ("python-jinja2" ,python-jinja2)
8319 ("python-werkzeug" ,python-werkzeug)))
8320 (home-page "https://github.com/mitsuhiko/flask/")
8321 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
8322 (description "Flask is a micro web framework based on the Werkzeug toolkit
8323 and Jinja2 template engine. It is called a micro framework because it does not
8324 presume or force a developer to use a particular tool or library.")
8325 (license bsd-3)
8326 (properties `((python2-variant . ,(delay python2-flask))))))
8327
8328 (define-public python2-flask
8329 (package (inherit (package-with-python2
8330 (strip-python2-variant python-flask)))
8331 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8332
8333 (define-public python-cookies
8334 (package
8335 (name "python-cookies")
8336 (version "2.2.1")
8337 (source (origin
8338 (method url-fetch)
8339 (uri (pypi-uri "cookies" version))
8340 (sha256
8341 (base32
8342 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
8343 (build-system python-build-system)
8344 (arguments
8345 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
8346 #:tests? #f))
8347 (native-inputs
8348 `(("python-pytest" ,python2-pytest)))
8349 (synopsis "HTTP cookie parser and renderer")
8350 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
8351 Python.")
8352 (home-page "https://gitlab.com/sashahart/cookies")
8353 (license license:expat)
8354 (properties `((python2-variant . ,(delay python2-cookies))))))
8355
8356 (define-public python2-cookies
8357 (let ((cookies (package-with-python2
8358 (strip-python2-variant python-cookies))))
8359 (package (inherit cookies)
8360 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8361 ,@(package-native-inputs cookies))))))
8362
8363 (define-public python-responses
8364 (package
8365 (name "python-responses")
8366 (version "0.5.1")
8367 (source (origin
8368 (method url-fetch)
8369 (uri (pypi-uri "responses" version))
8370 (sha256
8371 (base32
8372 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
8373 (build-system python-build-system)
8374 (arguments
8375 `(;; Test suite is not distributed:
8376 ;; https://github.com/getsentry/responses/issues/38
8377 #:tests? #f))
8378 (native-inputs
8379 `(("python-cookies" ,python-cookies)
8380 ("python-mock" ,python-mock)))
8381 (propagated-inputs
8382 `(("python-requests" ,python-requests)
8383 ("python-six" ,python-six)))
8384 (home-page "https://github.com/getsentry/responses")
8385 (synopsis "Utility for mocking out the `requests` Python library")
8386 (description "A utility library for mocking out the `requests` Python
8387 library.")
8388 (license asl2.0)
8389 (properties `((python2-variant . ,(delay python2-responses))))))
8390
8391 (define-public python2-responses
8392 (let ((responses (package-with-python2
8393 (strip-python2-variant python-responses))))
8394 (package (inherit responses)
8395 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8396 ,@(package-native-inputs responses))))))
8397
8398 (define-public python-pathlib
8399 (package
8400 (name "python-pathlib")
8401 (version "1.0.1")
8402 (source (origin
8403 (method url-fetch)
8404 (uri (pypi-uri "pathlib" version))
8405 (sha256
8406 (base32
8407 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
8408 (build-system python-build-system)
8409 (arguments
8410 `(#:phases
8411 (modify-phases %standard-phases
8412 (replace 'check
8413 (lambda _ (zero? (system* "python" "./test_pathlib.py")))))))
8414 (home-page "https://pathlib.readthedocs.org/")
8415 (synopsis "Object-oriented filesystem paths")
8416 (description "Pathlib offers a set of classes to handle filesystem paths.
8417 It offers the following advantages over using string objects:
8418
8419 @enumerate
8420 @item No more cumbersome use of os and os.path functions. Everything can
8421 be done easily through operators, attribute accesses, and method calls.
8422 @item Embodies the semantics of different path types. For example,
8423 comparing Windows paths ignores casing.
8424 @item Well-defined semantics, eliminating any inconsistencies or
8425 ambiguities (forward vs. backward slashes, etc.).
8426 @end enumerate\n")
8427 (license license:expat)))
8428
8429 (define-public python2-pathlib
8430 (package-with-python2 python-pathlib))
8431
8432 (define-public python-jellyfish
8433 (package
8434 (name "python-jellyfish")
8435 (version "0.5.3")
8436 (source (origin
8437 (method url-fetch)
8438 (uri (pypi-uri "jellyfish" version))
8439 (sha256
8440 (base32
8441 "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
8442 (build-system python-build-system)
8443 (native-inputs
8444 `(("python-pytest" ,python-pytest)))
8445 (home-page "https://github.com/jamesturk/jellyfish")
8446 (synopsis "Approximate and phonetic matching of strings")
8447 (description "Jellyfish uses a variety of string comparison and phonetic
8448 encoding algorithms to do fuzzy string matching.")
8449 (license bsd-2)
8450 (properties `((python2-variant . ,(delay python2-jellyfish))))))
8451
8452 (define-public python2-jellyfish
8453 (let ((jellyfish (package-with-python2
8454 (strip-python2-variant python-jellyfish))))
8455 (package (inherit jellyfish)
8456 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8457 ("python2-unicodecsv" ,python2-unicodecsv)
8458 ,@(package-native-inputs jellyfish))))))
8459
8460 (define-public python2-unicodecsv
8461 (package
8462 (name "python2-unicodecsv")
8463 (version "0.14.1")
8464 (source (origin
8465 (method url-fetch)
8466 ;; The test suite is not included in the PyPi release.
8467 ;; https://github.com/jdunck/python-unicodecsv/issues/19
8468 (uri (string-append "https://github.com/jdunck/python-unicodecsv/"
8469 "archive/" version ".tar.gz"))
8470 (file-name (string-append name "-" version ".tar.gz"))
8471 (sha256
8472 (base32
8473 "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
8474 (build-system python-build-system)
8475 (arguments
8476 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
8477 #:python ,python-2))
8478 (native-inputs
8479 `(("python2-setuptools" ,python2-setuptools)
8480 ("python2-unittest2" ,python2-unittest2)))
8481 (home-page "https://github.com/jdunck/python-unicodecsv")
8482 (synopsis "Unicode CSV module for Python 2")
8483 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
8484 module, adding support for Unicode strings.")
8485 (license bsd-2)))
8486
8487 (define-public python-rarfile
8488 (package
8489 (name "python-rarfile")
8490 (version "2.7")
8491 (source (origin
8492 (method url-fetch)
8493 (uri (pypi-uri "rarfile" version))
8494 (sha256
8495 (base32
8496 "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
8497 ;; https://github.com/markokr/rarfile/pull/17/
8498 (patches (list (search-patch "python-rarfile-fix-tests.patch")))))
8499 (build-system python-build-system)
8500 (arguments
8501 '(#:phases
8502 (modify-phases %standard-phases
8503 (replace 'check
8504 ;; Many tests fail, but the installation proceeds.
8505 (lambda _ (zero? (system* "make" "-C" "test" "test")))))))
8506 (native-inputs
8507 `(("which" ,which))) ; required for tests
8508 (propagated-inputs
8509 `(("libarchive" ,libarchive)))
8510 (home-page "https://github.com/markokr/rarfile")
8511 (synopsis "RAR archive reader for Python")
8512 (description "This is Python module for RAR archive reading. The interface
8513 is made as zipfile like as possible.")
8514 (license isc)))
8515
8516 (define-public python2-rarfile
8517 (package-with-python2 python-rarfile))
8518
8519 (define-public python-magic
8520 (package
8521 (name "python-magic")
8522 (version "0.4.3")
8523 (source
8524 (origin
8525 (method url-fetch)
8526 (uri (string-append "https://github.com/ahupp/python-magic/archive/"
8527 version ".tar.gz"))
8528 (sha256
8529 (base32
8530 "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
8531 (file-name (string-append name "-" version "-checkout"))))
8532 (build-system python-build-system)
8533 (arguments
8534 ;; The tests are unreliable, so don't run them. The tests fail
8535 ;; under Python3 because they were written for Python2 and
8536 ;; contain import statements that do not work in Python3. One of
8537 ;; the tests fails under Python2 because its assertions are
8538 ;; overly stringent; it relies on comparing output strings which
8539 ;; are brittle and can change depending on the version of
8540 ;; libmagic being used and the system on which the test is
8541 ;; running. In my case, under GuixSD 0.10.0, only one test
8542 ;; failed, and it seems to have failed only because the version
8543 ;; of libmagic that is packaged in Guix outputs a slightly
8544 ;; different (but not wrong) string than the one that the test
8545 ;; expected.
8546 '(#:tests? #f
8547 #:phases (modify-phases %standard-phases
8548 ;; Replace a specific method call with a hard-coded
8549 ;; path to the necessary libmagic.so file in the
8550 ;; store. If we don't do this, then the method call
8551 ;; will fail to find the libmagic.so file, which in
8552 ;; turn will cause any application using
8553 ;; python-magic to fail.
8554 (add-before 'build 'hard-code-path-to-libmagic
8555 (lambda* (#:key inputs #:allow-other-keys)
8556 (let ((file (assoc-ref inputs "file")))
8557 (substitute* "magic.py"
8558 (("ctypes.util.find_library\\('magic'\\)")
8559 (string-append "'" file "/lib/libmagic.so'")))
8560 #t))))))
8561 (native-inputs
8562 `(("python-setuptools" ,python-setuptools)))
8563 (inputs
8564 ;; python-magic needs to be able to find libmagic.so.
8565 `(("file" ,file)))
8566 (home-page "https://github.com/ahupp/python-magic")
8567 (synopsis "File type identification using libmagic")
8568 (description
8569 "This module uses ctypes to access the libmagic file type
8570 identification library. It makes use of the local magic database and
8571 supports both textual and MIME-type output. Note that this module and
8572 the python-file module both provide a \"magic.py\" file; these two
8573 modules, which are different and were developed separately, both serve
8574 the same purpose: to provide Python bindings for libmagic.")
8575 (license license:expat)))
8576
8577 (define-public python2-magic
8578 (package-with-python2 python-magic))
8579
8580 (define-public python2-s3cmd
8581 (package
8582 (name "python2-s3cmd")
8583 (version "1.6.1")
8584 (source
8585 (origin
8586 (method url-fetch)
8587 (uri (string-append "mirror://sourceforge/s3tools/"
8588 "s3cmd-" version ".tar.gz"))
8589 (sha256
8590 (base32
8591 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
8592 (build-system python-build-system)
8593 (arguments
8594 ;; s3cmd is written for python2 only and contains no tests.
8595 `(#:python ,python-2
8596 #:tests? #f))
8597 (native-inputs
8598 `(("python2-setuptools" ,python2-setuptools)))
8599 (inputs
8600 `(("python2-dateutil" ,python2-dateutil)
8601 ;; The python-file package also provides a magic.py module.
8602 ;; This is an unfortunate state of affairs; however, s3cmd
8603 ;; fails to install if it cannot find specifically the
8604 ;; python-magic package. Thus we include it, instead of using
8605 ;; python-file. Ironically, s3cmd sometimes works better
8606 ;; without libmagic bindings at all:
8607 ;; https://github.com/s3tools/s3cmd/issues/198
8608 ("python2-magic" ,python2-magic)))
8609 (home-page "http://s3tools.org/s3cmd")
8610 (synopsis "Command line tool for S3-compatible storage services")
8611 (description
8612 "S3cmd is a command line tool for uploading, retrieving and managing data
8613 in storage services that are compatible with the Amazon Simple Storage
8614 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
8615 GnuPG encryption, and more. It also supports management of Amazon's
8616 CloudFront content delivery network.")
8617 (license gpl2+)))