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