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