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