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