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