gnu: miniupnpc: Update to 2.0.
[jackhill/guix/guix.git] / gnu / packages / python.scm
CommitLineData
a01b6da7
NK
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
48b311b1 3;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
8e451885 4;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
e99f4211 5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
a480bc41 6;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
da6ce3f1 7;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
e99f4211 8;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
d95a56c6 9;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
534db463 10;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
0bdc1671 11;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
345f0611 12;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
2b2f2fc1 13;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
6a44697d 14;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
02a8a187 15;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com>
b9893908 16;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
264ae686 17;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
1872f1bb 18;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
daeeea71 19;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
b31fbea5 20;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
88bb4197 21;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
b8fdbca3 22;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
0de78c95 23;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
9250b0f3 24;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
47d0b292 25;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
42c4b246 26;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
6eb7af2a 27;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
3f641af0 28;;; Copyright © 2016 David Craven <david@craven.ch>
dddcb25c 29;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
4efb9c54 30;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at>
b04a52a6 31;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
ee5fb7ee 32;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
2f6dd9cd 33;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
a01b6da7
NK
34;;;
35;;; This file is part of GNU Guix.
36;;;
37;;; GNU Guix is free software; you can redistribute it and/or modify it
38;;; under the terms of the GNU General Public License as published by
39;;; the Free Software Foundation; either version 3 of the License, or (at
40;;; your option) any later version.
41;;;
42;;; GNU Guix is distributed in the hope that it will be useful, but
43;;; WITHOUT ANY WARRANTY; without even the implied warranty of
44;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45;;; GNU General Public License for more details.
46;;;
47;;; You should have received a copy of the GNU General Public License
48;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
49
1ffa7090 50(define-module (gnu packages python)
3f641af0 51 #:use-module ((guix licenses) #:prefix license:)
3fdc99da 52 #:use-module (gnu packages)
8e451885 53 #:use-module (gnu packages algebra)
d79a343b 54 #:use-module (gnu packages adns)
89b2e0b0 55 #:use-module (gnu packages attr)
d96034ed 56 #:use-module (gnu packages backup)
3969ca54 57 #:use-module (gnu packages bash)
1ffa7090 58 #:use-module (gnu packages compression)
4ed20663 59 #:use-module (gnu packages databases)
ddc63a56 60 #:use-module (gnu packages django)
5e1c9367 61 #:use-module (gnu packages file)
4ed20663 62 #:use-module (gnu packages fontutils)
4ed20663
AE
63 #:use-module (gnu packages gcc)
64 #:use-module (gnu packages ghostscript)
6eb7af2a 65 #:use-module (gnu packages gl)
4ed20663 66 #:use-module (gnu packages glib)
6eb7af2a 67 #:use-module (gnu packages gstreamer)
4ed20663 68 #:use-module (gnu packages gtk)
421a80a2 69 #:use-module (gnu packages icu4c)
c937562e 70 #:use-module (gnu packages image)
4ed20663 71 #:use-module (gnu packages imagemagick)
d79a343b 72 #:use-module (gnu packages libevent)
b10ab723 73 #:use-module (gnu packages libffi)
89b2e0b0 74 #:use-module (gnu packages linux)
0da98533 75 #:use-module (gnu packages maths)
4ed20663 76 #:use-module (gnu packages multiprecision)
45203542 77 #:use-module (gnu packages networking)
be7134bf 78 #:use-module (gnu packages ncurses)
b04a52a6 79 #:use-module (gnu packages openstack)
d488d5d6 80 #:use-module (gnu packages password-utils)
c9b1b4f9 81 #:use-module (gnu packages pcre)
4ed20663 82 #:use-module (gnu packages perl)
b10ab723 83 #:use-module (gnu packages pkg-config)
06ff0837 84 #:use-module (gnu packages protobuf)
4ed20663 85 #:use-module (gnu packages readline)
6eb7af2a 86 #:use-module (gnu packages sdl)
c9b1b4f9 87 #:use-module (gnu packages statistics)
8f9ac901 88 #:use-module (gnu packages tex)
1c65314c 89 #:use-module (gnu packages texinfo)
cc2b77df 90 #:use-module (gnu packages tls)
e25f0174 91 #:use-module (gnu packages version-control)
02f8f804 92 #:use-module (gnu packages video)
8d12be1e 93 #:use-module (gnu packages web)
ce0614dd 94 #:use-module (gnu packages base)
26b307e2 95 #:use-module (gnu packages xml)
6fa14469 96 #:use-module (gnu packages xorg)
0bdc1671 97 #:use-module (gnu packages xdisorg)
4ed20663 98 #:use-module (gnu packages zip)
afa181ff 99 #:use-module (gnu packages tcl)
63bcec71 100 #:use-module (gnu packages bdw-gc)
a01b6da7
NK
101 #:use-module (guix packages)
102 #:use-module (guix download)
ea5456c8 103 #:use-module (guix git-download)
11bb85a1 104 #:use-module (guix utils)
acc26ff1 105 #:use-module (guix build-system gnu)
d8c4998f 106 #:use-module (guix build-system cmake)
898238b9 107 #:use-module (guix build-system python)
1c65314c
FB
108 #:use-module (guix build-system trivial)
109 #:use-module (srfi srfi-1))
a01b6da7 110
45848023 111(define-public python-2.7
a01b6da7
NK
112 (package
113 (name "python")
f0499100 114 (version "2.7.12")
a01b6da7
NK
115 (source
116 (origin
117 (method url-fetch)
9b43a0ff 118 (uri (string-append "https://www.python.org/ftp/python/"
a01b6da7
NK
119 version "/Python-" version ".tar.xz"))
120 (sha256
121 (base32
f0499100 122 "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp"))
c3052d6b
ML
123 (patches (search-patches "python-2.7-search-paths.patch"
124 "python-2-deterministic-build-info.patch"
125 "python-2.7-source-date-epoch.patch"))
10a42aa2
EF
126 (modules '((guix build utils)))
127 ;; suboptimal to delete failing tests here, but if we delete them in the
128 ;; arguments then we need to make sure to strip out that phase when it
129 ;; gets inherited by python and python-minimal.
130 (snippet
131 '(begin
132 (for-each delete-file
133 '("Lib/test/test_compileall.py"
f0499100 134 "Lib/test/test_ctypes.py" ; fails on mips64el
10a42aa2
EF
135 "Lib/test/test_distutils.py"
136 "Lib/test/test_import.py"
137 "Lib/test/test_shutil.py"
138 "Lib/test/test_socket.py"
1bb163b0 139 "Lib/test/test_subprocess.py"))
10a42aa2 140 #t))))
02f0c3b2
LC
141 (outputs '("out"
142 "tk")) ;tkinter; adds 50 MiB to the closure
a01b6da7 143 (build-system gnu-build-system)
3fdc99da 144 (arguments
10a42aa2 145 `(;; 356 tests OK.
e7e7a1eb
EF
146 ;; 6 tests failed:
147 ;; test_compileall test_distutils test_import test_shutil test_socket
148 ;; test_subprocess
149 ;; 39 tests skipped:
ff6f33cf
ED
150 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
151 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
e7e7a1eb
EF
152 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
153 ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl
154 ;; test_kqueue test_linuxaudiodev test_macos test_macostools
155 ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet
156 ;; test_socketserver test_startfile test_sunaudiodev test_timeout
157 ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet
158 ;; test_winreg test_winsound test_zipfile64
159 ;; 4 skips unexpected on linux2:
160 ;; test_bsddb test_bsddb3 test_gdb test_ioctl
af807dea 161 #:test-target "test"
3fdc99da 162 #:configure-flags
6a20289d
LC
163 (list "--enable-shared" ;allow embedding
164 "--with-system-ffi" ;build ctypes
165 (string-append "LDFLAGS=-Wl,-rpath="
166 (assoc-ref %outputs "out") "/lib"))
fd982732 167
d2cc9c7c
LC
168 #:modules ((ice-9 ftw) (ice-9 match)
169 (guix build utils) (guix build gnu-build-system))
fd982732 170 #:phases
46472ecd
MW
171 (modify-phases %standard-phases
172 (add-before
173 'configure 'patch-lib-shells
174 (lambda _
175 ;; Filter for existing files, since some may not exist in all
176 ;; versions of python that are built with this recipe.
177 (substitute* (filter file-exists?
178 '("Lib/subprocess.py"
179 "Lib/popen2.py"
180 "Lib/distutils/tests/test_spawn.py"
181 "Lib/test/test_subprocess.py"))
182 (("/bin/sh") (which "sh")))
dedc8320
LC
183
184 ;; Use zero as the timestamp in .pyc files so that builds are
185 ;; deterministic. TODO: Remove it when this variable is set in
186 ;; gnu-build-system.scm.
a665996f 187 (setenv "SOURCE_DATE_EPOCH" "1")
46472ecd 188 #t))
5b4e2791
LC
189 (add-before 'configure 'do-not-record-configure-flags
190 (lambda* (#:key configure-flags #:allow-other-keys)
191 ;; Remove configure flags from the installed '_sysconfigdata.py'
192 ;; and 'Makefile' so we don't end up keeping references to the
193 ;; build tools.
194 ;;
195 ;; Preserve at least '--with-system-ffi' since otherwise the
196 ;; thing tries to build libffi, fails, and we end up with a
197 ;; Python that lacks ctypes.
198 (substitute* "configure"
199 (("^CONFIG_ARGS=.*$")
200 (format #f "CONFIG_ARGS='~a'\n"
201 (if (member "--with-system-ffi" configure-flags)
202 "--with-system-ffi"
203 ""))))
204 #t))
46472ecd
MW
205 (add-before
206 'check 'pre-check
207 (lambda _
208 ;; 'Lib/test/test_site.py' needs a valid $HOME
209 (setenv "HOME" (getcwd))
210 #t))
211 (add-after
212 'unpack 'set-source-file-times-to-1980
213 ;; XXX One of the tests uses a ZIP library to pack up some of the
214 ;; source tree, and fails with "ZIP does not support timestamps
215 ;; before 1980". Work around this by setting the file times in the
216 ;; source tree to sometime in early 1980.
217 (lambda _
218 (let ((circa-1980 (* 10 366 24 60 60)))
219 (ftw "." (lambda (file stat flag)
220 (utime file circa-1980 circa-1980)
221 #t))
02f0c3b2 222 #t)))
9ffe61b0
LC
223 (add-after 'install 'remove-tests
224 ;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
225 ;; because these files are used by some libraries out there.
226 (lambda* (#:key outputs #:allow-other-keys)
227 (let ((out (assoc-ref outputs "out")))
228 (match (scandir (string-append out "/lib")
229 (lambda (name)
230 (string-prefix? "python" name)))
231 ((pythonX.Y)
232 (let ((testdir (string-append out "/lib/" pythonX.Y
233 "/test")))
234 (with-directory-excursion testdir
235 (for-each delete-file-recursively
236 (scandir testdir
237 (match-lambda
238 ((or "." "..") #f)
239 (file
240 (not
241 (string-prefix? "test_support."
242 file))))))
243 (call-with-output-file "__init__.py" (const #t))
244 #t)))))))
216c283b
LC
245 (add-before 'strip 'make-libraries-writable
246 (lambda* (#:key outputs #:allow-other-keys)
247 ;; Make .so files writable so they can be stripped.
248 (let ((out (assoc-ref outputs "out")))
249 (for-each (lambda (file)
250 (chmod file #o755))
251 (find-files (string-append out "/lib")
252 "\\.so"))
253 #t)))
02f0c3b2
LC
254 (add-after 'install 'move-tk-inter
255 (lambda* (#:key outputs #:allow-other-keys)
256 ;; When Tkinter support is built move it to a separate output so
257 ;; that the main output doesn't contain a reference to Tcl/Tk.
258 (let ((out (assoc-ref outputs "out"))
259 (tk (assoc-ref outputs "tk")))
260 (when tk
261 (match (find-files out "tkinter.*\\.so")
262 ((tkinter.so)
263 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
264 ;; want it under TK/lib/pythonX.Y/site-packages.
265 (let* ((len (string-length out))
266 (target (string-append
267 tk "/"
268 (string-drop
269 (dirname (dirname tkinter.so))
270 len)
271 "/site-packages")))
272 (install-file tkinter.so target)
273 (delete-file tkinter.so)))))
274 #t))))))
a01b6da7 275 (inputs
3fdc99da
CR
276 `(("bzip2" ,bzip2)
277 ("gdbm" ,gdbm)
b10ab723 278 ("libffi" ,libffi) ; for ctypes
b88e1b0a 279 ("sqlite" ,sqlite) ; for sqlite extension
a01b6da7 280 ("openssl" ,openssl)
3fdc99da 281 ("readline" ,readline)
afa181ff
LC
282 ("zlib" ,zlib)
283 ("tcl" ,tcl)
284 ("tk" ,tk))) ; for tkinter
b10ab723
CR
285 (native-inputs
286 `(("pkg-config" ,pkg-config)))
9be8d7c8
LC
287 (native-search-paths
288 (list (search-path-specification
289 (variable "PYTHONPATH")
af070955 290 (files '("lib/python2.7/site-packages")))))
f0499100 291 (home-page "https://www.python.org")
afa181ff 292 (synopsis "High-level, dynamically-typed programming language")
a01b6da7
NK
293 (description
294 "Python is a remarkably powerful dynamic programming language that
295is used in a wide variety of application domains. Some of its key
296distinguishing features include: clear, readable syntax; strong
297introspection capabilities; intuitive object orientation; natural
298expression of procedural code; full modularity, supporting hierarchical
299packages; exception-based error handling; and very high level dynamic
300data types.")
3f641af0 301 (license license:psfl)))
acc26ff1 302
45848023
HG
303;; Current 2.x version.
304(define-public python-2 python-2.7)
305
72df6680 306(define-public python-3.5
b24d1cfc 307 (package (inherit python-2)
72df6680 308 (version "3.5.2")
717003e3
LC
309 (source (origin
310 (method url-fetch)
311 (uri (string-append "https://www.python.org/ftp/python/"
312 version "/Python-" version ".tar.xz"))
fc1adab1
AK
313 (patches (search-patches
314 "python-fix-tests.patch"
72df6680 315 "python-3.5-fix-tests.patch"
fc1adab1
AK
316 "python-3-deterministic-build-info.patch"
317 "python-3-search-paths.patch"))
717003e3
LC
318 (patch-flags '("-p0"))
319 (sha256
320 (base32
72df6680 321 "0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400"))))
1f434457
MW
322 (arguments (substitute-keyword-arguments (package-arguments python-2)
323 ((#:tests? _) #t)))
1aebc0cb
AE
324 (native-search-paths
325 (list (search-path-specification
326 (variable "PYTHONPATH")
0e05d01e
SB
327 (files (list (string-append "lib/python"
328 (version-major+minor version)
329 "/site-packages"))))))))
f26a77ff 330
72df6680
LF
331(define-public python-3.4
332 (package (inherit python-3.5)
333 (version "3.4.5")
334 (source (origin
335 (method url-fetch)
336 (uri (string-append "https://www.python.org/ftp/python/"
337 version "/Python-" version ".tar.xz"))
338 (patches (search-patches
339 "python-fix-tests.patch"
340 "python-3.4-fix-tests.patch"
341 "python-3-deterministic-build-info.patch"
342 "python-3-search-paths.patch"))
343 (patch-flags '("-p0"))
344 (sha256
345 (base32
346 "12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f"))))))
347
45848023 348;; Current 3.x version.
72df6680 349(define-public python-3 python-3.5)
45848023
HG
350
351;; Current major version.
352(define-public python python-3)
353
95288fcc
LC
354;; Minimal variants of Python, mostly used to break the cycle between Tk and
355;; Python (Tk -> libxcb -> Python.)
356
357(define-public python2-minimal
358 (package (inherit python-2)
359 (name "python-minimal")
02f0c3b2 360 (outputs '("out"))
95288fcc
LC
361 (arguments
362 (substitute-keyword-arguments (package-arguments python-2)
c5a05e31
LC
363 ((#:configure-flags cf)
364 `(append ,cf '("--without-system-ffi")))))
95288fcc
LC
365 (inputs '()))) ;none of the optional dependencies
366
367(define-public python-minimal
898238b9 368 (package (inherit python)
95288fcc 369 (name "python-minimal")
02f0c3b2 370 (outputs '("out"))
95288fcc 371
d0b73960 372 ;; Build fails due to missing ctypes without libffi.
95288fcc
LC
373 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
374 ;; zlib is required by 'zipimport', used by pip.
d0b73960
CAW
375 (inputs `(("libffi" ,libffi)
376 ("openssl" ,openssl)
95288fcc
LC
377 ("zlib" ,zlib)))))
378
64cb064c
LC
379(define* (wrap-python3 python
380 #:optional
381 (name (string-append (package-name python) "-wrapper")))
898238b9 382 (package (inherit python)
95288fcc 383 (name name)
898238b9
AE
384 (source #f)
385 (build-system trivial-build-system)
02f0c3b2 386 (outputs '("out"))
3969ca54 387 (inputs `(("bash" ,bash)))
3c0f2329 388 (propagated-inputs `(("python" ,python)))
898238b9
AE
389 (arguments
390 `(#:modules ((guix build utils))
391 #:builder
392 (begin
393 (use-modules (guix build utils))
394 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
395 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
396 (mkdir-p bin)
397 (for-each
398 (lambda (old new)
399 (symlink (string-append python old)
400 (string-append bin "/" new)))
3969ca54
SB
401 `("python3" ,"pydoc3" ,"idle3" ,"pip3")
402 `("python" ,"pydoc" ,"idle" ,"pip"))
403 ;; python-config outputs search paths based upon its location,
404 ;; use a bash wrapper to avoid changing its outputs.
405 (let ((bash (string-append (assoc-ref %build-inputs "bash")
406 "/bin/bash"))
407 (old (string-append python "python3-config"))
408 (new (string-append bin "/python-config")))
409 (with-output-to-file new
410 (lambda ()
411 (format #t "#!~a~%" bash)
412 (format #t "exec \"~a\" \"$@\"~%" old)
413 (chmod new #o755)
414 #t)))))))
0d56e3e1
LC
415 (synopsis "Wrapper for the Python 3 commands")
416 (description
417 "This package provides wrappers for the commands of Python@tie{}3.x such
418that they can be invoked under their usual name---e.g., @command{python}
419instead of @command{python3}.")))
420
95288fcc
LC
421(define-public python-wrapper (wrap-python3 python))
422(define-public python-minimal-wrapper (wrap-python3 python-minimal))
898238b9 423
aaf625b8
RW
424(define-public python-psutil
425 (package
426 (name "python-psutil")
88535a44 427 (version "4.3.0")
aaf625b8
RW
428 (source
429 (origin
430 (method url-fetch)
f56777be 431 (uri (pypi-uri "psutil" version))
aaf625b8
RW
432 (sha256
433 (base32
88535a44 434 "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6"))))
aaf625b8
RW
435 (build-system python-build-system)
436 (native-inputs
437 `(("python-setuptools" ,python-setuptools)))
88535a44 438 (home-page "https://www.github.com/giampaolo/psutil")
aaf625b8
RW
439 (synopsis "Library for retrieving information on running processes")
440 (description
441 "psutil (Python system and process utilities) is a library for retrieving
442information on running processes and system utilization (CPU, memory, disks,
443network) in Python. It is useful mainly for system monitoring, profiling and
444limiting process resources and management of running processes. It implements
445many functionalities offered by command line tools such as: ps, top, lsof,
446netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
447pidof, tty, taskset, pmap.")
3f641af0 448 (license license:bsd-3)))
aaf625b8
RW
449
450(define-public python2-psutil
451 (package-with-python2 python-psutil))
898238b9 452
f9da1d8a
ED
453(define-public python-passlib
454 (package
455 (name "python-passlib")
1c9f78ec 456 (version "1.7.0")
f9da1d8a
ED
457 (source
458 (origin
459 (method url-fetch)
690e8c66 460 (uri (pypi-uri "passlib" version))
f9da1d8a
ED
461 (sha256
462 (base32
1c9f78ec 463 "1vdbqsa1a31s98fxkinl052q8nnpvbxnb83qanxfpi2p6c2zdr0b"))))
f9da1d8a
ED
464 (build-system python-build-system)
465 (native-inputs
466 `(("python-nose" ,python-nose)
467 ("python-setuptools" ,python-setuptools)))
468 (inputs
469 `(("python-py-bcrypt" ,python-py-bcrypt)))
470 (arguments
471 `(#:phases
472 (alist-cons-before
473 'check 'set-PYTHON_EGG_CACHE
474 ;; some tests require access to "$HOME/.cython"
475 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
476 %standard-phases)))
477 (home-page "https://bitbucket.org/ecollins/passlib")
478 (synopsis
479 "Comprehensive password hashing framework")
480 (description
481 "Passlib is a password hashing library for Python 2 & 3, which provides
482cross-platform implementations of over 30 password hashing algorithms, as well
483as a framework for managing existing password hashes. It's designed to be
484useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
485to providing full-strength password hashing for multi-user application.")
3f641af0 486 (license license:bsd-3)))
f9da1d8a
ED
487
488(define-public python2-passlib
489 (package-with-python2 python-passlib))
490
feb0d9c3
ED
491(define-public python-py-bcrypt
492 (package
493 (name "python-py-bcrypt")
494 (version "0.4")
495 (source
496 (origin
497 (method url-fetch)
498 (uri (string-append
499 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
500 version
501 ".tar.gz"))
502 (sha256
503 (base32
504 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
505 (build-system python-build-system)
506 (native-inputs
507 `(("python-setuptools" ,python-setuptools)))
508 (home-page "https://code.google.com/p/py-bcrypt")
509 (synopsis
510 "Bcrypt password hashing and key derivation")
511 (description
512 "A python wrapper of OpenBSD's Blowfish password hashing code. This
513system hashes passwords using a version of Bruce Schneier's Blowfish block
514cipher with modifications designed to raise the cost of off-line password
515cracking and frustrate fast hardware implementation. The computation cost of
516the algorithm is parametised, so it can be increased as computers get faster.
517The intent is to make a compromise of a password database less likely to
518result in an attacker gaining knowledge of the plaintext passwords (e.g. using
519John the Ripper).")
520 ;; "sha2.c" is under BSD-3;
521 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
522 ;; the rest is under ISC.
3f641af0 523 (license (list license:isc license:bsd-3 license:bsd-4))))
feb0d9c3
ED
524
525(define-public python2-py-bcrypt
526 (package-with-python2 python-py-bcrypt))
527
528
429fdea1
ED
529(define-public python-paramiko
530 (package
531 (name "python-paramiko")
81b9bbbd 532 (version "1.16.0")
429fdea1
ED
533 (source
534 (origin
535 (method url-fetch)
81b9bbbd 536 (uri (pypi-uri "paramiko" version))
429fdea1
ED
537 (sha256
538 (base32
81b9bbbd 539 "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj"))))
429fdea1
ED
540 (build-system python-build-system)
541 (native-inputs
542 `(("python-setuptools" ,python-setuptools)))
a3fc12da
CR
543 (propagated-inputs
544 `(("python-pycrypto" ,python-pycrypto)))
429fdea1 545 (inputs
a3fc12da 546 `(("python-ecdsa" ,python-ecdsa)))
429fdea1
ED
547 (home-page "http://www.paramiko.org/")
548 (synopsis "SSHv2 protocol library")
549 (description "Paramiko is a python implementation of the SSHv2 protocol,
550providing both client and server functionality. While it leverages a Python C
551extension for low level cryptography (PyCrypto), Paramiko itself is a pure
552Python interface around SSH networking concepts.")
3f641af0 553 (license license:lgpl2.1+)))
429fdea1
ED
554
555(define-public python2-paramiko
556 (package-with-python2 python-paramiko))
557
558
de73dbf6
ED
559(define-public python-httplib2
560 (package
561 (name "python-httplib2")
286f1bac 562 (version "0.9.2")
de73dbf6
ED
563 (source
564 (origin
565 (method url-fetch)
286f1bac 566 (uri (pypi-uri "httplib2" version))
de73dbf6
ED
567 (sha256
568 (base32
286f1bac 569 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
de73dbf6
ED
570 (build-system python-build-system)
571 (native-inputs
572 `(("python-setuptools" ,python-setuptools)))
286f1bac 573 (home-page "https://github.com/jcgregorio/httplib2")
de73dbf6
ED
574 (synopsis "Comprehensive HTTP client library")
575 (description
576 "A comprehensive HTTP client library supporting many features left out of
577other HTTP libraries.")
578 (license license:expat)))
579
580(define-public python2-httplib2
581 (package-with-python2 python-httplib2))
582
67039875
ED
583(define-public python-ecdsa
584 (package
585 (name "python-ecdsa")
586 (version "0.13")
587 (source
588 (origin
589 (method url-fetch)
590 (uri (string-append
591 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
592 version
593 ".tar.gz"))
594 (sha256
595 (base32
596 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
597 (build-system python-build-system)
598 (native-inputs
599 `(("python-setuptools" ,python-setuptools)))
600 (inputs
601 `(("openssl" ,openssl)))
602 (home-page
603 "http://github.com/warner/python-ecdsa")
604 (synopsis
605 "ECDSA cryptographic signature library (pure python)")
606 (description
607 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
608Curve Digital Signature Algorithm), implemented purely in Python. With this
609library, you can quickly create keypairs (signing key and verifying key), sign
610messages, and verify the signatures. The keys and signatures are very short,
611making them easy to handle and incorporate into other protocols.")
612 (license license:expat)))
613
614(define-public python2-ecdsa
615 (package-with-python2 python-ecdsa))
616
52323f32
ED
617(define-public python-ccm
618 (package
619 (name "python-ccm")
db5567f7 620 (version "2.1.6")
52323f32
ED
621 (source
622 (origin
623 (method url-fetch)
db5567f7 624 (uri (pypi-uri "ccm" version))
52323f32
ED
625 (sha256
626 (base32
db5567f7 627 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
52323f32
ED
628 (build-system python-build-system)
629 (native-inputs
630 `(("python-setuptools" ,python-setuptools)))
631 (inputs
632 `(("python-pyyaml" ,python-pyyaml)
633 ("python-six" ,python-six)))
634 (home-page "https://github.com/pcmanus/ccm")
635 (synopsis "Cassandra Cluster Manager")
636 (description "A script/library to create, launch and remove an Apache
637Cassandra cluster on localhost.")
3f641af0 638 (license license:asl2.0)))
52323f32
ED
639
640(define-public python2-ccm
641 (package-with-python2 python-ccm))
642
89114f39 643(define-public python-pytz
acc26ff1 644 (package
89114f39 645 (name "python-pytz")
61c9babb 646 (version "2016.3")
acc26ff1
CR
647 (source
648 (origin
649 (method url-fetch)
61c9babb 650 (uri (pypi-uri "pytz" version ".tar.bz2"))
acc26ff1
CR
651 (sha256
652 (base32
61c9babb 653 "1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1"))))
acc26ff1 654 (build-system python-build-system)
8498b8cf 655 (arguments `(#:tests? #f)) ; no test target
b01bbbcf 656 (home-page "http://pythonhosted.org/pytz")
9e771e3b 657 (synopsis "Python timezone library")
acc26ff1
CR
658 (description
659 "This library allows accurate and cross platform timezone calculations
660using Python 2.4 or higher and provides access to the Olson timezone database.")
b01bbbcf 661 (license license:expat)))
5ace6e2f 662
89114f39 663(define-public python2-pytz
11bb85a1 664 (package-with-python2 python-pytz))
89114f39 665
fc50e9c6 666
89114f39 667(define-public python-babel
5ace6e2f 668 (package
89114f39 669 (name "python-babel")
3f37db6b 670 (version "2.3.2")
5ace6e2f
CR
671 (source
672 (origin
673 (method url-fetch)
b850a6d8 674 (uri (pypi-uri "Babel" version))
5ace6e2f
CR
675 (sha256
676 (base32
3f37db6b 677 "0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw"))))
5ace6e2f
CR
678 (build-system python-build-system)
679 (inputs
e1804763
AE
680 `(("python-pytz" ,python-pytz)
681 ("python-setuptools" ,python-setuptools)))
8498b8cf 682 (arguments `(#:tests? #f)) ; no test target
e1804763 683 (home-page "http://babel.pocoo.org/")
5ace6e2f
CR
684 (synopsis
685 "Tools for internationalizing Python applications")
686 (description
687 "Babel is composed of two major parts:
688- tools to build and work with gettext message catalogs
689- a Python interface to the CLDR (Common Locale Data Repository), providing
690access to various locale display names, localized number and date formatting,
691etc. ")
3f641af0 692 (license license:bsd-3)))
89114f39
AE
693
694(define-public python2-babel
11bb85a1 695 (package-with-python2 python-babel))
73adf220 696
ed377cc6
RW
697(define-public python2-backport-ssl-match-hostname
698 (package
699 (name "python2-backport-ssl-match-hostname")
f2d06d46 700 (version "3.5.0.1")
ed377cc6
RW
701 (source
702 (origin
703 (method url-fetch)
704 (uri (string-append
705 "https://pypi.python.org/packages/source/b/"
706 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
707 version ".tar.gz"))
708 (sha256
709 (base32
f2d06d46 710 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
ed377cc6 711 (build-system python-build-system)
f2d06d46
EF
712 (arguments
713 `(#:python ,python-2
714 #:tests? #f)) ; no test target
ed377cc6
RW
715 (inputs
716 `(("python2-setuptools" ,python2-setuptools)))
f2d06d46
EF
717 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
718 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
ed377cc6
RW
719 (description
720 "This backport brings the ssl.match_hostname() function to users of
721earlier versions of Python. The function checks the hostname in the
722certificate returned by the server to which a connection has been established,
723and verifies that it matches the intended target hostname.")
3f641af0 724 (license license:psfl)))
ed377cc6 725
ef5cbf9b
RW
726(define-public python-h5py
727 (package
728 (name "python-h5py")
fe147c41 729 (version "2.6.0")
ef5cbf9b
RW
730 (source
731 (origin
732 (method url-fetch)
fe147c41 733 (uri (pypi-uri "h5py" version))
ef5cbf9b
RW
734 (sha256
735 (base32
fe147c41 736 "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj"))))
ef5cbf9b 737 (build-system python-build-system)
797e1401
RW
738 (arguments
739 `(#:tests? #f ; no test target
740 #:phases
741 (modify-phases %standard-phases
742 (add-after 'unpack 'fix-hdf5-paths
743 (lambda* (#:key inputs #:allow-other-keys)
744 (let ((prefix (assoc-ref inputs "hdf5")))
745 (substitute* "setup_build.py"
746 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
747 (string-append "['" prefix "/lib" "']"))
748 (("'/opt/local/include', '/usr/local/include'")
749 (string-append "'" prefix "/include" "'")))
750 (substitute* "setup_configure.py"
751 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
752 (string-append "['" prefix "/lib" "']")))
753 #t))))))
3c4010b1
RW
754 (propagated-inputs
755 `(("python-numpy" ,python-numpy)))
ef5cbf9b 756 (inputs
fe147c41
EF
757 `(("hdf5" ,hdf5)
758 ("python-six" ,python-six)))
ef5cbf9b 759 (native-inputs
fe147c41
EF
760 `(("python-cython" ,python-cython)
761 ("python-pkgconfig" ,python-pkgconfig)))
ef5cbf9b
RW
762 (home-page "http://www.h5py.org/")
763 (synopsis "Read and write HDF5 files from Python")
764 (description
765 "The h5py package provides both a high- and low-level interface to the
766HDF5 library from Python. The low-level interface is intended to be a
767complete wrapping of the HDF5 API, while the high-level component supports
768access to HDF5 files, datasets and groups using established Python and NumPy
769concepts.")
3f641af0 770 (license license:bsd-3)
fe147c41 771 (properties `((python2-variant . ,(delay python2-h5py))))))
ef5cbf9b
RW
772
773(define-public python2-h5py
fe147c41 774 (package-with-python2 (strip-python2-variant python-h5py)))
ef5cbf9b 775
c1448c69
EB
776(define-public python-lockfile
777 (package
778 (name "python-lockfile")
692add53 779 (version "0.12.2")
c1448c69
EB
780 (source
781 (origin
782 (method url-fetch)
783 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
784 "lockfile-" version ".tar.gz"))
785 (sha256
786 (base32
692add53 787 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
c1448c69
EB
788 (build-system python-build-system)
789 (arguments '(#:test-target "check"))
692add53
BW
790 (native-inputs
791 `(("python-pbr" ,python-pbr)))
6a8f26a4 792 (home-page "https://launchpad.net/pylockfile")
c1448c69
EB
793 (synopsis "Platform-independent file locking module")
794 (description
795 "The lockfile package exports a LockFile class which provides a simple
796API for locking files.")
1804527a
BW
797 (license license:expat)
798 (properties `((python2-variant . ,(delay python2-lockfile))))))
c1448c69
EB
799
800(define-public python2-lockfile
1804527a
BW
801 (let ((base (package-with-python2 (strip-python2-variant python-lockfile))))
802 (package
692add53
BW
803 (inherit base)
804 (native-inputs `(("python2-setuptools" ,python2-setuptools)
805 ,@(package-native-inputs base))))))
c1448c69 806
5a1a4bf6
EB
807(define-public python-mock
808 (package
809 (name "python-mock")
810 (version "1.0.1")
811 (source
812 (origin
813 (method url-fetch)
814 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
815 "mock-" version ".tar.gz"))
816 (sha256
817 (base32
818 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
819 (build-system python-build-system)
820 (arguments '(#:test-target "check"))
07af3e5e 821 (home-page "http://code.google.com/p/mock/")
9e771e3b 822 (synopsis "Python mocking and patching library for testing")
5a1a4bf6
EB
823 (description
824 "Mock is a library for testing in Python. It allows you to replace parts
825of your system under test with mock objects and make assertions about how they
826have been used.")
bd3fa666 827 (license license:expat)))
5a1a4bf6
EB
828
829(define-public python2-mock
830 (package-with-python2 python-mock))
831
fc50e9c6 832
73adf220
AE
833(define-public python-setuptools
834 (package
835 (name "python-setuptools")
62a9a23b 836 (version "18.3.1")
73adf220
AE
837 (source
838 (origin
839 (method url-fetch)
840 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
841 version ".tar.gz"))
842 (sha256
843 (base32
62a9a23b 844 "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
73adf220 845 (build-system python-build-system)
d3d656c5
AE
846 ;; FIXME: Tests require pytest, which itself relies on setuptools.
847 ;; One could bootstrap with an internal untested setuptools.
73adf220 848 (arguments
824af8ca 849 `(#:tests? #f))
73adf220
AE
850 (home-page "https://pypi.python.org/pypi/setuptools")
851 (synopsis
852 "Library designed to facilitate packaging Python projects")
853 (description
854 "Setuptools is a fully-featured, stable library designed to facilitate
855packaging Python projects, where packaging includes:
856Python package and module definitions,
857distribution package metadata,
858test hooks,
859project installation,
860platform-specific details,
861Python 3 support.")
3f641af0 862 (license license:psfl)))
73adf220
AE
863
864(define-public python2-setuptools
865 (package-with-python2 python-setuptools))
fc50e9c6
AE
866
867
cafc3f5a
EB
868(define-public python-pycrypto
869 (package
870 (name "python-pycrypto")
871 (version "2.6.1")
872 (source
873 (origin
874 (method url-fetch)
875 (uri (string-append "https://pypi.python.org/packages/source/p/"
876 "pycrypto/pycrypto-" version ".tar.gz"))
877 (sha256
878 (base32
879 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
880 (build-system python-build-system)
881 (native-inputs
882 `(("python-setuptools" ,python-setuptools)))
883 (inputs
884 `(("python" ,python)
885 ("gmp" ,gmp)))
886 (arguments
887 `(#:phases
888 (alist-cons-before
889 'build 'set-build-env
890 ;; pycrypto runs an autoconf configure script behind the scenes
891 (lambda _
892 (setenv "CONFIG_SHELL" (which "bash")))
893 %standard-phases)))
894 (home-page "http://www.pycrypto.org/")
895 (synopsis "Cryptographic modules for Python")
896 (description
897 "Pycrypto is a collection of both secure hash functions (such as SHA256
898and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
35b9e423 899etc.). The package is structured to make adding new modules easy.")
3f641af0 900 (license license:public-domain)))
cafc3f5a 901
345f0611 902(define-public python2-pycrypto
1c0059da
EF
903 (let ((pycrypto (package-with-python2 python-pycrypto)))
904 (package (inherit pycrypto)
905 (inputs
906 `(("python" ,python-2)
907 ,@(alist-delete
908 "python"
909 (package-inputs pycrypto)))))))
345f0611 910
cafc3f5a
EB
911(define-public python-keyring
912 (package
913 (name "python-keyring")
13f3ff35 914 (version "8.7")
cafc3f5a
EB
915 (source
916 (origin
917 (method url-fetch)
664e6c3a 918 (uri (pypi-uri "keyring" version))
cafc3f5a
EB
919 (sha256
920 (base32
13f3ff35 921 "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx"))))
cafc3f5a
EB
922 (build-system python-build-system)
923 (native-inputs
13f3ff35 924 `(("python-setuptools-scm" ,python-setuptools-scm)))
cafc3f5a
EB
925 (inputs
926 `(("python-pycrypto" ,python-pycrypto)))
927 (arguments
664e6c3a 928 `(#:tests? #f)) ;TODO: tests require pytest
190ba6c2 929 (home-page "https://github.com/jaraco/keyring")
cafc3f5a
EB
930 (synopsis "Store and access your passwords safely")
931 (description
932 "The Python keyring lib provides a easy way to access the system keyring
35b9e423 933service from python. It can be used in any application that needs safe
cafc3f5a
EB
934password storage.")
935 ;; "MIT" and PSF dual license
3f641af0 936 (license license:x11)
13f3ff35 937 (properties `((python2-variant . ,(delay python2-keyring))))))
cafc3f5a 938
d7af1069 939(define-public python2-keyring
13f3ff35
EF
940 (let ((base (package-with-python2 (strip-python2-variant python-keyring))))
941 (package
942 (inherit base)
943 (native-inputs `(("python2-setuptools" ,python2-setuptools)
944 ,@(package-native-inputs base))))))
d7af1069 945
a480bc41
EB
946(define-public python-six
947 (package
948 (name "python-six")
b6ab89ef 949 (version "1.10.0")
a480bc41
EB
950 (source
951 (origin
952 (method url-fetch)
b6ab89ef 953 (uri (pypi-uri "six" version))
a480bc41
EB
954 (sha256
955 (base32
b6ab89ef 956 "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
a480bc41
EB
957 (build-system python-build-system)
958 (inputs
959 `(("python-setuptools" ,python-setuptools)))
960 (home-page "http://pypi.python.org/pypi/six/")
961 (synopsis "Python 2 and 3 compatibility utilities")
962 (description
35b9e423 963 "Six is a Python 2 and 3 compatibility library. It provides utility
a480bc41
EB
964functions for smoothing over the differences between the Python versions with
965the goal of writing Python code that is compatible on both Python versions.
35b9e423 966Six supports every Python version since 2.5. It is contained in only one
a480bc41 967Python file, so it can be easily copied into your project.")
3f641af0 968 (license license:x11)))
a480bc41 969
0c20025c
AE
970(define-public python2-six
971 (package-with-python2 python-six))
972
cafc3f5a
EB
973(define-public python-dateutil-2
974 (package
975 (name "python-dateutil")
394b8060 976 (version "2.5.2")
cafc3f5a
EB
977 (source
978 (origin
979 (method url-fetch)
394b8060 980 (uri (pypi-uri "python-dateutil" version))
cafc3f5a
EB
981 (sha256
982 (base32
394b8060 983 "0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86"))))
cafc3f5a
EB
984 (build-system python-build-system)
985 (inputs
394b8060 986 `(("python-six" ,python-six)))
b5a5fb19 987 (home-page "https://dateutil.readthedocs.io/en/stable/")
cafc3f5a
EB
988 (synopsis "Extensions to the standard datetime module")
989 (description
990 "The dateutil module provides powerful extensions to the standard
991datetime module, available in Python 2.3+.")
3f641af0 992 (license license:bsd-3)
394b8060 993 (properties `((python2-variant . ,(delay python2-dateutil-2))))))
cafc3f5a
EB
994
995(define-public python2-dateutil-2
394b8060
EF
996 (let ((base (package-with-python2 (strip-python2-variant python-dateutil-2))))
997 (package
998 (inherit base)
999 (inputs `(("python2-setuptools" ,python2-setuptools)
1000 ,@(package-inputs base))))))
cafc3f5a 1001
fc50e9c6
AE
1002(define-public python-dateutil
1003 (package
1004 (name "python-dateutil")
1005 (version "1.5") ; last version for python < 3
1006 (source
1007 (origin
1008 (method url-fetch)
cafc3f5a
EB
1009 (uri (string-append "http://labix.org/download/python-dateutil/"
1010 "python-dateutil-" version ".tar.gz"))
fc50e9c6
AE
1011 (sha256
1012 (base32
1013 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
1014 (build-system python-build-system)
1015 (inputs
1016 `(("python-setuptools" ,python-setuptools)))
b5a5fb19 1017 (home-page "https://dateutil.readthedocs.io/en/stable/")
cafc3f5a 1018 (synopsis "Extensions to the standard datetime module")
fc50e9c6
AE
1019 (description
1020 "The dateutil module provides powerful extensions to the standard
1021datetime module, available in Python 2.3+.")
3f641af0 1022 (license license:psfl)))
fc50e9c6
AE
1023
1024(define-public python2-dateutil
1025 (package-with-python2 python-dateutil))
1d08c01f 1026
cafc3f5a
EB
1027(define-public python-parsedatetime
1028 (package
1029 (name "python-parsedatetime")
eebf6f01 1030 (version "2.1")
cafc3f5a
EB
1031 (source
1032 (origin
1033 (method url-fetch)
eebf6f01 1034 (uri (pypi-uri "parsedatetime" version))
cafc3f5a
EB
1035 (sha256
1036 (base32
eebf6f01 1037 "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p"))))
cafc3f5a
EB
1038 (build-system python-build-system)
1039 (native-inputs
eebf6f01
EF
1040 `(("python-nose" ,python-nose)
1041 ("python-pyicu" ,python-pyicu)))
cafc3f5a
EB
1042 (home-page "http://github.com/bear/parsedatetime/")
1043 (synopsis
1044 "Parse human-readable date/time text")
1045 (description
e881752c 1046 "Parse human-readable date/time text.")
3f641af0 1047 (license license:asl2.0)
eebf6f01 1048 (properties `((python2-variant . ,(delay python2-parsedatetime))))))
cafc3f5a 1049
38b8f9b2 1050(define-public python2-parsedatetime
eebf6f01
EF
1051 (let ((base (package-with-python2 (strip-python2-variant python-parsedatetime))))
1052 (package
1053 (inherit base)
1054 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1055 ,@(package-native-inputs base))))))
38b8f9b2 1056
d072efcb
RW
1057(define-public python-pandas
1058 (package
1059 (name "python-pandas")
7d0c3c8d 1060 (version "0.18.1")
d072efcb
RW
1061 (source
1062 (origin
1b96f069 1063 (method url-fetch)
7d0c3c8d
EF
1064 (uri (string-append
1065 "https://pypi.python.org/packages/11/09/"
1066 "e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/"
1067 "pandas-" version ".tar.gz"))
1b96f069 1068 (sha256
7d0c3c8d 1069 (base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j"))))
d072efcb 1070 (build-system python-build-system)
d072efcb 1071 (propagated-inputs
42603726
EF
1072 `(("python-numpy" ,python-numpy)))
1073 (inputs
1074 `(("python-pytz" ,python-pytz)
d072efcb
RW
1075 ("python-dateutil" ,python-dateutil-2)))
1076 (native-inputs
7d0c3c8d 1077 `(("python-nose" ,python-nose)))
d072efcb
RW
1078 (home-page "http://pandas.pydata.org")
1079 (synopsis "Data structures for data analysis, time series, and statistics")
1080 (description
1081 "Pandas is a Python package providing fast, flexible, and expressive data
1082structures designed to make working with structured (tabular,
1083multidimensional, potentially heterogeneous) and time series data both easy
1084and intuitive. It aims to be the fundamental high-level building block for
1085doing practical, real world data analysis in Python.")
3f641af0 1086 (license license:bsd-3)
7d0c3c8d 1087 (properties `((python2-variant . ,(delay python2-pandas))))))
d072efcb
RW
1088
1089(define-public python2-pandas
7d0c3c8d
EF
1090 (let ((base (package-with-python2 (strip-python2-variant python-pandas))))
1091 (package
1092 (inherit base)
1093 (native-inputs `(("python2-setuptools" ,python2-setuptools)
dbd40ac1 1094 ,@(package-native-inputs base))))))
d072efcb 1095
cafc3f5a
EB
1096(define-public python-tzlocal
1097 (package
1098 (name "python-tzlocal")
ed80839b 1099 (version "1.2.2")
cafc3f5a
EB
1100 (source
1101 (origin
1102 (method url-fetch)
226d3331 1103 (uri (pypi-uri "tzlocal" version))
cafc3f5a
EB
1104 (sha256
1105 (base32
ed80839b 1106 "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb"))))
cafc3f5a 1107 (build-system python-build-system)
ed80839b 1108 (inputs `(("python-pytz" ,python-pytz)))
cafc3f5a
EB
1109 (home-page "https://github.com/regebro/tzlocal")
1110 (synopsis
35b9e423 1111 "Local timezone information for Python")
cafc3f5a
EB
1112 (description
1113 "Tzlocal returns a tzinfo object with the local timezone information.
1114This module attempts to fix a glaring hole in pytz, that there is no way to
1115get the local timezone information, unless you know the zoneinfo name, and
1116under several distributions that's hard or impossible to figure out.")
3f641af0 1117 (license license:cc0)))
cafc3f5a 1118
1d08c01f
AE
1119(define-public python2-pysqlite
1120 (package
1121 (name "python2-pysqlite")
fe476868 1122 (version "2.8.1")
1d08c01f
AE
1123 (source
1124 (origin
1125 (method url-fetch)
fe476868 1126 (uri (pypi-uri "pysqlite" version))
1d08c01f
AE
1127 (sha256
1128 (base32
fe476868 1129 "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
1d08c01f
AE
1130 (build-system python-build-system)
1131 (inputs
1132 `(("sqlite" ,sqlite)))
1133 (arguments
1134 `(#:python ,python-2 ; incompatible with Python 3
1135 #:tests? #f)) ; no test target
fe476868 1136 (home-page "http://github.com/ghaering/pysqlite")
7a03af70 1137 (synopsis "SQLite bindings for Python")
1d08c01f
AE
1138 (description
1139 "Pysqlite provides SQLite bindings for Python that comply to the
1140Database API 2.0T.")
ed0cdf83 1141 (license license:zlib)))
1d08c01f 1142
2875caf5
AE
1143
1144(define-public python2-mechanize
1145 (package
1146 (name "python2-mechanize")
1147 (version "0.2.5")
1148 (source
1149 (origin
1150 (method url-fetch)
1151 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1152 version ".tar.gz"))
1153 (sha256
1154 (base32
1155 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1156 (build-system python-build-system)
1157 (inputs
1158 `(("python2-setuptools" ,python2-setuptools)))
1159 (arguments
1160 `(#:python ,python-2 ; apparently incompatible with Python 3
1161 #:tests? #f))
1162 ;; test fails with message
1163 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1164 ;; (python-3.3.2) or
1165 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1166 ;; (python-2.7.5).
1167 ;; The source code is from March 2011 and probably not up-to-date
1168 ;; with respect to python unit tests.
1169 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1170 (synopsis
1171 "Stateful programmatic web browsing in Python")
1172 (description
1173 "Mechanize implements stateful programmatic web browsing in Python,
1174after Andy Lester’s Perl module WWW::Mechanize.")
3f641af0
DC
1175 (license (license:non-copyleft
1176 "file://COPYING"
1177 "See COPYING in the distribution."))))
2875caf5 1178
0352532e
AE
1179
1180(define-public python-simplejson
1181 (package
1182 (name "python-simplejson")
988d1bad 1183 (version "3.8.2")
0352532e
AE
1184 (source
1185 (origin
1186 (method url-fetch)
988d1bad 1187 (uri (pypi-uri "simplejson" version))
0352532e
AE
1188 (sha256
1189 (base32
988d1bad 1190 "0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m"))))
0352532e
AE
1191 (build-system python-build-system)
1192 (home-page "http://simplejson.readthedocs.org/en/latest/")
1193 (synopsis
1194 "Json library for Python")
1195 (description
e881752c
AK
1196 "JSON (JavaScript Object Notation) is a subset of JavaScript
1197syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1198format.
0352532e
AE
1199
1200Simplejson exposes an API familiar to users of the standard library marshal
1201and pickle modules. It is the externally maintained version of the json
1202library contained in Python 2.6, but maintains compatibility with Python 2.5
1203and (currently) has significant performance advantages, even without using
1204the optional C extension for speedups. Simplejson is also supported on
1205Python 3.3+.")
3f641af0 1206 (license license:x11)))
0352532e
AE
1207
1208(define-public python2-simplejson
1209 (package-with-python2 python-simplejson))
421a80a2
AE
1210
1211
ed07b08d 1212(define-public python-pyicu
421a80a2 1213 (package
ed07b08d 1214 (name "python-pyicu")
d3b29319 1215 (version "1.9.2")
421a80a2
AE
1216 (source
1217 (origin
1218 (method url-fetch)
1219 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1220 version ".tar.gz"))
1221 (sha256
1222 (base32
d3b29319 1223 "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
421a80a2
AE
1224 (build-system python-build-system)
1225 (inputs
1226 `(("icu4c" ,icu4c)))
421a80a2 1227 (home-page "http://pyicu.osafoundation.org/")
9e771e3b 1228 (synopsis "Python extension wrapping the ICU C++ API")
421a80a2
AE
1229 (description
1230 "PyICU is a python extension wrapping the ICU C++ API.")
3f641af0 1231 (license license:x11)
ed07b08d
LF
1232 (properties `((python2-variant . ,(delay python2-pyicu))))))
1233
1234(define-public python2-pyicu
1235 (package
1236 (inherit (package-with-python2
1237 (strip-python2-variant python-pyicu)))
1238 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
cc20a22a
LC
1239
1240(define-public python2-dogtail
1241 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1242 ;; spaces in indentation" with Python 3.
1243 (package
1244 (name "python2-dogtail")
1245 (version "0.8.2")
1246 (source (origin
1247 (method url-fetch)
1248 (uri (string-append
1249 "https://fedorahosted.org/released/dogtail/dogtail-"
1250 version ".tar.gz"))
1251 (sha256
1252 (base32
1253 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1254 (build-system python-build-system)
1255 (arguments `(#:python ,python-2
1256 #:tests? #f)) ; invalid command "test"
1257 (home-page "https://fedorahosted.org/dogtail/")
1258 (synopsis "GUI test tool and automation framework written in ​Python")
1259 (description
35b9e423 1260 "Dogtail is a GUI test tool and automation framework written in Python.
cc20a22a
LC
1261It uses Accessibility (a11y) technologies to communicate with desktop
1262applications. dogtail scripts are written in Python and executed like any
1263other Python program.")
3f641af0 1264 (license license:gpl2+)))
515e6878 1265
011b18c3
LC
1266(define-public python2-empy
1267 (package
1268 (name "python2-empy")
1269 (version "3.3")
1270 (source (origin
1271 (method url-fetch)
1272 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1273 version ".tar.gz"))
1274 (sha256
1275 (base32
1276 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1277 (build-system python-build-system)
1278 (arguments
1279 `(#:python ,python-2
1280 #:phases (alist-replace
1281 'check
1282 (lambda _
1283 (zero? (system* "./test.sh")))
1284 %standard-phases)))
1285 (home-page "http://www.alcyone.com/software/empy/")
1286 (synopsis "Templating system for Python")
1287 (description
1288 "EmPy is a system for embedding Python expressions and statements in
1289template text; it takes an EmPy source file, processes it, and produces
1290output. This is accomplished via expansions, which are special signals to the
1cd4027c 1291EmPy system and are set off by a special prefix (by default the at sign, @@).
011b18c3
LC
1292EmPy can expand arbitrary Python expressions and statements in this way, as
1293well as a variety of special forms. Textual data not explicitly delimited in
1294this way is sent unaffected to the output, allowing Python to be used in
1295effect as a markup language. Also supported are callbacks via hooks,
1296recording and playback via diversions, and dynamic, chainable filters. The
1297system is highly configurable via command line options and embedded
1298commands.")
3f641af0 1299 (license license:lgpl2.1+)))
011b18c3 1300
8deeda0c
LC
1301(define-public python2-element-tree
1302 (package
1303 (name "python2-element-tree")
1304 (version "1.2.6")
1305 (source (origin
1306 (method url-fetch)
1307 (uri (string-append
1308 "http://effbot.org/media/downloads/elementtree-"
1309 version "-20050316.tar.gz"))
1310 (sha256
1311 (base32
1312 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1313 (build-system python-build-system)
1314 (arguments
1315 `(#:python ,python-2 ; seems to be part of Python 3
1316 #:tests? #f)) ; no 'test' sub-command
1317 (synopsis "Toolkit for XML processing in Python")
1318 (description
1319 "ElementTree is a Python library supporting lightweight XML processing.")
1320 (home-page "http://effbot.org/zone/element-index.htm")
3f641af0
DC
1321 (license (license:x11-style
1322 "http://docs.python.org/2/license.html"
1323 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
8deeda0c
LC
1324
1325(define-public python2-pybugz
1326 (package
1327 (name "python2-pybugz")
1328 (version "0.6.11")
1329 (source (origin
1330 (method url-fetch)
1331 (uri (string-append
1332 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1333 version ".tar.gz"))
1334 (sha256
1335 (base32
6f194a1e 1336 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
fc1adab1
AK
1337 (patches (search-patches "pybugz-stty.patch"
1338 "pybugz-encode-error.patch"))))
8deeda0c
LC
1339 (build-system python-build-system)
1340 (arguments
1341 `(#:python ,python-2 ; SyntaxError with Python 3
1342 #:tests? #f)) ; no 'test' sub-command
1343 (inputs `(("element-tree" ,python2-element-tree)))
1344 (synopsis "Python and command-line interface to Bugzilla")
1345 (description
1346 "PyBugz is a Python library and command-line tool to query the Bugzilla
1347bug tracking system. It is meant as an aid to speed up interaction with the
1348bug tracker.")
1349 (home-page "http://www.liquidx.net/pybugz/")
3f641af0 1350 (license license:gpl2)))
8deeda0c 1351
a480bc41
EB
1352(define-public python-enum34
1353 (package
1354 (name "python-enum34")
d39ae1e5 1355 (version "1.1.0")
a480bc41
EB
1356 (source
1357 (origin
1358 (method url-fetch)
d39ae1e5 1359 (uri (pypi-uri "enum34" version))
a480bc41
EB
1360 (sha256
1361 (base32
d39ae1e5 1362 "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
a480bc41 1363 (build-system python-build-system)
a480bc41
EB
1364 (arguments
1365 `(#:phases
1366 (alist-replace
1367 'check
1368 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1369 %standard-phases)))
1370 (home-page "https://pypi.python.org/pypi/enum34")
1371 (synopsis "Backported Python 3.4 Enum")
1372 (description
1373 "Enum34 is the new Python stdlib enum module available in Python 3.4
1374backported for previous versions of Python from 2.4 to 3.3.")
3f641af0 1375 (license license:bsd-3)))
a480bc41 1376
820acd1b
LF
1377(define-public python2-enum34
1378 (package-with-python2 python-enum34))
1379
a480bc41
EB
1380(define-public python-parse-type
1381 (package
1382 (name "python-parse-type")
1383 (version "0.3.4")
1384 (source
1385 (origin
1386 (method url-fetch)
1387 (uri (string-append "https://pypi.python.org/packages/source/p/"
1388 "parse_type/parse_type-" version ".tar.gz"))
1389 (sha256
1390 (base32
1391 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1392 (build-system python-build-system)
1393 (inputs
1394 `(("python-setuptools" ,python-setuptools)
1395 ("python-six" ,python-six)
68f1cdec 1396 ("python-parse" ,python-parse)))
a480bc41
EB
1397 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1398 (home-page "https://github.com/jenisys/parse_type")
1399 (synopsis "Extended parse module")
1400 (description
1401 "Parse_type extends the python parse module.")
3f641af0 1402 (license license:bsd-3)))
a480bc41
EB
1403
1404(define-public python-parse
1405 (package
1406 (name "python-parse")
eb3d3503 1407 (version "1.6.6")
a480bc41
EB
1408 (source
1409 (origin
1410 (method url-fetch)
eb3d3503 1411 (uri (pypi-uri "parse" version))
a480bc41
EB
1412 (sha256
1413 (base32
aa6c09ed
EF
1414 "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi"))
1415 (patches (search-patches "python-parse-too-many-fields.patch"))))
a480bc41
EB
1416 (build-system python-build-system)
1417 (arguments
1418 `(#:phases
f9a65318
EF
1419 (modify-phases %standard-phases
1420 (replace 'check
1421 (lambda _ (zero? (system* "python" "test_parse.py")))))))
a480bc41
EB
1422 (home-page "https://github.com/r1chardj0n3s/parse")
1423 (synopsis "Parse strings")
1424 (description
1425 "Parse strings using a specification based on the Python format()
1426syntax.")
3f641af0 1427 (license license:x11)))
a480bc41
EB
1428
1429
515e6878
LC
1430(define-public scons
1431 (package
1432 (name "scons")
a3f61425 1433 (version "2.3.4")
515e6878
LC
1434 (source (origin
1435 (method url-fetch)
de67e922
LF
1436 (uri (string-append "mirror://sourceforge/scons/scons/" version
1437 "/scons-" version ".tar.gz"))
515e6878
LC
1438 (sha256
1439 (base32
a3f61425 1440 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
515e6878
LC
1441 (build-system python-build-system)
1442 (arguments
1443 ;; With Python 3.x, fails to build with a syntax error.
1444 `(#:python ,python-2
1445 #:tests? #f)) ; no 'python setup.py test' command
1446 (home-page "http://scons.org/")
1447 (synopsis "Software construction tool written in Python")
1448 (description
1449 "SCons is a software construction tool. Think of SCons as an improved,
1450cross-platform substitute for the classic Make utility with integrated
1451functionality similar to autoconf/automake and compiler caches such as ccache.
1452In short, SCons is an easier, more reliable and faster way to build
1453software.")
3f641af0 1454 (license license:x11)))
011b18c3 1455
c15a5c0e
DT
1456(define-public python-extras
1457 (package
1458 (name "python-extras")
1459 (version "0.0.3")
1460 (source
1461 (origin
1462 (method url-fetch)
1463 (uri (string-append
1464 "https://pypi.python.org/packages/source/e/extras/extras-"
1465 version ".tar.gz"))
1466 (sha256
1467 (base32
1468 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1469 (build-system python-build-system)
1470 (inputs
1471 `(("python-setuptools" ,python-setuptools)))
1472 (arguments
1473 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1474 '(#:tests? #f))
1475 (home-page "https://github.com/testing-cabal/extras")
1476 (synopsis "Useful extensions to the Python standard library")
1477 (description
1478 "Extras is a set of extensions to the Python standard library.")
bd3fa666 1479 (license license:expat)))
c15a5c0e
DT
1480
1481(define-public python2-extras
1482 (package-with-python2 python-extras))
1483
56ea0efd
DT
1484(define-public python-mimeparse
1485 (package
1486 (name "python-mimeparse")
1487 (version "0.1.4")
1488 (source
1489 (origin
1490 (method url-fetch)
1491 (uri (string-append
1492 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1493 version ".tar.gz"))
1494 (sha256
1495 (base32
1496 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1497 (build-system python-build-system)
1498 (inputs
1499 `(("python-setuptools" ,python-setuptools)))
1500 (arguments
1501 '(#:tests? #f)) ; no setup.py test command
1502 (home-page
1503 "https://github.com/dbtsai/python-mimeparse")
9e771e3b 1504 (synopsis "Python library for parsing MIME types")
56ea0efd
DT
1505 (description
1506 "Mimeparse provides basic functions for parsing MIME type names and
1507matching them against a list of media-ranges.")
bd3fa666 1508 (license license:expat)))
56ea0efd
DT
1509
1510(define-public python2-mimeparse
1511 (package-with-python2 python-mimeparse))
1512
4435427e
DT
1513(define-public python-nose
1514 (package
1515 (name "python-nose")
f7cb9841 1516 (version "1.3.7")
4435427e
DT
1517 (source
1518 (origin
1519 (method url-fetch)
f7cb9841 1520 (uri (pypi-uri "nose" version))
4435427e
DT
1521 (sha256
1522 (base32
f7cb9841 1523 "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
4435427e
DT
1524 (build-system python-build-system)
1525 (inputs
1526 `(("python-setuptools" ,python-setuptools)))
1527 (arguments
1528 '(#:tests? #f)) ; FIXME: test suite fails
1529 (home-page "http://readthedocs.org/docs/nose/")
1530 (synopsis "Python testing library")
1531 (description
1532 "Nose extends the unittest library to make testing easier.")
3f641af0 1533 (license license:lgpl2.0+)))
4435427e
DT
1534
1535(define-public python2-nose
1536 (package-with-python2 python-nose))
1537
0aea283a
EF
1538(define-public python-nose2
1539 (package
1540 (name "python-nose2")
1541 (version "0.6.5")
1542 (source
1543 (origin
1544 (method url-fetch)
1545 (uri (pypi-uri "nose2" version))
1546 (sha256
1547 (base32
1548 "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7"))))
1549 (build-system python-build-system)
1550 (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector'
1551 (native-inputs
1552 `(("python-setuptools" ,python-setuptools)))
1553 (inputs
1554 `(("python-cov-core" ,python-cov-core)
1555 ("python-pytest-cov" ,python-pytest-cov)
1556 ("python-six" ,python-six)))
1557 (home-page "https://github.com/nose-devs/nose2")
1558 (synopsis "Next generation of nicer testing for Python")
1559 (description
1560 "Nose2 is the next generation of nicer testing for Python, based on the
1561plugins branch of unittest2. Nose2 aims to improve on nose by providing a
1562better plugin api, being easier for users to configure, and simplifying internal
1563interfaces and processes.")
1564 (license license:bsd-2)))
1565
1566(define-public python2-nose2
1567 (package-with-python2 python-nose2))
1568
6cd9c356
DT
1569(define-public python-unittest2
1570 (package
1571 (name "python-unittest2")
1572 (version "0.5.1")
1573 (source
1574 (origin
1575 (method url-fetch)
1576 (uri (string-append
1577 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1578 version ".tar.gz"))
1579 (sha256
1580 (base32
1581 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1582 (build-system python-build-system)
1583 (inputs
1584 `(("python-setuptools" ,python-setuptools)))
1585 (home-page "http://pypi.python.org/pypi/unittest2")
1586 (synopsis "Python unit testing library")
1587 (description
1588 "Unittest2 is a replacement for the unittest module in the Python
1589standard library.")
3f641af0 1590 (license license:psfl)))
6cd9c356
DT
1591
1592(define-public python2-unittest2
1593 (package (inherit python-unittest2)
1594 (name "python2-unittest2")
1595 (version "0.5.1")
1596 (source
1597 (origin
1598 (method url-fetch)
1599 (uri (string-append
1600 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1601 version ".tar.gz"))
1602 (sha256
1603 (base32
1604 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1605 (inputs
7957fe6c 1606 `(("python2-setuptools" ,python2-setuptools)))
6cd9c356
DT
1607 (arguments
1608 `(#:python ,python-2
1609 #:tests? #f)))) ; no setup.py test command
1610
02f8f804 1611(define-public python-pafy
1612 (package
1613 (name "python-pafy")
1614 (version "0.5.2")
1615 (source
1616 (origin
1617 (method url-fetch)
1618 (uri (pypi-uri "pafy" version))
1619 (sha256
1620 (base32
1621 "1ckvrypyvb7jbqlgwdz0y337ajagjv7dgxyns326nqwypn1wpq0i"))))
1622 (build-system python-build-system)
ed3fee5f 1623 (arguments
1624 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
02f8f804 1625 (propagated-inputs
1626 ;; Youtube-dl is a python package which is imported in the file
1627 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
1628 `(("youtube-dl" ,youtube-dl)))
1629 (home-page "https://np1.github.io/pafy/")
1630 (synopsis "Retrieve YouTube content and metadata")
1631 (description
1632 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
1633 (license license:lgpl3+)))
1634
542ad60f
DT
1635(define-public python-py
1636 (package
1637 (name "python-py")
71c8a804 1638 (version "1.4.31")
542ad60f
DT
1639 (source
1640 (origin
1641 (method url-fetch)
71c8a804 1642 (uri (pypi-uri "py" version))
542ad60f
DT
1643 (sha256
1644 (base32
71c8a804 1645 "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
542ad60f
DT
1646 (build-system python-build-system)
1647 (inputs
1648 `(("python-setuptools" ,python-setuptools)))
1649 (home-page "http://pylib.readthedocs.org/")
1650 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1651 (description
1652 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1653code introspection, and logging.")
bd3fa666 1654 (license license:expat)))
542ad60f
DT
1655
1656(define-public python2-py
1657 (package-with-python2 python-py))
1658
855d4761
DT
1659(define-public python-pytest
1660 (package
1661 (name "python-pytest")
61a4332d 1662 (version "2.7.3")
855d4761
DT
1663 (source
1664 (origin
1665 (method url-fetch)
1666 (uri (string-append
1667 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1668 version ".tar.gz"))
1669 (sha256
1670 (base32
61a4332d 1671 "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm"))
855d4761
DT
1672 (modules '((guix build utils)))
1673 (snippet
1674 ;; One of the tests involves the /usr directory, so it fails.
1675 '(substitute* "testing/test_argcomplete.py"
1676 (("def test_remove_dir_prefix\\(self\\):")
1677 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1678 (build-system python-build-system)
1679 (inputs
1680 `(("python-setuptools" ,python-setuptools)
1681 ("python-py" ,python-py)
1682 ("python-nose" ,python-nose)
1683 ("python-mock" ,python-mock)))
1684 (home-page "http://pytest.org")
1685 (synopsis "Python testing library")
1686 (description
1687 "Pytest is a testing tool that provides auto-discovery of test modules
1688and functions, detailed info on failing assert statements, modular fixtures,
1689and many external plugins.")
bd3fa666 1690 (license license:expat)))
855d4761
DT
1691
1692(define-public python2-pytest
1693 (package-with-python2 python-pytest))
1694
fca4ff35
LF
1695;; This package is used by Borg until we can upgrade all our Python packages to
1696;; use a more recent pytest.
1697(define-public python-pytest-2.9.2
1698 (package
1699 (inherit python-pytest)
1700 (name "python-pytest")
1701 (version "2.9.2")
1702 (source (origin
1703 (method url-fetch)
1704 (uri (pypi-uri "pytest" version))
1705 (sha256
1706 (base32
1707 "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j"))))
1708 (arguments
1709 `(#:phases
1710 (modify-phases %standard-phases
1711 (add-before 'check 'disable-invalid-test
1712 (lambda _
1713 (substitute* "testing/test_argcomplete.py"
1714 (("def test_remove_dir_prefix" line)
1715 (string-append "@pytest.mark.skip"
1716 "(reason=\"Assumes that /usr exists.\")\n "
1717 line)))
1718 #t)))))))
1719
358c3d61
EF
1720(define-public python-pytest-cov
1721 (package
1722 (name "python-pytest-cov")
545f4a1c 1723 (version "2.2.1")
358c3d61
EF
1724 (source
1725 (origin
1726 (method url-fetch)
1727 (uri (pypi-uri "pytest-cov" version))
1728 (sha256
545f4a1c
EF
1729 (base32
1730 "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
10468636 1731 (build-system python-build-system)
545f4a1c 1732 (inputs
10468636
EF
1733 `(("python-coverage" ,python-coverage)
1734 ("python-pytest" ,python-pytest)))
10468636
EF
1735 (home-page "https://github.com/pytest-dev/pytest-cov")
1736 (synopsis "Pytest plugin for measuring coverage")
1737 (description
1738 "Pytest-cov produces coverage reports. It supports centralised testing and
1739distributed testing in both @code{load} and @code{each} modes. It also
1740supports coverage of subprocesses.")
545f4a1c
EF
1741 (license license:expat)
1742 (properties `((python2-variant . ,(delay python2-pytest-cov))))))
358c3d61
EF
1743
1744(define-public python2-pytest-cov
545f4a1c
EF
1745 (let ((base (package-with-python2 (strip-python2-variant python-pytest-cov))))
1746 (package
1747 (inherit base)
1748 (inputs `(("python2-setuptools" ,python2-setuptools)
1749 ,@(package-inputs base))))))
358c3d61 1750
6784f2e3
RW
1751(define-public python-pytest-runner
1752 (package
1753 (name "python-pytest-runner")
1754 (version "2.6.2")
1755 (source
1756 (origin
1757 (method url-fetch)
54cd239b 1758 (uri (pypi-uri "pytest-runner" version))
6784f2e3
RW
1759 (sha256
1760 (base32
1761 "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
1762 (build-system python-build-system)
1763 (arguments
1764 `(#:phases
1765 (modify-phases %standard-phases
1766 ;; The fancy way of setting the version with setuptools_scm does not
1767 ;; seem to work here.
1768 (add-after 'unpack 'set-version
1769 (lambda _
1770 (substitute* "docs/conf.py"
1771 (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
1772 (string-append "version = \"" ,version "\"")))
1773 #t)))))
1774 (native-inputs
1775 `(("python-pytest" ,python-pytest)
1776 ("python-setuptools-scm" ,python-setuptools-scm)))
54cd239b 1777 (home-page "https://github.com/pytest-dev/pytest-runner")
6784f2e3
RW
1778 (synopsis "Invoke py.test as a distutils command")
1779 (description
1780 "This package provides a @command{pytest-runner} command that
1781@file{setup.py} files can use to run tests.")
54cd239b
EF
1782 (license license:expat)
1783 (properties `((python2-variant . ,(delay python2-pytest-runner))))))
1784
1785(define-public python2-pytest-runner
1786 (let ((base (package-with-python2
1787 (strip-python2-variant python-pytest-runner))))
1788 (package
1789 (inherit base)
1790 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1791 ,@(package-native-inputs base))))))
6784f2e3 1792
44547e51
EF
1793(define-public python-pytest-mock
1794 (package
1795 (name "python-pytest-mock")
1796 (version "1.2")
1797 (source
1798 (origin
1799 (method url-fetch)
1800 (uri (pypi-uri "pytest-mock" version ".zip"))
1801 (sha256
1802 (base32
1803 "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"))))
1804 (build-system python-build-system)
1805 (native-inputs
1806 `(("unzip" ,unzip)))
1807 (inputs
1808 `(("python-py" ,python-py)
1809 ("python-pytest" ,python-pytest)))
1810 (home-page "https://github.com/pytest-dev/pytest-mock/")
1811 (synopsis "Thin-wrapper around the mock package for easier use with py.test")
1812 (description
1813 "This plugin installs a @code{mocker} fixture which is a thin-wrapper
1814around the patching API provided by the @code{mock} package, but with the
1815benefit of not having to worry about undoing patches at the end of a test.
1816The mocker fixture has the same API as @code{mock.patch}, supporting the
1817same arguments.")
1818 (properties `((python2-variant . ,(delay python2-pytest-mock))))
1819 (license license:expat)))
1820
1821(define-public python2-pytest-mock
1822 (let ((base (package-with-python2
1823 (strip-python2-variant python-pytest-mock))))
1824 (package (inherit base)
1825 (native-inputs
1826 `(("python2-setuptools" ,python2-setuptools)
1827 ,@(package-native-inputs base)))
1828 (inputs
1829 `(("python2-mock" ,python2-mock)
1830 ,@(package-inputs base))))))
1831
8fa58fc9
CAW
1832(define-public python-pytest-xdist
1833 (package
1834 (name "python-pytest-xdist")
1835 (version "1.14")
1836 (source
1837 (origin
1838 (method url-fetch)
1839 (uri (pypi-uri "pytest-xdist" version ".zip"))
1840 (sha256
1841 (base32
de585a7e
HG
1842 "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
1843 (modules '((guix build utils)))
1844 (snippet
1845 '(begin
1846 ;; Remove pre-compiled .pyc files from source.
1847 (for-each delete-file-recursively
1848 (find-files "." "__pycache__" #:directories? #t))
1849 (for-each delete-file (find-files "." "\\.pyc$"))
1850 #t))))
8fa58fc9
CAW
1851 (build-system python-build-system)
1852 (native-inputs
1853 `(("unzip" ,unzip)
8fa58fc9 1854 ("python-setuptools-scm" ,python-setuptools-scm)))
fbe9abcc
EF
1855 (inputs
1856 `(("python-apipkg" ,python-apipkg)
1857 ("python-execnet" ,python-execnet)
8fa58fc9
CAW
1858 ("python-pytest" ,python-pytest)
1859 ("python-py" ,python-py)))
1860 (home-page
1861 "https://github.com/pytest-dev/pytest-xdist")
1862 (synopsis
1863 "Plugin for py.test with distributed testing and loop-on-failing modes")
1864 (description
1865 "The pytest-xdist plugin extends py.test with some unique test execution
1866modes: parallelization, running tests in boxed subprocesses, the ability
1867to run tests repeatedly when failed, and the ability to run tests on multiple
1868Python interpreters or platforms. It uses rsync to copy the existing
1869program code to a remote location, executes there, and then syncs the
1870result back.")
fbe9abcc
EF
1871 (license license:expat)
1872 (properties `((python2-variant . ,(delay python2-pytest-xdist))))))
8fa58fc9
CAW
1873
1874(define-public python2-pytest-xdist
fbe9abcc
EF
1875 (let ((base (package-with-python2
1876 (strip-python2-variant python-pytest-xdist))))
1877 (package
1878 (inherit base)
1879 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1880 ,@(package-native-inputs base))))))
8fa58fc9 1881
84d24017
DT
1882(define-public python-scripttest
1883 (package
1884 (name "python-scripttest")
1885 (version "1.3")
1886 (source
1887 (origin
1888 (method url-fetch)
1889 (uri (string-append
1890 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1891 version ".tar.gz"))
1892 (sha256
1893 (base32
1894 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1895 (build-system python-build-system)
1896 (inputs
1897 `(("python-setuptools" ,python-setuptools)
1898 ("python-pytest" ,python-pytest)))
1899 (home-page "http://pythonpaste.org/scripttest/")
1900 (synopsis "Python library to test command-line scripts")
1901 (description "Scripttest is a Python helper library for testing
1902interactive command-line applications. With it you can run a script in a
1903subprocess and see the output as well as any file modifications.")
bd3fa666 1904 (license license:expat)))
84d24017
DT
1905
1906(define-public python2-scripttest
1907 (package-with-python2 python-scripttest))
1908
d8fa80e1
DT
1909(define-public python-testtools
1910 (package
1911 (name "python-testtools")
1912 (version "1.0.0")
1913 (source
1914 (origin
1915 (method url-fetch)
1916 (uri (string-append
1917 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1918 version ".tar.gz"))
1919 (sha256
1920 (base32
1921 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1922 (build-system python-build-system)
0e88cbf8
CR
1923 (propagated-inputs
1924 `(("python-mimeparse" ,python-mimeparse)))
d8fa80e1
DT
1925 (inputs
1926 `(("python-setuptools" ,python-setuptools)
d8fa80e1
DT
1927 ("python-extras" ,python-extras)))
1928 (home-page "https://github.com/testing-cabal/testtools")
1929 (synopsis
1930 "Extensions to the Python standard library unit testing framework")
1931 (description
1932 "Testtools extends the Python standard library unit testing framework to
1933provide matchers, more debugging information, and cross-Python
1934compatibility.")
3f641af0 1935 (license license:psfl)))
d8fa80e1
DT
1936
1937(define-public python2-testtools
1938 (package-with-python2 python-testtools))
1939
5bf3afea
DT
1940(define-public python-testscenarios
1941 (package
1942 (name "python-testscenarios")
1943 (version "0.4")
1944 (source
1945 (origin
1946 (method url-fetch)
1947 (uri (string-append
1948 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1949 version ".tar.gz"))
1950 (sha256
1951 (base32
1952 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1953 (build-system python-build-system)
1954 (inputs
1955 `(("python-setuptools" ,python-setuptools)
1956 ("python-testtools" ,python-testtools)
1957 ("python-mimeparse" ,python-mimeparse)))
1958 (home-page "https://launchpad.net/testscenarios")
1959 (synopsis "Pyunit extension for dependency injection")
1960 (description
1961 "Testscenarios provides clean dependency injection for Python unittest
1962style tests.")
3f641af0 1963 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
5bf3afea
DT
1964
1965(define-public python2-testscenarios
1966 (package-with-python2 python-testscenarios))
1967
dac79ecc
DT
1968(define-public python-testresources
1969 (package
1970 (name "python-testresources")
1971 (version "0.2.7")
1972 (source
1973 (origin
1974 (method url-fetch)
1975 (uri (string-append
1976 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1977 version ".tar.gz"))
1978 (sha256
1979 (base32
1980 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1981 (build-system python-build-system)
1982 (inputs
1983 `(("python-setuptools" ,python-setuptools)))
1984 (home-page "https://launchpad.net/testresources")
1985 (synopsis
1986 "Pyunit extension for managing test resources")
1987 (description
1988 "Testresources is an extension to Python's unittest to allow declarative
1989use of resources by test cases.")
3f641af0 1990 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
dac79ecc
DT
1991
1992(define-public python2-testresources
1993 (package-with-python2 python-testresources))
1994
070ab058
DT
1995(define-public python-subunit
1996 (package
1997 (name "python-subunit")
1998 (version "0.0.21")
1999 (source
2000 (origin
2001 (method url-fetch)
2002 (uri (string-append
2003 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
2004 version ".tar.gz"))
2005 (sha256
2006 (base32
2007 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
2008 (build-system python-build-system)
2009 (inputs
2010 `(("python-setuptools" ,python-setuptools)
2011 ("python-testtools" ,python-testtools)
2012 ("python-mimeparse" ,python-mimeparse)
2013 ("python-testscenarios" ,python-testscenarios)))
2014 (home-page "http://launchpad.net/subunit")
2015 (synopsis "Python implementation of the subunit protocol")
2016 (description
2017 "Python-subunit is a Python implementation of the subunit test streaming
2018protocol.")
3f641af0 2019 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
070ab058
DT
2020
2021(define-public python2-subunit
2022 (package-with-python2 python-subunit))
2023
7787ef76
CR
2024;; Recent versions of python-fixtures need a recent version of python-pbr,
2025;; which needs a recent version of python-fixtures. To fix this circular
2026;; dependency, we keep old versions of python-fixtures and python-pbr to
2027;; bootstrap the whole thing:
2028;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
2029;; - python-pbr-0.11 is used to build python-fixtures
2030;; - python-fixtures is used to build python-pbr
2031(define-public python-fixtures-0.3.16
cd49454b
DT
2032 (package
2033 (name "python-fixtures")
2034 (version "0.3.16")
2035 (source
2036 (origin
2037 (method url-fetch)
2038 (uri (string-append
2039 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
2040 version ".tar.gz"))
2041 (sha256
2042 (base32
2043 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
2044 (build-system python-build-system)
2045 (inputs
2046 `(("python-setuptools" ,python-setuptools)))
2047 (arguments
2048 '(#:tests? #f)) ; no setup.py test command
2049 (home-page "https://launchpad.net/python-fixtures")
2050 (synopsis "Python test fixture library")
2051 (description
2052 "Fixtures provides a way to create reusable state, useful when writing
2053Python tests.")
3f641af0 2054 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
cd49454b 2055
7787ef76
CR
2056(define-public python2-fixtures-0.3.16
2057 (package-with-python2 python-fixtures-0.3.16))
2058
2059(define-public python-pbr-0.11
2060 (package
2061 (name "python-pbr")
2062 (version "0.11.0")
2063 (source
2064 (origin
2065 (method url-fetch)
2066 (uri (string-append
2067 "https://pypi.python.org/packages/source/p/pbr/pbr-"
2068 version ".tar.gz"))
2069 (sha256
2070 (base32
2071 "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
2072 (build-system python-build-system)
2073 (arguments
2074 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2075 (inputs
2076 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
2077 ("python-pip" ,python-pip)
2078 ("python-setuptools" ,python-setuptools)))
2079 (home-page "https://launchpad.net/pbr")
2080 (synopsis "Change the default behavior of Python’s setuptools")
2081 (description
2082 "Python Build Reasonableness (PBR) is a library that injects some useful
2083and sensible default behaviors into your setuptools run.")
3f641af0 2084 (license license:asl2.0)))
7787ef76
CR
2085
2086(define-public python2-pbr-0.11
2087 (package-with-python2 python-pbr-0.11))
2088
1ef09c0c 2089(define-public python-pbr
e25f0174
BW
2090 (package
2091 (name "python-pbr")
1ef09c0c
BW
2092 (version "1.8.1")
2093 (source
e25f0174
BW
2094 (origin
2095 (method url-fetch)
2096 (uri (string-append
2097 "https://pypi.python.org/packages/source/p/pbr/pbr-"
2098 version
2099 ".tar.gz"))
2100 (sha256
2101 (base32
2102 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
1ef09c0c 2103 (build-system python-build-system)
e25f0174
BW
2104 (arguments
2105 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2106 (propagated-inputs
2107 `(("python-testrepository" ,python-testrepository)
2108 ("git" ,git))) ;; pbr actually uses the "git" binary.
1ef09c0c 2109 (inputs
e25f0174
BW
2110 `(("python-fixtures" ,python-fixtures)
2111 ("python-mimeparse" ,python-mimeparse)
2112 ("python-mock" ,python-mock)
2113 ("python-setuptools" ,python-setuptools)
2114 ("python-six" ,python-six)
2115 ("python-sphinx" ,python-sphinx)
2116 ("python-testrepository" ,python-testrepository)
2117 ("python-testresources" ,python-testresources)
2118 ("python-testscenarios" ,python-testscenarios)
2119 ("python-testtools" ,python-testtools)
2120 ("python-virtualenv" ,python-virtualenv)))
2121 (home-page "https://launchpad.net/pbr")
2122 (synopsis "Change the default behavior of Python’s setuptools")
2123 (description
2124 "Python Build Reasonableness (PBR) is a library that injects some useful
2125and sensible default behaviors into your setuptools run.")
3f641af0 2126 (license license:asl2.0)))
1ef09c0c
BW
2127
2128(define-public python2-pbr
e25f0174 2129 (package-with-python2 python-pbr))
1ef09c0c 2130
7787ef76
CR
2131(define-public python-fixtures
2132 (package
2133 (name "python-fixtures")
13fcc6df 2134 (version "1.4.0")
7787ef76
CR
2135 (source
2136 (origin
2137 (method url-fetch)
13fcc6df 2138 (uri (pypi-uri "fixtures" version))
7787ef76
CR
2139 (sha256
2140 (base32
13fcc6df 2141 "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
7787ef76
CR
2142 (build-system python-build-system)
2143 (propagated-inputs
2144 `(("python-six" ,python-six)
2145 ("python-pbr-0.11" ,python-pbr-0.11)))
2146 (inputs
2147 `(("python-pip" ,python-pip)
2148 ("python-setuptools" ,python-setuptools)
2149 ;; Tests
2150 ("python-testtools" ,python-testtools)))
2151 (arguments
2152 '(#:tests? #f)) ; no setup.py test command
2153 (home-page "https://launchpad.net/python-fixtures")
2154 (synopsis "Python test fixture library")
2155 (description
2156 "Fixtures provides a way to create reusable state, useful when writing
2157Python tests.")
3f641af0 2158 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
7787ef76 2159
cd49454b
DT
2160(define-public python2-fixtures
2161 (package-with-python2 python-fixtures))
2162
b24a0c00
DT
2163(define-public python-testrepository
2164 (package
2165 (name "python-testrepository")
2166 (version "0.0.20")
2167 (source
2168 (origin
2169 (method url-fetch)
2170 (uri (string-append
2171 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
2172 version ".tar.gz"))
2173 (sha256
2174 (base32
2175 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
2176 (build-system python-build-system)
05de40c5 2177 (propagated-inputs
7787ef76 2178 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
05de40c5 2179 ("python-testtools" ,python-testtools)))
b24a0c00
DT
2180 (inputs
2181 `(("python-setuptools" ,python-setuptools)
b24a0c00 2182 ("python-subunit" ,python-subunit)
b24a0c00
DT
2183 ("python-mimeparse" ,python-mimeparse)))
2184 (home-page "https://launchpad.net/testrepository")
2185 (synopsis "Database for Python test results")
2186 (description "Testrepository provides a database of test results which can
2187be used as part of a developer's workflow to check things such as what tests
2188have failed since the last commit or what tests are currently failing.")
3f641af0 2189 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
b24a0c00
DT
2190
2191(define-public python2-testrepository
2192 (package-with-python2 python-testrepository))
2193
243a009a
DT
2194(define-public python-coverage
2195 (package
2196 (name "python-coverage")
4d4cf3dd 2197 (version "4.1")
243a009a
DT
2198 (source
2199 (origin
2200 (method url-fetch)
82a3c582 2201 (uri (pypi-uri "coverage" version))
243a009a
DT
2202 (sha256
2203 (base32
4d4cf3dd 2204 "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1"))))
243a009a
DT
2205 (build-system python-build-system)
2206 (inputs
2207 `(("python-setuptools" ,python-setuptools)))
2208 (home-page "http://nedbatchelder.com/code/coverage")
2209 (synopsis "Code coverage measurement for Python")
2210 (description
2211 "Coverage measures code coverage, typically during test execution. It
2212uses the code analysis tools and tracing hooks provided in the Python standard
2213library to determine which lines are executable, and which have been
2214executed.")
3f641af0 2215 (license license:bsd-3)))
243a009a
DT
2216
2217(define-public python2-coverage
2218 (package-with-python2 python-coverage))
2219
12f839fd
EF
2220(define-public python-cov-core
2221 (package
2222 (name "python-cov-core")
2223 (version "1.15.0")
2224 (source
2225 (origin
2226 (method url-fetch)
2227 (uri (pypi-uri "cov-core" version))
2228 (sha256
2229 (base32
2230 "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a"))))
2231 (build-system python-build-system)
2232 (native-inputs
2233 `(("python-coverage" ,python-coverage)))
2234 (home-page "https://github.com/schlamar/cov-core")
2235 (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov")
2236 (description
2237 "This is a library package for use by pytest-cov, nose-cov and nose2-cov.
2238It is useful for developing coverage plugins for these testing frameworks.")
8120205c
EF
2239 (license license:expat)
2240 (properties `((python2-variant . ,(delay python2-cov-core))))))
12f839fd
EF
2241
2242(define-public python2-cov-core
8120205c 2243 (let ((cov-core (package-with-python2 (strip-python2-variant python-cov-core))))
12f839fd
EF
2244 (package (inherit cov-core)
2245 (native-inputs
2246 `(("python2-setuptools" ,python2-setuptools)
2247 ,@(package-native-inputs cov-core))))))
2248
041358fb
DT
2249(define-public python-discover
2250 (package
2251 (name "python-discover")
2252 (version "0.4.0")
2253 (source
2254 (origin
2255 (method url-fetch)
2256 (uri (string-append
2257 "https://pypi.python.org/packages/source/d/discover/discover-"
2258 version ".tar.gz"))
2259 (sha256
2260 (base32
2261 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
2262 (build-system python-build-system)
2263 (inputs
2264 `(("python-setuptools" ,python-setuptools)))
2265 (home-page "http://pypi.python.org/pypi/discover/")
2266 (synopsis
2267 "Python test discovery for unittest")
2268 (description
2269 "Discover provides test discovery for unittest, a feature that has been
e881752c 2270backported from Python 2.7 for Python 2.4+.")
3f641af0 2271 (license license:bsd-3)))
041358fb
DT
2272
2273(define-public python2-discover
2274 (package-with-python2 python-discover))
2275
a480bc41
EB
2276(define-public behave
2277 (package
2278 (name "behave")
287cfd1a 2279 (version "1.2.5")
a480bc41
EB
2280 (source (origin
2281 (method url-fetch)
287cfd1a 2282 (uri (pypi-uri "behave" version ".tar.bz2"))
a480bc41
EB
2283 (sha256
2284 (base32
287cfd1a 2285 "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c"))))
a480bc41
EB
2286 (build-system python-build-system)
2287 (inputs
2288 `(("python-setuptools" ,python-setuptools)
2289 ("python-six" ,python-six)
a480bc41
EB
2290 ("python-parse" ,python-parse)
2291 ("python-parse-type" ,python-parse-type)))
2292 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
2293 ;PyHamcrest>=1.8
2294 (home-page "http://github.com/behave/behave")
2295 (synopsis "Python behavior-driven development")
2296 (description
2297 "Behave is a tool for behavior-driven development in python.
2298Behavior-driven development (or BDD) is an agile software development
2299technique that encourages collaboration between developers, QA and
2300non-technical or business participants in a software project. Behave uses
2301tests written in a natural language style, backed up by Python code.")
3f641af0 2302 (license license:x11)))
c7303d3c
DT
2303
2304(define-public python-exif-read
2305 (package
2306 (name "python-exif-read")
2a2d0981 2307 (version "2.1.2")
c7303d3c
DT
2308 (source (origin
2309 (method url-fetch)
2a2d0981 2310 (uri (pypi-uri "ExifRead" version))
c7303d3c
DT
2311 (sha256
2312 (base32
2a2d0981 2313 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
c7303d3c
DT
2314 (build-system python-build-system)
2315 (inputs
2316 `(("python-setuptools" ,python-setuptools)))
2317 (arguments `(#:tests? #f)) ; no tests
2318 (home-page "https://github.com/ianare/exif-py")
2319 (synopsis "Python library to extract EXIF data from image files")
2320 (description
2321 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2322files.")
3f641af0 2323 (license license:bsd-3)))
c7303d3c
DT
2324
2325(define-public python2-exif-read
2326 (package-with-python2 python-exif-read))
d5f89b22
DT
2327
2328(define-public python-pyld
2329 (package
2330 (name "python-pyld")
8957af32 2331 (version "0.7.1")
d5f89b22
DT
2332 (source (origin
2333 (method url-fetch)
af1ab773 2334 (uri (pypi-uri "PyLD" version))
d5f89b22
DT
2335 (sha256
2336 (base32
8957af32 2337 "1m0fs6897vxfkf7awah5i66i7b7smm5fnywf1w50fpzyfbfhr156"))))
d5f89b22
DT
2338 (build-system python-build-system)
2339 (inputs
2340 `(("python-setuptools" ,python-setuptools)))
2341 (arguments `(#:tests? #f)) ; no tests
2342 (home-page "http://github.com/digitalbazaar/pyld")
2343 (synopsis "Python implementation of the JSON-LD specification")
2344 (description
2345 "PyLD is an implementation of the JSON-LD specification.")
3f641af0 2346 (license license:bsd-3)))
d5f89b22
DT
2347
2348(define-public python2-pyld
2349 (package-with-python2 python-pyld))
3a1f9a68
DT
2350
2351(define-public python-certifi
2352 (package
2353 (name "python-certifi")
b2a2232c 2354 (version "2016.8.31")
3a1f9a68
DT
2355 (source (origin
2356 (method url-fetch)
9a41f443 2357 (uri (pypi-uri "certifi" version))
3a1f9a68
DT
2358 (sha256
2359 (base32
b2a2232c 2360 "06c9dcyv8ss050gkv5xjivbxhm6qm0s9vzy4r33wqabgv118lw7p"))))
3a1f9a68
DT
2361 (build-system python-build-system)
2362 (inputs
2363 `(("python-setuptools" ,python-setuptools)))
2364 (arguments `(#:tests? #f)) ; no tests
2365 (home-page "http://python-requests.org/")
2366 (synopsis "Python CA certificate bundle")
2367 (description
2368 "Certifi is a Python library that contains a CA certificate bundle, which
2369is used by the Requests library to verify HTTPS requests.")
3f641af0 2370 (license license:asl2.0)))
3a1f9a68
DT
2371
2372(define-public python2-certifi
2373 (package-with-python2 python-certifi))
e6cfbd36 2374
12c270dd
RW
2375(define-public python-click
2376 (package
2377 (name "python-click")
43accb58 2378 (version "6.6")
12c270dd
RW
2379 (source
2380 (origin
2381 (method url-fetch)
375f224b 2382 (uri (pypi-uri "click" version))
12c270dd 2383 (sha256
43accb58
LF
2384 (base32
2385 "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc"))))
12c270dd 2386 (build-system python-build-system)
e2ab5a09
BW
2387 (arguments
2388 `(#:phases
2389 (modify-phases %standard-phases
2390 (add-after 'unpack 'fix-paths
2391 (lambda* (#:key inputs #:allow-other-keys)
2392 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
2393 "cross-libc" "libc"))))
2394 (substitute* "click/_unicodefun.py"
2395 (("'locale'")
2396 (string-append "'" glibc "/bin/locale'"))))
2397 #t)))))
12c270dd
RW
2398 (native-inputs
2399 `(("python-setuptools" ,python-setuptools)))
2400 (home-page "http://click.pocoo.org")
2401 (synopsis "Command line library for Python")
2402 (description
2403 "Click is a Python package for creating command line interfaces in a
2404composable way with as little code as necessary. Its name stands for
2405\"Command Line Interface Creation Kit\". It's highly configurable but comes
2406with sensible defaults out of the box.")
3f641af0 2407 (license license:bsd-3)))
12c270dd
RW
2408
2409(define-public python2-click
2410 (package-with-python2 python-click))
2411
addc808d
EF
2412(define-public python-wheel
2413 (package
2414 (name "python-wheel")
40981b5c 2415 (version "0.29.0")
e1ba0749
EF
2416 (source
2417 (origin
2418 (method url-fetch)
2419 (uri (pypi-uri "wheel" version))
2420 (sha256
2421 (base32
40981b5c 2422 "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
e1ba0749
EF
2423 (build-system python-build-system)
2424 (native-inputs
2425 `(("python-setuptools" ,python-setuptools)
2426 ("python-jsonschema" ,python-jsonschema)
2427 ("python-pytest-cov" ,python-pytest-cov)))
2428 (home-page "https://bitbucket.org/pypa/wheel/")
2429 (synopsis "Format for built Python packages")
2430 (description
2431 "A wheel is a ZIP-format archive with a specially formatted filename and
2432the @code{.whl} extension. It is designed to contain all the files for a PEP
2433376 compatible install in a way that is very close to the on-disk format. Many
2434packages will be properly installed with only the @code{Unpack} step and the
2435unpacked archive preserves enough information to @code{Spread} (copy data and
2436scripts to their final locations) at any later time. Wheel files can be
2437installed with a newer @code{pip} or with wheel's own command line utility.")
8ad4ae20
LF
2438 (license license:expat)
2439 (properties `((python2-variant . ,(delay python2-wheel))))))
addc808d
EF
2440
2441(define-public python2-wheel
8ad4ae20
LF
2442 (let ((wheel (package-with-python2
2443 (strip-python2-variant python-wheel))))
264ae686 2444 (package (inherit wheel)
8ad4ae20
LF
2445 (native-inputs `(("python2-functools32" ,python2-functools32)
2446 ,@(package-native-inputs wheel))))))
2447
addc808d 2448
ae641128 2449(define-public python-requests
e6cfbd36 2450 (package
ae641128 2451 (name "python-requests")
74a066f9 2452 (version "2.9.1")
e6cfbd36
DT
2453 (source (origin
2454 (method url-fetch)
5d691657 2455 (uri (pypi-uri "requests" version))
e6cfbd36
DT
2456 (sha256
2457 (base32
74a066f9 2458 "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
e6cfbd36 2459 (build-system python-build-system)
5d691657 2460 (native-inputs
6a308947
EF
2461 `(("python-setuptools" ,python-setuptools)
2462 ("python-py" ,python-py)
5d691657
EF
2463 ("python-pytest" ,python-pytest)
2464 ("python-pytest-cov" ,python-pytest-cov)
2465 ("python-wheel" ,python-wheel)))
e6cfbd36
DT
2466 (home-page "http://python-requests.org/")
2467 (synopsis "Python HTTP library")
2468 (description
2469 "Requests is a Python HTTP client library. It aims to be easier to use
2470than Python’s urllib2 library.")
3f641af0 2471 (license license:asl2.0)))
864b5211 2472
e9005180
DT
2473;; Some software requires an older version of Requests, notably Docker
2474;; Compose.
2475(define-public python-requests-2.7
2476 (package (inherit python-requests)
2477 (version "2.7.0")
2478 (source (origin
2479 (method url-fetch)
2480 (uri (pypi-uri "requests" version))
2481 (sha256
2482 (base32
2483 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
2484
ae641128 2485(define-public python2-requests
8ad4ae20 2486 (package-with-python2 python-requests))
ae641128 2487
ea521b42
DT
2488(define-public python-vcversioner
2489 (package
2490 (name "python-vcversioner")
538fe019 2491 (version "2.16.0.0")
ea521b42
DT
2492 (source
2493 (origin
2494 (method url-fetch)
2495 (uri (pypi-uri "vcversioner" version))
2496 (sha256
2497 (base32
538fe019 2498 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
ea521b42 2499 (build-system python-build-system)
ea521b42
DT
2500 (synopsis "Python library for version number discovery")
2501 (description "Vcversioner is a Python library that inspects tagging
2502information in a variety of version control systems in order to discover
2503version numbers.")
2504 (home-page "https://github.com/habnabit/vcversioner")
538fe019
EF
2505 (license license:isc)
2506 (properties `((python2-variant . ,(delay python2-vcversioner))))))
ea521b42
DT
2507
2508(define-public python2-vcversioner
538fe019
EF
2509 (let ((vcversioner (package-with-python2
2510 (strip-python2-variant python-vcversioner))))
2511 (package (inherit vcversioner)
2512 (native-inputs `(("python2-setuptools" ,python2-setuptools)
2513 ,@(package-native-inputs vcversioner))))))
ae641128 2514
864b5211
DT
2515(define-public python-jsonschema
2516 (package
2517 (name "python-jsonschema")
b3667afb 2518 (version "2.5.1")
864b5211
DT
2519 (source (origin
2520 (method url-fetch)
2521 (uri
2522 (string-append
2523 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
2524 version ".tar.gz"))
2525 (sha256
2526 (base32
b3667afb 2527 "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
864b5211 2528 (build-system python-build-system)
8bcd6b91
EF
2529 (arguments
2530 '(#:phases
2531 (modify-phases %standard-phases
2532 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
eaba9d66 2533 (native-inputs
8bcd6b91
EF
2534 `(("python-nose" ,python-nose)
2535 ("python-vcversioner" ,python-vcversioner)))
2536 (home-page "https://github.com/Julian/jsonschema")
864b5211
DT
2537 (synopsis "Implementation of JSON Schema for Python")
2538 (description
2539 "Jsonschema is an implementation of JSON Schema for Python.")
a14600ec
LF
2540 (license license:expat)
2541 (properties `((python2-variant . ,(delay python2-jsonschema))))))
864b5211
DT
2542
2543(define-public python2-jsonschema
a14600ec
LF
2544 (let ((jsonschema (package-with-python2
2545 (strip-python2-variant python-jsonschema))))
264ae686 2546 (package (inherit jsonschema)
eaba9d66 2547 (native-inputs
8bcd6b91
EF
2548 `(("python2-mock" ,python2-mock)
2549 ("python2-setuptools" ,python2-setuptools)
eaba9d66
MB
2550 ,@(package-native-inputs jsonschema)))
2551 (propagated-inputs
2552 `(("python2-functools32" ,python2-functools32))))))
850189b8
DT
2553
2554(define-public python-unidecode
2555 (package
2556 (name "python-unidecode")
8925d4f3 2557 (version "0.04.18")
850189b8
DT
2558 (source (origin
2559 (method url-fetch)
8925d4f3 2560 (uri (pypi-uri "Unidecode" version))
850189b8
DT
2561 (sha256
2562 (base32
8925d4f3 2563 "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
850189b8
DT
2564 (build-system python-build-system)
2565 (inputs
2566 `(("python-setuptools" ,python-setuptools)))
2567 (home-page "https://pypi.python.org/pypi/Unidecode")
2568 (synopsis "ASCII transliterations of Unicode text")
2569 (description
2570 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2571useful when integrating with legacy code that doesn't support Unicode, or for
2572ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2573machine identifiers from human-readable Unicode strings that should still be
2574somewhat intelligeble.")
3f641af0 2575 (license license:gpl2+)))
850189b8
DT
2576
2577(define-public python2-unidecode
2578 (package-with-python2 python-unidecode))
6d45fef4
DT
2579
2580(define-public python-pyjwt
2581 (package
2582 (name "python-pyjwt")
eb31d4b4 2583 (version "1.4.0")
6d45fef4
DT
2584 (source
2585 (origin
2586 (method url-fetch)
eb31d4b4 2587 (uri (pypi-uri "PyJWT" version))
6d45fef4
DT
2588 (sha256
2589 (base32
eb31d4b4 2590 "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
6d45fef4 2591 (build-system python-build-system)
eb31d4b4
EF
2592 (native-inputs
2593 `(("python-setuptools" ,python-setuptools)
2594 ("python-pytest-runner" ,python-pytest-runner)))
6d45fef4
DT
2595 (arguments
2596 '(#:tests? #f)) ; test suite doesn't work
2597 (home-page "http://github.com/progrium/pyjwt")
2598 (synopsis "JSON Web Token implementation in Python")
2599 (description
2600 "PyJWT is a JSON Web Token implementation written in Python.")
bd3fa666 2601 (license license:expat)))
6d45fef4
DT
2602
2603(define-public python2-pyjwt
2604 (package-with-python2 python-pyjwt))
2605
2cec1f6f
DT
2606(define-public python-oauthlib
2607 (package
2608 (name "python-oauthlib")
bde2171d 2609 (version "1.0.3")
2cec1f6f
DT
2610 (source (origin
2611 (method url-fetch)
bde2171d 2612 (uri (pypi-uri "oauthlib" version))
2cec1f6f
DT
2613 (sha256
2614 (base32
bde2171d 2615 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
2cec1f6f 2616 (build-system python-build-system)
bde2171d 2617 (native-inputs
59f151ec 2618 `(("python-coverage" ,python-coverage)
2cec1f6f
DT
2619 ("python-nose" ,python-nose)
2620 ("python-mock" ,python-mock)))
bde2171d
EF
2621 (inputs
2622 `(("python-blinker" ,python-blinker)
2623 ("python-cryptography" ,python-cryptography)
2624 ("python-pyjwt" ,python-pyjwt)))
2cec1f6f
DT
2625 (home-page "https://github.com/idan/oauthlib")
2626 (synopsis "OAuth implementation for Python")
2627 (description
2628 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2629OAuth request-signing logic.")
3f641af0 2630 (license license:bsd-3)
59f151ec 2631 (properties `((python2-variant . ,(delay python2-oauthlib))))))
2cec1f6f
DT
2632
2633(define-public python2-oauthlib
59f151ec 2634 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
2cec1f6f
DT
2635 (package
2636 (inherit base)
59f151ec
EF
2637 (native-inputs `(("python2-setuptools" ,python2-setuptools)
2638 ("python2-unittest2" ,python2-unittest2)
2639 ,@(package-native-inputs base))))))
ec5dbb5c
DT
2640
2641(define-public python-itsdangerous
2642 (package
2643 (name "python-itsdangerous")
2644 (version "0.24")
2645 (source
2646 (origin
2647 (method url-fetch)
2648 (uri (string-append
2649 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2650 version ".tar.gz"))
2651 (sha256
2652 (base32
2653 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2654 (build-system python-build-system)
ec5dbb5c
DT
2655 (home-page "http://github.com/mitsuhiko/itsdangerous")
2656 (synopsis "Python library for passing data to/from untrusted environments")
2657 (description
2658 "Itsdangerous provides various helpers to pass trusted data to untrusted
2659environments and back.")
3f641af0 2660 (license license:bsd-3)
194d0d98 2661 (properties `((python2-variant . ,(delay python2-itsdangerous))))))
ec5dbb5c
DT
2662
2663(define-public python2-itsdangerous
194d0d98
EF
2664 (let ((base (package-with-python2
2665 (strip-python2-variant python-itsdangerous))))
2666 (package
2667 (inherit base)
2668 (native-inputs `(("python2-setuptools" ,python2-setuptools)
2669 ,@(package-native-inputs base))))))
5731cae3 2670
8d12be1e
RW
2671(define-public python-pyyaml
2672 (package
2673 (name "python-pyyaml")
2674 (version "3.11")
2675 (source
2676 (origin
2677 (method url-fetch)
2678 (uri (string-append
2679 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2680 version ".tar.gz"))
2681 (sha256
2682 (base32
2683 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2684 (build-system python-build-system)
2685 (inputs
2686 `(("libyaml" ,libyaml)))
2687 (native-inputs
2688 `(("python-setuptools" ,python-setuptools)))
2689 (home-page "http://pyyaml.org/wiki/PyYAML")
2690 (synopsis "YAML parser and emitter for Python")
2691 (description
2692 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2693complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2694API, and sensible error messages. PyYAML supports standard YAML tags and
2695provides Python-specific tags that allow to represent an arbitrary Python
2696object.")
2697 (license license:expat)))
2698
2699(define-public python2-pyyaml
2700 (package-with-python2 python-pyyaml))
2701
5731cae3
DT
2702(define-public python-virtualenv
2703 (package
2704 (name "python-virtualenv")
58d04dba 2705 (version "15.0.3")
5731cae3
DT
2706 (source
2707 (origin
2708 (method url-fetch)
17804240 2709 (uri (pypi-uri "virtualenv" version))
5731cae3
DT
2710 (sha256
2711 (base32
58d04dba 2712 "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d"))))
5731cae3 2713 (build-system python-build-system)
17804240
EF
2714 (arguments
2715 `(#:phases
2716 (modify-phases %standard-phases
58d04dba
RW
2717 (replace 'check
2718 (lambda _
2719 ;; Disable failing test. See upstream bug report
2720 ;; https://github.com/pypa/virtualenv/issues/957
2721 (substitute* "tests/test_virtualenv.py"
2722 (("skipif.*") "skipif(True, reason=\"Guix\")\n"))
2723 (zero? (system* "py.test")))))))
5731cae3
DT
2724 (inputs
2725 `(("python-setuptools" ,python-setuptools)
2726 ("python-mock" ,python-mock)
17804240 2727 ("python-pytest" ,python-pytest)))
5731cae3
DT
2728 (home-page "https://virtualenv.pypa.io/")
2729 (synopsis "Virtual Python environment builder")
2730 (description
2731 "Virtualenv is a tool to create isolated Python environments.")
bd3fa666 2732 (license license:expat)))
5731cae3
DT
2733
2734(define-public python2-virtualenv
2735 (package-with-python2 python-virtualenv))
8176d4d5
DT
2736
2737(define-public python-markupsafe
2738 (package
2739 (name "python-markupsafe")
2740 (version "0.23")
2741 (source
2742 (origin
2743 (method url-fetch)
2744 (uri (string-append
2745 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2746 version ".tar.gz"))
2747 (sha256
2748 (base32
2749 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2750 (build-system python-build-system)
2751 (inputs
2752 `(("python-setuptools" ,python-setuptools)))
2753 (home-page "http://github.com/mitsuhiko/markupsafe")
2754 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2755 (description
2756 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2757for Python.")
3f641af0 2758 (license license:bsd-3)))
8176d4d5
DT
2759
2760(define-public python2-markupsafe
2761 (package-with-python2 python-markupsafe))
fe34f0d1
DT
2762
2763(define-public python-jinja2
2764 (package
2765 (name "python-jinja2")
e98149b3 2766 (version "2.8")
fe34f0d1
DT
2767 (source
2768 (origin
2769 (method url-fetch)
e98149b3 2770 (uri (pypi-uri "Jinja2" version))
fe34f0d1
DT
2771 (sha256
2772 (base32
e98149b3 2773 "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
fe34f0d1
DT
2774 (build-system python-build-system)
2775 (inputs
2776 `(("python-setuptools" ,python-setuptools)
2777 ("python-markupsafe" ,python-markupsafe)))
2778 (home-page "http://jinja.pocoo.org/")
2779 (synopsis "Python template engine")
2780 (description
2781 "Jinja2 is a small but fast and easy to use stand-alone template engine
2782written in pure Python.")
3f641af0 2783 (license license:bsd-3)))
fe34f0d1
DT
2784
2785(define-public python2-jinja2
2786 (package-with-python2 python-jinja2))
3580ab8b 2787
f7d17ac7
EE
2788(define-public python-pystache
2789 (package
2790 (name "python-pystache")
2791 (version "0.5.4")
2792 (source (origin
2793 (method url-fetch)
2794 (uri (pypi-uri "pystache" version))
2795 (sha256
2796 (base32
2797 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2798 (build-system python-build-system)
2799 (native-inputs
2800 `(("python-setuptools" ,python-setuptools)))
2801 (home-page "http://defunkt.io/pystache/")
2802 (synopsis "Python logic-less template engine")
2803 (description
2804 "Pystache is a Python implementation of the framework agnostic,
2805logic-free templating system Mustache.")
2806 (license license:expat)))
2807
2808(define-public python2-pystache
2809 (package-with-python2 python-pystache))
2810
1285119b
RW
2811(define-public python-joblib
2812 (package
2813 (name "python-joblib")
f34ef331 2814 (version "0.10.3")
1285119b
RW
2815 (source (origin
2816 (method url-fetch)
f34ef331 2817 (uri (pypi-uri "joblib" version))
1285119b
RW
2818 (sha256
2819 (base32
f34ef331 2820 "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9"))))
1285119b 2821 (build-system python-build-system)
a8dd960a
RW
2822 (arguments
2823 `(#:phases
2824 (modify-phases %standard-phases
2825 (add-before 'check 'disable-failing-tests
2826 (lambda _
2827 ;; This numpydoc tests fails for unknown reasons
2828 (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py")
2829 ;; This numpydoc test depends on matplotlib, which is not a
2830 ;; required input.
2831 (delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py")
2832 ;; These tests fail to execute sys.executable
2833 (substitute* "joblib/test/test_parallel.py"
2834 (("import nose" line)
2835 (string-append "from nose.plugins.skip import SkipTest\n" line))
2836 (("def test_nested_parallel_warnings" line)
2837 (string-append "@SkipTest\n" line))
2838 (("def test_parallel_with_interactively_defined_functions" line)
2839 (string-append "@SkipTest\n" line)))
2840 #t)))))
1285119b
RW
2841 (native-inputs
2842 `(("python-setuptools" ,python-setuptools)
f34ef331
RW
2843 ("python-nose" ,python-nose)
2844 ("python-sphinx" ,python-sphinx)
2845 ("python-docutils" ,python-docutils)
2846 ("python-numpydoc" ,python-numpydoc)))
1285119b
RW
2847 (home-page "http://pythonhosted.org/joblib/")
2848 (synopsis "Using Python functions as pipeline jobs")
2849 (description
2850 "Joblib is a set of tools to provide lightweight pipelining in Python.
2851In particular, joblib offers: transparent disk-caching of the output values
2852and lazy re-evaluation (memoize pattern), easy simple parallel computing
2853logging and tracing of the execution.")
3f641af0 2854 (license license:bsd-3)))
1285119b
RW
2855
2856(define-public python2-joblib
2857 (package-with-python2 python-joblib))
2858
3580ab8b
DT
2859(define-public python-docutils
2860 (package
2861 (name "python-docutils")
2862 (version "0.12")
2863 (source
2864 (origin
2865 (method url-fetch)
2866 (uri (string-append
2867 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2868 version ".tar.gz"))
2869 (sha256
2870 (base32
2871 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2872 (build-system python-build-system)
2873 (inputs
2874 `(("python-setuptools" ,python-setuptools)))
2875 (arguments
2876 '(#:tests? #f)) ; no setup.py test command
2877 (home-page "http://docutils.sourceforge.net/")
2878 (synopsis "Python Documentation Utilities")
2879 (description
2880 "Docutils is a modular system for processing documentation into useful
2881formats, such as HTML, XML, and LaTeX. For input Docutils supports
2882reStructuredText.")
2883 ;; Most of the source code is public domain, but some source files are
2884 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
3f641af0 2885 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
3580ab8b
DT
2886
2887(define-public python2-docutils
2888 (package-with-python2 python-docutils))
fb35b7c0
DT
2889
2890(define-public python-pygments
2891 (package
2892 (name "python-pygments")
9f442285 2893 (version "2.0.2")
fb35b7c0
DT
2894 (source
2895 (origin
2896 (method url-fetch)
9f442285 2897 (uri (pypi-uri "Pygments" version))
fb35b7c0
DT
2898 (sha256
2899 (base32
9f442285 2900 "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
fb35b7c0
DT
2901 (build-system python-build-system)
2902 (inputs
2903 `(("python-setuptools" ,python-setuptools)))
2904 (home-page "http://pygments.org/")
2905 (synopsis "Syntax highlighting")
2906 (description
2907 "Pygments is a syntax highlighting package written in Python.")
3f641af0 2908 (license license:bsd-2)))
fb35b7c0
DT
2909
2910(define-public python2-pygments
2911 (package-with-python2 python-pygments))
9dd6078d
DT
2912
2913(define-public python-sphinx
2914 (package
2915 (name "python-sphinx")
2916 (version "1.2.3")
2917 (source
2918 (origin
2919 (method url-fetch)
2920 (uri (string-append
2921 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2922 version ".tar.gz"))
2923 (sha256
2924 (base32
2925 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2926 (build-system python-build-system)
2927 (inputs
2928 `(("python-setuptools" ,python-setuptools)
2929 ("python-jinja2" ,python-jinja2)
2930 ("python-docutils" ,python-docutils)
2931 ("python-pygments" ,python-pygments)))
2932 (home-page "http://sphinx-doc.org/")
2933 (synopsis "Python documentation generator")
2934 (description "Sphinx is a tool that makes it easy to create documentation
2935for Python projects or other documents consisting of multiple reStructuredText
2936sources.")
3f641af0 2937 (license license:bsd-3)))
9dd6078d
DT
2938
2939(define-public python2-sphinx
2940 (package-with-python2 python-sphinx))
6888830b 2941
ad320b20
RW
2942(define-public python-sphinx-rtd-theme
2943 (package
2944 (name "python-sphinx-rtd-theme")
2945 (version "0.1.6")
2946 (source
2947 (origin
2948 (method url-fetch)
2949 (uri (string-append "https://pypi.python.org/packages/source/s/"
2950 "sphinx_rtd_theme/sphinx_rtd_theme-"
2951 version ".tar.gz"))
2952 (sha256
2953 (base32
2954 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2955 (build-system python-build-system)
2956 (arguments
2957 `(;; With standard flags, the install phase attempts to create a zip'd
2958 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2959 ;; before 1980'
2960 #:configure-flags '("--single-version-externally-managed"
2961 "--record=sphinx-rtd-theme.txt")))
2962 (native-inputs
2963 `(("python-setuptools" ,python-setuptools)))
2964 (inputs
2965 `(("python-docutils" ,python-docutils)
2966 ("python-sphinx" ,python-sphinx)))
2967 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2968 (synopsis "ReadTheDocs.org theme for Sphinx")
2969 (description "A theme for Sphinx used by ReadTheDocs.org.")
bd3fa666 2970 (license license:expat)))
ad320b20
RW
2971
2972(define-public python2-sphinx-rtd-theme
2973 (package-with-python2 python-sphinx-rtd-theme))
2974
f4de5b3b
CAW
2975(define-public python-feedgenerator
2976 (package
2977 (name "python-feedgenerator")
f0412aa2 2978 (version "1.8")
f4de5b3b 2979 (source
f4de5b3b 2980 (origin
f0412aa2
EF
2981 (method url-fetch)
2982 (uri (pypi-uri "feedgenerator" version))
f4de5b3b
CAW
2983 (sha256
2984 (base32
f0412aa2 2985 "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0"))))
f4de5b3b 2986 (build-system python-build-system)
f0412aa2 2987 (native-inputs
f4de5b3b
CAW
2988 `(("python-setuptools" ,python-setuptools)
2989 ("python-pytz" ,python-pytz)
2990 ("python-six" ,python-six)))
f0412aa2 2991 (home-page "https://github.com/getpelican/feedgenerator")
f4de5b3b
CAW
2992 (synopsis
2993 "Standalone version of Django's Atom/RSS feed generator")
2994 (description
2995 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2996which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
3f641af0 2997 (license license:bsd-3)))
f4de5b3b
CAW
2998
2999(define-public python2-feedgenerator
3000 (package-with-python2 python-feedgenerator))
3001
59ad30e3
CAW
3002(define-public python-blinker
3003 (package
3004 (name "python-blinker")
7fb9ff4d 3005 (version "1.4")
59ad30e3
CAW
3006 (source
3007 (origin
3008 (method url-fetch)
7fb9ff4d 3009 (uri (pypi-uri "blinker" version))
59ad30e3
CAW
3010 (sha256
3011 (base32
7fb9ff4d 3012 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
59ad30e3
CAW
3013 (build-system python-build-system)
3014 (native-inputs
3015 `(("python-setuptools" ,python-setuptools)))
3016 ;; No "test" command supplied to setuptools, so unless there's another way
3017 ;; to run tests, we're skipping them!
3018 (arguments '(#:tests? #f))
3019 (home-page "http://pythonhosted.org/blinker/")
3020 (synopsis "Fast, simple object-to-object and broadcast signaling")
3021 (description
3022 "Blinker provides a fast dispatching system that allows any number of
3023interested parties to subscribe to events, or \"signals\".")
3024 (license license:expat)))
3025
3026(define-public python2-blinker
3027 (package-with-python2 python-blinker))
3028
b8050e71
CAW
3029(define-public pelican
3030 (package
3031 (name "pelican")
11f97c27 3032 (version "3.6.3")
b8050e71
CAW
3033 (source
3034 (origin
3035 (method url-fetch)
11f97c27 3036 (uri (pypi-uri "pelican" version))
b8050e71
CAW
3037 (sha256
3038 (base32
11f97c27 3039 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
b8050e71 3040 (build-system python-build-system)
d9f2dece 3041 (inputs
b8050e71
CAW
3042 `(("python-feedgenerator" ,python-feedgenerator)
3043 ("python-jinja2" ,python-jinja2)
3044 ("python-pygments" ,python-pygments)
3045 ("python-docutils" ,python-docutils)
3046 ("python-pytz" ,python-pytz)
3047 ("python-blinker" ,python-blinker)
3048 ("python-unidecode" ,python-unidecode)
3049 ("python-six" ,python-six)
3050 ("python-dateutil-2" ,python-dateutil-2)))
3051 (home-page "http://getpelican.com/")
3052 (arguments
3053 `(;; XXX Requires a lot more packages to do unit tests :P
3054 #:tests? #f
3055 #:phases (modify-phases %standard-phases
3056 (add-before
3057 'install 'adjust-requires
3058 ;; Since feedgenerator is installed from git, it doesn't
3059 ;; conform to the version requirements.
3060 ;;
3061 ;; We *do have* "feedgenerator >= 1.6", but strip off the
3062 ;; version requirement so setuptools doesn't get confused.
3063 (lambda _
3064 (substitute* "setup.py"
3065 (("['\"]feedgenerator.*?['\"]")
3066 "'feedgenerator'")))))))
3067 (synopsis "Python-based static site publishing system")
3068 (description
3069 "Pelican is a tool to generate a static blog from reStructuredText,
3070Markdown input files, and more. Pelican uses Jinja2 for templating
3071and is very extensible.")
3f641af0 3072 (license license:agpl3+)))
b8050e71 3073
240ca4aa
RW
3074(define-public python-scikit-learn
3075 (package
3076 (name "python-scikit-learn")
be0a4c26 3077 (version "0.16.1")
240ca4aa
RW
3078 (source
3079 (origin
3080 (method url-fetch)
3081 (uri (string-append
3082 "https://github.com/scikit-learn/scikit-learn/archive/"
3083 version ".tar.gz"))
7e21b9fb 3084 (file-name (string-append name "-" version ".tar.gz"))
240ca4aa
RW
3085 (sha256
3086 (base32
be0a4c26 3087 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
240ca4aa
RW
3088 (build-system python-build-system)
3089 (arguments
3090 `(#:phases
3091 (alist-cons-before
2f6b3d2e
RW
3092 'check 'set-HOME
3093 ;; some tests require access to "$HOME"
3094 (lambda _ (setenv "HOME" "/tmp"))
3095 ;; Tests can only be run after the library has been installed and not
3096 ;; within the source directory.
3097 (alist-cons-after
3098 'install 'check
3099 (lambda _
3100 (with-directory-excursion "/tmp"
3101 ;; With Python 3 one test of 3334 fails
3102 ;; (sklearn.tests.test_common.test_transformers); see
3103 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
3104 (system* "nosetests" "-v" "sklearn")))
3105 (alist-delete 'check %standard-phases)))))
240ca4aa 3106 (inputs
2f6b3d2e 3107 `(("openblas" ,openblas)
240ca4aa
RW
3108 ("python-nose" ,python-nose)))
3109 (propagated-inputs
3110 `(("python-numpy" ,python-numpy)
3111 ("python-scipy" ,python-scipy)))
3112 (home-page "http://scikit-learn.org/")
3113 (synopsis "Machine Learning in Python")
3114 (description
3115 "Scikit-learn provides simple and efficient tools for data
3116mining and data analysis.")
25a2f81f
EF
3117 (license license:bsd-3)
3118 (properties `((python2-variant . ,(delay python2-scikit-learn))))))
240ca4aa
RW
3119
3120(define-public python2-scikit-learn
25a2f81f 3121 (package-with-python2 (strip-python2-variant python-scikit-learn)))
240ca4aa 3122
12f8f9bb
RW
3123(define-public python-scikit-image
3124 (package
3125 (name "python-scikit-image")
3126 (version "0.11.3")
3127 (source
3128 (origin
3129 (method url-fetch)
3130 (uri (string-append
3131 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
3132 version ".tar.gz"))
3133 (sha256
3134 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
3135 (build-system python-build-system)
3136 (propagated-inputs
3137 `(("python-matplotlib" ,python-matplotlib)
3138 ("python-networkx" ,python-networkx)
3139 ("python-numpy" ,python-numpy)
3140 ("python-scipy" ,python-scipy)
3141 ("python-six" ,python-six)
3142 ("python-pillow" ,python-pillow)))
3143 (native-inputs
3144 `(("python-cython" ,python-cython)
3145 ("python-setuptools" ,python-setuptools)))
3146 (home-page "http://scikit-image.org/")
3147 (synopsis "Image processing in Python")
3148 (description
e881752c 3149 "Scikit-image is a collection of algorithms for image processing.")
2b031d3f
EF
3150 (license license:bsd-3)
3151 (properties `((python2-variant . ,(delay python2-scikit-image))))))
12f8f9bb
RW
3152
3153(define-public python2-scikit-image
2b031d3f
EF
3154 (let ((scikit-image (package-with-python2
3155 (strip-python2-variant python-scikit-image))))
12f8f9bb
RW
3156 (package (inherit scikit-image)
3157 (native-inputs
3158 `(("python2-mock" ,python2-mock)
3159 ,@(package-native-inputs scikit-image)))
3160 (propagated-inputs
3161 `(("python2-pytz" ,python2-pytz)
2b031d3f 3162 ,@(package-propagated-inputs scikit-image))))))
12f8f9bb 3163
5394a6a6
RW
3164(define-public python-redis
3165 (package
3166 (name "python-redis")
3167 (version "2.10.3")
3168 (source
3169 (origin
3170 (method url-fetch)
3171 (uri (string-append
3172 "https://pypi.python.org/packages/source/r/redis/redis-"
3173 version ".tar.gz"))
3174 (sha256
3175 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
3176 (build-system python-build-system)
3177 ;; Tests require a running Redis server
3178 (arguments '(#:tests? #f))
3179 (native-inputs
3180 `(("python-setuptools" ,python-setuptools)
3181 ("python-pytest" ,python-pytest)))
3182 (home-page "https://github.com/andymccurdy/redis-py")
3183 (synopsis "Redis Python client")
3184 (description
3185 "This package provides a Python interface to the Redis key-value store.")
3186 (license license:expat)))
3187
3188(define-public python2-redis
3189 (package-with-python2 python-redis))
3190
748cef5b
RW
3191(define-public python-rq
3192 (package
3193 (name "python-rq")
3194 (version "0.5.2")
3195 (source
3196 (origin
3197 (method url-fetch)
3198 (uri (string-append
3199 "https://pypi.python.org/packages/source/r/rq/rq-"
3200 version ".tar.gz"))
3201 (sha256
3202 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
3203 (build-system python-build-system)
3204 (propagated-inputs
3205 `(("python-click" ,python-click)
3206 ("python-redis" ,python-redis)))
3207 (native-inputs
3208 `(("python-setuptools" ,python-setuptools)))
3209 (home-page "http://python-rq.org/")
3210 (synopsis "Simple job queues for Python")
3211 (description
3212 "RQ (Redis Queue) is a simple Python library for queueing jobs and
3213processing them in the background with workers. It is backed by Redis and it
3214is designed to have a low barrier to entry.")
3f641af0 3215 (license license:bsd-2)))
748cef5b
RW
3216
3217(define-public python2-rq
3218 (package-with-python2 python-rq))
3219
6888830b
FB
3220(define-public python-cython
3221 (package
3222 (name "python-cython")
dd22efef 3223 (version "0.24.1")
6888830b
FB
3224 (source
3225 (origin
3226 (method url-fetch)
56918e26 3227 (uri (pypi-uri "Cython" version))
6888830b
FB
3228 (sha256
3229 (base32
dd22efef 3230 "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044"))))
6888830b
FB
3231 (build-system python-build-system)
3232 ;; we need the full python package and not just the python-wrapper
3233 ;; because we need libpython3.3m.so
3234 (inputs
3235 `(("python" ,python)))
3236 (arguments
3237 `(#:phases
b92f651b
EF
3238 (modify-phases %standard-phases
3239 (add-before 'check 'set-HOME
3240 ;; some tests require access to "$HOME/.cython"
3241 (lambda _ (setenv "HOME" "/tmp")))
3242 (replace 'check
3243 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))))))
6888830b
FB
3244 (home-page "http://cython.org/")
3245 (synopsis "C extensions for Python")
3246 (description "Cython is an optimising static compiler for both the Python
3247programming language and the extended Cython programming language. It makes
3248writing C extensions for Python as easy as Python itself.")
3f641af0 3249 (license license:asl2.0)
48b311b1 3250 (properties `((python2-variant . ,(delay python2-cython))))))
6888830b
FB
3251
3252(define-public python2-cython
48b311b1
LC
3253 (package (inherit (package-with-python2
3254 (strip-python2-variant python-cython)))
6888830b
FB
3255 (name "python2-cython")
3256 (inputs
3257 `(("python-2" ,python-2))))) ; this is not automatically changed
0da98533 3258
ee5fb7ee
AV
3259;; The RPython toolchain currently does not support Python 3.
3260(define-public python2-rpython
3261 (package
3262 (name "python2-rpython")
3263 (version "0.1.4")
3264 (source
3265 (origin
3266 (method url-fetch)
3267 (uri (pypi-uri "rpython" version))
3268 (sha256
3269 (base32
3270 "07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc"))))
3271 (build-system python-build-system)
3272 (arguments `(#:python ,python-2))
3273 (native-inputs
3274 `(("python2-pytest" ,python2-pytest) ; needed for running tests
3275 ("python2-setuptools" ,python2-setuptools)))
3276 (home-page "https://rpython.readthedocs.org")
3277 (synopsis "Framework for implementing interpreters and virtual machines")
3278 (description "RPython is a translation and support framework for
3279producing implementations of dynamic languages, emphasizing a clean separation
3280between language specification and implementation aspects.")
3281 (license license:expat)))
3282
0da98533
FB
3283;; This version of numpy is missing the documentation and is only used to
3284;; build matplotlib which is required to build numpy's documentation.
3285(define python-numpy-bootstrap
3286 (package
3287 (name "python-numpy-bootstrap")
ef9b4c04 3288 (version "1.10.4")
0da98533
FB
3289 (source
3290 (origin
3291 (method url-fetch)
de67e922 3292 (uri (string-append "mirror://sourceforge/numpy/NumPy/" version
0da98533
FB
3293 "/numpy-" version ".tar.gz"))
3294 (sha256
3295 (base32
ef9b4c04 3296 "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
0da98533
FB
3297 (build-system python-build-system)
3298 (inputs
3299 `(("python-nose" ,python-nose)
cba256f8
RW
3300 ("openblas" ,openblas)
3301 ("lapack" ,lapack)))
0da98533 3302 (native-inputs
19afbea1 3303 `(("gfortran" ,gfortran)))
0da98533
FB
3304 (arguments
3305 `(#:phases
3306 (alist-cons-before
3307 'build 'set-environment-variables
3308 (lambda* (#:key inputs #:allow-other-keys)
dbdfe515
RW
3309 (call-with-output-file "site.cfg"
3310 (lambda (port)
cba256f8
RW
3311 (format port
3312 "[openblas]
dbdfe515
RW
3313libraries = openblas
3314library_dirs = ~a/lib
3315include_dirs = ~a/include
cba256f8
RW
3316
3317[lapack]
3318lapack_libs = lapack
3319library_dirs = ~a/lib
3320include_dirs = ~a/include
3321"
3322 (assoc-ref inputs "openblas")
3323 (assoc-ref inputs "openblas")
3324 (assoc-ref inputs "lapack")
3325 (assoc-ref inputs "lapack"))))
dbdfe515
RW
3326 ;; Use "gcc" executable, not "cc".
3327 (substitute* "numpy/distutils/system_info.py"
3328 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
3329 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
3330 #t)
6a843168
FB
3331 ;; Tests can only be run after the library has been installed and not
3332 ;; within the source directory.
3333 (alist-cons-after
3334 'install 'check
89b5c60e 3335 (lambda _
6a843168 3336 (with-directory-excursion "/tmp"
89b5c60e 3337 (zero? (system* "python" "-c"
6a843168 3338 "import numpy; numpy.test(verbose=2)"))))
89b5c60e
AE
3339 (alist-delete
3340 'check
6a843168 3341 %standard-phases)))))
0da98533
FB
3342 (home-page "http://www.numpy.org/")
3343 (synopsis "Fundamental package for scientific computing with Python")
3344 (description "NumPy is the fundamental package for scientific computing
e881752c 3345with Python. It contains among other things: a powerful N-dimensional array
0da98533
FB
3346object, sophisticated (broadcasting) functions, tools for integrating C/C++
3347and Fortran code, useful linear algebra, Fourier transform, and random number
3348capabilities.")
3f641af0 3349 (license license:bsd-3)))
0da98533
FB
3350
3351(define python2-numpy-bootstrap
3352 (package-with-python2 python-numpy-bootstrap))
15bfe6d6 3353
3a1bfe18
RW
3354(define-public python2-fastlmm
3355 (package
3356 (name "python2-fastlmm")
b074e7d4 3357 (version "0.2.21")
3a1bfe18
RW
3358 (source
3359 (origin
3360 (method url-fetch)
b074e7d4 3361 (uri (pypi-uri "fastlmm" version ".zip"))
3a1bfe18
RW
3362 (sha256
3363 (base32
b074e7d4 3364 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3a1bfe18
RW
3365 (build-system python-build-system)
3366 (arguments
3367 `(#:python ,python-2)) ; only Python 2.7 is supported
3368 (propagated-inputs
3369 `(("python2-numpy" ,python2-numpy)
3370 ("python2-scipy" ,python2-scipy)
3371 ("python2-matplotlib" ,python2-matplotlib)
3372 ("python2-pandas" ,python2-pandas)
3373 ("python2-scikit-learn" ,python2-scikit-learn)
3374 ("python2-cython" ,python2-cython)
3375 ("python2-pysnptools" ,python2-pysnptools)))
3376 (native-inputs
3377 `(("unzip" ,unzip)
3378 ("python2-mock" ,python2-mock)
3379 ("python2-setuptools" ,python2-setuptools)))
3380 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3381 (synopsis "Perform genome-wide association studies on large data sets")
3382 (description
3383 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3384Models, is a program for performing both single-SNP and SNP-set genome-wide
3385association studies (GWAS) on extremely large data sets.")
3f641af0 3386 (license license:asl2.0)))
3a1bfe18 3387
2ee8869a
FB
3388(define-public python-numpy
3389 (package (inherit python-numpy-bootstrap)
3390 (name "python-numpy")
3391 (outputs '("out" "doc"))
89b5c60e 3392 (inputs
2ee8869a
FB
3393 `(("which" ,which)
3394 ("python-setuptools" ,python-setuptools)
3395 ("python-matplotlib" ,python-matplotlib)
3396 ("python-sphinx" ,python-sphinx)
3397 ("python-pyparsing" ,python-pyparsing)
3398 ("python-numpydoc" ,python-numpydoc)
3399 ,@(package-inputs python-numpy-bootstrap)))
3400 (native-inputs
3401 `(("pkg-config" ,pkg-config)
3402 ("texlive" ,texlive)
3403 ("texinfo" ,texinfo)
3404 ("perl" ,perl)
3405 ,@(package-native-inputs python-numpy-bootstrap)))
3406 (arguments
89b5c60e 3407 `(,@(substitute-keyword-arguments
2ee8869a
FB
3408 (package-arguments python-numpy-bootstrap)
3409 ((#:phases phases)
3410 `(alist-cons-after
3411 'install 'install-doc
3412 (lambda* (#:key outputs #:allow-other-keys)
3413 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
89b5c60e
AE
3414 (doc (string-append
3415 data "/doc/" ,name "-"
2ee8869a
FB
3416 ,(package-version python-numpy-bootstrap)))
3417 (info (string-append data "/info"))
3418 (html (string-append doc "/html"))
3419 (pyver ,(string-append "PYVER=")))
3420 (with-directory-excursion "doc"
3421 (mkdir-p html)
3422 (system* "make" "html" pyver)
3423 (system* "make" "latex" "PAPER=a4" pyver)
89b5c60e 3424 (system* "make" "-C" "build/latex"
2ee8869a
FB
3425 "all-pdf" "PAPER=a4" pyver)
3426 ;; FIXME: Generation of the info file fails.
3427 ;; (system* "make" "info" pyver)
3428 ;; (mkdir-p info)
3429 ;; (copy-file "build/texinfo/numpy.info"
3430 ;; (string-append info "/numpy.info"))
3431 (for-each (lambda (file)
3432 (copy-file (string-append "build/latex" file)
3433 (string-append doc file)))
3434 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3435 (with-directory-excursion "build/html"
3436 (for-each (lambda (file)
3437 (let* ((dir (dirname file))
3438 (tgt-dir (string-append html "/" dir)))
3439 (unless (equal? "." dir)
3440 (mkdir-p tgt-dir))
96c46210 3441 (install-file file html)))
2ee8869a
FB
3442 (find-files "." ".*"))))))
3443 ,phases)))))))
3444
764c077b 3445(define-public python2-numpy
57b7b8cd 3446 (package-with-python2 python-numpy))
2ee8869a 3447
15bfe6d6
FB
3448(define-public python-pyparsing
3449 (package
3450 (name "python-pyparsing")
e0669289 3451 (version "2.0.3")
15bfe6d6
FB
3452 (source
3453 (origin
3454 (method url-fetch)
de67e922
LF
3455 (uri (string-append "mirror://sourceforge/pyparsing/pyparsing"
3456 "/pyparsing-" version
15bfe6d6
FB
3457 "/pyparsing-" version ".tar.gz"))
3458 (sha256
3459 (base32
e0669289 3460 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
15bfe6d6
FB
3461 (build-system python-build-system)
3462 (outputs '("out" "doc"))
3463 (arguments
3464 `(#:tests? #f ; no test target
3465 #:modules ((guix build python-build-system)
3466 (guix build utils))
3467 #:phases
3468 (alist-cons-after
3469 'install 'install-doc
3470 (lambda* (#:key outputs #:allow-other-keys)
89b5c60e 3471 (let* ((doc (string-append (assoc-ref outputs "doc")
15bfe6d6
FB
3472 "/share/doc/" ,name "-" ,version))
3473 (html-doc (string-append doc "/html"))
3474 (examples (string-append doc "/examples")))
3475 (mkdir-p html-doc)
3476 (mkdir-p examples)
89b5c60e 3477 (for-each
15bfe6d6 3478 (lambda (dir tgt)
89b5c60e 3479 (map (lambda (file)
96c46210 3480 (install-file file tgt))
15bfe6d6
FB
3481 (find-files dir ".*")))
3482 (list "docs" "htmldoc" "examples")
3483 (list doc html-doc examples))))
3484 %standard-phases)))
3485 (home-page "http://pyparsing.wikispaces.com")
3486 (synopsis "Python parsing class library")
3487 (description
3488 "The pyparsing module is an alternative approach to creating and
3489executing simple grammars, vs. the traditional lex/yacc approach, or the use
3490of regular expressions. The pyparsing module provides a library of classes
3491that client code uses to construct the grammar directly in Python code.")
bd3fa666 3492 (license license:expat)))
15bfe6d6
FB
3493
3494(define-public python2-pyparsing
3495 (package-with-python2 python-pyparsing))
3496
ec00de35
FB
3497(define-public python-numpydoc
3498 (package
3499 (name "python-numpydoc")
3500 (version "0.5")
3501 (source
3502 (origin
3503 (method url-fetch)
89b5c60e 3504 (uri (string-append
ec00de35
FB
3505 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3506 version ".tar.gz"))
3507 (sha256
3508 (base32
5e4d8f67
AE
3509 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3510 (modules '((guix build utils)))
3511 (snippet
3512 '(begin
3513 ;; Drop a test requiring matplotlib, which we cannot add as an
3514 ;; input since it would create a circular dependency: Extend the
3515 ;; test for Python 3, where it is already dropped, to Python 2.
3516 (substitute* "numpydoc/tests/test_plot_directive.py"
3517 (("3") "2"))))))
ec00de35
FB
3518 (build-system python-build-system)
3519 (inputs
3520 `(("python-setuptools" ,python-setuptools)
3521 ("python-docutils" ,python-docutils)
3522 ("python-sphinx" ,python-sphinx)
3523 ("python-nose" ,python-nose)))
3524 (home-page "https://pypi.python.org/pypi/numpydoc")
3525 (synopsis
3526 "Numpy's Sphinx extensions")
3527 (description
3528 "Sphinx extension to support docstrings in Numpy format.")
3f641af0 3529 (license license:bsd-2)))
ec00de35
FB
3530
3531(define-public python2-numpydoc
5e4d8f67 3532 (package-with-python2 python-numpydoc))
1c65314c 3533
1e656049
RW
3534(define-public python-numexpr
3535 (package
3536 (name "python-numexpr")
26112c0a 3537 (version "2.6.0")
1e656049
RW
3538 (source
3539 (origin
3540 (method url-fetch)
26112c0a 3541 (uri (pypi-uri "numexpr" version))
1e656049
RW
3542 (sha256
3543 (base32
26112c0a 3544 "0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag"))))
1e656049
RW
3545 (build-system python-build-system)
3546 (arguments `(#:tests? #f)) ; no tests included
3547 (propagated-inputs
3548 `(("python-numpy" ,python-numpy)))
3549 (home-page "https://github.com/pydata/numexpr")
3550 (synopsis "Fast numerical expression evaluator for NumPy")
3551 (description
3552 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3553expressions that operate on arrays are accelerated and use less memory than
3554doing the same calculation in Python. In addition, its multi-threaded
3555capabilities can make use of all your cores, which may accelerate
3556computations, most specially if they are not memory-bounded (e.g. those using
3557transcendental functions).")
fc1a170e
EF
3558 (license license:expat)
3559 (properties `((python2-variant . ,(delay python2-numexpr))))))
1e656049
RW
3560
3561(define-public python2-numexpr
fc1a170e 3562 (package-with-python2 (strip-python2-variant python-numexpr)))
1e656049 3563
1c65314c
FB
3564(define-public python-matplotlib
3565 (package
3566 (name "python-matplotlib")
1bbc659f 3567 (version "1.4.3")
1c65314c
FB
3568 (source
3569 (origin
3570 (method url-fetch)
de67e922
LF
3571 (uri (string-append "mirror://sourceforge/matplotlib/matplotlib"
3572 "/matplotlib-" version
1c65314c
FB
3573 "/matplotlib-" version ".tar.gz"))
3574 (sha256
3575 (base32
1bbc659f 3576 "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
fc1adab1 3577 (patches (search-patches "matplotlib-setupext-tk.patch"))))
1c65314c
FB
3578 (build-system python-build-system)
3579 (outputs '("out" "doc"))
25f9a068
FB
3580 (propagated-inputs ; the following packages are all needed at run time
3581 `(("python-pyparsing" ,python-pyparsing)
3582 ("python-pygobject" ,python-pygobject)
3583 ("gobject-introspection" ,gobject-introspection)
1bbc659f 3584 ("python-tkinter" ,python "tk")
25f9a068
FB
3585 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3586 ;; from 'gtk+') provides the required 'typelib' files used by
3587 ;; 'gobject-introspection'. The location of these files is set with the
3588 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3589 ;; is done automatically by a 'native-search-path' procedure. However,
3590 ;; at run-time the user must set this variable as follows:
3591 ;;
3592 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
25f9a068
FB
3593 ("gtk+" ,gtk+)
3594 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3595 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3596 ;; object. For this reason we need to import both libraries.
3597 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3598 ("python-pycairo" ,python-pycairo)
3599 ("python-cairocffi" ,python-cairocffi)))
1c65314c
FB
3600 (inputs
3601 `(("python-setuptools" ,python-setuptools)
3602 ("python-dateutil" ,python-dateutil-2)
1c65314c
FB
3603 ("python-six" ,python-six)
3604 ("python-pytz" ,python-pytz)
3605 ("python-numpy" ,python-numpy-bootstrap)
3606 ("python-sphinx" ,python-sphinx)
3607 ("python-numpydoc" ,python-numpydoc)
3608 ("python-nose" ,python-nose)
3609 ("python-mock" ,python-mock)
3610 ("libpng" ,libpng)
3611 ("imagemagick" ,imagemagick)
3612 ("freetype" ,freetype)
25f9a068
FB
3613 ("cairo" ,cairo)
3614 ("glib" ,glib)
4e7a137a 3615 ("python-pillow" ,python-pillow)
1c65314c 3616 ;; FIXME: Add backends when available.
1c65314c
FB
3617 ;("python-wxpython" ,python-wxpython)
3618 ;("python-pyqt" ,python-pyqt)
1bbc659f
FB
3619 ("tcl" ,tcl)
3620 ("tk" ,tk)))
1c65314c
FB
3621 (native-inputs
3622 `(("pkg-config" ,pkg-config)
3623 ("texlive" ,texlive)
3624 ("texinfo" ,texinfo)))
3625 (arguments
3626 `(#:phases
25f9a068
FB
3627 (alist-cons-before
3628 'build 'configure-environment
3629 (lambda* (#:key outputs inputs #:allow-other-keys)
3630 (let ((cairo (assoc-ref inputs "cairo"))
3631 (gtk+ (assoc-ref inputs "gtk+")))
3632 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3633 ;; has not effect.
25f9a068
FB
3634 (setenv "LD_LIBRARY_PATH"
3635 (string-append cairo "/lib:" gtk+ "/lib"))
3636 (setenv "HOME" (getcwd))
3637 (call-with-output-file "setup.cfg"
3638 (lambda (port)
1bbc659f
FB
3639 (format port "[directories]~%
3640basedirlist = ~a,~a~%
57b7b8cd 3641 [rc_options]~%
1bbc659f
FB
3642backend = TkAgg~%"
3643 (assoc-ref inputs "tcl")
3644 (assoc-ref inputs "tk"))))))
25f9a068
FB
3645 (alist-cons-after
3646 'install 'install-doc
3647 (lambda* (#:key outputs #:allow-other-keys)
3648 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3649 (doc (string-append data "/doc/" ,name "-" ,version))
3650 (info (string-append data "/info"))
3651 (html (string-append doc "/html")))
3652 (with-directory-excursion "doc"
25f9a068
FB
3653 ;; Produce pdf in 'A4' format.
3654 (substitute* (find-files "." "conf\\.py")
3655 (("latex_paper_size = 'letter'")
3656 "latex_paper_size = 'a4'"))
3657 (mkdir-p html)
3658 (mkdir-p info)
3659 ;; The doc recommends to run the 'html' target twice.
3660 (system* "python" "make.py" "html")
3661 (system* "python" "make.py" "html")
18b31516 3662 (copy-recursively "build/html" html)
25f9a068
FB
3663 (system* "python" "make.py" "latex")
3664 (system* "python" "make.py" "texinfo")
18b31516
FB
3665 (symlink (string-append html "/_images")
3666 (string-append info "/matplotlib-figures"))
3667 (with-directory-excursion "build/texinfo"
3668 (substitute* "matplotlib.texi"
3669 (("@image\\{([^,]*)" all file)
3670 (string-append "@image{matplotlib-figures/" file)))
3671 (symlink (string-append html "/_images")
3672 "./matplotlib-figures")
3673 (system* "makeinfo" "--no-split"
3674 "-o" "matplotlib.info" "matplotlib.texi"))
25f9a068
FB
3675 (copy-file "build/texinfo/matplotlib.info"
3676 (string-append info "/matplotlib.info"))
3677 (copy-file "build/latex/Matplotlib.pdf"
18b31516 3678 (string-append doc "/Matplotlib.pdf")))))
25f9a068 3679 %standard-phases))))
1c65314c
FB
3680 (home-page "http://matplotlib.org")
3681 (synopsis "2D plotting library for Python")
3682 (description
3683 "Matplotlib is a Python 2D plotting library which produces publication
3684quality figures in a variety of hardcopy formats and interactive environments
3685across platforms. Matplotlib can be used in Python scripts, the python and
3686ipython shell, web application servers, and six graphical user interface
3687toolkits.")
3f641af0 3688 (license license:psfl)
57b7b8cd 3689 (properties `((python2-variant . ,(delay python2-matplotlib))))))
1c65314c 3690
764c077b 3691(define-public python2-matplotlib
57b7b8cd
LC
3692 (let ((matplotlib (package-with-python2
3693 (strip-python2-variant python-matplotlib))))
764c077b 3694 (package (inherit matplotlib)
88c26834
AE
3695 ;; Make sure to use special packages for Python 2 instead
3696 ;; of those automatically rewritten by package-with-python2.
89b5c60e 3697 (propagated-inputs
7ca0dbc3 3698 `(("python2-pycairo" ,python2-pycairo)
764c077b 3699 ("python2-pygobject-2" ,python2-pygobject-2)
1bbc659f
FB
3700 ("python2-tkinter" ,python-2 "tk")
3701 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3702 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
94914805 3703
0dde6232
RW
3704(define-public python2-pysnptools
3705 (package
3706 (name "python2-pysnptools")
a800018e 3707 (version "0.3.9")
0dde6232
RW
3708 (source
3709 (origin
3710 (method url-fetch)
3f2e9675 3711 (uri (pypi-uri "pysnptools" version ".zip"))
0dde6232
RW
3712 (sha256
3713 (base32
a800018e 3714 "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2"))))
0dde6232
RW
3715 (build-system python-build-system)
3716 (arguments
3717 `(#:python ,python-2)) ; only Python 2.7 is supported
3718 (propagated-inputs
3719 `(("python2-numpy" ,python2-numpy)
3720 ("python2-scipy" ,python2-scipy)
a800018e 3721 ("python2-pytz" ,python2-pytz)
0dde6232 3722 ("python2-cython" ,python2-cython)))
a800018e
EF
3723 (inputs
3724 `(("python2-dateutil-2" ,python2-dateutil-2)
3725 ("python2-pandas" ,python2-pandas)
3726 ("python2-six" ,python2-six)))
0dde6232
RW
3727 (native-inputs
3728 `(("unzip" ,unzip)
3729 ("python2-setuptools" ,python2-setuptools)))
3730 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3731 (synopsis "Library for reading and manipulating genetic data")
3732 (description
3733 "PySnpTools is a library for reading and manipulating genetic data. It
3734can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3735those files. It can also efficiently manipulate ranges of integers using set
3736operators such as union, intersection, and difference.")
3f641af0 3737 (license license:asl2.0)))
0dde6232 3738
c9b1b4f9
RW
3739(define-public python-rpy2
3740 (package
3741 (name "python-rpy2")
ec3bcbc7 3742 (version "2.7.6")
c9b1b4f9
RW
3743 (source
3744 (origin
3745 (method url-fetch)
ec3bcbc7 3746 (uri (pypi-uri "rpy2" version))
c9b1b4f9
RW
3747 (sha256
3748 (base32
ec3bcbc7 3749 "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
c9b1b4f9
RW
3750 (build-system python-build-system)
3751 (inputs
3752 `(("python-six" ,python-six)
3753 ("readline" ,readline)
3754 ("icu4c" ,icu4c)
3755 ("pcre" ,pcre)
3756 ("r" ,r)))
3757 (native-inputs
5ff6575b
RW
3758 `(("python-setuptools" ,python-setuptools)
3759 ("zlib" ,zlib)))
c9b1b4f9
RW
3760 (home-page "http://rpy.sourceforge.net/")
3761 (synopsis "Python interface to the R language")
3762 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3763low-level interface to R from Python, a proposed high-level interface,
3764including wrappers to graphical libraries, as well as R-like structures and
3765functions.")
3f641af0 3766 (license license:gpl3+)))
c9b1b4f9
RW
3767
3768(define-public python2-rpy2
3769 (let ((rpy2 (package-with-python2 python-rpy2)))
3770 (package (inherit rpy2)
3771 (native-inputs
3772 `(("python2-singledispatch" ,python2-singledispatch)
3773 ,@(package-native-inputs rpy2))))))
3774
bb986599
FB
3775(define-public python-scipy
3776 (package
3777 (name "python-scipy")
ba8a0824 3778 (version "0.16.0")
bb986599
FB
3779 (source
3780 (origin
3781 (method url-fetch)
de67e922
LF
3782; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz
3783 (uri (string-append "mirror://sourceforge/scipy/scipy/" version
da6ce3f1 3784 "/scipy-" version ".tar.xz"))
bb986599
FB
3785 (sha256
3786 (base32
ba8a0824 3787 "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
bb986599 3788 (build-system python-build-system)
dd86c0d1 3789 (propagated-inputs
bb986599
FB
3790 `(("python-numpy" ,python-numpy)
3791 ("python-matplotlib" ,python-matplotlib)
dd86c0d1
RW
3792 ("python-pyparsing" ,python-pyparsing)))
3793 (inputs
3794 `(("lapack" ,lapack)
719b01c1 3795 ("openblas" ,openblas)))
bb986599 3796 (native-inputs
dd86c0d1
RW
3797 `(("python-nose" ,python-nose)
3798 ("python-sphinx" ,python-sphinx)
5248d49e 3799 ("python-numpydoc" ,python-numpydoc)
dd86c0d1 3800 ("gfortran" ,gfortran)
bb986599
FB
3801 ("texlive" ,texlive)
3802 ("perl" ,perl)))
3803 (outputs '("out" "doc"))
3804 (arguments
3805 `(#:phases
3806 (alist-cons-before
719b01c1 3807 'build 'configure-openblas
bb986599 3808 (lambda* (#:key inputs #:allow-other-keys)
719b01c1
RW
3809 (call-with-output-file "site.cfg"
3810 (lambda (port)
3811 (format port
3812 "[blas]
3813libraries = openblas
3814library_dirs = ~a/lib
3815include_dirs = ~a/include
3816[atlas]
3817library_dirs = ~a/lib
3818atlas_libs = openblas
3819"
3820 (assoc-ref inputs "openblas")
3821 (assoc-ref inputs "openblas")
3822 (assoc-ref inputs "openblas"))))
3823 #t)
bb986599
FB
3824 (alist-cons-after
3825 'install 'install-doc
3826 (lambda* (#:key outputs #:allow-other-keys)
3827 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3828 (doc (string-append data "/doc/" ,name "-" ,version))
3829 (html (string-append doc "/html"))
3830 (pyver ,(string-append "PYVER=")))
3831 (with-directory-excursion "doc"
bb986599
FB
3832 ;; Fix generation of images for mathematical expressions.
3833 (substitute* (find-files "source" "conf\\.py")
3834 (("pngmath_use_preview = True")
3835 "pngmath_use_preview = False"))
3836 (mkdir-p html)
3837 (system* "make" "html" pyver)
3838 (system* "make" "latex" "PAPER=a4" pyver)
3839 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3840 (copy-file "build/latex/scipy-ref.pdf"
3841 (string-append doc "/scipy-ref.pdf"))
3842 (with-directory-excursion "build/html"
3843 (for-each (lambda (file)
3844 (let* ((dir (dirname file))
3845 (tgt-dir (string-append html "/" dir)))
96c46210 3846 (install-file file html)))
bb986599
FB
3847 (find-files "." ".*"))))))
3848 ;; Tests can only be run after the library has been installed and not
3849 ;; within the source directory.
3850 (alist-cons-after
3851 'install 'check
89b5c60e 3852 (lambda _
bb986599
FB
3853 (with-directory-excursion "/tmp"
3854 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
89b5c60e
AE
3855 (alist-delete
3856 'check
4f9ff21e
RW
3857 (alist-cons-after
3858 'unpack 'fix-tests
3859 (lambda _
3860 (substitute* "scipy/integrate/tests/test_quadpack.py"
3861 (("libm.so") "libm.so.6"))
3862 #t)
3863 %standard-phases)))))))
bb986599
FB
3864 (home-page "http://www.scipy.org/")
3865 (synopsis "The Scipy library provides efficient numerical routines")
3866 (description "The SciPy library is one of the core packages that make up
3867the SciPy stack. It provides many user-friendly and efficient numerical
3868routines such as routines for numerical integration and optimization.")
3f641af0 3869 (license license:bsd-3)))
bb986599 3870
764c077b 3871(define-public python2-scipy
57b7b8cd 3872 (package-with-python2 python-scipy))
bb986599 3873
73acc193 3874(define-public python-socksipy-branch
3875 (package
3876 (name "python-socksipy-branch")
3877 (version "1.01")
3878 (source
3879 (origin
3880 (method url-fetch)
3881 (uri (pypi-uri "SocksiPy-branch" version))
3882 (sha256
3883 (base32
3884 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
3885 (build-system python-build-system)
3886 (arguments
3887 `(#:tests? #f)) ; There are no tests
3888 (home-page "https://code.google.com/archive/p/socksipy-branch/")
3889 (synopsis "Python SOCKS module")
3890 (description
3891 "SocksiPy - A Python SOCKS client module. It provides a
3892socket-like interface that supports connections to any TCP
3893service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
3894The original version was developed by Dan Haim, this is a
3895branch created by Mario Vilas to address some open issues,
3896as the original project seems to have been abandoned circa 2007.")
3897 (license license:bsd-3)))
3898
3899(define-public python2-socksipy-branch
3900 (package-with-python2 python-socksipy-branch))
3901
94914805
EB
3902(define-public python-sqlalchemy
3903 (package
3904 (name "python-sqlalchemy")
a4ba286b 3905 (version "1.0.12")
94914805
EB
3906 (source
3907 (origin
3908 (method url-fetch)
3909 (uri (string-append "https://pypi.python.org/packages/source/S/"
3910 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3911 (sha256
3912 (base32
a4ba286b 3913 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
94914805
EB
3914 (build-system python-build-system)
3915 (native-inputs
3916 `(("python-cython" ,python-cython) ;for c extensions
3917 ("python-pytest" ,python-pytest)
3918 ("python-mock" ,python-mock))) ;for tests
3919 (arguments
3920 `(#:phases (alist-replace
3921 'check
3922 (lambda _ (zero? (system* "py.test")))
3923 %standard-phases)))
3924 (home-page "http://www.sqlalchemy.org")
3925 (synopsis "Database abstraction library")
3926 (description
3927 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3928gives application developers the full power and flexibility of SQL. It
3929provides a full suite of well known enterprise-level persistence patterns,
3930designed for efficient and high-performing database access, adapted into a
3931simple and Pythonic domain language.")
3f641af0 3932 (license license:x11)))
94914805
EB
3933
3934(define-public python2-sqlalchemy
3935 (package-with-python2 python-sqlalchemy))
c937562e 3936
4a093330
DM
3937(define-public python-pycodestyle
3938 (package
3939 (name "python-pycodestyle")
3940 (version "2.0.0")
3941 (source
3942 (origin
3943 (method url-fetch)
3944 (uri (pypi-uri "pycodestyle" version))
3945 (sha256
3946 (base32
3947 "1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p"))))
3948 (build-system python-build-system)
3949 (home-page "https://pycodestyle.readthedocs.io/")
3950 (synopsis "Python style guide checker")
3951 (description "@code{pycodestyle} (formerly pep8) is a tool to check
3952Python code against some of the style conventions in
3953@url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
3954 (license license:expat)
3955 (properties `((python2-variant . ,(delay python2-pycodestyle))))))
3956
3957(define-public python2-pycodestyle
3958 (let ((base (package-with-python2 (strip-python2-variant
3959 python-pycodestyle))))
3960 (package (inherit base)
3961 (native-inputs
3962 `(("python2-setuptools" ,python2-setuptools)
3963 ,@(package-native-inputs base))))))
b91912c4
DM
3964
3965(define-public python-orderedmultidict
3966 (package
3967 (name "python-orderedmultidict")
3968 (version "0.7.10")
3969 (source
3970 (origin
3971 (method url-fetch)
3972 (uri (pypi-uri "orderedmultidict" version))
3973 (sha256
3974 (base32
3975 "1gvqk0jd432wsn88kq4svad68xz3r012jfpnhh9in7bqrkyxidky"))))
3976 (build-system python-build-system)
3977 (arguments
3978 `(#:phases
3979 (modify-phases %standard-phases
3980 (add-after 'unpack 'fix-tests
3981 (lambda _
3982 ;; The package uses nosetest for running the tests.
3983 ;; Adding this initfile allows to run the test suite
3984 ;; without requiring nosetest.
3985 (zero? (system* "touch" "tests/__init__.py")))))))
3986 (propagated-inputs
3987 `(("python-six" ,python-six)))
3988 (native-inputs
3989 `(("python-pycodestyle" ,python-pycodestyle)))
3990 (home-page "https://github.com/gruns/orderedmultidict")
3991 (synopsis "Python Ordered Multivalue Dictionary - omdict")
3992 (description "This package contains a library for ordered multivalue
3993dictionaries. A multivalue dictionary is a dictionary that can store
3994multiple values for the same key. An ordered multivalue dictionary is a
3995multivalue dictionary that retains the order of insertions and deletions.")
3996 (license license:unlicense)
3997 (properties `((python2-variant . ,(delay python2-orderedmultidict))))))
3998
3999(define-public python2-orderedmultidict
4000 (let ((base (package-with-python2 (strip-python2-variant
4001 python-orderedmultidict))))
4002 (package (inherit base)
4003 (native-inputs
4004 `(("python2-setuptools" ,python2-setuptools)
4005 ,@(package-native-inputs base))))))
9dede065
DM
4006
4007(define-public python-furl
4008 (package
4009 (name "python-furl")
4010 (version "0.5.6")
4011 (source
4012 (origin
4013 (method url-fetch)
4014 (uri (pypi-uri "furl" version))
4015 (sha256
4016 (base32
4017 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
4018 (build-system python-build-system)
4019 (propagated-inputs
4020 `(("python-six" ,python-six)
4021 ("python-orderedmultidict" ,python-orderedmultidict)))
4022 (native-inputs
4023 `(("python-pycodestyle" ,python-pycodestyle)))
4024 (home-page "https://github.com/gruns/furl")
4025 (synopsis "URL manipulation in Python")
4026 (description "Furl provides an easy-to-use alternative to the
4027@code{urllib} and @code{urlparse} modules for manipulating URLs.")
4028 (license license:unlicense)
4029 (properties `((python2-variant . ,(delay python2-furl))))))
4030
4031(define-public python2-furl
4032 (let ((base (package-with-python2 (strip-python2-variant
4033 python-furl))))
4034 (package (inherit base)
4035 (native-inputs
4036 `(("python2-setuptools" ,python2-setuptools)
4037 ,@(package-native-inputs base))))))
462bf271
DM
4038
4039(define-public python-flask-babel
4040 (package
4041 (name "python-flask-babel")
4042 (version "0.11.1")
4043 (source
4044 (origin
4045 (method url-fetch)
4046 (uri (pypi-uri "Flask-Babel" version))
4047 (sha256
4048 (base32
4049 "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj"))))
4050 (build-system python-build-system)
4051 (propagated-inputs
4052 `(("python-flask" ,python-flask)
4053 ("python-babel" ,python-babel)
4054 ("python-jinja2" ,python-jinja2)
4055 ("python-pytz" ,python-pytz)))
4056 (home-page "https://github.com/python-babel/flask-babel")
4057 (synopsis "Add i18n/l10n support to Flask applications")
4058 (description "This package implements internationalization and localization
4059support for Flask. This is based on the Python babel module as well as pytz -
4060both of which are installed automatically if you install this library.")
4061 (license license:bsd-3)
4062 (properties `((python2-variant . ,(delay python2-flask-babel))))))
4063
4064(define-public python2-flask-babel
4065 (let ((base (package-with-python2 (strip-python2-variant
4066 python-flask-babel))))
4067 (package (inherit base)
4068 (native-inputs
4069 `(("python2-setuptools" ,python2-setuptools)
4070 ,@(package-native-inputs base))))))
4a093330 4071
de2966cf
EF
4072(define-public python-sqlalchemy-utils
4073 (package
4074 (name "python-sqlalchemy-utils")
4075 (version "0.32.9")
4076 (source
4077 (origin
4078 (method url-fetch)
4079 (uri (pypi-uri "SQLAlchemy-Utils" version))
4080 (sha256
4081 (base32
4082 "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98"))))
4083 (build-system python-build-system)
c22b4f87 4084 (propagated-inputs
de2966cf
EF
4085 `(("python-six" ,python-six)
4086 ("python-sqlalchemy" ,python-sqlalchemy)))
26d07efb
DM
4087 (native-inputs
4088 `(("python-pytest" ,python-pytest)))
de2966cf
EF
4089 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
4090 (synopsis "Various utility functions for SQLAlchemy")
4091 (description
4092 "SQLAlchemy-utils provides various utility functions and custom data types
6a686b18
DM
4093for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
4094
4095You might also want to install the following optional dependencies:
4096@enumerate
4097@item @code{python-passlib}
4098@item @code{python-babel}
4099@item @code{python-cryptography}
4100@item @code{python-pytz}
4101@item @code{python-psycopg2}
4102@item @code{python-furl}
4103@item @code{python-flask-babel}
4104@end enumerate
4105")
de2966cf
EF
4106 (properties `((python2-variant . ,(delay python2-sqlalchemy-utils))))
4107 (license license:bsd-3)))
4108
4109(define-public python2-sqlalchemy-utils
4110 (let ((base (package-with-python2
4111 (strip-python2-variant python-sqlalchemy-utils))))
4112 (package (inherit base)
4113 (native-inputs
4114 `(("python2-setuptools" ,python2-setuptools)
4115 ,@(package-native-inputs base))))))
4116
af5a4602
CAW
4117(define-public python-alembic
4118 (package
4119 (name "python-alembic")
bb484529 4120 (version "0.8.7")
af5a4602
CAW
4121 (source
4122 (origin
4123 (method url-fetch)
4124 (uri (pypi-uri "alembic" version))
4125 (sha256
4126 (base32
bb484529 4127 "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z"))))
af5a4602
CAW
4128 (build-system python-build-system)
4129 (native-inputs
4130 `(("python-mock" ,python-mock)
4131 ("python-pytest-cov" ,python-pytest-cov)))
4132 (propagated-inputs
4133 `(("python-sqlalchemy" ,python-sqlalchemy)
4134 ("python-mako" ,python-mako)
4135 ("python-editor" ,python-editor)))
4136 (home-page "http://bitbucket.org/zzzeek/alembic")
4137 (synopsis
4138 "Database migration tool for SQLAlchemy")
4139 (description
4140 "Alembic is a lightweight database migration tool for usage with the
4141SQLAlchemy Database Toolkit for Python.")
4142 (license license:expat)
4143 (properties `((python2-variant . ,(delay python2-alembic))))))
4144
4145(define-public python2-alembic
4146 (let ((alembic (package-with-python2
4147 (strip-python2-variant python-alembic))))
4148 (package
4149 (inherit alembic)
4150 (native-inputs `(("python2-setuptools" ,python2-setuptools)
4151 ,@(package-native-inputs alembic))))))
4152
1671c07c
EB
4153(define-public python-distutils-extra
4154 (package
4155 (name "python-distutils-extra")
4156 (version "2.38")
4157 (source
4158 (origin
4159 (method url-fetch)
4160 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
4161 version "/+download/python-distutils-extra-"
4162 version ".tar.gz"))
4163 (sha256
4164 (base32
4165 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
4166 (build-system python-build-system)
4167 (native-inputs
4168 `(("python-setuptools" ,python-setuptools)))
4169 (home-page "https://launchpad.net/python-distutils-extra/")
4170 (synopsis "Enhancements to Python's distutils")
4171 (description
4172 "The python-distutils-extra module enables you to easily integrate
4173gettext support, themed icons, and scrollkeeper-based documentation into
4174Python's distutils.")
3f641af0 4175 (license license:gpl2)))
1671c07c
EB
4176
4177(define-public python2-distutils-extra
4178 (package-with-python2 python-distutils-extra))
ea5456c8
EB
4179
4180(define-public python2-elib.intl
4181 (package
4182 (name "python2-elib.intl")
4183 (version "0.0.3")
4184 (source
4185 (origin
4186 ;; This project doesn't tag releases or publish tarballs, so we take
4187 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
4188 (method git-fetch)
4189 (uri (git-reference
4190 (url "https://github.com/dieterv/elib.intl.git")
4191 (commit "d09997cfef")))
4192 (sha256
4193 (base32
4194 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
4195 (build-system python-build-system)
4196 (native-inputs
4197 `(("python2-setuptools" ,python2-setuptools)))
4198 (arguments
4199 ;; incompatible with Python 3 (exception syntax)
4200 `(#:python ,python-2
4201 #:tests? #f
4202 ;; With standard flags, the install phase attempts to create a zip'd
4203 ;; egg file, and fails with an error: 'ZIP does not support timestamps
4204 ;; before 1980'
4205 #:configure-flags '("--single-version-externally-managed"
4206 "--record=elib.txt")))
4207 (home-page "https://github.com/dieterv/elib.intl")
4208 (synopsis "Enhanced internationalization for Python")
4209 (description
4210 "The elib.intl module provides enhanced internationalization (I18N)
4211services for your Python modules and applications.")
3f641af0 4212 (license license:lgpl3+)))
ea5456c8 4213
c937562e
EB
4214(define-public python-pillow
4215 (package
4216 (name "python-pillow")
aba5182c 4217 (version "3.3.3")
c937562e
EB
4218 (source
4219 (origin
4220 (method url-fetch)
f1d9231d 4221 (uri (pypi-uri "Pillow" version))
c937562e
EB
4222 (sha256
4223 (base32
aba5182c 4224 "0xkv0p1d73gz0a1qaasf0ai4262g8f334j07vd60bjrxs2wr3nmj"))))
c937562e
EB
4225 (build-system python-build-system)
4226 (native-inputs
4227 `(("python-setuptools" ,python-setuptools)
4228 ("python-nose" ,python-nose)))
4229 (inputs
5ff408d9
SB
4230 `(("freetype" ,freetype)
4231 ("lcms" ,lcms)
c937562e
EB
4232 ("zlib" ,zlib)
4233 ("libjpeg" ,libjpeg)
4234 ("openjpeg" ,openjpeg)
5ff408d9
SB
4235 ("libtiff" ,libtiff)
4236 ("libwebp" ,libwebp)))
c937562e
EB
4237 (propagated-inputs
4238 `(;; Used at runtime for pkg_resources
4239 ("python-setuptools" ,python-setuptools)))
4240 (arguments
e5358a6b
LC
4241 `(#:phases (modify-phases %standard-phases
4242 (add-before
4243 'install 'disable-egg-compression
4244 (lambda _
4245 ;; Leave the .egg uncompressed since compressing it would
4246 ;; prevent the GC from identifying run-time dependencies.
4247 ;; See <http://bugs.gnu.org/20765>.
4248 (let ((port (open-file "setup.cfg" "a")))
4249 (display "\n[easy_install]\nzip_ok = 0\n"
4250 port)
4251 (close-port port)
4252 #t)))
4253 (add-after
4254 'install 'check-installed
4255 (lambda _
4256 (begin
4257 (setenv "HOME" (getcwd))
4258 (and (zero? (system* "python" "selftest.py"
4259 "--installed"))
4260 (zero? (system* "python" "test-installed.py"))))))
4261 (delete 'check))))
c937562e
EB
4262 (home-page "https://pypi.python.org/pypi/Pillow")
4263 (synopsis "Fork of the Python Imaging Library")
4264 (description
4265 "The Python Imaging Library adds image processing capabilities to your
4266Python interpreter. This library provides extensive file format support, an
4267efficient internal representation, and fairly powerful image processing
4268capabilities. The core image library is designed for fast access to data
4269stored in a few basic pixel formats. It should provide a solid foundation for
4270a general image processing tool.")
3f641af0 4271 (license (license:x11-style
c937562e
EB
4272 "http://www.pythonware.com/products/pil/license.htm"
4273 "The PIL Software License"))))
4274
4275(define-public python2-pillow
4276 (package-with-python2 python-pillow))
bb986599 4277
a415f036
FB
4278(define-public python-pycparser
4279 (package
4280 (name "python-pycparser")
38eb6919 4281 (version "2.14")
a415f036
FB
4282 (source
4283 (origin
4284 (method url-fetch)
38eb6919 4285 (uri (pypi-uri "pycparser" version))
a415f036
FB
4286 (sha256
4287 (base32
38eb6919 4288 "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
a415f036
FB
4289 (outputs '("out" "doc"))
4290 (build-system python-build-system)
4291 (native-inputs
4292 `(("pkg-config" ,pkg-config)
4293 ("python-setuptools" ,python-setuptools)))
4294 (arguments
89b5c60e 4295 `(#:phases
a415f036
FB
4296 (alist-replace
4297 'check
4298 (lambda _
4299 (with-directory-excursion "tests"
4300 (zero? (system* "python" "all_tests.py"))))
4301 (alist-cons-after
4302 'install 'install-doc
4303 (lambda* (#:key outputs #:allow-other-keys)
4304 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4305 (doc (string-append data "/doc/" ,name "-" ,version))
4306 (examples (string-append doc "/examples")))
4307 (mkdir-p examples)
4308 (for-each (lambda (file)
4309 (copy-file (string-append "." file)
4310 (string-append doc file)))
4311 '("/README.rst" "/CHANGES" "/LICENSE"))
4312 (copy-recursively "examples" examples)))
4313 %standard-phases))))
4314 (home-page "https://github.com/eliben/pycparser")
4315 (synopsis "C parser in Python")
4316 (description
4317 "Pycparser is a complete parser of the C language, written in pure Python
4318using the PLY parsing library. It parses C code into an AST and can serve as
4319a front-end for C compilers or analysis tools.")
3f641af0 4320 (license license:bsd-3)))
a415f036
FB
4321
4322(define-public python2-pycparser
4323 (package-with-python2 python-pycparser))
57c3f716
FB
4324
4325(define-public python-cffi
4326 (package
4327 (name "python-cffi")
2d3a437c 4328 (version "1.4.2")
57c3f716
FB
4329 (source
4330 (origin
4331 (method url-fetch)
2d3a437c 4332 (uri (pypi-uri "cffi" version))
89b5c60e 4333 (sha256
2d3a437c 4334 (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
57c3f716
FB
4335 (build-system python-build-system)
4336 (outputs '("out" "doc"))
4337 (inputs
4338 `(("libffi" ,libffi)))
4339 (propagated-inputs ; required at run-time
4340 `(("python-pycparser" ,python-pycparser)))
4341 (native-inputs
4342 `(("pkg-config" ,pkg-config)
4343 ("python-sphinx" ,python-sphinx)
4179f952 4344 ("python-pytest" ,python-pytest)
57c3f716
FB
4345 ("python-setuptools" ,python-setuptools)))
4346 (arguments
4179f952 4347 `(#:phases
57c3f716
FB
4348 (alist-cons-after
4349 'install 'install-doc
4350 (lambda* (#:key outputs #:allow-other-keys)
4351 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4352 (doc (string-append data "/doc/" ,name "-" ,version))
4353 (html (string-append doc "/html")))
4354 (with-directory-excursion "doc"
4355 (system* "make" "html")
4356 (mkdir-p html)
4357 (copy-recursively "build/html" html))
4358 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
4359 %standard-phases)))
4360 (home-page "http://cffi.readthedocs.org")
4361 (synopsis "Foreign function interface for Python")
4362 (description
4363 "Foreign Function Interface for Python calling C code.")
bd3fa666 4364 (license license:expat)))
57c3f716
FB
4365
4366(define-public python2-cffi
4367 (package-with-python2 python-cffi))
6fa14469
FB
4368
4369(define-public python-xcffib
4370 (package
4371 (name "python-xcffib")
4372 (version "0.1.9")
4373 (source
4374 (origin
4375 (method url-fetch)
4376 (uri (string-append "https://pypi.python.org/packages/source/x/"
4377 "xcffib/xcffib-" version ".tar.gz"))
4378 (sha256
4379 (base32
4380 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
4381 (build-system python-build-system)
4382 (inputs
4383 `(("libxcb" ,libxcb)
4384 ("python-six" ,python-six)))
4385 (native-inputs
4386 `(("python-setuptools" ,python-setuptools)))
4387 (propagated-inputs
4388 `(("python-cffi" ,python-cffi))) ; used at run time
4389 (arguments
89b5c60e 4390 `(#:phases
6fa14469
FB
4391 (alist-cons-after
4392 'install 'install-doc
4393 (lambda* (#:key outputs #:allow-other-keys)
4394 (let ((doc (string-append (assoc-ref outputs "out") "/share"
4395 "/doc/" ,name "-" ,version)))
4396 (mkdir-p doc)
4397 (copy-file "README.md"
4398 (string-append doc "/README.md"))))
4399 %standard-phases)))
4400 (home-page "https://github.com/tych0/xcffib")
4401 (synopsis "XCB Python bindings")
4402 (description
4403 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
4404support for Python 3 and PyPy. It is based on cffi.")
bd3fa666 4405 (license license:expat)))
6fa14469
FB
4406
4407(define-public python2-xcffib
4408 (package-with-python2 python-xcffib))
4409
9e099723
FB
4410(define-public python-cairocffi
4411 (package
4412 (name "python-cairocffi")
4413 (version "0.6")
4414 (source
4415 (origin
4416 (method url-fetch)
4417 ;; The archive on pypi is missing the 'utils' directory!
4418 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
4419 version ".tar.gz"))
f586c877 4420 (file-name (string-append name "-" version ".tar.gz"))
9e099723
FB
4421 (sha256
4422 (base32
4423 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
4424 (build-system python-build-system)
4425 (outputs '("out" "doc"))
4426 (inputs
4427 `(("gdk-pixbuf" ,gdk-pixbuf)
4428 ("cairo" ,cairo)))
4429 (native-inputs
4430 `(("pkg-config" ,pkg-config)
4431 ("python-sphinx" ,python-sphinx)
4432 ("python-docutils" ,python-docutils)
4433 ("python-setuptools" ,python-setuptools)))
4434 (propagated-inputs
4435 `(("python-xcffib" ,python-xcffib))) ; used at run time
4436 (arguments
89b5c60e 4437 `(#:phases
9e099723
FB
4438 (alist-cons-after
4439 'install 'install-doc
4440 (lambda* (#:key inputs outputs #:allow-other-keys)
4441 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4442 (doc (string-append data "/doc/" ,name "-" ,version))
4443 (html (string-append doc "/html")))
89b5c60e 4444 (setenv "LD_LIBRARY_PATH"
9e099723
FB
4445 (string-append (assoc-ref inputs "cairo") "/lib" ":"
4446 (assoc-ref inputs "gdk-pixbuf") "/lib"))
4447 (setenv "LANG" "en_US.UTF-8")
4448 (mkdir-p html)
4449 (for-each (lambda (file)
4450 (copy-file (string-append "." file)
4451 (string-append doc file)))
4452 '("/README.rst" "/CHANGES" "/LICENSE"))
4453 (system* "python" "setup.py" "build_sphinx")
4454 (copy-recursively "docs/_build/html" html)))
4455 %standard-phases)))
4456 (home-page "https://github.com/SimonSapin/cairocffi")
4457 (synopsis "Python bindings and object-oriented API for Cairo")
4458 (description
4459 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
4460Python bindings and object-oriented API for cairo. Cairo is a 2D vector
4461graphics library with support for multiple backends including image buffers,
4462PNG, PostScript, PDF, and SVG file output.")
3f641af0 4463 (license license:bsd-3)))
9e099723
FB
4464
4465(define-public python2-cairocffi
4466 (package-with-python2 python-cairocffi))
4467
3cff95cb
RW
4468(define-public python-decorator
4469 (package
4470 (name "python-decorator")
eb6e2e81 4471 (version "4.0.9")
3cff95cb
RW
4472 (source
4473 (origin
4474 (method url-fetch)
e21338be 4475 (uri (pypi-uri "decorator" version))
3cff95cb 4476 (sha256
eb6e2e81 4477 (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
3cff95cb
RW
4478 (build-system python-build-system)
4479 (arguments '(#:tests? #f)) ; no test target
4480 (native-inputs
4481 `(("python-setuptools" ,python-setuptools)))
eb6e2e81 4482 (home-page "https://pypi.python.org/pypi/decorator/")
3cff95cb
RW
4483 (synopsis "Python module to simplify usage of decorators")
4484 (description
4485 "The aim of the decorator module is to simplify the usage of decorators
4486for the average programmer, and to popularize decorators usage giving examples
4487of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
4488etc. The core of this module is a decorator factory.")
4489 (license license:expat)))
4490
4491(define-public python2-decorator
4492 (package-with-python2 python-decorator))
4493
2c0499ad
RW
4494(define-public python-drmaa
4495 (package
4496 (name "python-drmaa")
4497 (version "0.7.6")
4498 (source
4499 (origin
4500 (method url-fetch)
4501 (uri (string-append
4502 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
4503 version ".tar.gz"))
4504 (sha256
4505 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
4506 (build-system python-build-system)
4507 ;; The test suite requires libdrmaa which is provided by the cluster
4508 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
4509 ;; should be set to the path of the libdrmaa library.
4510 (arguments '(#:tests? #f))
4511 (native-inputs
4512 `(("python-nose" ,python-nose)
4513 ("python-setuptools" ,python-setuptools)))
4514 (home-page "https://pypi.python.org/pypi/drmaa")
4515 (synopsis "Python bindings for the DRMAA library")
4516 (description
4517 "A Python package for Distributed Resource Management (DRM) job
4518submission and control. This package is an implementation of the DRMAA 1.0
4519Python language binding specification.")
3f641af0 4520 (license license:bsd-3)))
2c0499ad
RW
4521
4522(define-public python2-drmaa
4523 (package-with-python2 python-drmaa))
4524
d05c6da0
RW
4525(define-public python-gridmap
4526 (package
4527 (name "python-gridmap")
4528 (version "0.13.0")
4529 (source
4530 (origin
4531 (method url-fetch)
4532 (uri (string-append
4533 "https://github.com/pygridtools/gridmap/archive/v"
4534 version ".tar.gz"))
4535 (file-name (string-append name "-" version ".tar.gz"))
4536 (sha256
4537 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
4538 (build-system python-build-system)
4539 (inputs
4540 `(("python-psutil" ,python-psutil)
4541 ("python-drmaa" ,python-drmaa)
4542 ("python-pyzmq" ,python-pyzmq)))
4543 (native-inputs
4544 `(("python-setuptools" ,python-setuptools)))
4545 (home-page "https://github.com/pygridtools/gridmap")
4546 (synopsis "Create jobs on a cluster directly from Python")
4547 (description
4548 "Gridmap is a Python package to allow you to easily create jobs on the
4549cluster directly from Python. You can directly map Python functions onto the
4550cluster without needing to write any wrapper code yourself.")
3f641af0 4551 (license license:gpl3+)))
d05c6da0
RW
4552
4553(define-public python2-gridmap
4554 (package-with-python2 python-gridmap))
4555
cb6d5c54
RW
4556(define-public python-pexpect
4557 (package
4558 (name "python-pexpect")
4559 (version "3.3")
4560 (source
4561 (origin
4562 (method url-fetch)
4563 (uri (string-append "https://pypi.python.org/packages/source/p/"
4564 "pexpect/pexpect-" version ".tar.gz"))
4565 (sha256
4566 (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
4567 (build-system python-build-system)
4568 (arguments
4569 `(#:phases
4570 (modify-phases %standard-phases
4571 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4572 (native-inputs
4573 `(("python-nose" ,python-nose)))
4574 (home-page "http://pexpect.readthedocs.org/")
4575 (synopsis "Controlling interactive console applications")
4576 (description
4577 "Pexpect is a pure Python module for spawning child applications;
4578controlling them; and responding to expected patterns in their output.
4579Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4580child application and control it as if a human were typing commands.")
3f641af0 4581 (license license:isc)))
cb6d5c54
RW
4582
4583(define-public python2-pexpect
4584 (package-with-python2 python-pexpect))
4585
229ad120
RW
4586(define-public python-setuptools-scm
4587 (package
4588 (name "python-setuptools-scm")
42d6d0d0 4589 (version "1.11.1")
229ad120
RW
4590 (source (origin
4591 (method url-fetch)
383af6b0 4592 (uri (pypi-uri "setuptools_scm" version))
229ad120
RW
4593 (sha256
4594 (base32
42d6d0d0 4595 "1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc"))))
229ad120 4596 (build-system python-build-system)
383af6b0 4597 (native-inputs `(("python-setuptools" ,python-setuptools)))
229ad120
RW
4598 (home-page "https://github.com/pypa/setuptools_scm/")
4599 (synopsis "Manage Python package versions in SCM metadata")
4600 (description
383af6b0 4601 "Setuptools_scm handles managing your Python package versions in
229ad120
RW
4602@dfn{software configuration management} (SCM) metadata instead of declaring
4603them as the version argument or in a SCM managed file.")
4604 (license license:expat)))
4605
4606(define-public python2-setuptools-scm
4607 (package-with-python2 python-setuptools-scm))
4608
b74270ee
RW
4609(define-public python-pathpy
4610 (package
4611 (name "python-pathpy")
4612 (version "8.1.1")
4613 (source
4614 (origin
4615 (method url-fetch)
4616 (uri (string-append "https://pypi.python.org/packages/source/p/"
4617 "path.py/path.py-" version ".tar.gz"))
4618 (sha256
4619 (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
4620 (build-system python-build-system)
4621 (propagated-inputs
4622 `(("python-appdirs" ,python-appdirs)))
4623 (native-inputs
553b709b
EF
4624 `(("python-setuptools" ,python-setuptools)
4625 ("python-setuptools-scm" ,python-setuptools-scm)
b74270ee
RW
4626 ("python-pytest" ,python-pytest)
4627 ("python-pytest-runner" ,python-pytest-runner)))
4628 (home-page "http://github.com/jaraco/path.py")
4629 (synopsis "Python module wrapper for built-in os.path")
4630 (description
4631 "@code{path.py} implements path objects as first-class entities, allowing
4632common operations on files to be invoked on those path objects directly.")
4633 (license license:expat)))
4634
4635(define-public python2-pathpy
4636 (package-with-python2 python-pathpy))
4637
0d34e01b
RW
4638(define-public python-pickleshare
4639 (package
4640 (name "python-pickleshare")
4641 (version "0.5")
4642 (source
4643 (origin
4644 (method url-fetch)
4645 (uri (string-append "https://pypi.python.org/packages/source/p/"
4646 "pickleshare/pickleshare-" version ".tar.gz"))
4647 (sha256
4648 (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
4649 (build-system python-build-system)
4650 (propagated-inputs
4651 `(("python-pathpy" ,python-pathpy)))
b72a4410
EF
4652 (native-inputs
4653 `(("python-setuptools" ,python-setuptools)))
0d34e01b
RW
4654 (home-page "https://github.com/vivainio/pickleshare")
4655 (synopsis "Tiny key value database with concurrency support")
4656 (description
4657 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
4658Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
4659shelve, many processes can access the database simultaneously. Changing a
4660value in database is immediately visible to other processes accessing the same
4661database. Concurrency is possible because the values are stored in separate
4662files. Hence the “database” is a directory where all files are governed by
4663PickleShare.")
4664 (license license:expat)))
4665
4666(define-public python2-pickleshare
4667 (package-with-python2 python-pickleshare))
4668
cd6e5189
RW
4669(define-public python-simplegeneric
4670 (package
4671 (name "python-simplegeneric")
4672 (version "0.8.1")
4673 (source
4674 (origin
4675 (method url-fetch)
4676 (uri (string-append "https://pypi.python.org/packages/source/s/"
4677 "simplegeneric/simplegeneric-" version ".zip"))
4678 (sha256
4679 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4680 (build-system python-build-system)
4681 (native-inputs
69b96e5e
RW
4682 `(("python-setuptools" ,python-setuptools)
4683 ("unzip" ,unzip)))
cd6e5189
RW
4684 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4685 (synopsis "Python module for simple generic functions")
4686 (description
4687 "The simplegeneric module lets you define simple single-dispatch generic
4688functions, akin to Python’s built-in generic functions like @code{len()},
4689@code{iter()} and so on. However, instead of using specially-named methods,
4690these generic functions use simple lookup tables, akin to those used by
4691e.g. @code{pickle.dump()} and other generic functions found in the Python
4692standard library.")
3f641af0 4693 (license license:zpl2.1)))
cd6e5189
RW
4694
4695(define-public python2-simplegeneric
4696 (package-with-python2 python-simplegeneric))
4697
ddc7d8ed
RW
4698(define-public python-ipython-genutils
4699 (package
4700 (name "python-ipython-genutils")
4701 (version "0.1.0")
4702 (source
4703 (origin
4704 (method url-fetch)
4705 (uri (string-append "https://pypi.python.org/packages/source/i/"
4706 "ipython_genutils/ipython_genutils-"
4707 version ".tar.gz"))
4708 (sha256
4709 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4710 (build-system python-build-system)
4711 (arguments `(#:tests? #f)) ; no tests
4712 (home-page "http://ipython.org")
4713 (synopsis "Vestigial utilities from IPython")
4714 (description
4715 "This package provides retired utilities from IPython.")
3f641af0 4716 (license license:bsd-3)))
ddc7d8ed
RW
4717
4718(define-public python2-ipython-genutils
4719 (package-with-python2 python-ipython-genutils))
4720
2b10eb48
RW
4721(define-public python-traitlets
4722 (package
4723 (name "python-traitlets")
a5ba1481 4724 (version "4.2.0")
2b10eb48
RW
4725 (source
4726 (origin
4727 (method url-fetch)
cc0c4fde 4728 (uri (pypi-uri "traitlets" version))
2b10eb48
RW
4729 (sha256
4730 (base32
a5ba1481 4731 "1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4"))))
2b10eb48
RW
4732 (build-system python-build-system)
4733 (arguments
4734 `(#:phases
4735 (modify-phases %standard-phases
4736 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4737 (propagated-inputs
4738 `(("python-ipython-genutils" ,python-ipython-genutils)
4739 ("python-decorator" ,python-decorator)))
4740 (native-inputs
cc0c4fde
EF
4741 `(("python-mock" ,python-mock)
4742 ("python-nose" ,python-nose)))
2b10eb48
RW
4743 (home-page "http://ipython.org")
4744 (synopsis "Configuration system for Python applications")
4745 (description
4746 "Traitlets is a framework that lets Python classes have attributes with
4747type checking, dynamically calculated default values, and ‘on change’
4748callbacks. The package also includes a mechanism to use traitlets for
4749configuration, loading values from files or from command line arguments. This
4750is a distinct layer on top of traitlets, so you can use traitlets in your code
4751without using the configuration machinery.")
3f641af0 4752 (license license:bsd-3)))
2b10eb48
RW
4753
4754(define-public python2-traitlets
4755 (package-with-python2 python-traitlets))
4756
4263b06f
RW
4757(define-public python-jupyter-core
4758 (package
4759 (name "python-jupyter-core")
4760 (version "4.2.0")
4761 (source
4762 (origin
4763 (method url-fetch)
4764 (uri (string-append (pypi-uri "jupyter_core" version)))
4765 (sha256
4766 (base32
4767 "177d9csqldzhsh6xs1p4nf6lzvhzyg6gklqjf69lxgxyadx87v24"))))
4768 (build-system python-build-system)
4769 ;; FIXME: not sure how to run the tests
4770 (arguments `(#:tests? #f))
4771 (propagated-inputs
4772 `(("python-traitlets" ,python-traitlets)))
4773 (home-page "http://jupyter.org/")
4774 (synopsis "Jupyter base package")
4775 (description
4776 "Jupyter core is the base package on which Jupyter projects rely.")
4777 (license license:bsd-3)))
4778
4779(define-public python2-jupyter-core
4780 (package-with-python2 python-jupyter-core))
4781
9ff01f2d
RW
4782(define-public python-jupyter-client
4783 (package
4784 (name "python-jupyter-client")
4785 (version "4.4.0")
4786 (source
4787 (origin
4788 (method url-fetch)
4789 (uri (pypi-uri "jupyter_client" version))
4790 (sha256
4791 (base32
4792 "1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9"))))
4793 (build-system python-build-system)
4794 ;; Tests fail because of missing native python kernel which I assume is
4795 ;; provided by the ipython package, which we cannot use because it would
4796 ;; cause a dependency cycle.
4797 (arguments `(#:tests? #f))
4798 (propagated-inputs
4799 `(("python-pyzmq" ,python-pyzmq)
4800 ("python-traitlets" ,python-traitlets)
4801 ("python-jupyter-core" ,python-jupyter-core)))
4802 (home-page "http://jupyter.org/")
4803 (synopsis "Jupyter protocol implementation and client libraries")
4804 (description
4805 "The @code{jupyter_client} package contains the reference implementation
4806of the Jupyter protocol. It also provides client and kernel management APIs
4807for working with kernels, and the @code{jupyter kernelspec} entrypoint for
4808installing @code{kernelspec}s for use with Jupyter frontends.")
4809 (license license:bsd-3)))
4810
4811(define-public python2-jupyter-client
4812 (package-with-python2 python-jupyter-client))
4813
ab526102
RW
4814(define-public python-ipykernel
4815 (package
4816 (name "python-ipykernel")
4817 (version "4.5.0")
4818 (source
4819 (origin
4820 (method url-fetch)
4821 (uri (pypi-uri "ipykernel" version))
4822 (sha256
4823 (base32 "15c2bp1x3i6s4xb7vz7742h3kmvdfdfn9n2haywm3mwgvf77jni4"))))
4824 (build-system python-build-system)
4825 ;; The tests load a submodule of IPython. However, IPython itself depends
4826 ;; on ipykernel.
4827 (arguments `(#:tests? #f))
4828 (propagated-inputs
4829 ;; imported at runtime during connect
4830 `(("python-jupyter-client" ,python-jupyter-client)))
4831 (home-page "http://ipython.org")
4832 (synopsis "IPython Kernel for Jupyter")
4833 (description
4834 "This package provides the IPython kernel for Jupyter.")
4835 (license license:bsd-3)))
4836
4837(define-public python2-ipykernel
4838 (package-with-python2 python-ipykernel))
4839
5ff6effc
RW
4840(define-public python-testpath
4841 (package
4842 (name "python-testpath")
4843 (version "0.2")
4844 (source
4845 (origin
4846 (method url-fetch)
4847 (uri (string-append "https://github.com/jupyter/testpath/archive/"
4848 version ".tar.gz"))
4849 (file-name (string-append name "-" version ".tar.gz"))
4850 (sha256
4851 (base32
4852 "04kh3fgvmqz6cfcw79q70qwjz7ib7lxm27cc548iy2rpr33qqf55"))))
4853 (build-system python-build-system)
4854 (arguments
4855 `(#:tests? #f ; this package does not even have a setup.py
4856 #:phases
4857 (modify-phases %standard-phases
4858 (delete 'install)
4859 (replace 'build
4860 (lambda* (#:key inputs outputs #:allow-other-keys)
4861 (let ((dir (string-append
4862 (assoc-ref outputs "out")
4863 "/lib/python"
4864 (string-take (string-take-right
4865 (assoc-ref inputs "python") 5) 3)
4866 "/site-packages/testpath")))
4867 (mkdir-p dir)
4868 (copy-recursively "testpath" dir))
4869 #t)))))
4870 (home-page "https://github.com/takluyver/testpath")
4871 (synopsis "Test utilities for code working with files and commands")
4872 (description
4873 "Testpath is a collection of utilities for Python code working with files
4874and commands. It contains functions to check things on the filesystem, and
4875tools for mocking system commands and recording calls to those.")
4876 (license license:expat)))
4877
4878(define-public python2-testpath
4879 (package-with-python2 python-testpath))
4880
ae1ab9fe
FB
4881(define-public python-ipython
4882 (package
4883 (name "python-ipython")
accd5f99 4884 (version "4.0.0")
ae1ab9fe
FB
4885 (source
4886 (origin
fceac880 4887 (method url-fetch)
accd5f99 4888 (uri (pypi-uri "ipython" version ".tar.gz"))
fceac880 4889 (sha256
accd5f99 4890 (base32 "1npl8g6bfsff9j938ypx0q5fyzy2l8lp0jl8skjjj2zv0z27dlig"))))
ae1ab9fe
FB
4891 (build-system python-build-system)
4892 (outputs '("out" "doc"))
3a0b1b9a
FB
4893 (propagated-inputs
4894 `(("python-pyzmq" ,python-pyzmq)
accd5f99 4895 ("python-terminado" ,python-terminado)
ae1ab9fe 4896 ("python-matplotlib" ,python-matplotlib)
5d26e542 4897 ("python-numpy" ,python-numpy)
ae1ab9fe 4898 ("python-numpydoc" ,python-numpydoc)
3a0b1b9a
FB
4899 ("python-jinja2" ,python-jinja2)
4900 ("python-mistune" ,python-mistune)
accd5f99
RW
4901 ("python-pexpect" ,python-pexpect)
4902 ("python-pickleshare" ,python-pickleshare)
4903 ("python-simplegeneric" ,python-simplegeneric)
3a0b1b9a 4904 ("python-jsonschema" ,python-jsonschema)
accd5f99
RW
4905 ("python-traitlets" ,python-traitlets)
4906 ("python-ipykernel" ,python-ipykernel)
4907 ("python-pygments" ,python-pygments)))
4908 (inputs
4909 `(("readline" ,readline)
4910 ("which" ,which)))
ae1ab9fe
FB
4911 (native-inputs
4912 `(("pkg-config" ,pkg-config)
accd5f99
RW
4913 ("python-requests" ,python-requests) ;; for tests
4914 ("python-testpath" ,python-testpath)
4915 ("python-nose" ,python-nose)
ae1ab9fe
FB
4916 ("python-sphinx" ,python-sphinx)
4917 ("texlive" ,texlive)
4918 ("texinfo" ,texinfo)
4919 ("python-setuptools" ,python-setuptools)))
4920 (arguments
89b5c60e 4921 `(#:phases
3a0b1b9a
FB
4922 (modify-phases %standard-phases
4923 (add-after
4924 'install 'install-doc
4925 (lambda* (#:key inputs outputs #:allow-other-keys)
4926 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4927 (doc (string-append data "/doc/" ,name "-" ,version))
4928 (html (string-append doc "/html"))
4929 (man1 (string-append data "/man/man1"))
4930 (info (string-append data "/info"))
4931 (examples (string-append doc "/examples")))
afd3d931 4932 (setenv "LANG" "en_US.utf8")
3a0b1b9a 4933 (with-directory-excursion "docs"
accd5f99
RW
4934 ;; FIXME: pdf fails to build
4935 ;;(system* "make" "pdf" "PAPER=a4")
4936 (system* "make" "html")
3a0b1b9a
FB
4937 (system* "make" "info"))
4938 (copy-recursively "docs/man" man1)
4939 (copy-recursively "examples" examples)
accd5f99 4940 (copy-recursively "docs/build/html" html)
3a0b1b9a
FB
4941 ;; (copy-file "docs/build/latex/ipython.pdf"
4942 ;; (string-append doc "/ipython.pdf"))
4943 (mkdir-p info)
4944 (copy-file "docs/build/texinfo/ipython.info"
4945 (string-append info "/ipython.info"))
4946 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4947 ;; Tests can only be run after the library has been installed and not
4948 ;; within the source directory.
4949 (delete 'check)
4950 (add-after
4951 'install 'check
4952 (lambda* (#:key outputs tests? #:allow-other-keys)
4953 (if tests?
4954 (with-directory-excursion "/tmp"
4955 (setenv "HOME" "/tmp/") ;; required by a test
4956 (zero? (system* (string-append (assoc-ref outputs "out")
4957 "/bin/iptest"))))
4958 #t)))
4959 (add-before
4960 'install 'fix-tests
4961 (lambda* (#:key inputs #:allow-other-keys)
4962 (substitute* "./IPython/utils/_process_posix.py"
4963 (("/usr/bin/env', 'which") (which "which")))
4964 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4965 (("#!/usr/bin/env python")
4966 (string-append "#!" (which "python"))))
4967 ;; Disable 1 failing test
4968 (substitute* "./IPython/core/tests/test_magic.py"
4969 (("def test_dirops\\(\\):" all)
4970 (string-append "@dec.skipif(True)\n" all))))))))
ae1ab9fe
FB
4971 (home-page "http://ipython.org")
4972 (synopsis "IPython is a tool for interactive computing in Python")
4973 (description
4974 "IPython provides a rich architecture for interactive computing with:
4975Powerful interactive shells, a browser-based notebook, support for interactive
4976data visualization, embeddable interpreters and tools for parallel
4977computing.")
135ba811
EF
4978 (license license:bsd-3)
4979 (properties `((python2-variant . ,(delay python2-ipython))))))
ae1ab9fe
FB
4980
4981(define-public python2-ipython
135ba811 4982 (let ((ipython (package-with-python2 (strip-python2-variant python-ipython))))
3a0b1b9a
FB
4983 (package
4984 (inherit ipython)
4985 ;; FIXME: some tests are failing
4986 (arguments
4987 `(#:tests? #f ,@(package-arguments ipython)))
3a0b1b9a 4988 ;; FIXME: add pyreadline once available.
89b5c60e 4989 (inputs
135ba811
EF
4990 `(("python2-mock" ,python2-mock)
4991 ,@(package-inputs ipython))))))
03411993
AE
4992
4993(define-public python-isodate
4994 (package
4995 (name "python-isodate")
b6785c2e 4996 (version "0.5.4")
03411993
AE
4997 (source
4998 (origin
4999 (method url-fetch)
b6785c2e 5000 (uri (pypi-uri "isodate" version))
03411993
AE
5001 (sha256
5002 (base32
b6785c2e 5003 "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
03411993
AE
5004 (build-system python-build-system)
5005 (inputs
5006 `(("python-setuptools" ,python-setuptools)))
5007 (home-page
5008 "http://cheeseshop.python.org/pypi/isodate")
5009 (synopsis
5010 "Python date parser and formatter")
5011 (description
5012 "Python-isodate is a python module for parsing and formatting
5013ISO 8601 dates, time and duration.")
3f641af0 5014 (license license:bsd-3)))
03411993
AE
5015
5016(define-public python2-isodate
5017 (package-with-python2 python-isodate))
673ab897
AE
5018
5019(define-public python-html5lib
5020 (package
5021 (name "python-html5lib")
fee04c19 5022 (version "1.0b8")
673ab897
AE
5023 (source
5024 (origin
5025 (method url-fetch)
fee04c19 5026 (uri (pypi-uri "html5lib" version))
673ab897
AE
5027 (sha256
5028 (base32
fee04c19 5029 "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
673ab897 5030 (build-system python-build-system)
3dd75476
AE
5031 (propagated-inputs
5032 `(("python-six" ,python-six))) ; required to "import html5lib"
673ab897
AE
5033 (inputs
5034 `(("python-setuptools" ,python-setuptools)))
5035 (arguments
5036 `(#:test-target "check"))
5037 (home-page
5038 "https://github.com/html5lib/html5lib-python")
5039 (synopsis
5040 "Python HTML parser based on the WHATWG HTML specifcation")
5041 (description
5042 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
5043and written in Python.")
bd3fa666 5044 (license license:expat)))
673ab897
AE
5045
5046(define-public python2-html5lib
5047 (package-with-python2 python-html5lib))
e99f4211 5048
8ee62c97
RW
5049;; Needed for python-bleach, a dependency of python-notebook
5050(define-public python-html5lib-0.9
5051 (package
5052 (inherit python-html5lib)
5053 (version "0.999")
5054 (source
5055 (origin
5056 (method url-fetch)
5057 (uri (pypi-uri "html5lib" version))
5058 (sha256
5059 (base32
5060 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
5061
5062(define-public python2-html5lib-0.9
5063 (package-with-python2 python-html5lib-0.9))
5064
e99f4211
MW
5065(define-public python-urwid
5066 (package
5067 (name "python-urwid")
51ff41f6 5068 (version "1.3.1")
e99f4211
MW
5069 (source
5070 (origin
5071 (method url-fetch)
b97c1bfd 5072 (uri (pypi-uri "urwid" version))
e99f4211
MW
5073 (sha256
5074 (base32
51ff41f6 5075 "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng"))))
e99f4211 5076 (build-system python-build-system)
b97c1bfd
LF
5077 (arguments
5078 `(#:phases
5079 (modify-phases %standard-phases
5080 ;; Disable failing test. Bug filed upstream:
5081 ;; https://github.com/wardi/urwid/issues/164
51ff41f6 5082 ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3.
b97c1bfd
LF
5083 (add-after 'unpack 'disable-failing-test
5084 (lambda _
5085 (substitute* "urwid/tests/test_event_loops.py"
5086 (("test_remove_watch_file")
5087 "disable_remove_watch_file")))))))
e99f4211
MW
5088 (native-inputs `(("python-setuptools" ,python-setuptools)))
5089 (home-page "http://urwid.org")
5090 (synopsis "Console user interface library for Python")
5091 (description
5092 "Urwid is a curses-based UI/widget library for Python. It includes many
5093features useful for text console applications.")
3f641af0 5094 (license license:lgpl2.1+)))
e99f4211
MW
5095
5096(define-public python2-urwid
5097 (package-with-python2 python-urwid))
d95a56c6 5098
47d0b292
TS
5099(define-public python-urwidtrees
5100 (package
5101 (name "python-urwidtrees")
37ec4623 5102 (version "1.0.2")
47d0b292
TS
5103 (source
5104 (origin
5105 (method url-fetch)
37ec4623
TS
5106 ;; package author intends on distributing via github rather than pypi:
5107 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
5108 (uri (string-append "https://github.com/pazz/urwidtrees/archive/"
5109 version ".tar.gz"))
5110 (file-name (string-append name "-" version ".tar.gz"))
47d0b292
TS
5111 (sha256
5112 (base32
37ec4623 5113 "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh"))))
47d0b292
TS
5114 (build-system python-build-system)
5115 (arguments
5116 '(#:tests? #f)) ; no tests
5117 (inputs `(("python-urwid" ,python-urwid)))
5118 (home-page "https://github.com/pazz/urwidtrees")
5119 (synopsis "Tree widgets for urwid")
5120 (description "Urwidtrees is a Widget Container API for the @code{urwid}
5121toolkit. Use it to build trees of widgets.")
3f641af0 5122 (license license:gpl3+)))
47d0b292
TS
5123
5124(define-public python2-urwidtrees
5125 (package-with-python2 python-urwidtrees))
5126
d95a56c6
PAR
5127(define-public python-dbus
5128 (package
5129 (name "python-dbus")
5130 (version "1.2.0")
5131 (source
5132 (origin
5133 (method url-fetch)
5134 (uri (string-append
5cc3096c 5135 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
d95a56c6
PAR
5136 version ".tar.gz"))
5137 (sha256
5138 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
5139 (build-system gnu-build-system)
6717c879
SB
5140 (arguments
5141 '(#:phases
5142 (modify-phases %standard-phases
5143 (add-before
5144 'check 'pre-check
5145 (lambda _
5146 ;; XXX: For the missing '/etc/machine-id'.
5147 (substitute* "test/run-test.sh"
5148 (("DBUS_FATAL_WARNINGS=1")
5149 "DBUS_FATAL_WARNINGS=0"))
5150 #t)))))
d95a56c6
PAR
5151 (native-inputs
5152 `(("pkg-config" ,pkg-config)))
5153 (inputs
5154 `(("python" ,python)
2e88d113 5155 ("dbus-glib" ,dbus-glib)))
d95a56c6
PAR
5156 (synopsis "Python bindings for D-bus")
5157 (description "python-dbus provides bindings for libdbus, the reference
5158implementation of D-Bus.")
5159 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
bd3fa666 5160 (license license:expat)))
b52af02b
MW
5161
5162(define-public python2-dbus
5163 (package (inherit python-dbus)
5164 (name "python2-dbus")
5165 (inputs `(("python" ,python-2)
5166 ,@(alist-delete "python"
5167 (package-inputs python-dbus)
5168 equal?)))
5169 ;; FIXME: on Python 2, the test_utf8 fails with:
5170 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
5171 (arguments `(#:tests? #f))))
a6ac8332
AE
5172
5173(define-public python-apsw
5174 (package
5175 (name "python-apsw")
917708c2 5176 (version "3.9.2-r1")
a6ac8332
AE
5177 (source
5178 (origin
5179 (method url-fetch)
917708c2 5180 (uri (pypi-uri "apsw" version))
a6ac8332
AE
5181 (sha256
5182 (base32
917708c2 5183 "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
a6ac8332
AE
5184 (build-system python-build-system)
5185 (inputs
5186 `(("python-setuptools" ,python-setuptools)
5187 ("sqlite" ,sqlite)))
5188 (arguments
5189 `(#:phases
5190 ;; swap check and install phases
5191 (alist-cons-after
5192 'install 'check
5193 (assoc-ref %standard-phases 'check)
5194 (alist-delete
5195 'check
5196 %standard-phases))))
5197 (home-page "https://github.com/rogerbinns/apsw/")
5198 (synopsis "Another Python SQLite Wrapper")
5199 (description "APSW is a Python wrapper for the SQLite
5200embedded relational database engine. In contrast to other wrappers such as
5201pysqlite it focuses on being a minimal layer over SQLite attempting just to
5202translate the complete SQLite API into Python.")
abde5f37 5203 (license license:zlib)))
a6ac8332
AE
5204
5205(define-public python2-apsw
5206 (package-with-python2 python-apsw))
26b307e2
AE
5207
5208(define-public python-lxml
5209 (package
5210 (name "python-lxml")
d58a3203 5211 (version "3.6.0")
26b307e2
AE
5212 (source
5213 (origin
5214 (method url-fetch)
97bbc480 5215 (uri (pypi-uri "lxml" version))
26b307e2 5216 (sha256
d58a3203
EF
5217 (base32
5218 "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w"))))
26b307e2
AE
5219 (build-system python-build-system)
5220 (inputs
5221 `(("libxml2" ,libxml2)
5222 ("libxslt" ,libxslt)
5223 ("python-setuptools" ,python-setuptools)))
5224 (home-page "http://lxml.de/")
5225 (synopsis
5226 "Python XML processing library")
5227 (description
5228 "The lxml XML toolkit is a Pythonic binding for the C libraries
5229libxml2 and libxslt.")
3f641af0 5230 (license license:bsd-3))) ; and a few more, see LICENSES.txt
26b307e2
AE
5231
5232(define-public python2-lxml
5233 (package-with-python2 python-lxml))
4ed20663 5234
b32a1e47
CAW
5235;; beautifulsoup4 has a totally different namespace than 3.x,
5236;; and pypi seems to put it under its own name, so I guess we should too
5237(define-public python-beautifulsoup4
5238 (package
5239 (name "python-beautifulsoup4")
67fd4a12 5240 (version "4.5.1")
b32a1e47
CAW
5241 (source
5242 (origin
5243 (method url-fetch)
5244 (uri (pypi-uri "beautifulsoup4" version))
5245 (sha256
5246 (base32
67fd4a12 5247 "1qgmhw65ncsgccjhslgkkszif47q6gvxwqv4mim17agxd81p951w"))))
b32a1e47 5248 (build-system python-build-system)
5f37f0b6
LF
5249 (arguments
5250 `(#:phases
5251 (modify-phases %standard-phases
5252 ;; The Python 2 source is the definitive source of beautifulsoup4. We
5253 ;; must use this conversion script when building with Python 3. The
5254 ;; conversion script also runs the tests.
5255 ;; For more information, see the file 'convert-py3k' in the source
5256 ;; distribution.
5257 (replace 'check
5258 (lambda _ (zero? (system* "./convert-py3k")))))))
b32a1e47
CAW
5259 (home-page
5260 "http://www.crummy.com/software/BeautifulSoup/bs4/")
5261 (synopsis
5262 "Python screen-scraping library")
5263 (description
5264 "Beautiful Soup is a Python library designed for rapidly setting up
5265screen-scraping projects. It offers Pythonic idioms for navigating,
5266searching, and modifying a parse tree, providing a toolkit for
5267dissecting a document and extracting what you need. It automatically
5268converts incoming documents to Unicode and outgoing documents to UTF-8.")
5269 (license license:expat)
5270 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
5271
5272(define-public python2-beautifulsoup4
5273 (package
5274 (inherit (package-with-python2
5275 (strip-python2-variant python-beautifulsoup4)))
5f37f0b6
LF
5276 (native-inputs `(("python2-setuptools" ,python2-setuptools)))
5277 (arguments `(#:python ,python-2))))
b32a1e47 5278
092e86f5
AE
5279(define-public python2-cssutils
5280 (package
5281 (name "python2-cssutils")
58d1d816 5282 (version "1.0.1")
092e86f5
AE
5283 (source
5284 (origin
5285 (method url-fetch)
58d1d816 5286 (uri (pypi-uri "cssutils" version))
092e86f5 5287 (sha256
58d1d816
EF
5288 (base32
5289 "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq"))))
092e86f5
AE
5290 (build-system python-build-system)
5291 (native-inputs
5292 `(("python2-mock" ,python2-mock) ; for the tests
5293 ("unzip" ,unzip))) ; for unpacking the source
5294 (inputs
5295 `(("python2-setuptools" ,python2-setuptools)))
5296 (arguments
5297 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
5298 #:tests? #f ; The tests apparently download an external URL.
da6dd842 5299 ))
092e86f5
AE
5300 (home-page "http://cthedot.de/cssutils/")
5301 (synopsis
5302 "CSS Cascading Style Sheets library for Python")
5303 (description
5304 "Cssutils is a Python package for parsing and building CSS
5305Cascading Style Sheets. Currently it provides a DOM only and no rendering
5306options.")
3f641af0 5307 (license license:lgpl3+)))
880ff77c
AE
5308
5309(define-public python-cssselect
5310 (package
5311 (name "python-cssselect")
d5ccd9ab 5312 (version "0.9.2")
880ff77c
AE
5313 (source
5314 (origin
5315 (method url-fetch)
d5ccd9ab 5316 (uri (pypi-uri "cssselect" version))
880ff77c 5317 (sha256
d5ccd9ab
EF
5318 (base32
5319 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
880ff77c
AE
5320 (build-system python-build-system)
5321 (inputs
5322 `(("python-setuptools" ,python-setuptools)))
5323 (arguments
5324 ;; tests fail with message
5325 ;; AttributeError: 'module' object has no attribute 'tests'
5326 `(#:tests? #f))
5327 (home-page
5328 "https://pythonhosted.org/cssselect/")
5329 (synopsis
5330 "CSS3 selector parser and translator to XPath 1.0")
5331 (description
5332 "Cssselect ia a Python module that parses CSS3 Selectors and translates
5333them to XPath 1.0 expressions. Such expressions can be used in lxml or
5334another XPath engine to find the matching elements in an XML or HTML document.")
3f641af0 5335 (license license:bsd-3)))
880ff77c
AE
5336
5337(define-public python2-cssselect
5338 (package-with-python2 python-cssselect))
60357f99
AE
5339
5340(define-public python-netifaces
5341 (package
5342 (name "python-netifaces")
5343 (version "0.10.4")
5344 (source
5345 (origin
5346 (method url-fetch)
5347 (uri (string-append
5348 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
5349 version
5350 ".tar.gz"))
5351 (sha256
5352 (base32
5353 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
5354 (build-system python-build-system)
5355 (inputs
5356 `(("python-setuptools" ,python-setuptools)))
5357 (home-page
5358 "https://bitbucket.org/al45tair/netifaces")
5359 (synopsis
5360 "Python module for portable network interface information")
5361 (description
5362 "Netifaces is a Python module providing information on network
5363interfaces in an easy and portable manner.")
5364 (license license:expat)))
5365
5366(define-public python2-netifaces
5367 (package-with-python2 python-netifaces))
92cb152b 5368
32f77c04
RW
5369(define-public python-networkx
5370 (package
5371 (name "python-networkx")
a4d9609c 5372 (version "1.11")
32f77c04
RW
5373 (source
5374 (origin
5375 (method url-fetch)
a4d9609c 5376 (uri (pypi-uri "networkx" version))
32f77c04 5377 (sha256
a4d9609c 5378 (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
32f77c04
RW
5379 (build-system python-build-system)
5380 ;; python-decorator is needed at runtime
5381 (propagated-inputs
5382 `(("python-decorator" ,python-decorator)))
5383 (native-inputs
5384 `(("python-setuptools" ,python-setuptools)
5385 ("python-nose" ,python-nose)))
5386 (home-page "http://networkx.github.io/")
5387 (synopsis "Python module for creating and manipulating graphs and networks")
5388 (description
5389 "NetworkX is a Python package for the creation, manipulation, and study
5390of the structure, dynamics, and functions of complex networks.")
3f641af0 5391 (license license:bsd-3)))
32f77c04
RW
5392
5393(define-public python2-networkx
5394 (package-with-python2 python-networkx))
5395
92cb152b
RW
5396(define-public snakemake
5397 (package
5398 (name "snakemake")
5399 (version "3.2.1")
5400 (source
5401 (origin
5402 (method url-fetch)
5403 (uri (string-append
5404 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
5405 version ".tar.gz"))
5406 (sha256
5407 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
5408 (build-system python-build-system)
5409 (inputs `(("python-setuptools" ,python-setuptools)))
5410 (home-page "https://bitbucket.org/johanneskoester/snakemake")
5411 (synopsis "Python-based execution environment for make-like workflows")
5412 (description
5413 "Snakemake aims to reduce the complexity of creating workflows by
5414providing a clean and modern domain specific specification language (DSL) in
5415Python style, together with a fast and comfortable execution environment.")
5416 (license license:expat)))
a1920bc9 5417
35de1fbd
RW
5418(define-public python-seaborn
5419 (package
5420 (name "python-seaborn")
fc899d4f 5421 (version "0.7.0")
35de1fbd
RW
5422 (source
5423 (origin
5424 (method url-fetch)
fc899d4f 5425 (uri (pypi-uri "seaborn" version))
35de1fbd 5426 (sha256
fc899d4f 5427 (base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m"))))
35de1fbd
RW
5428 (build-system python-build-system)
5429 (propagated-inputs
5430 `(("python-pandas" ,python-pandas)
5431 ("python-matplotlib" ,python-matplotlib)
5432 ("python-scipy" ,python-scipy)))
35de1fbd
RW
5433 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
5434 (synopsis "Statistical data visualization")
5435 (description
5436 "Seaborn is a library for making attractive and informative statistical
5437graphics in Python. It is built on top of matplotlib and tightly integrated
5438with the PyData stack, including support for numpy and pandas data structures
5439and statistical routines from scipy and statsmodels.")
3f641af0 5440 (license license:bsd-3)
fc899d4f 5441 (properties `((python2-variant . ,(delay python2-seaborn))))))
35de1fbd
RW
5442
5443(define-public python2-seaborn
fc899d4f
EF
5444 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
5445 (package
5446 (inherit base)
5447 (propagated-inputs `(("python2-pytz" ,python2-pytz)
5448 ,@(package-propagated-inputs base)))
5449 (native-inputs `(("python2-setuptools" ,python2-setuptools)
5450 ,@(package-native-inputs base))))))
35de1fbd 5451
90fc547f
RW
5452(define-public python-sympy
5453 (package
5454 (name "python-sympy")
5455 (version "0.7.6")
5456 (source
5457 (origin
5458 (method url-fetch)
5459 (uri (string-append
5460 "https://github.com/sympy/sympy/releases/download/sympy-"
5461 version "/sympy-" version ".tar.gz"))
5462 (sha256
5463 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
5464 (build-system python-build-system)
5465 (native-inputs
5466 `(("python-setuptools" ,python-setuptools)))
5467 (home-page "http://www.sympy.org/")
5468 (synopsis "Python library for symbolic mathematics")
5469 (description
5470 "SymPy is a Python library for symbolic mathematics. It aims to become a
5471full-featured computer algebra system (CAS) while keeping the code as simple
5472as possible in order to be comprehensible and easily extensible.")
3f641af0 5473 (license license:bsd-3)))
90fc547f
RW
5474
5475(define-public python2-sympy
5476 (package-with-python2 python-sympy))
5477
e8c9b010
SR
5478(define-public python-q
5479 (package
5480 (name "python-q")
5481 (version "2.6")
5482 (source
5483 (origin
5484 (method url-fetch)
5485 (uri (pypi-uri "q" version))
5486 (sha256
5487 (base32
5488 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
5489 (build-system python-build-system)
5490 (home-page "https://github.com/zestyping/q")
5491 (synopsis "Quick-and-dirty debugging output for tired programmers")
5492 (description
5493 "q is a Python module for \"print\" style of debugging Python code. It
5494provides convenient short API for print out of values, tracebacks, and
5495falling into the Python interpreter.")
5496 (license license:asl2.0)
5497 (properties `((python2-variant . ,(delay python2-q))))))
5498
5499(define-public python2-q
5500 (let ((base (package-with-python2 (strip-python2-variant python-q))))
5501 (package
5502 (inherit base)
5503 (native-inputs
5504 `(("python2-setuptools" ,python2-setuptools)
5505 ,@(package-native-inputs base))))))
5506
a1920bc9
FB
5507(define-public python-testlib
5508 (package
5509 (name "python-testlib")
5510 (version "0.6.5")
5511 (source
5512 (origin
5513 (method url-fetch)
5514 (uri (string-append
5515 "https://pypi.python.org/packages/source/t/testlib/testlib-"
5516 version ".zip"))
5517 (sha256
5518 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
5519 (build-system python-build-system)
5520 (inputs
5521 `(("python-setuptools" ,python-setuptools)))
5522 (native-inputs
5523 `(("unzip" ,unzip)))
5524 (arguments
5525 `(#:phases
5526 (alist-replace
5527 'unpack
5528 (lambda* (#:key inputs outputs #:allow-other-keys)
5529 (let ((unzip (string-append (assoc-ref inputs "unzip")
5530 "/bin/unzip"))
5531 (source (assoc-ref inputs "source")))
5532 (and (zero? (system* unzip source))
5533 (chdir (string-append "testlib-" ,version)))))
5534 %standard-phases)))
5535 (synopsis "Python micro test suite harness")
5536 (description "A micro unittest suite harness for Python.")
5537 (home-page "https://github.com/trentm/testlib")
1cb9c006 5538 (license license:expat)))
a1920bc9
FB
5539
5540(define-public python2-testlib
5541 (package-with-python2 python-testlib))
db62afa5
LC
5542
5543(define-public python2-xlib
5544 (package
5545 (name "python2-xlib")
5546 (version "0.14")
5547 (source (origin
5548 (method url-fetch)
de67e922
LF
5549 (uri (string-append "mirror://sourceforge/python-xlib/python-xlib"
5550 "/" version "/"
db62afa5
LC
5551 "python-xlib-" version ".tar.gz"))
5552 (sha256
5553 (base32
5554 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
5555 (build-system python-build-system)
5556 (arguments
5557 `(#:python ,python-2 ;Python 2 only
5558 #:tests? #f)) ;no tests
5559 (inputs
5560 `(("python-setuptools" ,python-setuptools)))
5561 (home-page "http://python-xlib.sourceforge.net/")
5562 (synopsis "Python X11 client library")
5563 (description
5564 "The Python X Library is intended to be a fully functional X client
5565library for Python programs. It is useful to implement low-level X clients.
5566It is written entirely in Python.")
3f641af0 5567 (license license:gpl2+)))
0234ca06
DT
5568
5569(define-public python-singledispatch
5570 (package
5571 (name "python-singledispatch")
5572 (version "3.4.0.3")
5573 (source
5574 (origin
5575 (method url-fetch)
bdb67d84 5576 (uri (pypi-uri "singledispatch" version))
0234ca06
DT
5577 (sha256
5578 (base32
5579 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
5580 (build-system python-build-system)
5581 (native-inputs
5582 `(("python-setuptools" ,python-setuptools)))
bdb67d84 5583 (inputs
0234ca06
DT
5584 `(("python-six" ,python-six)))
5585 (home-page
5586 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
5587 (synopsis "Backport of singledispatch feature from Python 3.4")
5588 (description
5589 "This library brings functools.singledispatch from Python 3.4 to Python
55902.6-3.3.")
5591 (license license:expat)))
5592
5593(define-public python2-singledispatch
5594 (package-with-python2 python-singledispatch))
feaae484 5595
310d218f
RW
5596(define-public python-tornado
5597 (package
5598 (name "python-tornado")
a724924b 5599 (version "4.3")
310d218f
RW
5600 (source
5601 (origin
5602 (method url-fetch)
a724924b 5603 (uri (pypi-uri "tornado" version))
310d218f 5604 (sha256
a724924b 5605 (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
310d218f 5606 (build-system python-build-system)
310d218f 5607 (native-inputs
b455439b
EF
5608 `(("python-certifi" ,python-certifi)))
5609 (inputs
5610 `(("python-backports-abc" ,python-backports-abc)))
f4a4a718 5611 (home-page "http://www.tornadoweb.org/")
310d218f
RW
5612 (synopsis "Python web framework and asynchronous networking library")
5613 (description
5614 "Tornado is a Python web framework and asynchronous networking library,
5615originally developed at FriendFeed. By using non-blocking network I/O,
5616Tornado can scale to tens of thousands of open connections, making it ideal
5617for long polling, WebSockets, and other applications that require a long-lived
5618connection to each user.")
3f641af0 5619 (license license:asl2.0)
b455439b 5620 (properties `((python2-variant . ,(delay python2-tornado))))))
310d218f
RW
5621
5622(define-public python2-tornado
b455439b 5623 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
310d218f
RW
5624 (package (inherit tornado)
5625 (inputs
5626 `(("python2-backport-ssl-match-hostname"
5627 ,python2-backport-ssl-match-hostname)
b455439b
EF
5628 ("python2-singledispatch" ,python2-singledispatch)
5629 ,@(package-inputs tornado)))
5630 (native-inputs
5631 `(("python2-setuptools" ,python2-setuptools)
5632 ,@(package-native-inputs tornado))))))
310d218f 5633
6b59fc10
EF
5634;; the python- version can be removed with python-3.5
5635(define-public python-backports-abc
5636 (package
5637 (name "python-backports-abc")
5638 (version "0.4")
5639 (source
5640 (origin
5641 (method url-fetch)
5642 (uri (pypi-uri "backports_abc" version))
5643 (sha256
5644 (base32
5645 "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
5646 (build-system python-build-system)
5647 (inputs
5648 `(("python-setuptools" ,python-setuptools)))
5649 (home-page "https://github.com/cython/backports_abc")
66e07664 5650 (synopsis "Backport of additions to the 'collections.abc' module")
6b59fc10
EF
5651 (description
5652 "Python-backports-abc provides a backport of additions to the
5653'collections.abc' module in Python-3.5.")
3f641af0 5654 (license license:psfl)))
6b59fc10
EF
5655
5656(define-public python2-backports-abc
5657 (package-with-python2 python-backports-abc))
5658
feaae484
SB
5659(define-public python-waf
5660 (package
5661 (name "python-waf")
7dd55dfe 5662 (version "1.9.5")
feaae484
SB
5663 (source (origin
5664 (method url-fetch)
bae67829 5665 (uri (string-append "https://waf.io/"
feaae484
SB
5666 "waf-" version ".tar.bz2"))
5667 (sha256
5668 (base32
7dd55dfe 5669 "1sl3ipi2czds57rlzjnpdzqa0skx8asfvmh3qmibpvdwf15rpppg"))))
feaae484
SB
5670 (build-system python-build-system)
5671 (arguments
5672 '(#:phases
5673 (modify-phases %standard-phases
5674 (replace 'build
7dd55dfe
EF
5675 (lambda _
5676 (zero? (system* "python" "waf-light" "configure" "build"))))
feaae484 5677 (replace 'check
7dd55dfe
EF
5678 (lambda _
5679 (zero? (system* "python" "waf" "--version"))))
feaae484 5680 (replace 'install
7dd55dfe
EF
5681 (lambda _
5682 (copy-file "waf" %output))))))
5683 (home-page "http://waf.io/")
feaae484
SB
5684 (synopsis "Python-based build system")
5685 (description
5686 "Waf is a Python-based framework for configuring, compiling and installing
5687applications.")
3f641af0 5688 (license license:bsd-3)))
feaae484
SB
5689
5690(define-public python2-waf
5691 (package-with-python2 python-waf))
45203542
RW
5692
5693(define-public python-pyzmq
5694 (package
5695 (name "python-pyzmq")
3655ee76 5696 (version "15.1.0")
45203542
RW
5697 (source
5698 (origin
5699 (method url-fetch)
3655ee76 5700 (uri (pypi-uri "pyzmq" version))
45203542 5701 (sha256
3655ee76 5702 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
45203542
RW
5703 (build-system python-build-system)
5704 (arguments
5705 `(#:configure-flags
5706 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
5707 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
5708 ;; --inplace' for 'python setup.py test' to work.
5709 #:tests? #f))
5710 (inputs
5711 `(("zeromq" ,zeromq)))
5712 (native-inputs
5713 `(("pkg-config" ,pkg-config)
5714 ("python-nose" ,python-nose)
5715 ("python-setuptools" ,python-setuptools)))
5716 (home-page "http://github.com/zeromq/pyzmq")
5717 (synopsis "Python bindings for 0MQ")
5718 (description
5719 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
3f641af0 5720 (license license:bsd-4)))
45203542
RW
5721
5722(define-public python2-pyzmq
5723 (package-with-python2 python-pyzmq))
d889e6c4
CR
5724
5725(define-public python-pep8
5726 (package
5727 (name "python-pep8")
db251311 5728 (version "1.7.0")
d889e6c4
CR
5729 (source
5730 (origin
5731 (method url-fetch)
db251311 5732 (uri (pypi-uri "pep8" version))
d889e6c4
CR
5733 (sha256
5734 (base32
db251311 5735 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
d889e6c4
CR
5736 (build-system python-build-system)
5737 (inputs
5738 `(("python-setuptools" ,python-setuptools)))
5739 (home-page "http://pep8.readthedocs.org/")
5740 (synopsis "Python style guide checker")
5741 (description
5742 "This tools checks Python code against some of the style conventions in
5743PEP 8.")
5744 (license license:expat)))
5745
5746(define-public python2-pep8
5747 (package-with-python2 python-pep8))
e31d7f44
CR
5748
5749(define-public python-pyflakes
5750 (package
5751 (name "python-pyflakes")
2abc3972 5752 (version "1.0.0")
e31d7f44
CR
5753 (source
5754 (origin
5755 (method url-fetch)
2abc3972 5756 (uri (pypi-uri "pyflakes" version))
e31d7f44
CR
5757 (sha256
5758 (base32
2abc3972 5759 "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
e31d7f44
CR
5760 (build-system python-build-system)
5761 (inputs
5762 `(("python-setuptools" ,python-setuptools)))
5763 (home-page
5764 "https://github.com/pyflakes/pyflakes")
5765 (synopsis "Passive checker of Python programs")
5766 (description
5767 "Pyflakes statically checks Python source code for common errors.")
5768 (license license:expat)))
a59e017c 5769
7261d9eb
CR
5770(define-public python2-pyflakes
5771 (package-with-python2 python-pyflakes))
5772
a59e017c
CR
5773(define-public python-mccabe
5774 (package
5775 (name "python-mccabe")
c6ebd40d 5776 (version "0.4.0")
a59e017c
CR
5777 (source
5778 (origin
5779 (method url-fetch)
c6ebd40d 5780 (uri (pypi-uri "mccabe" version))
a59e017c
CR
5781 (sha256
5782 (base32
c6ebd40d 5783 "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
a59e017c
CR
5784 (build-system python-build-system)
5785 (inputs
c6ebd40d
EF
5786 `(("python-pytest" ,python-pytest)
5787 ("python-pytest-runner" ,python-pytest-runner)
5788 ("python-setuptools" ,python-setuptools)))
a59e017c
CR
5789 (home-page "https://github.com/flintwork/mccabe")
5790 (synopsis "McCabe checker, plugin for flake8")
5791 (description
5792 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5793complexity of Python source code.")
7362371d 5794 (license license:expat)))
a59e017c
CR
5795
5796(define-public python2-mccabe
5797 (package-with-python2 python-mccabe))
e8df8f47 5798
7477fbb1
CR
5799(define-public python-mccabe-0.2.1
5800 (package (inherit python-mccabe)
5801 (version "0.2.1")
5802 (source
5803 (origin
5804 (method url-fetch)
5805 (uri (pypi-uri "mccabe" version))
5806 (sha256
5807 (base32
c6ebd40d 5808 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))
b3546174 5809 (inputs `(("python-setuptools" ,python-setuptools)))))
7477fbb1
CR
5810
5811(define-public python2-mccabe-0.2.1
5812 (package-with-python2 python-mccabe-0.2.1))
5813
e8df8f47
CR
5814;; Flake8 2.4.1 requires an older version of pep8.
5815;; This should be removed ASAP.
5816(define-public python-pep8-1.5.7
5817 (package (inherit python-pep8)
5818 (version "1.5.7")
5819 (source
5820 (origin
5821 (method url-fetch)
5822 (uri (string-append
5823 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5824 version
5825 ".tar.gz"))
5826 (sha256
5827 (base32
5828 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
5829
5830(define-public python2-pep8-1.5.7
5831 (package-with-python2 python-pep8-1.5.7))
5832
5833;; Flake8 2.4.1 requires an older version of pyflakes.
5834;; This should be removed ASAP.
5835(define-public python-pyflakes-0.8.1
5836 (package (inherit python-pyflakes)
5837 (version "0.8.1")
5838 (source
5839 (origin
5840 (method url-fetch)
5841 (uri (string-append
5842 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5843 version
5844 ".tar.gz"))
5845 (sha256
5846 (base32
5847 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
5848
5849(define-public python2-pyflakes-0.8.1
7261d9eb 5850 (package-with-python2 python-pyflakes-0.8.1))
e8df8f47
CR
5851
5852(define-public python-flake8
5853 (package
5854 (name "python-flake8")
43789136 5855 (version "2.5.4")
e8df8f47
CR
5856 (source
5857 (origin
5858 (method url-fetch)
1b995533 5859 (uri (pypi-uri "flake8" version))
e8df8f47
CR
5860 (sha256
5861 (base32
43789136 5862 "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
e8df8f47
CR
5863 (build-system python-build-system)
5864 (inputs
5865 `(("python-setuptools" ,python-setuptools)
43789136
EF
5866 ("python-pep8" ,python-pep8)
5867 ("python-pyflakes" ,python-pyflakes)
e8df8f47
CR
5868 ("python-mccabe" ,python-mccabe)
5869 ("python-mock" ,python-mock)
5870 ("python-nose" ,python-nose)))
5871 (home-page "https://gitlab.com/pycqa/flake8")
5872 (synopsis
5873 "The modular source code checker: pep8, pyflakes and co")
5874 (description
5875 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5876 (license license:expat)))
5877
5878(define-public python2-flake8
5879 (package-with-python2 python-flake8))
61b9ac53 5880
abf21efc
CR
5881;; This will only be needed by the python-hacking package and will not be
5882;; necessary once python-hacking > 0.10.2 is released.
5883(define-public python-flake8-2.2.4
5884 (package (inherit python-flake8)
5885 (inputs
5886 `(("python-setuptools" ,python-setuptools)
5887 ("python-pep8" ,python-pep8-1.5.7)
5888 ("python-pyflakes" ,python-pyflakes-0.8.1)
5889 ("python-mccabe" ,python-mccabe-0.2.1)
5890 ("python-mock" ,python-mock)
5891 ("python-nose" ,python-nose)))
5892 (version "2.2.4")
5893 (source
5894 (origin
5895 (method url-fetch)
5896 (uri (pypi-uri "flake8" version))
5897 (sha256
5898 (base32
5899 "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
5900
5901(define-public python2-flake8-2.2.4
5902 (package-with-python2 python-flake8-2.2.4))
5903
61b9ac53
FB
5904(define-public python-mistune
5905 (package
5906 (name "python-mistune")
5907 (version "0.7")
5908 (source
5909 (origin
5910 (method url-fetch)
5911 (uri (string-append
5912 "https://pypi.python.org/packages/source/m/mistune/mistune-"
5913 version
5914 ".tar.gz"))
5915 (sha256
5916 (base32
5917 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
5918 (build-system python-build-system)
5919 (inputs
5920 `(("python-setuptools" ,python-setuptools)
5921 ("python-nose" ,python-nose)
5922 ("python-cython" ,python-cython)))
5923 (home-page "https://github.com/lepture/mistune")
5924 (synopsis "Markdown parser in pure Python")
5925 (description "This package provides a fast markdown parser in pure
5926Python.")
3f641af0 5927 (license license:bsd-3)))
61b9ac53
FB
5928
5929(define-public python2-mistune
5930 (package-with-python2 python-mistune))
6d992d07 5931
b9893908
EE
5932(define-public python-markdown
5933 (package
5934 (name "python-markdown")
5935 (version "2.6.5")
5936 (source
5937 (origin
5938 (method url-fetch)
5939 (uri (pypi-uri "Markdown" version))
5940 (sha256
5941 (base32
5942 "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
5943 (build-system python-build-system)
5944 (arguments
5945 `(#:phases
5946 (modify-phases %standard-phases
5947 (replace 'check
5948 (lambda _
5949 (zero? (system* "python" "run-tests.py")))))))
5950 (native-inputs
5951 `(("python-nose" ,python-nose)
5952 ("python-pyyaml" ,python-pyyaml)))
5953 (home-page "https://pythonhosted.org/Markdown/")
5954 (synopsis "Python implementation of Markdown")
5955 (description
5956 "This package provides a Python implementation of John Gruber's
5957Markdown. The library features international input, various Markdown
5958extensions, and several HTML output formats. A command line wrapper
5959markdown_py is also provided to convert Markdown files to HTML.")
3f641af0 5960 (license license:bsd-3)))
b9893908
EE
5961
5962(define-public python2-markdown
5963 (package-with-python2 python-markdown))
5964
6d992d07
FB
5965(define-public python-ptyprocess
5966 (package
5967 (name "python-ptyprocess")
5968 (version "0.5")
5969 (source
5970 (origin
5971 (method url-fetch)
5972 (uri (string-append
5973 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
5974 version ".tar.gz"))
5975 (sha256
5976 (base32
5977 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
5978 (build-system python-build-system)
5979 (inputs
5980 `(("python-setuptools" ,python-setuptools)
5981 ("python-nose" ,python-nose)))
5982 (arguments
5983 `(#:phases
5984 (modify-phases %standard-phases
5985 (replace 'check
5986 (lambda _
5987 (zero? (system* "nosetests")))))))
5988 (home-page "https://github.com/pexpect/ptyprocess")
5989 (synopsis "Run a subprocess in a pseudo terminal")
5990 (description
5991 "This package provides a Python library used to launch a subprocess in a
5992pseudo terminal (pty), and interact with both the process and its pty.")
3f641af0 5993 (license license:isc)))
6d992d07
FB
5994
5995(define-public python2-ptyprocess
5996 (package-with-python2 python-ptyprocess))
4aadb1df
FB
5997
5998(define-public python-terminado
5999 (package
6000 (name "python-terminado")
783fb0a3 6001 (version "0.6")
4aadb1df
FB
6002 (source
6003 (origin
6004 (method url-fetch)
783fb0a3 6005 (uri (pypi-uri "terminado" version))
4aadb1df
FB
6006 (sha256
6007 (base32
783fb0a3 6008 "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc"))))
4aadb1df
FB
6009 (build-system python-build-system)
6010 (propagated-inputs
6011 `(("python-tornado" ,python-tornado)
6012 ("python-ptyprocess" ,python-ptyprocess)))
783fb0a3
EF
6013 (native-inputs
6014 `(("python-nose" ,python-nose)))
4aadb1df
FB
6015 (arguments
6016 `(#:phases
6017 (modify-phases %standard-phases
6018 (replace 'check
6019 (lambda _
6020 (zero? (system* "nosetests")))))))
6021 (home-page "https://github.com/takluyver/terminado")
6022 (synopsis "Terminals served to term.js using Tornado websockets")
6023 (description "This package provides a Tornado websocket backend for the
6024term.js Javascript terminal emulator library.")
3f641af0 6025 (license license:bsd-2)
783fb0a3 6026 (properties `((python2-variant . ,(delay python2-terminado))))))
4aadb1df
FB
6027
6028(define-public python2-terminado
783fb0a3 6029 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
4aadb1df 6030 (package (inherit terminado)
783fb0a3
EF
6031 (propagated-inputs
6032 `(("python2-backport-ssl-match-hostname"
6033 ,python2-backport-ssl-match-hostname)
6034 ,@(package-propagated-inputs terminado)))
6035 (native-inputs
6036 `(("python2-setuptools" ,python2-setuptools)
6037 ,@(package-native-inputs terminado))))))
5faa5ce4 6038
d582eaac
SB
6039(define-public python-fonttools
6040 (package
6041 (name "python-fonttools")
6042 (version "2.5")
6043 (source (origin
6044 (method url-fetch)
6045 (uri (string-append
6046 "https://pypi.python.org/packages/source/F/FontTools/"
6047 "fonttools-" version ".tar.gz"))
6048 (sha256
6049 (base32
6050 "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
6051 (build-system python-build-system)
6052 (arguments '(#:test-target "check"))
6053 (propagated-inputs
6054 ;; XXX: module not found if setuptools is not available.
6055 `(("python-setuptools" ,python-setuptools)))
6056 (home-page "http://github.com/behdad/fonttools")
6057 (synopsis "Tools to manipulate font files")
6058 (description
6059 "FontTools/TTX is a library to manipulate font files from Python. It
6060supports reading and writinfg of TrueType/OpenType fonts, reading and writing
6061of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
6062also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
6063from an XML-based format.")
3f641af0
DC
6064 (license (license:non-copyleft
6065 "file://LICENSE.txt"
6066 "See LICENSE.txt in the distribution."))))
d582eaac
SB
6067
6068(define-public python2-fonttools
6069 (package-with-python2 python-fonttools))
75710da6 6070
5faa5ce4
RW
6071(define-public python-ly
6072 (package
6073 (name "python-ly")
5135354f 6074 (version "0.9.4")
5faa5ce4
RW
6075 (source
6076 (origin
6077 (method url-fetch)
5135354f
RW
6078 (uri (string-append "https://pypi.python.org/packages/57/4f/"
6079 "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9"
6080 "/python-ly-" version ".tar.gz"))
5faa5ce4
RW
6081 (sha256
6082 (base32
5135354f 6083 "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62"))))
5faa5ce4
RW
6084 (build-system python-build-system)
6085 (native-inputs
6086 `(("python-setuptools" ,python-setuptools)))
6087 (synopsis "Tool and library for manipulating LilyPond files")
6088 (description "This package provides a Python library to parse, manipulate
6089or create documents in LilyPond format. A command line program ly is also
6090provided that can be used to do various manipulations with LilyPond files.")
6091 (home-page "https://pypi.python.org/pypi/python-ly")
3f641af0 6092 (license license:gpl2+)))
7e7b27d9
CR
6093
6094(define-public python-appdirs
6095 (package
6096 (name "python-appdirs")
6097 (version "1.4.0")
6098 (source
6099 (origin
6100 (method url-fetch)
6101 (uri (string-append
6102 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
6103 version
6104 ".tar.gz"))
6105 (sha256
6106 (base32
6107 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
6108 (build-system python-build-system)
6109 (inputs
6110 `(("python-setuptools" ,python-setuptools)))
6111 (home-page "http://github.com/ActiveState/appdirs")
6112 (synopsis
6113 "Determine platform-specific dirs, e.g. a \"user data dir\"")
6114 (description
6115 "This module provides a portable way of finding out where user data
6116should be stored on various operating systems.")
6117 (license license:expat)))
6118
6119(define-public python2-appdirs
6120 (package-with-python2 python-appdirs))
89b2e0b0
LF
6121
6122(define-public python-llfuse
6123 (package
6124 (name "python-llfuse")
e36ace36 6125 (version "1.1.1")
89b2e0b0
LF
6126 (source (origin
6127 (method url-fetch)
6128 (uri (string-append
6129 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
6130 "llfuse-" version ".tar.bz2"))
6131 (sha256
6132 (base32
e36ace36 6133 "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v"))))
89b2e0b0
LF
6134 (build-system python-build-system)
6135 (inputs
6136 `(("fuse" ,fuse)
6137 ("attr" ,attr)))
6138 (native-inputs
6139 `(("pkg-config" ,pkg-config)
6140 ("python-setuptools" ,python-setuptools)))
6141 (synopsis "Python bindings for FUSE")
6142 (description
6143 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
6144 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
3f641af0 6145 (license license:lgpl2.0+)
cd0569c4 6146 (properties `((python2-variant . ,(delay python2-llfuse))))))
89b2e0b0
LF
6147
6148(define-public python2-llfuse
cd0569c4
LF
6149 (package (inherit (package-with-python2
6150 (strip-python2-variant python-llfuse)))
6151 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
6152
6153;; For attic-0.16
6154(define-public python-llfuse-0.41
6155 (package (inherit python-llfuse)
229b3661 6156 (version "0.41.1")
cd0569c4
LF
6157 (source (origin
6158 (method url-fetch)
6159 (uri (string-append
6160 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
6161 "llfuse-" version ".tar.bz2"))
6162 (sha256
6163 (base32
229b3661 6164 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
cd0569c4
LF
6165 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
6166 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
3f641af0 6167 (license (list license:expat license:lgpl2.0+))))
641c9871
LF
6168
6169(define-public python-msgpack
6170 (package
6171 (name "python-msgpack")
aed625bd 6172 (version "0.4.8")
641c9871
LF
6173 (source (origin
6174 (method url-fetch)
ae831df4 6175 (uri (pypi-uri "msgpack-python" version))
641c9871
LF
6176 (sha256
6177 (base32
aed625bd 6178 "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs"))))
641c9871 6179 (build-system python-build-system)
641c9871
LF
6180 (synopsis "MessagePack (de)serializer")
6181 (description "MessagePack is a fast, compact binary serialization format,
6182suitable for similar data to JSON. This package provides CPython bindings for
6183reading and writing MessagePack data.")
6184 (home-page "https://pypi.python.org/pypi/msgpack-python/")
3f641af0 6185 (license license:asl2.0)
bd74be7b
LF
6186 (properties `((python2-variant . ,(delay python2-msgpack))))))
6187
6188(define-public python2-msgpack
6189 (package (inherit (package-with-python2
6190 (strip-python2-variant python-msgpack)))
6191 (native-inputs
6192 `(("python2-setuptools" ,python2-setuptools)))))
641c9871 6193
6e5e39f4
CR
6194(define-public python-netaddr
6195 (package
6196 (name "python-netaddr")
6197 (version "0.7.18")
6198 (source
6199 (origin
6200 (method url-fetch)
6201 (uri (string-append
6202 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
6203 version
6204 ".tar.gz"))
6205 (sha256
6206 (base32
6207 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
6208 (build-system python-build-system)
6209 (arguments `(#:tests? #f)) ;; No tests.
6210 (inputs
6211 `(("python-setuptools" ,python-setuptools)))
6212 (home-page "https://github.com/drkjam/netaddr/")
6213 (synopsis "Pythonic manipulation of network addresses")
6214 (description
6215 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
6216and MAC network addresses.")
3f641af0 6217 (license license:bsd-3)))
6e5e39f4
CR
6218
6219(define-public python2-netaddr
6220 (package-with-python2 python-netaddr))
8c692a52
CR
6221
6222(define-public python-wrapt
6223 (package
6224 (name "python-wrapt")
6225 (version "1.10.5")
6226 (source
6227 (origin
6228 (method url-fetch)
6229 (uri (string-append
6230 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
6231 version
6232 ".tar.gz"))
6233 (sha256
6234 (base32
6235 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
6236 (build-system python-build-system)
6237 (arguments
6238 ;; Tests are not included in the tarball, they are only available in the
6239 ;; git repository.
6240 `(#:tests? #f))
6241 (inputs
6242 `(("python-setuptools" ,python-setuptools)))
6243 (home-page "https://github.com/GrahamDumpleton/wrapt")
6244 (synopsis "Module for decorators, wrappers and monkey patching")
6245 (description
6246 "The aim of the wrapt module is to provide a transparent object proxy for
6247 Python, which can be used as the basis for the construction of function
6248 wrappers and decorator functions.")
3f641af0 6249 (license license:bsd-2)))
8c692a52
CR
6250
6251(define-public python2-wrapt
6252 (package-with-python2 python-wrapt))
b85c85be
CR
6253
6254(define-public python-iso8601
6255 (package
6256 (name "python-iso8601")
fe84bc9a 6257 (version "0.1.11")
b85c85be
CR
6258 (source
6259 (origin
6260 (method url-fetch)
fe84bc9a 6261 (uri (pypi-uri "iso8601" version))
b85c85be 6262 (sha256
fe84bc9a
EF
6263 (base32
6264 "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8"))))
b85c85be
CR
6265 (build-system python-build-system)
6266 (inputs
6267 `(("python-setuptools" ,python-setuptools)))
6268 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
6269 (synopsis "Module to parse ISO 8601 dates")
6270 (description
6271 "This module parses the most common forms of ISO 8601 date strings (e.g.
6272@code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
6273 (license license:expat)))
6274
6275(define-public python2-iso8601
6276 (package-with-python2 python-iso8601))
5e412b63
CR
6277
6278(define-public python-monotonic
6279 (package
6280 (name "python-monotonic")
6281 (version "0.3")
6282 (source
6283 (origin
6284 (method url-fetch)
6285 (uri (string-append
6286 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
6287 version
6288 ".tar.gz"))
6289 (sha256
6290 (base32
6291 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
6292 (build-system python-build-system)
6293 (inputs
6294 `(("python-setuptools" ,python-setuptools)))
6295 (home-page "https://github.com/atdt/monotonic")
6296 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
6297 (description
6298 "This module provides a monotonic() function which returns the value (in
6299fractional seconds) of a clock which never goes backwards.")
3f641af0 6300 (license license:asl2.0)))
5e412b63
CR
6301
6302(define-public python2-monotonic
6303 (package-with-python2 python-monotonic))
de34afac
CR
6304
6305(define-public python-webob
6306 (package
6307 (name "python-webob")
b8834c21 6308 (version "1.5.1")
de34afac
CR
6309 (source
6310 (origin
6311 (method url-fetch)
b8834c21 6312 (uri (pypi-uri "WebOb" version))
de34afac
CR
6313 (sha256
6314 (base32
b8834c21 6315 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
de34afac
CR
6316 (build-system python-build-system)
6317 (inputs
6318 `(("python-nose" ,python-nose)
6319 ("python-setuptools" ,python-setuptools)))
6320 (home-page "http://webob.org/")
6321 (synopsis "WSGI request and response object")
6322 (description
6323 "WebOb provides wrappers around the WSGI request environment, and an
6324object to help create WSGI responses.")
6325 (license license:expat)))
6326
6327(define-public python2-webob
6328 (package-with-python2 python-webob))
350ba0a3 6329
02a8a187
BW
6330(define-public python-xlrd
6331 (package
6332 (name "python-xlrd")
c2ad4d70 6333 (version "1.0.0")
02a8a187
BW
6334 (source (origin
6335 (method url-fetch)
e775f48e 6336 (uri (pypi-uri "xlrd" version))
02a8a187
BW
6337 (sha256
6338 (base32
c2ad4d70 6339 "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g"))))
02a8a187
BW
6340 (build-system python-build-system)
6341 (arguments
6342 `(#:phases
6343 (modify-phases %standard-phases
c2ad4d70 6344 ;; Current test in setup.py does not work as of 1.0.0, so use nose to
02a8a187
BW
6345 ;; run tests instead for now.
6346 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
6347 (native-inputs `(("python-nose" ,python-nose)
6348 ("python-setuptools" ,python-setuptools)))
6349 (home-page "http://www.python-excel.org/")
6350 (synopsis "Library for extracting data from Excel files")
6351 (description "This packages provides a library to extract data from
c598e35c 6352spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
02a8a187
BW
6353@samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
6354Unicode-aware. It is not intended as an end-user tool.")
3f641af0 6355 (license license:bsd-3)))
02a8a187
BW
6356
6357(define-public python2-xlrd
6358 (package-with-python2 python-xlrd))
6359
350ba0a3
CR
6360(define-public python-prettytable
6361 (package
6362 (name "python-prettytable")
6363 (version "0.7.2")
6364 (source
6365 (origin
6366 (method url-fetch)
6367 (uri (string-append
6368 "https://pypi.python.org/packages/source/P/PrettyTable/"
6369 "prettytable-" version ".tar.bz2"))
6370 (sha256
6371 (base32
6372 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
6373 (build-system python-build-system)
6374 (inputs
6375 `(("python-setuptools" ,python-setuptools)))
6376 (home-page "http://code.google.com/p/prettytable/")
6377 (synopsis "Display tabular data in an ASCII table format")
6378 (description
6379 "A library designed to represent tabular data in visually appealing ASCII
6380tables. PrettyTable allows for selection of which columns are to be printed,
6381independent alignment of columns (left or right justified or centred) and
6382printing of sub-tables by specifying a row range.")
3f641af0 6383 (license license:bsd-3)))
350ba0a3
CR
6384
6385(define-public python2-prettytable
6386 (package-with-python2 python-prettytable))
7a8ac75a 6387
9f8ee3fe
RW
6388(define-public python-tables
6389 (package
6390 (name "python-tables")
6391 (version "3.2.2")
6392 (source
6393 (origin
6394 (method url-fetch)
6395 (uri (pypi-uri "tables" version))
6396 (sha256
6397 (base32
6398 "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))))
6399 (build-system python-build-system)
6400 (arguments
6401 `(;; FIXME: python-build-system does not pass configure-flags to "build"
6402 ;; or "check", so we must override the build and check phases.
6403 #:phases
6404 (modify-phases %standard-phases
6405 (add-after 'unpack 'use-gcc
6406 (lambda _
6407 (substitute* "setup.py"
6408 (("compiler = new_compiler\\(\\)" line)
6409 (string-append line
6410 "\ncompiler.set_executables(compiler='gcc',"
6411 "compiler_so='gcc',"
6412 "linker_exe='gcc',"
6413 "linker_so='gcc -shared')")))
6414 #t))
6415 (replace 'build
6416 (lambda* (#:key inputs #:allow-other-keys)
6417 (zero? (system* "python" "setup.py" "build"
6418 (string-append "--hdf5="
6419 (assoc-ref inputs "hdf5"))))))
6420 (replace 'check
6421 (lambda* (#:key inputs #:allow-other-keys)
6422 (zero? (system* "python" "setup.py" "check"
6423 (string-append "--hdf5="
6424 (assoc-ref inputs "hdf5")))))))))
6425 (propagated-inputs
6426 `(("python-numexpr" ,python-numexpr)
6427 ("python-numpy" ,python-numpy)))
6428 (native-inputs
6429 `(("python-setuptools" ,python-setuptools)
6430 ("python-cython" ,python-cython)
6431 ("pkg-config" ,pkg-config)))
6432 (inputs
6433 `(("hdf5" ,hdf5)
6434 ("bzip2" ,bzip2)
6435 ("zlib" ,zlib)))
6436 (home-page "http://www.pytables.org/")
6437 (synopsis "Hierarchical datasets for Python")
6438 (description "PyTables is a package for managing hierarchical datasets and
6439designed to efficently cope with extremely large amounts of data.")
3f641af0 6440 (license license:bsd-3)))
9f8ee3fe
RW
6441
6442(define-public python2-tables
6443 (package-with-python2 python-tables))
6444
7a8ac75a
RW
6445(define-public python-pyasn1
6446 (package
6447 (name "python-pyasn1")
caa0edb3 6448 (version "0.1.9")
7a8ac75a
RW
6449 (source
6450 (origin
6451 (method url-fetch)
caa0edb3 6452 (uri (pypi-uri "pyasn1" version))
7a8ac75a
RW
6453 (sha256
6454 (base32
caa0edb3 6455 "0zraxni14bqi20kr4bi6nwsh32aibz0fq0xaczfisw0zdpcsqg45"))))
7a8ac75a
RW
6456 (build-system python-build-system)
6457 (home-page "http://pyasn1.sourceforge.net/")
6458 (synopsis "ASN.1 types and codecs")
6459 (description
6460 "This is an implementation of ASN.1 types and codecs in Python. It is
6461suitable for a wide range of protocols based on the ASN.1 specification.")
3f641af0 6462 (license license:bsd-2)))
7a8ac75a
RW
6463
6464(define-public python2-pyasn1
6465 (package-with-python2 python-pyasn1))
9a49a535 6466
5988c299
EF
6467(define-public python-pyasn1-modules
6468 (package
6469 (name "python-pyasn1-modules")
6470 (version "0.0.8")
6471 (source
6472 (origin
6473 (method url-fetch)
6474 (uri (pypi-uri "pyasn1-modules" version))
6475 (sha256
6476 (base32
6477 "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
6478 (build-system python-build-system)
6479 (native-inputs
6480 `(("python-setuptools" ,python-setuptools)))
6481 (propagated-inputs
6482 `(("python-pyasn1" ,python-pyasn1)))
6483 (home-page "http://sourceforge.net/projects/pyasn1/")
6484 (synopsis "ASN.1 codec implementations")
6485 (description
6486 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
6487implementations of ASN.1-based codecs and protocols.")
3f641af0 6488 (license license:bsd-3)))
5988c299
EF
6489
6490(define-public python2-pyasn1-modules
6491 (package-with-python2 python-pyasn1-modules))
6492
520af157 6493(define-public python-ipaddress
9a49a535 6494 (package
520af157
DC
6495 (name "python-ipaddress")
6496 (version "1.0.16")
6497 (source (origin
6498 (method url-fetch)
6499 (uri (pypi-uri "ipaddress" version))
6500 (sha256
6501 (base32
6502 "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas"))))
9a49a535 6503 (build-system python-build-system)
9a49a535
RW
6504 (home-page "https://github.com/phihag/ipaddress")
6505 (synopsis "IP address manipulation library")
6506 (description
520af157
DC
6507 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
6508 in Python. This library is used to create, poke at, and manipulate IPv4 and
6509 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
6510 module to older versions of Python.")
6511 (license license:psfl)
6512 (properties `((python2-variant . ,(delay python2-ipaddress))))))
6513
6514(define-public python2-ipaddress
6515 (let ((base (package-with-python2 (strip-python2-variant python-ipaddress))))
6516 (package (inherit base)
6517 (native-inputs
6518 `(("python2-setuptools" ,python2-setuptools)
6519 ,@(package-native-inputs base))))))
3f00e078 6520
4a238186
HG
6521(define-public python2-ipaddr
6522 (package
6523 (name "python2-ipaddr")
6524 (version "2.1.11")
6525 (source
6526 (origin
6527 (method url-fetch)
6528 (uri (pypi-uri "ipaddr" version))
6529 (sha256
6530 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
6531 (build-system python-build-system)
6532 (arguments
6533 `(#:python ,python-2 ;version 2 only
6534 #:phases
6535 (modify-phases %standard-phases
6536 (replace 'check
6537 (lambda* _
6538 (zero? (system* "python" "ipaddr_test.py")))))))
6539 (home-page "https://github.com/google/ipaddr-py")
6540 (synopsis "IP address manipulation library")
6541 (description
6542 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
6543IPv6 addresses and networks.
6544
6545For new implementations you may prefer to use the standard module
6546@code{ipaddress}, which was introduced in Python 3.3 and backported to older
6547versions of Python.")
3f641af0 6548 (license license:asl2.0)))
4a238186 6549
3f00e078
RW
6550(define-public python-idna
6551 (package
6552 (name "python-idna")
6553 (version "2.0")
6554 (source
6555 (origin
6556 (method url-fetch)
6557 (uri (string-append "https://pypi.python.org/packages/source/i/"
6558 "idna/idna-" version ".tar.gz"))
6559 (sha256
6560 (base32
6561 "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
6562 (build-system python-build-system)
6563 (native-inputs
6564 `(("python-setuptools" ,python-setuptools)))
6565 (home-page "https://github.com/kjd/idna")
6566 (synopsis "Internationalized domain names in applications")
6567 (description
6568 "This is a library to support the Internationalised Domain Names in
6569Applications (IDNA) protocol as specified in RFC 5891. This version of the
6570protocol is often referred to as “IDNA2008” and can produce different results
6571from the earlier standard from 2003. The library is also intended to act as a
6572suitable drop-in replacement for the “encodings.idna” module that comes with
6573the Python standard library but currently only supports the older 2003
6574specification.")
3f641af0 6575 (license license:bsd-4)))
3f00e078
RW
6576
6577(define-public python2-idna
6578 (package-with-python2 python-idna))
36ebf972
RW
6579
6580(define-public python-pretend
6581 (package
6582 (name "python-pretend")
6583 (version "1.0.8")
6584 (source
6585 (origin
6586 (method url-fetch)
6587 (uri (string-append "https://pypi.python.org/packages/source/p/"
6588 "pretend/pretend-" version ".tar.gz"))
6589 (sha256
6590 (base32
6591 "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
6592 (build-system python-build-system)
6593 (native-inputs
6594 `(("python-setuptools" ,python-setuptools)))
6595 (home-page "https://github.com/alex/pretend")
6596 (synopsis "Library for stubbing in Python")
6597 (description
6598 "Pretend is a library to make stubbing with Python easier. Stubbing is a
6599technique for writing tests. You may hear the term mixed up with mocks,
6600fakes, or doubles. Basically, a stub is an object that returns pre-canned
6601responses, rather than doing any computation.")
3f641af0 6602 (license license:bsd-3)))
36ebf972
RW
6603
6604(define-public python2-pretend
6605 (package-with-python2 python-pretend))
aa759a51
RW
6606
6607(define-public python-cryptography-vectors
6608 (package
6609 (name "python-cryptography-vectors")
912dcbad 6610 (version "1.5.3")
aa759a51
RW
6611 (source
6612 (origin
6613 (method url-fetch)
9c509ca9 6614 (uri (pypi-uri "cryptography_vectors" version))
aa759a51
RW
6615 (sha256
6616 (base32
912dcbad 6617 "1bnd1bricyhxa27rhr0ljk0kacxzvysd3ar2j2hlv13a2k6zw4z5"))))
aa759a51
RW
6618 (build-system python-build-system)
6619 (native-inputs
6620 `(("python-setuptools" ,python-setuptools)))
6621 (home-page "https://github.com/pyca/cryptography")
66e07664 6622 (synopsis "Test vectors for the cryptography package")
aa759a51
RW
6623 (description
6624 "This package contains test vectors for the cryptography package.")
6625 ;; Distributed under either BSD-3 or ASL2.0
3f641af0 6626 (license (list license:bsd-3 license:asl2.0))))
aa759a51
RW
6627
6628(define-public python2-cryptography-vectors
6629 (package-with-python2 python-cryptography-vectors))
88b47cb0
RW
6630
6631(define-public python-cryptography
6632 (package
6633 (name "python-cryptography")
912dcbad 6634 (version "1.5.3")
88b47cb0
RW
6635 (source
6636 (origin
6637 (method url-fetch)
9c509ca9 6638 (uri (pypi-uri "cryptography" version))
88b47cb0
RW
6639 (sha256
6640 (base32
912dcbad 6641 "1raanvkdfw5ai56ymlij6ghc4k126fs7jx948ig7yn4vj6ndv0ng"))))
88b47cb0 6642 (build-system python-build-system)
470613f9
LF
6643 (arguments
6644 `(#:phases
6645 (modify-phases %standard-phases
6646 (add-before 'check 'disable-failing-test
6647 (lambda _
6648 ;; This test is known to fail with OpenSSL >= 1.0.2i and older
6649 ;; versions of python-cryptography:
6650 ;; https://github.com/pyca/cryptography/issues/3196
6651 ;; TODO: Try re-enabling the test when upgrading
6652 ;; python-cryptography.
6653 (substitute* "tests/hazmat/backends/test_openssl.py"
6654 (("def test_numeric_string_x509_name_entry")
6655 "@pytest.mark.xfail\n def test_numeric_string_x509_name_entry"))
6656 #t)))))
88b47cb0
RW
6657 (inputs
6658 `(("openssl" ,openssl)))
6659 (propagated-inputs
6660 `(("python-cffi" ,python-cffi)
6661 ("python-six" ,python-six)
6662 ("python-pyasn1" ,python-pyasn1)
88b47cb0
RW
6663 ("python-idna" ,python-idna)
6664 ("python-iso8601" ,python-iso8601)))
6665 (native-inputs
6666 `(("python-cryptography-vectors" ,python-cryptography-vectors)
ce6c13ee 6667 ("python-hypothesis" ,python-hypothesis)
88b47cb0
RW
6668 ("python-setuptools" ,python-setuptools)
6669 ("python-pretend" ,python-pretend)
ce6c13ee
EF
6670 ("python-pyasn1" ,python-pyasn1)
6671 ("python-pyasn1-modules" ,python-pyasn1-modules)
912dcbad
MB
6672 ("python-pytz" ,python-pytz)
6673 ("python-pytest" ,python-pytest-2.9.2)))
88b47cb0
RW
6674 (home-page "https://github.com/pyca/cryptography")
6675 (synopsis "Cryptographic recipes and primitives for Python")
6676 (description
6677 "cryptography is a package which provides cryptographic recipes and
6678primitives to Python developers. It aims to be the “cryptographic standard
6679library” for Python. The package includes both high level recipes, and low
6680level interfaces to common cryptographic algorithms such as symmetric ciphers,
6681message digests and key derivation functions.")
6682 ;; Distributed under either BSD-3 or ASL2.0
3f641af0 6683 (license (list license:bsd-3 license:asl2.0))
519e2f4f 6684 (properties `((python2-variant . ,(delay python2-cryptography))))))
88b47cb0
RW
6685
6686(define-public python2-cryptography
519e2f4f
LF
6687 (let ((crypto (package-with-python2
6688 (strip-python2-variant python-cryptography))))
88b47cb0
RW
6689 (package (inherit crypto)
6690 (propagated-inputs
6691 `(("python2-ipaddress" ,python2-ipaddress)
ce6c13ee
EF
6692 ("python2-backport-ssl-match-hostname"
6693 ,python2-backport-ssl-match-hostname)
68f1cdec 6694 ("python2-enum34" ,python2-enum34)
88b47cb0 6695 ,@(package-propagated-inputs crypto))))))
5af999b8
RW
6696
6697(define-public python-pyopenssl
6698 (package
6699 (name "python-pyopenssl")
eb68d268 6700 (version "16.1.0")
5af999b8
RW
6701 (source
6702 (origin
6703 (method url-fetch)
eb68d268 6704 (uri (pypi-uri "pyOpenSSL" version))
5af999b8
RW
6705 (sha256
6706 (base32
eb68d268 6707 "0prm06zz7hl6bk5s2lqzw25lq6smayfv2fgiliw2rbqxlyiavxw8"))))
5af999b8 6708 (build-system python-build-system)
5af999b8
RW
6709 (propagated-inputs
6710 `(("python-cryptography" ,python-cryptography)
6711 ("python-six" ,python-six)))
6712 (inputs
6713 `(("openssl" ,openssl)))
6714 (native-inputs
6715 `(("python-setuptools" ,python-setuptools)))
6716 (home-page "https://github.com/pyca/pyopenssl")
6717 (synopsis "Python wrapper module around the OpenSSL library")
6718 (description
6719 "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
6720library.")
3f641af0 6721 (license license:asl2.0)))
5af999b8
RW
6722
6723(define-public python2-pyopenssl
519e2f4f 6724 (package-with-python2 python-pyopenssl))
643725a1
CR
6725
6726(define-public python-pip
6727 (package
6728 (name "python-pip")
6fb54e3b 6729 (version "8.0.2")
643725a1
CR
6730 (source
6731 (origin
6732 (method url-fetch)
6fb54e3b 6733 (uri (pypi-uri "pip" version))
643725a1
CR
6734 (sha256
6735 (base32
6fb54e3b 6736 "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
643725a1
CR
6737 (build-system python-build-system)
6738 (inputs
6739 `(("python-setuptools" ,python-setuptools)
6740 ("python-virtualenv" ,python-virtualenv)
6741 ;; Tests
6742 ("python-mock" ,python-mock)
6743 ("python-pytest" ,python-pytest)
6744 ("python-scripttest" ,python-scripttest)))
6745 (home-page "https://pip.pypa.io/")
6746 (synopsis
6747 "Package manager for Python software")
6748 (description
6749 "Pip is a package manager for Python software, that finds packages on the
6750Python Package Index (PyPI).")
6751 (license license:expat)))
6752
6753(define-public python2-pip
6754 (package-with-python2 python-pip))
d8c4998f
LC
6755
6756(define-public python-tlsh
6757 (package
6758 (name "python-tlsh")
99b00dc7 6759 (version "3.4.4")
d8c4998f
LC
6760 (home-page "https://github.com/trendmicro/tlsh")
6761 (source (origin
99b00dc7
EF
6762 (method url-fetch)
6763 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
6764 version ".tar.gz"))
d8c4998f
LC
6765 (sha256
6766 (base32
99b00dc7
EF
6767 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
6768 (file-name (string-append name "-" version ".tar.gz"))))
d8c4998f
LC
6769 (build-system cmake-build-system)
6770 (arguments
6771 '(#:out-of-source? #f
6772 #:phases (modify-phases %standard-phases
6773 (replace
6774 'install
6775 (lambda* (#:key outputs #:allow-other-keys)
6776 ;; Build and install the Python bindings. The underlying
6777 ;; C++ library is apparently not meant to be installed.
6778 (let ((out (assoc-ref outputs "out")))
6779 (with-directory-excursion "py_ext"
6780 (and (system* "python" "setup.py" "build")
6781 (system* "python" "setup.py" "install"
6782 (string-append "--prefix=" out))))))))))
6783 (inputs `(("python" ,python-wrapper))) ;for the bindings
6784 (synopsis "Fuzzy matching library for Python")
6785 (description
6786 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
6787Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
6788value which can be used for similarity comparisons. Similar objects have
6789similar hash values, which allows for the detection of similar objects by
6790comparing their hash values. The byte stream should have a sufficient amount
6791of complexity; for example, a byte stream of identical bytes will not generate
6792a hash value.")
3f641af0 6793 (license license:asl2.0)))
d8c4998f
LC
6794
6795(define-public python2-tlsh
6796 (package
6797 (inherit python-tlsh)
6798 (name "python2-tlsh")
6799 (inputs `(("python" ,python-2)))))
d96034ed 6800
67f66812
BW
6801(define-public python-termcolor
6802 (package
6803 (name "python-termcolor")
6804 (version "1.1.0")
6805 (source
6806 (origin
6807 (method url-fetch)
6808 (uri (pypi-uri "python-termcolor" version))
6809 (sha256
6810 (base32
6811 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
6812 (build-system python-build-system)
6813 (arguments
6814 ;; There are no tests.
6815 `(#:tests? #f))
6816 (home-page "http://pypi.python.org/pypi/termcolor")
6817 (synopsis "ANSII Color formatting for terminal output")
6818 (description
6819 "This package provides ANSII Color formatting for output in terminals.")
6820 (license license:expat)))
6821
6822(define-public python2-termcolor
6823 (package-with-python2 python-termcolor))
6824
d96034ed
LC
6825(define-public python-libarchive-c
6826 (package
6827 (name "python-libarchive-c")
03fd001c 6828 (version "2.2")
d96034ed
LC
6829 (source (origin
6830 (method url-fetch)
03fd001c 6831 (uri (pypi-uri "libarchive-c" version))
d96034ed
LC
6832 (sha256
6833 (base32
03fd001c 6834 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
d96034ed
LC
6835 (build-system python-build-system)
6836 (arguments
6837 '(#:phases (modify-phases %standard-phases
6838 (add-before
6839 'build 'reference-libarchive
6840 (lambda* (#:key inputs #:allow-other-keys)
6841 ;; Retain the absolute file name of libarchive.so.
6842 (let ((libarchive (assoc-ref inputs "libarchive")))
6843 (substitute* "libarchive/ffi.py"
6844 (("find_library\\('archive'\\)")
6845 (string-append "'" libarchive
6846 "/lib/libarchive.so'"))))
6847
6848 ;; Do not make a compressed egg (see
6849 ;; <http://bugs.gnu.org/20765>).
6850 (let ((port (open-file "setup.cfg" "a")))
6851 (display "\n[easy_install]\nzip_ok = 0\n"
6852 port)
6853 (close-port port)
6854 #t))))))
6855 (inputs
6856 `(("python-setuptools" ,python-setuptools)
6857 ("libarchive" ,libarchive)))
6858 (home-page "https://github.com/Changaco/python-libarchive-c")
6859 (synopsis "Python interface to libarchive")
6860 (description
6861 "This package provides Python bindings to libarchive, a C library to
6862access possibly compressed archives in many different formats. It uses
6863Python's @code{ctypes} foreign function interface (FFI).")
3f641af0 6864 (license license:lgpl2.0+)))
d96034ed
LC
6865
6866(define-public python2-libarchive-c
6867 (package-with-python2 python-libarchive-c))
5e1c9367
LC
6868
6869(define-public python-file
6870 (package
6871 (inherit file)
6872 (name "python-file")
7ffa5d4a
LF
6873 (source (origin
6874 (inherit (package-source file))
6875 ;; This patch should not be applied to python2-file.
6876 (patches (search-patches "python-file-double-encoding-bug.patch"))))
5e1c9367
LC
6877 (build-system python-build-system)
6878 (arguments
6879 '(#:tests? #f ;no tests
00bf74be 6880 #:configure-flags '("--single-version-externally-managed" "--root=/")
5e1c9367
LC
6881 #:phases (modify-phases %standard-phases
6882 (add-before 'build 'change-directory
6883 (lambda _
6884 (chdir "python")
6885 #t))
6886 (add-before 'build 'set-library-file-name
6887 (lambda* (#:key inputs #:allow-other-keys)
6888 (let ((file (assoc-ref inputs "file")))
6889 (substitute* "magic.py"
6890 (("find_library\\('magic'\\)")
6891 (string-append "'" file "/lib/libmagic.so'")))
6892 #t))))))
6893 (inputs `(("file" ,file)))
6894 (self-native-input? #f)
daeeea71
CM
6895 (synopsis "Python bindings to the libmagic file type guesser. Note that
6896this module and the python-magic module both provide a \"magic.py\" file;
6897these two modules, which are different and were developed separately, both
2f87a77f
LF
6898serve the same purpose: provide Python bindings for libmagic.")
6899 (properties `((python2-variant . ,(delay python2-file))))))
5e1c9367
LC
6900
6901(define-public python2-file
2f87a77f
LF
6902 (let ((base (package-with-python2 (strip-python2-variant python-file))))
6903 (package
6904 (inherit base)
7ffa5d4a 6905 (source (package-source file))
2f87a77f
LF
6906 (native-inputs
6907 `(("python2-setuptools" ,python2-setuptools)
6908 ,@(package-native-inputs base))))))
85d4aeac
LC
6909
6910(define-public python-debian
6911 (package
6912 (name "python-debian")
6913 (version "0.1.23")
6914 (source
6915 (origin
6916 (method url-fetch)
6917 (uri (string-append
6918 "https://pypi.python.org/packages/source/p/python-debian/python-debian-"
6919 version ".tar.gz"))
6920 (sha256
6921 (base32
6922 "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
6923 (build-system python-build-system)
6924 (inputs
6925 `(("python-six" ,python-six)))
6926 (native-inputs
6927 `(("python-setuptools" ,python-setuptools)))
6928 (home-page "http://packages.debian.org/sid/python-debian")
6929 (synopsis "Debian package related modules")
6930 (description
5c7bdc9a
LC
6931 ;; XXX: Use @enumerate instead of @itemize to work around
6932 ;; <http://bugs.gnu.org/21772>.
85d4aeac
LC
6933 "This package provides Python modules that abstract many formats of
6934Debian-related files, such as:
6935
5c7bdc9a 6936@enumerate
85d4aeac
LC
6937@item Debtags information;
6938@item @file{debian/changelog} files;
6939@item packages files, pdiffs;
6940@item control files of single or multiple RFC822-style paragraphs---e.g.
6941 @file{debian/control}, @file{.changes}, @file{.dsc};
6942@item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6943 contained files and meta-information.
5c7bdc9a 6944@end enumerate\n")
85d4aeac
LC
6945
6946 ;; Modules are either GPLv2+ or GPLv3+.
3f641af0 6947 (license license:gpl3+)))
85d4aeac
LC
6948
6949(define-public python2-debian
6950 (package-with-python2 python-debian))
816a6538 6951
2d321bb2
RW
6952(define-public python-nbformat
6953 (package
6954 (name "python-nbformat")
6955 (version "4.1.0")
6956 (source
6957 (origin
6958 (method url-fetch)
6959 (uri (pypi-uri "nbformat" version))
6960 (sha256
6961 (base32
6962 "0mq8iki3d4mnx7wy05phss7x98mds4fqydin8lcagidp1knw1xnv"))))
6963 (build-system python-build-system)
6964 (arguments `(#:tests? #f)) ; no test target
6965 (propagated-inputs
6966 `(("python-ipython-genutils" ,python-ipython-genutils)
6967 ("python-jsonschema" ,python-jsonschema)
6968 ("python-jupyter-core" ,python-jupyter-core)
6969 ("python-traitlets" ,python-traitlets)))
6970 (native-inputs
6971 `(("python-setuptools" ,python-setuptools)))
6972 (home-page "http://jupyter.org")
6973 (synopsis "Jupyter Notebook format")
6974 (description "This package provides the reference implementation of the
6975Jupyter Notebook format and Python APIs for working with notebooks.")
6976 (license license:bsd-3)))
6977
6978(define-public python2-nbformat
6979 (package-with-python2 python-nbformat))
6980
55436048
RW
6981(define-public python-bleach
6982 (package
6983 (name "python-bleach")
6984 (version "1.4.3")
6985 (source
6986 (origin
6987 (method url-fetch)
6988 (uri (pypi-uri "bleach" version))
6989 (sha256
6990 (base32
6991 "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj"))))
6992 (build-system python-build-system)
6993 (propagated-inputs
6994 `(("python-html5lib" ,python-html5lib-0.9)
6995 ("python-setuptools" ,python-setuptools)
6996 ("python-six" ,python-six)))
6997 (native-inputs
6998 `(("python-nose" ,python-nose)))
6999 (home-page "http://github.com/jsocol/bleach")
7000 (synopsis "Whitelist-based HTML-sanitizing tool")
7001 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
7002 (license license:asl2.0)))
7003
7004(define-public python2-bleach
7005 (package-with-python2 python-bleach))
7006
60590a3a
RW
7007(define-public python-entrypoints
7008 (package
7009 (name "python-entrypoints")
7010 (version "0.2.2")
7011 (source
7012 (origin
7013 (method url-fetch)
7014 (uri (string-append "https://github.com/takluyver/entrypoints/archive/"
7015 version ".tar.gz"))
7016 (file-name (string-append name "-" version ".tar.gz"))
7017 (sha256
7018 (base32
7019 "0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5"))))
7020 (build-system python-build-system)
7021 ;; The package does not come with a setup.py file, so we have to generate
7022 ;; one ourselves.
7023 (arguments
7024 `(#:tests? #f
7025 #:phases
7026 (modify-phases %standard-phases
7027 (add-after 'unpack 'create-setup.py
7028 (lambda _
7029 (call-with-output-file "setup.py"
7030 (lambda (port)
7031 (format port "\
7032from setuptools import setup
7033setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
7034" ,version))))))))
7035 (home-page "https://github.com/takluyver/entrypoints")
7036 (synopsis "Discover and load entry points from installed Python packages")
7037 (description "Entry points are a way for Python packages to advertise
7038objects with some common interface. The most common examples are
7039@code{console_scripts} entry points, which define shell commands by
7040identifying a Python function to run. The @code{entrypoints} module contains
7041functions to find and load entry points.")
7042 (license license:expat)))
7043
7044(define-public python2-entrypoints
7045 (package-with-python2 python-entrypoints))
7046
c60898a8
RW
7047(define-public python-nbconvert
7048 (package
7049 (name "python-nbconvert")
7050 (version "5.0.0b1")
7051 (source
7052 (origin
7053 (method url-fetch)
7054 (uri (pypi-uri "nbconvert" version))
7055 (sha256
7056 (base32
7057 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
7058 (build-system python-build-system)
7059 ;; The "bdist_egg" target is disabled by default, causing the installation
7060 ;; to fail.
7061 (arguments `(#:configure-flags (list "bdist_egg")))
7062 (propagated-inputs
7063 `(("python-bleach" ,python-bleach)
7064 ("python-entrypoints" ,python-entrypoints)
7065 ("python-jinja2" ,python-jinja2)
7066 ("python-jupyter-core" ,python-jupyter-core)
7067 ("python-mistune" ,python-mistune)
7068 ("python-nbformat" ,python-nbformat)
7069 ("python-pygments" ,python-pygments)
7070 ("python-setuptools" ,python-setuptools)
7071 ("python-traitlets" ,python-traitlets)))
7072 (home-page "http://jupyter.org")
7073 (synopsis "Converting Jupyter Notebooks")
7074 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
7075notebooks to various other formats via Jinja templates. It allows you to
7076convert an @code{.ipynb} notebook file into various static formats including:
7077
7078@enumerate
7079@item HTML
7080@item LaTeX
7081@item PDF
7082@item Reveal JS
7083@item Markdown (md)
7084@item ReStructured Text (rst)
7085@item executable script
7086@end enumerate\n")
7087 (license license:bsd-3)))
7088
7089(define-public python2-nbconvert
7090 (package-with-python2 python-nbconvert))
7091
a0d62280
RW
7092(define-public python-notebook
7093 (package
7094 (name "python-notebook")
7095 (version "4.2.3")
7096 (source (origin
7097 (method url-fetch)
7098 (uri (pypi-uri "notebook" version))
7099 (sha256
7100 (base32
7101 "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r"))))
7102 (build-system python-build-system)
7103 (arguments
7104 `(#:phases
7105 (modify-phases %standard-phases
7106 (replace 'check
7107 (lambda _
7108 ;; HOME must be set for tests
7109 (setenv "HOME" "/tmp")
7110 (zero? (system* "nosetests")))))))
7111 (propagated-inputs
7112 `(("python-jupyter-core" ,python-jupyter-core)
7113 ("python-nbformat" ,python-nbformat)
7114 ("python-nbconvert" ,python-nbconvert)
7115 ("python-ipython" ,python-ipython)))
7116 (native-inputs
7117 `(("python-nose" ,python-nose)
7118 ("python-sphinx" ,python-sphinx)
7119 ("python-requests" ,python-requests)))
7120 (home-page "http://jupyter.org/")
7121 (synopsis "Web-based notebook environment for interactive computing")
7122 (description
7123 "The Jupyter HTML notebook is a web-based notebook environment for
7124interactive computing.")
7125 (license license:bsd-3)))
7126
7127(define-public python2-notebook
7128 (package-with-python2 python-notebook))
7129
d55724ed
RW
7130(define-public python-widgetsnbextension
7131 (package
7132 (name "python-widgetsnbextension")
7133 (version "1.2.6")
7134 (source
7135 (origin
7136 (method url-fetch)
7137 (uri (pypi-uri "widgetsnbextension" version))
7138 (sha256
7139 (base32
7140 "0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666"))))
7141 (build-system python-build-system)
7142 (propagated-inputs
7143 `(("python-notebook" ,python-notebook)))
7144 (native-inputs
7145 `(("python-nose" ,python-nose)
7146 ("python-setuptools" ,python-setuptools)))
7147 (home-page "http://ipython.org")
7148 (synopsis "IPython HTML widgets for Jupyter")
7149 (description "This package provides interactive HTML widgets for Jupyter
7150notebooks.")
7151 (license license:bsd-3)))
7152
7153(define-public python2-widgetsnbextension
7154 (package-with-python2 python-widgetsnbextension))
7155
4fe2e344
RW
7156(define-public python-ipywidgets
7157 (package
7158 (name "python-ipywidgets")
7159 (version "5.2.2")
7160 (source
7161 (origin
7162 (method url-fetch)
7163 (uri (pypi-uri "ipywidgets" version))
7164 (sha256
7165 (base32
7166 "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms"))))
7167 (build-system python-build-system)
7168 ;; FIXME: it's not clear how to run the tests.
7169 (arguments `(#:tests? #f))
7170 (propagated-inputs
7171 `(("python-ipykernel" ,python-ipykernel)
7172 ("python-ipython" ,python-ipython)
7173 ("python-setuptools" ,python-setuptools)
7174 ("python-traitlets" ,python-traitlets)
7175 ("python-widgetsnbextension" ,python-widgetsnbextension)))
7176 (home-page "http://ipython.org")
7177 (synopsis "IPython HTML widgets for Jupyter")
7178 (description "Ipywidgets are interactive HTML widgets for Jupyter
7179notebooks and the IPython kernel. Notebooks come alive when interactive
7180widgets are used. Users gain control of their data and can visualize changes
7181in the data.")
7182 (license license:bsd-3)))
7183
7184(define-public python2-ipywidgets
7185 (package-with-python2 python-ipywidgets))
7186
8ceebf8f
RW
7187(define-public python-jupyter-console
7188 (package
7189 (name "python-jupyter-console")
7190 (version "5.0.0")
7191 (source
7192 (origin
7193 (method url-fetch)
7194 (uri (pypi-uri "jupyter_console" version))
7195 (sha256
7196 (base32
7197 "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
7198 (build-system python-build-system)
7199 ;; FIXME: it's not clear how to run the tests.
7200 (arguments `(#:tests? #f))
7201 (propagated-inputs
7202 `(("python-ipykernel" ,python-ipykernel)
7203 ("python-ipython" ,python-ipython)
7204 ("python-jupyter-client" ,python-jupyter-client)
7205 ("python-prompt-toolkit" ,python-prompt-toolkit)
7206 ("python-pygments" ,python-pygments)
7207 ("python-setuptools" ,python-setuptools)))
7208 (home-page "https://jupyter.org")
7209 (synopsis "Jupyter terminal console")
7210 (description "This package provides a terminal-based console frontend for
7211Jupyter kernels. It also allows for console-based interaction with non-Python
7212Jupyter kernels such as IJulia and IRKernel.")
7213 (license license:bsd-3)))
7214
7215(define-public python2-jupyter-console
7216 (package-with-python2 python-jupyter-console))
7217
c27ae827
RW
7218(define-public jupyter
7219 (package
7220 (name "jupyter")
7221 (version "1.0.0")
7222 (source
7223 (origin
7224 (method url-fetch)
7225 (uri (pypi-uri "jupyter" version))
7226 (sha256
7227 (base32
7228 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
7229 (build-system python-build-system)
7230 ;; FIXME: it's not clear how to run the tests.
7231 (arguments `(#:tests? #f))
7232 (propagated-inputs
7233 `(("python-ipykernel" ,python-ipykernel)
7234 ("python-ipywidgets" ,python-ipywidgets)
7235 ("python-jupyter-console" ,python-jupyter-console)
7236 ("python-nbconvert" ,python-nbconvert)
7237 ("python-notebook" ,python-notebook)
7238 ("python-setuptools" ,python-setuptools)))
7239 (home-page "http://jupyter.org")
7240 (synopsis "Web application for interactive documents")
7241 (description
7242 "The Jupyter Notebook is a web application that allows you to create and
7243share documents that contain live code, equations, visualizations and
7244explanatory text. Uses include: data cleaning and transformation, numerical
7245simulation, statistical modeling, machine learning and much more.")
7246 (license license:bsd-3)))
7247
816a6538
LC
7248(define-public python-chardet
7249 (package
7250 (name "python-chardet")
7251 (version "2.3.0")
7252 (source
7253 (origin
7254 (method url-fetch)
7255 (uri (string-append
7256 "https://pypi.python.org/packages/source/c/chardet/chardet-"
7257 version
7258 ".tar.gz"))
7259 (sha256
7260 (base32
7261 "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
7262 (build-system python-build-system)
7263 (native-inputs
7264 `(("python-setuptools" ,python-setuptools)))
7265 (home-page "https://github.com/chardet/chardet")
7266 (synopsis "Universal encoding detector for Python 2 and 3")
7267 (description
7268 "This package provides @code{chardet}, a Python module that can
7269automatically detect a wide range of file encodings.")
3f641af0 7270 (license license:lgpl2.1+)))
816a6538
LC
7271
7272(define-public python2-chardet
7273 (package-with-python2 python-chardet))
2fc5f186 7274
1872f1bb
KM
7275(define-public python-docopt
7276 (package
7277 (name "python-docopt")
7278 (version "0.6.2")
7279 (source
7280 (origin
7281 (method url-fetch)
7282 ;; The release on PyPI does not include tests.
7283 (uri (string-append
7284 "https://github.com/docopt/docopt/archive/"
7285 version ".tar.gz"))
7286 (file-name (string-append name "-" version ".tar.gz"))
7287 (sha256
7288 (base32
7289 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
7290 (build-system python-build-system)
7291 (native-inputs
7292 `(("python-pytest" ,python-pytest)
7293 ("python-setuptools" ,python-setuptools)))
7294 (arguments
7295 `(#:phases (alist-replace
7296 'check
7297 (lambda _ (zero? (system* "py.test")))
7298 %standard-phases)))
7299 (home-page "http://docopt.org")
7300 (synopsis "Command-line interface description language for Python")
7301 (description "This library allows the user to define a command-line
7302interface from a program's help message rather than specifying it
7303programatically with command-line parsers like @code{getopt} and
7304@code{argparse}.")
7305 (license license:expat)))
7306
7307(define-public python2-docopt
7308 (package-with-python2 python-docopt))
7309
2fc5f186
LF
7310(define-public python-zope-event
7311 (package
7312 (name "python-zope-event")
7313 (version "4.1.0")
7314 (source
7315 (origin
7316 (method url-fetch)
7317 (uri (string-append "https://pypi.python.org/packages/source/z"
7318 "/zope.event/zope.event-" version ".tar.gz"))
7319 (sha256
7320 (base32
7321 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
7322 (build-system python-build-system)
7323 (inputs
7324 `(("python-setuptools" ,python-setuptools)))
7325 (home-page "http://pypi.python.org/pypi/zope.event")
7326 (synopsis "Event publishing system for Python")
7327 (description "Zope.event provides an event publishing API, intended for
7328use by applications which are unaware of any subscribers to their events. It
7329is a simple event-dispatching system on which more sophisticated event
7330dispatching systems can be built.")
3f641af0 7331 (license license:zpl2.1)))
2fc5f186
LF
7332
7333(define-public python2-zope-event
7334 (package-with-python2 python-zope-event))
97abe268
LF
7335
7336(define-public python-zope-interface
7337 (package
7338 (name "python-zope-interface")
7339 (version "4.1.3")
7340 (source
7341 (origin
7342 (method url-fetch)
7343 (uri (string-append "https://pypi.python.org/packages/source/z"
7344 "/zope.interface/zope.interface-" version ".tar.gz"))
7345 (sha256
7346 (base32
7347 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
7348 (build-system python-build-system)
7349 (propagated-inputs
7350 `(("python-zope-event" ,python-zope-event)))
7351 (home-page "https://github.com/zopefoundation/zope.interface")
7352 (synopsis "Python implementation of the \"design by contract\"
7353methodology")
7354 (description "Zope.interface provides an implementation of \"object
7355interfaces\" for Python. Interfaces are a mechanism for labeling objects as
7356conforming to a given API or contract.")
3f641af0 7357 (license license:zpl2.1)))
97abe268
LF
7358
7359(define-public python2-zope-interface
7360 (package-with-python2 python-zope-interface))
81f2373c
LF
7361
7362(define-public python-zope-exceptions
7363 (package
7364 (name "python-zope-exceptions")
7365 (version "4.0.8")
7366 (source
7367 (origin
7368 (method url-fetch)
7369 (uri (string-append "https://pypi.python.org/packages/source/z"
7370 "/zope.exceptions/zope.exceptions-"
7371 version ".tar.gz"))
7372 (sha256
7373 (base32
7374 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
7375 (build-system python-build-system)
7376 (arguments
7377 '(#:tests? #f)) ; circular dependency with zope.testrunner
7378 (propagated-inputs
7379 `(("python-zope-interface" ,python-zope-interface)))
7380 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
7381 (synopsis "Zope exceptions")
7382 (description "Zope.exceptions provides general-purpose exception types
7383that have uses outside of the Zope framework.")
3f641af0 7384 (license license:zpl2.1)))
81f2373c
LF
7385
7386(define-public python2-zope-exceptions
7387 (package-with-python2 python-zope-exceptions))
900e3c0e
LF
7388
7389(define-public python-zope-testing
7390 (package
7391 (name "python-zope-testing")
7392 (version "4.5.0")
7393 (source
7394 (origin
7395 (method url-fetch)
7396 (uri (string-append "https://pypi.python.org/packages/source/z"
7397 "/zope.testing/zope.testing-" version ".tar.gz"))
7398 (sha256
7399 (base32
b02f7a21
HG
7400 "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))
7401 (modules '((guix build utils)))
7402 (snippet
7403 '(begin
7404 ;; Remove pre-compiled .pyc files backup files from source.
7405 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
7406 #t))))
900e3c0e
LF
7407 (build-system python-build-system)
7408 (native-inputs
7409 `(("python-zope-exceptions" ,python-zope-exceptions)))
7410 (propagated-inputs
7411 `(("python-zope-interface" ,python-zope-interface)))
7412 (home-page "http://pypi.python.org/pypi/zope.testing")
7413 (synopsis "Zope testing helpers")
7414 (description "Zope.testing provides a number of testing utilities for HTML
7415forms, HTTP servers, regular expressions, and more.")
3f641af0 7416 (license license:zpl2.1)))
900e3c0e
LF
7417
7418(define-public python2-zope-testing
7419 (package-with-python2 python-zope-testing))
01614c4f
LF
7420
7421(define-public python-zope-testrunner
7422 (package
7423 (name "python-zope-testrunner")
7424 (version "4.4.9")
7425 (source
7426 (origin
7427 (method url-fetch)
7428 (uri (string-append "https://pypi.python.org/packages/source/z"
7429 "/zope.testrunner/zope.testrunner-"
7430 version ".zip"))
7431 (sha256
7432 (base32
7433 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
7434 (build-system python-build-system)
7435 (native-inputs
7436 `(("python-six" ,python-six)
7437 ("python-zope-exceptions" ,python-zope-exceptions)
7438 ("python-zope-testing" ,python-zope-testing)
7439 ("unzip" ,unzip)))
7440 (propagated-inputs
7441 `(("python-zope-interface" ,python-zope-interface)))
7442 (home-page "http://pypi.python.org/pypi/zope.testrunner")
7443 (synopsis "Zope testrunner script")
7444 (description "Zope.testrunner provides a script for running Python
7445tests.")
3f641af0 7446 (license license:zpl2.1)))
01614c4f
LF
7447
7448(define-public python2-zope-testrunner
7449 (let ((base (package-with-python2 python-zope-testrunner)))
7450 (package
7451 (inherit base)
7452 (native-inputs
7453 (append (package-native-inputs base)
7454 `(("python2-subunit" ,python2-subunit)
7455 ("python2-mimeparse" ,python2-mimeparse)))))))
6a5c710c
LF
7456
7457(define-public python-zope-i18nmessageid
7458 (package
7459 (name "python-zope-i18nmessageid")
7460 (version "4.0.3")
7461 (source
7462 (origin
7463 (method url-fetch)
7464 (uri (string-append
7465 "https://pypi.python.org/packages/source/z"
7466 "/zope.i18nmessageid/zope.i18nmessageid-"
7467 version ".tar.gz"))
7468 (sha256
7469 (base32
7470 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
7471 (build-system python-build-system)
7472 (inputs
7473 `(("python-setuptools" ,python-setuptools)))
7474 (home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
7475 (synopsis "Message identifiers for internationalization")
7476 (description "Zope.i18nmessageid provides facilities for declaring
7477internationalized messages within program source text.")
3f641af0 7478 (license license:zpl2.1)))
6a5c710c
LF
7479
7480(define-public python2-zope-i18nmessageid
7481 (package-with-python2 python-zope-i18nmessageid))
71fb09f3
LF
7482
7483(define-public python-zope-schema
7484 (package
7485 (name "python-zope-schema")
7486 (version "4.4.2")
7487 (source
7488 (origin
7489 (method url-fetch)
7490 (uri (string-append "https://pypi.python.org/packages/source/z"
7491 "/zope.schema/zope.schema-" version ".tar.gz"))
7492 (sha256
7493 (base32
7494 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
7495 (build-system python-build-system)
7496 (propagated-inputs
7497 `(("python-zope-event" ,python-zope-event)
7498 ("python-zope-interface" ,python-zope-interface)))
7499 (native-inputs
7500 `(("python-zope-testing" ,python-zope-testing)))
7501 (home-page "http://pypi.python.org/pypi/zope.schema")
7502 (synopsis "Zope data schemas")
7503 (description "Zope.scheme provides extensions to zope.interface for
7504defining data schemas.")
3f641af0 7505 (license license:zpl2.1)))
71fb09f3
LF
7506
7507(define-public python2-zope-schema
7508 (package-with-python2 python-zope-schema))
fbac9b17
LF
7509
7510(define-public python-zope-configuration
7511 (package
7512 (name "python-zope-configuration")
7513 (version "4.0.3")
7514 (source (origin
7515 (method url-fetch)
7516 (uri (string-append "https://pypi.python.org/packages/source/z"
7517 "/zope.configuration/zope.configuration-"
7518 version ".tar.gz"))
7519 (sha256
7520 (base32
7521 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
7522 (build-system python-build-system)
7523 (propagated-inputs
7524 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
7525 ("python-zope-schema" ,python-zope-schema)))
7526 (home-page "http://pypi.python.org/pypi/zope.configuration")
7527 (synopsis "Zope Configuration Markup Language")
7528 (description "Zope.configuration implements ZCML, the Zope Configuration
7529Markup Language.")
3f641af0 7530 (license license:zpl2.1)))
fbac9b17
LF
7531
7532(define-public python2-zope-configuration
7533 (package-with-python2 python-zope-configuration))
2ad52086
LF
7534
7535(define-public python-zope-proxy
7536 (package
7537 (name "python-zope-proxy")
7538 (version "4.1.6")
7539 (source
7540 (origin
7541 (method url-fetch)
7542 (uri (string-append "https://pypi.python.org/packages/source/z"
7543 "/zope.proxy/zope.proxy-" version ".tar.gz"))
7544 (sha256
7545 (base32
7546 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
7547 (build-system python-build-system)
7548 (propagated-inputs
7549 `(("python-zope-interface" ,python-zope-interface)))
7550 (home-page "http://pypi.python.org/pypi/zope.proxy")
7551 (synopsis "Generic, transparent proxies")
7552 (description "Zope.proxy provides generic, transparent proxies for Python.
7553Proxies are special objects which serve as mostly-transparent wrappers around
7554another object, intervening in the apparent behavior of the wrapped object
7555only when necessary to apply the policy (e.g., access checking, location
7556brokering, etc.) for which the proxy is responsible.")
3f641af0 7557 (license license:zpl2.1)))
2ad52086
LF
7558
7559(define-public python2-zope-proxy
7560 (package-with-python2 python-zope-proxy))
f404b5ea
LF
7561
7562(define-public python-zope-location
7563 (package
7564 (name "python-zope-location")
7565 (version "4.0.3")
7566 (source
7567 (origin
7568 (method url-fetch)
7569 (uri (string-append "https://pypi.python.org/packages/source/z"
7570 "/zope.location/zope.location-" version ".tar.gz"))
7571 (sha256
7572 (base32
7573 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
7574 (build-system python-build-system)
7575 (native-inputs
7576 `(("python-zope-proxy" ,python-zope-proxy)
7577 ("python-zope-schema" ,python-zope-schema)))
7578 (home-page "http://pypi.python.org/pypi/zope.location/")
7579 (synopsis "Zope location library")
7580 (description "Zope.location implements the concept of \"locations\" in
7581Zope3, which are are special objects that have a structural location.")
3f641af0 7582 (license license:zpl2.1)))
f404b5ea
LF
7583
7584(define-public python2-zope-location
7585 (package-with-python2 python-zope-location))
d4b77f36
LF
7586
7587(define-public python-zope-security
7588 (package
7589 (name "python-zope-security")
7590 (version "4.0.3")
7591 (source
7592 (origin
7593 (method url-fetch)
7594 (uri (string-append "https://pypi.python.org/packages/source/z"
7595 "/zope.security/zope.security-" version ".tar.gz"))
7596 (sha256
7597 (base32
7598 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
7599 (build-system python-build-system)
7600 (propagated-inputs
7601 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
7602 ("python-zope-component" ,python-zope-component)
7603 ("python-zope-location" ,python-zope-location)
7604 ("python-zope-proxy" ,python-zope-proxy)
7605 ("python-zope-schema" ,python-zope-schema)
7606 ("python-zope-testrunner" ,python-zope-testrunner)
7607 ("python-zope-testing" ,python-zope-testing)))
7608 (home-page "http://pypi.python.org/pypi/zope.security")
7609 (synopsis "Zope security framework")
7610 (description "Zope.security provides a generic mechanism to implement
7611security policies on Python objects.")
3f641af0 7612 (license license:zpl2.1)))
d4b77f36
LF
7613
7614(define-public python2-zope-security
04417662
EF
7615 (let ((zope-security (package-with-python2 python-zope-security)))
7616 (package (inherit zope-security)
7617 (propagated-inputs
7618 `(("python2-zope-testrunner" ,python2-zope-testrunner)
7619 ,@(alist-delete
7620 "python-zope-testrunner"
7621 (package-propagated-inputs zope-security)))))))
a6b61b27
LF
7622
7623(define-public python-zope-component
7624 (package
7625 (name "python-zope-component")
7626 (version "4.2.2")
7627 (source
7628 (origin
7629 (method url-fetch)
7630 (uri (string-append "https://pypi.python.org/packages/source/z"
7631 "/zope.component/zope.component-" version ".tar.gz"))
7632 (sha256
7633 (base32
7634 "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
7635 (build-system python-build-system)
7636 (arguments
7637 ;; Skip tests due to circular dependency with python-zope-security.
7638 '(#:tests? #f))
7639 (native-inputs
7640 `(("python-zope-testing" ,python-zope-testing)))
7641 (propagated-inputs
7642 `(("python-zope-event" ,python-zope-event)
7643 ("python-zope-interface" ,python-zope-interface)
7644 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
7645 ("python-zope-configuration" ,python-zope-configuration)))
7646 (home-page "https://github.com/zopefoundation/zope.component")
7647 (synopsis "Zope Component Architecture")
7648 (description "Zope.component represents the core of the Zope Component
7649Architecture. Together with the zope.interface package, it provides
7650facilities for defining, registering and looking up components.")
3f641af0 7651 (license license:zpl2.1)))
a6b61b27
LF
7652
7653(define-public python2-zope-component
7654 (package-with-python2 python-zope-component))
3859ac12 7655
1ae44b80 7656(define-public python-pythondialog
b5f218be 7657 (package
1ae44b80 7658 (name "python-pythondialog")
42c4b246 7659 (version "3.4.0")
b5f218be
LF
7660 (source
7661 (origin
7662 (method url-fetch)
1ae44b80 7663 (uri (pypi-uri "pythondialog" version))
b5f218be
LF
7664 (sha256
7665 (base32
1ae44b80 7666 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
b5f218be
LF
7667 (build-system python-build-system)
7668 (arguments
7669 `(#:phases
7670 (modify-phases %standard-phases
7671 (add-after 'unpack 'patch-path
7672 (lambda* (#:key inputs #:allow-other-keys)
7673 (let* ((dialog (assoc-ref inputs "dialog")))
7674 ;; Since this library really wants to grovel the search path, we
7675 ;; must hardcode dialog's store path into it.
7676 (substitute* "dialog.py"
7677 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
7678 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
7679 #t))))
b5f218be
LF
7680 #:tests? #f)) ; no test suite
7681 (propagated-inputs
7682 `(("dialog" ,dialog)))
7683 (home-page "http://pythondialog.sourceforge.net/")
7684 (synopsis "Python interface to the UNIX dialog utility")
7685 (description "A Python wrapper for the dialog utility. Its purpose is to
7686provide an easy to use, pythonic and comprehensive Python interface to dialog.
7687This allows one to make simple text-mode user interfaces on Unix-like systems")
3f641af0 7688 (license license:lgpl2.1)
1ae44b80
LF
7689 (properties `((python2-variant . ,(delay python2-pythondialog))))))
7690
7691(define-public python2-pythondialog
7692 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
7693 (package
7694 (inherit base)
7695 (version (package-version python-pythondialog))
7696 (source (origin
7697 (method url-fetch)
7698 (uri (pypi-uri "python2-pythondialog" version))
7699 (sha256
7700 (base32
7701 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
b5f218be 7702
3859ac12
LF
7703(define-public python-pyrfc3339
7704 (package
7705 (name "python-pyrfc3339")
d9aa097b 7706 (version "1.0")
3859ac12
LF
7707 (source
7708 (origin
7709 (method url-fetch)
d9aa097b 7710 (uri (pypi-uri "pyRFC3339" version))
3859ac12
LF
7711 (sha256
7712 (base32
d9aa097b 7713 "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
3859ac12
LF
7714 (build-system python-build-system)
7715 (propagated-inputs
7716 `(("python-pytz" ,python-pytz)))
7717 (native-inputs
7718 `(("python-nose" ,python-nose)
7719 ("python-setuptools" ,python-setuptools)))
7720 (home-page "https://github.com/kurtraschke/pyRFC3339")
7721 (synopsis "Python timestamp library")
7722 (description "Python library for generating and parsing RFC 3339-compliant
7723timestamps.")
7724 (license license:expat)))
7725
7726(define-public python2-pyrfc3339
7727 (package-with-python2 python-pyrfc3339))
5eea2005
LF
7728
7729(define-public python-werkzeug
7730 (package
7731 (name "python-werkzeug")
0580e383 7732 (version "0.11.11")
5eea2005
LF
7733 (source
7734 (origin
7735 (method url-fetch)
4b47cbfa 7736 (uri (pypi-uri "Werkzeug" version))
5eea2005
LF
7737 (sha256
7738 (base32
0580e383 7739 "1rgpq8a2qv26d75v9j3b074inirlyy6y4b5x4rxblp202jy4cb77"))))
5eea2005
LF
7740 (build-system python-build-system)
7741 (native-inputs
7742 `(("python-pytest" ,python-pytest)))
7743 (home-page "http://werkzeug.pocoo.org/")
7744 (synopsis "Utilities for WSGI applications")
7745 (description "One of the most advanced WSGI utility modules. It includes a
7746powerful debugger, full-featured request and response objects, HTTP utilities to
7747handle entity tags, cache control headers, HTTP dates, cookie handling, file
7748uploads, a powerful URL routing system and a bunch of community-contributed
7749addon modules.")
3f641af0 7750 (license license:x11)))
5eea2005
LF
7751
7752(define-public python2-werkzeug
7753 (package-with-python2 python-werkzeug))
99fffa8a
LF
7754
7755(define-public python-configobj
7756 (package
7757 (name "python-configobj")
7758 (version "5.0.6")
7759 (source (origin
7760 (method url-fetch)
7761 (uri (string-append
7762 "https://pypi.python.org/packages/source/c/configobj/"
7763 "configobj-" version ".tar.gz"))
7764 (sha256
7765 (base32
7766 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
7767 ;; Patch setup.py so it looks for python-setuptools, which is
7768 ;; required to parse the keyword 'install_requires' in setup.py.
fc1adab1 7769 (patches (search-patches "python-configobj-setuptools.patch"))))
99fffa8a
LF
7770 (build-system python-build-system)
7771 (native-inputs
7772 `(("python-setuptools" ,python-setuptools)
7773 ("python-six" ,python-six)))
7774 (synopsis "Config file reading, writing and validation")
7775 (description "ConfigObj is a simple but powerful config file reader and
7776writer: an ini file round tripper. Its main feature is that it is very easy to
7777use, with a straightforward programmer’s interface and a simple syntax for
7778config files.")
7779 (home-page "https://github.com/DiffSK/configobj")
3f641af0 7780 (license license:bsd-3)))
99fffa8a
LF
7781
7782(define-public python2-configobj
7783 (package-with-python2 python-configobj))
79e8a291
LF
7784
7785(define-public python-configargparse
7786 (package
7787 (name "python-configargparse")
7788 (version "0.10.0")
7789 (source (origin
7790 (method url-fetch)
7791 (uri (string-append
7792 "https://pypi.python.org/packages/source/C/ConfigArgParse/"
7793 "ConfigArgParse-" version ".tar.gz"))
7794 (sha256
7795 (base32
7796 "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
7797 (build-system python-build-system)
7798 (arguments
7799 ;; FIXME: Bug in test suite filed upstream:
7800 ;; https://github.com/bw2/ConfigArgParse/issues/32
7801 '(#:tests? #f))
7802 (synopsis "Replacement for argparse")
7803 (description "A drop-in replacement for argparse that allows options to also
7804be set via config files and/or environment variables.")
7805 (home-page "https://github.com/bw2/ConfigArgParse")
7806 (license license:expat)))
7807
7808(define-public python2-configargparse
7809 (package-with-python2 python-configargparse))
ab41f979
LF
7810
7811(define-public python-ndg-httpsclient
7812 (package
7813 (name "python-ndg-httpsclient")
7814 (version "0.4.0")
7815 (source (origin
7816 (method url-fetch)
7817 (uri (string-append
7818 "https://pypi.python.org/packages/source/n/ndg-httpsclient/"
7819 "ndg_httpsclient-" version ".tar.gz"))
7820 (sha256
7821 (base32
7822 "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
7823 (build-system python-build-system)
a39cc016
LF
7824 (arguments
7825 '(;; The tests appear to require networking.
7826 #:tests? #f))
ab41f979
LF
7827 (propagated-inputs
7828 `(("python-pyopenssl" ,python-pyopenssl)))
7829 (synopsis "HTTPS support for Python's httplib and urllib2")
7830 (description "This is a HTTPS client implementation for httplib and urllib2
7831based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
7832over the default provided with Python and importantly enables full verification
7833of the SSL peer.")
7834 (home-page "https://github.com/cedadev/ndg_httpsclient/")
3f641af0 7835 (license license:bsd-3)))
ab41f979
LF
7836
7837;; python2-openssl requires special care, so package-with-python2 is
7838;; insufficient.
7839(define-public python2-ndg-httpsclient
7840 (package (inherit python-ndg-httpsclient)
7841 (name "python2-ndg-httpsclient")
7842 (arguments `(#:python ,python-2))
7843 (propagated-inputs
7844 `(("python2-pyopenssl" ,python2-pyopenssl)))))
03f964a5
CM
7845
7846(define-public python-contextlib2
7847 (package
7848 (name "python-contextlib2")
7849 (version "0.4.0")
7850 (source
7851 (origin
7852 (method url-fetch)
7853 (uri (pypi-uri "contextlib2" version))
7854 (sha256
7855 (base32
7856 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
7857 (build-system python-build-system)
7858 (arguments
7859 `(#:phases
7860 (modify-phases %standard-phases
7861 (replace 'check
7862 (lambda _ (zero?
7863 (system*
b3546174 7864 "python" "test_contextlib2.py" "-v")))))))
03f964a5
CM
7865 (home-page "http://contextlib2.readthedocs.org/")
7866 (synopsis "Tools for decorators and context managers")
7867 (description "This module is primarily a backport of the Python
78683.2 contextlib to earlier Python versions. Like contextlib, it
7869provides utilities for common tasks involving decorators and context
7870managers. It also contains additional features that are not part of
7871the standard library.")
3f641af0 7872 (license license:psfl)))
03f964a5
CM
7873
7874(define-public python2-contextlib2
7875 (package-with-python2 python-contextlib2))
210bf497
DT
7876
7877(define-public python-texttable
7878 (package
7879 (name "python-texttable")
7880 (version "0.8.4")
7881 (source
7882 (origin
7883 (method url-fetch)
7884 (uri (pypi-uri "texttable" version))
7885 (sha256
7886 (base32
7887 "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
7888 (build-system python-build-system)
7889 (arguments '(#:tests? #f)) ; no tests
7890 (home-page "https://github.com/foutaise/texttable/")
7891 (synopsis "Python module for creating simple ASCII tables")
7892 (description "Texttable is a Python module for creating simple ASCII
7893tables.")
3f641af0 7894 (license license:lgpl2.1+)))
210bf497
DT
7895
7896(define-public python2-texttable
7897 (package-with-python2 python-texttable))
67c52bb3
DT
7898
7899(define-public python-websocket-client
7900 (package
7901 (name "python-websocket-client")
6b810897 7902 (version "0.37.0")
67c52bb3
DT
7903 (source
7904 (origin
7905 (method url-fetch)
6b810897 7906 (uri (pypi-uri "websocket_client" version))
67c52bb3
DT
7907 (sha256
7908 (base32
6b810897 7909 "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7"))))
67c52bb3
DT
7910 (build-system python-build-system)
7911 (native-inputs
7912 `(("python-six" ,python-six))) ; for tests
7913 (inputs
7914 `(("python-setuptools" ,python-setuptools)))
7915 (home-page "https://github.com/liris/websocket-client")
7916 (synopsis "WebSocket client for Python")
7917 (description "The Websocket-client module provides the low level APIs for
7918WebSocket usage in Python programs.")
3f641af0 7919 (license license:lgpl2.1+)))
67c52bb3
DT
7920
7921(define-public python2-websocket-client
7922 (package-with-python2 python-websocket-client))
5c6eea2a
LF
7923
7924(define-public python-atomicwrites
7925 (package
7926 (name "python-atomicwrites")
4e92d76a 7927 (version "1.1.0")
5c6eea2a
LF
7928 (source (origin
7929 (method url-fetch)
7930 (uri (pypi-uri "atomicwrites" version))
7931 (sha256
7932 (base32
4e92d76a 7933 "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0"))))
5c6eea2a
LF
7934 (build-system python-build-system)
7935 (synopsis "Atomic file writes in Python")
7936 (description "Library for atomic file writes using platform dependent tools
8f65585b 7937for atomic file system operations.")
5c6eea2a 7938 (home-page "https://github.com/untitaker/python-atomicwrites")
9bb6d184
LF
7939 (license license:expat)
7940 (properties `((python2-variant . ,(delay python2-atomicwrites))))))
7941
7942(define-public python2-atomicwrites
7943 (package (inherit (package-with-python2
7944 (strip-python2-variant python-atomicwrites)))
7945 (native-inputs
7946 `(("python2-setuptools" ,python2-setuptools)))))
561bb3cb
LF
7947
7948(define-public python-requests-toolbelt
7949 (package
7950 (name "python-requests-toolbelt")
c02af1c8 7951 (version "0.6.2")
561bb3cb
LF
7952 (source (origin
7953 (method url-fetch)
c02af1c8
LF
7954 (uri (string-append
7955 "https://pypi.python.org/packages/"
7956 "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/"
7957 "requests-toolbelt-" version ".tar.gz"))
561bb3cb
LF
7958 (sha256
7959 (base32
c02af1c8 7960 "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6"))))
561bb3cb 7961 (build-system python-build-system)
759aadd4
LF
7962 (native-inputs
7963 `(("python-betamax" ,python-betamax)
7964 ("python-mock" ,python-mock)
7965 ("python-pytest" ,python-pytest)))
561bb3cb
LF
7966 (propagated-inputs
7967 `(("python-requests" ,python-requests)))
7968 (synopsis "Extensions to python-requests")
7969 (description "This is a toolbelt of useful classes and functions to be used
7970with python-requests.")
7971 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
3f641af0 7972 (license license:asl2.0)))
d1deb90b
LF
7973
7974(define-public python-click-threading
7975 (package
7976 (name "python-click-threading")
3d2e0dbc 7977 (version "0.2.0")
d1deb90b
LF
7978 (source (origin
7979 (method url-fetch)
3d2e0dbc
LF
7980 (uri (string-append
7981 "https://pypi.python.org/packages/"
7982 "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/"
7983 "click-threading-" version ".tar.gz"))
d1deb90b
LF
7984 (sha256
7985 (base32
3d2e0dbc 7986 "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j"))))
d1deb90b
LF
7987 (build-system python-build-system)
7988 (propagated-inputs
7989 `(("python-click" ,python-click)))
7990 (synopsis "Utilities for multithreading in Click")
7991 (description "This package provides utilities for multithreading in Click
7992applications.")
7993 (home-page "https://github.com/click-contrib/click-threading")
7994 (license license:expat)))
7b17cab9
LF
7995
7996(define-public python-click-log
7997 (package
7998 (name "python-click-log")
a9da8fec 7999 (version "0.1.3")
7b17cab9
LF
8000 (source (origin
8001 (method url-fetch)
8002 (uri (pypi-uri "click-log" version))
8003 (sha256
8004 (base32
a9da8fec 8005 "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
7b17cab9
LF
8006 (build-system python-build-system)
8007 (propagated-inputs
8008 `(("python-click" ,python-click)))
8009 (synopsis "Logging for click applications")
8010 (description "This package provides a Python library for logging Click
8011applications.")
8012 (home-page "https://github.com/click-contrib/click-log")
8013 (license license:expat)))
7b3a4ee4
LF
8014
8015(define-public python-apipkg
8016 (package
8017 (name "python-apipkg")
8018 (version "1.4")
8019 (source (origin
8020 (method url-fetch)
8021 (uri (pypi-uri "apipkg" version))
8022 (sha256
8023 (base32
8024 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
8025 (build-system python-build-system)
b43bab3c 8026 (inputs
7b3a4ee4
LF
8027 `(("python-pytest" ,python-pytest)))
8028 (synopsis "Namespace control and lazy-import mechanism")
8029 (description "With apipkg you can control the exported namespace of a Python
8030package and greatly reduce the number of imports for your users. It is a small
8031pure Python module that works on virtually all Python versions.")
8032 (home-page "https://bitbucket.org/hpk42/apipkg")
e08739c3
CAW
8033 (license license:expat)
8034 (properties `((python2-variant . ,(delay python2-apipkg))))))
8035
8036(define-public python2-apipkg
8037 (package
8038 (inherit (package-with-python2
8039 (strip-python2-variant python-apipkg)))
8040 (native-inputs
8041 `(("python2-setuptools" ,python2-setuptools)))))
848964fe
LF
8042
8043(define-public python-execnet
8044 (package
8045 (name "python-execnet")
8046 (version "1.4.1")
8047 (source (origin
8048 (method url-fetch)
8049 (uri (pypi-uri "execnet" version))
8050 (sha256
8051 (base32
8052 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
8053 (build-system python-build-system)
ca0eee9d
LF
8054 (arguments
8055 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
8056 ;; The two test failures are caused by the lack of an `ssh` executable.
8057 ;; The test suite can be run with pytest after the 'install' phase.
8058 #:tests? #f))
848964fe 8059 (native-inputs
ca0eee9d
LF
8060 `(("python-pytest" ,python-pytest)
8061 ("python-setuptools-scm" ,python-setuptools-scm)))
584d068f 8062 (inputs
848964fe
LF
8063 `(("python-apipkg" ,python-apipkg)))
8064 (synopsis "Rapid multi-Python deployment")
8065 (description "Execnet provides a share-nothing model with
8066channel-send/receive communication for distributing execution across many
8067Python interpreters across version, platform and network barriers. It has a
8068minimal and fast API targetting the following uses:
8069@enumerate
8070@item distribute tasks to (many) local or remote CPUs
8071@item write and deploy hybrid multi-process applications
8072@item write scripts to administer multiple environments
8073@end enumerate")
8074 (home-page "http://codespeak.net/execnet/")
16c84f90
CAW
8075 (license license:expat)
8076 (properties `((python2-variant . ,(delay python2-execnet))))))
8077
8078(define-public python2-execnet
8079 (let ((execnet (package-with-python2
8080 (strip-python2-variant python-execnet))))
8081 (package
8082 (inherit execnet)
8083 (native-inputs
8084 `(("python2-setuptools" ,python2-setuptools)
8085 ,@(package-native-inputs execnet))))))
6720dbb4
LF
8086
8087;;; The software provided by this package was integrated into pytest 2.8.
8088(define-public python-pytest-cache
8089 (package
8090 (name "python-pytest-cache")
8091 (version "1.0")
8092 (source (origin
8093 (method url-fetch)
8094 (uri (pypi-uri "pytest-cache" version))
8095 (sha256
8096 (base32
8097 "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
8098 (build-system python-build-system)
630d938f
EF
8099 (inputs
8100 `(("python-apipkg" ,python-apipkg)
8101 ("python-execnet" ,python-execnet)
8102 ("python-py" ,python-py)
8103 ("python-pytest" ,python-pytest)))
6720dbb4
LF
8104 (synopsis "Py.test plugin with mechanisms for caching across test runs")
8105 (description "The pytest-cache plugin provides tools to rerun failures from
8106the last py.test invocation.")
8107 (home-page "https://bitbucket.org/hpk42/pytest-cache/")
0adc21c2
EF
8108 (license license:expat)
8109 (properties `((python2-variant . ,(delay python2-pytest-cache))))))
8110
8111(define-public python2-pytest-cache
8112 (let ((pytest-cache (package-with-python2
8113 (strip-python2-variant python-pytest-cache))))
8114 (package
8115 (inherit pytest-cache)
8116 (native-inputs
8117 `(("python2-setuptools" ,python2-setuptools)
8118 ,@(package-native-inputs pytest-cache))))))
d7e729fe
LF
8119
8120(define-public python-pytest-localserver
8121 (package
8122 (name "python-pytest-localserver")
29f20168 8123 (version "0.3.5")
d7e729fe
LF
8124 (source (origin
8125 (method url-fetch)
29f20168 8126 (uri (pypi-uri "pytest-localserver" version))
d7e729fe
LF
8127 (sha256
8128 (base32
29f20168 8129 "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
d7e729fe
LF
8130 (build-system python-build-system)
8131 (arguments
8132 `(#:phases (modify-phases %standard-phases
8133 (replace 'check
8134 (lambda _
8135 (zero? (system* "py.test" "--genscript=runtests.py"))
8136 (zero? (system* "py.test")))))))
8137 (native-inputs
d7e729fe
LF
8138 `(("python-pytest" ,python-pytest)
8139 ("python-requests" ,python-requests)
9ba40f05
EF
8140 ("python-six" ,python-six)))
8141 (inputs
8142 `(("python-werkzeug" ,python-werkzeug)))
d7e729fe
LF
8143 (synopsis "Py.test plugin to test server connections locally")
8144 (description "Pytest-localserver is a plugin for the pytest testing
8145framework which enables you to test server connections locally.")
8146 (home-page "https://pypi.python.org/pypi/pytest-localserver")
8147 (license license:expat)))
28cecbb7
LF
8148
8149(define-public python-wsgi-intercept
8150 (package
8151 (name "python-wsgi-intercept")
909fbd2b 8152 (version "1.2.2")
28cecbb7
LF
8153 (source (origin
8154 (method url-fetch)
909fbd2b
LF
8155 (uri (string-append
8156 "https://pypi.python.org/packages/"
8157 "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/"
8158 "wsgi_intercept-" version ".tar.gz"))
28cecbb7
LF
8159 (sha256
8160 (base32
909fbd2b 8161 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
28cecbb7
LF
8162 (build-system python-build-system)
8163 (native-inputs
9d813ec1 8164 `(("python-pytest" ,python-pytest)
8757f050
LF
8165 ("python-six" ,python-six)
8166 ("python-urllib3" ,python-urllib3)))
28cecbb7
LF
8167 (propagated-inputs
8168 `(("python-httplib2" ,python-httplib2)
8169 ("python-requests" ,python-requests)))
8170 (synopsis "Puts a WSGI application in place of a real URI for testing")
8171 (description "Wsgi_intercept installs a WSGI application in place of a real
8172URI for testing. Testing a WSGI application normally involves starting a
8173server at a local host and port, then pointing your test code to that address.
8174Instead, this library lets you intercept calls to any specific host/port
8175combination and redirect them into a WSGI application importable by your test
8176program. Thus, you can avoid spawning multiple processes or threads to test
8177your Web app.")
8178 (home-page "https://github.com/cdent/wsgi-intercept")
8179 (license license:expat)))
89b8a551
LF
8180
8181(define-public python-pytest-xprocess
8182 (package
8183 (name "python-pytest-xprocess")
8184 (version "0.9.1")
8185 (source (origin
8186 (method url-fetch)
8187 (uri (pypi-uri "pytest-xprocess" version))
8188 (sha256
8189 (base32
8190 "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
8191 (build-system python-build-system)
8192 (propagated-inputs
8193 `(("python-pytest" ,python-pytest)
8194 ("python-pytest-cache" ,python-pytest-cache)
8195 ("python-psutil" ,python-psutil)))
8196 (synopsis "Pytest plugin to manage external processes across test runs")
8197 (description "Pytest-xprocess is an experimental py.test plugin for managing
8198processes across test runs.")
8199 (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
8200 (license license:expat)))
5c299bf0
LF
8201
8202(define-public python-icalendar
8203 (package
8204 (name "python-icalendar")
25291aca 8205 (version "3.11")
5c299bf0
LF
8206 (source (origin
8207 (method url-fetch)
8208 (uri (pypi-uri "icalendar" version))
8209 (sha256
8210 (base32
25291aca 8211 "01v2f3swd5s72x65cdihw83dx1z799b4i49a6ncg7vqmcm20wapd"))))
5c299bf0
LF
8212 (build-system python-build-system)
8213 (propagated-inputs
8214 `(("python-dateutil-2" ,python-dateutil-2)
8215 ("python-pytz" ,python-pytz)))
8216 (synopsis "Python library for parsing iCalendar files")
8217 (description "The icalendar package is a parser/generator of iCalendar
8218files for use with Python.")
8219 (home-page "https://github.com/collective/icalendar")
3f641af0 8220 (license license:bsd-2)))
6bbbb53e
LF
8221
8222(define-public python-sphinxcontrib-newsfeed
8223 (package
8224 (name "python-sphinxcontrib-newsfeed")
8225 (version "0.1.4")
8226 (source (origin
8227 (method url-fetch)
8228 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
8229 (sha256
8230 (base32
8231 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
8232 (build-system python-build-system)
8233 (propagated-inputs
8234 `(("python-docutils" ,python-docutils)
8235 ("python-sphinx" ,python-sphinx)))
8236 (synopsis "News Feed extension for Sphinx")
8237 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
8238Blog, News or Announcements section to a Sphinx website.")
8239 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
3f641af0 8240 (license license:bsd-2)))
2216e15c
SB
8241
8242(define-public python-args
8243 (package
8244 (name "python-args")
8245 (version "0.1.0")
8246 (source (origin
8247 (method url-fetch)
8248 (uri (pypi-uri "args" version))
8249 (sha256
8250 (base32
8251 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
8252 (build-system python-build-system)
8253 (inputs
8254 `(("python-setuptools" ,python-setuptools)))
8255 (home-page "https://github.com/kennethreitz/args")
8256 (synopsis "Command-line argument parser")
8257 (description
8258 "This library provides a Python module to parse command-line arguments.")
3f641af0 8259 (license license:bsd-3)))
2216e15c
SB
8260
8261(define-public python2-args
8262 (package-with-python2 python-args))
c06a3de9
SB
8263
8264(define-public python-clint
8265 (package
8266 (name "python-clint")
8267 (version "0.5.1")
8268 (source (origin
8269 (method url-fetch)
8270 (uri (pypi-uri "clint" version))
8271 (sha256
8272 (base32
8273 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
8274 (build-system python-build-system)
8275 (inputs
8276 `(("python-args" ,python-args)
8277 ("python-setuptools" ,python-setuptools)))
8278 (home-page "https://github.com/kennethreitz/clint")
8279 (synopsis "Command-line interface tools")
8280 (description
8281 "Clint is a Python module filled with a set of tools for developing
8282command-line applications, including tools for colored and indented
8283output, progress bar display, and pipes.")
3f641af0 8284 (license license:isc)))
c06a3de9
SB
8285
8286(define-public python2-clint
8287 (package-with-python2 python-clint))
4ecdeef8
SB
8288
8289(define-public python-astor
8290 (package
8291 (name "python-astor")
8292 (version "0.5")
8293 (source (origin
8294 (method url-fetch)
8295 (uri (pypi-uri "astor" version))
8296 (sha256
8297 (base32
8298 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
8299 (build-system python-build-system)
8300 (inputs
8301 `(("python-setuptools" ,python-setuptools)))
8302 (home-page "https://github.com/berkerpeksag/astor")
8303 (synopsis "Read and write Python ASTs")
8304 (description
8305 "Astor is designed to allow easy manipulation of Python source via the
8306Abstract Syntax Tree.")
3f641af0 8307 (license license:bsd-3)))
4ecdeef8
SB
8308
8309(define-public python2-astor
8310 (package-with-python2 python-astor))
e224b7d0
SB
8311
8312(define-public python-rply
8313 (package
8314 (name "python-rply")
8315 (version "0.7.4")
8316 (source (origin
8317 (method url-fetch)
8318 (uri (pypi-uri "rply" version))
8319 (sha256
8320 (base32
8321 "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
8322 (build-system python-build-system)
8323 (inputs
8324 `(("python-appdirs" ,python-appdirs)
8325 ("python-setuptools" ,python-setuptools)))
8326 (home-page "https://github.com/alex/rply")
8327 (synopsis "Parser generator for Python")
8328 (description
8329 "This package provides a pure Python based parser generator, that also
8330works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
8331with a new public API, and RPython support.")
3f641af0 8332 (license license:bsd-3)))
e224b7d0
SB
8333
8334(define-public python2-rply
8335 (package-with-python2 python-rply))
c3e919d7
SB
8336
8337(define-public python-hy
8338 (package
8339 (name "python-hy")
8340 (version "0.11.1")
8341 (source (origin
8342 (method url-fetch)
8343 (uri (pypi-uri "hy" version))
8344 (sha256
8345 (base32
8346 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
8347 (build-system python-build-system)
8348 (inputs
8349 `(("python-astor" ,python-astor)
8350 ("python-clint" ,python-clint)
8351 ("python-rply" ,python-rply)
8352 ("python-setuptools" ,python-setuptools)))
8353 (home-page "http://hylang.org/")
8354 (synopsis "Lisp frontend to Python")
8355 (description
8356 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
8357its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
8358Python at your fingertips, in Lisp form.")
8359 (license license:expat)))
8360
8361(define-public python2-hy
8362 (package-with-python2 python-hy))
7a5b944e 8363
81f7f297
EF
8364(define-public python-rauth
8365 (package
8366 (name "python-rauth")
8367 (version "0.7.2")
8368 (source
8369 (origin
8370 (method url-fetch)
8371 (uri (pypi-uri "rauth" version))
8372 (sha256
8373 (base32
8374 "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
8375 (build-system python-build-system)
8376 (arguments
8377 `(#:test-target "check"))
0848d8d3 8378 (inputs
81f7f297
EF
8379 `(("python-requests" ,python-requests)))
8380 (home-page "https://github.com/litl/rauth")
8381 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
8382 (description
8383 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
8384provides service wrappers for convenient connection initialization and
8385authenticated session objects providing things like keep-alive.")
0848d8d3
EF
8386 (license license:expat)
8387 (properties `((python2-variant . ,(delay python2-rauth))))))
81f7f297
EF
8388
8389(define-public python2-rauth
0848d8d3
EF
8390 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
8391 (package
8392 (inherit base)
8393 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8394 ("python2-unittest2" ,python2-unittest2)
8395 ,@(package-native-inputs base))))))
81f7f297 8396
1abe448d
EF
8397(define-public python2-functools32
8398 (package
8399 (name "python2-functools32")
8400 (version "3.2.3-2")
8401 (source
8402 (origin
8403 (method url-fetch)
8404 (uri (pypi-uri "functools32" version))
8405 (sha256
8406 (base32
8407 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
8408 (build-system python-build-system)
8409 (arguments
8410 `(#:python ,python-2
8411 #:tests? #f)) ; no test target
8412 (native-inputs
8413 `(("python2-setuptools" ,python2-setuptools)))
8414 (home-page "https://github.com/MiCHiLU/python-functools32")
8415 (synopsis
8416 "Backport of the functools module from Python 3.2.3")
8417 (description
8418 "This package is a backport of the @code{functools} module from Python
84193.2.3 for use with older versions of Python and PyPy.")
8420 (license license:expat)))
8421
877889f3 8422(define-public python2-futures
7a5b944e 8423 (package
877889f3 8424 (name "python2-futures")
7a5b944e
EF
8425 (version "3.0.3")
8426 (source
8427 (origin
8428 (method url-fetch)
8429 (uri (pypi-uri "futures" version))
8430 (sha256
8431 (base32
8432 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
8433 (build-system python-build-system)
877889f3 8434 (arguments `(#:python ,python-2))
7a5b944e 8435 (native-inputs
877889f3 8436 `(("python2-setuptools" ,python2-setuptools)))
7a5b944e
EF
8437 (home-page "https://github.com/agronholm/pythonfutures")
8438 (synopsis
8439 "Backport of the concurrent.futures package from Python 3.2")
8440 (description
8441 "The concurrent.futures module provides a high-level interface for
8442asynchronously executing callables. This package backports the
8443concurrent.futures package from Python 3.2")
3f641af0 8444 (license license:bsd-3)))
7a5b944e 8445
5cb2fe44
EF
8446(define-public python-promise
8447 (package
8448 (name "python-promise")
8449 (version "0.4.2")
8450 (source
8451 (origin
8452 (method url-fetch)
8453 (uri (pypi-uri "promise" version))
8454 (sha256
8455 (base32
8456 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
8457 (build-system python-build-system)
8458 ;; Tests wants python-futures, which is a python2 only program, and
8459 ;; can't be found by python-promise at test time.
8460 (arguments `(#:tests? #f))
8461 (home-page "https://github.com/syrusakbary/promise")
8462 (synopsis "Promises/A+ implementation for Python")
8463 (description
8464 "Promises/A+ implementation for Python")
8465 (properties `((python2-variant . ,(delay python2-promise))))
8466 (license license:expat)))
8467
8468(define-public python2-promise
8469 (let ((promise (package-with-python2
8470 (strip-python2-variant python-promise))))
8471 (package (inherit promise)
8472 (arguments (substitute-keyword-arguments (package-arguments promise)
8473 ((#:tests? _) #t)))
8474 (native-inputs
8475 `(("python2-futures" ,python2-futures)
8476 ("python2-pytest" ,python2-pytest)
8477 ("python2-setuptools" ,python2-setuptools)
8478 ,@(package-native-inputs promise))))))
8479
c18f6368
EF
8480(define-public python-urllib3
8481 (package
8482 (name "python-urllib3")
6178274d 8483 (version "1.18.1")
c18f6368
EF
8484 (source
8485 (origin
8486 (method url-fetch)
8487 (uri (pypi-uri "urllib3" version))
8488 (sha256
8489 (base32
6178274d 8490 "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam"))))
c18f6368
EF
8491 (build-system python-build-system)
8492 (arguments `(#:tests? #f))
8493 (native-inputs
8494 `(("python-setuptools" ,python-setuptools)
8495 ;; some packages for tests
8496 ("python-nose" ,python-nose)
8497 ("python-mock" ,python-mock)
8498 ("python-tornado" ,python-tornado)))
8499 (propagated-inputs
8500 `(;; packages for https security
8501 ("python-certifi" ,python-certifi)
8502 ("python-ndg-httpsclient" ,python-ndg-httpsclient)
8503 ("python-pyasn1" ,python-pyasn1)
8504 ("python-pyopenssl" ,python-pyopenssl)))
6178274d 8505 (home-page "https://urllib3.readthedocs.org/")
c18f6368
EF
8506 (synopsis "HTTP library with thread-safe connection pooling")
8507 (description
8508 "Urllib3 supports features left out of urllib and urllib2 libraries. It
8509can reuse the same socket connection for multiple requests, it can POST files,
8510supports url redirection and retries, and also gzip and deflate decoding.")
8511 (license license:expat)))
8512
8513(define-public python2-urllib3
8514 (package-with-python2 python-urllib3))
2b2f2fc1
DT
8515
8516(define-public python-colorama
8517 (package
8518 (name "python-colorama")
8519 (version "0.3.3")
8520 (source
8521 (origin
8522 (method url-fetch)
8523 (uri (pypi-uri "colorama" version))
8524 (sha256
8525 (base32
8526 "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
8527 (build-system python-build-system)
8528 (inputs
8529 `(("python-setuptools" ,python-setuptools)))
8530 (synopsis "colored terminal text rendering for Python")
8531 (description "Colorama is a Python library for rendering colored terminal
8532text.")
8533 (home-page "https://pypi.python.org/pypi/colorama")
3f641af0 8534 (license license:bsd-3)))
2b2f2fc1
DT
8535
8536(define-public python2-colorama
8537 (package-with-python2 python-colorama))
f5bcec6e
DT
8538
8539(define-public python-rsa
8540 (package
8541 (name "python-rsa")
ecd68c53 8542 (version "3.4.2")
f5bcec6e
DT
8543 (source
8544 (origin
8545 (method url-fetch)
8546 (uri (pypi-uri "rsa" version))
8547 (sha256
8548 (base32
ecd68c53 8549 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
f5bcec6e
DT
8550 (build-system python-build-system)
8551 (inputs
8552 `(("python-pyasn1" ,python-pyasn1)
8553 ("python-setuptools" ,python-setuptools)))
8554 (synopsis "Pure-Python RSA implementation")
8555 (description "Python-RSA is a pure-Python RSA implementation. It supports
8556encryption and decryption, signing and verifying signatures, and key
8557generation according to PKCS#1 version 1.5. It can be used as a Python
8558library as well as on the command line.")
8559 (home-page "http://stuvel.eu/rsa")
3f641af0 8560 (license license:asl2.0)))
f5bcec6e
DT
8561
8562(define-public python2-rsa
8563 (package-with-python2 python-rsa))
c0aacfa5
DT
8564
8565(define-public python-pluggy
8566 (package
8567 (name "python-pluggy")
8568 (version "0.3.1")
8569 (source
8570 (origin
8571 (method url-fetch)
8572 (uri (pypi-uri "pluggy" version))
8573 (sha256
8574 (base32
8575 "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
8576 (build-system python-build-system)
8577 (inputs
8578 `(("python-setuptools" ,python-setuptools)))
8579 (synopsis "Plugin and hook calling mechanism for Python")
8580 (description "Pluggy is an extraction of the plugin manager as used by
8581Pytest but stripped of Pytest specific details.")
8582 (home-page "https://pypi.python.org/pypi/pluggy")
8583 (license license:expat)))
8584
8585(define-public python2-pluggy
8586 (package-with-python2 python-pluggy))
a4af21ca
DT
8587
8588(define-public python-tox
8589 (package
8590 (name "python-tox")
8591 (version "2.3.1")
8592 (source
8593 (origin
8594 (method url-fetch)
8595 (uri (pypi-uri "tox" version))
8596 (sha256
8597 (base32
8598 "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
8599 (build-system python-build-system)
8600 (arguments
8601 ;; FIXME: Tests require a newer version of pytest, but upgrading our
8602 ;; pytest breaks other packages.
8603 '(#:tests? #f))
8604 (inputs
8605 `(("python-setuptools" ,python-setuptools)
8606 ("python-pluggy" ,python-pluggy)
8607 ("python-py" ,python-py)
8608 ("python-virtualenv" ,python-virtualenv)
8609 ("python-pytest" ,python-pytest)))
8610 (home-page "http://tox.testrun.org/")
8611 (synopsis "Virtualenv-based automation of test activities")
8612 (description "Tox is a generic virtualenv management and test command line
8613tool. It can be used to check that a package installs correctly with
8614different Python versions and interpreters, or run tests in each type of
8615supported environment, or act as a frontend to continuous integration
8616servers.")
8617 (license license:expat)))
8618
8619(define-public python2-tox
8620 (package-with-python2 python-tox))
ba9da248
DT
8621
8622(define-public python-jmespath
8623 (package
8624 (name "python-jmespath")
8625 (version "0.9.0")
8626 (source
8627 (origin
8628 (method url-fetch)
8629 (uri (pypi-uri "jmespath" version))
8630 (sha256
8631 (base32
8632 "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
8633 (build-system python-build-system)
8634 (inputs
8635 `(("python-setuptools" ,python-setuptools)))
8636 (synopsis "JSON Matching Expressions")
8637 (description "JMESPath (pronounced “james path”) is a Python library that
8638allows one to declaratively specify how to extract elements from a JSON
8639document.")
8640 (home-page "https://github.com/jmespath/jmespath.py")
8641 (license license:expat)))
8642
8643(define-public python2-jmespath
8644 (package-with-python2 python-jmespath))
935fcd5c
DT
8645
8646(define-public python-botocore
8647 (package
8648 (name "python-botocore")
e09f952d 8649 (version "1.4.62")
935fcd5c
DT
8650 (source
8651 (origin
8652 (method url-fetch)
8653 (uri (pypi-uri "botocore" version))
8654 (sha256
8655 (base32
e09f952d 8656 "1zxczlwqy9bl27d9bc5x99mb5mcsxm350240lp5nx7014xb311lj"))))
935fcd5c
DT
8657 (build-system python-build-system)
8658 (inputs
8659 `(("python-dateutil" ,python-dateutil-2)
8660 ("python-docutils" ,python-docutils)
8661 ("python-mock" ,python-mock)
8662 ("python-nose" ,python-nose)
8663 ("python-setuptools" ,python-setuptools)
8664 ("python-tox" ,python-tox)
8665 ("python-wheel" ,python-wheel)
8666 ("python-jmespath" ,python-jmespath)))
8667 (home-page "https://github.com/boto/botocore")
8668 (synopsis "Low-level interface to AWS")
8669 (description "Botocore is a Python library that provides a low-level
8670interface to the Amazon Web Services (AWS) API.")
3f641af0 8671 (license license:asl2.0)))
935fcd5c
DT
8672
8673(define-public python2-botocore
8674 (package-with-python2 python-botocore))
f861b8b8
DT
8675
8676(define-public awscli
8677 (package
8678 (name "awscli")
d5ccf71e 8679 (version "1.11.5")
f861b8b8
DT
8680 (source
8681 (origin
8682 (method url-fetch)
d5ccf71e 8683 (uri (pypi-uri name version))
f861b8b8
DT
8684 (sha256
8685 (base32
d5ccf71e 8686 "0lclasm0wnayd3b8zl9l91i32nbgrhh0ncf9lksss4cv0myfwmfg"))))
f861b8b8
DT
8687 (build-system python-build-system)
8688 (inputs
8689 `(("python-colorama" ,python-colorama)
8690 ("python-docutils" ,python-docutils)
8691 ("python-mock" ,python-mock)
8692 ("python-nose" ,python-nose)
8693 ("python-rsa" ,python-rsa)
8694 ("python-setuptools" ,python-setuptools)
8695 ("python-sphinx" ,python-sphinx)
8696 ("python-tox" ,python-tox)
8697 ("python-wheel" ,python-wheel)
d5ccf71e
LF
8698 ("python-botocore" ,python-botocore)
8699 ("python-s3transfer" ,python-s3transfer)))
f861b8b8
DT
8700 (home-page "http://aws.amazon.com/cli/")
8701 (synopsis "Command line client for AWS")
8702 (description "AWS CLI provides a unified command line interface to the
8703Amazon Web Services (AWS) API.")
3f641af0 8704 (license license:asl2.0)))
6a44697d
LF
8705
8706(define-public python-hypothesis
8707 (package
8708 (name "python-hypothesis")
bea6d94d 8709 (version "3.1.0")
6a44697d
LF
8710 (source (origin
8711 (method url-fetch)
8712 (uri (pypi-uri "hypothesis" version))
8713 (sha256
8714 (base32
bea6d94d 8715 "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
6a44697d 8716 (build-system python-build-system)
6a44697d
LF
8717 (propagated-inputs
8718 `(("python-flake8" ,python-flake8)
8719 ("python-pytest" ,python-pytest)))
8720 (synopsis "Library for property based testing")
8721 (description "Hypothesis is a library for testing your Python code against a
8722much larger range of examples than you would ever want to write by hand. It’s
8723based on the Haskell library, Quickcheck, and is designed to integrate
8724seamlessly into your existing Python unit testing work flow.")
8725 (home-page "https://github.com/DRMacIver/hypothesis")
3f641af0 8726 (license license:mpl2.0)
6f068e08 8727 (properties `((python2-variant . ,(delay python2-hypothesis))))))
6a44697d
LF
8728
8729(define-public python2-hypothesis
6f068e08
EF
8730 (let ((hypothesis (package-with-python2
8731 (strip-python2-variant python-hypothesis))))
8732 (package (inherit hypothesis)
8733 (native-inputs
8734 `(("python2-enum34" ,python2-enum34)
8735 ("python2-setuptools" ,python2-setuptools))))))
7517e73c
LF
8736
8737(define-public python-pytest-subtesthack
8738 (package
8739 (name "python-pytest-subtesthack")
8740 (version "0.1.1")
8741 (source (origin
8742 (method url-fetch)
8743 (uri (pypi-uri "pytest-subtesthack" version))
8744 (sha256
8745 (base32
8746 "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
8747 (build-system python-build-system)
8748 (native-inputs
8749 `(;; setuptools required for python-2 variant
8750 ("python-setuptools" ,python-setuptools)))
8751 (propagated-inputs
8752 `(("python-pytest" ,python-pytest)))
8753 (synopsis "Set-up and tear-down fixtures for unit tests")
8754 (description "This plugin allows you to set up and tear down fixtures within
8755unit test functions that use @code{py.test}. This is useful for using
8756@command{hypothesis} inside py.test, as @command{hypothesis} will call the test
8757function multiple times, without setting up or tearing down fixture state as is
8758normally the case.")
8759 (home-page "https://github.com/untitaker/pytest-subtesthack/")
3f641af0 8760 (license license:unlicense)))
7517e73c
LF
8761
8762(define-public python2-pytest-subtesthack
8763 (package-with-python2 python-pytest-subtesthack))
0bdc1671
CAW
8764
8765(define-public python2-xdo
8766 (package
8767 (name "python2-xdo")
8768 (version "0.2")
8769 (source (origin
8770 (method url-fetch)
8771 (uri (string-append
8772 "http://http.debian.net/debian/pool/main/p/python-xdo/"
8773 "python-xdo_" version ".orig.tar.gz"))
8774 (sha256
8775 (base32
8776 "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
8777 (build-system python-build-system)
8778 (arguments
8779 `(#:python ,python-2
8780 #:tests? #f)) ; no tests provided
8781 (inputs
8782 `(("xdotool" ,xdotool)
8783 ("libX11" ,libx11)))
8784 (home-page "https://tracker.debian.org/pkg/python-xdo")
8785 (synopsis "Python library for simulating X11 keyboard/mouse input")
8786 (description "Provides bindings to libxdo for manipulating X11 via simulated
8787input. (Note that this is mostly a legacy library; you may wish to look at
8788python-xdo for newer bindings.)")
3f641af0 8789 (license license:bsd-3)))
0bdc1671 8790
cb34dc6c
CAW
8791(define-public python-wtforms
8792 (package
8793 (name "python-wtforms")
8794 (version "2.1")
8795 (source
8796 (origin
8797 (method url-fetch)
8798 (uri (pypi-uri "WTForms" version ".zip"))
8799 (sha256
8800 (base32
8801 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
8802 (build-system python-build-system)
13c4d874
EF
8803 (arguments
8804 '(#:phases
8805 (modify-phases %standard-phases
8806 (add-after 'unpack 'remove-django-test
8807 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
8808 (lambda _
8809 (substitute*
8810 "tests/runtests.py"
8811 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
8812 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
8813 #t)))))
cb34dc6c
CAW
8814 (native-inputs
8815 `(("unzip" ,unzip)))
8816 (home-page "http://wtforms.simplecodes.com/")
8817 (synopsis
8818 "Form validation and rendering library for Python web development")
8819 (description
8820 "WTForms is a flexible forms validation and rendering library
8821for Python web development. It is very similar to the web form API
8822available in Django, but is a standalone package.")
3f641af0 8823 (license license:bsd-3)
cb34dc6c
CAW
8824 (properties `((python2-variant . ,(delay python2-wtforms))))))
8825
8826(define-public python2-wtforms
8827 (package
8828 (inherit (package-with-python2
8829 (strip-python2-variant python-wtforms)))
8830 (inputs `(("python2-setuptools" ,python2-setuptools)))))
50aaec25
DT
8831
8832(define-public python-mako
8833 (package
8834 (name "python-mako")
8835 (version "1.0.3")
8836 (source
8837 (origin
8838 (method url-fetch)
8839 (uri (pypi-uri "Mako" version))
8840 (sha256
8841 (base32
8842 "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
8843 (build-system python-build-system)
8844 (native-inputs
8845 `(("python-markupsafe" ,python-markupsafe)
8846 ("python-mock" ,python-mock)
8847 ("python-nose" ,python-nose)))
8848 (home-page "http://www.makotemplates.org/")
8849 (synopsis "Templating language for Python")
8850 (description "Mako is a templating language for Python that compiles
8851templates into Python modules.")
8852 (license license:expat)
8853 (properties `((python2-variant . ,(delay python2-mako))))))
8854
8855(define-public python2-mako
8856 (let ((base (package-with-python2
8857 (strip-python2-variant python-mako))))
8858 (package
8859 (inherit base)
8860 (native-inputs
8861 (cons `("python2-setuptools" ,python2-setuptools)
8862 (package-native-inputs base))))))
ae00a41f
CAW
8863
8864(define-public python-waitress
8865 (package
8866 (name "python-waitress")
8867 (version "0.8.10")
8868 (source
8869 (origin
8870 (method url-fetch)
8871 (uri (pypi-uri "waitress" version))
8872 (sha256
8873 (base32
8874 "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
8875 (build-system python-build-system)
8876 (home-page "https://github.com/Pylons/waitress")
8877 (synopsis "Waitress WSGI server")
8878 (description "Waitress is meant to be a production-quality pure-Python WSGI
8879server with very acceptable performance.")
3f641af0 8880 (license license:zpl2.1)
ae00a41f
CAW
8881 (properties `((python2-variant . ,(delay python2-waitress))))))
8882
8883(define-public python2-waitress
8884 (package
8885 (inherit (package-with-python2
8886 (strip-python2-variant python-waitress)))
8887 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
778a284b
CAW
8888
8889(define-public python-wsgiproxy2
8890 (package
8891 (name "python-wsgiproxy2")
8892 (version "0.4.2")
8893 (source
8894 (origin
8895 (method url-fetch)
8896 (uri (pypi-uri "WSGIProxy2" version ".zip"))
8897 (sha256
8898 (base32
8899 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
8900 (build-system python-build-system)
e359b31a
LF
8901 (arguments
8902 '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully
8903 ;; support Python 3:
8904 ;; https://github.com/benoitc/restkit/issues/140
8905 #:tests? #f))
778a284b
CAW
8906 (native-inputs
8907 `(("unzip" ,unzip)
8908 ("python-nose" ,python-nose)
8909 ("python-coverage" ,python-coverage)))
8910 (propagated-inputs
8911 `(("python-six" ,python-six)
8912 ("python-webob" ,python-webob)))
8913 (home-page
8914 "https://github.com/gawel/WSGIProxy2/")
8915 (synopsis "WSGI Proxy with various http client backends")
8916 (description "WSGI turns HTTP requests into WSGI function calls.
8917WSGIProxy turns WSGI function calls into HTTP requests.
8918It also includes code to sign requests and pass private data,
8919and to spawn subprocesses to handle requests.")
8920 (license license:expat)
8921 (properties `((python2-variant . ,(delay python2-wsgiproxy2))))))
8922
8923(define-public python2-wsgiproxy2
8924 (let ((wsgiproxy2 (package-with-python2
8925 (strip-python2-variant python-wsgiproxy2))))
8926 (package
8927 (inherit wsgiproxy2)
8928 (inputs `(("python2-setuptools" ,python2-setuptools)
8929 ,@(package-inputs wsgiproxy2))))))
bb7518b1
CAW
8930
8931(define-public python-pastedeploy
8932 (package
8933 (name "python-pastedeploy")
8934 (version "1.5.2")
8935 (source
8936 (origin
8937 (method url-fetch)
8938 (uri (pypi-uri "PasteDeploy" version))
8939 (sha256
8940 (base32
8941 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
8942 (build-system python-build-system)
8943 (native-inputs
8944 `(("python-nose" ,python-nose)))
8945 (propagated-inputs
8946 ;; This package uses pkg_resources, part of setuptools, during runtime,
8947 ;; hence why not a native-input.
8948 `(("python-setuptools" ,python-setuptools)))
8949 (home-page "http://pythonpaste.org/deploy/")
8950 (synopsis
8951 "Load, configure, and compose WSGI applications and servers")
8952 (description
8953 "This tool provides code to load WSGI applications and servers from URIs;
8954these URIs can refer to Python Eggs for INI-style configuration files. Paste
8955Script provides commands to serve applications based on this configuration
8956file.")
8957 (license license:expat)))
8958
8959(define-public python2-pastedeploy
8960 (package-with-python2 python-pastedeploy))
1cf53652 8961
c4a7904c
CAW
8962(define-public python-paste
8963 (package
8964 (name "python-paste")
8965 (version "2.0.2")
8966 (source
8967 (origin
8968 (method url-fetch)
8969 (uri (pypi-uri "Paste" version))
8970 (sha256
8971 (base32
8972 "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
fc1adab1
AK
8973 (patches (search-patches "python-paste-remove-website-test.patch"
8974 "python-paste-remove-timing-test.patch"))))
c4a7904c
CAW
8975 (build-system python-build-system)
8976 (native-inputs
8977 `(("python-nose" ,python-nose)))
8978 (propagated-inputs
8979 `(;; Uses pkg_resources provided by setuptools internally.
8980 ("python-setuptools" ,python-setuptools)
8981 ("python-six" ,python-six)))
8982 (arguments
8983 '(;; Tests don't pass on Python 3, but work fine on Python 2.
8984 ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
8985 ;; but is usable enough for the minimal amount it's used in MediaGoblin
8986 ;; still... things should be better by the next Paste release.)
8987 #:tests? #f))
8988 (home-page "http://pythonpaste.org")
8989 (synopsis
8990 "Python web development tools, focusing on WSGI")
8991 (description
8992 "Paste provides a variety of web development tools and middleware which
8993can be nested together to build web applications. Paste's design closely
8994follows ideas flowing from WSGI (Web Standard Gateway Interface).")
8995 (license license:expat)
8996 (properties `((python2-variant . ,(delay python2-paste))))))
8997
8998(define-public python2-paste
8999 (let ((paste (package-with-python2
9000 (strip-python2-variant python-paste))))
9001 (package
9002 (inherit paste)
9003 (arguments
9004 ;; Tests are back for Python 2!
9005 `(#:tests? #t
9006 ,@(package-arguments paste))))))
9007
a8f20f63
CAW
9008(define-public python-pastescript
9009 (package
9010 (name "python-pastescript")
9011 (version "2.0.2")
9012 (source
9013 (origin
9014 (method url-fetch)
9015 (uri (pypi-uri "PasteScript" version))
9016 (sha256
9017 (base32
9018 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
9019 (build-system python-build-system)
9020 (native-inputs
9021 `(("python-nose" ,python-nose)))
9022 (propagated-inputs
9023 `(;; Uses pkg_resources provided by setuptools internally.
9024 ("python-setuptools" ,python-setuptools)
9025 ("python-paste" ,python-paste)
9026 ("python-pastedeploy" ,python-pastedeploy)))
9027 (home-page "http://pythonpaste.org/script/")
9028 (arguments
9029 '(;; Unfortunately, this requires the latest unittest2,
9030 ;; but that requires traceback2 which requires linecache2 which requires
9031 ;; unittest2. So we're skipping tests for now.
9032 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
9033 ;; so in theory we could get around this situation somehow.)
9034 #:tests? #f))
9035 (synopsis
9036 "Pluggable command line tool for serving web applications and more")
9037 (description
9038 "PasteScript is a plugin-friendly command line tool which provides a
9039variety of features, from launching web applications to bootstrapping project
9040layouts.")
9041 (license license:expat)))
9042
9043(define-public python2-pastescript
9044 (package-with-python2 python-pastescript))
9045
1cf53652
CAW
9046(define-public python-pyquery
9047 (package
9048 (name "python-pyquery")
aab76e80 9049 (version "1.2.13")
1cf53652
CAW
9050 (source
9051 (origin
9052 (method url-fetch)
9053 (uri (pypi-uri "pyquery" version))
9054 (sha256
9055 (base32
aab76e80 9056 "0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv"))))
1cf53652 9057 (build-system python-build-system)
2ddbfa8c
LF
9058 (native-inputs
9059 `(("python-webob" ,python-webob)
9060 ("python-webtest" ,python-webtest)))
1cf53652
CAW
9061 (propagated-inputs
9062 `(("python-lxml" ,python-lxml)
9063 ("python-cssselect" ,python-cssselect)))
9064 (home-page "https://github.com/gawel/pyquery")
9065 (synopsis "Make jQuery-like queries on xml documents")
9066 (description "pyquery allows you to make jQuery queries on xml documents.
9067The API is as much as possible the similar to jQuery. pyquery uses lxml for
9068fast xml and html manipulation.")
3f641af0 9069 (license license:bsd-3)
1cf53652
CAW
9070 (properties `((python2-variant . ,(delay python2-pyquery))))))
9071
9072(define-public python2-pyquery
9073 (let ((pyquery (package-with-python2
9074 (strip-python2-variant python-pyquery))))
9075 (package
9076 (inherit pyquery)
2ddbfa8c
LF
9077 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9078 ,@(package-native-inputs pyquery))))))
aa6313d6
CAW
9079
9080(define-public python-webtest
9081 (package
9082 (name "python-webtest")
9083 (version "2.0.20")
9084 (source
9085 (origin
9086 (method url-fetch)
9087 (uri (pypi-uri "WebTest" version))
9088 (sha256
9089 (base32
9090 "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
9091 (build-system python-build-system)
9092 (arguments
9093 `(;; Unfortunately we have to disable tests!
9094 ;; This release of WebTest is pinned to python-nose < 1.3,
9095 ;; but older versions of python-nose are plagued with the following
9096 ;; bug(s), which rears its ugly head during test execution:
9097 ;; https://github.com/nose-devs/nose/issues/759
9098 ;; https://github.com/nose-devs/nose/pull/811
9099 #:tests? #f))
9100 ;; Commented out code is no good, but in this case, once tests
9101 ;; are ready to be enabled again, we should put the following
9102 ;; in place:
9103 ;; (native-inputs
9104 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
9105 ;; ; but see above comment
9106 ;; ("python-coverage" ,python-coverage)
9107 ;; ("python-mock" ,python-mock)
9108 ;; ("python-pastedeploy" ,python-pastedeploy)
9109 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
9110 ;; ("python-pyquery" ,python-pyquery)))
9111 (propagated-inputs
9112 `(("python-waitress" ,python-waitress)
9113 ("python-webob" ,python-webob)
9114 ("python-six" ,python-six)
9115 ("python-beautifulsoup4" ,python-beautifulsoup4)))
9116 (home-page "http://webtest.pythonpaste.org/")
9117 (synopsis "Helper to test WSGI applications")
9118 (description "Webtest allows you to test your Python web applications
9119without starting an HTTP server. It supports anything that supports the
9120minimum of WSGI.")
9121 (license license:expat)
9122 (properties `((python2-variant . ,(delay python2-webtest))))))
9123
9124(define-public python2-webtest
9125 (let ((webtest (package-with-python2
9126 (strip-python2-variant python-webtest))))
9127 (package
9128 (inherit webtest)
9129 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9130 ,@(package-native-inputs webtest))))))
4cb122cd
CAW
9131
9132(define-public python-anyjson
9133 (package
9134 (name "python-anyjson")
9135 (version "0.3.3")
9136 (source
9137 (origin
9138 (method url-fetch)
9139 (uri (pypi-uri "anyjson" version))
9140 (sha256
9141 (base32
9142 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
9143 (build-system python-build-system)
9144 (arguments
9145 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
9146 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
9147 ;; whatever) so this transformation needs to be done before the tests
9148 ;; can be run. Maybe we could add a build step to transform beforehand
9149 ;; but it could be annoying/difficult.
9150 ;; We can enable tests for the Python 2 version, though, and do below.
9151 #:tests? #f))
9152 (home-page "http://bitbucket.org/runeh/anyjson/")
9153 (synopsis
9154 "Wraps best available JSON implementation in a common interface")
9155 (description
9156 "Anyjson loads whichever is the fastest JSON module installed
9157and provides a uniform API regardless of which JSON implementation is used.")
3f641af0 9158 (license license:bsd-3)
4cb122cd
CAW
9159 (properties `((python2-variant . ,(delay python2-anyjson))))))
9160
9161(define-public python2-anyjson
9162 (let ((anyjson (package-with-python2
9163 (strip-python2-variant python-anyjson))))
9164 (package
9165 (inherit anyjson)
9166 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
9167 #:tests? #t
9168 ,@(package-arguments anyjson)))
9169 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9170 ("python2-nose" ,python2-nose))))))
8dfceab7
CAW
9171
9172(define-public python-amqp
9173 (package
9174 (name "python-amqp")
9175 (version "1.4.9")
9176 (source
9177 (origin
9178 (method url-fetch)
9179 (uri (pypi-uri "amqp" version))
9180 (sha256
9181 (base32
9182 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
9183 (build-system python-build-system)
9184 (native-inputs
9185 `(("python-nose" ,python-nose)
9186 ("python-mock" ,python-mock)))
9187 (home-page "http://github.com/celery/py-amqp")
9188 (synopsis
9189 "Low-level AMQP client for Python (fork of amqplib)")
9190 (description
9191 "This is a fork of amqplib which was originally written by Barry Pederson.
9192It is maintained by the Celery project, and used by kombu as a pure python
9193alternative when librabbitmq is not available.")
3f641af0 9194 (license license:lgpl2.1+)
8dfceab7
CAW
9195 (properties `((python2-variant . ,(delay python2-amqp))))))
9196
9197(define-public python2-amqp
9198 (let ((amqp (package-with-python2
9199 (strip-python2-variant python-amqp))))
9200 (package
9201 (inherit amqp)
9202 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
9203 ;; unmaintained. Weirdly, does not do this on the python 3
9204 ;; version?
9205 #:tests? #f
9206 ,@(package-arguments amqp)))
9207 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9208 ,@(package-native-inputs amqp))))))
7d387305
CAW
9209
9210(define-public python-kombu
9211 (package
9212 (name "python-kombu")
0cb59822 9213 (version "3.0.37")
7d387305
CAW
9214 (source
9215 (origin
9216 (method url-fetch)
9217 (uri (pypi-uri "kombu" version))
9218 (sha256
9219 (base32
0cb59822 9220 "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70"))))
7d387305
CAW
9221 (build-system python-build-system)
9222 (native-inputs
9223 `(("python-mock" ,python-mock)
9224 ("python-nose" ,python-nose)))
9225 (propagated-inputs
9226 `(("python-anyjson" ,python-anyjson)
0cb59822
LF
9227 ("python-amqp" ,python-amqp)
9228 ("python-redis" ,python-redis)))
7d387305
CAW
9229 (home-page "http://kombu.readthedocs.org")
9230 (synopsis "Message passing library for Python")
9231 (description "The aim of Kombu is to make messaging in Python as easy as
9232possible by providing an idiomatic high-level interface for the AMQ protocol,
9233and also provide proven and tested solutions to common messaging problems.
9234AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
9235message orientation, queuing, routing, reliability and security, for which the
9236RabbitMQ messaging server is the most popular implementation.")
3f641af0 9237 (license license:bsd-3)
7d387305
CAW
9238 (properties `((python2-variant . ,(delay python2-kombu))))))
9239
9240(define-public python2-kombu
9241 (let ((kombu (package-with-python2
9242 (strip-python2-variant python-kombu))))
9243 (package
9244 (inherit kombu)
9245 (inputs `(("python2-setuptools" ,python2-setuptools)
9246 ("python2-unittest2" ,python2-unittest2)
9247 ,@(package-inputs kombu))))))
b6f0b9fb
CAW
9248
9249(define-public python-billiard
9250 (package
9251 (name "python-billiard")
a6bb9e44 9252 (version "3.3.0.23")
b6f0b9fb
CAW
9253 (source
9254 (origin
9255 (method url-fetch)
9256 (uri (pypi-uri "billiard" version))
9257 (sha256
9258 (base32
a6bb9e44 9259 "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9"))))
b6f0b9fb
CAW
9260 (build-system python-build-system)
9261 (native-inputs
9262 `(("python-nose" ,python-nose)))
9263 (home-page "http://github.com/celery/billiard")
9264 (synopsis
9265 "Python multiprocessing fork with improvements and bugfixes")
9266 (description
9267 "Billiard is a fork of the Python 2.7 multiprocessing package. The
9268multiprocessing package itself is a renamed and updated version of R Oudkerk's
9269pyprocessing package. This standalone variant is intended to be compatible with
9270Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
3f641af0 9271 (license license:bsd-3)
b6f0b9fb
CAW
9272 (properties `((python2-variant . ,(delay python2-billiard))))))
9273
9274(define-public python2-billiard
9275 (let ((billiard (package-with-python2
9276 (strip-python2-variant python-billiard))))
9277 (package
9278 (inherit billiard)
9279 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9280 ("python2-unittest2" ,python2-unittest2)
9281 ("python2-mock" ,python2-mock)
9282 ,@(package-native-inputs billiard))))))
22df6419
CAW
9283
9284(define-public python-celery
9285 (package
9286 (name "python-celery")
9ebe87fe 9287 (version "3.1.24")
22df6419
CAW
9288 (source
9289 (origin
9290 (method url-fetch)
9291 (uri (pypi-uri "celery" version))
9292 (sha256
9293 (base32
9ebe87fe 9294 "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r"))))
22df6419 9295 (build-system python-build-system)
9ebe87fe
LF
9296 (arguments
9297 `(#:phases
9298 (modify-phases %standard-phases
9299 ;; These tests break with Python 3.5:
9300 ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295
9301 (replace 'check
9302 (lambda _
9303 (zero?
9304 (system* "nosetests" "--exclude=^test_safe_to_remove.*")))))))
22df6419
CAW
9305 (native-inputs
9306 `(("python-nose" ,python-nose)))
a64cbb6f 9307 (inputs
22df6419 9308 `(("python-pytz" ,python-pytz)
a64cbb6f
EF
9309 ("python-amqp" ,python-amqp)
9310 ("python-anyjson" ,python-anyjson)
22df6419
CAW
9311 ("python-billiard" ,python-billiard)
9312 ("python-kombu" ,python-kombu)))
9313 (home-page "http://celeryproject.org")
9314 (synopsis "Distributed Task Queue")
9315 (description "Celery is an asynchronous task queue/job queue based on
9316distributed message passing. It is focused on real-time operation, but
9317supports scheduling as well. The execution units, called tasks, are executed
9318concurrently on a single or more worker servers using multiprocessing,
9319Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
9320synchronously (wait until ready).")
3f641af0 9321 (license license:bsd-3)
22df6419
CAW
9322 (properties `((python2-variant . ,(delay python2-celery))))))
9323
9324(define-public python2-celery
9325 (let ((celery (package-with-python2
9326 (strip-python2-variant python-celery))))
9327 (package
9328 (inherit celery)
9329 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9330 ("python2-unittest2" ,python2-unittest2)
9331 ("python2-mock" ,python2-mock)
9332 ,@(package-native-inputs celery))))))
97e32948
CAW
9333
9334(define-public python-translitcodec
9335 (package
9336 (name "python-translitcodec")
9337 (version "0.4.0")
9338 (source
9339 (origin
9340 (method url-fetch)
9341 (uri (pypi-uri "translitcodec" version))
9342 (sha256
9343 (base32
9344 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
9345 (build-system python-build-system)
9346 (arguments
9347 `(#:tests? #f)) ; no tests provided
9348 (home-page
9349 "https://github.com/claudep/translitcodec")
9350 (synopsis
9351 "Unicode to 8-bit charset transliteration codec")
9352 (description
9353 "This package contains codecs for transliterating ISO 10646 texts into
9354best-effort representations using smaller coded character sets (ASCII,
9355ISO 8859, etc.).")
9356 (license license:expat)
9357 (properties `((python2-variant . ,(delay python2-translitcodec))))))
9358
9359(define-public python2-translitcodec
9360 (package
9361 (inherit (package-with-python2
9362 (strip-python2-variant python-translitcodec)))
9363 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
0c3b90d4
CAW
9364
9365(define-public python-editor
9366 (package
9367 (name "python-editor")
9368 (version "0.5")
9369 (source
9370 (origin
9371 (method url-fetch)
9372 (uri (pypi-uri "python-editor" version))
9373 (sha256
9374 (base32
9375 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
9376 (build-system python-build-system)
9377 (home-page
9378 "https://github.com/fmoo/python-editor")
9379 (synopsis
9380 "Programmatically open an editor, capture the result")
9381 (description
9382 "python-editor is a library that provides the editor module for
9383programmatically interfacing with your system's $EDITOR.")
3f641af0 9384 (license license:asl2.0)
0c3b90d4
CAW
9385 (properties `((python2-variant . ,(delay python2-editor))))))
9386
9387(define-public python2-editor
9388 (package
9389 (inherit (package-with-python2
9390 (strip-python2-variant python-editor)))
9391 (inputs `(("python2-setuptools" ,python2-setuptools)))))
3276517c
LF
9392
9393(define-public python-sphinxcontrib-programoutput
9394 (package
9395 (name "python-sphinxcontrib-programoutput")
9396 (version "0.8")
9397 (source (origin
9398 (method url-fetch)
9399 (uri (pypi-uri "sphinxcontrib-programoutput" version))
9400 (sha256
9401 (base32
9402 "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
9403 (build-system python-build-system)
9404 (propagated-inputs
9405 `(("python-docutils" ,python-docutils)
9406 ("python-sphinx" ,python-sphinx)))
9407 (synopsis "Sphinx extension to include program output")
9408 (description "A Sphinx extension to literally insert the output of arbitrary
9409commands into documents, helping you to keep your command examples up to date.")
9410 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
3f641af0 9411 (license license:bsd-2)
3276517c
LF
9412 (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput))))))
9413
9414(define-public python2-sphinxcontrib-programoutput
9415 (package
9416 (inherit (package-with-python2
9417 (strip-python2-variant python-sphinxcontrib-programoutput)))
9418 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
548d7165
LF
9419
9420(define-public python-sphinx-repoze-autointerface
9421 (package
9422 (name "python-sphinx-repoze-autointerface")
328ae341 9423 (version "0.8")
548d7165
LF
9424 (source (origin
9425 (method url-fetch)
9426 (uri (pypi-uri "repoze.sphinx.autointerface" version))
9427 (sha256
9428 (base32
328ae341 9429 "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f"))))
548d7165
LF
9430 (build-system python-build-system)
9431 (propagated-inputs
9432 `(("python-docutils" ,python-docutils)
9433 ("python-sphinx" ,python-sphinx)
9434 ("python-zope-interface" ,python-zope-interface)))
9435 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
9436 (description "This package defines an extension for the Sphinx documentation
9437system. The extension allows generation of API documentation by
9438introspection of @code{zope.interface} instances in code.")
9439 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
3f641af0 9440 (license license:repoze)))
548d7165
LF
9441
9442(define-public python2-sphinx-repoze-autointerface
9443 (package-with-python2 python-sphinx-repoze-autointerface))
b31fbea5
DM
9444
9445(define-public python-psycopg2
9446 (package
9447 (name "python-psycopg2")
9448 (version "2.6.1")
9449 (source
9450 (origin
9451 (method url-fetch)
9452 (uri (pypi-uri "psycopg2" version))
9453 (sha256
9454 (base32
9455 "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
9456 (build-system python-build-system)
9457 (arguments
9458 ;; Tests would require a postgresql database "psycopg2_test"
9459 ;; and a running postgresql database management service.
9460 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
9461 (inputs
9462 `(("postgresql" ,postgresql))) ; libpq
9463 (home-page "http://initd.org/psycopg/")
9464 (synopsis "Python PostgreSQL adapter")
9465 (description
9466 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
3f641af0 9467 (license license:lgpl3+)
b31fbea5
DM
9468 (properties `((python2-variant . ,(delay python2-psycopg2))))))
9469
9470(define-public python2-psycopg2
9471 (package
9472 (inherit (package-with-python2
9473 (strip-python2-variant python-psycopg2)))
9474 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
eed1a61f
LF
9475
9476(define-public python-vobject
9477 (package
9478 (name "python-vobject")
9bed9b15 9479 (version "0.9.2")
eed1a61f
LF
9480 (source (origin
9481 (method url-fetch)
9482 (uri (pypi-uri "vobject" version))
9483 (sha256
9484 (base32
9bed9b15 9485 "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb"))))
eed1a61f 9486 (build-system python-build-system)
a9871b7b
LF
9487 (arguments
9488 '(;; The test suite relies on some non-portable Windows interfaces.
9489 #:tests? #f))
eed1a61f
LF
9490 (inputs
9491 `(("python-dateutil-2" ,python-dateutil-2)
9492 ("python-pyicu" ,python-pyicu)))
9493 (synopsis "Parse and generate vCard and vCalendar files")
9494 (description "Vobject is intended to be a full featured Python package for
9495parsing and generating vCard and vCalendar files. Currently, iCalendar files
9496are supported and well tested. vCard 3.0 files are supported, and all data
9497should be imported, but only a few components are understood in a sophisticated
9498way.")
9499 (home-page "http://eventable.github.io/vobject/")
3f641af0 9500 (license license:asl2.0)
eed1a61f
LF
9501 (properties `((python2-variant . ,(delay python2-vobject))))))
9502
9503(define-public python2-vobject
9504 (package
9505 (inherit (package-with-python2
9506 (strip-python2-variant python-vobject)))
9507 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
cedac813
LF
9508
9509(define-public python-munkres
9510 (package
9511 (name "python-munkres")
9512 (version "1.0.7")
9513 (source (origin
9514 (method url-fetch)
9515 (uri (pypi-uri "munkres" version))
9516 (sha256
9517 (base32
9518 "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"))))
9519 (build-system python-build-system)
9520 (arguments
9521 '(#:tests? #f)) ; no test suite
9522 (home-page "http://software.clapper.org/munkres/")
9523 (synopsis "Implementation of the Munkres algorithm")
9524 (description "The Munkres module provides an implementation of the Munkres
9525algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
9526useful for solving the Assignment Problem.")
3f641af0 9527 (license license:bsd-3)))
cedac813
LF
9528
9529(define-public python2-munkres
9530 (package-with-python2 python-munkres))
f3b3d78f
LF
9531
9532(define-public python-flask
9533 (package
9534 (name "python-flask")
9535 (version "0.10.1")
9536 (source (origin
9537 (method url-fetch)
9538 (uri (pypi-uri "Flask" version))
9539 (sha256
9540 (base32
9541 "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"))))
9542 (build-system python-build-system)
9543 (propagated-inputs
9544 `(("python-itsdangerous" ,python-itsdangerous)
9545 ("python-jinja2" ,python-jinja2)
9546 ("python-werkzeug" ,python-werkzeug)))
9547 (home-page "https://github.com/mitsuhiko/flask/")
9548 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
9549 (description "Flask is a micro web framework based on the Werkzeug toolkit
9550and Jinja2 template engine. It is called a micro framework because it does not
9551presume or force a developer to use a particular tool or library.")
3f641af0 9552 (license license:bsd-3)
f3b3d78f
LF
9553 (properties `((python2-variant . ,(delay python2-flask))))))
9554
9555(define-public python2-flask
9556 (package (inherit (package-with-python2
9557 (strip-python2-variant python-flask)))
9558 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
603d665b
LF
9559
9560(define-public python-cookies
9561 (package
9562 (name "python-cookies")
9563 (version "2.2.1")
9564 (source (origin
9565 (method url-fetch)
9566 (uri (pypi-uri "cookies" version))
9567 (sha256
9568 (base32
9569 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
9570 (build-system python-build-system)
9571 (arguments
9572 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
9573 #:tests? #f))
9574 (native-inputs
9575 `(("python-pytest" ,python2-pytest)))
9576 (synopsis "HTTP cookie parser and renderer")
9577 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
9578Python.")
9579 (home-page "https://gitlab.com/sashahart/cookies")
9580 (license license:expat)
9581 (properties `((python2-variant . ,(delay python2-cookies))))))
9582
9583(define-public python2-cookies
9584 (let ((cookies (package-with-python2
9585 (strip-python2-variant python-cookies))))
9586 (package (inherit cookies)
9587 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9588 ,@(package-native-inputs cookies))))))
0efde7d6
LF
9589
9590(define-public python-responses
9591 (package
9592 (name "python-responses")
9593 (version "0.5.1")
9594 (source (origin
9595 (method url-fetch)
9596 (uri (pypi-uri "responses" version))
9597 (sha256
9598 (base32
9599 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
9600 (build-system python-build-system)
9601 (arguments
9602 `(;; Test suite is not distributed:
9603 ;; https://github.com/getsentry/responses/issues/38
9604 #:tests? #f))
9605 (native-inputs
9606 `(("python-cookies" ,python-cookies)
9607 ("python-mock" ,python-mock)))
9608 (propagated-inputs
9609 `(("python-requests" ,python-requests)
9610 ("python-six" ,python-six)))
9611 (home-page "https://github.com/getsentry/responses")
9612 (synopsis "Utility for mocking out the `requests` Python library")
9613 (description "A utility library for mocking out the `requests` Python
9614library.")
3f641af0 9615 (license license:asl2.0)
0efde7d6
LF
9616 (properties `((python2-variant . ,(delay python2-responses))))))
9617
9618(define-public python2-responses
9619 (let ((responses (package-with-python2
9620 (strip-python2-variant python-responses))))
9621 (package (inherit responses)
9622 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9623 ,@(package-native-inputs responses))))))
76b94885 9624
b7afd018
RW
9625(define-public python-whoosh
9626 (package
9627 (name "python-whoosh")
9628 (version "2.7.4")
9629 (source
9630 (origin
9631 (method url-fetch)
9632 (uri (pypi-uri "Whoosh" version))
9633 (sha256
9634 (base32
9635 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
9636 (build-system python-build-system)
9637 (native-inputs
9638 `(("python-setuptools" ,python-setuptools)
9639 ("python-pytest" ,python-pytest)))
9640 (home-page "http://bitbucket.org/mchaput/whoosh")
9641 (synopsis "Full text indexing, search, and spell checking library")
9642 (description
9643 "Whoosh is a fast, pure-Python full text indexing, search, and spell
9644checking library.")
9645 (license license:bsd-2)))
9646
9647(define-public python2-whoosh
9648 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
9649 (package (inherit whoosh)
9650 (propagated-inputs
9651 `(("python2-backport-ssl-match-hostname"
9652 ,python2-backport-ssl-match-hostname)
9653 ,@(package-propagated-inputs whoosh))))))
9654
76b94885
LF
9655(define-public python-pathlib
9656 (package
9657 (name "python-pathlib")
9658 (version "1.0.1")
9659 (source (origin
9660 (method url-fetch)
9661 (uri (pypi-uri "pathlib" version))
9662 (sha256
9663 (base32
9664 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
9665 (build-system python-build-system)
92a312dc
RW
9666 ;; The tests depend on the internal "test" module, which does not provide
9667 ;; a stable interface.
9668 (arguments `(#:tests? #f))
76b94885 9669 (home-page "https://pathlib.readthedocs.org/")
8f65585b
JD
9670 (synopsis "Object-oriented file system paths")
9671 (description "Pathlib offers a set of classes to handle file system paths.
76b94885
LF
9672It offers the following advantages over using string objects:
9673
9674@enumerate
9675@item No more cumbersome use of os and os.path functions. Everything can
9676be done easily through operators, attribute accesses, and method calls.
9677@item Embodies the semantics of different path types. For example,
9678comparing Windows paths ignores casing.
9679@item Well-defined semantics, eliminating any inconsistencies or
9680ambiguities (forward vs. backward slashes, etc.).
7a8894e8
HG
9681@end enumerate
9682
9683Note: In Python 3.4, pathlib is now part of the standard library. For other
9684Python versions please consider python-pathlib2 instead, which tracks the
9685standard library module. This module (python-pathlib) isn't maintained
9686anymore.")
76b94885
LF
9687 (license license:expat)))
9688
9689(define-public python2-pathlib
9690 (package-with-python2 python-pathlib))
25a7db0a 9691
b7703c81
HG
9692(define-public python2-pathlib2
9693 (package
9694 (name "python2-pathlib2")
9695 (version "2.1.0")
9696 (source (origin
9697 (method url-fetch)
9698 (uri (pypi-uri "pathlib2" version))
9699 (sha256
9700 (base32
9701 "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy"))))
9702 (build-system python-build-system)
49a531f5
HG
9703 ;; We only need the the Python 2 variant, since for Python 3 our minimum
9704 ;; version is 3.4 which already includes this package as part of the
9705 ;; standard library.
b7703c81
HG
9706 (arguments
9707 `(#:python ,python-2))
9708 (native-inputs
9709 `(("python2-setuptools" ,python2-setuptools)
9710 ("python2-six" ,python2-six)))
9711 (home-page "http://pypi.python.org/pypi/pathlib2/")
9712 (synopsis "Object-oriented file system paths - backport of standard
9713pathlib module")
9714 (description "The goal of pathlib2 is to provide a backport of standard
9715pathlib module which tracks the standard library module, so all the newest
9716features of the standard pathlib can be used also on older Python versions.
9717
9718Pathlib offers a set of classes to handle file system paths. It offers the
9719following advantages over using string objects:
9720
9721@enumerate
9722@item No more cumbersome use of os and os.path functions. Everything can
9723be done easily through operators, attribute accesses, and method calls.
9724@item Embodies the semantics of different path types. For example,
9725comparing Windows paths ignores casing.
9726@item Well-defined semantics, eliminating any inconsistencies or
9727ambiguities (forward vs. backward slashes, etc.).
9728@end enumerate")
9729 (license license:expat)))
9730
25a7db0a
LF
9731(define-public python-jellyfish
9732 (package
9733 (name "python-jellyfish")
9734 (version "0.5.3")
9735 (source (origin
9736 (method url-fetch)
9737 (uri (pypi-uri "jellyfish" version))
9738 (sha256
9739 (base32
9740 "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
9741 (build-system python-build-system)
9742 (native-inputs
9743 `(("python-pytest" ,python-pytest)))
9744 (home-page "https://github.com/jamesturk/jellyfish")
9745 (synopsis "Approximate and phonetic matching of strings")
9746 (description "Jellyfish uses a variety of string comparison and phonetic
9747encoding algorithms to do fuzzy string matching.")
3f641af0 9748 (license license:bsd-2)
25a7db0a
LF
9749 (properties `((python2-variant . ,(delay python2-jellyfish))))))
9750
9751(define-public python2-jellyfish
9752 (let ((jellyfish (package-with-python2
9753 (strip-python2-variant python-jellyfish))))
9754 (package (inherit jellyfish)
9755 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9756 ("python2-unicodecsv" ,python2-unicodecsv)
9757 ,@(package-native-inputs jellyfish))))))
13edb0e5
LF
9758
9759(define-public python2-unicodecsv
9760 (package
9761 (name "python2-unicodecsv")
9762 (version "0.14.1")
9763 (source (origin
9764 (method url-fetch)
9765 ;; The test suite is not included in the PyPi release.
9766 ;; https://github.com/jdunck/python-unicodecsv/issues/19
9767 (uri (string-append "https://github.com/jdunck/python-unicodecsv/"
9768 "archive/" version ".tar.gz"))
9769 (file-name (string-append name "-" version ".tar.gz"))
9770 (sha256
9771 (base32
9772 "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
9773 (build-system python-build-system)
9774 (arguments
9775 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
9776 #:python ,python-2))
9777 (native-inputs
9778 `(("python2-setuptools" ,python2-setuptools)
9779 ("python2-unittest2" ,python2-unittest2)))
9780 (home-page "https://github.com/jdunck/python-unicodecsv")
9781 (synopsis "Unicode CSV module for Python 2")
9782 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
9783module, adding support for Unicode strings.")
3f641af0 9784 (license license:bsd-2)))
064503aa
LF
9785
9786(define-public python-rarfile
9787 (package
9788 (name "python-rarfile")
9789 (version "2.7")
9790 (source (origin
9791 (method url-fetch)
9792 (uri (pypi-uri "rarfile" version))
9793 (sha256
9794 (base32
9795 "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
9796 ;; https://github.com/markokr/rarfile/pull/17/
fc1adab1 9797 (patches (search-patches "python-rarfile-fix-tests.patch"))))
064503aa
LF
9798 (build-system python-build-system)
9799 (arguments
9800 '(#:phases
9801 (modify-phases %standard-phases
9802 (replace 'check
9803 ;; Many tests fail, but the installation proceeds.
9804 (lambda _ (zero? (system* "make" "-C" "test" "test")))))))
9805 (native-inputs
9806 `(("which" ,which))) ; required for tests
9807 (propagated-inputs
9808 `(("libarchive" ,libarchive)))
9809 (home-page "https://github.com/markokr/rarfile")
9810 (synopsis "RAR archive reader for Python")
9811 (description "This is Python module for RAR archive reading. The interface
9812is made as zipfile like as possible.")
3f641af0 9813 (license license:isc)))
064503aa
LF
9814
9815(define-public python2-rarfile
9816 (package-with-python2 python-rarfile))
daeeea71
CM
9817
9818(define-public python-magic
9819 (package
9820 (name "python-magic")
9821 (version "0.4.3")
9822 (source
9823 (origin
9824 (method url-fetch)
9825 (uri (string-append "https://github.com/ahupp/python-magic/archive/"
9826 version ".tar.gz"))
9827 (sha256
9828 (base32
9829 "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
9830 (file-name (string-append name "-" version "-checkout"))))
9831 (build-system python-build-system)
9832 (arguments
9833 ;; The tests are unreliable, so don't run them. The tests fail
9834 ;; under Python3 because they were written for Python2 and
9835 ;; contain import statements that do not work in Python3. One of
9836 ;; the tests fails under Python2 because its assertions are
9837 ;; overly stringent; it relies on comparing output strings which
9838 ;; are brittle and can change depending on the version of
9839 ;; libmagic being used and the system on which the test is
9840 ;; running. In my case, under GuixSD 0.10.0, only one test
9841 ;; failed, and it seems to have failed only because the version
9842 ;; of libmagic that is packaged in Guix outputs a slightly
9843 ;; different (but not wrong) string than the one that the test
9844 ;; expected.
9845 '(#:tests? #f
9846 #:phases (modify-phases %standard-phases
9847 ;; Replace a specific method call with a hard-coded
9848 ;; path to the necessary libmagic.so file in the
9849 ;; store. If we don't do this, then the method call
9850 ;; will fail to find the libmagic.so file, which in
9851 ;; turn will cause any application using
9852 ;; python-magic to fail.
9853 (add-before 'build 'hard-code-path-to-libmagic
9854 (lambda* (#:key inputs #:allow-other-keys)
9855 (let ((file (assoc-ref inputs "file")))
9856 (substitute* "magic.py"
9857 (("ctypes.util.find_library\\('magic'\\)")
9858 (string-append "'" file "/lib/libmagic.so'")))
77432686
LF
9859 #t)))
9860 (add-before 'install 'disable-egg-compression
9861 (lambda _
9862 (let ((port (open-file "setup.cfg" "a")))
9863 (display "\n[easy_install]\nzip_ok = 0\n"
9864 port)
9865 (close-port port)
9866 #t))))))
daeeea71
CM
9867 (native-inputs
9868 `(("python-setuptools" ,python-setuptools)))
9869 (inputs
9870 ;; python-magic needs to be able to find libmagic.so.
9871 `(("file" ,file)))
9872 (home-page "https://github.com/ahupp/python-magic")
9873 (synopsis "File type identification using libmagic")
9874 (description
9875 "This module uses ctypes to access the libmagic file type
9876identification library. It makes use of the local magic database and
9877supports both textual and MIME-type output. Note that this module and
9878the python-file module both provide a \"magic.py\" file; these two
9879modules, which are different and were developed separately, both serve
9880the same purpose: to provide Python bindings for libmagic.")
9881 (license license:expat)))
9882
9883(define-public python2-magic
9884 (package-with-python2 python-magic))
12af303f
CM
9885
9886(define-public python2-s3cmd
9887 (package
9888 (name "python2-s3cmd")
9889 (version "1.6.1")
9890 (source
9891 (origin
9892 (method url-fetch)
de67e922 9893 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
12af303f
CM
9894 "s3cmd-" version ".tar.gz"))
9895 (sha256
9896 (base32
9897 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
9898 (build-system python-build-system)
9899 (arguments
9900 ;; s3cmd is written for python2 only and contains no tests.
9901 `(#:python ,python-2
9902 #:tests? #f))
9903 (native-inputs
9904 `(("python2-setuptools" ,python2-setuptools)))
9905 (inputs
9906 `(("python2-dateutil" ,python2-dateutil)
9907 ;; The python-file package also provides a magic.py module.
9908 ;; This is an unfortunate state of affairs; however, s3cmd
9909 ;; fails to install if it cannot find specifically the
9910 ;; python-magic package. Thus we include it, instead of using
9911 ;; python-file. Ironically, s3cmd sometimes works better
9912 ;; without libmagic bindings at all:
9913 ;; https://github.com/s3tools/s3cmd/issues/198
9914 ("python2-magic" ,python2-magic)))
9915 (home-page "http://s3tools.org/s3cmd")
9916 (synopsis "Command line tool for S3-compatible storage services")
9917 (description
9918 "S3cmd is a command line tool for uploading, retrieving and managing data
9919in storage services that are compatible with the Amazon Simple Storage
9920Service (S3) protocol, including S3 itself. It supports rsync-like backup,
9921GnuPG encryption, and more. It also supports management of Amazon's
9922CloudFront content delivery network.")
3f641af0 9923 (license license:gpl2+)))
4323a5f0
AE
9924
9925(define-public python-pkgconfig
9926 (package
9927 (name "python-pkgconfig")
9928 (version "1.1.0")
9929 (source
9930 (origin
9931 (method url-fetch)
9932 (uri (pypi-uri "pkgconfig" version))
9933 (sha256
9934 (base32
9935 "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh"))))
9936 (build-system python-build-system)
9937 (native-inputs
9938 `(("python-nose" ,python-nose)
9939 ("python-setuptools" ,python-setuptools)))
9940 (inputs
9941 `(("pkg-config" ,pkg-config)))
9942 (arguments
9943 `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
9944 ;; and on Python 2 they need the dl module deprecated since Python 2.6.
9945 #:tests? #f
9946 ;; Prevent creation of the egg. This works around
9947 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
9948 #:configure-flags '("--single-version-externally-managed" "--root=/")
9949 ;; Hard-code the path to pkg-config.
9950 #:phases
9951 (modify-phases %standard-phases
9952 (add-before
9953 'build 'patch
9954 (lambda _
9955 (substitute* "pkgconfig/pkgconfig.py"
9956 (("cmd = 'pkg-config")
9957 (string-append "cmd = '" (which "pkg-config"))))
9958 #t)))))
9959 (home-page "http://github.com/matze/pkgconfig")
9960 (synopsis "Python interface for pkg-config")
9961 (description "This module provides a Python interface to pkg-config. It
9962can be used to find all pkg-config packages, check if a package exists,
9963check if a package meets certain version requirements, query CFLAGS and
9964LDFLAGS and parse the output to build extensions with setup.py.")
a0c6a36b 9965 (license license:expat)))
4323a5f0
AE
9966
9967(define-public python2-pkgconfig
9968 (package-with-python2 python-pkgconfig))
9969
2e697322
BW
9970(define-public python-bz2file
9971 (package
9972 (name "python-bz2file")
9973 (version "0.98")
9974 (source
9975 (origin
9976 (method url-fetch)
9977 (uri (pypi-uri "bz2file" version))
9978 (sha256
9979 (base32
9980 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
9981 (build-system python-build-system)
9982 (arguments
124df723 9983 `(#:tests? #f)) ; Tests use deprecated python modules.
2e697322
BW
9984 (home-page "https://github.com/nvawda/bz2file")
9985 (synopsis "Read and write bzip2-compressed files")
9986 (description
9987 "Bz2file is a Python library for reading and writing bzip2-compressed
9988files. It contains a drop-in replacement for the I/O interface in the
9989standard library's @code{bz2} module, including features from the latest
9990development version of CPython that are not available in older releases.")
3f641af0 9991 (license license:asl2.0)
2e697322
BW
9992 (properties `((python2-variant . ,(delay python2-bz2file))))))
9993
9994(define-public python2-bz2file
9995 (let ((base (package-with-python2
9996 (strip-python2-variant python-bz2file))))
9997 (package
9998 (inherit base)
9999 (native-inputs
124df723
BW
10000 `(("python2-setuptools" ,python2-setuptools)))
10001 (arguments
752bb447
BW
10002 `(#:python ,python-2
10003 #:phases
124df723
BW
10004 (modify-phases %standard-phases
10005 ;; 'python setup.py test' does not work as of 0.98.
10006 ;; There is only the one test file, so we run it directly.
10007 (replace 'check
10008 (lambda _ (zero? (system* "python"
10009 "test_bz2file.py"))))))))))
2e697322 10010
da4ac1aa
BW
10011(define-public python-future
10012 (package
10013 (name "python-future")
10014 (version "0.15.2")
10015 (source
10016 (origin
10017 (method url-fetch)
10018 (uri (pypi-uri "future" version))
10019 (sha256
10020 (base32
10021 "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx"))))
10022 (build-system python-build-system)
10023 ;; Many tests connect to the network or are otherwise flawed.
10024 ;; https://github.com/PythonCharmers/python-future/issues/210
10025 (arguments
10026 `(#:tests? #f))
10027 (home-page "http://python-future.org")
10028 (synopsis "Single-source support for Python 3 and 2")
10029 (description
10030 "@code{python-future} is the missing compatibility layer between Python 2 and
10031Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
10032to support both Python 2 and Python 3 with minimal overhead.")
10033 (license license:expat)
10034 (properties `((python2-variant . ,(delay python2-future))))))
10035
10036(define-public python2-future
10037 (let ((base (package-with-python2
10038 (strip-python2-variant python-future))))
10039 (package
10040 (inherit base)
10041 (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
10042
8e451885
AE
10043(define-public python-cysignals
10044 (package
10045 (name "python-cysignals")
10046 (version "1.1.0")
10047 (source
10048 (origin
10049 (method url-fetch)
10050 (uri (pypi-uri "cysignals" version ".tar.bz2"))
10051 (sha256
10052 (base32
10053 "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6"))))
10054 (build-system python-build-system)
10055 (native-inputs
10056 `(("python-cython" ,python-cython)
10057 ("python-setuptools" ,python-setuptools)
10058 ("python-sphinx" ,python-sphinx)))
10059 (inputs
10060 `(("pari-gp" ,pari-gp)))
10061 (arguments
10062 `(#:modules ((guix build python-build-system)
10063 ((guix build gnu-build-system) #:prefix gnu:)
10064 (guix build utils))
10065 ;; FIXME: Tests are executed after installation and currently fail
10066 ;; when not installing into standard locations; the author is working
10067 ;; on a fix.
10068 #:tests? #f
10069 #:phases
10070 (modify-phases %standard-phases
10071 (add-before
10072 'build 'configure
10073 (assoc-ref gnu:%standard-phases 'configure)))))
10074 (home-page
10075 "https://github.com/sagemath/cysignals")
10076 (synopsis
10077 "Handling of interrupts and signals for Cython")
10078 (description
10079 "The cysignals package provides mechanisms to handle interrupts (and
10080other signals and errors) in Cython code, using two related approaches,
10081for mixed Cython/Python code or external C libraries and pure Cython code,
10082respectively.")
3f641af0 10083 (license license:lgpl3+)))
8e451885
AE
10084
10085(define-public python2-cysignals
10086 (package-with-python2 python-cysignals))
10087
63bcec71
DM
10088(define-public python2-shedskin
10089 (package
10090 (name "python2-shedskin")
10091 (version "0.9.4")
10092 (source
10093 (origin
10094 (method url-fetch)
10095 (uri (string-append "https://github.com/shedskin/shedskin/"
10096 "releases/download/v" version
10097 "/shedskin-" version ".tgz"))
10098 (sha256
10099 (base32
10100 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
10101 (build-system python-build-system)
10102 (arguments
10103 `(#:python ,python-2
10104 #:phases (modify-phases %standard-phases
10105 (add-after 'unpack 'fix-resulting-include-libs
10106 (lambda* (#:key inputs #:allow-other-keys)
10107 (let ((libgc (assoc-ref inputs "libgc"))
10108 (pcre (assoc-ref inputs "pcre")))
10109 (substitute* "shedskin/makefile.py"
10110 (("variable == 'CCFLAGS':[ ]*")
10111 (string-append "variable == 'CCFLAGS':\n"
10112 " line += ' -I " pcre "/include"
10113 " -I " libgc "/include'"))
10114 (("variable == 'LFLAGS':[ ]*")
10115 (string-append "variable == 'LFLAGS':\n"
10116 " line += ' -L" pcre "/lib"
10117 " -L " libgc "/lib'")))
10118 #t))))))
10119 (native-inputs `(("python2-setuptools" ,python2-setuptools)))
10120 (inputs `(("pcre" ,pcre)
10121 ("libgc" ,libgc)))
10122 (home-page "https://shedskin.github.io/")
10123 (synopsis "Experimental Python-2 to C++ Compiler")
10124 (description (string-append "This is an experimental compiler for a subset of
10125Python. It generates C++ code and a Makefile."))
3f641af0 10126 (license (list license:gpl3 license:bsd-3 license:expat))))
88bb4197
LG
10127
10128(define-public python2-rope
10129 (package
10130 (name "python2-rope")
10131 (version "0.10.3")
10132 (source
10133 (origin
10134 (method url-fetch)
10135 (uri (pypi-uri "rope" version))
10136 (sha256
10137 (base32
10138 "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb"))))
10139 (arguments
10140 ;; Rope is currently python-2 only.
10141 ;; https://github.com/python-rope/rope/issues/57
10142 `(#:python ,python-2))
10143 (build-system python-build-system)
10144 (native-inputs
10145 `(("python2-unittest2" ,python2-unittest2)
10146 ("python2-setuptools" ,python2-setuptools)))
10147 (home-page "https://github.com/python-rope/rope")
10148 (synopsis "Refactoring library for Python")
10149 (description "Rope is a refactoring library for Python. It facilitates
10150the renaming, moving and extracting of attributes, functions, modules, fields
10151and parameters in Python 2 source code. These refactorings can also be applied
10152to occurences in strings and comments.")
3f641af0 10153 (license license:gpl2)))
6ba8ca17
10154
10155(define-public python-py3status
10156 (package
10157 (name "python-py3status")
d2262d70 10158 (version "3.1")
6ba8ca17
10159 (source
10160 (origin
10161 (method url-fetch)
10162 (uri (pypi-uri "py3status" version))
10163 (sha256
10164 (base32
d2262d70 10165 "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds"))))
6ba8ca17
10166 (build-system python-build-system)
10167 (native-inputs
10168 `(("python-setuptools" ,python-setuptools)))
10169 (home-page "https://github.com/ultrabug/py3status")
10170 (synopsis "Extensible i3status wrapper written in Python")
10171 (description "py3status is an i3status wrapper which extends i3status
10172functionality in a modular way, allowing you to extend your panel with your
10173own code, responding to click events and updating clock every second.")
3f641af0 10174 (license license:bsd-3)))
b8fdbca3
HG
10175
10176(define-public python-tblib
10177 (package
10178 (name "python-tblib")
10179 (version "1.3.0")
10180 (source (origin
10181 (method url-fetch)
10182 (uri (pypi-uri "tblib" version))
10183 (sha256 (base32
10184 "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi"))))
10185 (build-system python-build-system)
10186 (arguments
10187 `(#:phases
10188 (modify-phases %standard-phases
10189 (replace 'check
10190 (lambda _
10191 ;; Upstream runs tests after installation and the package itself
10192 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
10193 ;; found.
10194 (setenv "PYTHONPATH"
10195 (string-append (getcwd) "/build/lib:"
10196 (getenv "PYTHONPATH")))
10197 (zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
10198 (native-inputs
10199 `(("python-pytest" ,python-pytest)
10200 ("python-setuptools" ,python-setuptools)
10201 ("python-six" ,python-six)))
10202 (home-page "https://github.com/ionelmc/python-tblib")
10203 (synopsis "Traceback serialization library")
10204 (description
10205 "Traceback serialization allows you to:
10206
10207@enumerate
10208@item Pickle tracebacks and raise exceptions with pickled tracebacks in
10209different processes. This allows better error handling when running code over
10210multiple processes (imagine multiprocessing, billiard, futures, celery etc).
10211
10212@item Parse traceback strings and raise with the parsed tracebacks.
10213@end itemize")
3f641af0 10214 (license license:bsd-3)))
b8fdbca3
HG
10215
10216(define-public python2-tblib
10217 (package-with-python2 python-tblib))
1a024de4
HG
10218
10219(define-public python-sqlparse
10220 (package
10221 (name "python-sqlparse")
10222 (version "0.1.19")
10223 (source (origin
10224 (method url-fetch)
10225 (uri (pypi-uri "sqlparse" version))
10226 (sha256
10227 (base32
10228 "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"))))
10229 (build-system python-build-system)
10230 (arguments
10231 `(#:phases
10232 (modify-phases %standard-phases
10233 (replace 'check
10234 (lambda* _
10235 ;; setup.py-integrated 2to3 only affects the build files, but
10236 ;; py.test is using the source files. So we need to convert them
10237 ;; manually.
10238 (when (zero? (system* "python3"))
10239 (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests"))
10240 (zero? (system* "py.test")))))))
10241 (native-inputs
10242 `(("python-pytest" ,python-pytest)
10243 ("python-setuptools" ,python-setuptools)))
10244 (home-page "https://github.com/andialbrecht/sqlparse")
10245 (synopsis "Non-validating SQL parser")
10246 (description "Sqlparse is a non-validating SQL parser for Python. It
10247provides support for parsing, splitting and formatting SQL statements.")
3f641af0 10248 (license license:bsd-3)))
1a024de4
HG
10249
10250(define-public python2-sqlparse
10251 (package-with-python2 python-sqlparse))
68b9d242
SB
10252
10253(define-public python-greenlet
10254 (package
10255 (name "python-greenlet")
10256 (version "0.4.9")
10257 (source (origin
10258 (method url-fetch)
10259 (uri (pypi-uri "greenlet" version))
10260 (sha256
10261 (base32
10262 "04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr"))))
10263 (build-system python-build-system)
10264 (native-inputs
10265 `(("python-setuptools" ,python-setuptools)))
10266 (home-page "https://greenlet.readthedocs.io/")
10267 (synopsis "Lightweight in-process concurrent programming")
10268 (description
10269 "Greenlet package is a spin-off of Stackless, a version of CPython
10270that supports micro-threads called \"tasklets\". Tasklets run
10271pseudo-concurrently (typically in a single or a few OS-level threads) and
10272are synchronized with data exchanges on \"channels\".")
3f641af0 10273 (license (list license:psfl license:expat))))
68b9d242
SB
10274
10275(define-public python2-greenlet
10276 (package-with-python2 python-greenlet))
d79a343b
SB
10277
10278(define-public python-gevent
10279 (package
10280 (name "python-gevent")
10281 (version "1.1.1")
10282 (source (origin
10283 (method url-fetch)
10284 (uri (pypi-uri "gevent" version))
10285 (sha256
10286 (base32
10287 "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf"))
10288 (modules '((guix build utils)))
10289 (snippet
10290 '(begin
10291 ;; unbunding libev and c-ares
10292 (for-each delete-file-recursively '("libev" "c-ares"))
10293 ;; fixing testsuite
10294 (call-with-output-file "greentest/__init__.py" noop)
10295 (substitute* "greentest/testrunner.py"
10296 (("import util") "from . import util")
10297 (("from util import log") "from .util import log"))))))
10298 (build-system python-build-system)
10299 (propagated-inputs
10300 `(("python-greenlet" ,python-greenlet)))
10301 (native-inputs
10302 `(("python-setuptools" ,python-setuptools)
10303 ("python-six" ,python-six)))
10304 (inputs
10305 `(("c-ares" ,c-ares)
10306 ("libev" ,libev)))
10307 (home-page "http://www.gevent.org/")
10308 (synopsis "Coroutine-based network library")
10309 (description
10310 "gevent is a coroutine-based Python networking library that uses greenlet
10311to provide a high-level synchronous API on top of the libev event loop.")
10312 (license license:expat)))
10313
10314(define-public python2-gevent
10315 (package-with-python2 python-gevent))
da3aeeb6
SB
10316
10317(define-public python-twisted
10318 (package
10319 (name "python-twisted")
10320 (version "16.2.0")
10321 (source (origin
10322 (method url-fetch)
8ea8e8d3 10323 (uri (pypi-uri "Twisted" version ".tar.bz2"))
da3aeeb6
SB
10324 (sha256
10325 (base32
10326 "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450"))))
10327 (build-system python-build-system)
10328 (native-inputs
45912170
SB
10329 `(("python-setuptools" ,python-setuptools)))
10330 (propagated-inputs
10331 `(("python-zope-interface" ,python-zope-interface)))
da3aeeb6
SB
10332 (home-page "https://twistedmatrix.com/")
10333 (synopsis "Asynchronous networking framework written in Python")
10334 (description
10335 "Twisted is an extensible framework for Python programming, with special
10336focus on event-based network programming and multiprotocol integration.")
10337 (license license:expat)))
10338
10339(define-public python2-twisted
10340 (package-with-python2 python-twisted))
d0b6fed6 10341
4d3fa5a4
EF
10342(define-public python-pika
10343 (package
10344 (name "python-pika")
10345 (version "0.10.0")
10346 (source
10347 (origin
10348 (method url-fetch)
10349 (uri (pypi-uri "pika" version))
10350 (sha256
10351 (base32
10352 "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj"))))
10353 (build-system python-build-system)
10354 (native-inputs
269d9172
LF
10355 `(("python-pyev" ,python-pyev)
10356 ("python-tornado" ,python-tornado)
10357 ("python-twisted" ,python-twisted)))
4d3fa5a4
EF
10358 (home-page "https://pika.readthedocs.org")
10359 (synopsis "Pure Python AMQP Client Library")
10360 (description
10361 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
10362Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
10363network support library.")
10364 (license license:bsd-3)))
10365
10366(define-public python2-pika
10367 (package-with-python2 python-pika))
10368
d0b6fed6
DM
10369(define-public python-ply
10370 (package
10371 (name "python-ply")
10372 (version "3.8")
10373 (source
10374 (origin
10375 (method url-fetch)
10376 (uri (string-append
10377 "https://pypi.python.org/packages/"
10378 "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5"
10379 "/ply-" version ".tar.gz"))
10380 (sha256
10381 (base32
10382 "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7"))))
10383 (build-system python-build-system)
10384 (home-page "http://www.dabeaz.com/ply/")
10385 (synopsis "Python Lex & Yacc")
10386 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
10387It uses LR parsing and does extensive error checking.")
3f641af0 10388 (license license:bsd-3)
d0b6fed6
DM
10389 (properties `((python2-variant . ,(delay python2-ply))))))
10390
10391(define-public python2-ply
10392 (package
10393 (inherit (package-with-python2
10394 (strip-python2-variant python-ply)))
10395 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
d951bd54
SB
10396
10397(define-public python-tabulate
10398 (package
10399 (name "python-tabulate")
10400 (version "0.7.5")
10401 (source (origin
10402 (method url-fetch)
10403 (uri (pypi-uri "tabulate" version))
10404 (sha256
10405 (base32
10406 "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch"))
10407 ;; Fix tests
10408 (modules '((guix build utils)))
10409 (snippet '(substitute* '("test/test_cli.py"
10410 "test/test_input.py"
10411 "test/test_output.py"
10412 "test/test_regression.py")
10413 (("from common") "from nose.tools")))))
10414 (build-system python-build-system)
10415 (native-inputs
10416 `(("python-setuptools" ,python-setuptools)
10417 ;; For testing
10418 ("python-nose" ,python-nose)))
10419 (home-page "https://bitbucket.org/astanin/python-tabulate")
10420 (synopsis "Pretty-print tabular data")
10421 (description
10422 "Tabulate is a library and command-line utility to pretty-print tabular
10423data in Python.")
10424 (license license:expat)))
10425
10426(define-public python2-tabulate
10427 (package-with-python2 python-tabulate))
1c4c8a33
SB
10428
10429(define-public python-kazoo
10430 (package
10431 (name "python-kazoo")
10432 (version "2.2.1")
10433 (source
10434 (origin
10435 (method url-fetch)
10436 (uri (pypi-uri "kazoo" version))
10437 (sha256
10438 (base32
10439 "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj"))))
10440 (build-system python-build-system)
10441 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
10442 (native-inputs
c18899e8
SB
10443 `(("python-setuptools" ,python-setuptools)))
10444 (propagated-inputs
10445 `(("python-six" ,python-six)))
1c4c8a33
SB
10446 (home-page "https://kazoo.readthedocs.org")
10447 (synopsis "High-level Zookeeper client library")
10448 (description
10449 "Kazoo is a Python client library for the Apache Zookeeper distributed
10450application service. It is designed to be easy to use and to avoid common
10451programming errors.")
3f641af0 10452 (license license:asl2.0)))
1c4c8a33
SB
10453
10454(define-public python2-kazoo
10455 (package-with-python2 python-kazoo))
45dda35e
SB
10456
10457(define-public python-pykafka
10458 (package
10459 (name "python-pykafka")
10460 (version "2.4.0")
10461 (source (origin
10462 (method url-fetch)
c6bccf71
EF
10463 (uri (string-append
10464 "https://pypi.python.org/packages/8b/3e/"
10465 "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/"
10466 "pykafka-" version ".tar.gz"))
45dda35e
SB
10467 (sha256
10468 (base32
10469 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
10470 (build-system python-build-system)
10471 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
10472 (native-inputs
c8fa3d9b
SB
10473 `(("python-setuptools" ,python-setuptools)))
10474 (propagated-inputs
45dda35e
SB
10475 `(("python-gevent" ,python-gevent)
10476 ("python-kazoo" ,python-kazoo)
45dda35e
SB
10477 ("python-tabulate" ,python-tabulate)))
10478 (inputs
10479 `(("librdkafka" ,librdkafka)))
10480 (home-page "https://pykafka.readthedocs.io/")
10481 (synopsis "Apache Kafka client for Python")
10482 (description
10483 "PyKafka is a client for the Apache Kafka distributed messaging system.
10484It includes Python implementations of Kafka producers and consumers, which
10485are optionally backed by a C extension built on librdkafka.")
3f641af0 10486 (license license:asl2.0)))
45dda35e
SB
10487
10488(define-public python2-pykafka
10489 (package-with-python2 python-pykafka))
a44fd439
DM
10490
10491(define-public python-wcwidth
10492 (package
10493 (name "python-wcwidth")
10494 (version "0.1.6")
10495 (source
10496 (origin
10497 (method url-fetch)
10498 (uri (string-append
10499 "https://pypi.python.org/packages/"
10500 "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/"
10501 "wcwidth-" version ".tar.gz"))
10502 (sha256
10503 (base32
10504 "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw"))))
10505 (build-system python-build-system)
10506 (home-page "https://github.com/jquast/wcwidth")
66e07664 10507 (synopsis "Measure number of terminal column cells of wide-character codes")
a44fd439
DM
10508 (description "Wcwidth measures the number of terminal column cells of
10509wide-character codes. It is useful for those implementing a terminal emulator,
10510or programs that carefully produce output to be interpreted by one. It is a
10511Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
10512specified in POSIX.1-2001 and POSIX.1-2008.")
e4875826
LF
10513 (license license:expat)
10514 (properties `((python2-variant . ,(delay python2-wcwidth))))))
a44fd439
DM
10515
10516(define-public python2-wcwidth
10517 (package
10518 (inherit (package-with-python2
10519 (strip-python2-variant python-wcwidth)))
10520 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
0de78c95
DP
10521
10522(define-public python2-jsonrpclib
10523 (package
10524 (name "python2-jsonrpclib")
10525 (version "0.1.7")
10526 (source (origin
10527 (method url-fetch)
10528 (uri (string-append
10529 "https://pypi.python.org/packages/source/j/jsonrpclib/"
10530 "jsonrpclib-" version ".tar.gz"))
10531 (sha256
10532 (base32
10533 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
10534 (build-system python-build-system)
10535 (native-inputs
10536 `(("python2-setuptools" ,python2-setuptools)))
10537 (arguments
10538 `(#:tests? #f
10539 #:python ,python-2))
10540 (home-page "https://github.com/joshmarshall/jsonrpclib/")
10541 (synopsis "Implementation of JSON-RPC specification for Python")
10542 (description
10543 "This library is an implementation of the JSON-RPC specification.
10544It supports both the original 1.0 specification, as well as the
10545new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
10546etc.")
3f641af0 10547 (license license:asl2.0)))
9250b0f3
SB
10548
10549(define-public python-chai
10550 (package
10551 (name "python-chai")
10552 (version "1.1.1")
10553 (source (origin
10554 (method url-fetch)
10555 (uri (pypi-uri "chai" version))
10556 (sha256
10557 (base32
10558 "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl"))))
10559 (build-system python-build-system)
10560 (native-inputs
10561 `(("python-setuptools" ,python-setuptools)))
10562 (home-page "https://github.com/agoragames/chai")
10563 (synopsis "Mocking framework for Python")
10564 (description
10565 "Chai provides an api for mocking, stubbing and spying your python
10566objects, patterned after the Mocha library for Ruby.")
3f641af0 10567 (license license:bsd-3)))
9250b0f3
SB
10568
10569(define-public python2-chai
10570 (package-with-python2 python-chai))
10571
ae43baa8
SB
10572(define-public python-arrow
10573 (package
10574 (name "python-arrow")
10575 (version "0.8.0")
10576 (source (origin
10577 (method url-fetch)
10578 (uri (pypi-uri "arrow" version))
10579 (sha256
10580 (base32
10581 "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j"))))
10582 (build-system python-build-system)
10583 (native-inputs
10584 `(("python-setuptools" ,python-setuptools)
ae43baa8
SB
10585 ;; For testing
10586 ("python-chai" ,python-chai)
10587 ("python-simplejson" ,python-simplejson)))
36aed736
SB
10588 (propagated-inputs
10589 `(("python-dateutil" ,python-dateutil-2)))
ae43baa8
SB
10590 (home-page "https://github.com/crsmithdev/arrow/")
10591 (synopsis "Dates and times for Python")
10592 (description
10593 "Arrow is a Python library to creating, manipulating, formatting and
10594converting dates, times, and timestamps. It implements and updates the
10595datetime type.")
3f641af0 10596 (license license:asl2.0)))
ae43baa8
SB
10597
10598(define-public python2-arrow
10599 (package-with-python2 python-arrow))
10600
1f2b62a4
SB
10601(define-public python-inflection
10602 (package
10603 (name "python-inflection")
10604 (version "0.3.1")
10605 (source
10606 (origin (method url-fetch)
10607 (uri (pypi-uri "inflection" version))
10608 (sha256
10609 (base32
10610 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
10611 (build-system python-build-system)
10612 (native-inputs
10613 `(("python-setuptools" ,python-setuptools)))
10614 (home-page "http://github.com/jpvanhal/inflection")
10615 (synopsis "Python string transformation library")
10616 (description
10617 "Inflection is a string transformation library. It singularizes
10618and pluralizes English words, and transforms strings from CamelCase to
10619underscored string.")
10620 (license license:expat)))
10621
10622(define-public python2-inflection
10623 (package-with-python2 python-inflection))
10624
18995566
SB
10625(define-public python-pylev
10626 (package
10627 (name "python-pylev")
10628 (version "1.3.0")
10629 (source (origin
10630 (method url-fetch)
10631 (uri (pypi-uri "pylev" version))
10632 (sha256
10633 (base32
10634 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
10635 (build-system python-build-system)
10636 (native-inputs
10637 `(("python-setuptools" ,python-setuptools)))
10638 (home-page "http://github.com/toastdriven/pylev")
10639 (synopsis "Levenshtein distance implementation in Python")
10640 (description "Pure Python Levenshtein implementation, based off the
10641Wikipedia code samples at
10642@url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
3f641af0 10643 (license license:bsd-3)))
18995566
SB
10644
10645(define-public python2-pylev
10646 (package-with-python2 python-pylev))
10647
f5deff7a
SB
10648(define-public python-cleo
10649 (package
10650 (name "python-cleo")
10651 (version "0.4.1")
10652 (source (origin
10653 (method url-fetch)
10654 (uri (pypi-uri "cleo" version))
10655 (sha256
10656 (base32
10657 "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva"))))
10658 (build-system python-build-system)
10659 (native-inputs
9403150a 10660 `(("python-setuptools" ,python-setuptools)
f5deff7a
SB
10661 ;; For testing
10662 ("python-mock" ,python-mock)
10663 ("python-pytest" ,python-pytest)))
9403150a
SB
10664 (propagated-inputs
10665 `(("python-psutil" ,python-psutil)
10666 ("python-pylev" ,python-pylev)))
f5deff7a
SB
10667 (home-page "https://github.com/sdispater/cleo")
10668 (synopsis "Command-line arguments library for Python")
10669 (description
10670 "Cleo allows you to create command-line commands with signature in
10671docstring and colored output.")
10672 (license license:expat)))
10673
10674(define-public python2-cleo
10675 (package-with-python2 python-cleo))
10676
77cadb43
SB
10677(define-public python-lazy-object-proxy
10678 (package
10679 (name "python-lazy-object-proxy")
10680 (version "1.2.2")
10681 (source (origin
10682 (method url-fetch)
10683 (uri (pypi-uri "lazy-object-proxy" version))
10684 (sha256
10685 (base32
10686 "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x"))))
10687 (build-system python-build-system)
10688 (native-inputs
10689 `(("python-setuptools" ,python-setuptools)))
10690 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
10691 (synopsis "Lazy object proxy for python")
10692 (description
10693 "Lazy object proxy is an object that wraps a callable but defers the call
10694until the object is actually required, and caches the result of said call.")
3f641af0 10695 (license license:bsd-2)))
77cadb43
SB
10696
10697(define-public python2-lazy-object-proxy
10698 (package-with-python2 python-lazy-object-proxy))
10699
5477e05f
SB
10700(define-public python-dnspython
10701 (package
10702 (name "python-dnspython")
6c514128 10703 (version "1.15.0")
5477e05f
SB
10704 (source (origin
10705 (method url-fetch)
10706 (uri (string-append "http://www.dnspython.org/kits/"
10707 version "/dnspython-" version ".tar.gz"))
10708 (sha256
10709 (base32
6c514128 10710 "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i"))))
5477e05f
SB
10711 (build-system python-build-system)
10712 (arguments '(#:tests? #f)) ; XXX: requires internet access
10713 (native-inputs
10714 `(("python-setuptools" ,python-setuptools)))
10715 (home-page "http://www.dnspython.org")
10716 (synopsis "DNS toolkit for Python")
10717 (description
10718 "dnspython is a DNS toolkit for Python. It supports almost all record
10719types. It can be used for queries, zone transfers, and dynamic updates.
10720It supports TSIG authenticated messages and EDNS0.")
10721 (license license:expat)))
10722
10723(define-public python2-dnspython
10724 (package-with-python2 python-dnspython))
10725
22711e25
SB
10726(define-public python-email-validator
10727 (package
10728 (name "python-email-validator")
10729 (version "1.0.1")
10730 (source
10731 (origin (method url-fetch)
10732 (uri (pypi-uri "email_validator" version))
10733 (sha256
10734 (base32
10735 "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw"))))
10736 (build-system python-build-system)
10737 (arguments
10738 '(#:phases
10739 (modify-phases %standard-phases
10740 (add-before 'build 'use-dnspython
10741 (lambda _
10742 (substitute* "setup.py"
10743 (("dnspython3") "dnspython"))
10744 #t)))))
10745 (native-inputs
d42560bd
SB
10746 `(("python-setuptools" ,python-setuptools)))
10747 (propagated-inputs
22711e25 10748 `(("python-dnspython" ,python-dnspython)
d42560bd 10749 ("python-idna" ,python-idna)))
22711e25
SB
10750 (home-page "https://github.com/JoshData/python-email-validator")
10751 (synopsis "Email address validation library for Python")
10752 (description
10753 "This library validates email address syntax and deliverability.")
3f641af0 10754 (license license:cc0)))
22711e25
SB
10755
10756(define-public python2-email-validator
10757 (package-with-python2 python-email-validator))
10758
8987d91e
SB
10759(define-public python-ukpostcodeparser
10760 (package
10761 (name "python-ukpostcodeparser")
10762 (version "1.0.3")
10763 (source (origin
10764 (method url-fetch)
10765 (uri (pypi-uri "UkPostcodeParser" version))
10766 (sha256
10767 (base32
10768 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
10769 (build-system python-build-system)
10770 (native-inputs
10771 `(("python-setuptools" ,python-setuptools)))
10772 (home-page "https://github.com/hamstah/ukpostcodeparser")
10773 (synopsis "UK Postcode parser for Python")
10774 (description
10775 "This library provides the @code{parse_uk_postcode} function for
10776parsing UK postcodes.")
10777 (license license:expat)))
10778
10779(define-public python2-ukpostcodeparser
10780 (package-with-python2 python-ukpostcodeparser))
ea92ae01
SB
10781
10782(define-public python-fake-factory
10783 (package
10784 (name "python-fake-factory")
7adc698f 10785 (version "0.7.2")
ea92ae01
SB
10786 (source (origin
10787 (method url-fetch)
10788 (uri (pypi-uri "fake-factory" version))
10789 (sha256
10790 (base32
7adc698f 10791 "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g"))))
ea92ae01 10792 (build-system python-build-system)
ea92ae01 10793 (native-inputs
bbcd7297 10794 `(("python-setuptools" ,python-setuptools)
ea92ae01
SB
10795 ;; For testing
10796 ("python-email-validator" ,python-email-validator)
10797 ("python-mock" ,python-mock)
10798 ("python-ukpostcodeparser" ,python-ukpostcodeparser)))
bbcd7297
SB
10799 (propagated-inputs
10800 `(("python-dateutil" ,python-dateutil-2)
10801 ("python-six" ,python-six)))
7adc698f 10802 (home-page "https://github.com/joke2k/faker")
ea92ae01
SB
10803 (synopsis "Python package that generates fake data")
10804 (description
10805 "Faker is a Python package that generates fake data such as names,
10806addresses, and phone numbers.")
10807 (license license:expat)
10808 (properties `((python2-variant . ,(delay python2-fake-factory))))))
10809
10810(define-public python2-fake-factory
10811 (let ((base (package-with-python2 (strip-python2-variant
10812 python-fake-factory))))
10813 (package
10814 (inherit base)
24c9aa18 10815 (propagated-inputs
ea92ae01 10816 `(("python2-ipaddress" ,python2-ipaddress)
24c9aa18 10817 ,@(package-propagated-inputs base))))))
ea92ae01 10818
b49504fd
SB
10819(define-public python-pyaml
10820 (package
10821 (name "python-pyaml")
10822 (version "15.8.2")
10823 (source (origin
10824 (method url-fetch)
10825 (uri (pypi-uri "pyaml" version))
10826 (sha256
10827 (base32
10828 "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w"))))
10829 (build-system python-build-system)
10830 (native-inputs
10831 `(("python-setuptools" ,python-setuptools)))
10832 (propagated-inputs
10833 `(("python-pyyaml" ,python-pyyaml)))
10834 (home-page "https://github.com/mk-fg/pretty-yaml")
10835 (synopsis "YAML pretty-print library for Python")
10836 (description
10837 "pyaml is a PyYAML based python module to produce pretty and readable
10838YAML-serialized data.")
3f641af0 10839 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/"))))
b49504fd
SB
10840
10841(define-public python2-pyaml
10842 (package-with-python2 python-pyaml))
10843
347175a2
SB
10844(define-public python-flexmock
10845 (package
10846 (name "python-flexmock")
10847 (version "0.10.2")
10848 (source (origin
10849 (method url-fetch)
10850 (uri (pypi-uri "flexmock" version))
10851 (sha256
10852 (base32
10853 "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy"))))
10854 (build-system python-build-system)
10855 (native-inputs
10856 `(("python-setuptools" ,python-setuptools)))
10857 (home-page "https://flexmock.readthedocs.org")
10858 (synopsis "Testing library for Python")
10859 (description
10860 "flexmock is a testing library for Python that makes it easy to create
10861mocks, stubs and fakes.")
3f641af0 10862 (license license:bsd-3)))
347175a2
SB
10863
10864(define-public python2-flexmock
10865 (package-with-python2 python-flexmock))
10866
5a744191
SB
10867(define-public python-orator
10868 (package
10869 (name "python-orator")
10870 (version "0.8.2")
10871 (source (origin
10872 (method url-fetch)
10873 (uri (pypi-uri "orator" version))
10874 (sha256
10875 (base32
10876 "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569"))))
10877 (build-system python-build-system)
10878 (arguments '(#:tests? #f)) ; no tests
10879 (native-inputs
b2676030
SB
10880 `(("python-setuptools" ,python-setuptools)))
10881 (propagated-inputs
5a744191
SB
10882 `(("python-arrow" ,python-arrow)
10883 ("python-blinker" ,python-blinker)
10884 ("python-cleo" ,python-cleo)
10885 ("python-fake-factory" ,python-fake-factory)
10886 ("python-inflection" ,python-inflection)
10887 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
10888 ("python-pyaml" ,python-pyaml)
5a744191
SB
10889 ("python-simplejson" ,python-simplejson)
10890 ("python-wrapt" ,python-wrapt)))
10891 (home-page "https://orator-orm.com/")
10892 (synopsis "ActiveRecord ORM for Python")
10893 (description
10894 "Orator provides a simple ActiveRecord-like Object Relational Mapping
10895implementation for Python.")
10896 (license license:expat)
10897 (properties `((python2-variant . ,(delay python2-orator))))))
10898
10899(define-public python2-orator
10900 (let ((base (package-with-python2 (strip-python2-variant python-orator))))
10901 (package
10902 (inherit base)
06961617 10903 (propagated-inputs
5a744191 10904 `(("python2-ipaddress" ,python2-ipaddress)
06961617 10905 ,@(package-propagated-inputs base))))))
f4155188
DM
10906
10907(define-public python-prompt-toolkit
10908 (package
10909 (name "python-prompt-toolkit")
d15e2ef0 10910 (version "1.0.7")
f4155188
DM
10911 (source
10912 (origin
10913 (method url-fetch)
d15e2ef0 10914 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
f4155188
DM
10915 (sha256
10916 (base32
d15e2ef0 10917 "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg"))))
f4155188 10918 (build-system python-build-system)
bae18710
LF
10919 (arguments
10920 '(#:tests? #f)) ; The test suite uses some Windows-specific data types.
f4155188
DM
10921 (inputs `(("python-wcwidth" ,python-wcwidth)
10922 ("python-pygments" ,python-pygments)))
10923 (native-inputs `(("python-six" ,python-six)))
10924 (home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
10925 (synopsis "Library for building command line interfaces in Python")
10926 (description
10927 "Prompt-Toolkit is a library for building interactive command line
10928interfaces in Python. It's like GNU Readline but it also features syntax
10929highlighting while typing, out-of-the-box multi-line input editing, advanced
10930code completion, incremental search, support for Chinese double-width
10931characters, mouse support, and auto suggestions.")
3f641af0 10932 (license license:bsd-3)
f4155188
DM
10933 (properties `((python2-variant . ,(delay python2-prompt-toolkit))))))
10934
10935(define-public python2-prompt-toolkit
10936 (let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit))))
10937 (package
10938 (inherit base)
10939 (native-inputs
10940 `(("python2-setuptools" ,python2-setuptools)
10941 ,@(package-native-inputs base))))))
a502dfbf
DM
10942
10943(define-public python-jedi
10944 (package
10945 (name "python-jedi")
10946 (version "0.9.0")
10947 (source
10948 (origin
10949 (method url-fetch)
10950 (uri (pypi-uri "jedi" version))
10951 (sha256
10952 (base32
10953 "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"))))
10954 (build-system python-build-system)
10955 (home-page "https://github.com/davidhalter/jedi")
10956 (synopsis
10957 "Autocompletion for Python that can be used for text editors")
10958 (description
10959 "Jedi is an autocompletion tool for Python that can be used for text editors.")
10960 (license license:expat)
10961 (properties `((python2-variant . ,(delay python2-jedi))))))
10962
10963(define-public python2-jedi
10964 (let ((base (package-with-python2 (strip-python2-variant python-jedi))))
10965 (package
10966 (inherit base)
10967 (native-inputs
10968 `(("python2-setuptools" ,python2-setuptools)
10969 ,@(package-native-inputs base))))))
c2f0dc6e
DM
10970
10971(define-public ptpython
10972 (package
10973 (name "ptpython")
10974 (version "0.34")
10975 (source (origin
10976 (method url-fetch)
10977 (uri (pypi-uri "ptpython" version))
10978 (sha256
10979 (base32
10980 "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
10981 (build-system python-build-system)
10982 (inputs
10983 `(("python-docopt" ,python-docopt)
10984 ("python-jedi" ,python-jedi)
10985 ("python-prompt-toolkit" ,python-prompt-toolkit)
10986 ("python-pygments" ,python-pygments)
10987 ("python-setuptools" ,python-setuptools)))
10988 (home-page "https://github.com/jonathanslenders/ptpython")
10989 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
10990 (description
10991 "ptpython is a Python read-eval-print loop with IDE-like features.
10992It supports syntax highlighting, multiline editing, autocompletion, mouse,
10993color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
10994etc.")
3f641af0 10995 (license license:bsd-3)
c2f0dc6e
DM
10996 (properties `((python2-variant . ,(delay ptpython-2))))))
10997
10998(define-public ptpython-2
10999 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
11000 (package
11001 (inherit base)
11002 (name "ptpython2"))))
b227f0be 11003
b04a52a6
DJ
11004(define-public python-requests-oauthlib
11005 (package
11006 (name "python-requests-oauthlib")
11007 (version "0.6.2")
11008 (source
11009 (origin
11010 (method url-fetch)
11011 (uri (pypi-uri "requests-oauthlib" version))
11012 (sha256
11013 (base32
11014 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
11015 (build-system python-build-system)
11016 (arguments
11017 `(#:phases
11018 (modify-phases %standard-phases
11019 ;; removes tests that require network access
11020 (add-before 'check 'pre-check
11021 (lambda _
11022 (delete-file "tests/test_core.py")
11023 #t)))))
11024 (native-inputs
11025 `(("python-requests-mock" ,python-requests-mock)
11026 ("python-mock" ,python-mock)))
11027 (inputs
11028 `(("python-oauthlib" ,python-oauthlib)
11029 ("python-requests" ,python-requests)))
11030 (home-page
11031 "https://github.com/requests/requests-oauthlib")
11032 (synopsis
11033 "OAuthlib authentication support for Requests")
11034 (description
11035 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
11036provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
11037 (license license:isc)
11038 (properties `((python2-variant . ,(delay python2-requests-oauthlib))))))
11039
11040(define-public python2-requests-oauthlib
11041 (let ((base (package-with-python2 (strip-python2-variant python-requests-oauthlib))))
11042 (package
11043 (inherit base)
11044 (native-inputs `(("python2-setuptools" ,python2-setuptools)
11045 ,@(package-native-inputs base))))))
11046
b227f0be 11047(define-public python-stem
11048 (package
11049 (name "python-stem")
11050 (version "1.4.1b")
11051 (source
11052 (origin
11053 (method url-fetch)
11054 (uri (pypi-uri "stem" version ".tar.bz2"))
11055 (sha256
11056 (base32
11057 "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7"))))
11058 (build-system python-build-system)
11059 (arguments
11060 `(#:phases
11061 (modify-phases %standard-phases
11062 (replace 'check
11063 (lambda _
11064 (zero? (system* "./run_tests.py" "--unit")))))))
11065 (native-inputs
11066 `(("python-mock" ,python-mock)
11067 ("python-pep8" ,python-pep8)
11068 ("python-pyflakes" ,python-pyflakes)))
11069 (inputs
11070 `(("python-pycrypto" ,python-pycrypto)))
11071 (home-page "https://stem.torproject.org/")
11072 (synopsis
11073 "Python controller library that allows applications to interact with Tor")
11074 (description
11075 "Stem is a Python controller library for Tor. With it you can use Tor's
11076control protocol to script against the Tor process and read descriptor data
11077relays publish about themselves.")
3f641af0 11078 (license license:lgpl3)))
b227f0be 11079
11080(define-public python2-stem
11081 (package-with-python2 python-stem))
517a6c0c
DM
11082
11083(define-public python-pyserial
11084 (package
11085 (name "python-pyserial")
11086 (version "3.1.1")
11087 (source
11088 (origin
11089 (method url-fetch)
11090 (uri (pypi-uri "pyserial" version))
11091 (sha256
11092 (base32
11093 "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn"))))
11094 (build-system python-build-system)
11095 (home-page
11096 "https://github.com/pyserial/pyserial")
11097 (synopsis "Python Serial Port Bindings")
11098 (description "@code{pyserial} provide serial port bindings for Python. It
11099supports different byte sizes, stop bits, parity and flow control with RTS/CTS
11100and/or Xon/Xoff. The port is accessed in RAW mode.")
3f641af0 11101 (license license:bsd-3)
517a6c0c
DM
11102 (properties `((python2-variant . ,(delay python2-pyserial))))))
11103
11104(define-public python2-pyserial
11105 (let ((base (package-with-python2 (strip-python2-variant python-pyserial))))
11106 (package
11107 (inherit base)
11108 (native-inputs
11109 `(("python2-setuptools" ,python2-setuptools)
11110 ,@(package-native-inputs base))))))
6eb7af2a
DJ
11111
11112(define-public python-kivy
11113 (package
11114 (name "python-kivy")
11115 (version "1.9.1")
11116 (source
11117 (origin
11118 (method url-fetch)
11119 (uri (pypi-uri "kivy" version))
11120 (file-name (string-append name "-" version ".tar.gz"))
11121 (sha256
11122 (base32
11123 "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19"))))
11124 (build-system python-build-system)
11125 (arguments
11126 `(#:tests? #f ; Tests require many optional packages
11127 #:phases
11128 (modify-phases %standard-phases
11129 (replace 'build (lambda _ (zero? (system* "make" "force"))))
11130 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
11131 (lambda* (#:key inputs #:allow-other-keys)
11132 (setenv "KIVY_SDL2_PATH"
11133 (string-append (assoc-ref inputs "sdl-union")
11134 "/include/SDL2"))
11135 #t)))))
11136 (native-inputs
11137 `(("pkg-config" ,pkg-config)))
11138 (inputs
11139 `(("python-cython" ,python-cython)
11140 ("gstreamer" ,gstreamer)
11141 ("mesa" ,mesa)
11142 ("sdl-union"
11143 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
11144 (home-page "http://kivy.org")
11145 (synopsis
11146 "Multitouch application framework")
11147 (description
11148 "A software library for rapid development of
11149hardware-accelerated multitouch applications.")
11150 (license license:expat)))
11151
11152(define-public python2-kivy
11153 (package-with-python2 python-kivy))
11154
11155(define-public python-kivy-next
11156 (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe")
11157 (revision "1"))
11158 (package (inherit python-kivy)
11159 (name "python-kivy-next")
d80a71eb 11160 (version (string-append "1.9.1-" revision "."
6eb7af2a
DJ
11161 (string-take commit 7)))
11162 (source
11163 (origin
11164 (method git-fetch)
11165 (uri (git-reference
11166 (url "https://github.com/kivy/kivy")
11167 (commit commit)))
11168 (file-name (string-append name "-" version "-checkout"))
11169 (sha256
11170 (base32
11171 "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))))))
11172
11173(define-public python2-kivy-next
11174 (package-with-python2 python-kivy-next))
8794bd8b
DC
11175
11176(define-public python-binaryornot
11177 (package
11178 (name "python-binaryornot")
11179 (version "0.4.0")
11180 (source (origin
11181 (method url-fetch)
11182 (uri (pypi-uri "binaryornot" version))
11183 (sha256
11184 (base32
11185 "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb"))))
11186 (build-system python-build-system)
11187 (inputs
11188 `(("python-chardet" ,python-chardet)
11189 ("python-hypothesis" ,python-hypothesis)))
11190 (home-page "https://github.com/audreyr/binaryornot")
11191 (synopsis "Package to check if a file is binary or text")
11192 (description "Ultra-lightweight pure Python package to check if a file is
11193binary or text.")
11194 (license license:bsd-3)
11195 (properties `((python2-variant . ,(delay python2-binaryornot))))))
11196
11197(define-public python2-binaryornot
11198 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
11199 (package (inherit base)
11200 (native-inputs
11201 `(("python2-setuptools" ,python2-setuptools)
11202 ,@(package-native-inputs base)))
11203 (inputs
11204 `(("python2-enum34" ,python2-enum34)
11205 ,@(package-inputs base))))))
a9ac982a
DC
11206
11207(define-public python-nltk
11208 (package
11209 (name "python-nltk")
11210 (version "3.2.1")
11211 (source (origin
11212 (method url-fetch)
11213 (uri (pypi-uri "nltk" version))
11214 (sha256
11215 (base32
11216 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
11217 (build-system python-build-system)
59f12985
LF
11218 (arguments
11219 '(;; The tests require some extra resources to be downloaded.
11220 ;; TODO Try packaging these resources.
11221 #:tests? #f))
a9ac982a
DC
11222 (home-page "http://nltk.org/")
11223 (synopsis "Natural Language Toolkit")
11224 (description "It provides interfaces to over 50 corpora and lexical
11225resources such as WordNet, along with a suite of text processing libraries
11226for classification, tokenization, stemming, tagging, parsing, and semantic
11227reasoning, wrappers for natural language processing libraries.")
11228 (license license:asl2.0)
11229 (properties `((python2-variant . ,(delay python2-nltk))))))
11230
11231(define-public python2-nltk
11232 (let ((base (package-with-python2 (strip-python2-variant python-nltk))))
11233 (package (inherit base)
11234 (native-inputs
11235 `(("python2-setuptools" ,python2-setuptools)
11236 ,@(package-native-inputs base))))))
691cd90d
DC
11237
11238(define-public python-pymongo
11239 (package
11240 (name "python-pymongo")
11241 (version "3.3.0")
11242 (source (origin
11243 (method url-fetch)
11244 (uri (pypi-uri "pymongo" version))
11245 (sha256
11246 (base32
11247 "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x"))))
11248 (build-system python-build-system)
11249 (inputs
11250 `(("python-certifi" ,python-certifi)))
11251 (home-page "http://github.com/mongodb/mongo-python-driver")
11252 (synopsis "Python driver for MongoDB")
11253 (description "Python driver for MongoDB.")
11254 (license license:asl2.0)
11255 (properties `((python2-variant . ,(delay python2-pymongo))))))
11256
11257(define-public python2-pymongo
11258 (let ((base (package-with-python2 (strip-python2-variant python-pymongo))))
11259 (package (inherit base)
11260 (native-inputs
11261 `(("python2-setuptools" ,python2-setuptools)
11262 ,@(package-native-inputs base))))))
6a6c9d43
DC
11263
11264(define-public python-sh
11265 (package
11266 (name "python-sh")
11267 (version "1.11")
11268 (source (origin
11269 (method url-fetch)
11270 (uri (pypi-uri "sh" version))
11271 (sha256
11272 (base32
11273 "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr"))))
11274 (build-system python-build-system)
11275 (arguments
11276 `(#:tests? #f)) ; no tests
11277 (home-page "https://github.com/amoffat/sh")
11278 (synopsis "Python subprocess interface")
11279 (description "Abstracts process invocation by providing a function
11280interface for programs.")
11281 (license license:expat)
11282 (properties `((python2-variant . ,(delay python2-sh))))))
11283
11284(define-public python2-sh
11285 (let ((base (package-with-python2 (strip-python2-variant python-sh))))
11286 (package (inherit base)
11287 (native-inputs
11288 `(("python2-setuptools" ,python2-setuptools)
11289 ,@(package-native-inputs base))))))
05b59190 11290
25702397
EF
11291(define-public python-consul
11292 (package
11293 (name "python-consul")
11294 (version "0.6.1")
11295 (source
11296 (origin
11297 (method url-fetch)
11298 (uri (pypi-uri "python-consul" version))
11299 (sha256
11300 (base32
11301 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
11302 (build-system python-build-system)
11303 (native-inputs
11304 `(("python-pytest" ,python-pytest)
11305 ("python-requests" ,python-requests)
11306 ("python-six" ,python-six)))
11307 (home-page "https://github.com/cablehead/python-consul")
11308 (synopsis "Python client for Consul")
11309 (description
11310 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
11311discovery, monitoring and configuration.")
11312 (license license:expat)))
11313
11314(define-public python2-consul
11315 (let ((consul (package-with-python2 python-consul)))
11316 (package (inherit consul)
11317 (native-inputs
11318 `(("python2-setuptools" ,python2-setuptools)
11319 ,@(package-native-inputs consul))))))
11320
05b59190
DC
11321(define-public python-schematics
11322 (package
11323 (name "python-schematics")
11324 (version "1.1.1")
11325 (source
11326 (origin
11327 (method url-fetch)
11328 (uri (string-append
11329 "https://github.com/schematics/schematics/archive/v" version ".tar.gz"))
11330 (file-name (string-append name "-" version ".tar.gz"))
11331 (sha256
11332 (base32
11333 "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l"))))
11334 (build-system python-build-system)
11335 (inputs
11336 `(("python-six" ,python-six)))
11337 (arguments
11338 `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed
11339 ; version requirements (eg python-coveralls)
11340 (home-page "https://github.com/schematics/schematics")
11341 (synopsis "Python Data Structures for Humans")
11342 (description "Python Data Structures for Humans.")
11343 (license license:bsd-3)
11344 (properties `((python2-variant . ,(delay python2-schematics))))))
11345
11346(define-public python2-schematics
11347 (let ((base (package-with-python2 (strip-python2-variant python-schematics))))
11348 (package (inherit base)
11349 (native-inputs
11350 `(("python2-setuptools" ,python2-setuptools)
11351 ,@(package-native-inputs base))))))
d6907ff7
DC
11352
11353(define-public python-publicsuffix
11354 (package
11355 (name "python-publicsuffix")
11356 (version "1.1.0")
11357 (source (origin
11358 (method url-fetch)
11359 (uri (pypi-uri "publicsuffix" version))
11360 (sha256
11361 (base32
11362 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
11363 (build-system python-build-system)
11364 (arguments
11365 `(#:tests? #f)) ; tests use the internet
11366 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
11367 (synopsis "Get suffix for a domain name")
11368 (description "Get a public suffix for a domain name using the Public Suffix
11369List.")
11370 (license license:expat)
11371 (properties `((python2-variant . ,(delay python2-nltk))))))
11372
11373(define-public python2-publicsuffix
11374 (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix))))
11375 (package (inherit base)
11376 (native-inputs
11377 `(("python2-setuptools" ,python2-setuptools)
11378 ,@(package-native-inputs base))))))
b2319996
DC
11379
11380(define-public python-publicsuffix2
11381 (package
11382 (name "python-publicsuffix2")
11383 (version "2.20160621")
11384 (source
11385 (origin
11386 (method url-fetch)
11387 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
11388 (sha256
11389 (base32
11390 "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd"))))
11391 (build-system python-build-system)
10797a0a
LF
11392 (arguments
11393 '(#:tests? #f)) ; The test suite requires network access.
b2319996
DC
11394 (home-page "https://github.com/pombredanne/python-publicsuffix2")
11395 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
11396 (description "Get a public suffix for a domain name using the Public Suffix
11397List. Forked from and using the same API as the publicsuffix package.")
11398 (license (list license:expat license:mpl2.0))
11399 (properties `((python2-variant . ,(delay python2-publicsuffix2))))))
11400
11401(define-public python2-publicsuffix2
11402 (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix2))))
11403 (package (inherit base)
11404 (native-inputs
11405 `(("python2-setuptools" ,python2-setuptools)
11406 ,@(package-native-inputs base))))))
81f1515d
DC
11407
11408(define-public python-url
11409 (package
11410 (name "python-url")
11411 (version "0.2.0")
11412 (source (origin
11413 (method url-fetch)
11414 (uri (pypi-uri "url" version))
11415 (sha256
11416 (base32
11417 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
11418 (build-system python-build-system)
11419 (inputs
11420 `(("python-publicsuffix" ,python-publicsuffix)))
11421 (native-inputs
11422 `(("python-coverage" ,python-coverage)
11423 ("python-nose" ,python-nose)))
11424 (arguments
11425 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
11426 (home-page "http://github.com/seomoz/url-py")
11427 (synopsis "URL Parsing")
11428 (description "Library for parsing urls.")
11429 (license license:expat)
11430 (properties `((python2-variant . ,(delay python2-url))))))
11431
11432(define-public python2-url
11433 (let ((base (package-with-python2 (strip-python2-variant python-url))))
11434 (package (inherit base)
11435 (inputs
11436 `(("python2-publicsuffix" ,python2-publicsuffix)))
11437 (native-inputs
11438 `(("python2-setuptools" ,python2-setuptools)
11439 ,@(package-native-inputs base))))))
974ee2c1
TS
11440
11441(define-public python-freezegun
11442 (package
11443 (name "python-freezegun")
11444 (version "0.3.7")
11445 (source
11446 (origin
11447 (method url-fetch)
11448 (uri (pypi-uri "freezegun" version))
11449 (sha256
11450 (base32
11451 "14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w"))))
11452 (build-system python-build-system)
11453 (native-inputs
11454 `(("python-mock" ,python-mock)
11455 ("python-nose" ,python-nose)
11456 ("python-coverage" ,python-coverage)
11457 ("python-dateutil-2" ,python-dateutil-2)))
11458 (inputs
11459 `(("python-six" ,python-six)))
11460 (arguments
11461 `(#:phases (modify-phases %standard-phases
11462 ;; The tests are normally executed via `make test`, but the PyPi
11463 ;; package does not include the Makefile.
11464 (replace 'check
11465 (lambda _
11466 (zero? (system* "nosetests" "./tests/")))))))
11467 (home-page "https://github.com/spulec/freezegun")
11468 (synopsis "Test utility for mocking the datetime module")
11469 (description
11470 "FreezeGun is a library that allows your python tests to travel through
11471time by mocking the datetime module.")
11472 (license license:asl2.0)))
11473
11474(define-public python2-freezegun
11475 (let ((base (package-with-python2 (strip-python2-variant python-freezegun))))
11476 (package (inherit base)
11477 (native-inputs
11478 `(("python2-setuptools" ,python2-setuptools)
11479 ,@(package-native-inputs base))))))
dddcb25c
MB
11480
11481(define-public python-odfpy
11482 (package
11483 (name "python-odfpy")
11484 (version "1.3.3")
11485 (source (origin
11486 (method url-fetch)
11487 (uri (pypi-uri "odfpy" version))
11488 (sha256
11489 (base32
11490 "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw"))))
11491 (arguments
11492 `(#:modules ((srfi srfi-1)
11493 (guix build python-build-system)
11494 (guix build utils))
11495 #:phases
11496 (modify-phases %standard-phases
11497 (replace 'check
11498 ;; The test runner invokes python2 and python3 for test*.py.
11499 ;; To avoid having both in inputs, we replicate it here.
11500 (lambda _
11501 (every (lambda (test-file)
11502 (zero? (system* "python" test-file)))
11503 (find-files "tests" "^test.*\\.py$")))))))
11504 (build-system python-build-system)
11505 (home-page "https://github.com/eea/odfpy")
11506 (synopsis "Python API and tools to manipulate OpenDocument files")
11507 (description "Collection of libraries and utility programs written in
11508Python to manipulate OpenDocument 1.2 files.")
11509 (license
11510 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
11511 ;; number of files with other licenses.
11512 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
11513
11514(define-public python2-odfpy
11515 (package-with-python2 python-odfpy))
b30565bd
MB
11516
11517(define-public python-cachecontrol
11518 (package
11519 (name "python-cachecontrol")
11520 (version "0.11.6")
11521 (source
11522 (origin
11523 (method url-fetch)
11524 ;; Pypi does not have tests.
11525 (uri (string-append
11526 "https://github.com/ionrock/cachecontrol/archive/v"
11527 version ".tar.gz"))
11528 (file-name (string-append name "-" version ".tar.gz"))
11529 (sha256
11530 (base32
11531 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
11532 (build-system python-build-system)
11533 (arguments
11534 `(#:phases
11535 (modify-phases %standard-phases
11536 (replace 'check
11537 (lambda _
11538 ;; Drop test that requires internet access.
11539 (delete-file "tests/test_regressions.py")
11540 (setenv "PYTHONPATH"
11541 (string-append (getcwd) "/build/lib:"
11542 (getenv "PYTHONPATH")))
11543 (zero? (system* "py.test" "-vv")))))))
11544 (native-inputs
11545 `(("python-pytest" ,python-pytest)
11546 ("python-redis" ,python-redis)
11547 ("python-webtest" ,python-webtest)
11548 ("python-mock" ,python-mock)))
11549 (propagated-inputs
11550 `(("python-requests" ,python-requests)
11551 ("python-lockfile" ,python-lockfile)))
11552 (home-page "https://github.com/ionrock/cachecontrol")
11553 (synopsis "The httplib2 caching algorithms for use with requests")
11554 (description "CacheControl is a port of the caching algorithms in
11555@code{httplib2} for use with @code{requests} session objects.")
11556 (license license:asl2.0)
dd447621 11557 (properties `((python2-variant . ,(delay python2-cachecontrol))))))
b30565bd
MB
11558
11559(define-public python2-cachecontrol
11560 (let ((base (package-with-python2 (strip-python2-variant python-cachecontrol))))
11561 (package (inherit base)
11562 (native-inputs
11563 `(("python2-setuptools" ,python2-setuptools)
11564 ,@(package-native-inputs base))))))
243db824
DM
11565
11566(define-public python-lit
11567 (package
11568 (name "python-lit")
11569 (version "0.5.0")
11570 (source
11571 (origin
11572 (method url-fetch)
11573 (uri (pypi-uri "lit" version))
11574 (sha256
11575 (base32
11576 "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y"))))
11577 (build-system python-build-system)
11578 (home-page "http://llvm.org/")
11579 (synopsis "LLVM Software Testing Tool")
11580 (description "@code{lit} is a portable tool for executing LLVM and Clang
11581style test suites, summarizing their results, and providing indication of
11582failures.")
11583 (license license:ncsa)
11584 (properties `((python2-variant . ,(delay python2-lit))))))
11585
11586(define-public python2-lit
11587 (let ((base (package-with-python2 (strip-python2-variant python-lit))))
11588 (package
11589 (inherit base)
11590 (native-inputs
11591 `(("python2-setuptools" ,python2-setuptools)
11592 ,@(package-native-inputs base))))))
66f95b20
MB
11593
11594(define-public python-pytest-pep8
11595 (package
11596 (name "python-pytest-pep8")
11597 (version "1.0.6")
11598 (source (origin
11599 (method url-fetch)
11600 (uri (pypi-uri "pytest-pep8" version))
11601 (sha256
11602 (base32
11603 "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
11604 (build-system python-build-system)
11605 (arguments
11606 `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
11607 ;; Prevent creation of the egg. This works around
11608 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
11609 #:configure-flags '("--single-version-externally-managed" "--root=/")))
11610 (native-inputs
11611 `(("python-pytest" ,python-pytest)))
11612 (propagated-inputs
11613 `(("python-pep8" ,python-pep8)))
11614 (home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
11615 (synopsis "Py.test plugin to check PEP8 requirements")
11616 (description "Pytest plugin for checking PEP8 compliance.")
11617 (license license:expat)
11618 (properties `((python2-variant . ,(delay python2-pytest-pep8))))))
11619
11620(define-public python2-pytest-pep8
11621 (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8))))
11622 (package (inherit base)
11623 (native-inputs
11624 `(("python2-setuptools" ,python2-setuptools)
11625 ,@(package-native-inputs base))))))
df94a6b5
MB
11626
11627(define-public python-pytest-flakes
11628 (package
11629 (name "python-pytest-flakes")
11630 (version "1.0.1")
11631 (source (origin
11632 (method url-fetch)
11633 (uri (pypi-uri "pytest-flakes" version))
11634 (sha256
11635 (base32
11636 "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw"))))
11637 (build-system python-build-system)
11638 (arguments
11639 `(;; Prevent creation of the egg. This works around
11640 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
11641 #:configure-flags '("--single-version-externally-managed" "--root=/")
11642 #:phases
11643 (modify-phases %standard-phases
11644 (delete 'check)
11645 (add-after 'install 'check
11646 (lambda _ ; It's easier to run tests after install.
11647 (zero? (system* "py.test" "-vv")))))))
11648 (native-inputs
11649 `(("python-coverage" ,python-coverage)
11650 ("python-pytest" ,python-pytest)
11651 ("python-pytest-cache" ,python-pytest-cache)
11652 ("python-pytest-pep8" ,python-pytest-pep8)))
11653 (propagated-inputs
11654 `(("python-pyflakes" ,python-pyflakes)))
11655 (home-page "https://github.com/fschulze/pytest-flakes")
11656 (synopsis "Py.test plugin to check source code with pyflakes")
11657 (description "Pytest plugin for checking Python source code with pyflakes.")
11658 (license license:expat)
11659 (properties `((python2-variant . ,(delay python2-pytest-flakes))))))
11660
11661(define-public python2-pytest-flakes
11662 (let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes))))
11663 (package (inherit base)
11664 (native-inputs
11665 `(("python2-setuptools" ,python2-setuptools)
11666 ,@(package-native-inputs base))))))
5467ea62
MB
11667
11668(define-public python-natsort
11669 (package
11670 (name "python-natsort")
11671 (version "5.0.1")
11672 (source (origin
11673 (method url-fetch)
11674 (uri (pypi-uri "natsort" version))
11675 (sha256
11676 (base32
11677 "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja"))))
11678 (build-system python-build-system)
11679 (arguments
11680 `(#:phases
11681 (modify-phases %standard-phases
11682 (add-before 'check 'set-cachedir
11683 ;; Tests require write access to $HOME by default
11684 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)))))
11685 (native-inputs
11686 `(("python-hypothesis" ,python-hypothesis)
11687 ("python-pytest-cache" ,python-pytest-cache)
11688 ("python-pytest-cov" ,python-pytest-cov)
11689 ("python-pytest-flakes" ,python-pytest-flakes)
11690 ("python-pytest-pep8" ,python-pytest-pep8)))
11691 (propagated-inputs ; TODO: Add python-fastnumbers.
11692 `(("python-pyicu" ,python-pyicu)))
11693 (home-page "https://github.com/SethMMorton/natsort")
11694 (synopsis "Natural sorting for python and shell")
11695 (description
11696 "Natsort lets you apply natural sorting on lists instead of
11697lexicographical. If you use the built-in @code{sorted} method in python
11698on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be
11699returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a
11700function @code{natsorted} that identifies numbers and sorts them separately
11701from strings. It can also sort version numbers, real numbers, mixed types
11702and more, and comes with a shell command @command{natsort} that exposes this
11703functionality in the command line.")
11704 (license license:expat)
11705 (properties `((python2-variant . ,(delay python2-natsort))))))
11706
11707(define-public python2-natsort
11708 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
11709 (package (inherit base)
11710 (native-inputs
11711 `(("python2-setuptools" ,python2-setuptools)
11712 ("python2-pathlib" ,python2-pathlib)
11713 ("python2-mock" ,python2-mock)
11714 ("python2-enum34" ,python2-enum34)
11715 ,@(package-native-inputs base))))))
4efb9c54
SR
11716
11717(define-public python-glances
11718 (package
11719 (name "python-glances")
11720 (version "2.7.1")
11721 (source
11722 (origin
11723 (method url-fetch)
11724 (uri (pypi-uri "Glances" version))
11725 (sha256
11726 (base32
11727 "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg"))))
11728 (build-system python-build-system)
11729 (inputs
11730 `(("python-psutil" ,python-psutil)))
11731 (home-page
11732 "https://github.com/nicolargo/glances")
11733 (synopsis
11734 "A cross-platform curses-based monitoring tool")
11735 (description
11736 "Glances is a curses-based monitoring tool for a wide variety of platforms.
11737Glances uses the PsUtil library to get information from your system. It monitors
11738CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
11739 (license license:lgpl3+)
11740 (properties `((python2-variant . ,(delay python2-glances))))))
11741
11742(define-public python2-glances
11743 (let ((base (package-with-python2 (strip-python2-variant python-glances))))
11744 (package
11745 (inherit base)
11746 (native-inputs
11747 `(("python2-setuptools" ,python2-setuptools)
11748 ,@(package-native-inputs base))))))
05b7a593
EF
11749
11750(define-public python-graphql-core
11751 (package
11752 (name "python-graphql-core")
11753 (version "0.5.3")
11754 (source
11755 (origin
11756 (method url-fetch)
11757 (uri (pypi-uri "graphql-core" version))
11758 (sha256
11759 (base32
11760 "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
11761 (build-system python-build-system)
11762 (arguments
326f8285
LF
11763 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
11764 #:phases
05b7a593
EF
11765 (modify-phases %standard-phases
11766 (add-after 'unpack 'patch-hardcoded-version
11767 (lambda _ (substitute*
11768 "setup.py"
11769 (("'gevent==1.1rc1'") "'gevent'"))
11770 #t)))))
11771 (native-inputs
11772 `(("python-gevent" ,python-gevent)
11773 ("python-mock" ,python-mock)
11774 ("python-pytest-mock" ,python-pytest-mock)))
11775 (inputs
11776 `(("python-promise" ,python-promise)
11777 ("python-six" ,python-six)))
11778 (home-page "https://github.com/graphql-python/graphql-core")
11779 (synopsis "GraphQL implementation for Python")
11780 (description
11781 "GraphQL implementation for Python. GraphQL is a data query language and
11782runtime designed and used to request and deliver data to mobile and web apps.
11783This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
11784to Python.")
11785 (properties `((python2-variant . ,(delay python2-graphql-core))))
11786 (license license:expat)))
11787
11788(define-public python2-graphql-core
11789 (let ((base (package-with-python2
11790 (strip-python2-variant python-graphql-core))))
11791 (package (inherit base)
11792 (native-inputs
11793 `(("python2-setuptools" ,python2-setuptools)
11794 ,@(package-native-inputs base))))))
7ee51575
EF
11795
11796(define-public python-graphql-relay
11797 (package
11798 (name "python-graphql-relay")
11799 (version "0.4.4")
11800 (source
11801 (origin
11802 (method url-fetch)
11803 (uri (pypi-uri "graphql-relay" version))
11804 (sha256
11805 (base32
11806 "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi"))))
11807 (build-system python-build-system)
11808 (native-inputs
11809 `(("python-pytest" ,python-pytest)))
11810 (inputs
11811 `(("python-graphql-core" ,python-graphql-core)
11812 ("python-promise" ,python-promise)
11813 ("python-six" ,python-six)))
11814 (home-page "https://github.com/graphql-python/graphql-relay-py")
11815 (synopsis "Relay implementation for Python")
11816 (description
11817 "This is a library to allow the easy creation of Relay-compliant servers
11818using the GraphQL Python reference implementation of a GraphQL server. It
11819should be noted that the code is a exact port of the original
11820@url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
11821from Facebook.")
11822 (properties `((python2-variant . ,(delay python2-graphql-relay))))
11823 (license license:expat)))
11824
11825(define-public python2-graphql-relay
11826 (let ((base (package-with-python2
11827 (strip-python2-variant python-graphql-relay))))
11828 (package (inherit base)
11829 (native-inputs
11830 `(("python2-setuptools" ,python2-setuptools)
11831 ,@(package-native-inputs base))))))
ddc63a56
EF
11832
11833(define-public python-graphene
11834 (package
11835 (name "python-graphene")
11836 (version "0.10.2")
11837 (source
11838 (origin
11839 (method url-fetch)
11840 (uri (pypi-uri "graphene" version))
11841 (sha256
11842 (base32
11843 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
11844 (build-system python-build-system)
11845 (native-inputs
11846 `(("python-django-filter" ,python-django-filter)
11847 ("python-mock" ,python-mock)
11848 ("python-psycopg2" ,python-psycopg2)
11849 ("python-pytest-django" ,python-pytest-django)
11850 ("python-sqlalchemy-utils" ,python-sqlalchemy-utils)))
11851 (inputs
11852 `(("python-graphql-core" ,python-graphql-core)
11853 ("python-graphql-relay" ,python-graphql-relay)
11854 ("python-iso8601" ,python-iso8601)
11855 ("python-promise" ,python-promise)
11856 ("python-six" ,python-six)))
11857 (home-page "http://graphene-python.org/")
11858 (synopsis "GraphQL Framework for Python")
11859 (description
11860 "Graphene is a Python library for building GraphQL schemas/types.
11861A GraphQL schema describes your data model, and provides a GraphQL server
11862with an associated set of resolve methods that know how to fetch data.")
11863 (properties `((python2-variant . ,(delay python2-graphene))))
11864 (license license:expat)))
11865
11866(define-public python2-graphene
11867 (let ((base (package-with-python2
11868 (strip-python2-variant python-graphene))))
11869 (package (inherit base)
11870 (native-inputs
11871 `(("python2-setuptools" ,python2-setuptools)
11872 ("python2-sqlalchemy" ,python2-sqlalchemy)
11873 ,@(package-native-inputs base))))))
d488d5d6
EF
11874
11875(define-public python-nautilus
11876 (package
11877 (name "python-nautilus")
11878 (version "0.4.9")
11879 (source
11880 (origin
11881 (method url-fetch)
11882 (uri (pypi-uri "nautilus" version))
11883 (sha256
11884 (base32
11885 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
11886 (build-system python-build-system)
11887 (arguments `(#:tests? #f)) ; fails to import test modules
11888 (native-inputs
11889 `(("python-setuptools" ,python-setuptools)))
11890 (inputs
11891 `(("python-bcrypt" ,python-bcrypt)
11892 ("python-click" ,python-click)
11893 ("python-consul" ,python-consul)
11894 ("python-graphql-core" ,python-graphql-core)
11895 ("python-graphql-relay" ,python-graphql-relay)
11896 ("python-graphene" ,python-graphene)
11897 ("python-jinja2" ,python-jinja2)
11898 ("python-nose2" ,python-nose2)
11899 ("python-peewee" ,python-peewee)
11900 ("python-pika" ,python-pika)
11901 ("python-pycparser" ,python-pycparser)
11902 ("python-requests" ,python-requests)
11903 ("python-tornado" ,python-tornado)
11904 ("python-wtforms" ,python-wtforms)))
11905 (home-page "https://github.com/AlecAivazis/nautilus")
11906 (synopsis "Library for creating microservice applications")
11907 (description
11908 "Nautilus is a framework for flux based microservices that looks to
11909provide extendible implementations of common aspects of a cloud so that you can
11910focus on building massively scalable web applications.")
11911 (license license:expat)))
94cffc63 11912
66d3f50a
LF
11913(define-public python-betamax
11914 (package
11915 (name "python-betamax")
11916 (version "0.8.0")
11917 (source
11918 (origin
11919 (method url-fetch)
11920 (uri (pypi-uri "betamax" version))
11921 (sha256
11922 (base32
11923 "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"))))
11924 (build-system python-build-system)
11925 (arguments
11926 '(;; Many tests fail because they require networking.
11927 #:tests? #f))
11928 (inputs
11929 `(("python-requests" ,python-requests)))
11930 (home-page "https://github.com/sigmavirus24/betamax")
11931 (synopsis "Record HTTP interactions with python-requests")
11932 (description "Betamax will record your test suite's HTTP interactions and
11933replay them during future tests. It is designed to work with python-requests.")
11934 (license license:expat)
11935 (properties `((python2-variant . ,(delay python2-betamax))))))
11936
11937(define-public python2-betamax
11938 (let ((base (package-with-python2 (strip-python2-variant python-betamax))))
11939 (package
11940 (inherit base)
11941 (native-inputs
11942 `(("python2-setuptools" ,python2-setuptools)
11943 ,@(package-native-inputs base))))))
ca0635b4 11944
94cffc63
LF
11945(define-public python-s3transfer
11946 (package
11947 (name "python-s3transfer")
11948 (version "0.1.8")
11949 (source (origin
11950 (method url-fetch)
11951 (uri (pypi-uri "s3transfer" version))
11952 (sha256
11953 (base32
11954 "1jivjkp3xqif9gzr5fiq28jsskmh50vzzd7ldsb4rbyiw1iyv3hy"))))
11955 (build-system python-build-system)
fad8bf97
LF
11956 (arguments
11957 `(#:phases
11958 (modify-phases %standard-phases
11959 (replace 'check
11960 (lambda _
11961 ;; 7 of the 'integration' tests require network access or login
11962 ;; credentials.
11963 (zero? (system* "nosetests" "--exclude=integration")))))))
94cffc63 11964 (native-inputs
fad8bf97
LF
11965 `(("python-docutils" ,python-docutils)
11966 ("python-mock" ,python-mock)
11967 ("python-nose" ,python-nose)))
94cffc63
LF
11968 (inputs
11969 `(("python-botocore" ,python-botocore)))
11970 (synopsis "Amazon S3 Transfer Manager")
11971 (description "S3transfer is a Python library for managing Amazon S3
11972transfers.")
11973 (home-page "https://github.com/boto/s3transfer")
11974 (license license:asl2.0)
11975 (properties `((python2-variant . ,(delay python2-s3transfer))))))
11976
11977(define-public python2-s3transfer
11978 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
11979 (package
11980 (inherit base)
11981 (native-inputs
11982 `(("python2-futures" ,python2-futures)
11983 ("python2-setuptools" ,python2-setuptools)
11984 ,@(package-native-inputs base))))))
8ab59181
HG
11985
11986(define-public python-setproctitle
11987(package
11988 (name "python-setproctitle")
11989 (version "1.1.10")
11990 (source
11991 (origin
11992 (method url-fetch)
11993 (uri (pypi-uri "setproctitle" version))
11994 (sha256
11995 (base32
11996 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
11997 (build-system python-build-system)
11998 (arguments
11999 '(#:phases
12000 (modify-phases %standard-phases
12001 (add-before 'check 'patch-Makefile
12002 ;; Stricly this is only required for the python2 variant.
12003 ;; But adding a phase in an inherited package seems to be
12004 ;; cumbersum. So we patch even for python3.
12005 (lambda _
12006 (let ((nose (assoc-ref %build-inputs "python2-nose")))
12007 (when nose
12008 (substitute* "Makefile"
12009 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
12010 (string-append nose "/bin/nosetests "))))
12011 #t)))
12012 (replace 'check
12013 (lambda _
12014 (setenv "PYTHON" (or (which "python3") (which "python")))
12015 (setenv "PYCONFIG" (or (which "python3-config")
12016 (which "python-config")))
12017 (setenv "CC" "gcc")
12018 ;; No need to extend PYTHONPATH to find the built package, since
12019 ;; the Makefile will build anyway
12020 (zero? (system* "make" "check")))))))
12021 (native-inputs
12022 `(("procps" ,procps))) ; required for tests
12023 (home-page
12024 "https://github.com/dvarrazzo/py-setproctitle")
12025 (synopsis
12026 "Setproctitle implementation for Python to customize the process title")
12027 (description "The library allows a process to change its title (as displayed
12028by system tools such as ps and top).
12029
12030Changing the title is mostly useful in multi-process systems, for
12031example when a master process is forked: changing the children's title
12032allows to identify the task each process is busy with. The technique
12033is used by PostgreSQL and the OpenSSH Server for example.")
12034 (license license:bsd-3)
12035 (properties `((python2-variant . ,(delay python2-setproctitle))))))
12036
12037(define-public python2-setproctitle
12038 (let ((base (package-with-python2
12039 (strip-python2-variant python-setproctitle))))
12040 (package
12041 (inherit base)
12042 (native-inputs `(("python2-nose" ,python2-nose)
12043 ,@(package-native-inputs base))))))
162e42d8
HG
12044
12045(define-public python-validictory
12046 (package
12047 (name "python-validictory")
12048 (version "1.0.1")
12049 (source
12050 (origin
12051 (method url-fetch)
12052 (uri (pypi-uri "validictory" version))
12053 (sha256
12054 (base32
12055 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
12056 (build-system python-build-system)
12057 (arguments
12058 '(#:phases
12059 (modify-phases %standard-phases
12060 (add-after 'unpack 'bootstrap
12061 ;; Move the tests out of the package directory to avoid
12062 ;; packaging them.
12063 (lambda* _
12064 (rename-file "validictory/tests" "tests")
12065 (delete-file "tests/__init__.py")))
12066 (replace 'check
12067 (lambda _
12068 ;; Extend PYTHONPATH so the built package will be found.
12069 (setenv "PYTHONPATH"
12070 (string-append (getcwd) "/build/lib:"
12071 (getenv "PYTHONPATH")))
12072 (zero? (system* "py.test" "-vv" )))))))
12073 (native-inputs
12074 `(("python-pytest" ,python-pytest)))
12075 (home-page
12076 "https://github.com/jamesturk/validictory")
12077 (synopsis "General purpose Python data validator")
12078 (description "It allows validation of arbitrary Python data structures.
12079
12080The schema format is based on the JSON Schema
12081proposal (http://json-schema.org), so combined with json the library is also
12082useful as a validator for JSON data.")
7ca68304
EF
12083 (license license:expat)
12084 (properties `((python2-variant . ,(delay python2-validictory))))))
162e42d8
HG
12085
12086(define-public python2-validictory
7ca68304
EF
12087 (let ((base (package-with-python2
12088 (strip-python2-variant python-validictory))))
12089 (package
12090 (inherit base)
12091 (native-inputs `(("python2-setuptools" ,python2-setuptools)
12092 ,@(package-native-inputs base))))))
0990edfe
DM
12093
12094(define-public python-aniso8601
12095 (package
12096 (name "python-aniso8601")
12097 (version "1.1.0")
12098 (source
12099 (origin
12100 (method url-fetch)
12101 (uri (pypi-uri "aniso8601" version))
12102 (sha256
12103 (base32
12104 "1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g"))))
12105 (build-system python-build-system)
12106 (propagated-inputs
12107 `(("python-dateutil-2" ,python-dateutil-2)))
12108 (home-page
12109 "https://bitbucket.org/nielsenb/aniso8601")
12110 (synopsis
12111 "Python library for parsing ISO 8601 strings")
12112 (description
12113 "This package contains a library for parsing ISO 8601 datetime strings.")
12114 (license license:bsd-3)))
999d964d
DM
12115
12116(define-public python-flask-restful
12117 (package
12118 (name "python-flask-restful")
12119 (version "0.3.5")
12120 (source
12121 (origin
12122 (method url-fetch)
12123 (uri (pypi-uri "Flask-RESTful" version))
12124 (sha256
12125 (base32
12126 "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c"))))
12127 (build-system python-build-system)
12128 (propagated-inputs
12129 `(("python-aniso8601" ,python-aniso8601)
12130 ("python-flask" ,python-flask)
12131 ("python-pycrypto" ,python-pycrypto)
12132 ("python-pytz" ,python-pytz)))
12133 (native-inputs
12134 `(;; Optional dependency of Flask. Tests need it.
12135 ("python-blinker" ,python-blinker)
12136 ("python-mock" ,python-mock) ; For tests
12137 ("python-nose" ,python-nose) ; For tests
12138 ("python-sphinx" ,python-sphinx)))
12139 (home-page
12140 "https://www.github.com/flask-restful/flask-restful/")
12141 (synopsis
12142 "Flask module for creating REST APIs")
12143 (description
12144 "This package contains a Flask module for creating REST APIs.")
12145 (license license:bsd-3)))
31288222
DM
12146
12147(define-public python-flask-basicauth
12148 (package
12149 (name "python-flask-basicauth")
12150 (version "0.2.0")
12151 (source
12152 (origin
12153 (method url-fetch)
12154 (uri (pypi-uri "Flask-BasicAuth" version))
12155 (sha256
12156 (base32
12157 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
12158 (build-system python-build-system)
12159 (propagated-inputs
12160 `(("python-flask" ,python-flask)))
12161 (home-page
12162 "https://github.com/jpvanhal/flask-basicauth")
12163 (synopsis
12164 "HTTP basic access authentication for Flask")
12165 (description
12166 "This package provides HTTP basic access authentication for Flask.")
12167 (license license:bsd-3)))
903276d0
DM
12168
12169(define-public python-flask-sqlalchemy
12170 (package
12171 (name "python-flask-sqlalchemy")
12172 (version "2.1")
12173 (source
12174 (origin
12175 (method url-fetch)
12176 (uri (pypi-uri "Flask-SQLAlchemy" version))
12177 (sha256
12178 (base32
12179 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
12180 (build-system python-build-system)
12181 (propagated-inputs
12182 `(("python-flask" ,python-flask)
12183 ("python-sqlalchemy" ,python-sqlalchemy)))
12184 (home-page
12185 "http://github.com/mitsuhiko/flask-sqlalchemy")
12186 (synopsis
12187 "Module adding SQLAlchemy support to your Flask application")
12188 (description
12189 "This package adds SQLAlchemy support to your Flask application.")
12190 (license license:bsd-3)))
329b4b3b
LF
12191
12192(define-public python-pyev
12193 (package
12194 (name "python-pyev")
12195 (version "0.9.0")
12196 (source
12197 (origin
12198 (method url-fetch)
12199 (uri (pypi-uri "pyev" version))
12200 (sha256
12201 (base32
12202 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
12203 (build-system python-build-system)
12204 (arguments
12205 `(#:tests? #f ; no test suite
12206 #:phases
12207 (modify-phases %standard-phases
12208 (add-after 'unpack 'patch
12209 (lambda* (#:key inputs #:allow-other-keys)
12210 (let ((libev (string-append (assoc-ref inputs "libev")
12211 "/lib/libev.so.4")))
12212 (substitute* "setup.py"
12213 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
12214 (string-append "libev_dll_name = \"" libev "\"")))))))))
12215 (inputs
12216 `(("libev" ,libev)))
12217 (home-page "http://pythonhosted.org/pyev/")
12218 (synopsis "Python libev interface")
12219 (description "Pyev provides a Python interface to libev.")
12220 (license license:gpl3)))
12221
12222(define-public python2-pyev
12223 (package-with-python2 python-pyev))
45b4f127
DM
12224
12225(define-public python-imagesize
12226 (package
12227 (name "python-imagesize")
12228 (version "0.7.1")
12229 (source
12230 (origin
12231 (method url-fetch)
12232 (uri (pypi-uri "imagesize" version))
12233 (sha256
12234 (base32
12235 "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha"))))
12236 (build-system python-build-system)
9422c98a
LF
12237 (arguments
12238 '(;; Test files are not distributed on PyPi:
12239 ;; https://github.com/shibukawa/imagesize_py/issues/7
12240 #:tests? #f))
45b4f127
DM
12241 (home-page "https://github.com/shibukawa/imagesize_py")
12242 (synopsis "Gets image size of files in variaous formats in Python")
12243 (description
12244 "This package allows determination of image size from
12245PNG, JPEG, JPEG2000 and GIF files in pure Python.")
12246 (license license:expat)
12247 (properties `((python2-variant . ,(delay python2-imagesize))))))
12248
12249(define-public python2-imagesize
12250 (let ((base (package-with-python2 (strip-python2-variant python-imagesize))))
12251 (package
12252 (inherit base)
12253 (native-inputs `(("python2-setuptools" ,python2-setuptools)
12254 ,@(package-native-inputs base))))))
2f6dd9cd
AI
12255
12256(define-public python-axolotl-curve25519
12257 (package
12258 (name "python-axolotl-curve25519")
12259 (version "0.1")
12260 (source
12261 (origin
12262 (method git-fetch)
12263 (uri (git-reference
12264 (url "git://github.com/tgalal/python-axolotl-curve25519")
12265 (commit "e4a9c4de0eae27223200579c58d1f8f6d20637e2")))
12266 (file-name (string-append name "-" version "-checkout"))
12267 (sha256
12268 (base32
12269 "0agap5q0hmvf6cwzjqc05kw53pjgf6942pcivpazksmg1vk400ra"))))
12270 (build-system python-build-system)
12271 (arguments
12272 `(;; Prevent creation of the egg. This works around
12273 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
12274 #:configure-flags '("--root=/")))
12275 (native-inputs
12276 `(("python-setuptools" ,python-setuptools)))
12277 (home-page "https://github.com/tgalal/python-axolotl-curve25519")
12278 (synopsis "Python wrapper for curve25519 library")
12279 (description "This is a python wrapper for the curve25519 library
12280with ed25519 signatures. The C code was pulled from
12281libaxolotl-android. At the moment this wrapper is meant for use by
12282python-axolotl.")
12283 (license (list license:gpl3 ; Most files
683cdbf5 12284 license:bsd-3)))) ; curve/curve25519-donna.c
2f6dd9cd
AI
12285
12286(define-public python2-axolotl-curve25519
12287 (package-with-python2 python-axolotl-curve25519))
06ff0837
AI
12288
12289(define-public python-axolotl
12290 (package
12291 (name "python-axolotl")
12292 (version "0.1.35")
12293 (source
12294 (origin
12295 (method url-fetch)
12296 (uri (string-append
12297 "https://github.com/tgalal/python-axolotl/archive/"
12298 version ".tar.gz"))
12299 (file-name (string-append name "-" version ".tar.gz"))
12300 (sha256
12301 (base32 "1z8d89p7v40p4bwywjm9h4z28fdvra79ddw06azlkrfjbl7dxmz8"))))
12302 (build-system python-build-system)
12303 (arguments
12304 `(#:phases
12305 (modify-phases %standard-phases
12306 ;; Don't install tests
12307 (add-before 'install 'remove-tests
12308 (lambda _
12309 (for-each delete-file-recursively
12310 '("axolotl/tests" "build/lib/axolotl/tests"))
12311 #t)))
12312 ;; Prevent creation of the egg. This works around
12313 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
12314 #:configure-flags '("--root=/")))
12315 (native-inputs
12316 `(("python-setuptools" ,python-setuptools)))
12317 (propagated-inputs
12318 `(("python-axolotl-curve25519" ,python-axolotl-curve25519)
12319 ("python-dateutil" ,python-dateutil)
12320 ("python-protobuf" ,python-protobuf)
12321 ("python-pycrypto" ,python-pycrypto)))
12322 (home-page "https://github.com/tgalal/python-axolotl")
12323 (synopsis "Python port of libaxolotl-android")
12324 (description "This is a python port of libaxolotl-android. This
12325is a ratcheting forward secrecy protocol that works in synchronous and
12326asynchronous messaging environments.")
12327 (license license:gpl3)))
12328
12329(define-public python2-axolotl
12330 (package-with-python2 python-axolotl))
e2fca490
DM
12331
12332(define-public python-termstyle
12333 (package
12334 (name "python-termstyle")
12335 (version "0.1.11")
12336 (source
12337 (origin
12338 (method url-fetch)
12339 (uri (pypi-uri "termstyle" version))
12340 (sha256
12341 (base32
12342 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
12343 (build-system python-build-system)
12344 (home-page "http://github.com/gfxmonk/termstyle")
12345 (synopsis "Console text coloring for Python")
12346 (description "This package provides console text coloring for Python.")
12347 (license license:bsd-3)))
1e6112d8
DM
12348
12349(define-public python-rednose
12350 (package
12351 (name "python-rednose")
12352 (version "1.2.1")
12353 (source
12354 (origin
12355 (method url-fetch)
12356 (uri (pypi-uri "rednose" version))
12357 (sha256
12358 (base32
12359 "0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0"))))
12360 (build-system python-build-system)
12361 (arguments
12362 `(#:phases
12363 (modify-phases %standard-phases
12364 (add-after 'unpack 'fix-deps
12365 (lambda _
12366 ;; See <https://github.com/JBKahn/rednose/issues/12>
12367 (substitute* "setup.py"
12368 (("python-termstyle") "termstyle"))
12369 #t)))))
12370 (propagated-inputs
12371 `(("python-colorama" ,python-colorama)
12372 ("python-termstyle" ,python-termstyle)))
12373 (native-inputs
12374 `(("python-six" ,python-six)
12375 ("python-nose" ,python-nose)))
12376 (home-page "https://github.com/JBKahn/rednose")
12377 (synopsis "Colored output for Python nosetests")
12378 (description "This package provides colored output for the
12379@command{nosetests} command of the Python Nose unit test framework.")
12380 (license license:bsd-3)))
0a7f17f0
DM
12381
12382(define-public python-flask-restplus
12383 (package
12384 (name "python-flask-restplus")
12385 (version "0.9.2")
12386 (source
12387 (origin
12388 (method url-fetch)
12389 (uri (pypi-uri "flask-restplus" version))
12390 (sha256
12391 (base32
12392 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
12393 (build-system python-build-system)
12394 (propagated-inputs
12395 `(("python-aniso8601" ,python-aniso8601)
12396 ("python-flask" ,python-flask)
12397 ("python-jsonschema" ,python-jsonschema)
12398 ("python-pytz" ,python-pytz)
12399 ("python-six" ,python-six)))
12400 (native-inputs
12401 `(("python-tzlocal" ,python-tzlocal)
12402 ("python-blinker" ,python-blinker)
12403 ("python-nose" ,python-nose)
12404 ("python-rednose" ,python-rednose)))
12405 (home-page "https://github.com/noirbizarre/flask-restplus")
12406 (synopsis "Framework for documented API development with Flask")
12407 (description "This package provides a framework for API development with
12408the Flask web framework in Python. It is similar to package
12409@code{python-flask-restful} but supports the @code{python-swagger}
12410documentation builder.")
12411 (license license:expat)))