1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
9 ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
10 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
11 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
12 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
13 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2015 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
17 ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
19 ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
21 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
22 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
23 ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
24 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
25 ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
26 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
27 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
28 ;;; Copyright © 2016 David Craven <david@craven.ch>
29 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
30 ;;; Copyright © 2016 Stefan Reichoer <stefan@xsteve.at>
31 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
32 ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
33 ;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
35 ;;; This file is part of GNU Guix.
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.
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.
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/>.
50 (define-module (gnu packages python)
51 #:use-module ((guix licenses) #:prefix license:)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages algebra)
54 #:use-module (gnu packages adns)
55 #:use-module (gnu packages attr)
56 #:use-module (gnu packages backup)
57 #:use-module (gnu packages bash)
58 #:use-module (gnu packages compression)
59 #:use-module (gnu packages databases)
60 #:use-module (gnu packages django)
61 #:use-module (gnu packages file)
62 #:use-module (gnu packages fontutils)
63 #:use-module (gnu packages gcc)
64 #:use-module (gnu packages ghostscript)
65 #:use-module (gnu packages gl)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages gstreamer)
68 #:use-module (gnu packages gtk)
69 #:use-module (gnu packages icu4c)
70 #:use-module (gnu packages image)
71 #:use-module (gnu packages imagemagick)
72 #:use-module (gnu packages libevent)
73 #:use-module (gnu packages libffi)
74 #:use-module (gnu packages linux)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages multiprecision)
77 #:use-module (gnu packages networking)
78 #:use-module (gnu packages ncurses)
79 #:use-module (gnu packages openstack)
80 #:use-module (gnu packages password-utils)
81 #:use-module (gnu packages pcre)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages protobuf)
85 #:use-module (gnu packages readline)
86 #:use-module (gnu packages sdl)
87 #:use-module (gnu packages statistics)
88 #:use-module (gnu packages tex)
89 #:use-module (gnu packages texinfo)
90 #:use-module (gnu packages tls)
91 #:use-module (gnu packages version-control)
92 #:use-module (gnu packages video)
93 #:use-module (gnu packages web)
94 #:use-module (gnu packages base)
95 #:use-module (gnu packages xml)
96 #:use-module (gnu packages xorg)
97 #:use-module (gnu packages xdisorg)
98 #:use-module (gnu packages zip)
99 #:use-module (gnu packages tcl)
100 #:use-module (gnu packages bdw-gc)
101 #:use-module (guix packages)
102 #:use-module (guix download)
103 #:use-module (guix git-download)
104 #:use-module (guix utils)
105 #:use-module (guix build-system gnu)
106 #:use-module (guix build-system cmake)
107 #:use-module (guix build-system python)
108 #:use-module (guix build-system trivial)
109 #:use-module (srfi srfi-1))
111 (define-public python-2.7
118 (uri (string-append "https://www.python.org/ftp/python/"
119 version "/Python-" version ".tar.xz"))
122 "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp"))
123 (patches (search-patches "python-2.7-search-paths.patch"
124 "python-2-deterministic-build-info.patch"
125 "python-2.7-site-prefixes.patch"
126 "python-2.7-source-date-epoch.patch"))
127 (modules '((guix build utils)))
128 ;; suboptimal to delete failing tests here, but if we delete them in the
129 ;; arguments then we need to make sure to strip out that phase when it
130 ;; gets inherited by python and python-minimal.
133 (for-each delete-file
134 '("Lib/test/test_compileall.py"
135 "Lib/test/test_ctypes.py" ; fails on mips64el
136 "Lib/test/test_distutils.py"
137 "Lib/test/test_import.py"
138 "Lib/test/test_shutil.py"
139 "Lib/test/test_socket.py"
140 "Lib/test/test_subprocess.py"))
143 "tk")) ;tkinter; adds 50 MiB to the closure
144 (build-system gnu-build-system)
148 ;; test_compileall test_distutils test_import test_shutil test_socket
151 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
152 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
153 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
154 ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl
155 ;; test_kqueue test_linuxaudiodev test_macos test_macostools
156 ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet
157 ;; test_socketserver test_startfile test_sunaudiodev test_timeout
158 ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet
159 ;; test_winreg test_winsound test_zipfile64
160 ;; 4 skips unexpected on linux2:
161 ;; test_bsddb test_bsddb3 test_gdb test_ioctl
164 (list "--enable-shared" ;allow embedding
165 "--with-system-ffi" ;build ctypes
166 "--with-ensurepip=install" ;install pip and setuptools
167 (string-append "LDFLAGS=-Wl,-rpath="
168 (assoc-ref %outputs "out") "/lib"))
170 #:modules ((ice-9 ftw) (ice-9 match)
171 (guix build utils) (guix build gnu-build-system))
173 (modify-phases %standard-phases
175 'configure 'patch-lib-shells
177 ;; Filter for existing files, since some may not exist in all
178 ;; versions of python that are built with this recipe.
179 (substitute* (filter file-exists?
180 '("Lib/subprocess.py"
182 "Lib/distutils/tests/test_spawn.py"
183 "Lib/test/test_subprocess.py"))
184 (("/bin/sh") (which "sh")))
186 ;; Use zero as the timestamp in .pyc files so that builds are
187 ;; deterministic. TODO: Remove it when this variable is set in
188 ;; gnu-build-system.scm.
189 (setenv "SOURCE_DATE_EPOCH" "1")
191 (add-before 'configure 'do-not-record-configure-flags
192 (lambda* (#:key configure-flags #:allow-other-keys)
193 ;; Remove configure flags from the installed '_sysconfigdata.py'
194 ;; and 'Makefile' so we don't end up keeping references to the
197 ;; Preserve at least '--with-system-ffi' since otherwise the
198 ;; thing tries to build libffi, fails, and we end up with a
199 ;; Python that lacks ctypes.
200 (substitute* "configure"
201 (("^CONFIG_ARGS=.*$")
202 (format #f "CONFIG_ARGS='~a'\n"
203 (if (member "--with-system-ffi" configure-flags)
210 ;; 'Lib/test/test_site.py' needs a valid $HOME
211 (setenv "HOME" (getcwd))
214 'unpack 'set-source-file-times-to-1980
215 ;; XXX One of the tests uses a ZIP library to pack up some of the
216 ;; source tree, and fails with "ZIP does not support timestamps
217 ;; before 1980". Work around this by setting the file times in the
218 ;; source tree to sometime in early 1980.
220 (let ((circa-1980 (* 10 366 24 60 60)))
221 (ftw "." (lambda (file stat flag)
222 (utime file circa-1980 circa-1980)
225 (add-after 'install 'remove-tests
226 ;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
227 ;; because these files are used by some libraries out there.
228 (lambda* (#:key outputs #:allow-other-keys)
229 (let ((out (assoc-ref outputs "out")))
230 (match (scandir (string-append out "/lib")
232 (string-prefix? "python" name)))
234 (let ((testdir (string-append out "/lib/" pythonX.Y
236 (with-directory-excursion testdir
237 (for-each delete-file-recursively
243 (string-prefix? "test_support."
245 (call-with-output-file "__init__.py" (const #t))
247 (add-before 'strip 'make-libraries-writable
248 (lambda* (#:key outputs #:allow-other-keys)
249 ;; Make .so files writable so they can be stripped.
250 (let ((out (assoc-ref outputs "out")))
251 (for-each (lambda (file)
253 (find-files (string-append out "/lib")
256 (add-after 'install 'move-tk-inter
257 (lambda* (#:key outputs #:allow-other-keys)
258 ;; When Tkinter support is built move it to a separate output so
259 ;; that the main output doesn't contain a reference to Tcl/Tk.
260 (let ((out (assoc-ref outputs "out"))
261 (tk (assoc-ref outputs "tk")))
263 (match (find-files out "tkinter.*\\.so")
265 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
266 ;; want it under TK/lib/pythonX.Y/site-packages.
267 (let* ((len (string-length out))
268 (target (string-append
271 (dirname (dirname tkinter.so))
274 (install-file tkinter.so target)
275 (delete-file tkinter.so)))))
280 ("libffi" ,libffi) ; for ctypes
281 ("sqlite" ,sqlite) ; for sqlite extension
283 ("readline" ,readline)
286 ("tk" ,tk))) ; for tkinter
288 `(("pkg-config" ,pkg-config)))
290 (list (search-path-specification
291 (variable "PYTHONPATH")
292 (files '("lib/python2.7/site-packages")))))
293 (home-page "https://www.python.org")
294 (synopsis "High-level, dynamically-typed programming language")
296 "Python is a remarkably powerful dynamic programming language that
297 is used in a wide variety of application domains. Some of its key
298 distinguishing features include: clear, readable syntax; strong
299 introspection capabilities; intuitive object orientation; natural
300 expression of procedural code; full modularity, supporting hierarchical
301 packages; exception-based error handling; and very high level dynamic
303 (license license:psfl)))
305 ;; Current 2.x version.
306 (define-public python-2 python-2.7)
308 (define-public python-3.5
309 (package (inherit python-2)
313 (uri (string-append "https://www.python.org/ftp/python/"
314 version "/Python-" version ".tar.xz"))
315 (patches (search-patches
316 "python-fix-tests.patch"
317 "python-3.5-fix-tests.patch"
318 "python-3-deterministic-build-info.patch"
319 "python-3-search-paths.patch"))
320 (patch-flags '("-p0"))
323 "0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400"))))
324 (arguments (substitute-keyword-arguments (package-arguments python-2)
327 (list (search-path-specification
328 (variable "PYTHONPATH")
329 (files (list (string-append "lib/python"
330 (version-major+minor version)
331 "/site-packages"))))))))
333 (define-public python-3.4
334 (package (inherit python-3.5)
338 (uri (string-append "https://www.python.org/ftp/python/"
339 version "/Python-" version ".tar.xz"))
340 (patches (search-patches
341 "python-fix-tests.patch"
342 "python-3.4-fix-tests.patch"
343 "python-3-deterministic-build-info.patch"
344 "python-3-search-paths.patch"))
345 (patch-flags '("-p0"))
348 "12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f"))))))
350 ;; Current 3.x version.
351 (define-public python-3 python-3.5)
353 ;; Current major version.
354 (define-public python python-3)
356 ;; Minimal variants of Python, mostly used to break the cycle between Tk and
357 ;; Python (Tk -> libxcb -> Python.)
359 (define-public python2-minimal
360 (package (inherit python-2)
361 (name "python-minimal")
364 (substitute-keyword-arguments (package-arguments python-2)
365 ((#:configure-flags cf)
366 `(append ,cf '("--without-system-ffi")))))
367 (inputs '()))) ;none of the optional dependencies
369 (define-public python-minimal
370 (package (inherit python)
371 (name "python-minimal")
374 ;; Build fails due to missing ctypes without libffi.
375 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
376 ;; zlib is required by 'zipimport', used by pip.
377 (inputs `(("libffi" ,libffi)
381 (define* (wrap-python3 python
383 (name (string-append (package-name python) "-wrapper")))
384 (package (inherit python)
387 (build-system trivial-build-system)
389 (inputs `(("bash" ,bash)))
390 (propagated-inputs `(("python" ,python)))
392 `(#:modules ((guix build utils))
395 (use-modules (guix build utils))
396 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
397 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
401 (symlink (string-append python old)
402 (string-append bin "/" new)))
403 `("python3" ,"pydoc3" ,"idle3" ,"pip3")
404 `("python" ,"pydoc" ,"idle" ,"pip"))
405 ;; python-config outputs search paths based upon its location,
406 ;; use a bash wrapper to avoid changing its outputs.
407 (let ((bash (string-append (assoc-ref %build-inputs "bash")
409 (old (string-append python "python3-config"))
410 (new (string-append bin "/python-config")))
411 (with-output-to-file new
413 (format #t "#!~a~%" bash)
414 (format #t "exec \"~a\" \"$@\"~%" old)
417 (synopsis "Wrapper for the Python 3 commands")
419 "This package provides wrappers for the commands of Python@tie{}3.x such
420 that they can be invoked under their usual name---e.g., @command{python}
421 instead of @command{python3}.")))
423 (define-public python-wrapper (wrap-python3 python))
424 (define-public python-minimal-wrapper (wrap-python3 python-minimal))
426 (define-public python-psutil
428 (name "python-psutil")
433 (uri (pypi-uri "psutil" version))
436 "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6"))))
437 (build-system python-build-system)
438 (home-page "https://www.github.com/giampaolo/psutil")
439 (synopsis "Library for retrieving information on running processes")
441 "psutil (Python system and process utilities) is a library for retrieving
442 information on running processes and system utilization (CPU, memory, disks,
443 network) in Python. It is useful mainly for system monitoring, profiling and
444 limiting process resources and management of running processes. It implements
445 many functionalities offered by command line tools such as: ps, top, lsof,
446 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
447 pidof, tty, taskset, pmap.")
448 (license license:bsd-3)))
450 (define-public python2-psutil
451 (package-with-python2 python-psutil))
453 (define-public python-passlib
455 (name "python-passlib")
460 (uri (pypi-uri "passlib" version))
463 "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"))))
464 (build-system python-build-system)
466 `(("python-nose" ,python-nose)))
468 `(("python-py-bcrypt" ,python-py-bcrypt)))
472 'check 'set-PYTHON_EGG_CACHE
473 ;; some tests require access to "$HOME/.cython"
474 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
476 (home-page "https://bitbucket.org/ecollins/passlib")
478 "Comprehensive password hashing framework")
480 "Passlib is a password hashing library for Python 2 & 3, which provides
481 cross-platform implementations of over 30 password hashing algorithms, as well
482 as a framework for managing existing password hashes. It's designed to be
483 useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
484 to providing full-strength password hashing for multi-user application.")
485 (license license:bsd-3)))
487 (define-public python2-passlib
488 (package-with-python2 python-passlib))
490 (define-public python-py-bcrypt
492 (name "python-py-bcrypt")
498 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
503 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
504 (build-system python-build-system)
505 (home-page "https://code.google.com/p/py-bcrypt")
507 "Bcrypt password hashing and key derivation")
509 "A python wrapper of OpenBSD's Blowfish password hashing code. This
510 system hashes passwords using a version of Bruce Schneier's Blowfish block
511 cipher with modifications designed to raise the cost of off-line password
512 cracking and frustrate fast hardware implementation. The computation cost of
513 the algorithm is parametised, so it can be increased as computers get faster.
514 The intent is to make a compromise of a password database less likely to
515 result in an attacker gaining knowledge of the plaintext passwords (e.g. using
517 ;; "sha2.c" is under BSD-3;
518 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
519 ;; the rest is under ISC.
520 (license (list license:isc license:bsd-3 license:bsd-4))))
522 (define-public python2-py-bcrypt
523 (package-with-python2 python-py-bcrypt))
526 (define-public python-paramiko
528 (name "python-paramiko")
533 (uri (pypi-uri "paramiko" version))
536 "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj"))))
537 (build-system python-build-system)
539 `(("python-pycrypto" ,python-pycrypto)
540 ("python-ecdsa" ,python-ecdsa)))
541 (home-page "http://www.paramiko.org/")
542 (synopsis "SSHv2 protocol library")
543 (description "Paramiko is a python implementation of the SSHv2 protocol,
544 providing both client and server functionality. While it leverages a Python C
545 extension for low level cryptography (PyCrypto), Paramiko itself is a pure
546 Python interface around SSH networking concepts.")
547 (license license:lgpl2.1+)))
549 (define-public python2-paramiko
550 (package-with-python2 python-paramiko))
553 (define-public python-httplib2
555 (name "python-httplib2")
560 (uri (pypi-uri "httplib2" version))
563 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
564 (build-system python-build-system)
565 (home-page "https://github.com/jcgregorio/httplib2")
566 (synopsis "Comprehensive HTTP client library")
568 "A comprehensive HTTP client library supporting many features left out of
569 other HTTP libraries.")
570 (license license:expat)))
572 (define-public python2-httplib2
573 (package-with-python2 python-httplib2))
575 (define-public python-ecdsa
577 (name "python-ecdsa")
583 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
588 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
589 (build-system python-build-system)
591 `(("openssl" ,openssl)))
593 "http://github.com/warner/python-ecdsa")
595 "ECDSA cryptographic signature library (pure python)")
597 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
598 Curve Digital Signature Algorithm), implemented purely in Python. With this
599 library, you can quickly create keypairs (signing key and verifying key), sign
600 messages, and verify the signatures. The keys and signatures are very short,
601 making them easy to handle and incorporate into other protocols.")
602 (license license:expat)))
604 (define-public python2-ecdsa
605 (package-with-python2 python-ecdsa))
607 (define-public python-ccm
614 (uri (pypi-uri "ccm" version))
617 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
618 (build-system python-build-system)
620 `(("python-pyyaml" ,python-pyyaml)
621 ("python-six" ,python-six)))
622 (home-page "https://github.com/pcmanus/ccm")
623 (synopsis "Cassandra Cluster Manager")
624 (description "A script/library to create, launch and remove an Apache
625 Cassandra cluster on localhost.")
626 (license license:asl2.0)))
628 (define-public python2-ccm
629 (package-with-python2 python-ccm))
631 (define-public python-pytz
638 (uri (pypi-uri "pytz" version ".tar.bz2"))
641 "1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1"))))
642 (build-system python-build-system)
643 (arguments `(#:tests? #f)) ; no test target
644 (home-page "http://pythonhosted.org/pytz")
645 (synopsis "Python timezone library")
647 "This library allows accurate and cross platform timezone calculations
648 using Python 2.4 or higher and provides access to the Olson timezone database.")
649 (license license:expat)))
651 (define-public python2-pytz
652 (package-with-python2 python-pytz))
655 (define-public python-babel
657 (name "python-babel")
662 (uri (pypi-uri "Babel" version))
665 "0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw"))))
666 (build-system python-build-system)
668 `(("python-pytz" ,python-pytz)))
669 (arguments `(#:tests? #f)) ; no test target
670 (home-page "http://babel.pocoo.org/")
672 "Tools for internationalizing Python applications")
674 "Babel is composed of two major parts:
675 - tools to build and work with gettext message catalogs
676 - a Python interface to the CLDR (Common Locale Data Repository), providing
677 access to various locale display names, localized number and date formatting,
679 (license license:bsd-3)))
681 (define-public python2-babel
682 (package-with-python2 python-babel))
684 (define-public python2-backport-ssl-match-hostname
686 (name "python2-backport-ssl-match-hostname")
692 "https://pypi.python.org/packages/source/b/"
693 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
697 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
698 (build-system python-build-system)
701 #:tests? #f)) ; no test target
702 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
703 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
705 "This backport brings the ssl.match_hostname() function to users of
706 earlier versions of Python. The function checks the hostname in the
707 certificate returned by the server to which a connection has been established,
708 and verifies that it matches the intended target hostname.")
709 (license license:psfl)))
711 (define-public python-h5py
718 (uri (pypi-uri "h5py" version))
721 "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj"))))
722 (build-system python-build-system)
724 `(#:tests? #f ; no test target
726 (modify-phases %standard-phases
727 (add-after 'unpack 'fix-hdf5-paths
728 (lambda* (#:key inputs #:allow-other-keys)
729 (let ((prefix (assoc-ref inputs "hdf5")))
730 (substitute* "setup_build.py"
731 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
732 (string-append "['" prefix "/lib" "']"))
733 (("'/opt/local/include', '/usr/local/include'")
734 (string-append "'" prefix "/include" "'")))
735 (substitute* "setup_configure.py"
736 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
737 (string-append "['" prefix "/lib" "']")))
740 `(("python-numpy" ,python-numpy)))
743 ("python-six" ,python-six)))
745 `(("python-cython" ,python-cython)
746 ("python-pkgconfig" ,python-pkgconfig)))
747 (home-page "http://www.h5py.org/")
748 (synopsis "Read and write HDF5 files from Python")
750 "The h5py package provides both a high- and low-level interface to the
751 HDF5 library from Python. The low-level interface is intended to be a
752 complete wrapping of the HDF5 API, while the high-level component supports
753 access to HDF5 files, datasets and groups using established Python and NumPy
755 (license license:bsd-3)
756 (properties `((python2-variant . ,(delay python2-h5py))))))
758 (define-public python2-h5py
759 (package-with-python2 (strip-python2-variant python-h5py)))
761 (define-public python-lockfile
763 (name "python-lockfile")
768 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
769 "lockfile-" version ".tar.gz"))
772 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
773 (build-system python-build-system)
774 (arguments '(#:test-target "check"))
776 `(("python-pbr" ,python-pbr)))
777 (home-page "https://launchpad.net/pylockfile")
778 (synopsis "Platform-independent file locking module")
780 "The lockfile package exports a LockFile class which provides a simple
781 API for locking files.")
782 (license license:expat)))
784 (define-public python2-lockfile
785 (package-with-python2 python-lockfile))
787 (define-public python-mock
794 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
795 "mock-" version ".tar.gz"))
798 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
799 (build-system python-build-system)
800 (arguments '(#:test-target "check"))
801 (home-page "http://code.google.com/p/mock/")
802 (synopsis "Python mocking and patching library for testing")
804 "Mock is a library for testing in Python. It allows you to replace parts
805 of your system under test with mock objects and make assertions about how they
807 (license license:expat)))
809 (define-public python2-mock
810 (package-with-python2 python-mock))
813 (define-public python-setuptools
815 (name "python-setuptools")
820 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
824 "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
825 (build-system python-build-system)
826 ;; FIXME: Tests require pytest, which itself relies on setuptools.
827 ;; One could bootstrap with an internal untested setuptools.
830 (home-page "https://pypi.python.org/pypi/setuptools")
832 "Library designed to facilitate packaging Python projects")
834 "Setuptools is a fully-featured, stable library designed to facilitate
835 packaging Python projects, where packaging includes:
836 Python package and module definitions,
837 distribution package metadata,
839 project installation,
840 platform-specific details,
842 (license license:psfl)))
844 (define-public python2-setuptools
845 (package-with-python2 python-setuptools))
848 (define-public python-pycrypto
850 (name "python-pycrypto")
855 (uri (string-append "https://pypi.python.org/packages/source/p/"
856 "pycrypto/pycrypto-" version ".tar.gz"))
859 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
860 (build-system python-build-system)
867 'build 'set-build-env
868 ;; pycrypto runs an autoconf configure script behind the scenes
870 (setenv "CONFIG_SHELL" (which "bash")))
872 (home-page "http://www.pycrypto.org/")
873 (synopsis "Cryptographic modules for Python")
875 "Pycrypto is a collection of both secure hash functions (such as SHA256
876 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
877 etc.). The package is structured to make adding new modules easy.")
878 (license license:public-domain)))
880 (define-public python2-pycrypto
881 (let ((pycrypto (package-with-python2 python-pycrypto)))
882 (package (inherit pycrypto)
884 `(("python" ,python-2)
887 (package-inputs pycrypto)))))))
889 (define-public python-keyring
891 (name "python-keyring")
896 (uri (pypi-uri "keyring" version))
899 "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx"))))
900 (build-system python-build-system)
902 `(("python-setuptools-scm" ,python-setuptools-scm)))
904 `(("python-pycrypto" ,python-pycrypto)))
906 `(#:tests? #f)) ;TODO: tests require pytest
907 (home-page "https://github.com/jaraco/keyring")
908 (synopsis "Store and access your passwords safely")
910 "The Python keyring lib provides a easy way to access the system keyring
911 service from python. It can be used in any application that needs safe
913 ;; "MIT" and PSF dual license
914 (license license:x11)))
916 (define-public python2-keyring
917 (package-with-python2 python-keyring))
919 (define-public python-six
926 (uri (pypi-uri "six" version))
929 "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
930 (build-system python-build-system)
931 (home-page "http://pypi.python.org/pypi/six/")
932 (synopsis "Python 2 and 3 compatibility utilities")
934 "Six is a Python 2 and 3 compatibility library. It provides utility
935 functions for smoothing over the differences between the Python versions with
936 the goal of writing Python code that is compatible on both Python versions.
937 Six supports every Python version since 2.5. It is contained in only one
938 Python file, so it can be easily copied into your project.")
939 (license license:x11)))
941 (define-public python2-six
942 (package-with-python2 python-six))
944 (define-public python-dateutil-2
946 (name "python-dateutil")
951 (uri (pypi-uri "python-dateutil" version))
954 "0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86"))))
955 (build-system python-build-system)
957 `(("python-six" ,python-six)))
958 (home-page "https://dateutil.readthedocs.io/en/stable/")
959 (synopsis "Extensions to the standard datetime module")
961 "The dateutil module provides powerful extensions to the standard
962 datetime module, available in Python 2.3+.")
963 (license license:bsd-3)))
965 (define-public python2-dateutil-2
966 (package-with-python2 python-dateutil-2))
968 (define-public python-dateutil
970 (name "python-dateutil")
971 (version "1.5") ; last version for python < 3
975 (uri (string-append "http://labix.org/download/python-dateutil/"
976 "python-dateutil-" version ".tar.gz"))
979 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
980 (build-system python-build-system)
981 (home-page "https://dateutil.readthedocs.io/en/stable/")
982 (synopsis "Extensions to the standard datetime module")
984 "The dateutil module provides powerful extensions to the standard
985 datetime module, available in Python 2.3+.")
986 (license license:psfl)))
988 (define-public python2-dateutil
989 (package-with-python2 python-dateutil))
991 (define-public python-parsedatetime
993 (name "python-parsedatetime")
998 (uri (pypi-uri "parsedatetime" version))
1001 "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p"))))
1002 (build-system python-build-system)
1004 `(("python-nose" ,python-nose)
1005 ("python-pyicu" ,python-pyicu)))
1006 (home-page "http://github.com/bear/parsedatetime/")
1008 "Parse human-readable date/time text")
1010 "Parse human-readable date/time text.")
1011 (license license:asl2.0)))
1013 (define-public python2-parsedatetime
1014 (package-with-python2 python-parsedatetime))
1016 (define-public python-pandas
1018 (name "python-pandas")
1024 "https://pypi.python.org/packages/11/09/"
1025 "e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/"
1026 "pandas-" version ".tar.gz"))
1028 (base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j"))))
1029 (build-system python-build-system)
1031 `(("python-numpy" ,python-numpy)
1032 ("python-pytz" ,python-pytz)
1033 ("python-dateutil" ,python-dateutil-2)))
1035 `(("python-nose" ,python-nose)))
1036 (home-page "http://pandas.pydata.org")
1037 (synopsis "Data structures for data analysis, time series, and statistics")
1039 "Pandas is a Python package providing fast, flexible, and expressive data
1040 structures designed to make working with structured (tabular,
1041 multidimensional, potentially heterogeneous) and time series data both easy
1042 and intuitive. It aims to be the fundamental high-level building block for
1043 doing practical, real world data analysis in Python.")
1044 (license license:bsd-3)))
1046 (define-public python2-pandas
1047 (package-with-python2 python-pandas))
1049 (define-public python-tzlocal
1051 (name "python-tzlocal")
1056 (uri (pypi-uri "tzlocal" version))
1059 "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb"))))
1060 (build-system python-build-system)
1062 `(("python-pytz" ,python-pytz)))
1063 (home-page "https://github.com/regebro/tzlocal")
1065 "Local timezone information for Python")
1067 "Tzlocal returns a tzinfo object with the local timezone information.
1068 This module attempts to fix a glaring hole in pytz, that there is no way to
1069 get the local timezone information, unless you know the zoneinfo name, and
1070 under several distributions that's hard or impossible to figure out.")
1071 (license license:cc0)))
1073 (define-public python2-pysqlite
1075 (name "python2-pysqlite")
1080 (uri (pypi-uri "pysqlite" version))
1083 "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
1084 (build-system python-build-system)
1086 `(("sqlite" ,sqlite)))
1088 `(#:python ,python-2 ; incompatible with Python 3
1089 #:tests? #f)) ; no test target
1090 (home-page "http://github.com/ghaering/pysqlite")
1091 (synopsis "SQLite bindings for Python")
1093 "Pysqlite provides SQLite bindings for Python that comply to the
1094 Database API 2.0T.")
1095 (license license:zlib)))
1098 (define-public python2-mechanize
1100 (name "python2-mechanize")
1105 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1109 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1110 (build-system python-build-system)
1112 `(#:python ,python-2 ; apparently incompatible with Python 3
1114 ;; test fails with message
1115 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1116 ;; (python-3.3.2) or
1117 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1119 ;; The source code is from March 2011 and probably not up-to-date
1120 ;; with respect to python unit tests.
1121 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1123 "Stateful programmatic web browsing in Python")
1125 "Mechanize implements stateful programmatic web browsing in Python,
1126 after Andy Lester’s Perl module WWW::Mechanize.")
1127 (license (license:non-copyleft
1129 "See COPYING in the distribution."))))
1132 (define-public python-simplejson
1134 (name "python-simplejson")
1139 (uri (pypi-uri "simplejson" version))
1142 "0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m"))))
1143 (build-system python-build-system)
1144 (home-page "http://simplejson.readthedocs.org/en/latest/")
1146 "Json library for Python")
1148 "JSON (JavaScript Object Notation) is a subset of JavaScript
1149 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1152 Simplejson exposes an API familiar to users of the standard library marshal
1153 and pickle modules. It is the externally maintained version of the json
1154 library contained in Python 2.6, but maintains compatibility with Python 2.5
1155 and (currently) has significant performance advantages, even without using
1156 the optional C extension for speedups. Simplejson is also supported on
1158 (license license:x11)))
1160 (define-public python2-simplejson
1161 (package-with-python2 python-simplejson))
1164 (define-public python-pyicu
1166 (name "python-pyicu")
1171 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1175 "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
1176 (build-system python-build-system)
1178 `(("icu4c" ,icu4c)))
1179 (home-page "http://pyicu.osafoundation.org/")
1180 (synopsis "Python extension wrapping the ICU C++ API")
1182 "PyICU is a python extension wrapping the ICU C++ API.")
1183 (license license:x11)))
1185 (define-public python2-pyicu
1186 (package-with-python2 python-pyicu))
1188 (define-public python2-dogtail
1189 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1190 ;; spaces in indentation" with Python 3.
1192 (name "python2-dogtail")
1197 "https://fedorahosted.org/released/dogtail/dogtail-"
1201 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1202 (build-system python-build-system)
1203 (arguments `(#:python ,python-2
1204 #:tests? #f)) ; invalid command "test"
1205 (home-page "https://fedorahosted.org/dogtail/")
1206 (synopsis "GUI test tool and automation framework written in Python")
1208 "Dogtail is a GUI test tool and automation framework written in Python.
1209 It uses Accessibility (a11y) technologies to communicate with desktop
1210 applications. dogtail scripts are written in Python and executed like any
1211 other Python program.")
1212 (license license:gpl2+)))
1214 (define-public python2-empy
1216 (name "python2-empy")
1220 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1224 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1225 (build-system python-build-system)
1227 `(#:python ,python-2
1228 #:phases (alist-replace
1231 (zero? (system* "./test.sh")))
1233 (home-page "http://www.alcyone.com/software/empy/")
1234 (synopsis "Templating system for Python")
1236 "EmPy is a system for embedding Python expressions and statements in
1237 template text; it takes an EmPy source file, processes it, and produces
1238 output. This is accomplished via expansions, which are special signals to the
1239 EmPy system and are set off by a special prefix (by default the at sign, @@).
1240 EmPy can expand arbitrary Python expressions and statements in this way, as
1241 well as a variety of special forms. Textual data not explicitly delimited in
1242 this way is sent unaffected to the output, allowing Python to be used in
1243 effect as a markup language. Also supported are callbacks via hooks,
1244 recording and playback via diversions, and dynamic, chainable filters. The
1245 system is highly configurable via command line options and embedded
1247 (license license:lgpl2.1+)))
1249 (define-public python2-element-tree
1251 (name "python2-element-tree")
1256 "http://effbot.org/media/downloads/elementtree-"
1257 version "-20050316.tar.gz"))
1260 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1261 (build-system python-build-system)
1263 `(#:python ,python-2 ; seems to be part of Python 3
1264 #:tests? #f)) ; no 'test' sub-command
1265 (synopsis "Toolkit for XML processing in Python")
1267 "ElementTree is a Python library supporting lightweight XML processing.")
1268 (home-page "http://effbot.org/zone/element-index.htm")
1269 (license (license:x11-style
1270 "http://docs.python.org/2/license.html"
1271 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
1273 (define-public python2-pybugz
1275 (name "python2-pybugz")
1280 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1284 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1285 (patches (search-patches "pybugz-stty.patch"
1286 "pybugz-encode-error.patch"))))
1287 (build-system python-build-system)
1289 `(#:python ,python-2 ; SyntaxError with Python 3
1290 #:tests? #f)) ; no 'test' sub-command
1292 `(("element-tree" ,python2-element-tree)))
1293 (synopsis "Python and command-line interface to Bugzilla")
1295 "PyBugz is a Python library and command-line tool to query the Bugzilla
1296 bug tracking system. It is meant as an aid to speed up interaction with the
1298 (home-page "http://www.liquidx.net/pybugz/")
1299 (license license:gpl2)))
1301 (define-public python-enum34
1303 (name "python-enum34")
1308 (uri (pypi-uri "enum34" version))
1311 "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
1312 (build-system python-build-system)
1317 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1319 (home-page "https://pypi.python.org/pypi/enum34")
1320 (synopsis "Backported Python 3.4 Enum")
1322 "Enum34 is the new Python stdlib enum module available in Python 3.4
1323 backported for previous versions of Python from 2.4 to 3.3.")
1324 (license license:bsd-3)))
1326 (define-public python2-enum34
1327 (package-with-python2 python-enum34))
1329 (define-public python-parse-type
1331 (name "python-parse-type")
1336 (uri (string-append "https://pypi.python.org/packages/source/p/"
1337 "parse_type/parse_type-" version ".tar.gz"))
1340 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1341 (build-system python-build-system)
1343 `(("python-six" ,python-six)
1344 ("python-parse" ,python-parse)))
1345 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1346 (home-page "https://github.com/jenisys/parse_type")
1347 (synopsis "Extended parse module")
1349 "Parse_type extends the python parse module.")
1350 (license license:bsd-3)))
1352 (define-public python-parse
1354 (name "python-parse")
1359 (uri (pypi-uri "parse" version))
1362 "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi"))
1363 (patches (search-patches "python-parse-too-many-fields.patch"))))
1364 (build-system python-build-system)
1367 (modify-phases %standard-phases
1369 (lambda _ (zero? (system* "python" "test_parse.py")))))))
1370 (home-page "https://github.com/r1chardj0n3s/parse")
1371 (synopsis "Parse strings")
1373 "Parse strings using a specification based on the Python format()
1375 (license license:x11)))
1378 (define-public scons
1384 (uri (string-append "mirror://sourceforge/scons/scons/" version
1385 "/scons-" version ".tar.gz"))
1388 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
1389 (build-system python-build-system)
1391 ;; With Python 3.x, fails to build with a syntax error.
1392 `(#:python ,python-2
1393 #:tests? #f)) ; no 'python setup.py test' command
1394 (home-page "http://scons.org/")
1395 (synopsis "Software construction tool written in Python")
1397 "SCons is a software construction tool. Think of SCons as an improved,
1398 cross-platform substitute for the classic Make utility with integrated
1399 functionality similar to autoconf/automake and compiler caches such as ccache.
1400 In short, SCons is an easier, more reliable and faster way to build
1402 (license license:x11)))
1404 (define-public python-extras
1406 (name "python-extras")
1412 "https://pypi.python.org/packages/source/e/extras/extras-"
1416 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1417 (build-system python-build-system)
1419 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1421 (home-page "https://github.com/testing-cabal/extras")
1422 (synopsis "Useful extensions to the Python standard library")
1424 "Extras is a set of extensions to the Python standard library.")
1425 (license license:expat)))
1427 (define-public python2-extras
1428 (package-with-python2 python-extras))
1430 (define-public python-mimeparse
1432 (name "python-mimeparse")
1438 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1442 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1443 (build-system python-build-system)
1445 '(#:tests? #f)) ; no setup.py test command
1447 "https://github.com/dbtsai/python-mimeparse")
1448 (synopsis "Python library for parsing MIME types")
1450 "Mimeparse provides basic functions for parsing MIME type names and
1451 matching them against a list of media-ranges.")
1452 (license license:expat)))
1454 (define-public python2-mimeparse
1455 (package-with-python2 python-mimeparse))
1457 (define-public python-nose
1459 (name "python-nose")
1464 (uri (pypi-uri "nose" version))
1467 "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
1468 (build-system python-build-system)
1470 '(#:tests? #f)) ; FIXME: test suite fails
1471 (home-page "http://readthedocs.org/docs/nose/")
1472 (synopsis "Python testing library")
1474 "Nose extends the unittest library to make testing easier.")
1475 (license license:lgpl2.0+)))
1477 (define-public python2-nose
1478 (package-with-python2 python-nose))
1480 (define-public python-nose2
1482 (name "python-nose2")
1487 (uri (pypi-uri "nose2" version))
1490 "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7"))))
1491 (build-system python-build-system)
1492 (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector'
1494 `(("python-cov-core" ,python-cov-core)
1495 ("python-pytest-cov" ,python-pytest-cov)
1496 ("python-six" ,python-six)))
1497 (home-page "https://github.com/nose-devs/nose2")
1498 (synopsis "Next generation of nicer testing for Python")
1500 "Nose2 is the next generation of nicer testing for Python, based on the
1501 plugins branch of unittest2. Nose2 aims to improve on nose by providing a
1502 better plugin api, being easier for users to configure, and simplifying internal
1503 interfaces and processes.")
1504 (license license:bsd-2)))
1506 (define-public python2-nose2
1507 (package-with-python2 python-nose2))
1509 (define-public python-unittest2
1511 (name "python-unittest2")
1517 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1521 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1522 (build-system python-build-system)
1523 (home-page "http://pypi.python.org/pypi/unittest2")
1524 (synopsis "Python unit testing library")
1526 "Unittest2 is a replacement for the unittest module in the Python
1528 (license license:psfl)))
1530 (define-public python2-unittest2
1531 (package (inherit python-unittest2)
1532 (name "python2-unittest2")
1538 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1542 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1544 `(#:python ,python-2
1545 #:tests? #f)))) ; no setup.py test command
1547 (define-public python-pafy
1549 (name "python-pafy")
1554 (uri (pypi-uri "pafy" version))
1557 "1ckvrypyvb7jbqlgwdz0y337ajagjv7dgxyns326nqwypn1wpq0i"))))
1558 (build-system python-build-system)
1560 ;; Youtube-dl is a python package which is imported in the file
1561 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
1562 `(("youtube-dl" ,youtube-dl)))
1563 (home-page "https://np1.github.io/pafy/")
1564 (synopsis "Retrieve YouTube content and metadata")
1566 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
1567 (license license:lgpl3+)))
1569 (define-public python-py
1576 (uri (pypi-uri "py" version))
1579 "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
1580 (build-system python-build-system)
1581 (home-page "http://pylib.readthedocs.org/")
1582 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1584 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1585 code introspection, and logging.")
1586 (license license:expat)))
1588 (define-public python2-py
1589 (package-with-python2 python-py))
1591 (define-public python-pytest
1593 (name "python-pytest")
1599 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1603 "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm"))
1604 (modules '((guix build utils)))
1606 ;; One of the tests involves the /usr directory, so it fails.
1607 '(substitute* "testing/test_argcomplete.py"
1608 (("def test_remove_dir_prefix\\(self\\):")
1609 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1610 (build-system python-build-system)
1612 `(("python-py" ,python-py)
1613 ("python-nose" ,python-nose)
1614 ("python-mock" ,python-mock)))
1615 (home-page "http://pytest.org")
1616 (synopsis "Python testing library")
1618 "Pytest is a testing tool that provides auto-discovery of test modules
1619 and functions, detailed info on failing assert statements, modular fixtures,
1620 and many external plugins.")
1621 (license license:expat)))
1623 (define-public python2-pytest
1624 (package-with-python2 python-pytest))
1626 ;; This package is used by Borg until we can upgrade all our Python packages to
1627 ;; use a more recent pytest.
1628 (define-public python-pytest-2.9.2
1630 (inherit python-pytest)
1631 (name "python-pytest")
1635 (uri (pypi-uri "pytest" version))
1638 "1n6igbc1b138wx1q5gca4pqw1j6nsyicfxds5n0b5989kaxqmh8j"))))
1641 (modify-phases %standard-phases
1642 (add-before 'check 'disable-invalid-test
1644 (substitute* "testing/test_argcomplete.py"
1645 (("def test_remove_dir_prefix" line)
1646 (string-append "@pytest.mark.skip"
1647 "(reason=\"Assumes that /usr exists.\")\n "
1651 (define-public python-pytest-cov
1653 (name "python-pytest-cov")
1658 (uri (pypi-uri "pytest-cov" version))
1661 "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
1662 (build-system python-build-system)
1664 `(("python-coverage" ,python-coverage)
1665 ("python-pytest" ,python-pytest)))
1666 (home-page "https://github.com/pytest-dev/pytest-cov")
1667 (synopsis "Pytest plugin for measuring coverage")
1669 "Pytest-cov produces coverage reports. It supports centralised testing and
1670 distributed testing in both @code{load} and @code{each} modes. It also
1671 supports coverage of subprocesses.")
1672 (license license:expat)))
1674 (define-public python2-pytest-cov
1675 (package-with-python2 python-pytest-cov))
1677 (define-public python-pytest-runner
1679 (name "python-pytest-runner")
1684 (uri (pypi-uri "pytest-runner" version))
1687 "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
1688 (build-system python-build-system)
1691 (modify-phases %standard-phases
1692 ;; The fancy way of setting the version with setuptools_scm does not
1693 ;; seem to work here.
1694 (add-after 'unpack 'set-version
1696 (substitute* "docs/conf.py"
1697 (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
1698 (string-append "version = \"" ,version "\"")))
1701 `(("python-pytest" ,python-pytest)
1702 ("python-setuptools-scm" ,python-setuptools-scm)))
1703 (home-page "https://github.com/pytest-dev/pytest-runner")
1704 (synopsis "Invoke py.test as a distutils command")
1706 "This package provides a @command{pytest-runner} command that
1707 @file{setup.py} files can use to run tests.")
1708 (license license:expat)))
1710 (define-public python2-pytest-runner
1711 (package-with-python2 python-pytest-runner))
1713 (define-public python-pytest-mock
1715 (name "python-pytest-mock")
1720 (uri (pypi-uri "pytest-mock" version ".zip"))
1723 "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"))))
1724 (build-system python-build-system)
1726 `(("unzip" ,unzip)))
1728 `(("python-py" ,python-py)
1729 ("python-pytest" ,python-pytest)))
1730 (home-page "https://github.com/pytest-dev/pytest-mock/")
1731 (synopsis "Thin-wrapper around the mock package for easier use with py.test")
1733 "This plugin installs a @code{mocker} fixture which is a thin-wrapper
1734 around the patching API provided by the @code{mock} package, but with the
1735 benefit of not having to worry about undoing patches at the end of a test.
1736 The mocker fixture has the same API as @code{mock.patch}, supporting the
1738 (properties `((python2-variant . ,(delay python2-pytest-mock))))
1739 (license license:expat)))
1741 (define-public python2-pytest-mock
1742 (let ((base (package-with-python2
1743 (strip-python2-variant python-pytest-mock))))
1744 (package (inherit base)
1746 `(("python2-mock" ,python2-mock)
1747 ,@(package-propagated-inputs base))))))
1749 (define-public python-pytest-xdist
1751 (name "python-pytest-xdist")
1756 (uri (pypi-uri "pytest-xdist" version ".zip"))
1759 "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
1760 (modules '((guix build utils)))
1763 ;; Remove pre-compiled .pyc files from source.
1764 (for-each delete-file-recursively
1765 (find-files "." "__pycache__" #:directories? #t))
1766 (for-each delete-file (find-files "." "\\.pyc$"))
1768 (build-system python-build-system)
1771 ("python-setuptools-scm" ,python-setuptools-scm)))
1773 `(("python-apipkg" ,python-apipkg)
1774 ("python-execnet" ,python-execnet)
1775 ("python-pytest" ,python-pytest)
1776 ("python-py" ,python-py)))
1778 "https://github.com/pytest-dev/pytest-xdist")
1780 "Plugin for py.test with distributed testing and loop-on-failing modes")
1782 "The pytest-xdist plugin extends py.test with some unique test execution
1783 modes: parallelization, running tests in boxed subprocesses, the ability
1784 to run tests repeatedly when failed, and the ability to run tests on multiple
1785 Python interpreters or platforms. It uses rsync to copy the existing
1786 program code to a remote location, executes there, and then syncs the
1788 (license license:expat)))
1790 (define-public python2-pytest-xdist
1791 (package-with-python2 python-pytest-xdist))
1793 (define-public python-scripttest
1795 (name "python-scripttest")
1801 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1805 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1806 (build-system python-build-system)
1808 `(("python-pytest" ,python-pytest)))
1809 (home-page "http://pythonpaste.org/scripttest/")
1810 (synopsis "Python library to test command-line scripts")
1811 (description "Scripttest is a Python helper library for testing
1812 interactive command-line applications. With it you can run a script in a
1813 subprocess and see the output as well as any file modifications.")
1814 (license license:expat)))
1816 (define-public python2-scripttest
1817 (package-with-python2 python-scripttest))
1819 (define-public python-testtools
1821 (name "python-testtools")
1827 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1831 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1832 (build-system python-build-system)
1834 `(("python-mimeparse" ,python-mimeparse)
1835 ("python-extras" ,python-extras)))
1836 (home-page "https://github.com/testing-cabal/testtools")
1838 "Extensions to the Python standard library unit testing framework")
1840 "Testtools extends the Python standard library unit testing framework to
1841 provide matchers, more debugging information, and cross-Python
1843 (license license:psfl)))
1845 (define-public python2-testtools
1846 (package-with-python2 python-testtools))
1848 (define-public python-testscenarios
1850 (name "python-testscenarios")
1856 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1860 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1861 (build-system python-build-system)
1863 `(("python-testtools" ,python-testtools)
1864 ("python-mimeparse" ,python-mimeparse)))
1865 (home-page "https://launchpad.net/testscenarios")
1866 (synopsis "Pyunit extension for dependency injection")
1868 "Testscenarios provides clean dependency injection for Python unittest
1870 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
1872 (define-public python2-testscenarios
1873 (package-with-python2 python-testscenarios))
1875 (define-public python-testresources
1877 (name "python-testresources")
1883 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1887 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1888 (build-system python-build-system)
1889 (home-page "https://launchpad.net/testresources")
1891 "Pyunit extension for managing test resources")
1893 "Testresources is an extension to Python's unittest to allow declarative
1894 use of resources by test cases.")
1895 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
1897 (define-public python2-testresources
1898 (package-with-python2 python-testresources))
1900 (define-public python-subunit
1902 (name "python-subunit")
1908 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1912 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1913 (build-system python-build-system)
1915 `(("python-testtools" ,python-testtools)
1916 ("python-mimeparse" ,python-mimeparse)
1917 ("python-testscenarios" ,python-testscenarios)))
1918 (home-page "http://launchpad.net/subunit")
1919 (synopsis "Python implementation of the subunit protocol")
1921 "Python-subunit is a Python implementation of the subunit test streaming
1923 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
1925 (define-public python2-subunit
1926 (package-with-python2 python-subunit))
1928 ;; Recent versions of python-fixtures need a recent version of python-pbr,
1929 ;; which needs a recent version of python-fixtures. To fix this circular
1930 ;; dependency, we keep old versions of python-fixtures and python-pbr to
1931 ;; bootstrap the whole thing:
1932 ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
1933 ;; - python-pbr-0.11 is used to build python-fixtures
1934 ;; - python-fixtures is used to build python-pbr
1935 (define-public python-fixtures-0.3.16
1937 (name "python-fixtures")
1943 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1947 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1948 (build-system python-build-system)
1950 '(#:tests? #f)) ; no setup.py test command
1951 (home-page "https://launchpad.net/python-fixtures")
1952 (synopsis "Python test fixture library")
1954 "Fixtures provides a way to create reusable state, useful when writing
1956 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
1958 (define-public python2-fixtures-0.3.16
1959 (package-with-python2 python-fixtures-0.3.16))
1961 (define-public python-pbr-0.11
1969 "https://pypi.python.org/packages/source/p/pbr/pbr-"
1973 "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
1974 (build-system python-build-system)
1976 `(#:tests? #f)) ;; Most tests seem to use the Internet.
1978 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)))
1979 (home-page "https://launchpad.net/pbr")
1980 (synopsis "Change the default behavior of Python’s setuptools")
1982 "Python Build Reasonableness (PBR) is a library that injects some useful
1983 and sensible default behaviors into your setuptools run.")
1984 (license license:asl2.0)))
1986 (define-public python2-pbr-0.11
1987 (package-with-python2 python-pbr-0.11))
1989 (define-public python-pbr
1997 "https://pypi.python.org/packages/source/p/pbr/pbr-"
2002 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
2003 (build-system python-build-system)
2005 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2007 `(("python-testrepository" ,python-testrepository)
2008 ("git" ,git))) ;; pbr actually uses the "git" binary.
2010 `(("python-fixtures" ,python-fixtures)
2011 ("python-mimeparse" ,python-mimeparse)
2012 ("python-mock" ,python-mock)
2013 ("python-six" ,python-six)
2014 ("python-sphinx" ,python-sphinx)
2015 ("python-testrepository" ,python-testrepository)
2016 ("python-testresources" ,python-testresources)
2017 ("python-testscenarios" ,python-testscenarios)
2018 ("python-testtools" ,python-testtools)
2019 ("python-virtualenv" ,python-virtualenv)))
2020 (home-page "https://launchpad.net/pbr")
2021 (synopsis "Change the default behavior of Python’s setuptools")
2023 "Python Build Reasonableness (PBR) is a library that injects some useful
2024 and sensible default behaviors into your setuptools run.")
2025 (license license:asl2.0)))
2027 (define-public python2-pbr
2028 (package-with-python2 python-pbr))
2030 (define-public python-fixtures
2032 (name "python-fixtures")
2037 (uri (pypi-uri "fixtures" version))
2040 "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
2041 (build-system python-build-system)
2043 `(("python-six" ,python-six)
2044 ("python-pbr-0.11" ,python-pbr-0.11)))
2047 ("python-testtools" ,python-testtools)))
2049 '(#:tests? #f)) ; no setup.py test command
2050 (home-page "https://launchpad.net/python-fixtures")
2051 (synopsis "Python test fixture library")
2053 "Fixtures provides a way to create reusable state, useful when writing
2055 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
2057 (define-public python2-fixtures
2058 (package-with-python2 python-fixtures))
2060 (define-public python-testrepository
2062 (name "python-testrepository")
2068 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
2072 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
2073 (build-system python-build-system)
2075 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
2076 ("python-testtools" ,python-testtools)))
2078 `(("python-subunit" ,python-subunit)
2079 ("python-mimeparse" ,python-mimeparse)))
2080 (home-page "https://launchpad.net/testrepository")
2081 (synopsis "Database for Python test results")
2082 (description "Testrepository provides a database of test results which can
2083 be used as part of a developer's workflow to check things such as what tests
2084 have failed since the last commit or what tests are currently failing.")
2085 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
2087 (define-public python2-testrepository
2088 (package-with-python2 python-testrepository))
2090 (define-public python-coverage
2092 (name "python-coverage")
2097 (uri (pypi-uri "coverage" version))
2100 "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1"))))
2101 (build-system python-build-system)
2102 (home-page "http://nedbatchelder.com/code/coverage")
2103 (synopsis "Code coverage measurement for Python")
2105 "Coverage measures code coverage, typically during test execution. It
2106 uses the code analysis tools and tracing hooks provided in the Python standard
2107 library to determine which lines are executable, and which have been
2109 (license license:bsd-3)))
2111 (define-public python2-coverage
2112 (package-with-python2 python-coverage))
2114 (define-public python-cov-core
2116 (name "python-cov-core")
2121 (uri (pypi-uri "cov-core" version))
2124 "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a"))))
2125 (build-system python-build-system)
2127 `(("python-coverage" ,python-coverage)))
2128 (home-page "https://github.com/schlamar/cov-core")
2129 (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov")
2131 "This is a library package for use by pytest-cov, nose-cov and nose2-cov.
2132 It is useful for developing coverage plugins for these testing frameworks.")
2133 (license license:expat)))
2135 (define-public python2-cov-core
2136 (package-with-python2 python-cov-core))
2138 (define-public python-discover
2140 (name "python-discover")
2146 "https://pypi.python.org/packages/source/d/discover/discover-"
2150 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
2151 (build-system python-build-system)
2152 (home-page "http://pypi.python.org/pypi/discover/")
2154 "Python test discovery for unittest")
2156 "Discover provides test discovery for unittest, a feature that has been
2157 backported from Python 2.7 for Python 2.4+.")
2158 (license license:bsd-3)))
2160 (define-public python2-discover
2161 (package-with-python2 python-discover))
2163 (define-public behave
2169 (uri (pypi-uri "behave" version ".tar.bz2"))
2172 "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c"))))
2173 (build-system python-build-system)
2175 `(("python-six" ,python-six)
2176 ("python-parse" ,python-parse)
2177 ("python-parse-type" ,python-parse-type)))
2178 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
2180 (home-page "http://github.com/behave/behave")
2181 (synopsis "Python behavior-driven development")
2183 "Behave is a tool for behavior-driven development in python.
2184 Behavior-driven development (or BDD) is an agile software development
2185 technique that encourages collaboration between developers, QA and
2186 non-technical or business participants in a software project. Behave uses
2187 tests written in a natural language style, backed up by Python code.")
2188 (license license:x11)))
2190 (define-public python-exif-read
2192 (name "python-exif-read")
2196 (uri (pypi-uri "ExifRead" version))
2199 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2200 (build-system python-build-system)
2201 (arguments `(#:tests? #f)) ; no tests
2202 (home-page "https://github.com/ianare/exif-py")
2203 (synopsis "Python library to extract EXIF data from image files")
2205 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2207 (license license:bsd-3)))
2209 (define-public python2-exif-read
2210 (package-with-python2 python-exif-read))
2212 (define-public python-pyld
2214 (name "python-pyld")
2218 (uri (pypi-uri "PyLD" version))
2221 "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad"))))
2222 (build-system python-build-system)
2223 (arguments `(#:tests? #f)) ; no tests
2224 (home-page "http://github.com/digitalbazaar/pyld")
2225 (synopsis "Python implementation of the JSON-LD specification")
2227 "PyLD is an implementation of the JSON-LD specification.")
2228 (license license:bsd-3)))
2230 (define-public python2-pyld
2231 (package-with-python2 python-pyld))
2233 (define-public python-certifi
2235 (name "python-certifi")
2236 (version "2016.8.31")
2239 (uri (pypi-uri "certifi" version))
2242 "06c9dcyv8ss050gkv5xjivbxhm6qm0s9vzy4r33wqabgv118lw7p"))))
2243 (build-system python-build-system)
2244 (arguments `(#:tests? #f)) ; no tests
2245 (home-page "http://python-requests.org/")
2246 (synopsis "Python CA certificate bundle")
2248 "Certifi is a Python library that contains a CA certificate bundle, which
2249 is used by the Requests library to verify HTTPS requests.")
2250 (license license:asl2.0)))
2252 (define-public python2-certifi
2253 (package-with-python2 python-certifi))
2255 (define-public python-click
2257 (name "python-click")
2262 (uri (pypi-uri "click" version))
2265 "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc"))))
2266 (build-system python-build-system)
2269 (modify-phases %standard-phases
2270 (add-after 'unpack 'fix-paths
2271 (lambda* (#:key inputs #:allow-other-keys)
2272 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
2273 "cross-libc" "libc"))))
2274 (substitute* "click/_unicodefun.py"
2276 (string-append "'" glibc "/bin/locale'"))))
2278 (home-page "http://click.pocoo.org")
2279 (synopsis "Command line library for Python")
2281 "Click is a Python package for creating command line interfaces in a
2282 composable way with as little code as necessary. Its name stands for
2283 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2284 with sensible defaults out of the box.")
2285 (license license:bsd-3)))
2287 (define-public python2-click
2288 (package-with-python2 python-click))
2290 (define-public python-wheel
2292 (name "python-wheel")
2297 (uri (pypi-uri "wheel" version))
2300 "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
2301 (build-system python-build-system)
2303 `(("python-jsonschema" ,python-jsonschema)
2304 ("python-pytest-cov" ,python-pytest-cov)))
2305 (home-page "https://bitbucket.org/pypa/wheel/")
2306 (synopsis "Format for built Python packages")
2308 "A wheel is a ZIP-format archive with a specially formatted filename and
2309 the @code{.whl} extension. It is designed to contain all the files for a PEP
2310 376 compatible install in a way that is very close to the on-disk format. Many
2311 packages will be properly installed with only the @code{Unpack} step and the
2312 unpacked archive preserves enough information to @code{Spread} (copy data and
2313 scripts to their final locations) at any later time. Wheel files can be
2314 installed with a newer @code{pip} or with wheel's own command line utility.")
2315 (license license:expat)
2316 (properties `((python2-variant . ,(delay python2-wheel))))))
2318 (define-public python2-wheel
2319 (let ((wheel (package-with-python2
2320 (strip-python2-variant python-wheel))))
2321 (package (inherit wheel)
2322 (native-inputs `(("python2-functools32" ,python2-functools32)
2323 ,@(package-native-inputs wheel))))))
2326 (define-public python-requests
2328 (name "python-requests")
2332 (uri (pypi-uri "requests" version))
2335 "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
2336 (build-system python-build-system)
2338 `(("python-py" ,python-py)
2339 ("python-pytest" ,python-pytest)
2340 ("python-pytest-cov" ,python-pytest-cov)
2341 ("python-wheel" ,python-wheel)))
2342 (home-page "http://python-requests.org/")
2343 (synopsis "Python HTTP library")
2345 "Requests is a Python HTTP client library. It aims to be easier to use
2346 than Python’s urllib2 library.")
2347 (license license:asl2.0)))
2349 ;; Some software requires an older version of Requests, notably Docker
2351 (define-public python-requests-2.7
2352 (package (inherit python-requests)
2356 (uri (pypi-uri "requests" version))
2359 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
2361 (define-public python2-requests
2362 (package-with-python2 python-requests))
2364 (define-public python-vcversioner
2366 (name "python-vcversioner")
2367 (version "2.16.0.0")
2371 (uri (pypi-uri "vcversioner" version))
2374 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
2375 (build-system python-build-system)
2376 (synopsis "Python library for version number discovery")
2377 (description "Vcversioner is a Python library that inspects tagging
2378 information in a variety of version control systems in order to discover
2380 (home-page "https://github.com/habnabit/vcversioner")
2381 (license license:isc)))
2383 (define-public python2-vcversioner
2384 (package-with-python2 python-vcversioner))
2386 (define-public python-jsonschema
2388 (name "python-jsonschema")
2394 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
2398 "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
2399 (build-system python-build-system)
2402 (modify-phases %standard-phases
2403 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
2405 `(("python-nose" ,python-nose)
2406 ("python-vcversioner" ,python-vcversioner)))
2407 (home-page "https://github.com/Julian/jsonschema")
2408 (synopsis "Implementation of JSON Schema for Python")
2410 "Jsonschema is an implementation of JSON Schema for Python.")
2411 (license license:expat)
2412 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2414 (define-public python2-jsonschema
2415 (let ((jsonschema (package-with-python2
2416 (strip-python2-variant python-jsonschema))))
2417 (package (inherit jsonschema)
2419 `(("python2-mock" ,python2-mock)
2420 ,@(package-native-inputs jsonschema)))
2422 `(("python2-functools32" ,python2-functools32))))))
2424 (define-public python-unidecode
2426 (name "python-unidecode")
2430 (uri (pypi-uri "Unidecode" version))
2433 "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
2434 (build-system python-build-system)
2435 (home-page "https://pypi.python.org/pypi/Unidecode")
2436 (synopsis "ASCII transliterations of Unicode text")
2438 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2439 useful when integrating with legacy code that doesn't support Unicode, or for
2440 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2441 machine identifiers from human-readable Unicode strings that should still be
2442 somewhat intelligeble.")
2443 (license license:gpl2+)))
2445 (define-public python2-unidecode
2446 (package-with-python2 python-unidecode))
2448 (define-public python-pyjwt
2450 (name "python-pyjwt")
2455 (uri (pypi-uri "PyJWT" version))
2458 "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
2459 (build-system python-build-system)
2461 `(("python-pytest-runner" ,python-pytest-runner)))
2463 '(#:tests? #f)) ; test suite doesn't work
2464 (home-page "http://github.com/progrium/pyjwt")
2465 (synopsis "JSON Web Token implementation in Python")
2467 "PyJWT is a JSON Web Token implementation written in Python.")
2468 (license license:expat)))
2470 (define-public python2-pyjwt
2471 (package-with-python2 python-pyjwt))
2473 (define-public python-oauthlib
2475 (name "python-oauthlib")
2479 (uri (pypi-uri "oauthlib" version))
2482 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
2483 (build-system python-build-system)
2485 `(("python-coverage" ,python-coverage)
2486 ("python-nose" ,python-nose)
2487 ("python-mock" ,python-mock)))
2489 `(("python-blinker" ,python-blinker)
2490 ("python-cryptography" ,python-cryptography)
2491 ("python-pyjwt" ,python-pyjwt)))
2492 (home-page "https://github.com/idan/oauthlib")
2493 (synopsis "OAuth implementation for Python")
2495 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2496 OAuth request-signing logic.")
2497 (license license:bsd-3)
2498 (properties `((python2-variant . ,(delay python2-oauthlib))))))
2500 (define-public python2-oauthlib
2501 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
2504 (native-inputs `(("python2-unittest2" ,python2-unittest2)
2505 ,@(package-native-inputs base))))))
2507 (define-public python-itsdangerous
2509 (name "python-itsdangerous")
2515 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2519 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2520 (build-system python-build-system)
2521 (home-page "http://github.com/mitsuhiko/itsdangerous")
2522 (synopsis "Python library for passing data to/from untrusted environments")
2524 "Itsdangerous provides various helpers to pass trusted data to untrusted
2525 environments and back.")
2526 (license license:bsd-3)))
2528 (define-public python2-itsdangerous
2529 (package-with-python2 python-itsdangerous))
2531 (define-public python-pyyaml
2533 (name "python-pyyaml")
2539 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2543 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2544 (build-system python-build-system)
2546 `(("libyaml" ,libyaml)))
2547 (home-page "http://pyyaml.org/wiki/PyYAML")
2548 (synopsis "YAML parser and emitter for Python")
2550 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2551 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2552 API, and sensible error messages. PyYAML supports standard YAML tags and
2553 provides Python-specific tags that allow to represent an arbitrary Python
2555 (license license:expat)))
2557 (define-public python2-pyyaml
2558 (package-with-python2 python-pyyaml))
2560 (define-public python-virtualenv
2562 (name "python-virtualenv")
2567 (uri (pypi-uri "virtualenv" version))
2570 "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d"))))
2571 (build-system python-build-system)
2574 (modify-phases %standard-phases
2577 ;; Disable failing test. See upstream bug report
2578 ;; https://github.com/pypa/virtualenv/issues/957
2579 (substitute* "tests/test_virtualenv.py"
2580 (("skipif.*") "skipif(True, reason=\"Guix\")\n"))
2581 (zero? (system* "py.test")))))))
2583 `(("python-mock" ,python-mock)
2584 ("python-pytest" ,python-pytest)))
2585 (home-page "https://virtualenv.pypa.io/")
2586 (synopsis "Virtual Python environment builder")
2588 "Virtualenv is a tool to create isolated Python environments.")
2589 (license license:expat)))
2591 (define-public python2-virtualenv
2592 (package-with-python2 python-virtualenv))
2594 (define-public python-markupsafe
2596 (name "python-markupsafe")
2602 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2606 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2607 (build-system python-build-system)
2608 (home-page "http://github.com/mitsuhiko/markupsafe")
2609 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2611 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2613 (license license:bsd-3)))
2615 (define-public python2-markupsafe
2616 (package-with-python2 python-markupsafe))
2618 (define-public python-jinja2
2620 (name "python-jinja2")
2625 (uri (pypi-uri "Jinja2" version))
2628 "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
2629 (build-system python-build-system)
2631 `(("python-markupsafe" ,python-markupsafe)))
2632 (home-page "http://jinja.pocoo.org/")
2633 (synopsis "Python template engine")
2635 "Jinja2 is a small but fast and easy to use stand-alone template engine
2636 written in pure Python.")
2637 (license license:bsd-3)))
2639 (define-public python2-jinja2
2640 (package-with-python2 python-jinja2))
2642 (define-public python-pystache
2644 (name "python-pystache")
2648 (uri (pypi-uri "pystache" version))
2651 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2652 (build-system python-build-system)
2653 (home-page "http://defunkt.io/pystache/")
2654 (synopsis "Python logic-less template engine")
2656 "Pystache is a Python implementation of the framework agnostic,
2657 logic-free templating system Mustache.")
2658 (license license:expat)))
2660 (define-public python2-pystache
2661 (package-with-python2 python-pystache))
2663 (define-public python-joblib
2665 (name "python-joblib")
2669 (uri (pypi-uri "joblib" version))
2672 "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9"))))
2673 (build-system python-build-system)
2676 (modify-phases %standard-phases
2677 (add-before 'check 'disable-failing-tests
2679 ;; This numpydoc tests fails for unknown reasons
2680 (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py")
2681 ;; This numpydoc test depends on matplotlib, which is not a
2683 (delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py")
2684 ;; These tests fail to execute sys.executable
2685 (substitute* "joblib/test/test_parallel.py"
2686 (("import nose" line)
2687 (string-append "from nose.plugins.skip import SkipTest\n" line))
2688 (("def test_nested_parallel_warnings" line)
2689 (string-append "@SkipTest\n" line))
2690 (("def test_parallel_with_interactively_defined_functions" line)
2691 (string-append "@SkipTest\n" line)))
2694 `(("python-nose" ,python-nose)
2695 ("python-sphinx" ,python-sphinx)
2696 ("python-docutils" ,python-docutils)
2697 ("python-numpydoc" ,python-numpydoc)))
2698 (home-page "http://pythonhosted.org/joblib/")
2699 (synopsis "Using Python functions as pipeline jobs")
2701 "Joblib is a set of tools to provide lightweight pipelining in Python.
2702 In particular, joblib offers: transparent disk-caching of the output values
2703 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2704 logging and tracing of the execution.")
2705 (license license:bsd-3)))
2707 (define-public python2-joblib
2708 (package-with-python2 python-joblib))
2710 (define-public python-docutils
2712 (name "python-docutils")
2718 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2722 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2723 (build-system python-build-system)
2725 '(#:tests? #f)) ; no setup.py test command
2726 (home-page "http://docutils.sourceforge.net/")
2727 (synopsis "Python Documentation Utilities")
2729 "Docutils is a modular system for processing documentation into useful
2730 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2732 ;; Most of the source code is public domain, but some source files are
2733 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2734 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
2736 (define-public python2-docutils
2737 (package-with-python2 python-docutils))
2739 (define-public python-pygments
2741 (name "python-pygments")
2746 (uri (pypi-uri "Pygments" version))
2749 "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
2750 (build-system python-build-system)
2751 (home-page "http://pygments.org/")
2752 (synopsis "Syntax highlighting")
2754 "Pygments is a syntax highlighting package written in Python.")
2755 (license license:bsd-2)))
2757 (define-public python2-pygments
2758 (package-with-python2 python-pygments))
2760 (define-public python-sphinx
2762 (name "python-sphinx")
2768 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2772 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2773 (build-system python-build-system)
2775 `(("python-jinja2" ,python-jinja2)
2776 ("python-docutils" ,python-docutils)
2777 ("python-pygments" ,python-pygments)))
2778 (home-page "http://sphinx-doc.org/")
2779 (synopsis "Python documentation generator")
2780 (description "Sphinx is a tool that makes it easy to create documentation
2781 for Python projects or other documents consisting of multiple reStructuredText
2783 (license license:bsd-3)))
2785 (define-public python2-sphinx
2786 (package-with-python2 python-sphinx))
2788 (define-public python-sphinx-rtd-theme
2790 (name "python-sphinx-rtd-theme")
2795 (uri (string-append "https://pypi.python.org/packages/source/s/"
2796 "sphinx_rtd_theme/sphinx_rtd_theme-"
2800 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2801 (build-system python-build-system)
2803 `(("python-docutils" ,python-docutils)
2804 ("python-sphinx" ,python-sphinx)))
2805 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2806 (synopsis "ReadTheDocs.org theme for Sphinx")
2807 (description "A theme for Sphinx used by ReadTheDocs.org.")
2808 (license license:expat)))
2810 (define-public python2-sphinx-rtd-theme
2811 (package-with-python2 python-sphinx-rtd-theme))
2813 (define-public python-feedgenerator
2815 (name "python-feedgenerator")
2820 (uri (pypi-uri "feedgenerator" version))
2823 "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0"))))
2824 (build-system python-build-system)
2826 `(("python-pytz" ,python-pytz)
2827 ("python-six" ,python-six)))
2828 (home-page "https://github.com/getpelican/feedgenerator")
2830 "Standalone version of Django's Atom/RSS feed generator")
2832 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2833 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2834 (license license:bsd-3)))
2836 (define-public python2-feedgenerator
2837 (package-with-python2 python-feedgenerator))
2839 (define-public python-blinker
2841 (name "python-blinker")
2846 (uri (pypi-uri "blinker" version))
2849 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
2850 (build-system python-build-system)
2851 ;; No "test" command supplied to setuptools, so unless there's another way
2852 ;; to run tests, we're skipping them!
2853 (arguments '(#:tests? #f))
2854 (home-page "http://pythonhosted.org/blinker/")
2855 (synopsis "Fast, simple object-to-object and broadcast signaling")
2857 "Blinker provides a fast dispatching system that allows any number of
2858 interested parties to subscribe to events, or \"signals\".")
2859 (license license:expat)))
2861 (define-public python2-blinker
2862 (package-with-python2 python-blinker))
2864 (define-public pelican
2871 (uri (pypi-uri "pelican" version))
2874 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
2875 (build-system python-build-system)
2877 `(("python-feedgenerator" ,python-feedgenerator)
2878 ("python-jinja2" ,python-jinja2)
2879 ("python-pygments" ,python-pygments)
2880 ("python-docutils" ,python-docutils)
2881 ("python-pytz" ,python-pytz)
2882 ("python-blinker" ,python-blinker)
2883 ("python-unidecode" ,python-unidecode)
2884 ("python-six" ,python-six)
2885 ("python-dateutil-2" ,python-dateutil-2)))
2886 (home-page "http://getpelican.com/")
2888 `(;; XXX Requires a lot more packages to do unit tests :P
2890 #:phases (modify-phases %standard-phases
2892 'install 'adjust-requires
2893 ;; Since feedgenerator is installed from git, it doesn't
2894 ;; conform to the version requirements.
2896 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2897 ;; version requirement so setuptools doesn't get confused.
2899 (substitute* "setup.py"
2900 (("['\"]feedgenerator.*?['\"]")
2901 "'feedgenerator'")))))))
2902 (synopsis "Python-based static site publishing system")
2904 "Pelican is a tool to generate a static blog from reStructuredText,
2905 Markdown input files, and more. Pelican uses Jinja2 for templating
2906 and is very extensible.")
2907 (license license:agpl3+)))
2909 (define-public python-scikit-learn
2911 (name "python-scikit-learn")
2917 "https://github.com/scikit-learn/scikit-learn/archive/"
2919 (file-name (string-append name "-" version ".tar.gz"))
2922 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
2923 (build-system python-build-system)
2928 ;; some tests require access to "$HOME"
2929 (lambda _ (setenv "HOME" "/tmp"))
2930 ;; Tests can only be run after the library has been installed and not
2931 ;; within the source directory.
2935 (with-directory-excursion "/tmp"
2936 ;; With Python 3 one test of 3334 fails
2937 ;; (sklearn.tests.test_common.test_transformers); see
2938 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
2939 (system* "nosetests" "-v" "sklearn")))
2940 (alist-delete 'check %standard-phases)))))
2942 `(("openblas" ,openblas)
2943 ("python-nose" ,python-nose)))
2945 `(("python-numpy" ,python-numpy)
2946 ("python-scipy" ,python-scipy)))
2947 (home-page "http://scikit-learn.org/")
2948 (synopsis "Machine Learning in Python")
2950 "Scikit-learn provides simple and efficient tools for data
2951 mining and data analysis.")
2952 (license license:bsd-3)
2953 (properties `((python2-variant . ,(delay python2-scikit-learn))))))
2955 (define-public python2-scikit-learn
2956 (package-with-python2 (strip-python2-variant python-scikit-learn)))
2958 (define-public python-scikit-image
2960 (name "python-scikit-image")
2966 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2969 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2970 (build-system python-build-system)
2972 `(("python-matplotlib" ,python-matplotlib)
2973 ("python-networkx" ,python-networkx)
2974 ("python-numpy" ,python-numpy)
2975 ("python-scipy" ,python-scipy)
2976 ("python-six" ,python-six)
2977 ("python-pillow" ,python-pillow)))
2979 `(("python-cython" ,python-cython)))
2980 (home-page "http://scikit-image.org/")
2981 (synopsis "Image processing in Python")
2983 "Scikit-image is a collection of algorithms for image processing.")
2984 (license license:bsd-3)
2985 (properties `((python2-variant . ,(delay python2-scikit-image))))))
2987 (define-public python2-scikit-image
2988 (let ((scikit-image (package-with-python2
2989 (strip-python2-variant python-scikit-image))))
2990 (package (inherit scikit-image)
2992 `(("python2-mock" ,python2-mock)
2993 ,@(package-native-inputs scikit-image)))
2995 `(("python2-pytz" ,python2-pytz)
2996 ,@(package-propagated-inputs scikit-image))))))
2998 (define-public python-redis
3000 (name "python-redis")
3006 "https://pypi.python.org/packages/source/r/redis/redis-"
3009 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
3010 (build-system python-build-system)
3011 ;; Tests require a running Redis server
3012 (arguments '(#:tests? #f))
3014 `(("python-pytest" ,python-pytest)))
3015 (home-page "https://github.com/andymccurdy/redis-py")
3016 (synopsis "Redis Python client")
3018 "This package provides a Python interface to the Redis key-value store.")
3019 (license license:expat)))
3021 (define-public python2-redis
3022 (package-with-python2 python-redis))
3024 (define-public python-rq
3032 "https://pypi.python.org/packages/source/r/rq/rq-"
3035 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
3036 (build-system python-build-system)
3038 `(("python-click" ,python-click)
3039 ("python-redis" ,python-redis)))
3040 (home-page "http://python-rq.org/")
3041 (synopsis "Simple job queues for Python")
3043 "RQ (Redis Queue) is a simple Python library for queueing jobs and
3044 processing them in the background with workers. It is backed by Redis and it
3045 is designed to have a low barrier to entry.")
3046 (license license:bsd-2)))
3048 (define-public python2-rq
3049 (package-with-python2 python-rq))
3051 (define-public python-cython
3053 (name "python-cython")
3058 (uri (pypi-uri "Cython" version))
3061 "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044"))))
3062 (build-system python-build-system)
3063 ;; we need the full python package and not just the python-wrapper
3064 ;; because we need libpython3.3m.so
3066 `(("python" ,python)))
3069 (modify-phases %standard-phases
3070 (add-before 'check 'set-HOME
3071 ;; some tests require access to "$HOME/.cython"
3072 (lambda _ (setenv "HOME" "/tmp")))
3074 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))))))
3075 (home-page "http://cython.org/")
3076 (synopsis "C extensions for Python")
3077 (description "Cython is an optimising static compiler for both the Python
3078 programming language and the extended Cython programming language. It makes
3079 writing C extensions for Python as easy as Python itself.")
3080 (license license:asl2.0)
3081 (properties `((python2-variant . ,(delay python2-cython))))))
3083 (define-public python2-cython
3084 (package (inherit (package-with-python2
3085 (strip-python2-variant python-cython)))
3086 (name "python2-cython")
3088 `(("python-2" ,python-2))))) ; this is not automatically changed
3090 ;; The RPython toolchain currently does not support Python 3.
3091 (define-public python2-rpython
3093 (name "python2-rpython")
3098 (uri (pypi-uri "rpython" version))
3101 "07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc"))))
3102 (build-system python-build-system)
3103 (arguments `(#:python ,python-2))
3105 `(("python2-pytest" ,python2-pytest))) ; needed for running tests
3106 (home-page "https://rpython.readthedocs.org")
3107 (synopsis "Framework for implementing interpreters and virtual machines")
3108 (description "RPython is a translation and support framework for
3109 producing implementations of dynamic languages, emphasizing a clean separation
3110 between language specification and implementation aspects.")
3111 (license license:expat)))
3113 ;; This version of numpy is missing the documentation and is only used to
3114 ;; build matplotlib which is required to build numpy's documentation.
3115 (define python-numpy-bootstrap
3117 (name "python-numpy-bootstrap")
3122 (uri (string-append "mirror://sourceforge/numpy/NumPy/" version
3123 "/numpy-" version ".tar.gz"))
3126 "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
3127 (build-system python-build-system)
3129 `(("python-nose" ,python-nose)
3130 ("openblas" ,openblas)
3131 ("lapack" ,lapack)))
3133 `(("gfortran" ,gfortran)))
3137 'build 'set-environment-variables
3138 (lambda* (#:key inputs #:allow-other-keys)
3139 (call-with-output-file "site.cfg"
3143 libraries = openblas
3144 library_dirs = ~a/lib
3145 include_dirs = ~a/include
3148 lapack_libs = lapack
3149 library_dirs = ~a/lib
3150 include_dirs = ~a/include
3152 (assoc-ref inputs "openblas")
3153 (assoc-ref inputs "openblas")
3154 (assoc-ref inputs "lapack")
3155 (assoc-ref inputs "lapack"))))
3156 ;; Use "gcc" executable, not "cc".
3157 (substitute* "numpy/distutils/system_info.py"
3158 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
3159 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
3161 ;; Tests can only be run after the library has been installed and not
3162 ;; within the source directory.
3166 (with-directory-excursion "/tmp"
3167 (zero? (system* "python" "-c"
3168 "import numpy; numpy.test(verbose=2)"))))
3171 %standard-phases)))))
3172 (home-page "http://www.numpy.org/")
3173 (synopsis "Fundamental package for scientific computing with Python")
3174 (description "NumPy is the fundamental package for scientific computing
3175 with Python. It contains among other things: a powerful N-dimensional array
3176 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3177 and Fortran code, useful linear algebra, Fourier transform, and random number
3179 (license license:bsd-3)))
3181 (define python2-numpy-bootstrap
3182 (package-with-python2 python-numpy-bootstrap))
3184 (define-public python2-fastlmm
3186 (name "python2-fastlmm")
3191 (uri (pypi-uri "fastlmm" version ".zip"))
3194 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3195 (build-system python-build-system)
3197 `(#:python ,python-2)) ; only Python 2.7 is supported
3199 `(("python2-numpy" ,python2-numpy)
3200 ("python2-scipy" ,python2-scipy)
3201 ("python2-matplotlib" ,python2-matplotlib)
3202 ("python2-pandas" ,python2-pandas)
3203 ("python2-scikit-learn" ,python2-scikit-learn)
3204 ("python2-cython" ,python2-cython)
3205 ("python2-pysnptools" ,python2-pysnptools)))
3208 ("python2-mock" ,python2-mock)))
3209 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3210 (synopsis "Perform genome-wide association studies on large data sets")
3212 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3213 Models, is a program for performing both single-SNP and SNP-set genome-wide
3214 association studies (GWAS) on extremely large data sets.")
3215 (license license:asl2.0)))
3217 (define-public python-numpy
3218 (package (inherit python-numpy-bootstrap)
3219 (name "python-numpy")
3220 (outputs '("out" "doc"))
3223 ("python-matplotlib" ,python-matplotlib)
3224 ("python-sphinx" ,python-sphinx)
3225 ("python-pyparsing" ,python-pyparsing)
3226 ("python-numpydoc" ,python-numpydoc)
3227 ,@(package-inputs python-numpy-bootstrap)))
3229 `(("pkg-config" ,pkg-config)
3230 ("texlive" ,texlive)
3231 ("texinfo" ,texinfo)
3233 ,@(package-native-inputs python-numpy-bootstrap)))
3235 `(,@(substitute-keyword-arguments
3236 (package-arguments python-numpy-bootstrap)
3239 'install 'install-doc
3240 (lambda* (#:key outputs #:allow-other-keys)
3241 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3243 data "/doc/" ,name "-"
3244 ,(package-version python-numpy-bootstrap)))
3245 (info (string-append data "/info"))
3246 (html (string-append doc "/html"))
3247 (pyver ,(string-append "PYVER=")))
3248 (with-directory-excursion "doc"
3250 (system* "make" "html" pyver)
3251 (system* "make" "latex" "PAPER=a4" pyver)
3252 (system* "make" "-C" "build/latex"
3253 "all-pdf" "PAPER=a4" pyver)
3254 ;; FIXME: Generation of the info file fails.
3255 ;; (system* "make" "info" pyver)
3257 ;; (copy-file "build/texinfo/numpy.info"
3258 ;; (string-append info "/numpy.info"))
3259 (for-each (lambda (file)
3260 (copy-file (string-append "build/latex" file)
3261 (string-append doc file)))
3262 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3263 (with-directory-excursion "build/html"
3264 (for-each (lambda (file)
3265 (let* ((dir (dirname file))
3266 (tgt-dir (string-append html "/" dir)))
3267 (unless (equal? "." dir)
3269 (install-file file html)))
3270 (find-files "." ".*"))))))
3273 (define-public python2-numpy
3274 (package-with-python2 python-numpy))
3276 (define-public python-pyparsing
3278 (name "python-pyparsing")
3283 (uri (string-append "mirror://sourceforge/pyparsing/pyparsing"
3284 "/pyparsing-" version
3285 "/pyparsing-" version ".tar.gz"))
3288 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
3289 (build-system python-build-system)
3290 (outputs '("out" "doc"))
3292 `(#:tests? #f ; no test target
3293 #:modules ((guix build python-build-system)
3297 'install 'install-doc
3298 (lambda* (#:key outputs #:allow-other-keys)
3299 (let* ((doc (string-append (assoc-ref outputs "doc")
3300 "/share/doc/" ,name "-" ,version))
3301 (html-doc (string-append doc "/html"))
3302 (examples (string-append doc "/examples")))
3308 (install-file file tgt))
3309 (find-files dir ".*")))
3310 (list "docs" "htmldoc" "examples")
3311 (list doc html-doc examples))))
3313 (home-page "http://pyparsing.wikispaces.com")
3314 (synopsis "Python parsing class library")
3316 "The pyparsing module is an alternative approach to creating and
3317 executing simple grammars, vs. the traditional lex/yacc approach, or the use
3318 of regular expressions. The pyparsing module provides a library of classes
3319 that client code uses to construct the grammar directly in Python code.")
3320 (license license:expat)))
3322 (define-public python2-pyparsing
3323 (package-with-python2 python-pyparsing))
3325 (define-public python-numpydoc
3327 (name "python-numpydoc")
3333 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3337 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3338 (modules '((guix build utils)))
3341 ;; Drop a test requiring matplotlib, which we cannot add as an
3342 ;; input since it would create a circular dependency: Extend the
3343 ;; test for Python 3, where it is already dropped, to Python 2.
3344 (substitute* "numpydoc/tests/test_plot_directive.py"
3346 (build-system python-build-system)
3348 `(("python-docutils" ,python-docutils)
3349 ("python-sphinx" ,python-sphinx)
3350 ("python-nose" ,python-nose)))
3351 (home-page "https://pypi.python.org/pypi/numpydoc")
3353 "Numpy's Sphinx extensions")
3355 "Sphinx extension to support docstrings in Numpy format.")
3356 (license license:bsd-2)))
3358 (define-public python2-numpydoc
3359 (package-with-python2 python-numpydoc))
3361 (define-public python-numexpr
3363 (name "python-numexpr")
3368 (uri (pypi-uri "numexpr" version))
3371 "0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag"))))
3372 (build-system python-build-system)
3373 (arguments `(#:tests? #f)) ; no tests included
3375 `(("python-numpy" ,python-numpy)))
3376 (home-page "https://github.com/pydata/numexpr")
3377 (synopsis "Fast numerical expression evaluator for NumPy")
3379 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3380 expressions that operate on arrays are accelerated and use less memory than
3381 doing the same calculation in Python. In addition, its multi-threaded
3382 capabilities can make use of all your cores, which may accelerate
3383 computations, most specially if they are not memory-bounded (e.g. those using
3384 transcendental functions).")
3385 (license license:expat)))
3387 (define-public python2-numexpr
3388 (package-with-python2 python-numexpr))
3390 (define-public python-matplotlib
3392 (name "python-matplotlib")
3397 (uri (string-append "mirror://sourceforge/matplotlib/matplotlib"
3398 "/matplotlib-" version
3399 "/matplotlib-" version ".tar.gz"))
3402 "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
3403 (patches (search-patches "matplotlib-setupext-tk.patch"))))
3404 (build-system python-build-system)
3405 (outputs '("out" "doc"))
3406 (propagated-inputs ; the following packages are all needed at run time
3407 `(("python-pyparsing" ,python-pyparsing)
3408 ("python-pygobject" ,python-pygobject)
3409 ("gobject-introspection" ,gobject-introspection)
3410 ("python-tkinter" ,python "tk")
3411 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3412 ;; from 'gtk+') provides the required 'typelib' files used by
3413 ;; 'gobject-introspection'. The location of these files is set with the
3414 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3415 ;; is done automatically by a 'native-search-path' procedure. However,
3416 ;; at run-time the user must set this variable as follows:
3418 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
3420 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3421 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3422 ;; object. For this reason we need to import both libraries.
3423 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3424 ("python-pycairo" ,python-pycairo)
3425 ("python-cairocffi" ,python-cairocffi)))
3427 `(("python-dateutil" ,python-dateutil-2)
3428 ("python-six" ,python-six)
3429 ("python-pytz" ,python-pytz)
3430 ("python-numpy" ,python-numpy-bootstrap)
3431 ("python-sphinx" ,python-sphinx)
3432 ("python-numpydoc" ,python-numpydoc)
3433 ("python-nose" ,python-nose)
3434 ("python-mock" ,python-mock)
3436 ("imagemagick" ,imagemagick)
3437 ("freetype" ,freetype)
3440 ("python-pillow" ,python-pillow)
3441 ;; FIXME: Add backends when available.
3442 ;("python-wxpython" ,python-wxpython)
3443 ;("python-pyqt" ,python-pyqt)
3447 `(("pkg-config" ,pkg-config)
3448 ("texlive" ,texlive)
3449 ("texinfo" ,texinfo)))
3453 'build 'configure-environment
3454 (lambda* (#:key outputs inputs #:allow-other-keys)
3455 (let ((cairo (assoc-ref inputs "cairo"))
3456 (gtk+ (assoc-ref inputs "gtk+")))
3457 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3459 (setenv "LD_LIBRARY_PATH"
3460 (string-append cairo "/lib:" gtk+ "/lib"))
3461 (setenv "HOME" (getcwd))
3462 (call-with-output-file "setup.cfg"
3464 (format port "[directories]~%
3465 basedirlist = ~a,~a~%
3468 (assoc-ref inputs "tcl")
3469 (assoc-ref inputs "tk"))))))
3471 'install 'install-doc
3472 (lambda* (#:key outputs #:allow-other-keys)
3473 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3474 (doc (string-append data "/doc/" ,name "-" ,version))
3475 (info (string-append data "/info"))
3476 (html (string-append doc "/html")))
3477 (with-directory-excursion "doc"
3478 ;; Produce pdf in 'A4' format.
3479 (substitute* (find-files "." "conf\\.py")
3480 (("latex_paper_size = 'letter'")
3481 "latex_paper_size = 'a4'"))
3484 ;; The doc recommends to run the 'html' target twice.
3485 (system* "python" "make.py" "html")
3486 (system* "python" "make.py" "html")
3487 (copy-recursively "build/html" html)
3488 (system* "python" "make.py" "latex")
3489 (system* "python" "make.py" "texinfo")
3490 (symlink (string-append html "/_images")
3491 (string-append info "/matplotlib-figures"))
3492 (with-directory-excursion "build/texinfo"
3493 (substitute* "matplotlib.texi"
3494 (("@image\\{([^,]*)" all file)
3495 (string-append "@image{matplotlib-figures/" file)))
3496 (symlink (string-append html "/_images")
3497 "./matplotlib-figures")
3498 (system* "makeinfo" "--no-split"
3499 "-o" "matplotlib.info" "matplotlib.texi"))
3500 (copy-file "build/texinfo/matplotlib.info"
3501 (string-append info "/matplotlib.info"))
3502 (copy-file "build/latex/Matplotlib.pdf"
3503 (string-append doc "/Matplotlib.pdf")))))
3504 %standard-phases))))
3505 (home-page "http://matplotlib.org")
3506 (synopsis "2D plotting library for Python")
3508 "Matplotlib is a Python 2D plotting library which produces publication
3509 quality figures in a variety of hardcopy formats and interactive environments
3510 across platforms. Matplotlib can be used in Python scripts, the python and
3511 ipython shell, web application servers, and six graphical user interface
3513 (license license:psfl)
3514 (properties `((python2-variant . ,(delay python2-matplotlib))))))
3516 (define-public python2-matplotlib
3517 (let ((matplotlib (package-with-python2
3518 (strip-python2-variant python-matplotlib))))
3519 (package (inherit matplotlib)
3520 ;; Make sure to use special packages for Python 2 instead
3521 ;; of those automatically rewritten by package-with-python2.
3523 `(("python2-pycairo" ,python2-pycairo)
3524 ("python2-pygobject-2" ,python2-pygobject-2)
3525 ("python2-tkinter" ,python-2 "tk")
3526 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3527 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
3529 (define-public python2-pysnptools
3531 (name "python2-pysnptools")
3536 (uri (pypi-uri "pysnptools" version ".zip"))
3539 "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2"))))
3540 (build-system python-build-system)
3542 `(#:python ,python-2)) ; only Python 2.7 is supported
3544 `(("python2-numpy" ,python2-numpy)
3545 ("python2-scipy" ,python2-scipy)
3546 ("python2-pytz" ,python2-pytz)
3547 ("python2-cython" ,python2-cython)))
3549 `(("python2-dateutil-2" ,python2-dateutil-2)
3550 ("python2-pandas" ,python2-pandas)
3551 ("python2-six" ,python2-six)))
3553 `(("unzip" ,unzip)))
3554 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3555 (synopsis "Library for reading and manipulating genetic data")
3557 "PySnpTools is a library for reading and manipulating genetic data. It
3558 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3559 those files. It can also efficiently manipulate ranges of integers using set
3560 operators such as union, intersection, and difference.")
3561 (license license:asl2.0)))
3563 (define-public python-rpy2
3565 (name "python-rpy2")
3570 (uri (pypi-uri "rpy2" version))
3573 "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
3574 (build-system python-build-system)
3576 `(("python-six" ,python-six)
3577 ("readline" ,readline)
3583 (home-page "http://rpy.sourceforge.net/")
3584 (synopsis "Python interface to the R language")
3585 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3586 low-level interface to R from Python, a proposed high-level interface,
3587 including wrappers to graphical libraries, as well as R-like structures and
3589 (license license:gpl3+)))
3591 (define-public python2-rpy2
3592 (let ((rpy2 (package-with-python2 python-rpy2)))
3593 (package (inherit rpy2)
3595 `(("python2-singledispatch" ,python2-singledispatch)
3596 ,@(package-native-inputs rpy2))))))
3598 (define-public python-scipy
3600 (name "python-scipy")
3605 ; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz
3606 (uri (string-append "mirror://sourceforge/scipy/scipy/" version
3607 "/scipy-" version ".tar.xz"))
3610 "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
3611 (build-system python-build-system)
3613 `(("python-numpy" ,python-numpy)
3614 ("python-matplotlib" ,python-matplotlib)
3615 ("python-pyparsing" ,python-pyparsing)))
3617 `(("lapack" ,lapack)
3618 ("openblas" ,openblas)))
3620 `(("python-nose" ,python-nose)
3621 ("python-sphinx" ,python-sphinx)
3622 ("python-numpydoc" ,python-numpydoc)
3623 ("gfortran" ,gfortran)
3624 ("texlive" ,texlive)
3626 (outputs '("out" "doc"))
3630 'build 'configure-openblas
3631 (lambda* (#:key inputs #:allow-other-keys)
3632 (call-with-output-file "site.cfg"
3636 libraries = openblas
3637 library_dirs = ~a/lib
3638 include_dirs = ~a/include
3640 library_dirs = ~a/lib
3641 atlas_libs = openblas
3643 (assoc-ref inputs "openblas")
3644 (assoc-ref inputs "openblas")
3645 (assoc-ref inputs "openblas"))))
3648 'install 'install-doc
3649 (lambda* (#:key outputs #:allow-other-keys)
3650 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3651 (doc (string-append data "/doc/" ,name "-" ,version))
3652 (html (string-append doc "/html"))
3653 (pyver ,(string-append "PYVER=")))
3654 (with-directory-excursion "doc"
3655 ;; Fix generation of images for mathematical expressions.
3656 (substitute* (find-files "source" "conf\\.py")
3657 (("pngmath_use_preview = True")
3658 "pngmath_use_preview = False"))
3660 (system* "make" "html" pyver)
3661 (system* "make" "latex" "PAPER=a4" pyver)
3662 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3663 (copy-file "build/latex/scipy-ref.pdf"
3664 (string-append doc "/scipy-ref.pdf"))
3665 (with-directory-excursion "build/html"
3666 (for-each (lambda (file)
3667 (let* ((dir (dirname file))
3668 (tgt-dir (string-append html "/" dir)))
3669 (install-file file html)))
3670 (find-files "." ".*"))))))
3671 ;; Tests can only be run after the library has been installed and not
3672 ;; within the source directory.
3676 (with-directory-excursion "/tmp"
3677 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
3683 (substitute* "scipy/integrate/tests/test_quadpack.py"
3684 (("libm.so") "libm.so.6"))
3686 %standard-phases)))))))
3687 (home-page "http://www.scipy.org/")
3688 (synopsis "The Scipy library provides efficient numerical routines")
3689 (description "The SciPy library is one of the core packages that make up
3690 the SciPy stack. It provides many user-friendly and efficient numerical
3691 routines such as routines for numerical integration and optimization.")
3692 (license license:bsd-3)))
3694 (define-public python2-scipy
3695 (package-with-python2 python-scipy))
3697 (define-public python-socksipy-branch
3699 (name "python-socksipy-branch")
3704 (uri (pypi-uri "SocksiPy-branch" version))
3707 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
3708 (build-system python-build-system)
3710 `(#:tests? #f)) ; There are no tests
3711 (home-page "https://code.google.com/archive/p/socksipy-branch/")
3712 (synopsis "Python SOCKS module")
3714 "SocksiPy - A Python SOCKS client module. It provides a
3715 socket-like interface that supports connections to any TCP
3716 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
3717 The original version was developed by Dan Haim, this is a
3718 branch created by Mario Vilas to address some open issues,
3719 as the original project seems to have been abandoned circa 2007.")
3720 (license license:bsd-3)))
3722 (define-public python2-socksipy-branch
3723 (package-with-python2 python-socksipy-branch))
3725 (define-public python-sqlalchemy
3727 (name "python-sqlalchemy")
3732 (uri (string-append "https://pypi.python.org/packages/source/S/"
3733 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3736 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
3737 (build-system python-build-system)
3739 `(("python-cython" ,python-cython) ;for c extensions
3740 ("python-pytest" ,python-pytest)
3741 ("python-mock" ,python-mock))) ;for tests
3743 `(#:phases (alist-replace
3745 (lambda _ (zero? (system* "py.test")))
3747 (home-page "http://www.sqlalchemy.org")
3748 (synopsis "Database abstraction library")
3750 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3751 gives application developers the full power and flexibility of SQL. It
3752 provides a full suite of well known enterprise-level persistence patterns,
3753 designed for efficient and high-performing database access, adapted into a
3754 simple and Pythonic domain language.")
3755 (license license:x11)))
3757 (define-public python2-sqlalchemy
3758 (package-with-python2 python-sqlalchemy))
3760 (define-public python-pycodestyle
3762 (name "python-pycodestyle")
3767 (uri (pypi-uri "pycodestyle" version))
3770 "1rz2v8506mdjdyxcnv9ygiw6v0d4dqx8z5sjyjm0w2v32h5l5w1p"))))
3771 (build-system python-build-system)
3772 (home-page "https://pycodestyle.readthedocs.io/")
3773 (synopsis "Python style guide checker")
3774 (description "@code{pycodestyle} (formerly pep8) is a tool to check
3775 Python code against some of the style conventions in
3776 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
3777 (license license:expat)))
3779 (define-public python2-pycodestyle
3780 (package-with-python2 python-pycodestyle))
3782 (define-public python-orderedmultidict
3784 (name "python-orderedmultidict")
3789 (uri (pypi-uri "orderedmultidict" version))
3792 "1gvqk0jd432wsn88kq4svad68xz3r012jfpnhh9in7bqrkyxidky"))))
3793 (build-system python-build-system)
3796 (modify-phases %standard-phases
3797 (add-after 'unpack 'fix-tests
3799 ;; The package uses nosetest for running the tests.
3800 ;; Adding this initfile allows to run the test suite
3801 ;; without requiring nosetest.
3802 (zero? (system* "touch" "tests/__init__.py")))))))
3804 `(("python-six" ,python-six)))
3806 `(("python-pycodestyle" ,python-pycodestyle)))
3807 (home-page "https://github.com/gruns/orderedmultidict")
3808 (synopsis "Python Ordered Multivalue Dictionary - omdict")
3809 (description "This package contains a library for ordered multivalue
3810 dictionaries. A multivalue dictionary is a dictionary that can store
3811 multiple values for the same key. An ordered multivalue dictionary is a
3812 multivalue dictionary that retains the order of insertions and deletions.")
3813 (license license:unlicense)))
3815 (define-public python2-orderedmultidict
3816 (package-with-python2 python-orderedmultidict))
3818 (define-public python-furl
3820 (name "python-furl")
3825 (uri (pypi-uri "furl" version))
3828 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
3829 (build-system python-build-system)
3831 `(("python-six" ,python-six)
3832 ("python-orderedmultidict" ,python-orderedmultidict)))
3834 `(("python-pycodestyle" ,python-pycodestyle)))
3835 (home-page "https://github.com/gruns/furl")
3836 (synopsis "URL manipulation in Python")
3837 (description "Furl provides an easy-to-use alternative to the
3838 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
3839 (license license:unlicense)))
3841 (define-public python2-furl
3842 (package-with-python2 python-furl))
3844 (define-public python-flask-babel
3846 (name "python-flask-babel")
3851 (uri (pypi-uri "Flask-Babel" version))
3854 "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj"))))
3855 (build-system python-build-system)
3857 `(("python-flask" ,python-flask)
3858 ("python-babel" ,python-babel)
3859 ("python-jinja2" ,python-jinja2)
3860 ("python-pytz" ,python-pytz)))
3861 (home-page "https://github.com/python-babel/flask-babel")
3862 (synopsis "Add i18n/l10n support to Flask applications")
3863 (description "This package implements internationalization and localization
3864 support for Flask. This is based on the Python babel module as well as pytz -
3865 both of which are installed automatically if you install this library.")
3866 (license license:bsd-3)))
3868 (define-public python2-flask-babel
3869 (package-with-python2 python-flask-babel))
3871 (define-public python-sqlalchemy-utils
3873 (name "python-sqlalchemy-utils")
3878 (uri (pypi-uri "SQLAlchemy-Utils" version))
3881 "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98"))))
3882 (build-system python-build-system)
3884 `(("python-six" ,python-six)
3885 ("python-sqlalchemy" ,python-sqlalchemy)))
3887 `(("python-pytest" ,python-pytest)))
3888 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
3889 (synopsis "Various utility functions for SQLAlchemy")
3891 "SQLAlchemy-utils provides various utility functions and custom data types
3892 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.
3894 You might also want to install the following optional dependencies:
3896 @item @code{python-passlib}
3897 @item @code{python-babel}
3898 @item @code{python-cryptography}
3899 @item @code{python-pytz}
3900 @item @code{python-psycopg2}
3901 @item @code{python-furl}
3902 @item @code{python-flask-babel}
3905 (license license:bsd-3)))
3907 (define-public python2-sqlalchemy-utils
3908 (package-with-python2 python-sqlalchemy-utils))
3910 (define-public python-alembic
3912 (name "python-alembic")
3917 (uri (pypi-uri "alembic" version))
3920 "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z"))))
3921 (build-system python-build-system)
3923 `(("python-mock" ,python-mock)
3924 ("python-pytest-cov" ,python-pytest-cov)))
3926 `(("python-sqlalchemy" ,python-sqlalchemy)
3927 ("python-mako" ,python-mako)
3928 ("python-editor" ,python-editor)))
3929 (home-page "http://bitbucket.org/zzzeek/alembic")
3931 "Database migration tool for SQLAlchemy")
3933 "Alembic is a lightweight database migration tool for usage with the
3934 SQLAlchemy Database Toolkit for Python.")
3935 (license license:expat)))
3937 (define-public python2-alembic
3938 (package-with-python2 python-alembic))
3940 (define-public python-distutils-extra
3942 (name "python-distutils-extra")
3947 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3948 version "/+download/python-distutils-extra-"
3952 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3953 (build-system python-build-system)
3954 (home-page "https://launchpad.net/python-distutils-extra/")
3955 (synopsis "Enhancements to Python's distutils")
3957 "The python-distutils-extra module enables you to easily integrate
3958 gettext support, themed icons, and scrollkeeper-based documentation into
3959 Python's distutils.")
3960 (license license:gpl2)))
3962 (define-public python2-distutils-extra
3963 (package-with-python2 python-distutils-extra))
3965 (define-public python2-elib.intl
3967 (name "python2-elib.intl")
3971 ;; This project doesn't tag releases or publish tarballs, so we take
3972 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3975 (url "https://github.com/dieterv/elib.intl.git")
3976 (commit "d09997cfef")))
3979 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3980 (build-system python-build-system)
3982 ;; incompatible with Python 3 (exception syntax)
3983 `(#:python ,python-2
3985 (home-page "https://github.com/dieterv/elib.intl")
3986 (synopsis "Enhanced internationalization for Python")
3988 "The elib.intl module provides enhanced internationalization (I18N)
3989 services for your Python modules and applications.")
3990 (license license:lgpl3+)))
3992 (define-public python-pillow
3994 (name "python-pillow")
3999 (uri (pypi-uri "Pillow" version))
4002 "0xkv0p1d73gz0a1qaasf0ai4262g8f334j07vd60bjrxs2wr3nmj"))))
4003 (build-system python-build-system)
4005 `(("python-nose" ,python-nose)))
4007 `(("freetype" ,freetype)
4010 ("libjpeg" ,libjpeg)
4011 ("openjpeg" ,openjpeg)
4012 ("libtiff" ,libtiff)
4013 ("libwebp" ,libwebp)))
4014 ;; Note: setuptools used at runtime for pkg_resources
4016 `(#:phases (modify-phases %standard-phases
4018 'install 'check-installed
4021 (setenv "HOME" (getcwd))
4022 (and (zero? (system* "python" "selftest.py"
4024 (zero? (system* "python" "test-installed.py"))))))
4026 (home-page "https://pypi.python.org/pypi/Pillow")
4027 (synopsis "Fork of the Python Imaging Library")
4029 "The Python Imaging Library adds image processing capabilities to your
4030 Python interpreter. This library provides extensive file format support, an
4031 efficient internal representation, and fairly powerful image processing
4032 capabilities. The core image library is designed for fast access to data
4033 stored in a few basic pixel formats. It should provide a solid foundation for
4034 a general image processing tool.")
4035 (license (license:x11-style
4036 "http://www.pythonware.com/products/pil/license.htm"
4037 "The PIL Software License"))))
4039 (define-public python2-pillow
4040 (package-with-python2 python-pillow))
4042 (define-public python-pycparser
4044 (name "python-pycparser")
4049 (uri (pypi-uri "pycparser" version))
4052 "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
4053 (outputs '("out" "doc"))
4054 (build-system python-build-system)
4056 `(("pkg-config" ,pkg-config)))
4062 (with-directory-excursion "tests"
4063 (zero? (system* "python" "all_tests.py"))))
4065 'install 'install-doc
4066 (lambda* (#:key outputs #:allow-other-keys)
4067 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4068 (doc (string-append data "/doc/" ,name "-" ,version))
4069 (examples (string-append doc "/examples")))
4071 (for-each (lambda (file)
4072 (copy-file (string-append "." file)
4073 (string-append doc file)))
4074 '("/README.rst" "/CHANGES" "/LICENSE"))
4075 (copy-recursively "examples" examples)))
4076 %standard-phases))))
4077 (home-page "https://github.com/eliben/pycparser")
4078 (synopsis "C parser in Python")
4080 "Pycparser is a complete parser of the C language, written in pure Python
4081 using the PLY parsing library. It parses C code into an AST and can serve as
4082 a front-end for C compilers or analysis tools.")
4083 (license license:bsd-3)))
4085 (define-public python2-pycparser
4086 (package-with-python2 python-pycparser))
4088 (define-public python-cffi
4090 (name "python-cffi")
4095 (uri (pypi-uri "cffi" version))
4097 (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
4098 (build-system python-build-system)
4099 (outputs '("out" "doc"))
4101 `(("libffi" ,libffi)))
4102 (propagated-inputs ; required at run-time
4103 `(("python-pycparser" ,python-pycparser)))
4105 `(("pkg-config" ,pkg-config)
4106 ("python-sphinx" ,python-sphinx)
4107 ("python-pytest" ,python-pytest)))
4111 'install 'install-doc
4112 (lambda* (#:key outputs #:allow-other-keys)
4113 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4114 (doc (string-append data "/doc/" ,name "-" ,version))
4115 (html (string-append doc "/html")))
4116 (with-directory-excursion "doc"
4117 (system* "make" "html")
4119 (copy-recursively "build/html" html))
4120 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
4122 (home-page "http://cffi.readthedocs.org")
4123 (synopsis "Foreign function interface for Python")
4125 "Foreign Function Interface for Python calling C code.")
4126 (license license:expat)))
4128 (define-public python2-cffi
4129 (package-with-python2 python-cffi))
4131 (define-public python-xcffib
4133 (name "python-xcffib")
4138 (uri (string-append "https://pypi.python.org/packages/source/x/"
4139 "xcffib/xcffib-" version ".tar.gz"))
4142 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
4143 (build-system python-build-system)
4145 `(("libxcb" ,libxcb)
4146 ("python-six" ,python-six)))
4148 `(("python-cffi" ,python-cffi))) ; used at run time
4152 'install 'install-doc
4153 (lambda* (#:key outputs #:allow-other-keys)
4154 (let ((doc (string-append (assoc-ref outputs "out") "/share"
4155 "/doc/" ,name "-" ,version)))
4157 (copy-file "README.md"
4158 (string-append doc "/README.md"))))
4160 (home-page "https://github.com/tych0/xcffib")
4161 (synopsis "XCB Python bindings")
4163 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
4164 support for Python 3 and PyPy. It is based on cffi.")
4165 (license license:expat)))
4167 (define-public python2-xcffib
4168 (package-with-python2 python-xcffib))
4170 (define-public python-cairocffi
4172 (name "python-cairocffi")
4177 ;; The archive on pypi is missing the 'utils' directory!
4178 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
4180 (file-name (string-append name "-" version ".tar.gz"))
4183 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
4184 (build-system python-build-system)
4185 (outputs '("out" "doc"))
4187 `(("gdk-pixbuf" ,gdk-pixbuf)
4190 `(("pkg-config" ,pkg-config)
4191 ("python-sphinx" ,python-sphinx)
4192 ("python-docutils" ,python-docutils)))
4194 `(("python-xcffib" ,python-xcffib))) ; used at run time
4198 'install 'install-doc
4199 (lambda* (#:key inputs outputs #:allow-other-keys)
4200 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4201 (doc (string-append data "/doc/" ,name "-" ,version))
4202 (html (string-append doc "/html")))
4203 (setenv "LD_LIBRARY_PATH"
4204 (string-append (assoc-ref inputs "cairo") "/lib" ":"
4205 (assoc-ref inputs "gdk-pixbuf") "/lib"))
4206 (setenv "LANG" "en_US.UTF-8")
4208 (for-each (lambda (file)
4209 (copy-file (string-append "." file)
4210 (string-append doc file)))
4211 '("/README.rst" "/CHANGES" "/LICENSE"))
4212 (system* "python" "setup.py" "build_sphinx")
4213 (copy-recursively "docs/_build/html" html)))
4215 (home-page "https://github.com/SimonSapin/cairocffi")
4216 (synopsis "Python bindings and object-oriented API for Cairo")
4218 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
4219 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
4220 graphics library with support for multiple backends including image buffers,
4221 PNG, PostScript, PDF, and SVG file output.")
4222 (license license:bsd-3)))
4224 (define-public python2-cairocffi
4225 (package-with-python2 python-cairocffi))
4227 (define-public python-decorator
4229 (name "python-decorator")
4234 (uri (pypi-uri "decorator" version))
4236 (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
4237 (build-system python-build-system)
4238 (arguments '(#:tests? #f)) ; no test target
4239 (home-page "https://pypi.python.org/pypi/decorator/")
4240 (synopsis "Python module to simplify usage of decorators")
4242 "The aim of the decorator module is to simplify the usage of decorators
4243 for the average programmer, and to popularize decorators usage giving examples
4244 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
4245 etc. The core of this module is a decorator factory.")
4246 (license license:expat)))
4248 (define-public python2-decorator
4249 (package-with-python2 python-decorator))
4251 (define-public python-drmaa
4253 (name "python-drmaa")
4259 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
4262 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
4263 (build-system python-build-system)
4264 ;; The test suite requires libdrmaa which is provided by the cluster
4265 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
4266 ;; should be set to the path of the libdrmaa library.
4267 (arguments '(#:tests? #f))
4269 `(("python-nose" ,python-nose)))
4270 (home-page "https://pypi.python.org/pypi/drmaa")
4271 (synopsis "Python bindings for the DRMAA library")
4273 "A Python package for Distributed Resource Management (DRM) job
4274 submission and control. This package is an implementation of the DRMAA 1.0
4275 Python language binding specification.")
4276 (license license:bsd-3)))
4278 (define-public python2-drmaa
4279 (package-with-python2 python-drmaa))
4281 (define-public python-gridmap
4283 (name "python-gridmap")
4289 "https://github.com/pygridtools/gridmap/archive/v"
4291 (file-name (string-append name "-" version ".tar.gz"))
4293 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
4294 (build-system python-build-system)
4296 `(("python-psutil" ,python-psutil)
4297 ("python-drmaa" ,python-drmaa)
4298 ("python-pyzmq" ,python-pyzmq)))
4299 (home-page "https://github.com/pygridtools/gridmap")
4300 (synopsis "Create jobs on a cluster directly from Python")
4302 "Gridmap is a Python package to allow you to easily create jobs on the
4303 cluster directly from Python. You can directly map Python functions onto the
4304 cluster without needing to write any wrapper code yourself.")
4305 (license license:gpl3+)))
4307 (define-public python2-gridmap
4308 (package-with-python2 python-gridmap))
4310 (define-public python-pexpect
4312 (name "python-pexpect")
4317 (uri (string-append "https://pypi.python.org/packages/source/p/"
4318 "pexpect/pexpect-" version ".tar.gz"))
4320 (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
4321 (build-system python-build-system)
4324 (modify-phases %standard-phases
4325 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4327 `(("python-nose" ,python-nose)))
4328 (home-page "http://pexpect.readthedocs.org/")
4329 (synopsis "Controlling interactive console applications")
4331 "Pexpect is a pure Python module for spawning child applications;
4332 controlling them; and responding to expected patterns in their output.
4333 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4334 child application and control it as if a human were typing commands.")
4335 (license license:isc)))
4337 (define-public python2-pexpect
4338 (package-with-python2 python-pexpect))
4340 (define-public python-setuptools-scm
4342 (name "python-setuptools-scm")
4346 (uri (pypi-uri "setuptools_scm" version))
4349 "1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc"))))
4350 (build-system python-build-system)
4351 (home-page "https://github.com/pypa/setuptools_scm/")
4352 (synopsis "Manage Python package versions in SCM metadata")
4354 "Setuptools_scm handles managing your Python package versions in
4355 @dfn{software configuration management} (SCM) metadata instead of declaring
4356 them as the version argument or in a SCM managed file.")
4357 (license license:expat)))
4359 (define-public python2-setuptools-scm
4360 (package-with-python2 python-setuptools-scm))
4362 (define-public python-pathpy
4364 (name "python-pathpy")
4369 (uri (string-append "https://pypi.python.org/packages/source/p/"
4370 "path.py/path.py-" version ".tar.gz"))
4372 (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
4373 (build-system python-build-system)
4375 `(("python-appdirs" ,python-appdirs)))
4377 `(("python-setuptools-scm" ,python-setuptools-scm)
4378 ("python-pytest" ,python-pytest)
4379 ("python-pytest-runner" ,python-pytest-runner)))
4380 (home-page "http://github.com/jaraco/path.py")
4381 (synopsis "Python module wrapper for built-in os.path")
4383 "@code{path.py} implements path objects as first-class entities, allowing
4384 common operations on files to be invoked on those path objects directly.")
4385 (license license:expat)))
4387 (define-public python2-pathpy
4388 (package-with-python2 python-pathpy))
4390 (define-public python-pickleshare
4392 (name "python-pickleshare")
4397 (uri (string-append "https://pypi.python.org/packages/source/p/"
4398 "pickleshare/pickleshare-" version ".tar.gz"))
4400 (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
4401 (build-system python-build-system)
4403 `(("python-pathpy" ,python-pathpy)))
4404 (home-page "https://github.com/vivainio/pickleshare")
4405 (synopsis "Tiny key value database with concurrency support")
4407 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
4408 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
4409 shelve, many processes can access the database simultaneously. Changing a
4410 value in database is immediately visible to other processes accessing the same
4411 database. Concurrency is possible because the values are stored in separate
4412 files. Hence the “database” is a directory where all files are governed by
4414 (license license:expat)))
4416 (define-public python2-pickleshare
4417 (package-with-python2 python-pickleshare))
4419 (define-public python-simplegeneric
4421 (name "python-simplegeneric")
4426 (uri (string-append "https://pypi.python.org/packages/source/s/"
4427 "simplegeneric/simplegeneric-" version ".zip"))
4429 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4430 (build-system python-build-system)
4432 `(("unzip" ,unzip)))
4433 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4434 (synopsis "Python module for simple generic functions")
4436 "The simplegeneric module lets you define simple single-dispatch generic
4437 functions, akin to Python’s built-in generic functions like @code{len()},
4438 @code{iter()} and so on. However, instead of using specially-named methods,
4439 these generic functions use simple lookup tables, akin to those used by
4440 e.g. @code{pickle.dump()} and other generic functions found in the Python
4442 (license license:zpl2.1)))
4444 (define-public python2-simplegeneric
4445 (package-with-python2 python-simplegeneric))
4447 (define-public python-ipython-genutils
4449 (name "python-ipython-genutils")
4454 (uri (string-append "https://pypi.python.org/packages/source/i/"
4455 "ipython_genutils/ipython_genutils-"
4458 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4459 (build-system python-build-system)
4460 (arguments `(#:tests? #f)) ; no tests
4461 (home-page "http://ipython.org")
4462 (synopsis "Vestigial utilities from IPython")
4464 "This package provides retired utilities from IPython.")
4465 (license license:bsd-3)))
4467 (define-public python2-ipython-genutils
4468 (package-with-python2 python-ipython-genutils))
4470 (define-public python-traitlets
4472 (name "python-traitlets")
4477 (uri (pypi-uri "traitlets" version))
4480 "1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4"))))
4481 (build-system python-build-system)
4484 (modify-phases %standard-phases
4485 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4487 `(("python-ipython-genutils" ,python-ipython-genutils)
4488 ("python-decorator" ,python-decorator)))
4490 `(("python-mock" ,python-mock)
4491 ("python-nose" ,python-nose)))
4492 (home-page "http://ipython.org")
4493 (synopsis "Configuration system for Python applications")
4495 "Traitlets is a framework that lets Python classes have attributes with
4496 type checking, dynamically calculated default values, and ‘on change’
4497 callbacks. The package also includes a mechanism to use traitlets for
4498 configuration, loading values from files or from command line arguments. This
4499 is a distinct layer on top of traitlets, so you can use traitlets in your code
4500 without using the configuration machinery.")
4501 (license license:bsd-3)))
4503 (define-public python2-traitlets
4504 (package-with-python2 python-traitlets))
4506 (define-public python-jupyter-core
4508 (name "python-jupyter-core")
4513 (uri (string-append (pypi-uri "jupyter_core" version)))
4516 "177d9csqldzhsh6xs1p4nf6lzvhzyg6gklqjf69lxgxyadx87v24"))))
4517 (build-system python-build-system)
4518 ;; FIXME: not sure how to run the tests
4519 (arguments `(#:tests? #f))
4521 `(("python-traitlets" ,python-traitlets)))
4522 (home-page "http://jupyter.org/")
4523 (synopsis "Jupyter base package")
4525 "Jupyter core is the base package on which Jupyter projects rely.")
4526 (license license:bsd-3)))
4528 (define-public python2-jupyter-core
4529 (package-with-python2 python-jupyter-core))
4531 (define-public python-jupyter-client
4533 (name "python-jupyter-client")
4538 (uri (pypi-uri "jupyter_client" version))
4541 "1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9"))))
4542 (build-system python-build-system)
4543 ;; Tests fail because of missing native python kernel which I assume is
4544 ;; provided by the ipython package, which we cannot use because it would
4545 ;; cause a dependency cycle.
4546 (arguments `(#:tests? #f))
4548 `(("python-pyzmq" ,python-pyzmq)
4549 ("python-traitlets" ,python-traitlets)
4550 ("python-jupyter-core" ,python-jupyter-core)))
4551 (home-page "http://jupyter.org/")
4552 (synopsis "Jupyter protocol implementation and client libraries")
4554 "The @code{jupyter_client} package contains the reference implementation
4555 of the Jupyter protocol. It also provides client and kernel management APIs
4556 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
4557 installing @code{kernelspec}s for use with Jupyter frontends.")
4558 (license license:bsd-3)))
4560 (define-public python2-jupyter-client
4561 (package-with-python2 python-jupyter-client))
4563 (define-public python-ipykernel
4565 (name "python-ipykernel")
4570 (uri (pypi-uri "ipykernel" version))
4572 (base32 "15c2bp1x3i6s4xb7vz7742h3kmvdfdfn9n2haywm3mwgvf77jni4"))))
4573 (build-system python-build-system)
4574 ;; The tests load a submodule of IPython. However, IPython itself depends
4576 (arguments `(#:tests? #f))
4578 ;; imported at runtime during connect
4579 `(("python-jupyter-client" ,python-jupyter-client)))
4580 (home-page "http://ipython.org")
4581 (synopsis "IPython Kernel for Jupyter")
4583 "This package provides the IPython kernel for Jupyter.")
4584 (license license:bsd-3)))
4586 (define-public python2-ipykernel
4587 (package-with-python2 python-ipykernel))
4589 (define-public python-testpath
4591 (name "python-testpath")
4596 (uri (string-append "https://github.com/jupyter/testpath/archive/"
4598 (file-name (string-append name "-" version ".tar.gz"))
4601 "04kh3fgvmqz6cfcw79q70qwjz7ib7lxm27cc548iy2rpr33qqf55"))))
4602 (build-system python-build-system)
4604 `(#:tests? #f ; this package does not even have a setup.py
4606 (modify-phases %standard-phases
4609 (lambda* (#:key inputs outputs #:allow-other-keys)
4610 (let ((dir (string-append
4611 (assoc-ref outputs "out")
4613 (string-take (string-take-right
4614 (assoc-ref inputs "python") 5) 3)
4615 "/site-packages/testpath")))
4617 (copy-recursively "testpath" dir))
4619 (home-page "https://github.com/takluyver/testpath")
4620 (synopsis "Test utilities for code working with files and commands")
4622 "Testpath is a collection of utilities for Python code working with files
4623 and commands. It contains functions to check things on the filesystem, and
4624 tools for mocking system commands and recording calls to those.")
4625 (license license:expat)))
4627 (define-public python2-testpath
4628 (package-with-python2 python-testpath))
4630 (define-public python-ipython
4632 (name "python-ipython")
4637 (uri (pypi-uri "ipython" version ".tar.gz"))
4639 (base32 "1npl8g6bfsff9j938ypx0q5fyzy2l8lp0jl8skjjj2zv0z27dlig"))))
4640 (build-system python-build-system)
4641 (outputs '("out" "doc"))
4643 `(("python-pyzmq" ,python-pyzmq)
4644 ("python-terminado" ,python-terminado)
4645 ("python-matplotlib" ,python-matplotlib)
4646 ("python-numpy" ,python-numpy)
4647 ("python-numpydoc" ,python-numpydoc)
4648 ("python-jinja2" ,python-jinja2)
4649 ("python-mistune" ,python-mistune)
4650 ("python-pexpect" ,python-pexpect)
4651 ("python-pickleshare" ,python-pickleshare)
4652 ("python-simplegeneric" ,python-simplegeneric)
4653 ("python-jsonschema" ,python-jsonschema)
4654 ("python-traitlets" ,python-traitlets)
4655 ("python-ipykernel" ,python-ipykernel)
4656 ("python-pygments" ,python-pygments)))
4658 `(("readline" ,readline)
4661 `(("pkg-config" ,pkg-config)
4662 ("python-requests" ,python-requests) ;; for tests
4663 ("python-testpath" ,python-testpath)
4664 ("python-nose" ,python-nose)
4665 ("python-sphinx" ,python-sphinx)
4666 ("texlive" ,texlive)
4667 ("texinfo" ,texinfo)))
4670 (modify-phases %standard-phases
4672 'install 'install-doc
4673 (lambda* (#:key inputs outputs #:allow-other-keys)
4674 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4675 (doc (string-append data "/doc/" ,name "-" ,version))
4676 (html (string-append doc "/html"))
4677 (man1 (string-append data "/man/man1"))
4678 (info (string-append data "/info"))
4679 (examples (string-append doc "/examples")))
4680 (setenv "LANG" "en_US.utf8")
4681 (with-directory-excursion "docs"
4682 ;; FIXME: pdf fails to build
4683 ;;(system* "make" "pdf" "PAPER=a4")
4684 (system* "make" "html")
4685 (system* "make" "info"))
4686 (copy-recursively "docs/man" man1)
4687 (copy-recursively "examples" examples)
4688 (copy-recursively "docs/build/html" html)
4689 ;; (copy-file "docs/build/latex/ipython.pdf"
4690 ;; (string-append doc "/ipython.pdf"))
4692 (copy-file "docs/build/texinfo/ipython.info"
4693 (string-append info "/ipython.info"))
4694 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4695 ;; Tests can only be run after the library has been installed and not
4696 ;; within the source directory.
4700 (lambda* (#:key outputs tests? #:allow-other-keys)
4702 (with-directory-excursion "/tmp"
4703 (setenv "HOME" "/tmp/") ;; required by a test
4704 (zero? (system* (string-append (assoc-ref outputs "out")
4709 (lambda* (#:key inputs #:allow-other-keys)
4710 (substitute* "./IPython/utils/_process_posix.py"
4711 (("/usr/bin/env', 'which") (which "which")))
4712 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4713 (("#!/usr/bin/env python")
4714 (string-append "#!" (which "python"))))
4715 ;; Disable 1 failing test
4716 (substitute* "./IPython/core/tests/test_magic.py"
4717 (("def test_dirops\\(\\):" all)
4718 (string-append "@dec.skipif(True)\n" all))))))))
4719 (home-page "http://ipython.org")
4720 (synopsis "IPython is a tool for interactive computing in Python")
4722 "IPython provides a rich architecture for interactive computing with:
4723 Powerful interactive shells, a browser-based notebook, support for interactive
4724 data visualization, embeddable interpreters and tools for parallel
4726 (license license:bsd-3)
4727 (properties `((python2-variant . ,(delay python2-ipython))))))
4729 (define-public python2-ipython
4730 (let ((ipython (package-with-python2 (strip-python2-variant python-ipython))))
4733 ;; FIXME: some tests are failing
4735 `(#:tests? #f ,@(package-arguments ipython)))
4736 ;; FIXME: add pyreadline once available.
4738 `(("python2-mock" ,python2-mock)
4739 ,@(package-inputs ipython))))))
4741 (define-public python-isodate
4743 (name "python-isodate")
4748 (uri (pypi-uri "isodate" version))
4751 "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
4752 (build-system python-build-system)
4754 "http://cheeseshop.python.org/pypi/isodate")
4756 "Python date parser and formatter")
4758 "Python-isodate is a python module for parsing and formatting
4759 ISO 8601 dates, time and duration.")
4760 (license license:bsd-3)))
4762 (define-public python2-isodate
4763 (package-with-python2 python-isodate))
4765 (define-public python-html5lib
4767 (name "python-html5lib")
4772 (uri (pypi-uri "html5lib" version))
4775 "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
4776 (build-system python-build-system)
4778 `(("python-six" ,python-six))) ; required to "import html5lib"
4780 `(#:test-target "check"))
4782 "https://github.com/html5lib/html5lib-python")
4784 "Python HTML parser based on the WHATWG HTML specifcation")
4786 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
4787 and written in Python.")
4788 (license license:expat)))
4790 (define-public python2-html5lib
4791 (package-with-python2 python-html5lib))
4793 ;; Needed for python-bleach, a dependency of python-notebook
4794 (define-public python-html5lib-0.9
4796 (inherit python-html5lib)
4801 (uri (pypi-uri "html5lib" version))
4804 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
4806 (define-public python2-html5lib-0.9
4807 (package-with-python2 python-html5lib-0.9))
4809 (define-public python-urwid
4811 (name "python-urwid")
4816 (uri (pypi-uri "urwid" version))
4819 "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng"))))
4820 (build-system python-build-system)
4823 (modify-phases %standard-phases
4824 ;; Disable failing test. Bug filed upstream:
4825 ;; https://github.com/wardi/urwid/issues/164
4826 ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3.
4827 (add-after 'unpack 'disable-failing-test
4829 (substitute* "urwid/tests/test_event_loops.py"
4830 (("test_remove_watch_file")
4831 "disable_remove_watch_file")))))))
4832 (home-page "http://urwid.org")
4833 (synopsis "Console user interface library for Python")
4835 "Urwid is a curses-based UI/widget library for Python. It includes many
4836 features useful for text console applications.")
4837 (license license:lgpl2.1+)))
4839 (define-public python2-urwid
4840 (package-with-python2 python-urwid))
4842 (define-public python-urwidtrees
4844 (name "python-urwidtrees")
4849 ;; package author intends on distributing via github rather than pypi:
4850 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
4851 (uri (string-append "https://github.com/pazz/urwidtrees/archive/"
4853 (file-name (string-append name "-" version ".tar.gz"))
4856 "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh"))))
4857 (build-system python-build-system)
4859 '(#:tests? #f)) ; no tests
4860 (propagated-inputs `(("python-urwid" ,python-urwid)))
4861 (home-page "https://github.com/pazz/urwidtrees")
4862 (synopsis "Tree widgets for urwid")
4863 (description "Urwidtrees is a Widget Container API for the @code{urwid}
4864 toolkit. Use it to build trees of widgets.")
4865 (license license:gpl3+)))
4867 (define-public python2-urwidtrees
4868 (package-with-python2 python-urwidtrees))
4870 (define-public python-dbus
4872 (name "python-dbus")
4878 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
4881 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
4882 (build-system gnu-build-system)
4885 (modify-phases %standard-phases
4889 ;; XXX: For the missing '/etc/machine-id'.
4890 (substitute* "test/run-test.sh"
4891 (("DBUS_FATAL_WARNINGS=1")
4892 "DBUS_FATAL_WARNINGS=0"))
4895 `(("pkg-config" ,pkg-config)))
4897 `(("python" ,python)
4898 ("dbus-glib" ,dbus-glib)))
4899 (synopsis "Python bindings for D-bus")
4900 (description "python-dbus provides bindings for libdbus, the reference
4901 implementation of D-Bus.")
4902 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
4903 (license license:expat)))
4905 (define-public python2-dbus
4906 (package (inherit python-dbus)
4907 (name "python2-dbus")
4908 (inputs `(("python" ,python-2)
4909 ,@(alist-delete "python"
4910 (package-inputs python-dbus)
4912 ;; FIXME: on Python 2, the test_utf8 fails with:
4913 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
4914 (arguments `(#:tests? #f))))
4916 (define-public python-apsw
4918 (name "python-apsw")
4919 (version "3.9.2-r1")
4923 (uri (pypi-uri "apsw" version))
4926 "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
4927 (build-system python-build-system)
4929 `(("sqlite" ,sqlite)))
4932 ;; swap check and install phases
4935 (assoc-ref %standard-phases 'check)
4938 %standard-phases))))
4939 (home-page "https://github.com/rogerbinns/apsw/")
4940 (synopsis "Another Python SQLite Wrapper")
4941 (description "APSW is a Python wrapper for the SQLite
4942 embedded relational database engine. In contrast to other wrappers such as
4943 pysqlite it focuses on being a minimal layer over SQLite attempting just to
4944 translate the complete SQLite API into Python.")
4945 (license license:zlib)))
4947 (define-public python2-apsw
4948 (package-with-python2 python-apsw))
4950 (define-public python-lxml
4952 (name "python-lxml")
4957 (uri (pypi-uri "lxml" version))
4960 "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w"))))
4961 (build-system python-build-system)
4963 `(("libxml2" ,libxml2)
4964 ("libxslt" ,libxslt)))
4965 (home-page "http://lxml.de/")
4967 "Python XML processing library")
4969 "The lxml XML toolkit is a Pythonic binding for the C libraries
4970 libxml2 and libxslt.")
4971 (license license:bsd-3))) ; and a few more, see LICENSES.txt
4973 (define-public python2-lxml
4974 (package-with-python2 python-lxml))
4976 ;; beautifulsoup4 has a totally different namespace than 3.x,
4977 ;; and pypi seems to put it under its own name, so I guess we should too
4978 (define-public python-beautifulsoup4
4980 (name "python-beautifulsoup4")
4985 (uri (pypi-uri "beautifulsoup4" version))
4988 "1qgmhw65ncsgccjhslgkkszif47q6gvxwqv4mim17agxd81p951w"))))
4989 (build-system python-build-system)
4992 (modify-phases %standard-phases
4993 ;; The Python 2 source is the definitive source of beautifulsoup4. We
4994 ;; must use this conversion script when building with Python 3. The
4995 ;; conversion script also runs the tests.
4996 ;; For more information, see the file 'convert-py3k' in the source
4999 (lambda _ (zero? (system* "./convert-py3k")))))))
5001 "http://www.crummy.com/software/BeautifulSoup/bs4/")
5003 "Python screen-scraping library")
5005 "Beautiful Soup is a Python library designed for rapidly setting up
5006 screen-scraping projects. It offers Pythonic idioms for navigating,
5007 searching, and modifying a parse tree, providing a toolkit for
5008 dissecting a document and extracting what you need. It automatically
5009 converts incoming documents to Unicode and outgoing documents to UTF-8.")
5010 (license license:expat)))
5012 (define-public python2-beautifulsoup4
5014 (inherit (package-with-python2
5015 (strip-python2-variant python-beautifulsoup4)))
5016 (arguments `(#:python ,python-2))))
5018 (define-public python2-cssutils
5020 (name "python2-cssutils")
5025 (uri (pypi-uri "cssutils" version))
5028 "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq"))))
5029 (build-system python-build-system)
5031 `(("python2-mock" ,python2-mock) ; for the tests
5032 ("unzip" ,unzip))) ; for unpacking the source
5034 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
5035 #:tests? #f ; The tests apparently download an external URL.
5037 (home-page "http://cthedot.de/cssutils/")
5039 "CSS Cascading Style Sheets library for Python")
5041 "Cssutils is a Python package for parsing and building CSS
5042 Cascading Style Sheets. Currently it provides a DOM only and no rendering
5044 (license license:lgpl3+)))
5046 (define-public python-cssselect
5048 (name "python-cssselect")
5053 (uri (pypi-uri "cssselect" version))
5056 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
5057 (build-system python-build-system)
5059 ;; tests fail with message
5060 ;; AttributeError: 'module' object has no attribute 'tests'
5063 "https://pythonhosted.org/cssselect/")
5065 "CSS3 selector parser and translator to XPath 1.0")
5067 "Cssselect ia a Python module that parses CSS3 Selectors and translates
5068 them to XPath 1.0 expressions. Such expressions can be used in lxml or
5069 another XPath engine to find the matching elements in an XML or HTML document.")
5070 (license license:bsd-3)))
5072 (define-public python2-cssselect
5073 (package-with-python2 python-cssselect))
5075 (define-public python-netifaces
5077 (name "python-netifaces")
5083 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
5088 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
5089 (build-system python-build-system)
5091 "https://bitbucket.org/al45tair/netifaces")
5093 "Python module for portable network interface information")
5095 "Netifaces is a Python module providing information on network
5096 interfaces in an easy and portable manner.")
5097 (license license:expat)))
5099 (define-public python2-netifaces
5100 (package-with-python2 python-netifaces))
5102 (define-public python-networkx
5104 (name "python-networkx")
5109 (uri (pypi-uri "networkx" version))
5111 (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
5112 (build-system python-build-system)
5113 ;; python-decorator is needed at runtime
5115 `(("python-decorator" ,python-decorator)))
5117 `(("python-nose" ,python-nose)))
5118 (home-page "http://networkx.github.io/")
5119 (synopsis "Python module for creating and manipulating graphs and networks")
5121 "NetworkX is a Python package for the creation, manipulation, and study
5122 of the structure, dynamics, and functions of complex networks.")
5123 (license license:bsd-3)))
5125 (define-public python2-networkx
5126 (package-with-python2 python-networkx))
5128 (define-public snakemake
5136 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
5139 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
5140 (build-system python-build-system)
5141 (home-page "https://bitbucket.org/johanneskoester/snakemake")
5142 (synopsis "Python-based execution environment for make-like workflows")
5144 "Snakemake aims to reduce the complexity of creating workflows by
5145 providing a clean and modern domain specific specification language (DSL) in
5146 Python style, together with a fast and comfortable execution environment.")
5147 (license license:expat)))
5149 (define-public python-seaborn
5151 (name "python-seaborn")
5156 (uri (pypi-uri "seaborn" version))
5158 (base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m"))))
5159 (build-system python-build-system)
5161 `(("python-pandas" ,python-pandas)
5162 ("python-matplotlib" ,python-matplotlib)
5163 ("python-scipy" ,python-scipy)))
5164 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
5165 (synopsis "Statistical data visualization")
5167 "Seaborn is a library for making attractive and informative statistical
5168 graphics in Python. It is built on top of matplotlib and tightly integrated
5169 with the PyData stack, including support for numpy and pandas data structures
5170 and statistical routines from scipy and statsmodels.")
5171 (license license:bsd-3)
5172 (properties `((python2-variant . ,(delay python2-seaborn))))))
5174 (define-public python2-seaborn
5175 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
5178 (propagated-inputs `(("python2-pytz" ,python2-pytz)
5179 ,@(package-propagated-inputs base))))))
5181 (define-public python-sympy
5183 (name "python-sympy")
5189 "https://github.com/sympy/sympy/releases/download/sympy-"
5190 version "/sympy-" version ".tar.gz"))
5192 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
5193 (build-system python-build-system)
5194 (home-page "http://www.sympy.org/")
5195 (synopsis "Python library for symbolic mathematics")
5197 "SymPy is a Python library for symbolic mathematics. It aims to become a
5198 full-featured computer algebra system (CAS) while keeping the code as simple
5199 as possible in order to be comprehensible and easily extensible.")
5200 (license license:bsd-3)))
5202 (define-public python2-sympy
5203 (package-with-python2 python-sympy))
5205 (define-public python-q
5212 (uri (pypi-uri "q" version))
5215 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
5216 (build-system python-build-system)
5217 (home-page "https://github.com/zestyping/q")
5218 (synopsis "Quick-and-dirty debugging output for tired programmers")
5220 "q is a Python module for \"print\" style of debugging Python code. It
5221 provides convenient short API for print out of values, tracebacks, and
5222 falling into the Python interpreter.")
5223 (license license:asl2.0)))
5225 (define-public python2-q
5226 (package-with-python2 python-q))
5228 (define-public python-testlib
5230 (name "python-testlib")
5236 "https://pypi.python.org/packages/source/t/testlib/testlib-"
5239 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
5240 (build-system python-build-system)
5242 `(("unzip" ,unzip)))
5247 (lambda* (#:key inputs outputs #:allow-other-keys)
5248 (let ((unzip (string-append (assoc-ref inputs "unzip")
5250 (source (assoc-ref inputs "source")))
5251 (and (zero? (system* unzip source))
5252 (chdir (string-append "testlib-" ,version)))))
5254 (synopsis "Python micro test suite harness")
5255 (description "A micro unittest suite harness for Python.")
5256 (home-page "https://github.com/trentm/testlib")
5257 (license license:expat)))
5259 (define-public python2-testlib
5260 (package-with-python2 python-testlib))
5262 (define-public python2-xlib
5264 (name "python2-xlib")
5268 (uri (string-append "mirror://sourceforge/python-xlib/python-xlib"
5270 "python-xlib-" version ".tar.gz"))
5273 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
5274 (build-system python-build-system)
5276 `(#:python ,python-2 ;Python 2 only
5277 #:tests? #f)) ;no tests
5278 (home-page "http://python-xlib.sourceforge.net/")
5279 (synopsis "Python X11 client library")
5281 "The Python X Library is intended to be a fully functional X client
5282 library for Python programs. It is useful to implement low-level X clients.
5283 It is written entirely in Python.")
5284 (license license:gpl2+)))
5286 (define-public python-singledispatch
5288 (name "python-singledispatch")
5293 (uri (pypi-uri "singledispatch" version))
5296 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
5297 (build-system python-build-system)
5299 `(("python-six" ,python-six)))
5301 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
5302 (synopsis "Backport of singledispatch feature from Python 3.4")
5304 "This library brings functools.singledispatch from Python 3.4 to Python
5306 (license license:expat)))
5308 (define-public python2-singledispatch
5309 (package-with-python2 python-singledispatch))
5311 (define-public python-tornado
5313 (name "python-tornado")
5318 (uri (pypi-uri "tornado" version))
5320 (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
5321 (build-system python-build-system)
5323 `(("python-certifi" ,python-certifi)))
5325 `(("python-backports-abc" ,python-backports-abc)))
5326 (home-page "http://www.tornadoweb.org/")
5327 (synopsis "Python web framework and asynchronous networking library")
5329 "Tornado is a Python web framework and asynchronous networking library,
5330 originally developed at FriendFeed. By using non-blocking network I/O,
5331 Tornado can scale to tens of thousands of open connections, making it ideal
5332 for long polling, WebSockets, and other applications that require a long-lived
5333 connection to each user.")
5334 (license license:asl2.0)
5335 (properties `((python2-variant . ,(delay python2-tornado))))))
5337 (define-public python2-tornado
5338 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
5339 (package (inherit tornado)
5341 `(("python2-backport-ssl-match-hostname"
5342 ,python2-backport-ssl-match-hostname)
5343 ("python2-singledispatch" ,python2-singledispatch)
5344 ,@(package-propagated-inputs tornado))))))
5346 ;; the python- version can be removed with python-3.5
5347 (define-public python-backports-abc
5349 (name "python-backports-abc")
5354 (uri (pypi-uri "backports_abc" version))
5357 "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
5358 (build-system python-build-system)
5359 (home-page "https://github.com/cython/backports_abc")
5360 (synopsis "Backport of additions to the 'collections.abc' module")
5362 "Python-backports-abc provides a backport of additions to the
5363 'collections.abc' module in Python-3.5.")
5364 (license license:psfl)))
5366 (define-public python2-backports-abc
5367 (package-with-python2 python-backports-abc))
5369 (define-public python-waf
5375 (uri (string-append "https://waf.io/"
5376 "waf-" version ".tar.bz2"))
5379 "1sl3ipi2czds57rlzjnpdzqa0skx8asfvmh3qmibpvdwf15rpppg"))))
5380 (build-system python-build-system)
5383 (modify-phases %standard-phases
5386 (zero? (system* "python" "waf-light" "configure" "build"))))
5389 (zero? (system* "python" "waf" "--version"))))
5392 (copy-file "waf" %output))))))
5393 (home-page "http://waf.io/")
5394 (synopsis "Python-based build system")
5396 "Waf is a Python-based framework for configuring, compiling and installing
5398 (license license:bsd-3)))
5400 (define-public python2-waf
5401 (package-with-python2 python-waf))
5403 (define-public python-pyzmq
5405 (name "python-pyzmq")
5410 (uri (pypi-uri "pyzmq" version))
5412 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
5413 (build-system python-build-system)
5416 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
5417 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
5418 ;; --inplace' for 'python setup.py test' to work.
5421 `(("zeromq" ,zeromq)))
5423 `(("pkg-config" ,pkg-config)
5424 ("python-nose" ,python-nose)))
5425 (home-page "http://github.com/zeromq/pyzmq")
5426 (synopsis "Python bindings for 0MQ")
5428 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
5429 (license license:bsd-4)))
5431 (define-public python2-pyzmq
5432 (package-with-python2 python-pyzmq))
5434 (define-public python-pep8
5436 (name "python-pep8")
5441 (uri (pypi-uri "pep8" version))
5444 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
5445 (build-system python-build-system)
5446 (home-page "http://pep8.readthedocs.org/")
5447 (synopsis "Python style guide checker")
5449 "This tools checks Python code against some of the style conventions in
5451 (license license:expat)))
5453 (define-public python2-pep8
5454 (package-with-python2 python-pep8))
5456 (define-public python-pyflakes
5458 (name "python-pyflakes")
5463 (uri (pypi-uri "pyflakes" version))
5466 "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
5467 (build-system python-build-system)
5469 "https://github.com/pyflakes/pyflakes")
5470 (synopsis "Passive checker of Python programs")
5472 "Pyflakes statically checks Python source code for common errors.")
5473 (license license:expat)))
5475 (define-public python2-pyflakes
5476 (package-with-python2 python-pyflakes))
5478 (define-public python-mccabe
5480 (name "python-mccabe")
5485 (uri (pypi-uri "mccabe" version))
5488 "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
5489 (build-system python-build-system)
5491 `(("python-pytest" ,python-pytest)
5492 ("python-pytest-runner" ,python-pytest-runner)))
5493 (home-page "https://github.com/flintwork/mccabe")
5494 (synopsis "McCabe checker, plugin for flake8")
5496 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5497 complexity of Python source code.")
5498 (license license:expat)))
5500 (define-public python2-mccabe
5501 (package-with-python2 python-mccabe))
5503 (define-public python-mccabe-0.2.1
5504 (package (inherit python-mccabe)
5509 (uri (pypi-uri "mccabe" version))
5512 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))))
5514 (define-public python2-mccabe-0.2.1
5515 (package-with-python2 python-mccabe-0.2.1))
5517 ;; Flake8 2.4.1 requires an older version of pep8.
5518 ;; This should be removed ASAP.
5519 (define-public python-pep8-1.5.7
5520 (package (inherit python-pep8)
5526 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5531 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
5533 (define-public python2-pep8-1.5.7
5534 (package-with-python2 python-pep8-1.5.7))
5536 ;; Flake8 2.4.1 requires an older version of pyflakes.
5537 ;; This should be removed ASAP.
5538 (define-public python-pyflakes-0.8.1
5539 (package (inherit python-pyflakes)
5545 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5550 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
5552 (define-public python2-pyflakes-0.8.1
5553 (package-with-python2 python-pyflakes-0.8.1))
5555 (define-public python-flake8
5557 (name "python-flake8")
5562 (uri (pypi-uri "flake8" version))
5565 "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
5566 (build-system python-build-system)
5568 `(("python-pep8" ,python-pep8)
5569 ("python-pyflakes" ,python-pyflakes)
5570 ("python-mccabe" ,python-mccabe)
5571 ("python-mock" ,python-mock)
5572 ("python-nose" ,python-nose)))
5573 (home-page "https://gitlab.com/pycqa/flake8")
5575 "The modular source code checker: pep8, pyflakes and co")
5577 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5578 (license license:expat)))
5580 (define-public python2-flake8
5581 (package-with-python2 python-flake8))
5583 ;; This will only be needed by the python-hacking package and will not be
5584 ;; necessary once python-hacking > 0.10.2 is released.
5585 (define-public python-flake8-2.2.4
5586 (package (inherit python-flake8)
5588 `(("python-pep8" ,python-pep8-1.5.7)
5589 ("python-pyflakes" ,python-pyflakes-0.8.1)
5590 ("python-mccabe" ,python-mccabe-0.2.1)
5591 ("python-mock" ,python-mock)
5592 ("python-nose" ,python-nose)))
5597 (uri (pypi-uri "flake8" version))
5600 "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
5602 (define-public python2-flake8-2.2.4
5603 (package-with-python2 python-flake8-2.2.4))
5605 (define-public python-mistune
5607 (name "python-mistune")
5613 "https://pypi.python.org/packages/source/m/mistune/mistune-"
5618 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
5619 (build-system python-build-system)
5621 `(("python-nose" ,python-nose)
5622 ("python-cython" ,python-cython)))
5623 (home-page "https://github.com/lepture/mistune")
5624 (synopsis "Markdown parser in pure Python")
5625 (description "This package provides a fast markdown parser in pure
5627 (license license:bsd-3)))
5629 (define-public python2-mistune
5630 (package-with-python2 python-mistune))
5632 (define-public python-markdown
5634 (name "python-markdown")
5639 (uri (pypi-uri "Markdown" version))
5642 "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
5643 (build-system python-build-system)
5646 (modify-phases %standard-phases
5649 (zero? (system* "python" "run-tests.py")))))))
5651 `(("python-nose" ,python-nose)
5652 ("python-pyyaml" ,python-pyyaml)))
5653 (home-page "https://pythonhosted.org/Markdown/")
5654 (synopsis "Python implementation of Markdown")
5656 "This package provides a Python implementation of John Gruber's
5657 Markdown. The library features international input, various Markdown
5658 extensions, and several HTML output formats. A command line wrapper
5659 markdown_py is also provided to convert Markdown files to HTML.")
5660 (license license:bsd-3)))
5662 (define-public python2-markdown
5663 (package-with-python2 python-markdown))
5665 (define-public python-ptyprocess
5667 (name "python-ptyprocess")
5673 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
5677 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
5678 (build-system python-build-system)
5680 `(("python-nose" ,python-nose)))
5683 (modify-phases %standard-phases
5686 (zero? (system* "nosetests")))))))
5687 (home-page "https://github.com/pexpect/ptyprocess")
5688 (synopsis "Run a subprocess in a pseudo terminal")
5690 "This package provides a Python library used to launch a subprocess in a
5691 pseudo terminal (pty), and interact with both the process and its pty.")
5692 (license license:isc)))
5694 (define-public python2-ptyprocess
5695 (package-with-python2 python-ptyprocess))
5697 (define-public python-terminado
5699 (name "python-terminado")
5704 (uri (pypi-uri "terminado" version))
5707 "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc"))))
5708 (build-system python-build-system)
5710 `(("python-tornado" ,python-tornado)
5711 ("python-ptyprocess" ,python-ptyprocess)))
5713 `(("python-nose" ,python-nose)))
5716 (modify-phases %standard-phases
5719 (zero? (system* "nosetests")))))))
5720 (home-page "https://github.com/takluyver/terminado")
5721 (synopsis "Terminals served to term.js using Tornado websockets")
5722 (description "This package provides a Tornado websocket backend for the
5723 term.js Javascript terminal emulator library.")
5724 (license license:bsd-2)
5725 (properties `((python2-variant . ,(delay python2-terminado))))))
5727 (define-public python2-terminado
5728 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
5729 (package (inherit terminado)
5731 `(("python2-backport-ssl-match-hostname"
5732 ,python2-backport-ssl-match-hostname)
5733 ,@(package-propagated-inputs terminado))))))
5735 (define-public python-fonttools
5737 (name "python-fonttools")
5742 "https://pypi.python.org/packages/source/F/FontTools/"
5743 "fonttools-" version ".tar.gz"))
5746 "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
5747 (build-system python-build-system)
5748 (arguments '(#:test-target "check"))
5749 (home-page "http://github.com/behdad/fonttools")
5750 (synopsis "Tools to manipulate font files")
5752 "FontTools/TTX is a library to manipulate font files from Python. It
5753 supports reading and writinfg of TrueType/OpenType fonts, reading and writing
5754 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
5755 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
5756 from an XML-based format.")
5757 (license (license:non-copyleft
5758 "file://LICENSE.txt"
5759 "See LICENSE.txt in the distribution."))))
5761 (define-public python2-fonttools
5762 (package-with-python2 python-fonttools))
5764 (define-public python-ly
5771 (uri (string-append "https://pypi.python.org/packages/57/4f/"
5772 "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9"
5773 "/python-ly-" version ".tar.gz"))
5776 "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62"))))
5777 (build-system python-build-system)
5778 (synopsis "Tool and library for manipulating LilyPond files")
5779 (description "This package provides a Python library to parse, manipulate
5780 or create documents in LilyPond format. A command line program ly is also
5781 provided that can be used to do various manipulations with LilyPond files.")
5782 (home-page "https://pypi.python.org/pypi/python-ly")
5783 (license license:gpl2+)))
5785 (define-public python-appdirs
5787 (name "python-appdirs")
5793 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
5798 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
5799 (build-system python-build-system)
5800 (home-page "http://github.com/ActiveState/appdirs")
5802 "Determine platform-specific dirs, e.g. a \"user data dir\"")
5804 "This module provides a portable way of finding out where user data
5805 should be stored on various operating systems.")
5806 (license license:expat)))
5808 (define-public python2-appdirs
5809 (package-with-python2 python-appdirs))
5811 (define-public python-llfuse
5813 (name "python-llfuse")
5818 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5819 "llfuse-" version ".tar.bz2"))
5822 "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v"))))
5823 (build-system python-build-system)
5828 `(("pkg-config" ,pkg-config)))
5829 (synopsis "Python bindings for FUSE")
5831 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
5832 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
5833 (license license:lgpl2.0+)
5834 (properties `((python2-variant . ,(delay python2-llfuse))))))
5836 (define-public python2-llfuse
5837 (package (inherit (package-with-python2
5838 (strip-python2-variant python-llfuse)))
5839 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
5842 (define-public python-llfuse-0.41
5843 (package (inherit python-llfuse)
5848 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5849 "llfuse-" version ".tar.bz2"))
5852 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
5853 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
5854 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
5855 (license (list license:expat license:lgpl2.0+))))
5857 (define-public python-msgpack
5859 (name "python-msgpack")
5863 (uri (pypi-uri "msgpack-python" version))
5866 "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs"))))
5867 (build-system python-build-system)
5868 (synopsis "MessagePack (de)serializer")
5869 (description "MessagePack is a fast, compact binary serialization format,
5870 suitable for similar data to JSON. This package provides CPython bindings for
5871 reading and writing MessagePack data.")
5872 (home-page "https://pypi.python.org/pypi/msgpack-python/")
5873 (license license:asl2.0)))
5875 (define-public python2-msgpack
5876 (package-with-python2 python-msgpack))
5878 (define-public python-netaddr
5880 (name "python-netaddr")
5886 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
5891 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
5892 (build-system python-build-system)
5893 (arguments `(#:tests? #f)) ;; No tests.
5894 (home-page "https://github.com/drkjam/netaddr/")
5895 (synopsis "Pythonic manipulation of network addresses")
5897 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
5898 and MAC network addresses.")
5899 (license license:bsd-3)))
5901 (define-public python2-netaddr
5902 (package-with-python2 python-netaddr))
5904 (define-public python-wrapt
5906 (name "python-wrapt")
5912 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
5917 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
5918 (build-system python-build-system)
5920 ;; Tests are not included in the tarball, they are only available in the
5923 (home-page "https://github.com/GrahamDumpleton/wrapt")
5924 (synopsis "Module for decorators, wrappers and monkey patching")
5926 "The aim of the wrapt module is to provide a transparent object proxy for
5927 Python, which can be used as the basis for the construction of function
5928 wrappers and decorator functions.")
5929 (license license:bsd-2)))
5931 (define-public python2-wrapt
5932 (package-with-python2 python-wrapt))
5934 (define-public python-iso8601
5936 (name "python-iso8601")
5941 (uri (pypi-uri "iso8601" version))
5944 "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8"))))
5945 (build-system python-build-system)
5946 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
5947 (synopsis "Module to parse ISO 8601 dates")
5949 "This module parses the most common forms of ISO 8601 date strings (e.g.
5950 @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
5951 (license license:expat)))
5953 (define-public python2-iso8601
5954 (package-with-python2 python-iso8601))
5956 (define-public python-monotonic
5958 (name "python-monotonic")
5964 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
5969 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
5970 (build-system python-build-system)
5971 (home-page "https://github.com/atdt/monotonic")
5972 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
5974 "This module provides a monotonic() function which returns the value (in
5975 fractional seconds) of a clock which never goes backwards.")
5976 (license license:asl2.0)))
5978 (define-public python2-monotonic
5979 (package-with-python2 python-monotonic))
5981 (define-public python-webob
5983 (name "python-webob")
5988 (uri (pypi-uri "WebOb" version))
5991 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
5992 (build-system python-build-system)
5994 `(("python-nose" ,python-nose)))
5995 (home-page "http://webob.org/")
5996 (synopsis "WSGI request and response object")
5998 "WebOb provides wrappers around the WSGI request environment, and an
5999 object to help create WSGI responses.")
6000 (license license:expat)))
6002 (define-public python2-webob
6003 (package-with-python2 python-webob))
6005 (define-public python-xlrd
6007 (name "python-xlrd")
6011 (uri (pypi-uri "xlrd" version))
6014 "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g"))))
6015 (build-system python-build-system)
6018 (modify-phases %standard-phases
6019 ;; Current test in setup.py does not work as of 1.0.0, so use nose to
6020 ;; run tests instead for now.
6021 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
6022 (native-inputs `(("python-nose" ,python-nose)))
6023 (home-page "http://www.python-excel.org/")
6024 (synopsis "Library for extracting data from Excel files")
6025 (description "This packages provides a library to extract data from
6026 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
6027 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
6028 Unicode-aware. It is not intended as an end-user tool.")
6029 (license license:bsd-3)))
6031 (define-public python2-xlrd
6032 (package-with-python2 python-xlrd))
6034 (define-public python-prettytable
6036 (name "python-prettytable")
6042 "https://pypi.python.org/packages/source/P/PrettyTable/"
6043 "prettytable-" version ".tar.bz2"))
6046 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
6047 (build-system python-build-system)
6048 (home-page "http://code.google.com/p/prettytable/")
6049 (synopsis "Display tabular data in an ASCII table format")
6051 "A library designed to represent tabular data in visually appealing ASCII
6052 tables. PrettyTable allows for selection of which columns are to be printed,
6053 independent alignment of columns (left or right justified or centred) and
6054 printing of sub-tables by specifying a row range.")
6055 (license license:bsd-3)))
6057 (define-public python2-prettytable
6058 (package-with-python2 python-prettytable))
6060 (define-public python-tables
6062 (name "python-tables")
6067 (uri (pypi-uri "tables" version))
6070 "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))))
6071 (build-system python-build-system)
6073 `(;; FIXME: python-build-system does not pass configure-flags to "build"
6074 ;; or "check", so we must override the build and check phases.
6076 (modify-phases %standard-phases
6077 (add-after 'unpack 'use-gcc
6079 (substitute* "setup.py"
6080 (("compiler = new_compiler\\(\\)" line)
6082 "\ncompiler.set_executables(compiler='gcc',"
6083 "compiler_so='gcc',"
6085 "linker_so='gcc -shared')")))
6088 (lambda* (#:key inputs #:allow-other-keys)
6089 (zero? (system* "python" "setup.py" "build"
6090 (string-append "--hdf5="
6091 (assoc-ref inputs "hdf5"))))))
6093 (lambda* (#:key inputs #:allow-other-keys)
6094 (zero? (system* "python" "setup.py" "check"
6095 (string-append "--hdf5="
6096 (assoc-ref inputs "hdf5")))))))))
6098 `(("python-numexpr" ,python-numexpr)
6099 ("python-numpy" ,python-numpy)))
6101 `(("python-cython" ,python-cython)
6102 ("pkg-config" ,pkg-config)))
6107 (home-page "http://www.pytables.org/")
6108 (synopsis "Hierarchical datasets for Python")
6109 (description "PyTables is a package for managing hierarchical datasets and
6110 designed to efficently cope with extremely large amounts of data.")
6111 (license license:bsd-3)))
6113 (define-public python2-tables
6114 (package-with-python2 python-tables))
6116 (define-public python-pyasn1
6118 (name "python-pyasn1")
6123 (uri (pypi-uri "pyasn1" version))
6126 "0zraxni14bqi20kr4bi6nwsh32aibz0fq0xaczfisw0zdpcsqg45"))))
6127 (build-system python-build-system)
6128 (home-page "http://pyasn1.sourceforge.net/")
6129 (synopsis "ASN.1 types and codecs")
6131 "This is an implementation of ASN.1 types and codecs in Python. It is
6132 suitable for a wide range of protocols based on the ASN.1 specification.")
6133 (license license:bsd-2)))
6135 (define-public python2-pyasn1
6136 (package-with-python2 python-pyasn1))
6138 (define-public python-pyasn1-modules
6140 (name "python-pyasn1-modules")
6145 (uri (pypi-uri "pyasn1-modules" version))
6148 "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
6149 (build-system python-build-system)
6151 `(("python-pyasn1" ,python-pyasn1)))
6152 (home-page "http://sourceforge.net/projects/pyasn1/")
6153 (synopsis "ASN.1 codec implementations")
6155 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
6156 implementations of ASN.1-based codecs and protocols.")
6157 (license license:bsd-3)))
6159 (define-public python2-pyasn1-modules
6160 (package-with-python2 python-pyasn1-modules))
6162 (define-public python-ipaddress
6164 (name "python-ipaddress")
6168 (uri (pypi-uri "ipaddress" version))
6171 "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas"))))
6172 (build-system python-build-system)
6173 (home-page "https://github.com/phihag/ipaddress")
6174 (synopsis "IP address manipulation library")
6176 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
6177 in Python. This library is used to create, poke at, and manipulate IPv4 and
6178 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
6179 module to older versions of Python.")
6180 (license license:psfl)))
6182 (define-public python2-ipaddress
6183 (package-with-python2 python-ipaddress))
6185 (define-public python2-ipaddr
6187 (name "python2-ipaddr")
6192 (uri (pypi-uri "ipaddr" version))
6194 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
6195 (build-system python-build-system)
6197 `(#:python ,python-2 ;version 2 only
6199 (modify-phases %standard-phases
6202 (zero? (system* "python" "ipaddr_test.py")))))))
6203 (home-page "https://github.com/google/ipaddr-py")
6204 (synopsis "IP address manipulation library")
6206 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
6207 IPv6 addresses and networks.
6209 For new implementations you may prefer to use the standard module
6210 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
6211 versions of Python.")
6212 (license license:asl2.0)))
6214 (define-public python-idna
6216 (name "python-idna")
6221 (uri (string-append "https://pypi.python.org/packages/source/i/"
6222 "idna/idna-" version ".tar.gz"))
6225 "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
6226 (build-system python-build-system)
6227 (home-page "https://github.com/kjd/idna")
6228 (synopsis "Internationalized domain names in applications")
6230 "This is a library to support the Internationalised Domain Names in
6231 Applications (IDNA) protocol as specified in RFC 5891. This version of the
6232 protocol is often referred to as “IDNA2008” and can produce different results
6233 from the earlier standard from 2003. The library is also intended to act as a
6234 suitable drop-in replacement for the “encodings.idna” module that comes with
6235 the Python standard library but currently only supports the older 2003
6237 (license license:bsd-4)))
6239 (define-public python2-idna
6240 (package-with-python2 python-idna))
6242 (define-public python-pretend
6244 (name "python-pretend")
6249 (uri (string-append "https://pypi.python.org/packages/source/p/"
6250 "pretend/pretend-" version ".tar.gz"))
6253 "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
6254 (build-system python-build-system)
6255 (home-page "https://github.com/alex/pretend")
6256 (synopsis "Library for stubbing in Python")
6258 "Pretend is a library to make stubbing with Python easier. Stubbing is a
6259 technique for writing tests. You may hear the term mixed up with mocks,
6260 fakes, or doubles. Basically, a stub is an object that returns pre-canned
6261 responses, rather than doing any computation.")
6262 (license license:bsd-3)))
6264 (define-public python2-pretend
6265 (package-with-python2 python-pretend))
6267 (define-public python-cryptography-vectors
6269 (name "python-cryptography-vectors")
6274 (uri (pypi-uri "cryptography_vectors" version))
6277 "1bnd1bricyhxa27rhr0ljk0kacxzvysd3ar2j2hlv13a2k6zw4z5"))))
6278 (build-system python-build-system)
6279 (home-page "https://github.com/pyca/cryptography")
6280 (synopsis "Test vectors for the cryptography package")
6282 "This package contains test vectors for the cryptography package.")
6283 ;; Distributed under either BSD-3 or ASL2.0
6284 (license (list license:bsd-3 license:asl2.0))))
6286 (define-public python2-cryptography-vectors
6287 (package-with-python2 python-cryptography-vectors))
6289 (define-public python-cryptography
6291 (name "python-cryptography")
6296 (uri (pypi-uri "cryptography" version))
6299 "1raanvkdfw5ai56ymlij6ghc4k126fs7jx948ig7yn4vj6ndv0ng"))))
6300 (build-system python-build-system)
6303 (modify-phases %standard-phases
6304 (add-before 'check 'disable-failing-test
6306 ;; This test is known to fail with OpenSSL >= 1.0.2i and older
6307 ;; versions of python-cryptography:
6308 ;; https://github.com/pyca/cryptography/issues/3196
6309 ;; TODO: Try re-enabling the test when upgrading
6310 ;; python-cryptography.
6311 (substitute* "tests/hazmat/backends/test_openssl.py"
6312 (("def test_numeric_string_x509_name_entry")
6313 "@pytest.mark.xfail\n def test_numeric_string_x509_name_entry"))
6316 `(("openssl" ,openssl)))
6318 `(("python-cffi" ,python-cffi)
6319 ("python-six" ,python-six)
6320 ("python-pyasn1" ,python-pyasn1)
6321 ("python-idna" ,python-idna)
6322 ("python-iso8601" ,python-iso8601)))
6324 `(("python-cryptography-vectors" ,python-cryptography-vectors)
6325 ("python-hypothesis" ,python-hypothesis)
6326 ("python-pretend" ,python-pretend)
6327 ("python-pyasn1" ,python-pyasn1)
6328 ("python-pyasn1-modules" ,python-pyasn1-modules)
6329 ("python-pytz" ,python-pytz)
6330 ("python-pytest" ,python-pytest-2.9.2)))
6331 (home-page "https://github.com/pyca/cryptography")
6332 (synopsis "Cryptographic recipes and primitives for Python")
6334 "cryptography is a package which provides cryptographic recipes and
6335 primitives to Python developers. It aims to be the “cryptographic standard
6336 library” for Python. The package includes both high level recipes, and low
6337 level interfaces to common cryptographic algorithms such as symmetric ciphers,
6338 message digests and key derivation functions.")
6339 ;; Distributed under either BSD-3 or ASL2.0
6340 (license (list license:bsd-3 license:asl2.0))
6341 (properties `((python2-variant . ,(delay python2-cryptography))))))
6343 (define-public python2-cryptography
6344 (let ((crypto (package-with-python2
6345 (strip-python2-variant python-cryptography))))
6346 (package (inherit crypto)
6348 `(("python2-ipaddress" ,python2-ipaddress)
6349 ("python2-backport-ssl-match-hostname"
6350 ,python2-backport-ssl-match-hostname)
6351 ("python2-enum34" ,python2-enum34)
6352 ,@(package-propagated-inputs crypto))))))
6354 (define-public python-pyopenssl
6356 (name "python-pyopenssl")
6361 (uri (pypi-uri "pyOpenSSL" version))
6364 "0prm06zz7hl6bk5s2lqzw25lq6smayfv2fgiliw2rbqxlyiavxw8"))))
6365 (build-system python-build-system)
6367 `(("python-cryptography" ,python-cryptography)
6368 ("python-six" ,python-six)))
6370 `(("openssl" ,openssl)))
6371 (home-page "https://github.com/pyca/pyopenssl")
6372 (synopsis "Python wrapper module around the OpenSSL library")
6374 "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
6376 (license license:asl2.0)))
6378 (define-public python2-pyopenssl
6379 (package-with-python2 python-pyopenssl))
6381 (define-public python-pip
6388 (uri (pypi-uri "pip" version))
6391 "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
6392 (build-system python-build-system)
6394 `(("python-virtualenv" ,python-virtualenv)
6396 ("python-mock" ,python-mock)
6397 ("python-pytest" ,python-pytest)
6398 ("python-scripttest" ,python-scripttest)))
6399 (home-page "https://pip.pypa.io/")
6401 "Package manager for Python software")
6403 "Pip is a package manager for Python software, that finds packages on the
6404 Python Package Index (PyPI).")
6405 (license license:expat)))
6407 (define-public python2-pip
6408 (package-with-python2 python-pip))
6410 (define-public python-tlsh
6412 (name "python-tlsh")
6414 (home-page "https://github.com/trendmicro/tlsh")
6417 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
6421 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
6422 (file-name (string-append name "-" version ".tar.gz"))))
6423 (build-system cmake-build-system)
6425 '(#:out-of-source? #f
6426 #:phases (modify-phases %standard-phases
6429 (lambda* (#:key outputs #:allow-other-keys)
6430 ;; Build and install the Python bindings. The underlying
6431 ;; C++ library is apparently not meant to be installed.
6432 (let ((out (assoc-ref outputs "out")))
6433 (with-directory-excursion "py_ext"
6434 (and (system* "python" "setup.py" "build")
6435 (system* "python" "setup.py" "install"
6436 (string-append "--prefix=" out))))))))))
6437 (inputs `(("python" ,python-wrapper))) ;for the bindings
6438 (synopsis "Fuzzy matching library for Python")
6440 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
6441 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
6442 value which can be used for similarity comparisons. Similar objects have
6443 similar hash values, which allows for the detection of similar objects by
6444 comparing their hash values. The byte stream should have a sufficient amount
6445 of complexity; for example, a byte stream of identical bytes will not generate
6447 (license license:asl2.0)))
6449 (define-public python2-tlsh
6451 (inherit python-tlsh)
6452 (name "python2-tlsh")
6453 (inputs `(("python" ,python-2)))))
6455 (define-public python-termcolor
6457 (name "python-termcolor")
6462 (uri (pypi-uri "python-termcolor" version))
6465 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
6466 (build-system python-build-system)
6468 ;; There are no tests.
6470 (home-page "http://pypi.python.org/pypi/termcolor")
6471 (synopsis "ANSII Color formatting for terminal output")
6473 "This package provides ANSII Color formatting for output in terminals.")
6474 (license license:expat)))
6476 (define-public python2-termcolor
6477 (package-with-python2 python-termcolor))
6479 (define-public python-libarchive-c
6481 (name "python-libarchive-c")
6485 (uri (pypi-uri "libarchive-c" version))
6488 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
6489 (build-system python-build-system)
6491 '(#:phases (modify-phases %standard-phases
6493 'build 'reference-libarchive
6494 (lambda* (#:key inputs #:allow-other-keys)
6495 ;; Retain the absolute file name of libarchive.so.
6496 (let ((libarchive (assoc-ref inputs "libarchive")))
6497 (substitute* "libarchive/ffi.py"
6498 (("find_library\\('archive'\\)")
6499 (string-append "'" libarchive
6500 "/lib/libarchive.so'")))))))))
6502 `(("libarchive" ,libarchive)))
6503 (home-page "https://github.com/Changaco/python-libarchive-c")
6504 (synopsis "Python interface to libarchive")
6506 "This package provides Python bindings to libarchive, a C library to
6507 access possibly compressed archives in many different formats. It uses
6508 Python's @code{ctypes} foreign function interface (FFI).")
6509 (license license:lgpl2.0+)))
6511 (define-public python2-libarchive-c
6512 (package-with-python2 python-libarchive-c))
6514 (define-public python-file
6517 (name "python-file")
6519 (inherit (package-source file))
6520 ;; This patch should not be applied to python2-file.
6521 (patches (search-patches "python-file-double-encoding-bug.patch"))))
6522 (build-system python-build-system)
6524 '(#:tests? #f ;no tests
6525 #:configure-flags '("--single-version-externally-managed" "--root=/")
6526 #:phases (modify-phases %standard-phases
6527 (add-before 'build 'change-directory
6531 (add-before 'build 'set-library-file-name
6532 (lambda* (#:key inputs #:allow-other-keys)
6533 (let ((file (assoc-ref inputs "file")))
6534 (substitute* "magic.py"
6535 (("find_library\\('magic'\\)")
6536 (string-append "'" file "/lib/libmagic.so'")))
6538 (inputs `(("file" ,file)))
6539 (self-native-input? #f)
6540 (synopsis "Python bindings to the libmagic file type guesser. Note that
6541 this module and the python-magic module both provide a \"magic.py\" file;
6542 these two modules, which are different and were developed separately, both
6543 serve the same purpose: provide Python bindings for libmagic.")))
6545 (define-public python2-file
6546 (package-with-python2 python-file))
6548 (define-public python-debian
6550 (name "python-debian")
6556 "https://pypi.python.org/packages/source/p/python-debian/python-debian-"
6560 "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
6561 (build-system python-build-system)
6563 `(("python-six" ,python-six)))
6564 (home-page "http://packages.debian.org/sid/python-debian")
6565 (synopsis "Debian package related modules")
6567 ;; XXX: Use @enumerate instead of @itemize to work around
6568 ;; <http://bugs.gnu.org/21772>.
6569 "This package provides Python modules that abstract many formats of
6570 Debian-related files, such as:
6573 @item Debtags information;
6574 @item @file{debian/changelog} files;
6575 @item packages files, pdiffs;
6576 @item control files of single or multiple RFC822-style paragraphs---e.g.
6577 @file{debian/control}, @file{.changes}, @file{.dsc};
6578 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6579 contained files and meta-information.
6582 ;; Modules are either GPLv2+ or GPLv3+.
6583 (license license:gpl3+)))
6585 (define-public python2-debian
6586 (package-with-python2 python-debian))
6588 (define-public python-nbformat
6590 (name "python-nbformat")
6595 (uri (pypi-uri "nbformat" version))
6598 "0mq8iki3d4mnx7wy05phss7x98mds4fqydin8lcagidp1knw1xnv"))))
6599 (build-system python-build-system)
6600 (arguments `(#:tests? #f)) ; no test target
6602 `(("python-ipython-genutils" ,python-ipython-genutils)
6603 ("python-jsonschema" ,python-jsonschema)
6604 ("python-jupyter-core" ,python-jupyter-core)
6605 ("python-traitlets" ,python-traitlets)))
6606 (home-page "http://jupyter.org")
6607 (synopsis "Jupyter Notebook format")
6608 (description "This package provides the reference implementation of the
6609 Jupyter Notebook format and Python APIs for working with notebooks.")
6610 (license license:bsd-3)))
6612 (define-public python2-nbformat
6613 (package-with-python2 python-nbformat))
6615 (define-public python-bleach
6617 (name "python-bleach")
6622 (uri (pypi-uri "bleach" version))
6625 "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj"))))
6626 (build-system python-build-system)
6628 `(("python-html5lib" ,python-html5lib-0.9)
6629 ("python-six" ,python-six)))
6631 `(("python-nose" ,python-nose)))
6632 (home-page "http://github.com/jsocol/bleach")
6633 (synopsis "Whitelist-based HTML-sanitizing tool")
6634 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
6635 (license license:asl2.0)))
6637 (define-public python2-bleach
6638 (package-with-python2 python-bleach))
6640 (define-public python-entrypoints
6642 (name "python-entrypoints")
6647 (uri (string-append "https://github.com/takluyver/entrypoints/archive/"
6649 (file-name (string-append name "-" version ".tar.gz"))
6652 "0azqlkh3j0za080lsf5crnhaxx3c93k9dpv5ihkhf5cppgw5sjz5"))))
6653 (build-system python-build-system)
6654 ;; The package does not come with a setup.py file, so we have to generate
6659 (modify-phases %standard-phases
6660 (add-after 'unpack 'create-setup.py
6662 (call-with-output-file "setup.py"
6665 from setuptools import setup
6666 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
6668 (home-page "https://github.com/takluyver/entrypoints")
6669 (synopsis "Discover and load entry points from installed Python packages")
6670 (description "Entry points are a way for Python packages to advertise
6671 objects with some common interface. The most common examples are
6672 @code{console_scripts} entry points, which define shell commands by
6673 identifying a Python function to run. The @code{entrypoints} module contains
6674 functions to find and load entry points.")
6675 (license license:expat)))
6677 (define-public python2-entrypoints
6678 (package-with-python2 python-entrypoints))
6680 (define-public python-nbconvert
6682 (name "python-nbconvert")
6687 (uri (pypi-uri "nbconvert" version))
6690 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
6691 (build-system python-build-system)
6692 ;; The "bdist_egg" target is disabled by default, causing the installation
6694 (arguments `(#:configure-flags (list "bdist_egg")))
6696 `(("python-bleach" ,python-bleach)
6697 ("python-entrypoints" ,python-entrypoints)
6698 ("python-jinja2" ,python-jinja2)
6699 ("python-jupyter-core" ,python-jupyter-core)
6700 ("python-mistune" ,python-mistune)
6701 ("python-nbformat" ,python-nbformat)
6702 ("python-pygments" ,python-pygments)
6703 ("python-traitlets" ,python-traitlets)))
6704 (home-page "http://jupyter.org")
6705 (synopsis "Converting Jupyter Notebooks")
6706 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
6707 notebooks to various other formats via Jinja templates. It allows you to
6708 convert an @code{.ipynb} notebook file into various static formats including:
6716 @item ReStructured Text (rst)
6717 @item executable script
6719 (license license:bsd-3)))
6721 (define-public python2-nbconvert
6722 (package-with-python2 python-nbconvert))
6724 (define-public python-notebook
6726 (name "python-notebook")
6730 (uri (pypi-uri "notebook" version))
6733 "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r"))))
6734 (build-system python-build-system)
6737 (modify-phases %standard-phases
6740 ;; HOME must be set for tests
6741 (setenv "HOME" "/tmp")
6742 (zero? (system* "nosetests")))))))
6744 `(("python-jupyter-core" ,python-jupyter-core)
6745 ("python-nbformat" ,python-nbformat)
6746 ("python-nbconvert" ,python-nbconvert)
6747 ("python-ipython" ,python-ipython)))
6749 `(("python-nose" ,python-nose)
6750 ("python-sphinx" ,python-sphinx)
6751 ("python-requests" ,python-requests)))
6752 (home-page "http://jupyter.org/")
6753 (synopsis "Web-based notebook environment for interactive computing")
6755 "The Jupyter HTML notebook is a web-based notebook environment for
6756 interactive computing.")
6757 (license license:bsd-3)))
6759 (define-public python2-notebook
6760 (package-with-python2 python-notebook))
6762 (define-public python-widgetsnbextension
6764 (name "python-widgetsnbextension")
6769 (uri (pypi-uri "widgetsnbextension" version))
6772 "0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666"))))
6773 (build-system python-build-system)
6775 `(("python-notebook" ,python-notebook)))
6777 `(("python-nose" ,python-nose)))
6778 (home-page "http://ipython.org")
6779 (synopsis "IPython HTML widgets for Jupyter")
6780 (description "This package provides interactive HTML widgets for Jupyter
6782 (license license:bsd-3)))
6784 (define-public python2-widgetsnbextension
6785 (package-with-python2 python-widgetsnbextension))
6787 (define-public python-ipywidgets
6789 (name "python-ipywidgets")
6794 (uri (pypi-uri "ipywidgets" version))
6797 "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms"))))
6798 (build-system python-build-system)
6799 ;; FIXME: it's not clear how to run the tests.
6800 (arguments `(#:tests? #f))
6802 `(("python-ipykernel" ,python-ipykernel)
6803 ("python-ipython" ,python-ipython)
6804 ("python-traitlets" ,python-traitlets)
6805 ("python-widgetsnbextension" ,python-widgetsnbextension)))
6806 (home-page "http://ipython.org")
6807 (synopsis "IPython HTML widgets for Jupyter")
6808 (description "Ipywidgets are interactive HTML widgets for Jupyter
6809 notebooks and the IPython kernel. Notebooks come alive when interactive
6810 widgets are used. Users gain control of their data and can visualize changes
6812 (license license:bsd-3)))
6814 (define-public python2-ipywidgets
6815 (package-with-python2 python-ipywidgets))
6817 (define-public python-jupyter-console
6819 (name "python-jupyter-console")
6824 (uri (pypi-uri "jupyter_console" version))
6827 "04acmkwsi99rcg3vb54c6n492zv35s92h2ahabc0w6wj976cipvx"))))
6828 (build-system python-build-system)
6829 ;; FIXME: it's not clear how to run the tests.
6830 (arguments `(#:tests? #f))
6832 `(("python-ipykernel" ,python-ipykernel)
6833 ("python-ipython" ,python-ipython)
6834 ("python-jupyter-client" ,python-jupyter-client)
6835 ("python-prompt-toolkit" ,python-prompt-toolkit)
6836 ("python-pygments" ,python-pygments)))
6837 (home-page "https://jupyter.org")
6838 (synopsis "Jupyter terminal console")
6839 (description "This package provides a terminal-based console frontend for
6840 Jupyter kernels. It also allows for console-based interaction with non-Python
6841 Jupyter kernels such as IJulia and IRKernel.")
6842 (license license:bsd-3)))
6844 (define-public python2-jupyter-console
6845 (package-with-python2 python-jupyter-console))
6847 (define-public jupyter
6854 (uri (pypi-uri "jupyter" version))
6857 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
6858 (build-system python-build-system)
6859 ;; FIXME: it's not clear how to run the tests.
6860 (arguments `(#:tests? #f))
6862 `(("python-ipykernel" ,python-ipykernel)
6863 ("python-ipywidgets" ,python-ipywidgets)
6864 ("python-jupyter-console" ,python-jupyter-console)
6865 ("python-nbconvert" ,python-nbconvert)
6866 ("python-notebook" ,python-notebook)))
6867 (home-page "http://jupyter.org")
6868 (synopsis "Web application for interactive documents")
6870 "The Jupyter Notebook is a web application that allows you to create and
6871 share documents that contain live code, equations, visualizations and
6872 explanatory text. Uses include: data cleaning and transformation, numerical
6873 simulation, statistical modeling, machine learning and much more.")
6874 (license license:bsd-3)))
6876 (define-public python-chardet
6878 (name "python-chardet")
6884 "https://pypi.python.org/packages/source/c/chardet/chardet-"
6889 "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
6890 (build-system python-build-system)
6891 (home-page "https://github.com/chardet/chardet")
6892 (synopsis "Universal encoding detector for Python 2 and 3")
6894 "This package provides @code{chardet}, a Python module that can
6895 automatically detect a wide range of file encodings.")
6896 (license license:lgpl2.1+)))
6898 (define-public python2-chardet
6899 (package-with-python2 python-chardet))
6901 (define-public python-docopt
6903 (name "python-docopt")
6908 ;; The release on PyPI does not include tests.
6910 "https://github.com/docopt/docopt/archive/"
6912 (file-name (string-append name "-" version ".tar.gz"))
6915 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
6916 (build-system python-build-system)
6918 `(("python-pytest" ,python-pytest)))
6920 `(#:phases (alist-replace
6922 (lambda _ (zero? (system* "py.test")))
6924 (home-page "http://docopt.org")
6925 (synopsis "Command-line interface description language for Python")
6926 (description "This library allows the user to define a command-line
6927 interface from a program's help message rather than specifying it
6928 programatically with command-line parsers like @code{getopt} and
6930 (license license:expat)))
6932 (define-public python2-docopt
6933 (package-with-python2 python-docopt))
6935 (define-public python-zope-event
6937 (name "python-zope-event")
6942 (uri (string-append "https://pypi.python.org/packages/source/z"
6943 "/zope.event/zope.event-" version ".tar.gz"))
6946 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
6947 (build-system python-build-system)
6948 (home-page "http://pypi.python.org/pypi/zope.event")
6949 (synopsis "Event publishing system for Python")
6950 (description "Zope.event provides an event publishing API, intended for
6951 use by applications which are unaware of any subscribers to their events. It
6952 is a simple event-dispatching system on which more sophisticated event
6953 dispatching systems can be built.")
6954 (license license:zpl2.1)))
6956 (define-public python2-zope-event
6957 (package-with-python2 python-zope-event))
6959 (define-public python-zope-interface
6961 (name "python-zope-interface")
6966 (uri (string-append "https://pypi.python.org/packages/source/z"
6967 "/zope.interface/zope.interface-" version ".tar.gz"))
6970 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
6971 (build-system python-build-system)
6973 `(("python-zope-event" ,python-zope-event)))
6974 (home-page "https://github.com/zopefoundation/zope.interface")
6975 (synopsis "Python implementation of the \"design by contract\"
6977 (description "Zope.interface provides an implementation of \"object
6978 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
6979 conforming to a given API or contract.")
6980 (license license:zpl2.1)))
6982 (define-public python2-zope-interface
6983 (package-with-python2 python-zope-interface))
6985 (define-public python-zope-exceptions
6987 (name "python-zope-exceptions")
6992 (uri (string-append "https://pypi.python.org/packages/source/z"
6993 "/zope.exceptions/zope.exceptions-"
6997 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
6998 (build-system python-build-system)
7000 '(#:tests? #f)) ; circular dependency with zope.testrunner
7002 `(("python-zope-interface" ,python-zope-interface)))
7003 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
7004 (synopsis "Zope exceptions")
7005 (description "Zope.exceptions provides general-purpose exception types
7006 that have uses outside of the Zope framework.")
7007 (license license:zpl2.1)))
7009 (define-public python2-zope-exceptions
7010 (package-with-python2 python-zope-exceptions))
7012 (define-public python-zope-testing
7014 (name "python-zope-testing")
7019 (uri (string-append "https://pypi.python.org/packages/source/z"
7020 "/zope.testing/zope.testing-" version ".tar.gz"))
7023 "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))
7024 (modules '((guix build utils)))
7027 ;; Remove pre-compiled .pyc files backup files from source.
7028 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
7030 (build-system python-build-system)
7032 `(("python-zope-exceptions" ,python-zope-exceptions)))
7034 `(("python-zope-interface" ,python-zope-interface)))
7035 (home-page "http://pypi.python.org/pypi/zope.testing")
7036 (synopsis "Zope testing helpers")
7037 (description "Zope.testing provides a number of testing utilities for HTML
7038 forms, HTTP servers, regular expressions, and more.")
7039 (license license:zpl2.1)))
7041 (define-public python2-zope-testing
7042 (package-with-python2 python-zope-testing))
7044 (define-public python-zope-testrunner
7046 (name "python-zope-testrunner")
7051 (uri (string-append "https://pypi.python.org/packages/source/z"
7052 "/zope.testrunner/zope.testrunner-"
7056 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
7057 (build-system python-build-system)
7059 `(("python-six" ,python-six)
7060 ("python-zope-exceptions" ,python-zope-exceptions)
7061 ("python-zope-testing" ,python-zope-testing)
7064 `(("python-zope-interface" ,python-zope-interface)))
7065 (home-page "http://pypi.python.org/pypi/zope.testrunner")
7066 (synopsis "Zope testrunner script")
7067 (description "Zope.testrunner provides a script for running Python
7069 (license license:zpl2.1)))
7071 (define-public python2-zope-testrunner
7072 (let ((base (package-with-python2 python-zope-testrunner)))
7076 (append (package-native-inputs base)
7077 `(("python2-subunit" ,python2-subunit)
7078 ("python2-mimeparse" ,python2-mimeparse)))))))
7080 (define-public python-zope-i18nmessageid
7082 (name "python-zope-i18nmessageid")
7088 "https://pypi.python.org/packages/source/z"
7089 "/zope.i18nmessageid/zope.i18nmessageid-"
7093 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
7094 (build-system python-build-system)
7095 (home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
7096 (synopsis "Message identifiers for internationalization")
7097 (description "Zope.i18nmessageid provides facilities for declaring
7098 internationalized messages within program source text.")
7099 (license license:zpl2.1)))
7101 (define-public python2-zope-i18nmessageid
7102 (package-with-python2 python-zope-i18nmessageid))
7104 (define-public python-zope-schema
7106 (name "python-zope-schema")
7111 (uri (string-append "https://pypi.python.org/packages/source/z"
7112 "/zope.schema/zope.schema-" version ".tar.gz"))
7115 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
7116 (build-system python-build-system)
7118 `(("python-zope-event" ,python-zope-event)
7119 ("python-zope-interface" ,python-zope-interface)))
7121 `(("python-zope-testing" ,python-zope-testing)))
7122 (home-page "http://pypi.python.org/pypi/zope.schema")
7123 (synopsis "Zope data schemas")
7124 (description "Zope.scheme provides extensions to zope.interface for
7125 defining data schemas.")
7126 (license license:zpl2.1)))
7128 (define-public python2-zope-schema
7129 (package-with-python2 python-zope-schema))
7131 (define-public python-zope-configuration
7133 (name "python-zope-configuration")
7137 (uri (string-append "https://pypi.python.org/packages/source/z"
7138 "/zope.configuration/zope.configuration-"
7142 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
7143 (build-system python-build-system)
7145 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
7146 ("python-zope-schema" ,python-zope-schema)))
7147 (home-page "http://pypi.python.org/pypi/zope.configuration")
7148 (synopsis "Zope Configuration Markup Language")
7149 (description "Zope.configuration implements ZCML, the Zope Configuration
7151 (license license:zpl2.1)))
7153 (define-public python2-zope-configuration
7154 (package-with-python2 python-zope-configuration))
7156 (define-public python-zope-proxy
7158 (name "python-zope-proxy")
7163 (uri (string-append "https://pypi.python.org/packages/source/z"
7164 "/zope.proxy/zope.proxy-" version ".tar.gz"))
7167 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
7168 (build-system python-build-system)
7170 `(("python-zope-interface" ,python-zope-interface)))
7171 (home-page "http://pypi.python.org/pypi/zope.proxy")
7172 (synopsis "Generic, transparent proxies")
7173 (description "Zope.proxy provides generic, transparent proxies for Python.
7174 Proxies are special objects which serve as mostly-transparent wrappers around
7175 another object, intervening in the apparent behavior of the wrapped object
7176 only when necessary to apply the policy (e.g., access checking, location
7177 brokering, etc.) for which the proxy is responsible.")
7178 (license license:zpl2.1)))
7180 (define-public python2-zope-proxy
7181 (package-with-python2 python-zope-proxy))
7183 (define-public python-zope-location
7185 (name "python-zope-location")
7190 (uri (string-append "https://pypi.python.org/packages/source/z"
7191 "/zope.location/zope.location-" version ".tar.gz"))
7194 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
7195 (build-system python-build-system)
7197 `(("python-zope-proxy" ,python-zope-proxy)
7198 ("python-zope-schema" ,python-zope-schema)))
7199 (home-page "http://pypi.python.org/pypi/zope.location/")
7200 (synopsis "Zope location library")
7201 (description "Zope.location implements the concept of \"locations\" in
7202 Zope3, which are are special objects that have a structural location.")
7203 (license license:zpl2.1)))
7205 (define-public python2-zope-location
7206 (package-with-python2 python-zope-location))
7208 (define-public python-zope-security
7210 (name "python-zope-security")
7215 (uri (string-append "https://pypi.python.org/packages/source/z"
7216 "/zope.security/zope.security-" version ".tar.gz"))
7219 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
7220 (build-system python-build-system)
7222 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
7223 ("python-zope-component" ,python-zope-component)
7224 ("python-zope-location" ,python-zope-location)
7225 ("python-zope-proxy" ,python-zope-proxy)
7226 ("python-zope-schema" ,python-zope-schema)
7227 ("python-zope-testrunner" ,python-zope-testrunner)
7228 ("python-zope-testing" ,python-zope-testing)))
7229 (home-page "http://pypi.python.org/pypi/zope.security")
7230 (synopsis "Zope security framework")
7231 (description "Zope.security provides a generic mechanism to implement
7232 security policies on Python objects.")
7233 (license license:zpl2.1)))
7235 (define-public python2-zope-security
7236 (let ((zope-security (package-with-python2 python-zope-security)))
7237 (package (inherit zope-security)
7239 `(("python2-zope-testrunner" ,python2-zope-testrunner)
7241 "python-zope-testrunner"
7242 (package-propagated-inputs zope-security)))))))
7244 (define-public python-zope-component
7246 (name "python-zope-component")
7251 (uri (string-append "https://pypi.python.org/packages/source/z"
7252 "/zope.component/zope.component-" version ".tar.gz"))
7255 "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
7256 (build-system python-build-system)
7258 ;; Skip tests due to circular dependency with python-zope-security.
7261 `(("python-zope-testing" ,python-zope-testing)))
7263 `(("python-zope-event" ,python-zope-event)
7264 ("python-zope-interface" ,python-zope-interface)
7265 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
7266 ("python-zope-configuration" ,python-zope-configuration)))
7267 (home-page "https://github.com/zopefoundation/zope.component")
7268 (synopsis "Zope Component Architecture")
7269 (description "Zope.component represents the core of the Zope Component
7270 Architecture. Together with the zope.interface package, it provides
7271 facilities for defining, registering and looking up components.")
7272 (license license:zpl2.1)))
7274 (define-public python2-zope-component
7275 (package-with-python2 python-zope-component))
7277 (define-public python-pythondialog
7279 (name "python-pythondialog")
7284 (uri (pypi-uri "pythondialog" version))
7287 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
7288 (build-system python-build-system)
7291 (modify-phases %standard-phases
7292 (add-after 'unpack 'patch-path
7293 (lambda* (#:key inputs #:allow-other-keys)
7294 (let* ((dialog (assoc-ref inputs "dialog")))
7295 ;; Since this library really wants to grovel the search path, we
7296 ;; must hardcode dialog's store path into it.
7297 (substitute* "dialog.py"
7298 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
7299 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
7301 #:tests? #f)) ; no test suite
7303 `(("dialog" ,dialog)))
7304 (home-page "http://pythondialog.sourceforge.net/")
7305 (synopsis "Python interface to the UNIX dialog utility")
7306 (description "A Python wrapper for the dialog utility. Its purpose is to
7307 provide an easy to use, pythonic and comprehensive Python interface to dialog.
7308 This allows one to make simple text-mode user interfaces on Unix-like systems")
7309 (license license:lgpl2.1)
7310 (properties `((python2-variant . ,(delay python2-pythondialog))))))
7312 (define-public python2-pythondialog
7313 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
7316 (version (package-version python-pythondialog))
7319 (uri (pypi-uri "python2-pythondialog" version))
7322 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
7324 (define-public python-pyrfc3339
7326 (name "python-pyrfc3339")
7331 (uri (pypi-uri "pyRFC3339" version))
7334 "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
7335 (build-system python-build-system)
7337 `(("python-pytz" ,python-pytz)))
7339 `(("python-nose" ,python-nose)))
7340 (home-page "https://github.com/kurtraschke/pyRFC3339")
7341 (synopsis "Python timestamp library")
7342 (description "Python library for generating and parsing RFC 3339-compliant
7344 (license license:expat)))
7346 (define-public python2-pyrfc3339
7347 (package-with-python2 python-pyrfc3339))
7349 (define-public python-werkzeug
7351 (name "python-werkzeug")
7356 (uri (pypi-uri "Werkzeug" version))
7359 "1rgpq8a2qv26d75v9j3b074inirlyy6y4b5x4rxblp202jy4cb77"))))
7360 (build-system python-build-system)
7362 `(("python-pytest" ,python-pytest)))
7363 (home-page "http://werkzeug.pocoo.org/")
7364 (synopsis "Utilities for WSGI applications")
7365 (description "One of the most advanced WSGI utility modules. It includes a
7366 powerful debugger, full-featured request and response objects, HTTP utilities to
7367 handle entity tags, cache control headers, HTTP dates, cookie handling, file
7368 uploads, a powerful URL routing system and a bunch of community-contributed
7370 (license license:x11)))
7372 (define-public python2-werkzeug
7373 (package-with-python2 python-werkzeug))
7375 (define-public python-configobj
7377 (name "python-configobj")
7382 "https://pypi.python.org/packages/source/c/configobj/"
7383 "configobj-" version ".tar.gz"))
7386 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
7387 ;; Patch setup.py so it looks for python-setuptools, which is
7388 ;; required to parse the keyword 'install_requires' in setup.py.
7389 (patches (search-patches "python-configobj-setuptools.patch"))))
7390 (build-system python-build-system)
7392 `(("python-six" ,python-six)))
7393 (synopsis "Config file reading, writing and validation")
7394 (description "ConfigObj is a simple but powerful config file reader and
7395 writer: an ini file round tripper. Its main feature is that it is very easy to
7396 use, with a straightforward programmer’s interface and a simple syntax for
7398 (home-page "https://github.com/DiffSK/configobj")
7399 (license license:bsd-3)))
7401 (define-public python2-configobj
7402 (package-with-python2 python-configobj))
7404 (define-public python-configargparse
7406 (name "python-configargparse")
7411 "https://pypi.python.org/packages/source/C/ConfigArgParse/"
7412 "ConfigArgParse-" version ".tar.gz"))
7415 "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
7416 (build-system python-build-system)
7418 ;; FIXME: Bug in test suite filed upstream:
7419 ;; https://github.com/bw2/ConfigArgParse/issues/32
7421 (synopsis "Replacement for argparse")
7422 (description "A drop-in replacement for argparse that allows options to also
7423 be set via config files and/or environment variables.")
7424 (home-page "https://github.com/bw2/ConfigArgParse")
7425 (license license:expat)))
7427 (define-public python2-configargparse
7428 (package-with-python2 python-configargparse))
7430 (define-public python-ndg-httpsclient
7432 (name "python-ndg-httpsclient")
7437 "https://pypi.python.org/packages/source/n/ndg-httpsclient/"
7438 "ndg_httpsclient-" version ".tar.gz"))
7441 "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
7442 (build-system python-build-system)
7444 '(;; The tests appear to require networking.
7447 `(("python-pyopenssl" ,python-pyopenssl)))
7448 (synopsis "HTTPS support for Python's httplib and urllib2")
7449 (description "This is a HTTPS client implementation for httplib and urllib2
7450 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
7451 over the default provided with Python and importantly enables full verification
7453 (home-page "https://github.com/cedadev/ndg_httpsclient/")
7454 (license license:bsd-3)))
7456 ;; python2-openssl requires special care, so package-with-python2 is
7458 (define-public python2-ndg-httpsclient
7459 (package (inherit python-ndg-httpsclient)
7460 (name "python2-ndg-httpsclient")
7461 (arguments `(#:python ,python-2))
7463 `(("python2-pyopenssl" ,python2-pyopenssl)))))
7465 (define-public python-contextlib2
7467 (name "python-contextlib2")
7472 (uri (pypi-uri "contextlib2" version))
7475 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
7476 (build-system python-build-system)
7479 (modify-phases %standard-phases
7483 "python" "test_contextlib2.py" "-v")))))))
7484 (home-page "http://contextlib2.readthedocs.org/")
7485 (synopsis "Tools for decorators and context managers")
7486 (description "This module is primarily a backport of the Python
7487 3.2 contextlib to earlier Python versions. Like contextlib, it
7488 provides utilities for common tasks involving decorators and context
7489 managers. It also contains additional features that are not part of
7490 the standard library.")
7491 (license license:psfl)))
7493 (define-public python2-contextlib2
7494 (package-with-python2 python-contextlib2))
7496 (define-public python-texttable
7498 (name "python-texttable")
7503 (uri (pypi-uri "texttable" version))
7506 "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
7507 (build-system python-build-system)
7508 (arguments '(#:tests? #f)) ; no tests
7509 (home-page "https://github.com/foutaise/texttable/")
7510 (synopsis "Python module for creating simple ASCII tables")
7511 (description "Texttable is a Python module for creating simple ASCII
7513 (license license:lgpl2.1+)))
7515 (define-public python2-texttable
7516 (package-with-python2 python-texttable))
7518 (define-public python-websocket-client
7520 (name "python-websocket-client")
7525 (uri (pypi-uri "websocket_client" version))
7528 "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7"))))
7529 (build-system python-build-system)
7531 `(("python-six" ,python-six))) ; for tests
7532 (home-page "https://github.com/liris/websocket-client")
7533 (synopsis "WebSocket client for Python")
7534 (description "The Websocket-client module provides the low level APIs for
7535 WebSocket usage in Python programs.")
7536 (license license:lgpl2.1+)))
7538 (define-public python2-websocket-client
7539 (package-with-python2 python-websocket-client))
7541 (define-public python-atomicwrites
7543 (name "python-atomicwrites")
7547 (uri (pypi-uri "atomicwrites" version))
7550 "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0"))))
7551 (build-system python-build-system)
7552 (synopsis "Atomic file writes in Python")
7553 (description "Library for atomic file writes using platform dependent tools
7554 for atomic file system operations.")
7555 (home-page "https://github.com/untitaker/python-atomicwrites")
7556 (license license:expat)))
7558 (define-public python2-atomicwrites
7559 (package-with-python2 python-atomicwrites))
7561 (define-public python-requests-toolbelt
7563 (name "python-requests-toolbelt")
7568 "https://pypi.python.org/packages/"
7569 "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/"
7570 "requests-toolbelt-" version ".tar.gz"))
7573 "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6"))))
7574 (build-system python-build-system)
7576 `(("python-betamax" ,python-betamax)
7577 ("python-mock" ,python-mock)
7578 ("python-pytest" ,python-pytest)))
7580 `(("python-requests" ,python-requests)))
7581 (synopsis "Extensions to python-requests")
7582 (description "This is a toolbelt of useful classes and functions to be used
7583 with python-requests.")
7584 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
7585 (license license:asl2.0)))
7587 (define-public python-click-threading
7589 (name "python-click-threading")
7594 "https://pypi.python.org/packages/"
7595 "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/"
7596 "click-threading-" version ".tar.gz"))
7599 "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j"))))
7600 (build-system python-build-system)
7602 `(("python-click" ,python-click)))
7603 (synopsis "Utilities for multithreading in Click")
7604 (description "This package provides utilities for multithreading in Click
7606 (home-page "https://github.com/click-contrib/click-threading")
7607 (license license:expat)))
7609 (define-public python-click-log
7611 (name "python-click-log")
7615 (uri (pypi-uri "click-log" version))
7618 "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
7619 (build-system python-build-system)
7621 `(("python-click" ,python-click)))
7622 (synopsis "Logging for click applications")
7623 (description "This package provides a Python library for logging Click
7625 (home-page "https://github.com/click-contrib/click-log")
7626 (license license:expat)))
7628 (define-public python-apipkg
7630 (name "python-apipkg")
7634 (uri (pypi-uri "apipkg" version))
7637 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
7638 (build-system python-build-system)
7640 `(("python-pytest" ,python-pytest)))
7641 (synopsis "Namespace control and lazy-import mechanism")
7642 (description "With apipkg you can control the exported namespace of a Python
7643 package and greatly reduce the number of imports for your users. It is a small
7644 pure Python module that works on virtually all Python versions.")
7645 (home-page "https://bitbucket.org/hpk42/apipkg")
7646 (license license:expat)))
7648 (define-public python2-apipkg
7649 (package-with-python2 python-apipkg))
7651 (define-public python-execnet
7653 (name "python-execnet")
7657 (uri (pypi-uri "execnet" version))
7660 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
7661 (build-system python-build-system)
7663 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
7664 ;; The two test failures are caused by the lack of an `ssh` executable.
7665 ;; The test suite can be run with pytest after the 'install' phase.
7668 `(("python-pytest" ,python-pytest)
7669 ("python-setuptools-scm" ,python-setuptools-scm)))
7671 `(("python-apipkg" ,python-apipkg)))
7672 (synopsis "Rapid multi-Python deployment")
7673 (description "Execnet provides a share-nothing model with
7674 channel-send/receive communication for distributing execution across many
7675 Python interpreters across version, platform and network barriers. It has a
7676 minimal and fast API targetting the following uses:
7678 @item distribute tasks to (many) local or remote CPUs
7679 @item write and deploy hybrid multi-process applications
7680 @item write scripts to administer multiple environments
7682 (home-page "http://codespeak.net/execnet/")
7683 (license license:expat)))
7685 (define-public python2-execnet
7686 (package-with-python2 python-execnet))
7688 ;;; The software provided by this package was integrated into pytest 2.8.
7689 (define-public python-pytest-cache
7691 (name "python-pytest-cache")
7695 (uri (pypi-uri "pytest-cache" version))
7698 "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
7699 (build-system python-build-system)
7701 `(("python-apipkg" ,python-apipkg)
7702 ("python-execnet" ,python-execnet)
7703 ("python-py" ,python-py)
7704 ("python-pytest" ,python-pytest)))
7705 (synopsis "Py.test plugin with mechanisms for caching across test runs")
7706 (description "The pytest-cache plugin provides tools to rerun failures from
7707 the last py.test invocation.")
7708 (home-page "https://bitbucket.org/hpk42/pytest-cache/")
7709 (license license:expat)))
7711 (define-public python2-pytest-cache
7712 (package-with-python2 python-pytest-cache))
7714 (define-public python-pytest-localserver
7716 (name "python-pytest-localserver")
7720 (uri (pypi-uri "pytest-localserver" version))
7723 "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
7724 (build-system python-build-system)
7726 `(#:phases (modify-phases %standard-phases
7729 (zero? (system* "py.test" "--genscript=runtests.py"))
7730 (zero? (system* "py.test")))))))
7732 `(("python-pytest" ,python-pytest)
7733 ("python-requests" ,python-requests)
7734 ("python-six" ,python-six)))
7736 `(("python-werkzeug" ,python-werkzeug)))
7737 (synopsis "Py.test plugin to test server connections locally")
7738 (description "Pytest-localserver is a plugin for the pytest testing
7739 framework which enables you to test server connections locally.")
7740 (home-page "https://pypi.python.org/pypi/pytest-localserver")
7741 (license license:expat)))
7743 (define-public python-wsgi-intercept
7745 (name "python-wsgi-intercept")
7750 "https://pypi.python.org/packages/"
7751 "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/"
7752 "wsgi_intercept-" version ".tar.gz"))
7755 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
7756 (build-system python-build-system)
7758 `(("python-pytest" ,python-pytest)
7759 ("python-six" ,python-six)
7760 ("python-urllib3" ,python-urllib3)))
7762 `(("python-httplib2" ,python-httplib2)
7763 ("python-requests" ,python-requests)))
7764 (synopsis "Puts a WSGI application in place of a real URI for testing")
7765 (description "Wsgi_intercept installs a WSGI application in place of a real
7766 URI for testing. Testing a WSGI application normally involves starting a
7767 server at a local host and port, then pointing your test code to that address.
7768 Instead, this library lets you intercept calls to any specific host/port
7769 combination and redirect them into a WSGI application importable by your test
7770 program. Thus, you can avoid spawning multiple processes or threads to test
7772 (home-page "https://github.com/cdent/wsgi-intercept")
7773 (license license:expat)))
7775 (define-public python-pytest-xprocess
7777 (name "python-pytest-xprocess")
7781 (uri (pypi-uri "pytest-xprocess" version))
7784 "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
7785 (build-system python-build-system)
7787 `(("python-pytest" ,python-pytest)
7788 ("python-pytest-cache" ,python-pytest-cache)
7789 ("python-psutil" ,python-psutil)))
7790 (synopsis "Pytest plugin to manage external processes across test runs")
7791 (description "Pytest-xprocess is an experimental py.test plugin for managing
7792 processes across test runs.")
7793 (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
7794 (license license:expat)))
7796 (define-public python-icalendar
7798 (name "python-icalendar")
7802 (uri (pypi-uri "icalendar" version))
7805 "01amnk3621s7fagfla86npd25knbqirchg7h1jpqxqp103d02bs7"))))
7806 (build-system python-build-system)
7808 `(("python-dateutil-2" ,python-dateutil-2)
7809 ("python-pytz" ,python-pytz)))
7810 (synopsis "Python library for parsing iCalendar files")
7811 (description "The icalendar package is a parser/generator of iCalendar
7812 files for use with Python.")
7813 (home-page "https://github.com/collective/icalendar")
7814 (license license:bsd-2)))
7816 (define-public python-sphinxcontrib-newsfeed
7818 (name "python-sphinxcontrib-newsfeed")
7822 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
7825 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
7826 (build-system python-build-system)
7828 `(("python-docutils" ,python-docutils)
7829 ("python-sphinx" ,python-sphinx)))
7830 (synopsis "News Feed extension for Sphinx")
7831 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
7832 Blog, News or Announcements section to a Sphinx website.")
7833 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
7834 (license license:bsd-2)))
7836 (define-public python-args
7838 (name "python-args")
7842 (uri (pypi-uri "args" version))
7845 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
7846 (build-system python-build-system)
7847 (home-page "https://github.com/kennethreitz/args")
7848 (synopsis "Command-line argument parser")
7850 "This library provides a Python module to parse command-line arguments.")
7851 (license license:bsd-3)))
7853 (define-public python2-args
7854 (package-with-python2 python-args))
7856 (define-public python-clint
7858 (name "python-clint")
7862 (uri (pypi-uri "clint" version))
7865 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
7866 (build-system python-build-system)
7868 `(("python-args" ,python-args)))
7869 (home-page "https://github.com/kennethreitz/clint")
7870 (synopsis "Command-line interface tools")
7872 "Clint is a Python module filled with a set of tools for developing
7873 command-line applications, including tools for colored and indented
7874 output, progress bar display, and pipes.")
7875 (license license:isc)))
7877 (define-public python2-clint
7878 (package-with-python2 python-clint))
7880 (define-public python-astor
7882 (name "python-astor")
7886 (uri (pypi-uri "astor" version))
7889 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
7890 (build-system python-build-system)
7891 (home-page "https://github.com/berkerpeksag/astor")
7892 (synopsis "Read and write Python ASTs")
7894 "Astor is designed to allow easy manipulation of Python source via the
7895 Abstract Syntax Tree.")
7896 (license license:bsd-3)))
7898 (define-public python2-astor
7899 (package-with-python2 python-astor))
7901 (define-public python-rply
7903 (name "python-rply")
7907 (uri (pypi-uri "rply" version))
7910 "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
7911 (build-system python-build-system)
7913 `(("python-appdirs" ,python-appdirs)))
7914 (home-page "https://github.com/alex/rply")
7915 (synopsis "Parser generator for Python")
7917 "This package provides a pure Python based parser generator, that also
7918 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
7919 with a new public API, and RPython support.")
7920 (license license:bsd-3)))
7922 (define-public python2-rply
7923 (package-with-python2 python-rply))
7925 (define-public python-hy
7931 (uri (pypi-uri "hy" version))
7934 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
7935 (build-system python-build-system)
7937 `(("python-astor" ,python-astor)
7938 ("python-clint" ,python-clint)
7939 ("python-rply" ,python-rply)))
7940 (home-page "http://hylang.org/")
7941 (synopsis "Lisp frontend to Python")
7943 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
7944 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
7945 Python at your fingertips, in Lisp form.")
7946 (license license:expat)))
7948 (define-public python2-hy
7949 (package-with-python2 python-hy))
7951 (define-public python-rauth
7953 (name "python-rauth")
7958 (uri (pypi-uri "rauth" version))
7961 "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
7962 (build-system python-build-system)
7964 `(#:test-target "check"))
7966 `(("python-requests" ,python-requests)))
7967 (home-page "https://github.com/litl/rauth")
7968 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
7970 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
7971 provides service wrappers for convenient connection initialization and
7972 authenticated session objects providing things like keep-alive.")
7973 (license license:expat)
7974 (properties `((python2-variant . ,(delay python2-rauth))))))
7976 (define-public python2-rauth
7977 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
7980 (native-inputs `(("python2-unittest2" ,python2-unittest2)
7981 ,@(package-native-inputs base))))))
7983 (define-public python2-functools32
7985 (name "python2-functools32")
7990 (uri (pypi-uri "functools32" version))
7993 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
7994 (build-system python-build-system)
7996 `(#:python ,python-2
7997 #:tests? #f)) ; no test target
7998 (home-page "https://github.com/MiCHiLU/python-functools32")
8000 "Backport of the functools module from Python 3.2.3")
8002 "This package is a backport of the @code{functools} module from Python
8003 3.2.3 for use with older versions of Python and PyPy.")
8004 (license license:expat)))
8006 (define-public python2-futures
8008 (name "python2-futures")
8013 (uri (pypi-uri "futures" version))
8016 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
8017 (build-system python-build-system)
8018 (arguments `(#:python ,python-2))
8019 (home-page "https://github.com/agronholm/pythonfutures")
8021 "Backport of the concurrent.futures package from Python 3.2")
8023 "The concurrent.futures module provides a high-level interface for
8024 asynchronously executing callables. This package backports the
8025 concurrent.futures package from Python 3.2")
8026 (license license:bsd-3)))
8028 (define-public python-promise
8030 (name "python-promise")
8035 (uri (pypi-uri "promise" version))
8038 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
8039 (build-system python-build-system)
8040 ;; Tests wants python-futures, which is a python2 only program, and
8041 ;; can't be found by python-promise at test time.
8042 (arguments `(#:tests? #f))
8043 (home-page "https://github.com/syrusakbary/promise")
8044 (synopsis "Promises/A+ implementation for Python")
8046 "Promises/A+ implementation for Python")
8047 (properties `((python2-variant . ,(delay python2-promise))))
8048 (license license:expat)))
8050 (define-public python2-promise
8051 (let ((promise (package-with-python2
8052 (strip-python2-variant python-promise))))
8053 (package (inherit promise)
8054 (arguments (substitute-keyword-arguments (package-arguments promise)
8057 `(("python2-futures" ,python2-futures)
8058 ("python2-pytest" ,python2-pytest)
8059 ,@(package-native-inputs promise))))))
8061 (define-public python-urllib3
8063 (name "python-urllib3")
8068 (uri (pypi-uri "urllib3" version))
8071 "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam"))))
8072 (build-system python-build-system)
8073 (arguments `(#:tests? #f))
8075 `(;; some packages for tests
8076 ("python-nose" ,python-nose)
8077 ("python-mock" ,python-mock)
8078 ("python-tornado" ,python-tornado)))
8080 `(;; packages for https security
8081 ("python-certifi" ,python-certifi)
8082 ("python-ndg-httpsclient" ,python-ndg-httpsclient)
8083 ("python-pyasn1" ,python-pyasn1)
8084 ("python-pyopenssl" ,python-pyopenssl)))
8085 (home-page "https://urllib3.readthedocs.org/")
8086 (synopsis "HTTP library with thread-safe connection pooling")
8088 "Urllib3 supports features left out of urllib and urllib2 libraries. It
8089 can reuse the same socket connection for multiple requests, it can POST files,
8090 supports url redirection and retries, and also gzip and deflate decoding.")
8091 (license license:expat)))
8093 (define-public python2-urllib3
8094 (package-with-python2 python-urllib3))
8096 (define-public python-colorama
8098 (name "python-colorama")
8103 (uri (pypi-uri "colorama" version))
8106 "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
8107 (build-system python-build-system)
8108 (synopsis "colored terminal text rendering for Python")
8109 (description "Colorama is a Python library for rendering colored terminal
8111 (home-page "https://pypi.python.org/pypi/colorama")
8112 (license license:bsd-3)))
8114 (define-public python2-colorama
8115 (package-with-python2 python-colorama))
8117 (define-public python-rsa
8124 (uri (pypi-uri "rsa" version))
8127 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
8128 (build-system python-build-system)
8130 `(("python-pyasn1" ,python-pyasn1)))
8131 (synopsis "Pure-Python RSA implementation")
8132 (description "Python-RSA is a pure-Python RSA implementation. It supports
8133 encryption and decryption, signing and verifying signatures, and key
8134 generation according to PKCS#1 version 1.5. It can be used as a Python
8135 library as well as on the command line.")
8136 (home-page "http://stuvel.eu/rsa")
8137 (license license:asl2.0)))
8139 (define-public python2-rsa
8140 (package-with-python2 python-rsa))
8142 (define-public python-pluggy
8144 (name "python-pluggy")
8149 (uri (pypi-uri "pluggy" version))
8152 "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
8153 (build-system python-build-system)
8154 (synopsis "Plugin and hook calling mechanism for Python")
8155 (description "Pluggy is an extraction of the plugin manager as used by
8156 Pytest but stripped of Pytest specific details.")
8157 (home-page "https://pypi.python.org/pypi/pluggy")
8158 (license license:expat)))
8160 (define-public python2-pluggy
8161 (package-with-python2 python-pluggy))
8163 (define-public python-tox
8170 (uri (pypi-uri "tox" version))
8173 "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
8174 (build-system python-build-system)
8176 ;; FIXME: Tests require a newer version of pytest, but upgrading our
8177 ;; pytest breaks other packages.
8180 `(("python-pluggy" ,python-pluggy)
8181 ("python-py" ,python-py)
8182 ("python-virtualenv" ,python-virtualenv)
8183 ("python-pytest" ,python-pytest)))
8184 (home-page "http://tox.testrun.org/")
8185 (synopsis "Virtualenv-based automation of test activities")
8186 (description "Tox is a generic virtualenv management and test command line
8187 tool. It can be used to check that a package installs correctly with
8188 different Python versions and interpreters, or run tests in each type of
8189 supported environment, or act as a frontend to continuous integration
8191 (license license:expat)))
8193 (define-public python2-tox
8194 (package-with-python2 python-tox))
8196 (define-public python-jmespath
8198 (name "python-jmespath")
8203 (uri (pypi-uri "jmespath" version))
8206 "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
8207 (build-system python-build-system)
8208 (synopsis "JSON Matching Expressions")
8209 (description "JMESPath (pronounced “james path”) is a Python library that
8210 allows one to declaratively specify how to extract elements from a JSON
8212 (home-page "https://github.com/jmespath/jmespath.py")
8213 (license license:expat)))
8215 (define-public python2-jmespath
8216 (package-with-python2 python-jmespath))
8218 (define-public python-botocore
8220 (name "python-botocore")
8225 (uri (pypi-uri "botocore" version))
8228 "1zxczlwqy9bl27d9bc5x99mb5mcsxm350240lp5nx7014xb311lj"))))
8229 (build-system python-build-system)
8231 `(("python-dateutil" ,python-dateutil-2)
8232 ("python-docutils" ,python-docutils)
8233 ("python-mock" ,python-mock)
8234 ("python-nose" ,python-nose)
8235 ("python-tox" ,python-tox)
8236 ("python-wheel" ,python-wheel)
8237 ("python-jmespath" ,python-jmespath)))
8238 (home-page "https://github.com/boto/botocore")
8239 (synopsis "Low-level interface to AWS")
8240 (description "Botocore is a Python library that provides a low-level
8241 interface to the Amazon Web Services (AWS) API.")
8242 (license license:asl2.0)))
8244 (define-public python2-botocore
8245 (package-with-python2 python-botocore))
8247 (define-public awscli
8254 (uri (pypi-uri name version))
8257 "0lclasm0wnayd3b8zl9l91i32nbgrhh0ncf9lksss4cv0myfwmfg"))))
8258 (build-system python-build-system)
8260 `(("python-colorama" ,python-colorama)
8261 ("python-docutils" ,python-docutils)
8262 ("python-mock" ,python-mock)
8263 ("python-nose" ,python-nose)
8264 ("python-rsa" ,python-rsa)
8265 ("python-sphinx" ,python-sphinx)
8266 ("python-tox" ,python-tox)
8267 ("python-wheel" ,python-wheel)
8268 ("python-botocore" ,python-botocore)
8269 ("python-s3transfer" ,python-s3transfer)))
8270 (home-page "http://aws.amazon.com/cli/")
8271 (synopsis "Command line client for AWS")
8272 (description "AWS CLI provides a unified command line interface to the
8273 Amazon Web Services (AWS) API.")
8274 (license license:asl2.0)))
8276 (define-public python-hypothesis
8278 (name "python-hypothesis")
8282 (uri (pypi-uri "hypothesis" version))
8285 "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
8286 (build-system python-build-system)
8288 `(("python-flake8" ,python-flake8)
8289 ("python-pytest" ,python-pytest)))
8290 (synopsis "Library for property based testing")
8291 (description "Hypothesis is a library for testing your Python code against a
8292 much larger range of examples than you would ever want to write by hand. It’s
8293 based on the Haskell library, Quickcheck, and is designed to integrate
8294 seamlessly into your existing Python unit testing work flow.")
8295 (home-page "https://github.com/DRMacIver/hypothesis")
8296 (license license:mpl2.0)
8297 (properties `((python2-variant . ,(delay python2-hypothesis))))))
8299 (define-public python2-hypothesis
8300 (let ((hypothesis (package-with-python2
8301 (strip-python2-variant python-hypothesis))))
8302 (package (inherit hypothesis)
8304 `(("python2-enum34" ,python2-enum34))))))
8306 (define-public python-pytest-subtesthack
8308 (name "python-pytest-subtesthack")
8312 (uri (pypi-uri "pytest-subtesthack" version))
8315 "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
8316 (build-system python-build-system)
8318 `(("python-pytest" ,python-pytest)))
8319 (synopsis "Set-up and tear-down fixtures for unit tests")
8320 (description "This plugin allows you to set up and tear down fixtures within
8321 unit test functions that use @code{py.test}. This is useful for using
8322 @command{hypothesis} inside py.test, as @command{hypothesis} will call the test
8323 function multiple times, without setting up or tearing down fixture state as is
8324 normally the case.")
8325 (home-page "https://github.com/untitaker/pytest-subtesthack/")
8326 (license license:unlicense)))
8328 (define-public python2-pytest-subtesthack
8329 (package-with-python2 python-pytest-subtesthack))
8331 (define-public python2-xdo
8333 (name "python2-xdo")
8338 "http://http.debian.net/debian/pool/main/p/python-xdo/"
8339 "python-xdo_" version ".orig.tar.gz"))
8342 "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
8343 (build-system python-build-system)
8345 `(#:python ,python-2
8346 #:tests? #f)) ; no tests provided
8348 `(("xdotool" ,xdotool)
8349 ("libX11" ,libx11)))
8350 (home-page "https://tracker.debian.org/pkg/python-xdo")
8351 (synopsis "Python library for simulating X11 keyboard/mouse input")
8352 (description "Provides bindings to libxdo for manipulating X11 via simulated
8353 input. (Note that this is mostly a legacy library; you may wish to look at
8354 python-xdo for newer bindings.)")
8355 (license license:bsd-3)))
8357 (define-public python-wtforms
8359 (name "python-wtforms")
8364 (uri (pypi-uri "WTForms" version ".zip"))
8367 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
8368 (build-system python-build-system)
8371 (modify-phases %standard-phases
8372 (add-after 'unpack 'remove-django-test
8373 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
8377 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
8378 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
8381 `(("unzip" ,unzip)))
8382 (home-page "http://wtforms.simplecodes.com/")
8384 "Form validation and rendering library for Python web development")
8386 "WTForms is a flexible forms validation and rendering library
8387 for Python web development. It is very similar to the web form API
8388 available in Django, but is a standalone package.")
8389 (license license:bsd-3)))
8391 (define-public python2-wtforms
8392 (package-with-python2 python-wtforms))
8394 (define-public python-mako
8396 (name "python-mako")
8401 (uri (pypi-uri "Mako" version))
8404 "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
8405 (build-system python-build-system)
8407 `(("python-markupsafe" ,python-markupsafe)
8408 ("python-mock" ,python-mock)
8409 ("python-nose" ,python-nose)))
8410 (home-page "http://www.makotemplates.org/")
8411 (synopsis "Templating language for Python")
8412 (description "Mako is a templating language for Python that compiles
8413 templates into Python modules.")
8414 (license license:expat)))
8416 (define-public python2-mako
8417 (package-with-python2 python-mako))
8419 (define-public python-waitress
8421 (name "python-waitress")
8426 (uri (pypi-uri "waitress" version))
8429 "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
8430 (build-system python-build-system)
8431 (home-page "https://github.com/Pylons/waitress")
8432 (synopsis "Waitress WSGI server")
8433 (description "Waitress is meant to be a production-quality pure-Python WSGI
8434 server with very acceptable performance.")
8435 (license license:zpl2.1)))
8437 (define-public python2-waitress
8438 (package-with-python2 python-waitress))
8440 (define-public python-wsgiproxy2
8442 (name "python-wsgiproxy2")
8447 (uri (pypi-uri "WSGIProxy2" version ".zip"))
8450 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
8451 (build-system python-build-system)
8453 '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully
8454 ;; support Python 3:
8455 ;; https://github.com/benoitc/restkit/issues/140
8459 ("python-nose" ,python-nose)
8460 ("python-coverage" ,python-coverage)))
8462 `(("python-six" ,python-six)
8463 ("python-webob" ,python-webob)))
8465 "https://github.com/gawel/WSGIProxy2/")
8466 (synopsis "WSGI Proxy with various http client backends")
8467 (description "WSGI turns HTTP requests into WSGI function calls.
8468 WSGIProxy turns WSGI function calls into HTTP requests.
8469 It also includes code to sign requests and pass private data,
8470 and to spawn subprocesses to handle requests.")
8471 (license license:expat)))
8473 (define-public python2-wsgiproxy2
8474 (package-with-python2 python-wsgiproxy2))
8476 (define-public python-pastedeploy
8478 (name "python-pastedeploy")
8483 (uri (pypi-uri "PasteDeploy" version))
8486 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
8487 (build-system python-build-system)
8489 `(("python-nose" ,python-nose)))
8490 ;; Note: setuptools used at runtime for pkg_resources
8491 (home-page "http://pythonpaste.org/deploy/")
8493 "Load, configure, and compose WSGI applications and servers")
8495 "This tool provides code to load WSGI applications and servers from URIs;
8496 these URIs can refer to Python Eggs for INI-style configuration files. Paste
8497 Script provides commands to serve applications based on this configuration
8499 (license license:expat)))
8501 (define-public python2-pastedeploy
8502 (package-with-python2 python-pastedeploy))
8504 (define-public python-paste
8506 (name "python-paste")
8511 (uri (pypi-uri "Paste" version))
8514 "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
8515 (patches (search-patches "python-paste-remove-website-test.patch"
8516 "python-paste-remove-timing-test.patch"))))
8517 (build-system python-build-system)
8519 `(("python-nose" ,python-nose)))
8520 ;; Note: setuptools used at runtime for pkg_resources
8522 `(("python-six" ,python-six)))
8524 '(;; Tests don't pass on Python 3, but work fine on Python 2.
8525 ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
8526 ;; but is usable enough for the minimal amount it's used in MediaGoblin
8527 ;; still... things should be better by the next Paste release.)
8529 (home-page "http://pythonpaste.org")
8531 "Python web development tools, focusing on WSGI")
8533 "Paste provides a variety of web development tools and middleware which
8534 can be nested together to build web applications. Paste's design closely
8535 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
8536 (license license:expat)
8537 (properties `((python2-variant . ,(delay python2-paste))))))
8539 (define-public python2-paste
8540 (let ((paste (package-with-python2
8541 (strip-python2-variant python-paste))))
8545 ;; Tests are back for Python 2!
8547 ,@(package-arguments paste))))))
8549 (define-public python-pastescript
8551 (name "python-pastescript")
8556 (uri (pypi-uri "PasteScript" version))
8559 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
8560 (build-system python-build-system)
8562 `(("python-nose" ,python-nose)))
8563 ;; Note: setuptools used at runtime for pkg_resources
8565 `(("python-paste" ,python-paste)
8566 ("python-pastedeploy" ,python-pastedeploy)))
8567 (home-page "http://pythonpaste.org/script/")
8569 '(;; Unfortunately, this requires the latest unittest2,
8570 ;; but that requires traceback2 which requires linecache2 which requires
8571 ;; unittest2. So we're skipping tests for now.
8572 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
8573 ;; so in theory we could get around this situation somehow.)
8576 "Pluggable command line tool for serving web applications and more")
8578 "PasteScript is a plugin-friendly command line tool which provides a
8579 variety of features, from launching web applications to bootstrapping project
8581 (license license:expat)))
8583 (define-public python2-pastescript
8584 (package-with-python2 python-pastescript))
8586 (define-public python-pyquery
8588 (name "python-pyquery")
8593 (uri (pypi-uri "pyquery" version))
8596 "0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv"))))
8597 (build-system python-build-system)
8599 `(("python-webob" ,python-webob)
8600 ("python-webtest" ,python-webtest)))
8602 `(("python-lxml" ,python-lxml)
8603 ("python-cssselect" ,python-cssselect)))
8604 (home-page "https://github.com/gawel/pyquery")
8605 (synopsis "Make jQuery-like queries on xml documents")
8606 (description "pyquery allows you to make jQuery queries on xml documents.
8607 The API is as much as possible the similar to jQuery. pyquery uses lxml for
8608 fast xml and html manipulation.")
8609 (license license:bsd-3)))
8611 (define-public python2-pyquery
8612 (package-with-python2 python-pyquery))
8614 (define-public python-webtest
8616 (name "python-webtest")
8621 (uri (pypi-uri "WebTest" version))
8624 "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
8625 (build-system python-build-system)
8627 `(;; Unfortunately we have to disable tests!
8628 ;; This release of WebTest is pinned to python-nose < 1.3,
8629 ;; but older versions of python-nose are plagued with the following
8630 ;; bug(s), which rears its ugly head during test execution:
8631 ;; https://github.com/nose-devs/nose/issues/759
8632 ;; https://github.com/nose-devs/nose/pull/811
8634 ;; Commented out code is no good, but in this case, once tests
8635 ;; are ready to be enabled again, we should put the following
8638 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
8639 ;; ; but see above comment
8640 ;; ("python-coverage" ,python-coverage)
8641 ;; ("python-mock" ,python-mock)
8642 ;; ("python-pastedeploy" ,python-pastedeploy)
8643 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
8644 ;; ("python-pyquery" ,python-pyquery)))
8646 `(("python-waitress" ,python-waitress)
8647 ("python-webob" ,python-webob)
8648 ("python-six" ,python-six)
8649 ("python-beautifulsoup4" ,python-beautifulsoup4)))
8650 (home-page "http://webtest.pythonpaste.org/")
8651 (synopsis "Helper to test WSGI applications")
8652 (description "Webtest allows you to test your Python web applications
8653 without starting an HTTP server. It supports anything that supports the
8655 (license license:expat)))
8657 (define-public python2-webtest
8658 (package-with-python2 python-webtest))
8660 (define-public python-anyjson
8662 (name "python-anyjson")
8667 (uri (pypi-uri "anyjson" version))
8670 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
8671 (build-system python-build-system)
8673 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
8674 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
8675 ;; whatever) so this transformation needs to be done before the tests
8676 ;; can be run. Maybe we could add a build step to transform beforehand
8677 ;; but it could be annoying/difficult.
8678 ;; We can enable tests for the Python 2 version, though, and do below.
8680 (home-page "http://bitbucket.org/runeh/anyjson/")
8682 "Wraps best available JSON implementation in a common interface")
8684 "Anyjson loads whichever is the fastest JSON module installed
8685 and provides a uniform API regardless of which JSON implementation is used.")
8686 (license license:bsd-3)
8687 (properties `((python2-variant . ,(delay python2-anyjson))))))
8689 (define-public python2-anyjson
8690 (let ((anyjson (package-with-python2
8691 (strip-python2-variant python-anyjson))))
8694 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
8696 ,@(package-arguments anyjson)))
8697 (native-inputs `(("python2-nose" ,python2-nose))))))
8699 (define-public python-amqp
8701 (name "python-amqp")
8706 (uri (pypi-uri "amqp" version))
8709 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
8710 (build-system python-build-system)
8712 `(("python-nose" ,python-nose)
8713 ("python-mock" ,python-mock)))
8714 (home-page "http://github.com/celery/py-amqp")
8716 "Low-level AMQP client for Python (fork of amqplib)")
8718 "This is a fork of amqplib which was originally written by Barry Pederson.
8719 It is maintained by the Celery project, and used by kombu as a pure python
8720 alternative when librabbitmq is not available.")
8721 (license license:lgpl2.1+)
8722 (properties `((python2-variant . ,(delay python2-amqp))))))
8724 (define-public python2-amqp
8725 (let ((amqp (package-with-python2
8726 (strip-python2-variant python-amqp))))
8729 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
8730 ;; unmaintained. Weirdly, does not do this on the python 3
8733 ,@(package-arguments amqp))))))
8735 (define-public python-kombu
8737 (name "python-kombu")
8742 (uri (pypi-uri "kombu" version))
8745 "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70"))))
8746 (build-system python-build-system)
8748 `(("python-mock" ,python-mock)
8749 ("python-nose" ,python-nose)))
8751 `(("python-anyjson" ,python-anyjson)
8752 ("python-amqp" ,python-amqp)
8753 ("python-redis" ,python-redis)))
8754 (home-page "http://kombu.readthedocs.org")
8755 (synopsis "Message passing library for Python")
8756 (description "The aim of Kombu is to make messaging in Python as easy as
8757 possible by providing an idiomatic high-level interface for the AMQ protocol,
8758 and also provide proven and tested solutions to common messaging problems.
8759 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
8760 message orientation, queuing, routing, reliability and security, for which the
8761 RabbitMQ messaging server is the most popular implementation.")
8762 (license license:bsd-3)
8763 (properties `((python2-variant . ,(delay python2-kombu))))))
8765 (define-public python2-kombu
8766 (let ((kombu (package-with-python2
8767 (strip-python2-variant python-kombu))))
8770 (inputs `(("python2-unittest2" ,python2-unittest2)
8771 ,@(package-inputs kombu))))))
8773 (define-public python-billiard
8775 (name "python-billiard")
8776 (version "3.3.0.23")
8780 (uri (pypi-uri "billiard" version))
8783 "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9"))))
8784 (build-system python-build-system)
8786 `(("python-nose" ,python-nose)))
8787 (home-page "http://github.com/celery/billiard")
8789 "Python multiprocessing fork with improvements and bugfixes")
8791 "Billiard is a fork of the Python 2.7 multiprocessing package. The
8792 multiprocessing package itself is a renamed and updated version of R Oudkerk's
8793 pyprocessing package. This standalone variant is intended to be compatible with
8794 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
8795 (license license:bsd-3)
8796 (properties `((python2-variant . ,(delay python2-billiard))))))
8798 (define-public python2-billiard
8799 (let ((billiard (package-with-python2
8800 (strip-python2-variant python-billiard))))
8803 (native-inputs `(("python2-unittest2" ,python2-unittest2)
8804 ("python2-mock" ,python2-mock)
8805 ,@(package-native-inputs billiard))))))
8807 (define-public python-celery
8809 (name "python-celery")
8814 (uri (pypi-uri "celery" version))
8817 "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r"))))
8818 (build-system python-build-system)
8821 (modify-phases %standard-phases
8822 ;; These tests break with Python 3.5:
8823 ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295
8827 (system* "nosetests" "--exclude=^test_safe_to_remove.*")))))))
8829 `(("python-nose" ,python-nose)))
8831 `(("python-pytz" ,python-pytz)
8832 ("python-amqp" ,python-amqp)
8833 ("python-anyjson" ,python-anyjson)
8834 ("python-billiard" ,python-billiard)
8835 ("python-kombu" ,python-kombu)))
8836 (home-page "http://celeryproject.org")
8837 (synopsis "Distributed Task Queue")
8838 (description "Celery is an asynchronous task queue/job queue based on
8839 distributed message passing. It is focused on real-time operation, but
8840 supports scheduling as well. The execution units, called tasks, are executed
8841 concurrently on a single or more worker servers using multiprocessing,
8842 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
8843 synchronously (wait until ready).")
8844 (license license:bsd-3)
8845 (properties `((python2-variant . ,(delay python2-celery))))))
8847 (define-public python2-celery
8848 (let ((celery (package-with-python2
8849 (strip-python2-variant python-celery))))
8852 (native-inputs `(("python2-unittest2" ,python2-unittest2)
8853 ("python2-mock" ,python2-mock)
8854 ,@(package-native-inputs celery))))))
8856 (define-public python-translitcodec
8858 (name "python-translitcodec")
8863 (uri (pypi-uri "translitcodec" version))
8866 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
8867 (build-system python-build-system)
8869 `(#:tests? #f)) ; no tests provided
8871 "https://github.com/claudep/translitcodec")
8873 "Unicode to 8-bit charset transliteration codec")
8875 "This package contains codecs for transliterating ISO 10646 texts into
8876 best-effort representations using smaller coded character sets (ASCII,
8878 (license license:expat)))
8880 (define-public python2-translitcodec
8881 (package-with-python2 python-translitcodec))
8883 (define-public python-editor
8885 (name "python-editor")
8890 (uri (pypi-uri "python-editor" version))
8893 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
8894 (build-system python-build-system)
8896 "https://github.com/fmoo/python-editor")
8898 "Programmatically open an editor, capture the result")
8900 "python-editor is a library that provides the editor module for
8901 programmatically interfacing with your system's $EDITOR.")
8902 (license license:asl2.0)))
8904 (define-public python2-editor
8905 (package-with-python2 python-editor))
8907 (define-public python-sphinxcontrib-programoutput
8909 (name "python-sphinxcontrib-programoutput")
8913 (uri (pypi-uri "sphinxcontrib-programoutput" version))
8916 "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
8917 (build-system python-build-system)
8919 `(("python-docutils" ,python-docutils)
8920 ("python-sphinx" ,python-sphinx)))
8921 (synopsis "Sphinx extension to include program output")
8922 (description "A Sphinx extension to literally insert the output of arbitrary
8923 commands into documents, helping you to keep your command examples up to date.")
8924 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
8925 (license license:bsd-2)))
8927 (define-public python2-sphinxcontrib-programoutput
8928 (package-with-python2 python-sphinxcontrib-programoutput))
8930 (define-public python-sphinx-repoze-autointerface
8932 (name "python-sphinx-repoze-autointerface")
8936 (uri (pypi-uri "repoze.sphinx.autointerface" version))
8939 "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f"))))
8940 (build-system python-build-system)
8942 `(("python-docutils" ,python-docutils)
8943 ("python-sphinx" ,python-sphinx)
8944 ("python-zope-interface" ,python-zope-interface)))
8945 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
8946 (description "This package defines an extension for the Sphinx documentation
8947 system. The extension allows generation of API documentation by
8948 introspection of @code{zope.interface} instances in code.")
8949 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
8950 (license license:repoze)))
8952 (define-public python2-sphinx-repoze-autointerface
8953 (package-with-python2 python-sphinx-repoze-autointerface))
8955 (define-public python-psycopg2
8957 (name "python-psycopg2")
8962 (uri (pypi-uri "psycopg2" version))
8965 "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
8966 (build-system python-build-system)
8968 ;; Tests would require a postgresql database "psycopg2_test"
8969 ;; and a running postgresql database management service.
8970 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
8972 `(("postgresql" ,postgresql))) ; libpq
8973 (home-page "http://initd.org/psycopg/")
8974 (synopsis "Python PostgreSQL adapter")
8976 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
8977 (license license:lgpl3+)))
8979 (define-public python2-psycopg2
8980 (package-with-python2 python-psycopg2))
8982 (define-public python-vobject
8984 (name "python-vobject")
8988 (uri (pypi-uri "vobject" version))
8991 "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb"))))
8992 (build-system python-build-system)
8994 '(;; The test suite relies on some non-portable Windows interfaces.
8997 `(("python-dateutil-2" ,python-dateutil-2)
8998 ("python-pyicu" ,python-pyicu)))
8999 (synopsis "Parse and generate vCard and vCalendar files")
9000 (description "Vobject is intended to be a full featured Python package for
9001 parsing and generating vCard and vCalendar files. Currently, iCalendar files
9002 are supported and well tested. vCard 3.0 files are supported, and all data
9003 should be imported, but only a few components are understood in a sophisticated
9005 (home-page "http://eventable.github.io/vobject/")
9006 (license license:asl2.0)))
9008 (define-public python2-vobject
9009 (package-with-python2 python-vobject))
9011 (define-public python-munkres
9013 (name "python-munkres")
9017 (uri (pypi-uri "munkres" version))
9020 "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"))))
9021 (build-system python-build-system)
9023 '(#:tests? #f)) ; no test suite
9024 (home-page "http://software.clapper.org/munkres/")
9025 (synopsis "Implementation of the Munkres algorithm")
9026 (description "The Munkres module provides an implementation of the Munkres
9027 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
9028 useful for solving the Assignment Problem.")
9029 (license license:bsd-3)))
9031 (define-public python2-munkres
9032 (package-with-python2 python-munkres))
9034 (define-public python-flask
9036 (name "python-flask")
9040 (uri (pypi-uri "Flask" version))
9043 "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"))))
9044 (build-system python-build-system)
9046 `(("python-itsdangerous" ,python-itsdangerous)
9047 ("python-jinja2" ,python-jinja2)
9048 ("python-werkzeug" ,python-werkzeug)))
9049 (home-page "https://github.com/mitsuhiko/flask/")
9050 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
9051 (description "Flask is a micro web framework based on the Werkzeug toolkit
9052 and Jinja2 template engine. It is called a micro framework because it does not
9053 presume or force a developer to use a particular tool or library.")
9054 (license license:bsd-3)))
9056 (define-public python2-flask
9057 (package-with-python2 python-flask))
9059 (define-public python-cookies
9061 (name "python-cookies")
9065 (uri (pypi-uri "cookies" version))
9068 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
9069 (build-system python-build-system)
9071 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
9074 `(("python-pytest" ,python2-pytest)))
9075 (synopsis "HTTP cookie parser and renderer")
9076 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
9078 (home-page "https://gitlab.com/sashahart/cookies")
9079 (license license:expat)))
9081 (define-public python2-cookies
9082 (package-with-python2 python-cookies))
9084 (define-public python-responses
9086 (name "python-responses")
9090 (uri (pypi-uri "responses" version))
9093 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
9094 (build-system python-build-system)
9096 `(;; Test suite is not distributed:
9097 ;; https://github.com/getsentry/responses/issues/38
9100 `(("python-cookies" ,python-cookies)
9101 ("python-mock" ,python-mock)))
9103 `(("python-requests" ,python-requests)
9104 ("python-six" ,python-six)))
9105 (home-page "https://github.com/getsentry/responses")
9106 (synopsis "Utility for mocking out the `requests` Python library")
9107 (description "A utility library for mocking out the `requests` Python
9109 (license license:asl2.0)))
9111 (define-public python2-responses
9112 (package-with-python2 python-responses))
9114 (define-public python-whoosh
9116 (name "python-whoosh")
9121 (uri (pypi-uri "Whoosh" version))
9124 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
9125 (build-system python-build-system)
9127 `(("python-pytest" ,python-pytest)))
9128 (home-page "http://bitbucket.org/mchaput/whoosh")
9129 (synopsis "Full text indexing, search, and spell checking library")
9131 "Whoosh is a fast, pure-Python full text indexing, search, and spell
9133 (license license:bsd-2)))
9135 (define-public python2-whoosh
9136 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
9137 (package (inherit whoosh)
9139 `(("python2-backport-ssl-match-hostname"
9140 ,python2-backport-ssl-match-hostname)
9141 ,@(package-propagated-inputs whoosh))))))
9143 (define-public python-pathlib
9145 (name "python-pathlib")
9149 (uri (pypi-uri "pathlib" version))
9152 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
9153 (build-system python-build-system)
9154 ;; The tests depend on the internal "test" module, which does not provide
9155 ;; a stable interface.
9156 (arguments `(#:tests? #f))
9157 (home-page "https://pathlib.readthedocs.org/")
9158 (synopsis "Object-oriented file system paths")
9159 (description "Pathlib offers a set of classes to handle file system paths.
9160 It offers the following advantages over using string objects:
9163 @item No more cumbersome use of os and os.path functions. Everything can
9164 be done easily through operators, attribute accesses, and method calls.
9165 @item Embodies the semantics of different path types. For example,
9166 comparing Windows paths ignores casing.
9167 @item Well-defined semantics, eliminating any inconsistencies or
9168 ambiguities (forward vs. backward slashes, etc.).
9171 Note: In Python 3.4, pathlib is now part of the standard library. For other
9172 Python versions please consider python-pathlib2 instead, which tracks the
9173 standard library module. This module (python-pathlib) isn't maintained
9175 (license license:expat)))
9177 (define-public python2-pathlib
9178 (package-with-python2 python-pathlib))
9180 (define-public python2-pathlib2
9182 (name "python2-pathlib2")
9186 (uri (pypi-uri "pathlib2" version))
9189 "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy"))))
9190 (build-system python-build-system)
9191 ;; We only need the the Python 2 variant, since for Python 3 our minimum
9192 ;; version is 3.4 which already includes this package as part of the
9193 ;; standard library.
9195 `(#:python ,python-2))
9197 `(("python2-six" ,python2-six)))
9198 (home-page "http://pypi.python.org/pypi/pathlib2/")
9199 (synopsis "Object-oriented file system paths - backport of standard
9201 (description "The goal of pathlib2 is to provide a backport of standard
9202 pathlib module which tracks the standard library module, so all the newest
9203 features of the standard pathlib can be used also on older Python versions.
9205 Pathlib offers a set of classes to handle file system paths. It offers the
9206 following advantages over using string objects:
9209 @item No more cumbersome use of os and os.path functions. Everything can
9210 be done easily through operators, attribute accesses, and method calls.
9211 @item Embodies the semantics of different path types. For example,
9212 comparing Windows paths ignores casing.
9213 @item Well-defined semantics, eliminating any inconsistencies or
9214 ambiguities (forward vs. backward slashes, etc.).
9216 (license license:expat)))
9218 (define-public python-jellyfish
9220 (name "python-jellyfish")
9224 (uri (pypi-uri "jellyfish" version))
9227 "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
9228 (build-system python-build-system)
9230 `(("python-pytest" ,python-pytest)))
9231 (home-page "https://github.com/jamesturk/jellyfish")
9232 (synopsis "Approximate and phonetic matching of strings")
9233 (description "Jellyfish uses a variety of string comparison and phonetic
9234 encoding algorithms to do fuzzy string matching.")
9235 (license license:bsd-2)
9236 (properties `((python2-variant . ,(delay python2-jellyfish))))))
9238 (define-public python2-jellyfish
9239 (let ((jellyfish (package-with-python2
9240 (strip-python2-variant python-jellyfish))))
9241 (package (inherit jellyfish)
9242 (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv)
9243 ,@(package-native-inputs jellyfish))))))
9245 (define-public python2-unicodecsv
9247 (name "python2-unicodecsv")
9251 ;; The test suite is not included in the PyPi release.
9252 ;; https://github.com/jdunck/python-unicodecsv/issues/19
9253 (uri (string-append "https://github.com/jdunck/python-unicodecsv/"
9254 "archive/" version ".tar.gz"))
9255 (file-name (string-append name "-" version ".tar.gz"))
9258 "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
9259 (build-system python-build-system)
9261 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
9262 #:python ,python-2))
9264 `(("python2-unittest2" ,python2-unittest2)))
9265 (home-page "https://github.com/jdunck/python-unicodecsv")
9266 (synopsis "Unicode CSV module for Python 2")
9267 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
9268 module, adding support for Unicode strings.")
9269 (license license:bsd-2)))
9271 (define-public python-rarfile
9273 (name "python-rarfile")
9277 (uri (pypi-uri "rarfile" version))
9280 "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
9281 ;; https://github.com/markokr/rarfile/pull/17/
9282 (patches (search-patches "python-rarfile-fix-tests.patch"))))
9283 (build-system python-build-system)
9286 (modify-phases %standard-phases
9288 ;; Many tests fail, but the installation proceeds.
9289 (lambda _ (zero? (system* "make" "-C" "test" "test")))))))
9291 `(("which" ,which))) ; required for tests
9293 `(("libarchive" ,libarchive)))
9294 (home-page "https://github.com/markokr/rarfile")
9295 (synopsis "RAR archive reader for Python")
9296 (description "This is Python module for RAR archive reading. The interface
9297 is made as zipfile like as possible.")
9298 (license license:isc)))
9300 (define-public python2-rarfile
9301 (package-with-python2 python-rarfile))
9303 (define-public python-magic
9305 (name "python-magic")
9310 (uri (string-append "https://github.com/ahupp/python-magic/archive/"
9314 "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
9315 (file-name (string-append name "-" version "-checkout"))))
9316 (build-system python-build-system)
9318 ;; The tests are unreliable, so don't run them. The tests fail
9319 ;; under Python3 because they were written for Python2 and
9320 ;; contain import statements that do not work in Python3. One of
9321 ;; the tests fails under Python2 because its assertions are
9322 ;; overly stringent; it relies on comparing output strings which
9323 ;; are brittle and can change depending on the version of
9324 ;; libmagic being used and the system on which the test is
9325 ;; running. In my case, under GuixSD 0.10.0, only one test
9326 ;; failed, and it seems to have failed only because the version
9327 ;; of libmagic that is packaged in Guix outputs a slightly
9328 ;; different (but not wrong) string than the one that the test
9331 #:phases (modify-phases %standard-phases
9332 ;; Replace a specific method call with a hard-coded
9333 ;; path to the necessary libmagic.so file in the
9334 ;; store. If we don't do this, then the method call
9335 ;; will fail to find the libmagic.so file, which in
9336 ;; turn will cause any application using
9337 ;; python-magic to fail.
9338 (add-before 'build 'hard-code-path-to-libmagic
9339 (lambda* (#:key inputs #:allow-other-keys)
9340 (let ((file (assoc-ref inputs "file")))
9341 (substitute* "magic.py"
9342 (("ctypes.util.find_library\\('magic'\\)")
9343 (string-append "'" file "/lib/libmagic.so'")))
9345 (add-before 'install 'disable-egg-compression
9347 (let ((port (open-file "setup.cfg" "a")))
9348 (display "\n[easy_install]\nzip_ok = 0\n"
9353 ;; python-magic needs to be able to find libmagic.so.
9355 (home-page "https://github.com/ahupp/python-magic")
9356 (synopsis "File type identification using libmagic")
9358 "This module uses ctypes to access the libmagic file type
9359 identification library. It makes use of the local magic database and
9360 supports both textual and MIME-type output. Note that this module and
9361 the python-file module both provide a \"magic.py\" file; these two
9362 modules, which are different and were developed separately, both serve
9363 the same purpose: to provide Python bindings for libmagic.")
9364 (license license:expat)))
9366 (define-public python2-magic
9367 (package-with-python2 python-magic))
9369 (define-public python2-s3cmd
9371 (name "python2-s3cmd")
9376 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
9377 "s3cmd-" version ".tar.gz"))
9380 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
9381 (build-system python-build-system)
9383 ;; s3cmd is written for python2 only and contains no tests.
9384 `(#:python ,python-2
9387 `(("python2-dateutil" ,python2-dateutil)
9388 ;; The python-file package also provides a magic.py module.
9389 ;; This is an unfortunate state of affairs; however, s3cmd
9390 ;; fails to install if it cannot find specifically the
9391 ;; python-magic package. Thus we include it, instead of using
9392 ;; python-file. Ironically, s3cmd sometimes works better
9393 ;; without libmagic bindings at all:
9394 ;; https://github.com/s3tools/s3cmd/issues/198
9395 ("python2-magic" ,python2-magic)))
9396 (home-page "http://s3tools.org/s3cmd")
9397 (synopsis "Command line tool for S3-compatible storage services")
9399 "S3cmd is a command line tool for uploading, retrieving and managing data
9400 in storage services that are compatible with the Amazon Simple Storage
9401 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
9402 GnuPG encryption, and more. It also supports management of Amazon's
9403 CloudFront content delivery network.")
9404 (license license:gpl2+)))
9406 (define-public python-pkgconfig
9408 (name "python-pkgconfig")
9413 (uri (pypi-uri "pkgconfig" version))
9416 "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh"))))
9417 (build-system python-build-system)
9419 `(("python-nose" ,python-nose)))
9421 `(("pkg-config" ,pkg-config)))
9423 `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
9424 ;; and on Python 2 they need the dl module deprecated since Python 2.6.
9426 ;; Hard-code the path to pkg-config.
9428 (modify-phases %standard-phases
9432 (substitute* "pkgconfig/pkgconfig.py"
9433 (("cmd = 'pkg-config")
9434 (string-append "cmd = '" (which "pkg-config"))))
9436 (home-page "http://github.com/matze/pkgconfig")
9437 (synopsis "Python interface for pkg-config")
9438 (description "This module provides a Python interface to pkg-config. It
9439 can be used to find all pkg-config packages, check if a package exists,
9440 check if a package meets certain version requirements, query CFLAGS and
9441 LDFLAGS and parse the output to build extensions with setup.py.")
9442 (license license:expat)))
9444 (define-public python2-pkgconfig
9445 (package-with-python2 python-pkgconfig))
9447 (define-public python-bz2file
9449 (name "python-bz2file")
9454 (uri (pypi-uri "bz2file" version))
9457 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
9458 (build-system python-build-system)
9460 `(#:tests? #f)) ; Tests use deprecated python modules.
9461 (home-page "https://github.com/nvawda/bz2file")
9462 (synopsis "Read and write bzip2-compressed files")
9464 "Bz2file is a Python library for reading and writing bzip2-compressed
9465 files. It contains a drop-in replacement for the I/O interface in the
9466 standard library's @code{bz2} module, including features from the latest
9467 development version of CPython that are not available in older releases.")
9468 (license license:asl2.0)
9469 (properties `((python2-variant . ,(delay python2-bz2file))))))
9471 (define-public python2-bz2file
9472 (let ((base (package-with-python2
9473 (strip-python2-variant python-bz2file))))
9477 `(#:python ,python-2
9479 (modify-phases %standard-phases
9480 ;; 'python setup.py test' does not work as of 0.98.
9481 ;; There is only the one test file, so we run it directly.
9483 (lambda _ (zero? (system* "python"
9484 "test_bz2file.py"))))))))))
9486 (define-public python-future
9488 (name "python-future")
9493 (uri (pypi-uri "future" version))
9496 "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx"))))
9497 (build-system python-build-system)
9498 ;; Many tests connect to the network or are otherwise flawed.
9499 ;; https://github.com/PythonCharmers/python-future/issues/210
9502 (home-page "http://python-future.org")
9503 (synopsis "Single-source support for Python 3 and 2")
9505 "@code{python-future} is the missing compatibility layer between Python 2 and
9506 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
9507 to support both Python 2 and Python 3 with minimal overhead.")
9508 (license license:expat)))
9510 (define-public python2-future
9511 (package-with-python2 python-future))
9513 (define-public python-cysignals
9515 (name "python-cysignals")
9520 (uri (pypi-uri "cysignals" version ".tar.bz2"))
9523 "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6"))))
9524 (build-system python-build-system)
9526 `(("python-cython" ,python-cython)
9527 ("python-sphinx" ,python-sphinx)))
9529 `(("pari-gp" ,pari-gp)))
9531 `(#:modules ((guix build python-build-system)
9532 ((guix build gnu-build-system) #:prefix gnu:)
9534 ;; FIXME: Tests are executed after installation and currently fail
9535 ;; when not installing into standard locations; the author is working
9539 (modify-phases %standard-phases
9542 (assoc-ref gnu:%standard-phases 'configure)))))
9544 "https://github.com/sagemath/cysignals")
9546 "Handling of interrupts and signals for Cython")
9548 "The cysignals package provides mechanisms to handle interrupts (and
9549 other signals and errors) in Cython code, using two related approaches,
9550 for mixed Cython/Python code or external C libraries and pure Cython code,
9552 (license license:lgpl3+)))
9554 (define-public python2-cysignals
9555 (package-with-python2 python-cysignals))
9557 (define-public python2-shedskin
9559 (name "python2-shedskin")
9564 (uri (string-append "https://github.com/shedskin/shedskin/"
9565 "releases/download/v" version
9566 "/shedskin-" version ".tgz"))
9569 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
9570 (build-system python-build-system)
9572 `(#:python ,python-2
9573 #:phases (modify-phases %standard-phases
9574 (add-after 'unpack 'fix-resulting-include-libs
9575 (lambda* (#:key inputs #:allow-other-keys)
9576 (let ((libgc (assoc-ref inputs "libgc"))
9577 (pcre (assoc-ref inputs "pcre")))
9578 (substitute* "shedskin/makefile.py"
9579 (("variable == 'CCFLAGS':[ ]*")
9580 (string-append "variable == 'CCFLAGS':\n"
9581 " line += ' -I " pcre "/include"
9582 " -I " libgc "/include'"))
9583 (("variable == 'LFLAGS':[ ]*")
9584 (string-append "variable == 'LFLAGS':\n"
9585 " line += ' -L" pcre "/lib"
9586 " -L " libgc "/lib'")))
9588 (inputs `(("pcre" ,pcre)
9590 (home-page "https://shedskin.github.io/")
9591 (synopsis "Experimental Python-2 to C++ Compiler")
9592 (description (string-append "This is an experimental compiler for a subset of
9593 Python. It generates C++ code and a Makefile."))
9594 (license (list license:gpl3 license:bsd-3 license:expat))))
9596 (define-public python2-rope
9598 (name "python2-rope")
9603 (uri (pypi-uri "rope" version))
9606 "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb"))))
9608 ;; Rope is currently python-2 only.
9609 ;; https://github.com/python-rope/rope/issues/57
9610 `(#:python ,python-2))
9611 (build-system python-build-system)
9613 `(("python2-unittest2" ,python2-unittest2)))
9614 (home-page "https://github.com/python-rope/rope")
9615 (synopsis "Refactoring library for Python")
9616 (description "Rope is a refactoring library for Python. It facilitates
9617 the renaming, moving and extracting of attributes, functions, modules, fields
9618 and parameters in Python 2 source code. These refactorings can also be applied
9619 to occurences in strings and comments.")
9620 (license license:gpl2)))
9622 (define-public python-py3status
9624 (name "python-py3status")
9629 (uri (pypi-uri "py3status" version))
9632 "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds"))))
9633 (build-system python-build-system)
9634 (home-page "https://github.com/ultrabug/py3status")
9635 (synopsis "Extensible i3status wrapper written in Python")
9636 (description "py3status is an i3status wrapper which extends i3status
9637 functionality in a modular way, allowing you to extend your panel with your
9638 own code, responding to click events and updating clock every second.")
9639 (license license:bsd-3)))
9641 (define-public python-tblib
9643 (name "python-tblib")
9647 (uri (pypi-uri "tblib" version))
9649 "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi"))))
9650 (build-system python-build-system)
9653 (modify-phases %standard-phases
9656 ;; Upstream runs tests after installation and the package itself
9657 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
9659 (setenv "PYTHONPATH"
9660 (string-append (getcwd) "/build/lib:"
9661 (getenv "PYTHONPATH")))
9662 (zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
9664 `(("python-pytest" ,python-pytest)
9665 ("python-six" ,python-six)))
9666 (home-page "https://github.com/ionelmc/python-tblib")
9667 (synopsis "Traceback serialization library")
9669 "Traceback serialization allows you to:
9672 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
9673 different processes. This allows better error handling when running code over
9674 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
9676 @item Parse traceback strings and raise with the parsed tracebacks.
9678 (license license:bsd-3)))
9680 (define-public python2-tblib
9681 (package-with-python2 python-tblib))
9683 (define-public python-sqlparse
9685 (name "python-sqlparse")
9689 (uri (pypi-uri "sqlparse" version))
9692 "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"))))
9693 (build-system python-build-system)
9696 (modify-phases %standard-phases
9699 ;; setup.py-integrated 2to3 only affects the build files, but
9700 ;; py.test is using the source files. So we need to convert them
9702 (when (zero? (system* "python3"))
9703 (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests"))
9704 (zero? (system* "py.test")))))))
9706 `(("python-pytest" ,python-pytest)))
9707 (home-page "https://github.com/andialbrecht/sqlparse")
9708 (synopsis "Non-validating SQL parser")
9709 (description "Sqlparse is a non-validating SQL parser for Python. It
9710 provides support for parsing, splitting and formatting SQL statements.")
9711 (license license:bsd-3)))
9713 (define-public python2-sqlparse
9714 (package-with-python2 python-sqlparse))
9716 (define-public python-greenlet
9718 (name "python-greenlet")
9722 (uri (pypi-uri "greenlet" version))
9725 "04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr"))))
9726 (build-system python-build-system)
9727 (home-page "https://greenlet.readthedocs.io/")
9728 (synopsis "Lightweight in-process concurrent programming")
9730 "Greenlet package is a spin-off of Stackless, a version of CPython
9731 that supports micro-threads called \"tasklets\". Tasklets run
9732 pseudo-concurrently (typically in a single or a few OS-level threads) and
9733 are synchronized with data exchanges on \"channels\".")
9734 (license (list license:psfl license:expat))))
9736 (define-public python2-greenlet
9737 (package-with-python2 python-greenlet))
9739 (define-public python-gevent
9741 (name "python-gevent")
9745 (uri (pypi-uri "gevent" version))
9748 "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf"))
9749 (modules '((guix build utils)))
9752 ;; unbunding libev and c-ares
9753 (for-each delete-file-recursively '("libev" "c-ares"))
9755 (call-with-output-file "greentest/__init__.py" noop)
9756 (substitute* "greentest/testrunner.py"
9757 (("import util") "from . import util")
9758 (("from util import log") "from .util import log"))))))
9759 (build-system python-build-system)
9761 `(("python-greenlet" ,python-greenlet)))
9763 `(("python-six" ,python-six)))
9765 `(("c-ares" ,c-ares)
9767 (home-page "http://www.gevent.org/")
9768 (synopsis "Coroutine-based network library")
9770 "gevent is a coroutine-based Python networking library that uses greenlet
9771 to provide a high-level synchronous API on top of the libev event loop.")
9772 (license license:expat)))
9774 (define-public python2-gevent
9775 (package-with-python2 python-gevent))
9777 (define-public python-twisted
9779 (name "python-twisted")
9783 (uri (pypi-uri "Twisted" version ".tar.bz2"))
9786 "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450"))))
9787 (build-system python-build-system)
9789 `(("python-zope-interface" ,python-zope-interface)))
9790 (home-page "https://twistedmatrix.com/")
9791 (synopsis "Asynchronous networking framework written in Python")
9793 "Twisted is an extensible framework for Python programming, with special
9794 focus on event-based network programming and multiprotocol integration.")
9795 (license license:expat)))
9797 (define-public python2-twisted
9798 (package-with-python2 python-twisted))
9800 (define-public python-pika
9802 (name "python-pika")
9807 (uri (pypi-uri "pika" version))
9810 "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj"))))
9811 (build-system python-build-system)
9813 `(("python-pyev" ,python-pyev)
9814 ("python-tornado" ,python-tornado)
9815 ("python-twisted" ,python-twisted)))
9816 (home-page "https://pika.readthedocs.org")
9817 (synopsis "Pure Python AMQP Client Library")
9819 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
9820 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
9821 network support library.")
9822 (license license:bsd-3)))
9824 (define-public python2-pika
9825 (package-with-python2 python-pika))
9827 (define-public python-ply
9835 "https://pypi.python.org/packages/"
9836 "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5"
9837 "/ply-" version ".tar.gz"))
9840 "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7"))))
9841 (build-system python-build-system)
9842 (home-page "http://www.dabeaz.com/ply/")
9843 (synopsis "Python Lex & Yacc")
9844 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
9845 It uses LR parsing and does extensive error checking.")
9846 (license license:bsd-3)))
9848 (define-public python2-ply
9849 (package-with-python2 python-ply))
9851 (define-public python-tabulate
9853 (name "python-tabulate")
9857 (uri (pypi-uri "tabulate" version))
9860 "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch"))
9862 (modules '((guix build utils)))
9863 (snippet '(substitute* '("test/test_cli.py"
9864 "test/test_input.py"
9865 "test/test_output.py"
9866 "test/test_regression.py")
9867 (("from common") "from nose.tools")))))
9868 (build-system python-build-system)
9871 ("python-nose" ,python-nose)))
9872 (home-page "https://bitbucket.org/astanin/python-tabulate")
9873 (synopsis "Pretty-print tabular data")
9875 "Tabulate is a library and command-line utility to pretty-print tabular
9877 (license license:expat)))
9879 (define-public python2-tabulate
9880 (package-with-python2 python-tabulate))
9882 (define-public python-kazoo
9884 (name "python-kazoo")
9889 (uri (pypi-uri "kazoo" version))
9892 "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj"))))
9893 (build-system python-build-system)
9894 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
9896 `(("python-six" ,python-six)))
9897 (home-page "https://kazoo.readthedocs.org")
9898 (synopsis "High-level Zookeeper client library")
9900 "Kazoo is a Python client library for the Apache Zookeeper distributed
9901 application service. It is designed to be easy to use and to avoid common
9902 programming errors.")
9903 (license license:asl2.0)))
9905 (define-public python2-kazoo
9906 (package-with-python2 python-kazoo))
9908 (define-public python-pykafka
9910 (name "python-pykafka")
9915 "https://pypi.python.org/packages/8b/3e/"
9916 "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/"
9917 "pykafka-" version ".tar.gz"))
9920 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
9921 (build-system python-build-system)
9922 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
9924 `(("python-gevent" ,python-gevent)
9925 ("python-kazoo" ,python-kazoo)
9926 ("python-tabulate" ,python-tabulate)))
9928 `(("librdkafka" ,librdkafka)))
9929 (home-page "https://pykafka.readthedocs.io/")
9930 (synopsis "Apache Kafka client for Python")
9932 "PyKafka is a client for the Apache Kafka distributed messaging system.
9933 It includes Python implementations of Kafka producers and consumers, which
9934 are optionally backed by a C extension built on librdkafka.")
9935 (license license:asl2.0)))
9937 (define-public python2-pykafka
9938 (package-with-python2 python-pykafka))
9940 (define-public python-wcwidth
9942 (name "python-wcwidth")
9948 "https://pypi.python.org/packages/"
9949 "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/"
9950 "wcwidth-" version ".tar.gz"))
9953 "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw"))))
9954 (build-system python-build-system)
9955 (home-page "https://github.com/jquast/wcwidth")
9956 (synopsis "Measure number of terminal column cells of wide-character codes")
9957 (description "Wcwidth measures the number of terminal column cells of
9958 wide-character codes. It is useful for those implementing a terminal emulator,
9959 or programs that carefully produce output to be interpreted by one. It is a
9960 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
9961 specified in POSIX.1-2001 and POSIX.1-2008.")
9962 (license license:expat)))
9964 (define-public python2-wcwidth
9965 (package-with-python2 python-wcwidth))
9967 (define-public python2-jsonrpclib
9969 (name "python2-jsonrpclib")
9974 "https://pypi.python.org/packages/source/j/jsonrpclib/"
9975 "jsonrpclib-" version ".tar.gz"))
9978 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
9979 (build-system python-build-system)
9982 #:python ,python-2))
9983 (home-page "https://github.com/joshmarshall/jsonrpclib/")
9984 (synopsis "Implementation of JSON-RPC specification for Python")
9986 "This library is an implementation of the JSON-RPC specification.
9987 It supports both the original 1.0 specification, as well as the
9988 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
9990 (license license:asl2.0)))
9992 (define-public python-chai
9994 (name "python-chai")
9998 (uri (pypi-uri "chai" version))
10001 "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl"))))
10002 (build-system python-build-system)
10003 (home-page "https://github.com/agoragames/chai")
10004 (synopsis "Mocking framework for Python")
10006 "Chai provides an api for mocking, stubbing and spying your python
10007 objects, patterned after the Mocha library for Ruby.")
10008 (license license:bsd-3)))
10010 (define-public python2-chai
10011 (package-with-python2 python-chai))
10013 (define-public python-arrow
10015 (name "python-arrow")
10019 (uri (pypi-uri "arrow" version))
10022 "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j"))))
10023 (build-system python-build-system)
10026 ("python-chai" ,python-chai)
10027 ("python-simplejson" ,python-simplejson)))
10029 `(("python-dateutil" ,python-dateutil-2)))
10030 (home-page "https://github.com/crsmithdev/arrow/")
10031 (synopsis "Dates and times for Python")
10033 "Arrow is a Python library to creating, manipulating, formatting and
10034 converting dates, times, and timestamps. It implements and updates the
10036 (license license:asl2.0)))
10038 (define-public python2-arrow
10039 (package-with-python2 python-arrow))
10041 (define-public python-inflection
10043 (name "python-inflection")
10046 (origin (method url-fetch)
10047 (uri (pypi-uri "inflection" version))
10050 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
10051 (build-system python-build-system)
10052 (home-page "http://github.com/jpvanhal/inflection")
10053 (synopsis "Python string transformation library")
10055 "Inflection is a string transformation library. It singularizes
10056 and pluralizes English words, and transforms strings from CamelCase to
10057 underscored string.")
10058 (license license:expat)))
10060 (define-public python2-inflection
10061 (package-with-python2 python-inflection))
10063 (define-public python-pylev
10065 (name "python-pylev")
10069 (uri (pypi-uri "pylev" version))
10072 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
10073 (build-system python-build-system)
10074 (home-page "http://github.com/toastdriven/pylev")
10075 (synopsis "Levenshtein distance implementation in Python")
10076 (description "Pure Python Levenshtein implementation, based off the
10077 Wikipedia code samples at
10078 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
10079 (license license:bsd-3)))
10081 (define-public python2-pylev
10082 (package-with-python2 python-pylev))
10084 (define-public python-cleo
10086 (name "python-cleo")
10090 (uri (pypi-uri "cleo" version))
10093 "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva"))))
10094 (build-system python-build-system)
10097 ("python-mock" ,python-mock)
10098 ("python-pytest" ,python-pytest)))
10100 `(("python-psutil" ,python-psutil)
10101 ("python-pylev" ,python-pylev)))
10102 (home-page "https://github.com/sdispater/cleo")
10103 (synopsis "Command-line arguments library for Python")
10105 "Cleo allows you to create command-line commands with signature in
10106 docstring and colored output.")
10107 (license license:expat)))
10109 (define-public python2-cleo
10110 (package-with-python2 python-cleo))
10112 (define-public python-lazy-object-proxy
10114 (name "python-lazy-object-proxy")
10118 (uri (pypi-uri "lazy-object-proxy" version))
10121 "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x"))))
10122 (build-system python-build-system)
10123 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
10124 (synopsis "Lazy object proxy for python")
10126 "Lazy object proxy is an object that wraps a callable but defers the call
10127 until the object is actually required, and caches the result of said call.")
10128 (license license:bsd-2)))
10130 (define-public python2-lazy-object-proxy
10131 (package-with-python2 python-lazy-object-proxy))
10133 (define-public python-dnspython
10135 (name "python-dnspython")
10139 (uri (string-append "http://www.dnspython.org/kits/"
10140 version "/dnspython-" version ".tar.gz"))
10143 "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i"))))
10144 (build-system python-build-system)
10145 (arguments '(#:tests? #f)) ; XXX: requires internet access
10146 (home-page "http://www.dnspython.org")
10147 (synopsis "DNS toolkit for Python")
10149 "dnspython is a DNS toolkit for Python. It supports almost all record
10150 types. It can be used for queries, zone transfers, and dynamic updates.
10151 It supports TSIG authenticated messages and EDNS0.")
10152 (license license:expat)))
10154 (define-public python2-dnspython
10155 (package-with-python2 python-dnspython))
10157 (define-public python-email-validator
10159 (name "python-email-validator")
10162 (origin (method url-fetch)
10163 (uri (pypi-uri "email_validator" version))
10166 "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw"))))
10167 (build-system python-build-system)
10170 (modify-phases %standard-phases
10171 (add-before 'build 'use-dnspython
10173 (substitute* "setup.py"
10174 (("dnspython3") "dnspython"))
10177 `(("python-dnspython" ,python-dnspython)
10178 ("python-idna" ,python-idna)))
10179 (home-page "https://github.com/JoshData/python-email-validator")
10180 (synopsis "Email address validation library for Python")
10182 "This library validates email address syntax and deliverability.")
10183 (license license:cc0)))
10185 (define-public python2-email-validator
10186 (package-with-python2 python-email-validator))
10188 (define-public python-ukpostcodeparser
10190 (name "python-ukpostcodeparser")
10194 (uri (pypi-uri "UkPostcodeParser" version))
10197 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
10198 (build-system python-build-system)
10199 (home-page "https://github.com/hamstah/ukpostcodeparser")
10200 (synopsis "UK Postcode parser for Python")
10202 "This library provides the @code{parse_uk_postcode} function for
10203 parsing UK postcodes.")
10204 (license license:expat)))
10206 (define-public python2-ukpostcodeparser
10207 (package-with-python2 python-ukpostcodeparser))
10209 (define-public python-fake-factory
10211 (name "python-fake-factory")
10215 (uri (pypi-uri "fake-factory" version))
10218 "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g"))))
10219 (build-system python-build-system)
10222 ("python-email-validator" ,python-email-validator)
10223 ("python-mock" ,python-mock)
10224 ("python-ukpostcodeparser" ,python-ukpostcodeparser)))
10226 `(("python-dateutil" ,python-dateutil-2)
10227 ("python-six" ,python-six)))
10228 (home-page "https://github.com/joke2k/faker")
10229 (synopsis "Python package that generates fake data")
10231 "Faker is a Python package that generates fake data such as names,
10232 addresses, and phone numbers.")
10233 (license license:expat)
10234 (properties `((python2-variant . ,(delay python2-fake-factory))))))
10236 (define-public python2-fake-factory
10237 (let ((base (package-with-python2 (strip-python2-variant
10238 python-fake-factory))))
10242 `(("python2-ipaddress" ,python2-ipaddress)
10243 ,@(package-propagated-inputs base))))))
10245 (define-public python-pyaml
10247 (name "python-pyaml")
10251 (uri (pypi-uri "pyaml" version))
10254 "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w"))))
10255 (build-system python-build-system)
10257 `(("python-pyyaml" ,python-pyyaml)))
10258 (home-page "https://github.com/mk-fg/pretty-yaml")
10259 (synopsis "YAML pretty-print library for Python")
10261 "pyaml is a PyYAML based python module to produce pretty and readable
10262 YAML-serialized data.")
10263 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/"))))
10265 (define-public python2-pyaml
10266 (package-with-python2 python-pyaml))
10268 (define-public python-flexmock
10270 (name "python-flexmock")
10274 (uri (pypi-uri "flexmock" version))
10277 "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy"))))
10278 (build-system python-build-system)
10279 (home-page "https://flexmock.readthedocs.org")
10280 (synopsis "Testing library for Python")
10282 "flexmock is a testing library for Python that makes it easy to create
10283 mocks, stubs and fakes.")
10284 (license license:bsd-3)))
10286 (define-public python2-flexmock
10287 (package-with-python2 python-flexmock))
10289 (define-public python-orator
10291 (name "python-orator")
10295 (uri (pypi-uri "orator" version))
10298 "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569"))))
10299 (build-system python-build-system)
10300 (arguments '(#:tests? #f)) ; no tests
10302 `(("python-arrow" ,python-arrow)
10303 ("python-blinker" ,python-blinker)
10304 ("python-cleo" ,python-cleo)
10305 ("python-fake-factory" ,python-fake-factory)
10306 ("python-inflection" ,python-inflection)
10307 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
10308 ("python-pyaml" ,python-pyaml)
10309 ("python-simplejson" ,python-simplejson)
10310 ("python-wrapt" ,python-wrapt)))
10311 (home-page "https://orator-orm.com/")
10312 (synopsis "ActiveRecord ORM for Python")
10314 "Orator provides a simple ActiveRecord-like Object Relational Mapping
10315 implementation for Python.")
10316 (license license:expat)
10317 (properties `((python2-variant . ,(delay python2-orator))))))
10319 (define-public python2-orator
10320 (let ((base (package-with-python2 (strip-python2-variant python-orator))))
10324 `(("python2-ipaddress" ,python2-ipaddress)
10325 ,@(package-propagated-inputs base))))))
10327 (define-public python-prompt-toolkit
10329 (name "python-prompt-toolkit")
10334 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
10337 "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg"))))
10338 (build-system python-build-system)
10340 '(#:tests? #f)) ; The test suite uses some Windows-specific data types.
10342 `(("python-wcwidth" ,python-wcwidth)
10343 ("python-pygments" ,python-pygments)))
10344 (native-inputs `(("python-six" ,python-six)))
10345 (home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
10346 (synopsis "Library for building command line interfaces in Python")
10348 "Prompt-Toolkit is a library for building interactive command line
10349 interfaces in Python. It's like GNU Readline but it also features syntax
10350 highlighting while typing, out-of-the-box multi-line input editing, advanced
10351 code completion, incremental search, support for Chinese double-width
10352 characters, mouse support, and auto suggestions.")
10353 (license license:bsd-3)))
10355 (define-public python2-prompt-toolkit
10356 (package-with-python2 python-prompt-toolkit))
10358 (define-public python-jedi
10360 (name "python-jedi")
10365 (uri (pypi-uri "jedi" version))
10368 "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"))))
10369 (build-system python-build-system)
10370 (home-page "https://github.com/davidhalter/jedi")
10372 "Autocompletion for Python that can be used for text editors")
10374 "Jedi is an autocompletion tool for Python that can be used for text editors.")
10375 (license license:expat)))
10377 (define-public python2-jedi
10378 (package-with-python2 python-jedi))
10380 (define-public ptpython
10386 (uri (pypi-uri "ptpython" version))
10389 "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
10390 (build-system python-build-system)
10392 `(("python-docopt" ,python-docopt)
10393 ("python-jedi" ,python-jedi)
10394 ("python-prompt-toolkit" ,python-prompt-toolkit)
10395 ("python-pygments" ,python-pygments)))
10396 (home-page "https://github.com/jonathanslenders/ptpython")
10397 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
10399 "ptpython is a Python read-eval-print loop with IDE-like features.
10400 It supports syntax highlighting, multiline editing, autocompletion, mouse,
10401 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
10403 (license license:bsd-3)
10404 (properties `((python2-variant . ,(delay ptpython-2))))))
10406 (define-public ptpython-2
10407 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
10410 (name "ptpython2"))))
10412 (define-public python-requests-oauthlib
10414 (name "python-requests-oauthlib")
10419 (uri (pypi-uri "requests-oauthlib" version))
10422 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
10423 (build-system python-build-system)
10426 (modify-phases %standard-phases
10427 ;; removes tests that require network access
10428 (add-before 'check 'pre-check
10430 (delete-file "tests/test_core.py")
10433 `(("python-requests-mock" ,python-requests-mock)
10434 ("python-mock" ,python-mock)))
10436 `(("python-oauthlib" ,python-oauthlib)
10437 ("python-requests" ,python-requests)))
10439 "https://github.com/requests/requests-oauthlib")
10441 "OAuthlib authentication support for Requests")
10443 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
10444 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
10445 (license license:isc)))
10447 (define-public python2-requests-oauthlib
10448 (package-with-python2 python-requests-oauthlib))
10450 (define-public python-stem
10452 (name "python-stem")
10457 (uri (pypi-uri "stem" version ".tar.bz2"))
10460 "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7"))))
10461 (build-system python-build-system)
10464 (modify-phases %standard-phases
10467 (zero? (system* "./run_tests.py" "--unit")))))))
10469 `(("python-mock" ,python-mock)
10470 ("python-pep8" ,python-pep8)
10471 ("python-pyflakes" ,python-pyflakes)))
10473 `(("python-pycrypto" ,python-pycrypto)))
10474 (home-page "https://stem.torproject.org/")
10476 "Python controller library that allows applications to interact with Tor")
10478 "Stem is a Python controller library for Tor. With it you can use Tor's
10479 control protocol to script against the Tor process and read descriptor data
10480 relays publish about themselves.")
10481 (license license:lgpl3)))
10483 (define-public python2-stem
10484 (package-with-python2 python-stem))
10486 (define-public python-pyserial
10488 (name "python-pyserial")
10493 (uri (pypi-uri "pyserial" version))
10496 "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn"))))
10497 (build-system python-build-system)
10499 "https://github.com/pyserial/pyserial")
10500 (synopsis "Python Serial Port Bindings")
10501 (description "@code{pyserial} provide serial port bindings for Python. It
10502 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
10503 and/or Xon/Xoff. The port is accessed in RAW mode.")
10504 (license license:bsd-3)))
10506 (define-public python2-pyserial
10507 (package-with-python2 python-pyserial))
10509 (define-public python-kivy
10511 (name "python-kivy")
10516 (uri (pypi-uri "kivy" version))
10517 (file-name (string-append name "-" version ".tar.gz"))
10520 "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19"))))
10521 (build-system python-build-system)
10523 `(#:tests? #f ; Tests require many optional packages
10525 (modify-phases %standard-phases
10526 (replace 'build (lambda _ (zero? (system* "make" "force"))))
10527 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
10528 (lambda* (#:key inputs #:allow-other-keys)
10529 (setenv "KIVY_SDL2_PATH"
10530 (string-append (assoc-ref inputs "sdl-union")
10534 `(("pkg-config" ,pkg-config)))
10536 `(("python-cython" ,python-cython)
10537 ("gstreamer" ,gstreamer)
10540 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
10541 (home-page "http://kivy.org")
10543 "Multitouch application framework")
10545 "A software library for rapid development of
10546 hardware-accelerated multitouch applications.")
10547 (license license:expat)))
10549 (define-public python2-kivy
10550 (package-with-python2 python-kivy))
10552 (define-public python-kivy-next
10553 (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe")
10555 (package (inherit python-kivy)
10556 (name "python-kivy-next")
10557 (version (string-append "1.9.1-" revision "."
10558 (string-take commit 7)))
10562 (uri (git-reference
10563 (url "https://github.com/kivy/kivy")
10565 (file-name (string-append name "-" version "-checkout"))
10568 "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))))))
10570 (define-public python2-kivy-next
10571 (package-with-python2 python-kivy-next))
10573 (define-public python-binaryornot
10575 (name "python-binaryornot")
10579 (uri (pypi-uri "binaryornot" version))
10582 "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb"))))
10583 (build-system python-build-system)
10585 `(("python-chardet" ,python-chardet)
10586 ("python-hypothesis" ,python-hypothesis)))
10587 (home-page "https://github.com/audreyr/binaryornot")
10588 (synopsis "Package to check if a file is binary or text")
10589 (description "Ultra-lightweight pure Python package to check if a file is
10591 (license license:bsd-3)
10592 (properties `((python2-variant . ,(delay python2-binaryornot))))))
10594 (define-public python2-binaryornot
10595 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
10596 (package (inherit base)
10598 `(("python2-enum34" ,python2-enum34)
10599 ,@(package-propagated-inputs base))))))
10601 (define-public python-nltk
10603 (name "python-nltk")
10607 (uri (pypi-uri "nltk" version))
10610 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
10611 (build-system python-build-system)
10613 '(;; The tests require some extra resources to be downloaded.
10614 ;; TODO Try packaging these resources.
10616 (home-page "http://nltk.org/")
10617 (synopsis "Natural Language Toolkit")
10618 (description "It provides interfaces to over 50 corpora and lexical
10619 resources such as WordNet, along with a suite of text processing libraries
10620 for classification, tokenization, stemming, tagging, parsing, and semantic
10621 reasoning, wrappers for natural language processing libraries.")
10622 (license license:asl2.0)))
10624 (define-public python2-nltk
10625 (package-with-python2 python-nltk))
10627 (define-public python-pymongo
10629 (name "python-pymongo")
10633 (uri (pypi-uri "pymongo" version))
10636 "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x"))))
10637 (build-system python-build-system)
10639 `(("python-certifi" ,python-certifi)))
10640 (home-page "http://github.com/mongodb/mongo-python-driver")
10641 (synopsis "Python driver for MongoDB")
10642 (description "Python driver for MongoDB.")
10643 (license license:asl2.0)))
10645 (define-public python2-pymongo
10646 (package-with-python2 python-pymongo))
10648 (define-public python-sh
10654 (uri (pypi-uri "sh" version))
10657 "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr"))))
10658 (build-system python-build-system)
10660 `(#:tests? #f)) ; no tests
10661 (home-page "https://github.com/amoffat/sh")
10662 (synopsis "Python subprocess interface")
10663 (description "Abstracts process invocation by providing a function
10664 interface for programs.")
10665 (license license:expat)))
10667 (define-public python2-sh
10668 (package-with-python2 python-sh))
10670 (define-public python-consul
10672 (name "python-consul")
10677 (uri (pypi-uri "python-consul" version))
10680 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
10681 (build-system python-build-system)
10683 `(("python-pytest" ,python-pytest)
10684 ("python-requests" ,python-requests)
10685 ("python-six" ,python-six)))
10686 (home-page "https://github.com/cablehead/python-consul")
10687 (synopsis "Python client for Consul")
10689 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
10690 discovery, monitoring and configuration.")
10691 (license license:expat)))
10693 (define-public python2-consul
10694 (package-with-python2 python-consul))
10696 (define-public python-schematics
10698 (name "python-schematics")
10703 (uri (string-append
10704 "https://github.com/schematics/schematics/archive/v" version ".tar.gz"))
10705 (file-name (string-append name "-" version ".tar.gz"))
10708 "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l"))))
10709 (build-system python-build-system)
10711 `(("python-six" ,python-six)))
10713 `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed
10714 ; version requirements (eg python-coveralls)
10715 (home-page "https://github.com/schematics/schematics")
10716 (synopsis "Python Data Structures for Humans")
10717 (description "Python Data Structures for Humans.")
10718 (license license:bsd-3)))
10720 (define-public python2-schematics
10721 (package-with-python2 python-schematics))
10723 (define-public python-publicsuffix
10725 (name "python-publicsuffix")
10729 (uri (pypi-uri "publicsuffix" version))
10732 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
10733 (build-system python-build-system)
10735 `(#:tests? #f)) ; tests use the internet
10736 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
10737 (synopsis "Get suffix for a domain name")
10738 (description "Get a public suffix for a domain name using the Public Suffix
10740 (license license:expat)))
10742 (define-public python2-publicsuffix
10743 (package-with-python2 python-publicsuffix))
10745 (define-public python-publicsuffix2
10747 (name "python-publicsuffix2")
10748 (version "2.20160621")
10752 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
10755 "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd"))))
10756 (build-system python-build-system)
10758 '(#:tests? #f)) ; The test suite requires network access.
10759 (home-page "https://github.com/pombredanne/python-publicsuffix2")
10760 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
10761 (description "Get a public suffix for a domain name using the Public Suffix
10762 List. Forked from and using the same API as the publicsuffix package.")
10763 (license (list license:expat license:mpl2.0))))
10765 (define-public python2-publicsuffix2
10766 (package-with-python2 python-publicsuffix2))
10768 (define-public python-url
10770 (name "python-url")
10774 (uri (pypi-uri "url" version))
10777 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
10778 (build-system python-build-system)
10780 `(("python-publicsuffix" ,python-publicsuffix)))
10782 `(("python-coverage" ,python-coverage)
10783 ("python-nose" ,python-nose)))
10785 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
10786 (home-page "http://github.com/seomoz/url-py")
10787 (synopsis "URL Parsing")
10788 (description "Library for parsing urls.")
10789 (license license:expat)
10790 (properties `((python2-variant . ,(delay python2-url))))))
10792 (define-public python2-url
10793 (let ((base (package-with-python2 (strip-python2-variant python-url))))
10794 (package (inherit base)
10796 `(("python2-publicsuffix" ,python2-publicsuffix))))))
10798 (define-public python-freezegun
10800 (name "python-freezegun")
10805 (uri (pypi-uri "freezegun" version))
10808 "14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w"))))
10809 (build-system python-build-system)
10811 `(("python-mock" ,python-mock)
10812 ("python-nose" ,python-nose)
10813 ("python-coverage" ,python-coverage)
10814 ("python-dateutil-2" ,python-dateutil-2)))
10816 `(("python-six" ,python-six)))
10818 `(#:phases (modify-phases %standard-phases
10819 ;; The tests are normally executed via `make test`, but the PyPi
10820 ;; package does not include the Makefile.
10823 (zero? (system* "nosetests" "./tests/")))))))
10824 (home-page "https://github.com/spulec/freezegun")
10825 (synopsis "Test utility for mocking the datetime module")
10827 "FreezeGun is a library that allows your python tests to travel through
10828 time by mocking the datetime module.")
10829 (license license:asl2.0)))
10831 (define-public python2-freezegun
10832 (package-with-python2 python-freezegun))
10835 (define-public python-odfpy
10837 (name "python-odfpy")
10841 (uri (pypi-uri "odfpy" version))
10844 "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw"))))
10846 `(#:modules ((srfi srfi-1)
10847 (guix build python-build-system)
10848 (guix build utils))
10850 (modify-phases %standard-phases
10852 ;; The test runner invokes python2 and python3 for test*.py.
10853 ;; To avoid having both in inputs, we replicate it here.
10855 (every (lambda (test-file)
10856 (zero? (system* "python" test-file)))
10857 (find-files "tests" "^test.*\\.py$")))))))
10858 (build-system python-build-system)
10859 (home-page "https://github.com/eea/odfpy")
10860 (synopsis "Python API and tools to manipulate OpenDocument files")
10861 (description "Collection of libraries and utility programs written in
10862 Python to manipulate OpenDocument 1.2 files.")
10864 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
10865 ;; number of files with other licenses.
10866 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
10868 (define-public python2-odfpy
10869 (package-with-python2 python-odfpy))
10871 (define-public python-cachecontrol
10873 (name "python-cachecontrol")
10878 ;; Pypi does not have tests.
10879 (uri (string-append
10880 "https://github.com/ionrock/cachecontrol/archive/v"
10881 version ".tar.gz"))
10882 (file-name (string-append name "-" version ".tar.gz"))
10885 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
10886 (build-system python-build-system)
10889 (modify-phases %standard-phases
10892 ;; Drop test that requires internet access.
10893 (delete-file "tests/test_regressions.py")
10894 (setenv "PYTHONPATH"
10895 (string-append (getcwd) "/build/lib:"
10896 (getenv "PYTHONPATH")))
10897 (zero? (system* "py.test" "-vv")))))))
10899 `(("python-pytest" ,python-pytest)
10900 ("python-redis" ,python-redis)
10901 ("python-webtest" ,python-webtest)
10902 ("python-mock" ,python-mock)))
10904 `(("python-requests" ,python-requests)
10905 ("python-lockfile" ,python-lockfile)))
10906 (home-page "https://github.com/ionrock/cachecontrol")
10907 (synopsis "The httplib2 caching algorithms for use with requests")
10908 (description "CacheControl is a port of the caching algorithms in
10909 @code{httplib2} for use with @code{requests} session objects.")
10910 (license license:asl2.0)))
10912 (define-public python2-cachecontrol
10913 (package-with-python2 python-cachecontrol))
10915 (define-public python-lit
10917 (name "python-lit")
10922 (uri (pypi-uri "lit" version))
10925 "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y"))))
10926 (build-system python-build-system)
10927 (home-page "http://llvm.org/")
10928 (synopsis "LLVM Software Testing Tool")
10929 (description "@code{lit} is a portable tool for executing LLVM and Clang
10930 style test suites, summarizing their results, and providing indication of
10932 (license license:ncsa)))
10934 (define-public python2-lit
10935 (package-with-python2 python-lit))
10937 (define-public python-pytest-pep8
10939 (name "python-pytest-pep8")
10943 (uri (pypi-uri "pytest-pep8" version))
10946 "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
10947 (build-system python-build-system)
10949 `(#:tests? #f)) ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
10951 `(("python-pytest" ,python-pytest)))
10953 `(("python-pep8" ,python-pep8)))
10954 (home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
10955 (synopsis "Py.test plugin to check PEP8 requirements")
10956 (description "Pytest plugin for checking PEP8 compliance.")
10957 (license license:expat)))
10959 (define-public python2-pytest-pep8
10960 (package-with-python2 python-pytest-pep8))
10962 (define-public python-pytest-flakes
10964 (name "python-pytest-flakes")
10968 (uri (pypi-uri "pytest-flakes" version))
10971 "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw"))))
10972 (build-system python-build-system)
10975 (modify-phases %standard-phases
10977 (add-after 'install 'check
10978 (lambda _ ; It's easier to run tests after install.
10979 (zero? (system* "py.test" "-vv")))))))
10981 `(("python-coverage" ,python-coverage)
10982 ("python-pytest" ,python-pytest)
10983 ("python-pytest-cache" ,python-pytest-cache)
10984 ("python-pytest-pep8" ,python-pytest-pep8)))
10986 `(("python-pyflakes" ,python-pyflakes)))
10987 (home-page "https://github.com/fschulze/pytest-flakes")
10988 (synopsis "Py.test plugin to check source code with pyflakes")
10989 (description "Pytest plugin for checking Python source code with pyflakes.")
10990 (license license:expat)))
10992 (define-public python2-pytest-flakes
10993 (package-with-python2 python-pytest-flakes))
10995 (define-public python-natsort
10997 (name "python-natsort")
11001 (uri (pypi-uri "natsort" version))
11004 "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja"))))
11005 (build-system python-build-system)
11008 (modify-phases %standard-phases
11009 (add-before 'check 'set-cachedir
11010 ;; Tests require write access to $HOME by default
11011 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)))))
11013 `(("python-hypothesis" ,python-hypothesis)
11014 ("python-pytest-cache" ,python-pytest-cache)
11015 ("python-pytest-cov" ,python-pytest-cov)
11016 ("python-pytest-flakes" ,python-pytest-flakes)
11017 ("python-pytest-pep8" ,python-pytest-pep8)))
11018 (propagated-inputs ; TODO: Add python-fastnumbers.
11019 `(("python-pyicu" ,python-pyicu)))
11020 (home-page "https://github.com/SethMMorton/natsort")
11021 (synopsis "Natural sorting for python and shell")
11023 "Natsort lets you apply natural sorting on lists instead of
11024 lexicographical. If you use the built-in @code{sorted} method in python
11025 on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be
11026 returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a
11027 function @code{natsorted} that identifies numbers and sorts them separately
11028 from strings. It can also sort version numbers, real numbers, mixed types
11029 and more, and comes with a shell command @command{natsort} that exposes this
11030 functionality in the command line.")
11031 (license license:expat)
11032 (properties `((python2-variant . ,(delay python2-natsort))))))
11034 (define-public python2-natsort
11035 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
11036 (package (inherit base)
11038 `(("python2-pathlib" ,python2-pathlib)
11039 ("python2-mock" ,python2-mock)
11040 ("python2-enum34" ,python2-enum34)
11041 ,@(package-native-inputs base))))))
11043 (define-public python-glances
11045 (name "python-glances")
11050 (uri (pypi-uri "Glances" version))
11053 "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg"))))
11054 (build-system python-build-system)
11056 `(("python-psutil" ,python-psutil)))
11058 "https://github.com/nicolargo/glances")
11060 "A cross-platform curses-based monitoring tool")
11062 "Glances is a curses-based monitoring tool for a wide variety of platforms.
11063 Glances uses the PsUtil library to get information from your system. It monitors
11064 CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
11065 (license license:lgpl3+)))
11067 (define-public python2-glances
11068 (package-with-python2 python-glances))
11070 (define-public python-graphql-core
11072 (name "python-graphql-core")
11077 (uri (pypi-uri "graphql-core" version))
11080 "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
11081 (build-system python-build-system)
11083 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
11085 (modify-phases %standard-phases
11086 (add-after 'unpack 'patch-hardcoded-version
11087 (lambda _ (substitute*
11089 (("'gevent==1.1rc1'") "'gevent'"))
11092 `(("python-gevent" ,python-gevent)
11093 ("python-mock" ,python-mock)
11094 ("python-pytest-mock" ,python-pytest-mock)))
11096 `(("python-promise" ,python-promise)
11097 ("python-six" ,python-six)))
11098 (home-page "https://github.com/graphql-python/graphql-core")
11099 (synopsis "GraphQL implementation for Python")
11101 "GraphQL implementation for Python. GraphQL is a data query language and
11102 runtime designed and used to request and deliver data to mobile and web apps.
11103 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
11105 (license license:expat)))
11107 (define-public python2-graphql-core
11108 (package-with-python2 python-graphql-core))
11110 (define-public python-graphql-relay
11112 (name "python-graphql-relay")
11117 (uri (pypi-uri "graphql-relay" version))
11120 "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi"))))
11121 (build-system python-build-system)
11123 `(("python-pytest" ,python-pytest)))
11125 `(("python-graphql-core" ,python-graphql-core)
11126 ("python-promise" ,python-promise)
11127 ("python-six" ,python-six)))
11128 (home-page "https://github.com/graphql-python/graphql-relay-py")
11129 (synopsis "Relay implementation for Python")
11131 "This is a library to allow the easy creation of Relay-compliant servers
11132 using the GraphQL Python reference implementation of a GraphQL server. It
11133 should be noted that the code is a exact port of the original
11134 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
11136 (license license:expat)))
11138 (define-public python2-graphql-relay
11139 (package-with-python2 python-graphql-relay))
11141 (define-public python-graphene
11143 (name "python-graphene")
11148 (uri (pypi-uri "graphene" version))
11151 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
11152 (build-system python-build-system)
11154 `(("python-django-filter" ,python-django-filter)
11155 ("python-mock" ,python-mock)
11156 ("python-psycopg2" ,python-psycopg2)
11157 ("python-pytest-django" ,python-pytest-django)
11158 ("python-sqlalchemy-utils" ,python-sqlalchemy-utils)))
11160 `(("python-graphql-core" ,python-graphql-core)
11161 ("python-graphql-relay" ,python-graphql-relay)
11162 ("python-iso8601" ,python-iso8601)
11163 ("python-promise" ,python-promise)
11164 ("python-six" ,python-six)))
11165 (home-page "http://graphene-python.org/")
11166 (synopsis "GraphQL Framework for Python")
11168 "Graphene is a Python library for building GraphQL schemas/types.
11169 A GraphQL schema describes your data model, and provides a GraphQL server
11170 with an associated set of resolve methods that know how to fetch data.")
11171 (properties `((python2-variant . ,(delay python2-graphene))))
11172 (license license:expat)))
11174 (define-public python2-graphene
11175 (let ((base (package-with-python2
11176 (strip-python2-variant python-graphene))))
11177 (package (inherit base)
11179 `(("python2-sqlalchemy" ,python2-sqlalchemy)
11180 ,@(package-native-inputs base))))))
11182 (define-public python-nautilus
11184 (name "python-nautilus")
11189 (uri (pypi-uri "nautilus" version))
11192 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
11193 (build-system python-build-system)
11194 (arguments `(#:tests? #f)) ; fails to import test modules
11196 `(("python-bcrypt" ,python-bcrypt)
11197 ("python-click" ,python-click)
11198 ("python-consul" ,python-consul)
11199 ("python-graphql-core" ,python-graphql-core)
11200 ("python-graphql-relay" ,python-graphql-relay)
11201 ("python-graphene" ,python-graphene)
11202 ("python-jinja2" ,python-jinja2)
11203 ("python-nose2" ,python-nose2)
11204 ("python-peewee" ,python-peewee)
11205 ("python-pika" ,python-pika)
11206 ("python-pycparser" ,python-pycparser)
11207 ("python-requests" ,python-requests)
11208 ("python-tornado" ,python-tornado)
11209 ("python-wtforms" ,python-wtforms)))
11210 (home-page "https://github.com/AlecAivazis/nautilus")
11211 (synopsis "Library for creating microservice applications")
11213 "Nautilus is a framework for flux based microservices that looks to
11214 provide extendible implementations of common aspects of a cloud so that you can
11215 focus on building massively scalable web applications.")
11216 (license license:expat)))
11218 (define-public python-betamax
11220 (name "python-betamax")
11225 (uri (pypi-uri "betamax" version))
11228 "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"))))
11229 (build-system python-build-system)
11231 '(;; Many tests fail because they require networking.
11234 `(("python-requests" ,python-requests)))
11235 (home-page "https://github.com/sigmavirus24/betamax")
11236 (synopsis "Record HTTP interactions with python-requests")
11237 (description "Betamax will record your test suite's HTTP interactions and
11238 replay them during future tests. It is designed to work with python-requests.")
11239 (license license:expat)))
11241 (define-public python2-betamax
11242 (package-with-python2 python-betamax))
11244 (define-public python-s3transfer
11246 (name "python-s3transfer")
11250 (uri (pypi-uri "s3transfer" version))
11253 "1jivjkp3xqif9gzr5fiq28jsskmh50vzzd7ldsb4rbyiw1iyv3hy"))))
11254 (build-system python-build-system)
11257 (modify-phases %standard-phases
11260 ;; 7 of the 'integration' tests require network access or login
11262 (zero? (system* "nosetests" "--exclude=integration")))))))
11264 `(("python-docutils" ,python-docutils)
11265 ("python-mock" ,python-mock)
11266 ("python-nose" ,python-nose)))
11268 `(("python-botocore" ,python-botocore)))
11269 (synopsis "Amazon S3 Transfer Manager")
11270 (description "S3transfer is a Python library for managing Amazon S3
11272 (home-page "https://github.com/boto/s3transfer")
11273 (license license:asl2.0)
11274 (properties `((python2-variant . ,(delay python2-s3transfer))))))
11276 (define-public python2-s3transfer
11277 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
11281 `(("python2-futures" ,python2-futures)
11282 ,@(package-native-inputs base))))))
11284 (define-public python-setproctitle
11286 (name "python-setproctitle")
11291 (uri (pypi-uri "setproctitle" version))
11294 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
11295 (build-system python-build-system)
11298 (modify-phases %standard-phases
11299 (add-before 'check 'patch-Makefile
11300 ;; Stricly this is only required for the python2 variant.
11301 ;; But adding a phase in an inherited package seems to be
11302 ;; cumbersum. So we patch even for python3.
11304 (let ((nose (assoc-ref %build-inputs "python2-nose")))
11306 (substitute* "Makefile"
11307 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
11308 (string-append nose "/bin/nosetests "))))
11312 (setenv "PYTHON" (or (which "python3") (which "python")))
11313 (setenv "PYCONFIG" (or (which "python3-config")
11314 (which "python-config")))
11315 (setenv "CC" "gcc")
11316 ;; No need to extend PYTHONPATH to find the built package, since
11317 ;; the Makefile will build anyway
11318 (zero? (system* "make" "check")))))))
11320 `(("procps" ,procps))) ; required for tests
11322 "https://github.com/dvarrazzo/py-setproctitle")
11324 "Setproctitle implementation for Python to customize the process title")
11325 (description "The library allows a process to change its title (as displayed
11326 by system tools such as ps and top).
11328 Changing the title is mostly useful in multi-process systems, for
11329 example when a master process is forked: changing the children's title
11330 allows to identify the task each process is busy with. The technique
11331 is used by PostgreSQL and the OpenSSH Server for example.")
11332 (license license:bsd-3)
11333 (properties `((python2-variant . ,(delay python2-setproctitle))))))
11335 (define-public python2-setproctitle
11336 (let ((base (package-with-python2
11337 (strip-python2-variant python-setproctitle))))
11340 (native-inputs `(("python2-nose" ,python2-nose)
11341 ,@(package-native-inputs base))))))
11343 (define-public python-validictory
11345 (name "python-validictory")
11350 (uri (pypi-uri "validictory" version))
11353 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
11354 (build-system python-build-system)
11357 (modify-phases %standard-phases
11358 (add-after 'unpack 'bootstrap
11359 ;; Move the tests out of the package directory to avoid
11362 (rename-file "validictory/tests" "tests")
11363 (delete-file "tests/__init__.py")))
11366 ;; Extend PYTHONPATH so the built package will be found.
11367 (setenv "PYTHONPATH"
11368 (string-append (getcwd) "/build/lib:"
11369 (getenv "PYTHONPATH")))
11370 (zero? (system* "py.test" "-vv" )))))))
11372 `(("python-pytest" ,python-pytest)))
11374 "https://github.com/jamesturk/validictory")
11375 (synopsis "General purpose Python data validator")
11376 (description "It allows validation of arbitrary Python data structures.
11378 The schema format is based on the JSON Schema
11379 proposal (http://json-schema.org), so combined with json the library is also
11380 useful as a validator for JSON data.")
11381 (license license:expat)))
11383 (define-public python2-validictory
11384 (package-with-python2 python-validictory))
11386 (define-public python-aniso8601
11388 (name "python-aniso8601")
11393 (uri (pypi-uri "aniso8601" version))
11396 "1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g"))))
11397 (build-system python-build-system)
11399 `(("python-dateutil-2" ,python-dateutil-2)))
11401 "https://bitbucket.org/nielsenb/aniso8601")
11403 "Python library for parsing ISO 8601 strings")
11405 "This package contains a library for parsing ISO 8601 datetime strings.")
11406 (license license:bsd-3)))
11408 (define-public python-flask-restful
11410 (name "python-flask-restful")
11415 (uri (pypi-uri "Flask-RESTful" version))
11418 "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c"))))
11419 (build-system python-build-system)
11421 `(("python-aniso8601" ,python-aniso8601)
11422 ("python-flask" ,python-flask)
11423 ("python-pycrypto" ,python-pycrypto)
11424 ("python-pytz" ,python-pytz)))
11426 `(;; Optional dependency of Flask. Tests need it.
11427 ("python-blinker" ,python-blinker)
11428 ("python-mock" ,python-mock) ; For tests
11429 ("python-nose" ,python-nose) ; For tests
11430 ("python-sphinx" ,python-sphinx)))
11432 "https://www.github.com/flask-restful/flask-restful/")
11434 "Flask module for creating REST APIs")
11436 "This package contains a Flask module for creating REST APIs.")
11437 (license license:bsd-3)))
11439 (define-public python-flask-basicauth
11441 (name "python-flask-basicauth")
11446 (uri (pypi-uri "Flask-BasicAuth" version))
11449 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
11450 (build-system python-build-system)
11452 `(("python-flask" ,python-flask)))
11454 "https://github.com/jpvanhal/flask-basicauth")
11456 "HTTP basic access authentication for Flask")
11458 "This package provides HTTP basic access authentication for Flask.")
11459 (license license:bsd-3)))
11461 (define-public python-flask-sqlalchemy
11463 (name "python-flask-sqlalchemy")
11468 (uri (pypi-uri "Flask-SQLAlchemy" version))
11471 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
11472 (build-system python-build-system)
11474 `(("python-flask" ,python-flask)
11475 ("python-sqlalchemy" ,python-sqlalchemy)))
11477 "http://github.com/mitsuhiko/flask-sqlalchemy")
11479 "Module adding SQLAlchemy support to your Flask application")
11481 "This package adds SQLAlchemy support to your Flask application.")
11482 (license license:bsd-3)))
11484 (define-public python-pyev
11486 (name "python-pyev")
11491 (uri (pypi-uri "pyev" version))
11494 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
11495 (build-system python-build-system)
11497 `(#:tests? #f ; no test suite
11499 (modify-phases %standard-phases
11500 (add-after 'unpack 'patch
11501 (lambda* (#:key inputs #:allow-other-keys)
11502 (let ((libev (string-append (assoc-ref inputs "libev")
11503 "/lib/libev.so.4")))
11504 (substitute* "setup.py"
11505 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
11506 (string-append "libev_dll_name = \"" libev "\"")))))))))
11508 `(("libev" ,libev)))
11509 (home-page "http://pythonhosted.org/pyev/")
11510 (synopsis "Python libev interface")
11511 (description "Pyev provides a Python interface to libev.")
11512 (license license:gpl3)))
11514 (define-public python2-pyev
11515 (package-with-python2 python-pyev))
11517 (define-public python-imagesize
11519 (name "python-imagesize")
11524 (uri (pypi-uri "imagesize" version))
11527 "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha"))))
11528 (build-system python-build-system)
11530 '(;; Test files are not distributed on PyPi:
11531 ;; https://github.com/shibukawa/imagesize_py/issues/7
11533 (home-page "https://github.com/shibukawa/imagesize_py")
11534 (synopsis "Gets image size of files in variaous formats in Python")
11536 "This package allows determination of image size from
11537 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
11538 (license license:expat)))
11540 (define-public python2-imagesize
11541 (package-with-python2 python-imagesize))
11543 (define-public python-axolotl-curve25519
11545 (name "python-axolotl-curve25519")
11550 (uri (git-reference
11551 (url "git://github.com/tgalal/python-axolotl-curve25519")
11552 (commit "e4a9c4de0eae27223200579c58d1f8f6d20637e2")))
11553 (file-name (string-append name "-" version "-checkout"))
11556 "0agap5q0hmvf6cwzjqc05kw53pjgf6942pcivpazksmg1vk400ra"))))
11557 (build-system python-build-system)
11559 `(;; Prevent creation of the egg. This works around
11560 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
11561 #:configure-flags '("--root=/")))
11562 (home-page "https://github.com/tgalal/python-axolotl-curve25519")
11563 (synopsis "Python wrapper for curve25519 library")
11564 (description "This is a python wrapper for the curve25519 library
11565 with ed25519 signatures. The C code was pulled from
11566 libaxolotl-android. At the moment this wrapper is meant for use by
11568 (license (list license:gpl3 ; Most files
11569 license:bsd-3)))) ; curve/curve25519-donna.c
11571 (define-public python2-axolotl-curve25519
11572 (package-with-python2 python-axolotl-curve25519))
11574 (define-public python-axolotl
11576 (name "python-axolotl")
11581 (uri (string-append
11582 "https://github.com/tgalal/python-axolotl/archive/"
11583 version ".tar.gz"))
11584 (file-name (string-append name "-" version ".tar.gz"))
11586 (base32 "1z8d89p7v40p4bwywjm9h4z28fdvra79ddw06azlkrfjbl7dxmz8"))))
11587 (build-system python-build-system)
11590 (modify-phases %standard-phases
11591 ;; Don't install tests
11592 (add-before 'install 'remove-tests
11594 (for-each delete-file-recursively
11595 '("axolotl/tests" "build/lib/axolotl/tests"))
11597 ;; Prevent creation of the egg. This works around
11598 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
11599 #:configure-flags '("--root=/")))
11601 `(("python-axolotl-curve25519" ,python-axolotl-curve25519)
11602 ("python-dateutil" ,python-dateutil)
11603 ("python-protobuf" ,python-protobuf)
11604 ("python-pycrypto" ,python-pycrypto)))
11605 (home-page "https://github.com/tgalal/python-axolotl")
11606 (synopsis "Python port of libaxolotl-android")
11607 (description "This is a python port of libaxolotl-android. This
11608 is a ratcheting forward secrecy protocol that works in synchronous and
11609 asynchronous messaging environments.")
11610 (license license:gpl3)))
11612 (define-public python2-axolotl
11613 (package-with-python2 python-axolotl))
11615 (define-public python-termstyle
11617 (name "python-termstyle")
11622 (uri (pypi-uri "termstyle" version))
11625 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
11626 (build-system python-build-system)
11627 (home-page "http://github.com/gfxmonk/termstyle")
11628 (synopsis "Console text coloring for Python")
11629 (description "This package provides console text coloring for Python.")
11630 (license license:bsd-3)))
11632 (define-public python-rednose
11634 (name "python-rednose")
11639 (uri (pypi-uri "rednose" version))
11642 "0b0bsna217lr1nykyhl5fgjly15zhdvqd4prg4wy1zrgfv7al6m0"))))
11643 (build-system python-build-system)
11646 (modify-phases %standard-phases
11647 (add-after 'unpack 'fix-deps
11649 ;; See <https://github.com/JBKahn/rednose/issues/12>
11650 (substitute* "setup.py"
11651 (("python-termstyle") "termstyle"))
11654 `(("python-colorama" ,python-colorama)
11655 ("python-termstyle" ,python-termstyle)))
11657 `(("python-six" ,python-six)
11658 ("python-nose" ,python-nose)))
11659 (home-page "https://github.com/JBKahn/rednose")
11660 (synopsis "Colored output for Python nosetests")
11661 (description "This package provides colored output for the
11662 @command{nosetests} command of the Python Nose unit test framework.")
11663 (license license:bsd-3)))
11665 (define-public python-flask-restplus
11667 (name "python-flask-restplus")
11672 (uri (pypi-uri "flask-restplus" version))
11675 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
11676 (build-system python-build-system)
11678 `(("python-aniso8601" ,python-aniso8601)
11679 ("python-flask" ,python-flask)
11680 ("python-jsonschema" ,python-jsonschema)
11681 ("python-pytz" ,python-pytz)
11682 ("python-six" ,python-six)))
11684 `(("python-tzlocal" ,python-tzlocal)
11685 ("python-blinker" ,python-blinker)
11686 ("python-nose" ,python-nose)
11687 ("python-rednose" ,python-rednose)))
11688 (home-page "https://github.com/noirbizarre/flask-restplus")
11689 (synopsis "Framework for documented API development with Flask")
11690 (description "This package provides a framework for API development with
11691 the Flask web framework in Python. It is similar to package
11692 @code{python-flask-restful} but supports the @code{python-swagger}
11693 documentation builder.")
11694 (license license:expat)))