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