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