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>
33 ;;; This file is part of GNU Guix.
35 ;;; GNU Guix is free software; you can redistribute it and/or modify it
36 ;;; under the terms of the GNU General Public License as published by
37 ;;; the Free Software Foundation; either version 3 of the License, or (at
38 ;;; your option) any later version.
40 ;;; GNU Guix is distributed in the hope that it will be useful, but
41 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
42 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 ;;; GNU General Public License for more details.
45 ;;; You should have received a copy of the GNU General Public License
46 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
48 (define-module (gnu packages python)
49 #:use-module ((guix licenses) #:prefix license:)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages algebra)
52 #:use-module (gnu packages adns)
53 #:use-module (gnu packages attr)
54 #:use-module (gnu packages backup)
55 #:use-module (gnu packages bash)
56 #:use-module (gnu packages compression)
57 #:use-module (gnu packages databases)
58 #:use-module (gnu packages django)
59 #:use-module (gnu packages file)
60 #:use-module (gnu packages fontutils)
61 #:use-module (gnu packages gcc)
62 #:use-module (gnu packages ghostscript)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages gstreamer)
66 #:use-module (gnu packages gtk)
67 #:use-module (gnu packages icu4c)
68 #:use-module (gnu packages image)
69 #:use-module (gnu packages imagemagick)
70 #:use-module (gnu packages libevent)
71 #:use-module (gnu packages libffi)
72 #:use-module (gnu packages linux)
73 #:use-module (gnu packages maths)
74 #:use-module (gnu packages multiprecision)
75 #:use-module (gnu packages networking)
76 #:use-module (gnu packages ncurses)
77 #:use-module (gnu packages openstack)
78 #:use-module (gnu packages password-utils)
79 #:use-module (gnu packages pcre)
80 #:use-module (gnu packages perl)
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages readline)
83 #:use-module (gnu packages sdl)
84 #:use-module (gnu packages statistics)
85 #:use-module (gnu packages tex)
86 #:use-module (gnu packages texinfo)
87 #:use-module (gnu packages tls)
88 #:use-module (gnu packages version-control)
89 #:use-module (gnu packages web)
90 #:use-module (gnu packages base)
91 #:use-module (gnu packages xml)
92 #:use-module (gnu packages xorg)
93 #:use-module (gnu packages xdisorg)
94 #:use-module (gnu packages zip)
95 #:use-module (gnu packages tcl)
96 #:use-module (gnu packages bdw-gc)
97 #:use-module (guix packages)
98 #:use-module (guix download)
99 #:use-module (guix git-download)
100 #:use-module (guix utils)
101 #:use-module (guix build-system gnu)
102 #:use-module (guix build-system cmake)
103 #:use-module (guix build-system python)
104 #:use-module (guix build-system trivial)
105 #:use-module (srfi srfi-1))
107 (define-public python-2.7
114 (uri (string-append "https://www.python.org/ftp/python/"
115 version "/Python-" version ".tar.xz"))
118 "0y7rl603vmwlxm6ilkhc51rx2mfj14ckcz40xxgs0ljnvlhp30yp"))
119 (patches (search-patches "python-2.7-search-paths.patch"
120 "python-2-deterministic-build-info.patch"
121 "python-2.7-source-date-epoch.patch"))
122 (modules '((guix build utils)))
123 ;; suboptimal to delete failing tests here, but if we delete them in the
124 ;; arguments then we need to make sure to strip out that phase when it
125 ;; gets inherited by python and python-minimal.
128 (for-each delete-file
129 '("Lib/test/test_compileall.py"
130 "Lib/test/test_ctypes.py" ; fails on mips64el
131 "Lib/test/test_distutils.py"
132 "Lib/test/test_import.py"
133 "Lib/test/test_shutil.py"
134 "Lib/test/test_socket.py"
135 "Lib/test/test_subprocess.py"))
138 "tk")) ;tkinter; adds 50 MiB to the closure
139 (build-system gnu-build-system)
143 ;; test_compileall test_distutils test_import test_shutil test_socket
146 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
147 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
148 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
149 ;; test_dl test_gdb test_gl test_imageop test_imgfile test_ioctl
150 ;; test_kqueue test_linuxaudiodev test_macos test_macostools
151 ;; test_msilib test_ossaudiodev test_scriptpackages test_smtpnet
152 ;; test_socketserver test_startfile test_sunaudiodev test_timeout
153 ;; test_tk test_ttk_guionly test_urllib2net test_urllibnet
154 ;; test_winreg test_winsound test_zipfile64
155 ;; 4 skips unexpected on linux2:
156 ;; test_bsddb test_bsddb3 test_gdb test_ioctl
159 (list "--enable-shared" ;allow embedding
160 "--with-system-ffi" ;build ctypes
161 (string-append "LDFLAGS=-Wl,-rpath="
162 (assoc-ref %outputs "out") "/lib"))
164 #:modules ((ice-9 ftw) (ice-9 match)
165 (guix build utils) (guix build gnu-build-system))
167 (modify-phases %standard-phases
169 'configure 'patch-lib-shells
171 ;; Filter for existing files, since some may not exist in all
172 ;; versions of python that are built with this recipe.
173 (substitute* (filter file-exists?
174 '("Lib/subprocess.py"
176 "Lib/distutils/tests/test_spawn.py"
177 "Lib/test/test_subprocess.py"))
178 (("/bin/sh") (which "sh")))
180 ;; Use zero as the timestamp in .pyc files so that builds are
181 ;; deterministic. TODO: Remove it when this variable is set in
182 ;; gnu-build-system.scm.
183 (setenv "SOURCE_DATE_EPOCH" "1")
185 (add-before 'configure 'do-not-record-configure-flags
186 (lambda* (#:key configure-flags #:allow-other-keys)
187 ;; Remove configure flags from the installed '_sysconfigdata.py'
188 ;; and 'Makefile' so we don't end up keeping references to the
191 ;; Preserve at least '--with-system-ffi' since otherwise the
192 ;; thing tries to build libffi, fails, and we end up with a
193 ;; Python that lacks ctypes.
194 (substitute* "configure"
195 (("^CONFIG_ARGS=.*$")
196 (format #f "CONFIG_ARGS='~a'\n"
197 (if (member "--with-system-ffi" configure-flags)
204 ;; 'Lib/test/test_site.py' needs a valid $HOME
205 (setenv "HOME" (getcwd))
208 'unpack 'set-source-file-times-to-1980
209 ;; XXX One of the tests uses a ZIP library to pack up some of the
210 ;; source tree, and fails with "ZIP does not support timestamps
211 ;; before 1980". Work around this by setting the file times in the
212 ;; source tree to sometime in early 1980.
214 (let ((circa-1980 (* 10 366 24 60 60)))
215 (ftw "." (lambda (file stat flag)
216 (utime file circa-1980 circa-1980)
219 (add-after 'install 'remove-tests
220 ;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
221 ;; because these files are used by some libraries out there.
222 (lambda* (#:key outputs #:allow-other-keys)
223 (let ((out (assoc-ref outputs "out")))
224 (match (scandir (string-append out "/lib")
226 (string-prefix? "python" name)))
228 (let ((testdir (string-append out "/lib/" pythonX.Y
230 (with-directory-excursion testdir
231 (for-each delete-file-recursively
237 (string-prefix? "test_support."
239 (call-with-output-file "__init__.py" (const #t))
241 (add-before 'strip 'make-libraries-writable
242 (lambda* (#:key outputs #:allow-other-keys)
243 ;; Make .so files writable so they can be stripped.
244 (let ((out (assoc-ref outputs "out")))
245 (for-each (lambda (file)
247 (find-files (string-append out "/lib")
250 (add-after 'install 'move-tk-inter
251 (lambda* (#:key outputs #:allow-other-keys)
252 ;; When Tkinter support is built move it to a separate output so
253 ;; that the main output doesn't contain a reference to Tcl/Tk.
254 (let ((out (assoc-ref outputs "out"))
255 (tk (assoc-ref outputs "tk")))
257 (match (find-files out "tkinter.*\\.so")
259 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
260 ;; want it under TK/lib/pythonX.Y/site-packages.
261 (let* ((len (string-length out))
262 (target (string-append
265 (dirname (dirname tkinter.so))
268 (install-file tkinter.so target)
269 (delete-file tkinter.so)))))
274 ("libffi" ,libffi) ; for ctypes
275 ("sqlite" ,sqlite) ; for sqlite extension
277 ("readline" ,readline)
280 ("tk" ,tk))) ; for tkinter
282 `(("pkg-config" ,pkg-config)))
284 (list (search-path-specification
285 (variable "PYTHONPATH")
286 (files '("lib/python2.7/site-packages")))))
287 (home-page "https://www.python.org")
288 (synopsis "High-level, dynamically-typed programming language")
290 "Python is a remarkably powerful dynamic programming language that
291 is used in a wide variety of application domains. Some of its key
292 distinguishing features include: clear, readable syntax; strong
293 introspection capabilities; intuitive object orientation; natural
294 expression of procedural code; full modularity, supporting hierarchical
295 packages; exception-based error handling; and very high level dynamic
297 (license license:psfl)))
299 ;; Current 2.x version.
300 (define-public python-2 python-2.7)
302 (define-public python-3.5
303 (package (inherit python-2)
307 (uri (string-append "https://www.python.org/ftp/python/"
308 version "/Python-" version ".tar.xz"))
309 (patches (search-patches
310 "python-fix-tests.patch"
311 "python-3.5-fix-tests.patch"
312 "python-3-deterministic-build-info.patch"
313 "python-3-search-paths.patch"))
314 (patch-flags '("-p0"))
317 "0h6a5fr7ram2s483lh0pnmc4ncijb8llnpfdxdcl5dxr01hza400"))))
318 (arguments (substitute-keyword-arguments (package-arguments python-2)
321 (list (search-path-specification
322 (variable "PYTHONPATH")
323 (files (list (string-append "lib/python"
324 (version-major+minor version)
325 "/site-packages"))))))))
327 (define-public python-3.4
328 (package (inherit python-3.5)
332 (uri (string-append "https://www.python.org/ftp/python/"
333 version "/Python-" version ".tar.xz"))
334 (patches (search-patches
335 "python-fix-tests.patch"
336 "python-3.4-fix-tests.patch"
337 "python-3-deterministic-build-info.patch"
338 "python-3-search-paths.patch"))
339 (patch-flags '("-p0"))
342 "12l9klp778wklxmckhghniy5hklss8r26995pyd00qbllk4b2r7f"))))))
344 ;; Current 3.x version.
345 (define-public python-3 python-3.5)
347 ;; Current major version.
348 (define-public python python-3)
350 ;; Minimal variants of Python, mostly used to break the cycle between Tk and
351 ;; Python (Tk -> libxcb -> Python.)
353 (define-public python2-minimal
354 (package (inherit python-2)
355 (name "python-minimal")
358 (substitute-keyword-arguments (package-arguments python-2)
359 ((#:configure-flags cf)
360 `(append ,cf '("--without-system-ffi")))))
361 (inputs '()))) ;none of the optional dependencies
363 (define-public python-minimal
364 (package (inherit python)
365 (name "python-minimal")
368 ;; Build fails due to missing ctypes without libffi.
369 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
370 ;; zlib is required by 'zipimport', used by pip.
371 (inputs `(("libffi" ,libffi)
375 (define* (wrap-python3 python
377 (name (string-append (package-name python) "-wrapper")))
378 (package (inherit python)
381 (build-system trivial-build-system)
383 (inputs `(("bash" ,bash)))
384 (propagated-inputs `(("python" ,python)))
386 `(#:modules ((guix build utils))
389 (use-modules (guix build utils))
390 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
391 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
395 (symlink (string-append python old)
396 (string-append bin "/" new)))
397 `("python3" ,"pydoc3" ,"idle3" ,"pip3")
398 `("python" ,"pydoc" ,"idle" ,"pip"))
399 ;; python-config outputs search paths based upon its location,
400 ;; use a bash wrapper to avoid changing its outputs.
401 (let ((bash (string-append (assoc-ref %build-inputs "bash")
403 (old (string-append python "python3-config"))
404 (new (string-append bin "/python-config")))
405 (with-output-to-file new
407 (format #t "#!~a~%" bash)
408 (format #t "exec \"~a\" \"$@\"~%" old)
411 (synopsis "Wrapper for the Python 3 commands")
413 "This package provides wrappers for the commands of Python@tie{}3.x such
414 that they can be invoked under their usual name---e.g., @command{python}
415 instead of @command{python3}.")))
417 (define-public python-wrapper (wrap-python3 python))
418 (define-public python-minimal-wrapper (wrap-python3 python-minimal))
420 (define-public python-psutil
422 (name "python-psutil")
427 (uri (pypi-uri "psutil" version))
430 "1w4r09fvn6kd80m5mx4ws1wz100brkaq6hzzpwrns8cgjzjpl6c6"))))
431 (build-system python-build-system)
433 `(("python-setuptools" ,python-setuptools)))
434 (home-page "https://www.github.com/giampaolo/psutil")
435 (synopsis "Library for retrieving information on running processes")
437 "psutil (Python system and process utilities) is a library for retrieving
438 information on running processes and system utilization (CPU, memory, disks,
439 network) in Python. It is useful mainly for system monitoring, profiling and
440 limiting process resources and management of running processes. It implements
441 many functionalities offered by command line tools such as: ps, top, lsof,
442 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
443 pidof, tty, taskset, pmap.")
444 (license license:bsd-3)))
446 (define-public python2-psutil
447 (package-with-python2 python-psutil))
449 (define-public python-passlib
451 (name "python-passlib")
456 (uri (pypi-uri "passlib" version))
459 "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"))))
460 (build-system python-build-system)
462 `(("python-nose" ,python-nose)
463 ("python-setuptools" ,python-setuptools)))
465 `(("python-py-bcrypt" ,python-py-bcrypt)))
469 'check 'set-PYTHON_EGG_CACHE
470 ;; some tests require access to "$HOME/.cython"
471 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
473 (home-page "https://bitbucket.org/ecollins/passlib")
475 "Comprehensive password hashing framework")
477 "Passlib is a password hashing library for Python 2 & 3, which provides
478 cross-platform implementations of over 30 password hashing algorithms, as well
479 as a framework for managing existing password hashes. It's designed to be
480 useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
481 to providing full-strength password hashing for multi-user application.")
482 (license license:bsd-3)))
484 (define-public python2-passlib
485 (package-with-python2 python-passlib))
487 (define-public python-py-bcrypt
489 (name "python-py-bcrypt")
495 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
500 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
501 (build-system python-build-system)
503 `(("python-setuptools" ,python-setuptools)))
504 (home-page "https://code.google.com/p/py-bcrypt")
506 "Bcrypt password hashing and key derivation")
508 "A python wrapper of OpenBSD's Blowfish password hashing code. This
509 system hashes passwords using a version of Bruce Schneier's Blowfish block
510 cipher with modifications designed to raise the cost of off-line password
511 cracking and frustrate fast hardware implementation. The computation cost of
512 the algorithm is parametised, so it can be increased as computers get faster.
513 The intent is to make a compromise of a password database less likely to
514 result in an attacker gaining knowledge of the plaintext passwords (e.g. using
516 ;; "sha2.c" is under BSD-3;
517 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
518 ;; the rest is under ISC.
519 (license (list license:isc license:bsd-3 license:bsd-4))))
521 (define-public python2-py-bcrypt
522 (package-with-python2 python-py-bcrypt))
525 (define-public python-paramiko
527 (name "python-paramiko")
532 (uri (pypi-uri "paramiko" version))
535 "14k8z7ndc3zk5xivnm4d8lncchx475ll5izpf8vmfbq7rp9yp5rj"))))
536 (build-system python-build-system)
538 `(("python-setuptools" ,python-setuptools)))
540 `(("python-pycrypto" ,python-pycrypto)))
542 `(("python-ecdsa" ,python-ecdsa)))
543 (home-page "http://www.paramiko.org/")
544 (synopsis "SSHv2 protocol library")
545 (description "Paramiko is a python implementation of the SSHv2 protocol,
546 providing both client and server functionality. While it leverages a Python C
547 extension for low level cryptography (PyCrypto), Paramiko itself is a pure
548 Python interface around SSH networking concepts.")
549 (license license:lgpl2.1+)))
551 (define-public python2-paramiko
552 (package-with-python2 python-paramiko))
555 (define-public python-httplib2
557 (name "python-httplib2")
562 (uri (pypi-uri "httplib2" version))
565 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
566 (build-system python-build-system)
568 `(("python-setuptools" ,python-setuptools)))
569 (home-page "https://github.com/jcgregorio/httplib2")
570 (synopsis "Comprehensive HTTP client library")
572 "A comprehensive HTTP client library supporting many features left out of
573 other HTTP libraries.")
574 (license license:expat)))
576 (define-public python2-httplib2
577 (package-with-python2 python-httplib2))
579 (define-public python-ecdsa
581 (name "python-ecdsa")
587 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
592 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
593 (build-system python-build-system)
595 `(("python-setuptools" ,python-setuptools)))
597 `(("openssl" ,openssl)))
599 "http://github.com/warner/python-ecdsa")
601 "ECDSA cryptographic signature library (pure python)")
603 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
604 Curve Digital Signature Algorithm), implemented purely in Python. With this
605 library, you can quickly create keypairs (signing key and verifying key), sign
606 messages, and verify the signatures. The keys and signatures are very short,
607 making them easy to handle and incorporate into other protocols.")
608 (license license:expat)))
610 (define-public python2-ecdsa
611 (package-with-python2 python-ecdsa))
613 (define-public python-ccm
620 (uri (pypi-uri "ccm" version))
623 "177dfxsmk3k4cih6fh6v8d91bh4nqx7ns6pc07w7m7i3cvdx3c8n"))))
624 (build-system python-build-system)
626 `(("python-setuptools" ,python-setuptools)))
628 `(("python-pyyaml" ,python-pyyaml)
629 ("python-six" ,python-six)))
630 (home-page "https://github.com/pcmanus/ccm")
631 (synopsis "Cassandra Cluster Manager")
632 (description "A script/library to create, launch and remove an Apache
633 Cassandra cluster on localhost.")
634 (license license:asl2.0)))
636 (define-public python2-ccm
637 (package-with-python2 python-ccm))
639 (define-public python-pytz
646 (uri (pypi-uri "pytz" version ".tar.bz2"))
649 "1mjmrkk4vc5xzppw7fm0pli1nnbj57cvqv7jjv5whcmccyhxz4y1"))))
650 (build-system python-build-system)
651 (arguments `(#:tests? #f)) ; no test target
652 (home-page "http://pythonhosted.org/pytz")
653 (synopsis "Python timezone library")
655 "This library allows accurate and cross platform timezone calculations
656 using Python 2.4 or higher and provides access to the Olson timezone database.")
657 (license license:expat)))
659 (define-public python2-pytz
660 (package-with-python2 python-pytz))
663 (define-public python-babel
665 (name "python-babel")
670 (uri (pypi-uri "Babel" version))
673 "0k43pi0p1dwpds2w0km3fw92wixzxv2vw7p09capxmjz5cfh23lw"))))
674 (build-system python-build-system)
676 `(("python-pytz" ,python-pytz)
677 ("python-setuptools" ,python-setuptools)))
678 (arguments `(#:tests? #f)) ; no test target
679 (home-page "http://babel.pocoo.org/")
681 "Tools for internationalizing Python applications")
683 "Babel is composed of two major parts:
684 - tools to build and work with gettext message catalogs
685 - a Python interface to the CLDR (Common Locale Data Repository), providing
686 access to various locale display names, localized number and date formatting,
688 (license license:bsd-3)))
690 (define-public python2-babel
691 (package-with-python2 python-babel))
693 (define-public python2-backport-ssl-match-hostname
695 (name "python2-backport-ssl-match-hostname")
701 "https://pypi.python.org/packages/source/b/"
702 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
706 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
707 (build-system python-build-system)
710 #:tests? #f)) ; no test target
712 `(("python2-setuptools" ,python2-setuptools)))
713 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
714 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
716 "This backport brings the ssl.match_hostname() function to users of
717 earlier versions of Python. The function checks the hostname in the
718 certificate returned by the server to which a connection has been established,
719 and verifies that it matches the intended target hostname.")
720 (license license:psfl)))
722 (define-public python-h5py
729 (uri (pypi-uri "h5py" version))
732 "0df46dg7i7xfking9lp221bfm8dbl974yvlrbi1w7r6m61ac7bxj"))))
733 (build-system python-build-system)
735 `(#:tests? #f ; no test target
737 (modify-phases %standard-phases
738 (add-after 'unpack 'fix-hdf5-paths
739 (lambda* (#:key inputs #:allow-other-keys)
740 (let ((prefix (assoc-ref inputs "hdf5")))
741 (substitute* "setup_build.py"
742 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
743 (string-append "['" prefix "/lib" "']"))
744 (("'/opt/local/include', '/usr/local/include'")
745 (string-append "'" prefix "/include" "'")))
746 (substitute* "setup_configure.py"
747 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
748 (string-append "['" prefix "/lib" "']")))
751 `(("python-numpy" ,python-numpy)))
754 ("python-six" ,python-six)))
756 `(("python-cython" ,python-cython)
757 ("python-pkgconfig" ,python-pkgconfig)))
758 (home-page "http://www.h5py.org/")
759 (synopsis "Read and write HDF5 files from Python")
761 "The h5py package provides both a high- and low-level interface to the
762 HDF5 library from Python. The low-level interface is intended to be a
763 complete wrapping of the HDF5 API, while the high-level component supports
764 access to HDF5 files, datasets and groups using established Python and NumPy
766 (license license:bsd-3)
767 (properties `((python2-variant . ,(delay python2-h5py))))))
769 (define-public python2-h5py
770 (package-with-python2 (strip-python2-variant python-h5py)))
772 (define-public python-lockfile
774 (name "python-lockfile")
779 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
780 "lockfile-" version ".tar.gz"))
783 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
784 (build-system python-build-system)
785 (arguments '(#:test-target "check"))
787 `(("python-pbr" ,python-pbr)))
788 (home-page "https://launchpad.net/pylockfile")
789 (synopsis "Platform-independent file locking module")
791 "The lockfile package exports a LockFile class which provides a simple
792 API for locking files.")
793 (license license:expat)
794 (properties `((python2-variant . ,(delay python2-lockfile))))))
796 (define-public python2-lockfile
797 (let ((base (package-with-python2 (strip-python2-variant python-lockfile))))
800 (native-inputs `(("python2-setuptools" ,python2-setuptools)
801 ,@(package-native-inputs base))))))
803 (define-public python-mock
810 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
811 "mock-" version ".tar.gz"))
814 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
815 (build-system python-build-system)
816 (arguments '(#:test-target "check"))
817 (home-page "http://code.google.com/p/mock/")
818 (synopsis "Python mocking and patching library for testing")
820 "Mock is a library for testing in Python. It allows you to replace parts
821 of your system under test with mock objects and make assertions about how they
823 (license license:expat)))
825 (define-public python2-mock
826 (package-with-python2 python-mock))
829 (define-public python-setuptools
831 (name "python-setuptools")
836 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
840 "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
841 (build-system python-build-system)
842 ;; FIXME: Tests require pytest, which itself relies on setuptools.
843 ;; One could bootstrap with an internal untested setuptools.
846 (home-page "https://pypi.python.org/pypi/setuptools")
848 "Library designed to facilitate packaging Python projects")
850 "Setuptools is a fully-featured, stable library designed to facilitate
851 packaging Python projects, where packaging includes:
852 Python package and module definitions,
853 distribution package metadata,
855 project installation,
856 platform-specific details,
858 (license license:psfl)))
860 (define-public python2-setuptools
861 (package-with-python2 python-setuptools))
864 (define-public python-pycrypto
866 (name "python-pycrypto")
871 (uri (string-append "https://pypi.python.org/packages/source/p/"
872 "pycrypto/pycrypto-" version ".tar.gz"))
875 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
876 (build-system python-build-system)
878 `(("python-setuptools" ,python-setuptools)))
885 'build 'set-build-env
886 ;; pycrypto runs an autoconf configure script behind the scenes
888 (setenv "CONFIG_SHELL" (which "bash")))
890 (home-page "http://www.pycrypto.org/")
891 (synopsis "Cryptographic modules for Python")
893 "Pycrypto is a collection of both secure hash functions (such as SHA256
894 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
895 etc.). The package is structured to make adding new modules easy.")
896 (license license:public-domain)))
898 (define-public python2-pycrypto
899 (let ((pycrypto (package-with-python2 python-pycrypto)))
900 (package (inherit pycrypto)
902 `(("python" ,python-2)
905 (package-inputs pycrypto)))))))
907 (define-public python-keyring
909 (name "python-keyring")
914 (uri (pypi-uri "keyring" version))
917 "0482rmi2x6p78wl2kz8qzyq21xz1sbbfwnv5x7dggar4vkwxhzfx"))))
918 (build-system python-build-system)
920 `(("python-setuptools-scm" ,python-setuptools-scm)))
922 `(("python-pycrypto" ,python-pycrypto)))
924 `(#:tests? #f)) ;TODO: tests require pytest
925 (home-page "https://github.com/jaraco/keyring")
926 (synopsis "Store and access your passwords safely")
928 "The Python keyring lib provides a easy way to access the system keyring
929 service from python. It can be used in any application that needs safe
931 ;; "MIT" and PSF dual license
932 (license license:x11)
933 (properties `((python2-variant . ,(delay python2-keyring))))))
935 (define-public python2-keyring
936 (let ((base (package-with-python2 (strip-python2-variant python-keyring))))
939 (native-inputs `(("python2-setuptools" ,python2-setuptools)
940 ,@(package-native-inputs base))))))
942 (define-public python-six
949 (uri (pypi-uri "six" version))
952 "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
953 (build-system python-build-system)
955 `(("python-setuptools" ,python-setuptools)))
956 (home-page "http://pypi.python.org/pypi/six/")
957 (synopsis "Python 2 and 3 compatibility utilities")
959 "Six is a Python 2 and 3 compatibility library. It provides utility
960 functions for smoothing over the differences between the Python versions with
961 the goal of writing Python code that is compatible on both Python versions.
962 Six supports every Python version since 2.5. It is contained in only one
963 Python file, so it can be easily copied into your project.")
964 (license license:x11)))
966 (define-public python2-six
967 (package-with-python2 python-six))
969 (define-public python-dateutil-2
971 (name "python-dateutil")
976 (uri (pypi-uri "python-dateutil" version))
979 "0jrfpcgvgya6hs45dhrd9yiqgdgz9qp9aa07zsw8gqgn8zphff86"))))
980 (build-system python-build-system)
982 `(("python-six" ,python-six)))
983 (home-page "https://dateutil.readthedocs.io/en/stable/")
984 (synopsis "Extensions to the standard datetime module")
986 "The dateutil module provides powerful extensions to the standard
987 datetime module, available in Python 2.3+.")
988 (license license:bsd-3)
989 (properties `((python2-variant . ,(delay python2-dateutil-2))))))
991 (define-public python2-dateutil-2
992 (let ((base (package-with-python2 (strip-python2-variant python-dateutil-2))))
995 (inputs `(("python2-setuptools" ,python2-setuptools)
996 ,@(package-inputs base))))))
998 (define-public python-dateutil
1000 (name "python-dateutil")
1001 (version "1.5") ; last version for python < 3
1005 (uri (string-append "http://labix.org/download/python-dateutil/"
1006 "python-dateutil-" version ".tar.gz"))
1009 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
1010 (build-system python-build-system)
1012 `(("python-setuptools" ,python-setuptools)))
1013 (home-page "https://dateutil.readthedocs.io/en/stable/")
1014 (synopsis "Extensions to the standard datetime module")
1016 "The dateutil module provides powerful extensions to the standard
1017 datetime module, available in Python 2.3+.")
1018 (license license:psfl)))
1020 (define-public python2-dateutil
1021 (package-with-python2 python-dateutil))
1023 (define-public python-parsedatetime
1025 (name "python-parsedatetime")
1030 (uri (pypi-uri "parsedatetime" version))
1033 "0bdgyw6y3v7bcxlx0p50s8drxsh5bb5cy2afccqr3j90amvpii8p"))))
1034 (build-system python-build-system)
1036 `(("python-nose" ,python-nose)
1037 ("python-pyicu" ,python-pyicu)))
1038 (home-page "http://github.com/bear/parsedatetime/")
1040 "Parse human-readable date/time text")
1042 "Parse human-readable date/time text.")
1043 (license license:asl2.0)
1044 (properties `((python2-variant . ,(delay python2-parsedatetime))))))
1046 (define-public python2-parsedatetime
1047 (let ((base (package-with-python2 (strip-python2-variant python-parsedatetime))))
1050 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1051 ,@(package-native-inputs base))))))
1053 (define-public python-pandas
1055 (name "python-pandas")
1061 "https://pypi.python.org/packages/11/09/"
1062 "e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/"
1063 "pandas-" version ".tar.gz"))
1065 (base32 "1ckpxrvvjj6zxmn68icd9hib8qcpx9b35f6izxnr25br5ilq7r6j"))))
1066 (build-system python-build-system)
1068 `(("python-numpy" ,python-numpy)))
1070 `(("python-pytz" ,python-pytz)
1071 ("python-dateutil" ,python-dateutil-2)))
1073 `(("python-nose" ,python-nose)))
1074 (home-page "http://pandas.pydata.org")
1075 (synopsis "Data structures for data analysis, time series, and statistics")
1077 "Pandas is a Python package providing fast, flexible, and expressive data
1078 structures designed to make working with structured (tabular,
1079 multidimensional, potentially heterogeneous) and time series data both easy
1080 and intuitive. It aims to be the fundamental high-level building block for
1081 doing practical, real world data analysis in Python.")
1082 (license license:bsd-3)
1083 (properties `((python2-variant . ,(delay python2-pandas))))))
1085 (define-public python2-pandas
1086 (let ((base (package-with-python2 (strip-python2-variant python-pandas))))
1089 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1090 ,@(package-native-inputs base))))))
1092 (define-public python-tzlocal
1094 (name "python-tzlocal")
1099 (uri (pypi-uri "tzlocal" version))
1102 "0paj7vlsb0np8b5sp4bv64wxv7qk2piyp7xg29pkhdjwsbls9fnb"))))
1103 (build-system python-build-system)
1104 (inputs `(("python-pytz" ,python-pytz)))
1105 (home-page "https://github.com/regebro/tzlocal")
1107 "Local timezone information for Python")
1109 "Tzlocal returns a tzinfo object with the local timezone information.
1110 This module attempts to fix a glaring hole in pytz, that there is no way to
1111 get the local timezone information, unless you know the zoneinfo name, and
1112 under several distributions that's hard or impossible to figure out.")
1113 (license license:cc0)))
1115 (define-public python2-pysqlite
1117 (name "python2-pysqlite")
1122 (uri (pypi-uri "pysqlite" version))
1125 "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
1126 (build-system python-build-system)
1128 `(("sqlite" ,sqlite)))
1130 `(#:python ,python-2 ; incompatible with Python 3
1131 #:tests? #f)) ; no test target
1132 (home-page "http://github.com/ghaering/pysqlite")
1133 (synopsis "SQLite bindings for Python")
1135 "Pysqlite provides SQLite bindings for Python that comply to the
1136 Database API 2.0T.")
1137 (license license:zlib)))
1140 (define-public python2-mechanize
1142 (name "python2-mechanize")
1147 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1151 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1152 (build-system python-build-system)
1154 `(("python2-setuptools" ,python2-setuptools)))
1156 `(#:python ,python-2 ; apparently incompatible with Python 3
1158 ;; test fails with message
1159 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1160 ;; (python-3.3.2) or
1161 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1163 ;; The source code is from March 2011 and probably not up-to-date
1164 ;; with respect to python unit tests.
1165 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1167 "Stateful programmatic web browsing in Python")
1169 "Mechanize implements stateful programmatic web browsing in Python,
1170 after Andy Lester’s Perl module WWW::Mechanize.")
1171 (license (license:non-copyleft
1173 "See COPYING in the distribution."))))
1176 (define-public python-simplejson
1178 (name "python-simplejson")
1183 (uri (pypi-uri "simplejson" version))
1186 "0zylrnax8b6r0ndgni4w9c599fi6wm9vx5g6k3ddqfj3932kk16m"))))
1187 (build-system python-build-system)
1188 (home-page "http://simplejson.readthedocs.org/en/latest/")
1190 "Json library for Python")
1192 "JSON (JavaScript Object Notation) is a subset of JavaScript
1193 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1196 Simplejson exposes an API familiar to users of the standard library marshal
1197 and pickle modules. It is the externally maintained version of the json
1198 library contained in Python 2.6, but maintains compatibility with Python 2.5
1199 and (currently) has significant performance advantages, even without using
1200 the optional C extension for speedups. Simplejson is also supported on
1202 (license license:x11)))
1204 (define-public python2-simplejson
1205 (package-with-python2 python-simplejson))
1208 (define-public python-pyicu
1210 (name "python-pyicu")
1215 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1219 "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
1220 (build-system python-build-system)
1222 `(("icu4c" ,icu4c)))
1223 (home-page "http://pyicu.osafoundation.org/")
1224 (synopsis "Python extension wrapping the ICU C++ API")
1226 "PyICU is a python extension wrapping the ICU C++ API.")
1227 (license license:x11)
1228 (properties `((python2-variant . ,(delay python2-pyicu))))))
1230 (define-public python2-pyicu
1232 (inherit (package-with-python2
1233 (strip-python2-variant python-pyicu)))
1234 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
1236 (define-public python2-dogtail
1237 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1238 ;; spaces in indentation" with Python 3.
1240 (name "python2-dogtail")
1245 "https://fedorahosted.org/released/dogtail/dogtail-"
1249 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1250 (build-system python-build-system)
1251 (arguments `(#:python ,python-2
1252 #:tests? #f)) ; invalid command "test"
1253 (home-page "https://fedorahosted.org/dogtail/")
1254 (synopsis "GUI test tool and automation framework written in Python")
1256 "Dogtail is a GUI test tool and automation framework written in Python.
1257 It uses Accessibility (a11y) technologies to communicate with desktop
1258 applications. dogtail scripts are written in Python and executed like any
1259 other Python program.")
1260 (license license:gpl2+)))
1262 (define-public python2-empy
1264 (name "python2-empy")
1268 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1272 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1273 (build-system python-build-system)
1275 `(#:python ,python-2
1276 #:phases (alist-replace
1279 (zero? (system* "./test.sh")))
1281 (home-page "http://www.alcyone.com/software/empy/")
1282 (synopsis "Templating system for Python")
1284 "EmPy is a system for embedding Python expressions and statements in
1285 template text; it takes an EmPy source file, processes it, and produces
1286 output. This is accomplished via expansions, which are special signals to the
1287 EmPy system and are set off by a special prefix (by default the at sign, @@).
1288 EmPy can expand arbitrary Python expressions and statements in this way, as
1289 well as a variety of special forms. Textual data not explicitly delimited in
1290 this way is sent unaffected to the output, allowing Python to be used in
1291 effect as a markup language. Also supported are callbacks via hooks,
1292 recording and playback via diversions, and dynamic, chainable filters. The
1293 system is highly configurable via command line options and embedded
1295 (license license:lgpl2.1+)))
1297 (define-public python2-element-tree
1299 (name "python2-element-tree")
1304 "http://effbot.org/media/downloads/elementtree-"
1305 version "-20050316.tar.gz"))
1308 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1309 (build-system python-build-system)
1311 `(#:python ,python-2 ; seems to be part of Python 3
1312 #:tests? #f)) ; no 'test' sub-command
1313 (synopsis "Toolkit for XML processing in Python")
1315 "ElementTree is a Python library supporting lightweight XML processing.")
1316 (home-page "http://effbot.org/zone/element-index.htm")
1317 (license (license:x11-style
1318 "http://docs.python.org/2/license.html"
1319 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
1321 (define-public python2-pybugz
1323 (name "python2-pybugz")
1328 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1332 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1333 (patches (search-patches "pybugz-stty.patch"
1334 "pybugz-encode-error.patch"))))
1335 (build-system python-build-system)
1337 `(#:python ,python-2 ; SyntaxError with Python 3
1338 #:tests? #f)) ; no 'test' sub-command
1339 (inputs `(("element-tree" ,python2-element-tree)))
1340 (synopsis "Python and command-line interface to Bugzilla")
1342 "PyBugz is a Python library and command-line tool to query the Bugzilla
1343 bug tracking system. It is meant as an aid to speed up interaction with the
1345 (home-page "http://www.liquidx.net/pybugz/")
1346 (license license:gpl2)))
1348 (define-public python-enum34
1350 (name "python-enum34")
1355 (uri (pypi-uri "enum34" version))
1358 "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
1359 (build-system python-build-system)
1364 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1366 (home-page "https://pypi.python.org/pypi/enum34")
1367 (synopsis "Backported Python 3.4 Enum")
1369 "Enum34 is the new Python stdlib enum module available in Python 3.4
1370 backported for previous versions of Python from 2.4 to 3.3.")
1371 (license license:bsd-3)))
1373 (define-public python2-enum34
1374 (package-with-python2 python-enum34))
1376 (define-public python-parse-type
1378 (name "python-parse-type")
1383 (uri (string-append "https://pypi.python.org/packages/source/p/"
1384 "parse_type/parse_type-" version ".tar.gz"))
1387 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1388 (build-system python-build-system)
1390 `(("python-setuptools" ,python-setuptools)
1391 ("python-six" ,python-six)
1392 ("python-parse" ,python-parse)))
1393 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1394 (home-page "https://github.com/jenisys/parse_type")
1395 (synopsis "Extended parse module")
1397 "Parse_type extends the python parse module.")
1398 (license license:bsd-3)))
1400 (define-public python-parse
1402 (name "python-parse")
1407 (uri (pypi-uri "parse" version))
1410 "0y31i3mwgv35qn0kzzjn9q8jqfdqmbi6sr6yfvn8rq4lqjm5lhvi"))))
1411 (build-system python-build-system)
1416 (lambda _ (zero? (system* "python" "test_parse.py")))
1418 (home-page "https://github.com/r1chardj0n3s/parse")
1419 (synopsis "Parse strings")
1421 "Parse strings using a specification based on the Python format()
1423 (license license:x11)))
1426 (define-public scons
1432 (uri (string-append "mirror://sourceforge/scons/scons/" version
1433 "/scons-" version ".tar.gz"))
1436 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
1437 (build-system python-build-system)
1439 ;; With Python 3.x, fails to build with a syntax error.
1440 `(#:python ,python-2
1441 #:tests? #f)) ; no 'python setup.py test' command
1442 (home-page "http://scons.org/")
1443 (synopsis "Software construction tool written in Python")
1445 "SCons is a software construction tool. Think of SCons as an improved,
1446 cross-platform substitute for the classic Make utility with integrated
1447 functionality similar to autoconf/automake and compiler caches such as ccache.
1448 In short, SCons is an easier, more reliable and faster way to build
1450 (license license:x11)))
1452 (define-public python-extras
1454 (name "python-extras")
1460 "https://pypi.python.org/packages/source/e/extras/extras-"
1464 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1465 (build-system python-build-system)
1467 `(("python-setuptools" ,python-setuptools)))
1469 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1471 (home-page "https://github.com/testing-cabal/extras")
1472 (synopsis "Useful extensions to the Python standard library")
1474 "Extras is a set of extensions to the Python standard library.")
1475 (license license:expat)))
1477 (define-public python2-extras
1478 (package-with-python2 python-extras))
1480 (define-public python-mimeparse
1482 (name "python-mimeparse")
1488 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1492 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1493 (build-system python-build-system)
1495 `(("python-setuptools" ,python-setuptools)))
1497 '(#:tests? #f)) ; no setup.py test command
1499 "https://github.com/dbtsai/python-mimeparse")
1500 (synopsis "Python library for parsing MIME types")
1502 "Mimeparse provides basic functions for parsing MIME type names and
1503 matching them against a list of media-ranges.")
1504 (license license:expat)))
1506 (define-public python2-mimeparse
1507 (package-with-python2 python-mimeparse))
1509 (define-public python-nose
1511 (name "python-nose")
1516 (uri (pypi-uri "nose" version))
1519 "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
1520 (build-system python-build-system)
1522 `(("python-setuptools" ,python-setuptools)))
1524 '(#:tests? #f)) ; FIXME: test suite fails
1525 (home-page "http://readthedocs.org/docs/nose/")
1526 (synopsis "Python testing library")
1528 "Nose extends the unittest library to make testing easier.")
1529 (license license:lgpl2.0+)))
1531 (define-public python2-nose
1532 (package-with-python2 python-nose))
1534 (define-public python-nose2
1536 (name "python-nose2")
1541 (uri (pypi-uri "nose2" version))
1544 "1x4zjq1zlyrh8b9ba0cmafd3w94pxhid408kibyjd3s6h1lap6s7"))))
1545 (build-system python-build-system)
1546 (arguments `(#:tests? #f)) ; 'module' object has no attribute 'collector'
1548 `(("python-setuptools" ,python-setuptools)))
1550 `(("python-cov-core" ,python-cov-core)
1551 ("python-pytest-cov" ,python-pytest-cov)
1552 ("python-six" ,python-six)))
1553 (home-page "https://github.com/nose-devs/nose2")
1554 (synopsis "Next generation of nicer testing for Python")
1556 "Nose2 is the next generation of nicer testing for Python, based on the
1557 plugins branch of unittest2. Nose2 aims to improve on nose by providing a
1558 better plugin api, being easier for users to configure, and simplifying internal
1559 interfaces and processes.")
1560 (license license:bsd-2)))
1562 (define-public python2-nose2
1563 (package-with-python2 python-nose2))
1565 (define-public python-unittest2
1567 (name "python-unittest2")
1573 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1577 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1578 (build-system python-build-system)
1580 `(("python-setuptools" ,python-setuptools)))
1581 (home-page "http://pypi.python.org/pypi/unittest2")
1582 (synopsis "Python unit testing library")
1584 "Unittest2 is a replacement for the unittest module in the Python
1586 (license license:psfl)))
1588 (define-public python2-unittest2
1589 (package (inherit python-unittest2)
1590 (name "python2-unittest2")
1596 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1600 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1602 `(("python2-setuptools" ,python2-setuptools)))
1604 `(#:python ,python-2
1605 #:tests? #f)))) ; no setup.py test command
1607 (define-public python-py
1614 (uri (pypi-uri "py" version))
1617 "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
1618 (build-system python-build-system)
1620 `(("python-setuptools" ,python-setuptools)))
1621 (home-page "http://pylib.readthedocs.org/")
1622 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1624 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1625 code introspection, and logging.")
1626 (license license:expat)))
1628 (define-public python2-py
1629 (package-with-python2 python-py))
1631 (define-public python-pytest
1633 (name "python-pytest")
1639 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1643 "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm"))
1644 (modules '((guix build utils)))
1646 ;; One of the tests involves the /usr directory, so it fails.
1647 '(substitute* "testing/test_argcomplete.py"
1648 (("def test_remove_dir_prefix\\(self\\):")
1649 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1650 (build-system python-build-system)
1652 `(("python-setuptools" ,python-setuptools)
1653 ("python-py" ,python-py)
1654 ("python-nose" ,python-nose)
1655 ("python-mock" ,python-mock)))
1656 (home-page "http://pytest.org")
1657 (synopsis "Python testing library")
1659 "Pytest is a testing tool that provides auto-discovery of test modules
1660 and functions, detailed info on failing assert statements, modular fixtures,
1661 and many external plugins.")
1662 (license license:expat)))
1664 (define-public python2-pytest
1665 (package-with-python2 python-pytest))
1667 (define-public python-pytest-cov
1669 (name "python-pytest-cov")
1674 (uri (pypi-uri "pytest-cov" version))
1677 "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
1678 (build-system python-build-system)
1680 `(("python-coverage" ,python-coverage)
1681 ("python-pytest" ,python-pytest)))
1682 (home-page "https://github.com/pytest-dev/pytest-cov")
1683 (synopsis "Pytest plugin for measuring coverage")
1685 "Pytest-cov produces coverage reports. It supports centralised testing and
1686 distributed testing in both @code{load} and @code{each} modes. It also
1687 supports coverage of subprocesses.")
1688 (license license:expat)
1689 (properties `((python2-variant . ,(delay python2-pytest-cov))))))
1691 (define-public python2-pytest-cov
1692 (let ((base (package-with-python2 (strip-python2-variant python-pytest-cov))))
1695 (inputs `(("python2-setuptools" ,python2-setuptools)
1696 ,@(package-inputs base))))))
1698 (define-public python-pytest-runner
1700 (name "python-pytest-runner")
1705 (uri (pypi-uri "pytest-runner" version))
1708 "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
1709 (build-system python-build-system)
1712 (modify-phases %standard-phases
1713 ;; The fancy way of setting the version with setuptools_scm does not
1714 ;; seem to work here.
1715 (add-after 'unpack 'set-version
1717 (substitute* "docs/conf.py"
1718 (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
1719 (string-append "version = \"" ,version "\"")))
1722 `(("python-pytest" ,python-pytest)
1723 ("python-setuptools-scm" ,python-setuptools-scm)))
1724 (home-page "https://github.com/pytest-dev/pytest-runner")
1725 (synopsis "Invoke py.test as a distutils command")
1727 "This package provides a @command{pytest-runner} command that
1728 @file{setup.py} files can use to run tests.")
1729 (license license:expat)
1730 (properties `((python2-variant . ,(delay python2-pytest-runner))))))
1732 (define-public python2-pytest-runner
1733 (let ((base (package-with-python2
1734 (strip-python2-variant python-pytest-runner))))
1737 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1738 ,@(package-native-inputs base))))))
1740 (define-public python-pytest-mock
1742 (name "python-pytest-mock")
1747 (uri (pypi-uri "pytest-mock" version ".zip"))
1750 "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"))))
1751 (build-system python-build-system)
1753 `(("unzip" ,unzip)))
1755 `(("python-py" ,python-py)
1756 ("python-pytest" ,python-pytest)))
1757 (home-page "https://github.com/pytest-dev/pytest-mock/")
1758 (synopsis "Thin-wrapper around the mock package for easier use with py.test")
1760 "This plugin installs a @code{mocker} fixture which is a thin-wrapper
1761 around the patching API provided by the @code{mock} package, but with the
1762 benefit of not having to worry about undoing patches at the end of a test.
1763 The mocker fixture has the same API as @code{mock.patch}, supporting the
1765 (properties `((python2-variant . ,(delay python2-pytest-mock))))
1766 (license license:expat)))
1768 (define-public python2-pytest-mock
1769 (let ((base (package-with-python2
1770 (strip-python2-variant python-pytest-mock))))
1771 (package (inherit base)
1773 `(("python2-setuptools" ,python2-setuptools)
1774 ,@(package-native-inputs base)))
1776 `(("python2-mock" ,python2-mock)
1777 ,@(package-inputs base))))))
1779 (define-public python-pytest-xdist
1781 (name "python-pytest-xdist")
1786 (uri (pypi-uri "pytest-xdist" version ".zip"))
1789 "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
1790 (modules '((guix build utils)))
1793 ;; Remove pre-compiled .pyc files from source.
1794 (for-each delete-file-recursively
1795 (find-files "." "__pycache__" #:directories? #t))
1796 (for-each delete-file (find-files "." "\\.pyc$"))
1798 (build-system python-build-system)
1801 ("python-setuptools-scm" ,python-setuptools-scm)))
1803 `(("python-apipkg" ,python-apipkg)
1804 ("python-execnet" ,python-execnet)
1805 ("python-pytest" ,python-pytest)
1806 ("python-py" ,python-py)))
1808 "https://github.com/pytest-dev/pytest-xdist")
1810 "Plugin for py.test with distributed testing and loop-on-failing modes")
1812 "The pytest-xdist plugin extends py.test with some unique test execution
1813 modes: parallelization, running tests in boxed subprocesses, the ability
1814 to run tests repeatedly when failed, and the ability to run tests on multiple
1815 Python interpreters or platforms. It uses rsync to copy the existing
1816 program code to a remote location, executes there, and then syncs the
1818 (license license:expat)
1819 (properties `((python2-variant . ,(delay python2-pytest-xdist))))))
1821 (define-public python2-pytest-xdist
1822 (let ((base (package-with-python2
1823 (strip-python2-variant python-pytest-xdist))))
1826 (native-inputs `(("python2-setuptools" ,python2-setuptools)
1827 ,@(package-native-inputs base))))))
1829 (define-public python-scripttest
1831 (name "python-scripttest")
1837 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1841 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1842 (build-system python-build-system)
1844 `(("python-setuptools" ,python-setuptools)
1845 ("python-pytest" ,python-pytest)))
1846 (home-page "http://pythonpaste.org/scripttest/")
1847 (synopsis "Python library to test command-line scripts")
1848 (description "Scripttest is a Python helper library for testing
1849 interactive command-line applications. With it you can run a script in a
1850 subprocess and see the output as well as any file modifications.")
1851 (license license:expat)))
1853 (define-public python2-scripttest
1854 (package-with-python2 python-scripttest))
1856 (define-public python-testtools
1858 (name "python-testtools")
1864 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1868 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1869 (build-system python-build-system)
1871 `(("python-mimeparse" ,python-mimeparse)))
1873 `(("python-setuptools" ,python-setuptools)
1874 ("python-extras" ,python-extras)))
1875 (home-page "https://github.com/testing-cabal/testtools")
1877 "Extensions to the Python standard library unit testing framework")
1879 "Testtools extends the Python standard library unit testing framework to
1880 provide matchers, more debugging information, and cross-Python
1882 (license license:psfl)))
1884 (define-public python2-testtools
1885 (package-with-python2 python-testtools))
1887 (define-public python-testscenarios
1889 (name "python-testscenarios")
1895 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1899 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1900 (build-system python-build-system)
1902 `(("python-setuptools" ,python-setuptools)
1903 ("python-testtools" ,python-testtools)
1904 ("python-mimeparse" ,python-mimeparse)))
1905 (home-page "https://launchpad.net/testscenarios")
1906 (synopsis "Pyunit extension for dependency injection")
1908 "Testscenarios provides clean dependency injection for Python unittest
1910 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
1912 (define-public python2-testscenarios
1913 (package-with-python2 python-testscenarios))
1915 (define-public python-testresources
1917 (name "python-testresources")
1923 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1927 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1928 (build-system python-build-system)
1930 `(("python-setuptools" ,python-setuptools)))
1931 (home-page "https://launchpad.net/testresources")
1933 "Pyunit extension for managing test resources")
1935 "Testresources is an extension to Python's unittest to allow declarative
1936 use of resources by test cases.")
1937 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
1939 (define-public python2-testresources
1940 (package-with-python2 python-testresources))
1942 (define-public python-subunit
1944 (name "python-subunit")
1950 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1954 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1955 (build-system python-build-system)
1957 `(("python-setuptools" ,python-setuptools)
1958 ("python-testtools" ,python-testtools)
1959 ("python-mimeparse" ,python-mimeparse)
1960 ("python-testscenarios" ,python-testscenarios)))
1961 (home-page "http://launchpad.net/subunit")
1962 (synopsis "Python implementation of the subunit protocol")
1964 "Python-subunit is a Python implementation of the subunit test streaming
1966 (license (list license:bsd-3 license:asl2.0)))) ; at the user's option
1968 (define-public python2-subunit
1969 (package-with-python2 python-subunit))
1971 ;; Recent versions of python-fixtures need a recent version of python-pbr,
1972 ;; which needs a recent version of python-fixtures. To fix this circular
1973 ;; dependency, we keep old versions of python-fixtures and python-pbr to
1974 ;; bootstrap the whole thing:
1975 ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
1976 ;; - python-pbr-0.11 is used to build python-fixtures
1977 ;; - python-fixtures is used to build python-pbr
1978 (define-public python-fixtures-0.3.16
1980 (name "python-fixtures")
1986 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1990 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1991 (build-system python-build-system)
1993 `(("python-setuptools" ,python-setuptools)))
1995 '(#:tests? #f)) ; no setup.py test command
1996 (home-page "https://launchpad.net/python-fixtures")
1997 (synopsis "Python test fixture library")
1999 "Fixtures provides a way to create reusable state, useful when writing
2001 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
2003 (define-public python2-fixtures-0.3.16
2004 (package-with-python2 python-fixtures-0.3.16))
2006 (define-public python-pbr-0.11
2014 "https://pypi.python.org/packages/source/p/pbr/pbr-"
2018 "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
2019 (build-system python-build-system)
2021 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2023 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
2024 ("python-pip" ,python-pip)
2025 ("python-setuptools" ,python-setuptools)))
2026 (home-page "https://launchpad.net/pbr")
2027 (synopsis "Change the default behavior of Python’s setuptools")
2029 "Python Build Reasonableness (PBR) is a library that injects some useful
2030 and sensible default behaviors into your setuptools run.")
2031 (license license:asl2.0)))
2033 (define-public python2-pbr-0.11
2034 (package-with-python2 python-pbr-0.11))
2036 (define-public python-pbr
2044 "https://pypi.python.org/packages/source/p/pbr/pbr-"
2049 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
2050 (build-system python-build-system)
2052 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2054 `(("python-testrepository" ,python-testrepository)
2055 ("git" ,git))) ;; pbr actually uses the "git" binary.
2057 `(("python-fixtures" ,python-fixtures)
2058 ("python-mimeparse" ,python-mimeparse)
2059 ("python-mock" ,python-mock)
2060 ("python-setuptools" ,python-setuptools)
2061 ("python-six" ,python-six)
2062 ("python-sphinx" ,python-sphinx)
2063 ("python-testrepository" ,python-testrepository)
2064 ("python-testresources" ,python-testresources)
2065 ("python-testscenarios" ,python-testscenarios)
2066 ("python-testtools" ,python-testtools)
2067 ("python-virtualenv" ,python-virtualenv)))
2068 (home-page "https://launchpad.net/pbr")
2069 (synopsis "Change the default behavior of Python’s setuptools")
2071 "Python Build Reasonableness (PBR) is a library that injects some useful
2072 and sensible default behaviors into your setuptools run.")
2073 (license license:asl2.0)))
2075 (define-public python2-pbr
2076 (package-with-python2 python-pbr))
2078 (define-public python-fixtures
2080 (name "python-fixtures")
2085 (uri (pypi-uri "fixtures" version))
2088 "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
2089 (build-system python-build-system)
2091 `(("python-six" ,python-six)
2092 ("python-pbr-0.11" ,python-pbr-0.11)))
2094 `(("python-pip" ,python-pip)
2095 ("python-setuptools" ,python-setuptools)
2097 ("python-testtools" ,python-testtools)))
2099 '(#:tests? #f)) ; no setup.py test command
2100 (home-page "https://launchpad.net/python-fixtures")
2101 (synopsis "Python test fixture library")
2103 "Fixtures provides a way to create reusable state, useful when writing
2105 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
2107 (define-public python2-fixtures
2108 (package-with-python2 python-fixtures))
2110 (define-public python-testrepository
2112 (name "python-testrepository")
2118 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
2122 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
2123 (build-system python-build-system)
2125 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
2126 ("python-testtools" ,python-testtools)))
2128 `(("python-setuptools" ,python-setuptools)
2129 ("python-subunit" ,python-subunit)
2130 ("python-mimeparse" ,python-mimeparse)))
2131 (home-page "https://launchpad.net/testrepository")
2132 (synopsis "Database for Python test results")
2133 (description "Testrepository provides a database of test results which can
2134 be used as part of a developer's workflow to check things such as what tests
2135 have failed since the last commit or what tests are currently failing.")
2136 (license (list license:bsd-3 license:asl2.0)))) ; at user's option
2138 (define-public python2-testrepository
2139 (package-with-python2 python-testrepository))
2141 (define-public python-coverage
2143 (name "python-coverage")
2148 (uri (pypi-uri "coverage" version))
2151 "01rbr4br4lsk0lwn8fb96zwd2xr4f0mg1w7iq3j11i8f5ig2nqs1"))))
2152 (build-system python-build-system)
2154 `(("python-setuptools" ,python-setuptools)))
2155 (home-page "http://nedbatchelder.com/code/coverage")
2156 (synopsis "Code coverage measurement for Python")
2158 "Coverage measures code coverage, typically during test execution. It
2159 uses the code analysis tools and tracing hooks provided in the Python standard
2160 library to determine which lines are executable, and which have been
2162 (license license:bsd-3)))
2164 (define-public python2-coverage
2165 (package-with-python2 python-coverage))
2167 (define-public python-cov-core
2169 (name "python-cov-core")
2174 (uri (pypi-uri "cov-core" version))
2177 "0k3np9ymh06yv1ib96sb6wfsxjkqhmik8qfsn119vnhga9ywc52a"))))
2178 (build-system python-build-system)
2180 `(("python-coverage" ,python-coverage)))
2181 (home-page "https://github.com/schlamar/cov-core")
2182 (synopsis "plugin core for use by pytest-cov, nose-cov and nose2-cov")
2184 "This is a library package for use by pytest-cov, nose-cov and nose2-cov.
2185 It is useful for developing coverage plugins for these testing frameworks.")
2186 (license license:expat)
2187 (properties `((python2-variant . ,(delay python2-cov-core))))))
2189 (define-public python2-cov-core
2190 (let ((cov-core (package-with-python2 (strip-python2-variant python-cov-core))))
2191 (package (inherit cov-core)
2193 `(("python2-setuptools" ,python2-setuptools)
2194 ,@(package-native-inputs cov-core))))))
2196 (define-public python-discover
2198 (name "python-discover")
2204 "https://pypi.python.org/packages/source/d/discover/discover-"
2208 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
2209 (build-system python-build-system)
2211 `(("python-setuptools" ,python-setuptools)))
2212 (home-page "http://pypi.python.org/pypi/discover/")
2214 "Python test discovery for unittest")
2216 "Discover provides test discovery for unittest, a feature that has been
2217 backported from Python 2.7 for Python 2.4+.")
2218 (license license:bsd-3)))
2220 (define-public python2-discover
2221 (package-with-python2 python-discover))
2223 (define-public behave
2229 (uri (pypi-uri "behave" version ".tar.bz2"))
2232 "1iypp6z46r19n4xmgx6m1lwmlpfjh8vapq8izigrqlaarvp2y64c"))))
2233 (build-system python-build-system)
2235 `(("python-setuptools" ,python-setuptools)
2236 ("python-six" ,python-six)
2237 ("python-parse" ,python-parse)
2238 ("python-parse-type" ,python-parse-type)))
2239 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
2241 (home-page "http://github.com/behave/behave")
2242 (synopsis "Python behavior-driven development")
2244 "Behave is a tool for behavior-driven development in python.
2245 Behavior-driven development (or BDD) is an agile software development
2246 technique that encourages collaboration between developers, QA and
2247 non-technical or business participants in a software project. Behave uses
2248 tests written in a natural language style, backed up by Python code.")
2249 (license license:x11)))
2251 (define-public python-exif-read
2253 (name "python-exif-read")
2257 (uri (pypi-uri "ExifRead" version))
2260 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2261 (build-system python-build-system)
2263 `(("python-setuptools" ,python-setuptools)))
2264 (arguments `(#:tests? #f)) ; no tests
2265 (home-page "https://github.com/ianare/exif-py")
2266 (synopsis "Python library to extract EXIF data from image files")
2268 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2270 (license license:bsd-3)))
2272 (define-public python2-exif-read
2273 (package-with-python2 python-exif-read))
2275 (define-public python-pyld
2277 (name "python-pyld")
2281 (uri (pypi-uri "PyLD" version))
2284 "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad"))))
2285 (build-system python-build-system)
2287 `(("python-setuptools" ,python-setuptools)))
2288 (arguments `(#:tests? #f)) ; no tests
2289 (home-page "http://github.com/digitalbazaar/pyld")
2290 (synopsis "Python implementation of the JSON-LD specification")
2292 "PyLD is an implementation of the JSON-LD specification.")
2293 (license license:bsd-3)))
2295 (define-public python2-pyld
2296 (package-with-python2 python-pyld))
2298 (define-public python-certifi
2300 (name "python-certifi")
2301 (version "2016.8.31")
2304 (uri (pypi-uri "certifi" version))
2307 "06c9dcyv8ss050gkv5xjivbxhm6qm0s9vzy4r33wqabgv118lw7p"))))
2308 (build-system python-build-system)
2310 `(("python-setuptools" ,python-setuptools)))
2311 (arguments `(#:tests? #f)) ; no tests
2312 (home-page "http://python-requests.org/")
2313 (synopsis "Python CA certificate bundle")
2315 "Certifi is a Python library that contains a CA certificate bundle, which
2316 is used by the Requests library to verify HTTPS requests.")
2317 (license license:asl2.0)))
2319 (define-public python2-certifi
2320 (package-with-python2 python-certifi))
2322 (define-public python-click
2324 (name "python-click")
2329 (uri (pypi-uri "click" version))
2332 "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc"))))
2333 (build-system python-build-system)
2336 (modify-phases %standard-phases
2337 (add-after 'unpack 'fix-paths
2338 (lambda* (#:key inputs #:allow-other-keys)
2339 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
2340 "cross-libc" "libc"))))
2341 (substitute* "click/_unicodefun.py"
2343 (string-append "'" glibc "/bin/locale'"))))
2346 `(("python-setuptools" ,python-setuptools)))
2347 (home-page "http://click.pocoo.org")
2348 (synopsis "Command line library for Python")
2350 "Click is a Python package for creating command line interfaces in a
2351 composable way with as little code as necessary. Its name stands for
2352 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2353 with sensible defaults out of the box.")
2354 (license license:bsd-3)))
2356 (define-public python2-click
2357 (package-with-python2 python-click))
2359 (define-public python-wheel
2361 (name "python-wheel")
2366 (uri (pypi-uri "wheel" version))
2369 "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
2370 (build-system python-build-system)
2372 `(("python-setuptools" ,python-setuptools)
2373 ("python-jsonschema" ,python-jsonschema)
2374 ("python-pytest-cov" ,python-pytest-cov)))
2375 (home-page "https://bitbucket.org/pypa/wheel/")
2376 (synopsis "Format for built Python packages")
2378 "A wheel is a ZIP-format archive with a specially formatted filename and
2379 the @code{.whl} extension. It is designed to contain all the files for a PEP
2380 376 compatible install in a way that is very close to the on-disk format. Many
2381 packages will be properly installed with only the @code{Unpack} step and the
2382 unpacked archive preserves enough information to @code{Spread} (copy data and
2383 scripts to their final locations) at any later time. Wheel files can be
2384 installed with a newer @code{pip} or with wheel's own command line utility.")
2385 (license license:expat)
2386 (properties `((python2-variant . ,(delay python2-wheel))))))
2388 (define-public python2-wheel
2389 (let ((wheel (package-with-python2
2390 (strip-python2-variant python-wheel))))
2391 (package (inherit wheel)
2392 (native-inputs `(("python2-functools32" ,python2-functools32)
2393 ,@(package-native-inputs wheel))))))
2396 (define-public python-requests
2398 (name "python-requests")
2402 (uri (pypi-uri "requests" version))
2405 "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
2406 (build-system python-build-system)
2408 `(("python-setuptools" ,python-setuptools)
2409 ("python-py" ,python-py)
2410 ("python-pytest" ,python-pytest)
2411 ("python-pytest-cov" ,python-pytest-cov)
2412 ("python-wheel" ,python-wheel)))
2413 (home-page "http://python-requests.org/")
2414 (synopsis "Python HTTP library")
2416 "Requests is a Python HTTP client library. It aims to be easier to use
2417 than Python’s urllib2 library.")
2418 (license license:asl2.0)))
2420 ;; Some software requires an older version of Requests, notably Docker
2422 (define-public python-requests-2.7
2423 (package (inherit python-requests)
2427 (uri (pypi-uri "requests" version))
2430 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
2432 (define-public python2-requests
2433 (package-with-python2 python-requests))
2435 (define-public python-vcversioner
2437 (name "python-vcversioner")
2438 (version "2.14.0.0")
2442 (uri (pypi-uri "vcversioner" version))
2445 "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c"))))
2446 (build-system python-build-system)
2448 `(("python-setuptools" ,python-setuptools)))
2449 (synopsis "Python library for version number discovery")
2450 (description "Vcversioner is a Python library that inspects tagging
2451 information in a variety of version control systems in order to discover
2453 (home-page "https://github.com/habnabit/vcversioner")
2454 (license license:isc)))
2456 (define-public python2-vcversioner
2457 (package-with-python2 python-vcversioner))
2459 (define-public python-jsonschema
2461 (name "python-jsonschema")
2467 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
2471 "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
2472 (build-system python-build-system)
2474 `(("python-setuptools" ,python-setuptools)
2475 ("python-vcversioner" ,python-vcversioner)))
2476 (home-page "http://github.com/Julian/jsonschema")
2477 (synopsis "Implementation of JSON Schema for Python")
2479 "Jsonschema is an implementation of JSON Schema for Python.")
2480 (license license:expat)
2481 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2483 (define-public python2-jsonschema
2484 (let ((jsonschema (package-with-python2
2485 (strip-python2-variant python-jsonschema))))
2486 (package (inherit jsonschema)
2488 `(("python2-functools32" ,python2-functools32)
2489 ,@(package-inputs jsonschema))))))
2491 (define-public python-unidecode
2493 (name "python-unidecode")
2497 (uri (pypi-uri "Unidecode" version))
2500 "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
2501 (build-system python-build-system)
2503 `(("python-setuptools" ,python-setuptools)))
2504 (home-page "https://pypi.python.org/pypi/Unidecode")
2505 (synopsis "ASCII transliterations of Unicode text")
2507 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2508 useful when integrating with legacy code that doesn't support Unicode, or for
2509 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2510 machine identifiers from human-readable Unicode strings that should still be
2511 somewhat intelligeble.")
2512 (license license:gpl2+)))
2514 (define-public python2-unidecode
2515 (package-with-python2 python-unidecode))
2517 (define-public python-pyjwt
2519 (name "python-pyjwt")
2524 (uri (pypi-uri "PyJWT" version))
2527 "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
2528 (build-system python-build-system)
2530 `(("python-setuptools" ,python-setuptools)
2531 ("python-pytest-runner" ,python-pytest-runner)))
2533 '(#:tests? #f)) ; test suite doesn't work
2534 (home-page "http://github.com/progrium/pyjwt")
2535 (synopsis "JSON Web Token implementation in Python")
2537 "PyJWT is a JSON Web Token implementation written in Python.")
2538 (license license:expat)))
2540 (define-public python2-pyjwt
2541 (package-with-python2 python-pyjwt))
2543 (define-public python-oauthlib
2545 (name "python-oauthlib")
2549 (uri (pypi-uri "oauthlib" version))
2552 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
2553 (build-system python-build-system)
2555 `(("python-coverage" ,python-coverage)
2556 ("python-nose" ,python-nose)
2557 ("python-mock" ,python-mock)))
2559 `(("python-blinker" ,python-blinker)
2560 ("python-cryptography" ,python-cryptography)
2561 ("python-pyjwt" ,python-pyjwt)))
2562 (home-page "https://github.com/idan/oauthlib")
2563 (synopsis "OAuth implementation for Python")
2565 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2566 OAuth request-signing logic.")
2567 (license license:bsd-3)
2568 (properties `((python2-variant . ,(delay python2-oauthlib))))))
2570 (define-public python2-oauthlib
2571 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
2574 (native-inputs `(("python2-setuptools" ,python2-setuptools)
2575 ("python2-unittest2" ,python2-unittest2)
2576 ,@(package-native-inputs base))))))
2578 (define-public python-itsdangerous
2580 (name "python-itsdangerous")
2586 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2590 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2591 (build-system python-build-system)
2592 (home-page "http://github.com/mitsuhiko/itsdangerous")
2593 (synopsis "Python library for passing data to/from untrusted environments")
2595 "Itsdangerous provides various helpers to pass trusted data to untrusted
2596 environments and back.")
2597 (license license:bsd-3)
2598 (properties `((python2-variant . ,(delay python2-itsdangerous))))))
2600 (define-public python2-itsdangerous
2601 (let ((base (package-with-python2
2602 (strip-python2-variant python-itsdangerous))))
2605 (native-inputs `(("python2-setuptools" ,python2-setuptools)
2606 ,@(package-native-inputs base))))))
2608 (define-public python-pyyaml
2610 (name "python-pyyaml")
2616 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2620 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2621 (build-system python-build-system)
2623 `(("libyaml" ,libyaml)))
2625 `(("python-setuptools" ,python-setuptools)))
2626 (home-page "http://pyyaml.org/wiki/PyYAML")
2627 (synopsis "YAML parser and emitter for Python")
2629 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2630 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2631 API, and sensible error messages. PyYAML supports standard YAML tags and
2632 provides Python-specific tags that allow to represent an arbitrary Python
2634 (license license:expat)))
2636 (define-public python2-pyyaml
2637 (package-with-python2 python-pyyaml))
2639 (define-public python-virtualenv
2641 (name "python-virtualenv")
2646 (uri (pypi-uri "virtualenv" version))
2649 "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d"))))
2650 (build-system python-build-system)
2653 (modify-phases %standard-phases
2656 ;; Disable failing test. See upstream bug report
2657 ;; https://github.com/pypa/virtualenv/issues/957
2658 (substitute* "tests/test_virtualenv.py"
2659 (("skipif.*") "skipif(True, reason=\"Guix\")\n"))
2660 (zero? (system* "py.test")))))))
2662 `(("python-setuptools" ,python-setuptools)
2663 ("python-mock" ,python-mock)
2664 ("python-pytest" ,python-pytest)))
2665 (home-page "https://virtualenv.pypa.io/")
2666 (synopsis "Virtual Python environment builder")
2668 "Virtualenv is a tool to create isolated Python environments.")
2669 (license license:expat)))
2671 (define-public python2-virtualenv
2672 (package-with-python2 python-virtualenv))
2674 (define-public python-markupsafe
2676 (name "python-markupsafe")
2682 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2686 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2687 (build-system python-build-system)
2689 `(("python-setuptools" ,python-setuptools)))
2690 (home-page "http://github.com/mitsuhiko/markupsafe")
2691 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2693 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2695 (license license:bsd-3)))
2697 (define-public python2-markupsafe
2698 (package-with-python2 python-markupsafe))
2700 (define-public python-jinja2
2702 (name "python-jinja2")
2707 (uri (pypi-uri "Jinja2" version))
2710 "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
2711 (build-system python-build-system)
2713 `(("python-setuptools" ,python-setuptools)
2714 ("python-markupsafe" ,python-markupsafe)))
2715 (home-page "http://jinja.pocoo.org/")
2716 (synopsis "Python template engine")
2718 "Jinja2 is a small but fast and easy to use stand-alone template engine
2719 written in pure Python.")
2720 (license license:bsd-3)))
2722 (define-public python2-jinja2
2723 (package-with-python2 python-jinja2))
2725 (define-public python-pystache
2727 (name "python-pystache")
2731 (uri (pypi-uri "pystache" version))
2734 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2735 (build-system python-build-system)
2737 `(("python-setuptools" ,python-setuptools)))
2738 (home-page "http://defunkt.io/pystache/")
2739 (synopsis "Python logic-less template engine")
2741 "Pystache is a Python implementation of the framework agnostic,
2742 logic-free templating system Mustache.")
2743 (license license:expat)))
2745 (define-public python2-pystache
2746 (package-with-python2 python-pystache))
2748 (define-public python-joblib
2750 (name "python-joblib")
2754 (uri (string-append "https://pypi.python.org/packages/source/"
2755 "j/joblib/joblib-" version ".tar.gz"))
2758 "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3"))))
2759 (build-system python-build-system)
2761 `(("python-setuptools" ,python-setuptools)
2762 ("python-nose" ,python-nose)))
2763 (home-page "http://pythonhosted.org/joblib/")
2764 (synopsis "Using Python functions as pipeline jobs")
2766 "Joblib is a set of tools to provide lightweight pipelining in Python.
2767 In particular, joblib offers: transparent disk-caching of the output values
2768 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2769 logging and tracing of the execution.")
2770 (license license:bsd-3)))
2772 (define-public python2-joblib
2773 (package-with-python2 python-joblib))
2775 (define-public python-docutils
2777 (name "python-docutils")
2783 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2787 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2788 (build-system python-build-system)
2790 `(("python-setuptools" ,python-setuptools)))
2792 '(#:tests? #f)) ; no setup.py test command
2793 (home-page "http://docutils.sourceforge.net/")
2794 (synopsis "Python Documentation Utilities")
2796 "Docutils is a modular system for processing documentation into useful
2797 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2799 ;; Most of the source code is public domain, but some source files are
2800 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2801 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
2803 (define-public python2-docutils
2804 (package-with-python2 python-docutils))
2806 (define-public python-pygments
2808 (name "python-pygments")
2813 (uri (pypi-uri "Pygments" version))
2816 "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
2817 (build-system python-build-system)
2819 `(("python-setuptools" ,python-setuptools)))
2820 (home-page "http://pygments.org/")
2821 (synopsis "Syntax highlighting")
2823 "Pygments is a syntax highlighting package written in Python.")
2824 (license license:bsd-2)))
2826 (define-public python2-pygments
2827 (package-with-python2 python-pygments))
2829 (define-public python-sphinx
2831 (name "python-sphinx")
2837 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2841 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2842 (build-system python-build-system)
2844 `(("python-setuptools" ,python-setuptools)
2845 ("python-jinja2" ,python-jinja2)
2846 ("python-docutils" ,python-docutils)
2847 ("python-pygments" ,python-pygments)))
2848 (home-page "http://sphinx-doc.org/")
2849 (synopsis "Python documentation generator")
2850 (description "Sphinx is a tool that makes it easy to create documentation
2851 for Python projects or other documents consisting of multiple reStructuredText
2853 (license license:bsd-3)))
2855 (define-public python2-sphinx
2856 (package-with-python2 python-sphinx))
2858 (define-public python-sphinx-rtd-theme
2860 (name "python-sphinx-rtd-theme")
2865 (uri (string-append "https://pypi.python.org/packages/source/s/"
2866 "sphinx_rtd_theme/sphinx_rtd_theme-"
2870 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2871 (build-system python-build-system)
2873 `(;; With standard flags, the install phase attempts to create a zip'd
2874 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2876 #:configure-flags '("--single-version-externally-managed"
2877 "--record=sphinx-rtd-theme.txt")))
2879 `(("python-setuptools" ,python-setuptools)))
2881 `(("python-docutils" ,python-docutils)
2882 ("python-sphinx" ,python-sphinx)))
2883 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2884 (synopsis "ReadTheDocs.org theme for Sphinx")
2885 (description "A theme for Sphinx used by ReadTheDocs.org.")
2886 (license license:expat)))
2888 (define-public python2-sphinx-rtd-theme
2889 (package-with-python2 python-sphinx-rtd-theme))
2891 (define-public python-feedgenerator
2893 (name "python-feedgenerator")
2898 (uri (pypi-uri "feedgenerator" version))
2901 "0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0"))))
2902 (build-system python-build-system)
2904 `(("python-setuptools" ,python-setuptools)
2905 ("python-pytz" ,python-pytz)
2906 ("python-six" ,python-six)))
2907 (home-page "https://github.com/getpelican/feedgenerator")
2909 "Standalone version of Django's Atom/RSS feed generator")
2911 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2912 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2913 (license license:bsd-3)))
2915 (define-public python2-feedgenerator
2916 (package-with-python2 python-feedgenerator))
2918 (define-public python-blinker
2920 (name "python-blinker")
2925 (uri (pypi-uri "blinker" version))
2928 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
2929 (build-system python-build-system)
2931 `(("python-setuptools" ,python-setuptools)))
2932 ;; No "test" command supplied to setuptools, so unless there's another way
2933 ;; to run tests, we're skipping them!
2934 (arguments '(#:tests? #f))
2935 (home-page "http://pythonhosted.org/blinker/")
2936 (synopsis "Fast, simple object-to-object and broadcast signaling")
2938 "Blinker provides a fast dispatching system that allows any number of
2939 interested parties to subscribe to events, or \"signals\".")
2940 (license license:expat)))
2942 (define-public python2-blinker
2943 (package-with-python2 python-blinker))
2945 (define-public pelican
2952 (uri (pypi-uri "pelican" version))
2955 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
2956 (build-system python-build-system)
2958 `(("python-feedgenerator" ,python-feedgenerator)
2959 ("python-jinja2" ,python-jinja2)
2960 ("python-pygments" ,python-pygments)
2961 ("python-docutils" ,python-docutils)
2962 ("python-pytz" ,python-pytz)
2963 ("python-blinker" ,python-blinker)
2964 ("python-unidecode" ,python-unidecode)
2965 ("python-six" ,python-six)
2966 ("python-dateutil-2" ,python-dateutil-2)))
2967 (home-page "http://getpelican.com/")
2969 `(;; XXX Requires a lot more packages to do unit tests :P
2971 #:phases (modify-phases %standard-phases
2973 'install 'adjust-requires
2974 ;; Since feedgenerator is installed from git, it doesn't
2975 ;; conform to the version requirements.
2977 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2978 ;; version requirement so setuptools doesn't get confused.
2980 (substitute* "setup.py"
2981 (("['\"]feedgenerator.*?['\"]")
2982 "'feedgenerator'")))))))
2983 (synopsis "Python-based static site publishing system")
2985 "Pelican is a tool to generate a static blog from reStructuredText,
2986 Markdown input files, and more. Pelican uses Jinja2 for templating
2987 and is very extensible.")
2988 (license license:agpl3+)))
2990 (define-public python-scikit-learn
2992 (name "python-scikit-learn")
2998 "https://github.com/scikit-learn/scikit-learn/archive/"
3000 (file-name (string-append name "-" version ".tar.gz"))
3003 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
3004 (build-system python-build-system)
3009 ;; some tests require access to "$HOME"
3010 (lambda _ (setenv "HOME" "/tmp"))
3011 ;; Tests can only be run after the library has been installed and not
3012 ;; within the source directory.
3016 (with-directory-excursion "/tmp"
3017 ;; With Python 3 one test of 3334 fails
3018 ;; (sklearn.tests.test_common.test_transformers); see
3019 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
3020 (system* "nosetests" "-v" "sklearn")))
3021 (alist-delete 'check %standard-phases)))))
3023 `(("openblas" ,openblas)
3024 ("python-nose" ,python-nose)))
3026 `(("python-numpy" ,python-numpy)
3027 ("python-scipy" ,python-scipy)))
3028 (home-page "http://scikit-learn.org/")
3029 (synopsis "Machine Learning in Python")
3031 "Scikit-learn provides simple and efficient tools for data
3032 mining and data analysis.")
3033 (license license:bsd-3)
3034 (properties `((python2-variant . ,(delay python2-scikit-learn))))))
3036 (define-public python2-scikit-learn
3037 (package-with-python2 (strip-python2-variant python-scikit-learn)))
3039 (define-public python-scikit-image
3041 (name "python-scikit-image")
3047 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
3050 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
3051 (build-system python-build-system)
3053 `(("python-matplotlib" ,python-matplotlib)
3054 ("python-networkx" ,python-networkx)
3055 ("python-numpy" ,python-numpy)
3056 ("python-scipy" ,python-scipy)
3057 ("python-six" ,python-six)
3058 ("python-pillow" ,python-pillow)))
3060 `(("python-cython" ,python-cython)
3061 ("python-setuptools" ,python-setuptools)))
3062 (home-page "http://scikit-image.org/")
3063 (synopsis "Image processing in Python")
3065 "Scikit-image is a collection of algorithms for image processing.")
3066 (license license:bsd-3)
3067 (properties `((python2-variant . ,(delay python2-scikit-image))))))
3069 (define-public python2-scikit-image
3070 (let ((scikit-image (package-with-python2
3071 (strip-python2-variant python-scikit-image))))
3072 (package (inherit scikit-image)
3074 `(("python2-mock" ,python2-mock)
3075 ,@(package-native-inputs scikit-image)))
3077 `(("python2-pytz" ,python2-pytz)
3078 ,@(package-propagated-inputs scikit-image))))))
3080 (define-public python-redis
3082 (name "python-redis")
3088 "https://pypi.python.org/packages/source/r/redis/redis-"
3091 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
3092 (build-system python-build-system)
3093 ;; Tests require a running Redis server
3094 (arguments '(#:tests? #f))
3096 `(("python-setuptools" ,python-setuptools)
3097 ("python-pytest" ,python-pytest)))
3098 (home-page "https://github.com/andymccurdy/redis-py")
3099 (synopsis "Redis Python client")
3101 "This package provides a Python interface to the Redis key-value store.")
3102 (license license:expat)))
3104 (define-public python2-redis
3105 (package-with-python2 python-redis))
3107 (define-public python-rq
3115 "https://pypi.python.org/packages/source/r/rq/rq-"
3118 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
3119 (build-system python-build-system)
3121 `(("python-click" ,python-click)
3122 ("python-redis" ,python-redis)))
3124 `(("python-setuptools" ,python-setuptools)))
3125 (home-page "http://python-rq.org/")
3126 (synopsis "Simple job queues for Python")
3128 "RQ (Redis Queue) is a simple Python library for queueing jobs and
3129 processing them in the background with workers. It is backed by Redis and it
3130 is designed to have a low barrier to entry.")
3131 (license license:bsd-2)))
3133 (define-public python2-rq
3134 (package-with-python2 python-rq))
3136 (define-public python-cython
3138 (name "python-cython")
3143 (uri (pypi-uri "Cython" version))
3146 "1fg7fmpvfcq9md4ncyqnnylyjy4z3ksdrshzis95g1sh03d8z044"))))
3147 (build-system python-build-system)
3148 ;; we need the full python package and not just the python-wrapper
3149 ;; because we need libpython3.3m.so
3151 `(("python" ,python)))
3154 (modify-phases %standard-phases
3155 (add-before 'check 'set-HOME
3156 ;; some tests require access to "$HOME/.cython"
3157 (lambda _ (setenv "HOME" "/tmp")))
3159 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))))))
3160 (home-page "http://cython.org/")
3161 (synopsis "C extensions for Python")
3162 (description "Cython is an optimising static compiler for both the Python
3163 programming language and the extended Cython programming language. It makes
3164 writing C extensions for Python as easy as Python itself.")
3165 (license license:asl2.0)
3166 (properties `((python2-variant . ,(delay python2-cython))))))
3168 (define-public python2-cython
3169 (package (inherit (package-with-python2
3170 (strip-python2-variant python-cython)))
3171 (name "python2-cython")
3173 `(("python-2" ,python-2))))) ; this is not automatically changed
3175 ;; This version of numpy is missing the documentation and is only used to
3176 ;; build matplotlib which is required to build numpy's documentation.
3177 (define python-numpy-bootstrap
3179 (name "python-numpy-bootstrap")
3184 (uri (string-append "mirror://sourceforge/numpy/NumPy/" version
3185 "/numpy-" version ".tar.gz"))
3188 "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
3189 (build-system python-build-system)
3191 `(("python-nose" ,python-nose)
3192 ("openblas" ,openblas)
3193 ("lapack" ,lapack)))
3195 `(("gfortran" ,gfortran)))
3199 'build 'set-environment-variables
3200 (lambda* (#:key inputs #:allow-other-keys)
3201 (call-with-output-file "site.cfg"
3205 libraries = openblas
3206 library_dirs = ~a/lib
3207 include_dirs = ~a/include
3210 lapack_libs = lapack
3211 library_dirs = ~a/lib
3212 include_dirs = ~a/include
3214 (assoc-ref inputs "openblas")
3215 (assoc-ref inputs "openblas")
3216 (assoc-ref inputs "lapack")
3217 (assoc-ref inputs "lapack"))))
3218 ;; Use "gcc" executable, not "cc".
3219 (substitute* "numpy/distutils/system_info.py"
3220 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
3221 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
3223 ;; Tests can only be run after the library has been installed and not
3224 ;; within the source directory.
3228 (with-directory-excursion "/tmp"
3229 (zero? (system* "python" "-c"
3230 "import numpy; numpy.test(verbose=2)"))))
3233 %standard-phases)))))
3234 (home-page "http://www.numpy.org/")
3235 (synopsis "Fundamental package for scientific computing with Python")
3236 (description "NumPy is the fundamental package for scientific computing
3237 with Python. It contains among other things: a powerful N-dimensional array
3238 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3239 and Fortran code, useful linear algebra, Fourier transform, and random number
3241 (license license:bsd-3)))
3243 (define python2-numpy-bootstrap
3244 (package-with-python2 python-numpy-bootstrap))
3246 (define-public python2-fastlmm
3248 (name "python2-fastlmm")
3253 (uri (pypi-uri "fastlmm" version ".zip"))
3256 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3257 (build-system python-build-system)
3259 `(#:python ,python-2)) ; only Python 2.7 is supported
3261 `(("python2-numpy" ,python2-numpy)
3262 ("python2-scipy" ,python2-scipy)
3263 ("python2-matplotlib" ,python2-matplotlib)
3264 ("python2-pandas" ,python2-pandas)
3265 ("python2-scikit-learn" ,python2-scikit-learn)
3266 ("python2-cython" ,python2-cython)
3267 ("python2-pysnptools" ,python2-pysnptools)))
3270 ("python2-mock" ,python2-mock)
3271 ("python2-setuptools" ,python2-setuptools)))
3272 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3273 (synopsis "Perform genome-wide association studies on large data sets")
3275 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3276 Models, is a program for performing both single-SNP and SNP-set genome-wide
3277 association studies (GWAS) on extremely large data sets.")
3278 (license license:asl2.0)))
3280 (define-public python-numpy
3281 (package (inherit python-numpy-bootstrap)
3282 (name "python-numpy")
3283 (outputs '("out" "doc"))
3286 ("python-setuptools" ,python-setuptools)
3287 ("python-matplotlib" ,python-matplotlib)
3288 ("python-sphinx" ,python-sphinx)
3289 ("python-pyparsing" ,python-pyparsing)
3290 ("python-numpydoc" ,python-numpydoc)
3291 ,@(package-inputs python-numpy-bootstrap)))
3293 `(("pkg-config" ,pkg-config)
3294 ("texlive" ,texlive)
3295 ("texinfo" ,texinfo)
3297 ,@(package-native-inputs python-numpy-bootstrap)))
3299 `(,@(substitute-keyword-arguments
3300 (package-arguments python-numpy-bootstrap)
3303 'install 'install-doc
3304 (lambda* (#:key outputs #:allow-other-keys)
3305 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3307 data "/doc/" ,name "-"
3308 ,(package-version python-numpy-bootstrap)))
3309 (info (string-append data "/info"))
3310 (html (string-append doc "/html"))
3311 (pyver ,(string-append "PYVER=")))
3312 (with-directory-excursion "doc"
3314 (system* "make" "html" pyver)
3315 (system* "make" "latex" "PAPER=a4" pyver)
3316 (system* "make" "-C" "build/latex"
3317 "all-pdf" "PAPER=a4" pyver)
3318 ;; FIXME: Generation of the info file fails.
3319 ;; (system* "make" "info" pyver)
3321 ;; (copy-file "build/texinfo/numpy.info"
3322 ;; (string-append info "/numpy.info"))
3323 (for-each (lambda (file)
3324 (copy-file (string-append "build/latex" file)
3325 (string-append doc file)))
3326 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3327 (with-directory-excursion "build/html"
3328 (for-each (lambda (file)
3329 (let* ((dir (dirname file))
3330 (tgt-dir (string-append html "/" dir)))
3331 (unless (equal? "." dir)
3333 (install-file file html)))
3334 (find-files "." ".*"))))))
3337 (define-public python2-numpy
3338 (package-with-python2 python-numpy))
3340 (define-public python-pyparsing
3342 (name "python-pyparsing")
3347 (uri (string-append "mirror://sourceforge/pyparsing/pyparsing"
3348 "/pyparsing-" version
3349 "/pyparsing-" version ".tar.gz"))
3352 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
3353 (build-system python-build-system)
3354 (outputs '("out" "doc"))
3356 `(#:tests? #f ; no test target
3357 #:modules ((guix build python-build-system)
3361 'install 'install-doc
3362 (lambda* (#:key outputs #:allow-other-keys)
3363 (let* ((doc (string-append (assoc-ref outputs "doc")
3364 "/share/doc/" ,name "-" ,version))
3365 (html-doc (string-append doc "/html"))
3366 (examples (string-append doc "/examples")))
3372 (install-file file tgt))
3373 (find-files dir ".*")))
3374 (list "docs" "htmldoc" "examples")
3375 (list doc html-doc examples))))
3377 (home-page "http://pyparsing.wikispaces.com")
3378 (synopsis "Python parsing class library")
3380 "The pyparsing module is an alternative approach to creating and
3381 executing simple grammars, vs. the traditional lex/yacc approach, or the use
3382 of regular expressions. The pyparsing module provides a library of classes
3383 that client code uses to construct the grammar directly in Python code.")
3384 (license license:expat)))
3386 (define-public python2-pyparsing
3387 (package-with-python2 python-pyparsing))
3389 (define-public python-numpydoc
3391 (name "python-numpydoc")
3397 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3401 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3402 (modules '((guix build utils)))
3405 ;; Drop a test requiring matplotlib, which we cannot add as an
3406 ;; input since it would create a circular dependency: Extend the
3407 ;; test for Python 3, where it is already dropped, to Python 2.
3408 (substitute* "numpydoc/tests/test_plot_directive.py"
3410 (build-system python-build-system)
3412 `(("python-setuptools" ,python-setuptools)
3413 ("python-docutils" ,python-docutils)
3414 ("python-sphinx" ,python-sphinx)
3415 ("python-nose" ,python-nose)))
3416 (home-page "https://pypi.python.org/pypi/numpydoc")
3418 "Numpy's Sphinx extensions")
3420 "Sphinx extension to support docstrings in Numpy format.")
3421 (license license:bsd-2)))
3423 (define-public python2-numpydoc
3424 (package-with-python2 python-numpydoc))
3426 (define-public python-numexpr
3428 (name "python-numexpr")
3433 (uri (pypi-uri "numexpr" version))
3436 "0i6iagl2hhbr8q4qzbbjd859v5806vqylq87fq7pi914ps6d6cag"))))
3437 (build-system python-build-system)
3438 (arguments `(#:tests? #f)) ; no tests included
3440 `(("python-numpy" ,python-numpy)))
3441 (home-page "https://github.com/pydata/numexpr")
3442 (synopsis "Fast numerical expression evaluator for NumPy")
3444 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3445 expressions that operate on arrays are accelerated and use less memory than
3446 doing the same calculation in Python. In addition, its multi-threaded
3447 capabilities can make use of all your cores, which may accelerate
3448 computations, most specially if they are not memory-bounded (e.g. those using
3449 transcendental functions).")
3450 (license license:expat)
3451 (properties `((python2-variant . ,(delay python2-numexpr))))))
3453 (define-public python2-numexpr
3454 (package-with-python2 (strip-python2-variant python-numexpr)))
3456 (define-public python-matplotlib
3458 (name "python-matplotlib")
3463 (uri (string-append "mirror://sourceforge/matplotlib/matplotlib"
3464 "/matplotlib-" version
3465 "/matplotlib-" version ".tar.gz"))
3468 "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
3469 (patches (search-patches "matplotlib-setupext-tk.patch"))))
3470 (build-system python-build-system)
3471 (outputs '("out" "doc"))
3472 (propagated-inputs ; the following packages are all needed at run time
3473 `(("python-pyparsing" ,python-pyparsing)
3474 ("python-pygobject" ,python-pygobject)
3475 ("gobject-introspection" ,gobject-introspection)
3476 ("python-tkinter" ,python "tk")
3477 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3478 ;; from 'gtk+') provides the required 'typelib' files used by
3479 ;; 'gobject-introspection'. The location of these files is set with the
3480 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3481 ;; is done automatically by a 'native-search-path' procedure. However,
3482 ;; at run-time the user must set this variable as follows:
3484 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
3486 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3487 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3488 ;; object. For this reason we need to import both libraries.
3489 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3490 ("python-pycairo" ,python-pycairo)
3491 ("python-cairocffi" ,python-cairocffi)))
3493 `(("python-setuptools" ,python-setuptools)
3494 ("python-dateutil" ,python-dateutil-2)
3495 ("python-six" ,python-six)
3496 ("python-pytz" ,python-pytz)
3497 ("python-numpy" ,python-numpy-bootstrap)
3498 ("python-sphinx" ,python-sphinx)
3499 ("python-numpydoc" ,python-numpydoc)
3500 ("python-nose" ,python-nose)
3501 ("python-mock" ,python-mock)
3503 ("imagemagick" ,imagemagick)
3504 ("freetype" ,freetype)
3507 ("python-pillow" ,python-pillow)
3508 ;; FIXME: Add backends when available.
3509 ;("python-wxpython" ,python-wxpython)
3510 ;("python-pyqt" ,python-pyqt)
3514 `(("pkg-config" ,pkg-config)
3515 ("texlive" ,texlive)
3516 ("texinfo" ,texinfo)))
3520 'build 'configure-environment
3521 (lambda* (#:key outputs inputs #:allow-other-keys)
3522 (let ((cairo (assoc-ref inputs "cairo"))
3523 (gtk+ (assoc-ref inputs "gtk+")))
3524 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3526 (setenv "LD_LIBRARY_PATH"
3527 (string-append cairo "/lib:" gtk+ "/lib"))
3528 (setenv "HOME" (getcwd))
3529 (call-with-output-file "setup.cfg"
3531 (format port "[directories]~%
3532 basedirlist = ~a,~a~%
3535 (assoc-ref inputs "tcl")
3536 (assoc-ref inputs "tk"))))))
3538 'install 'install-doc
3539 (lambda* (#:key outputs #:allow-other-keys)
3540 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3541 (doc (string-append data "/doc/" ,name "-" ,version))
3542 (info (string-append data "/info"))
3543 (html (string-append doc "/html")))
3544 (with-directory-excursion "doc"
3545 ;; Produce pdf in 'A4' format.
3546 (substitute* (find-files "." "conf\\.py")
3547 (("latex_paper_size = 'letter'")
3548 "latex_paper_size = 'a4'"))
3551 ;; The doc recommends to run the 'html' target twice.
3552 (system* "python" "make.py" "html")
3553 (system* "python" "make.py" "html")
3554 (copy-recursively "build/html" html)
3555 (system* "python" "make.py" "latex")
3556 (system* "python" "make.py" "texinfo")
3557 (symlink (string-append html "/_images")
3558 (string-append info "/matplotlib-figures"))
3559 (with-directory-excursion "build/texinfo"
3560 (substitute* "matplotlib.texi"
3561 (("@image\\{([^,]*)" all file)
3562 (string-append "@image{matplotlib-figures/" file)))
3563 (symlink (string-append html "/_images")
3564 "./matplotlib-figures")
3565 (system* "makeinfo" "--no-split"
3566 "-o" "matplotlib.info" "matplotlib.texi"))
3567 (copy-file "build/texinfo/matplotlib.info"
3568 (string-append info "/matplotlib.info"))
3569 (copy-file "build/latex/Matplotlib.pdf"
3570 (string-append doc "/Matplotlib.pdf")))))
3571 %standard-phases))))
3572 (home-page "http://matplotlib.org")
3573 (synopsis "2D plotting library for Python")
3575 "Matplotlib is a Python 2D plotting library which produces publication
3576 quality figures in a variety of hardcopy formats and interactive environments
3577 across platforms. Matplotlib can be used in Python scripts, the python and
3578 ipython shell, web application servers, and six graphical user interface
3580 (license license:psfl)
3581 (properties `((python2-variant . ,(delay python2-matplotlib))))))
3583 (define-public python2-matplotlib
3584 (let ((matplotlib (package-with-python2
3585 (strip-python2-variant python-matplotlib))))
3586 (package (inherit matplotlib)
3587 ;; Make sure to use special packages for Python 2 instead
3588 ;; of those automatically rewritten by package-with-python2.
3590 `(("python2-pycairo" ,python2-pycairo)
3591 ("python2-pygobject-2" ,python2-pygobject-2)
3592 ("python2-tkinter" ,python-2 "tk")
3593 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3594 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
3596 (define-public python2-pysnptools
3598 (name "python2-pysnptools")
3603 (uri (pypi-uri "pysnptools" version ".zip"))
3606 "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2"))))
3607 (build-system python-build-system)
3609 `(#:python ,python-2)) ; only Python 2.7 is supported
3611 `(("python2-numpy" ,python2-numpy)
3612 ("python2-scipy" ,python2-scipy)
3613 ("python2-pytz" ,python2-pytz)
3614 ("python2-cython" ,python2-cython)))
3616 `(("python2-dateutil-2" ,python2-dateutil-2)
3617 ("python2-pandas" ,python2-pandas)
3618 ("python2-six" ,python2-six)))
3621 ("python2-setuptools" ,python2-setuptools)))
3622 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3623 (synopsis "Library for reading and manipulating genetic data")
3625 "PySnpTools is a library for reading and manipulating genetic data. It
3626 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3627 those files. It can also efficiently manipulate ranges of integers using set
3628 operators such as union, intersection, and difference.")
3629 (license license:asl2.0)))
3631 (define-public python-rpy2
3633 (name "python-rpy2")
3638 (uri (pypi-uri "rpy2" version))
3641 "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
3642 (build-system python-build-system)
3644 `(("python-six" ,python-six)
3645 ("readline" ,readline)
3650 `(("python-setuptools" ,python-setuptools)
3652 (home-page "http://rpy.sourceforge.net/")
3653 (synopsis "Python interface to the R language")
3654 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3655 low-level interface to R from Python, a proposed high-level interface,
3656 including wrappers to graphical libraries, as well as R-like structures and
3658 (license license:gpl3+)))
3660 (define-public python2-rpy2
3661 (let ((rpy2 (package-with-python2 python-rpy2)))
3662 (package (inherit rpy2)
3664 `(("python2-singledispatch" ,python2-singledispatch)
3665 ,@(package-native-inputs rpy2))))))
3667 (define-public python-scipy
3669 (name "python-scipy")
3674 ; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz
3675 (uri (string-append "mirror://sourceforge/scipy/scipy/" version
3676 "/scipy-" version ".tar.xz"))
3679 "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
3680 (build-system python-build-system)
3682 `(("python-numpy" ,python-numpy)
3683 ("python-matplotlib" ,python-matplotlib)
3684 ("python-pyparsing" ,python-pyparsing)))
3686 `(("lapack" ,lapack)
3687 ("openblas" ,openblas)))
3689 `(("python-nose" ,python-nose)
3690 ("python-sphinx" ,python-sphinx)
3691 ("python-numpydoc" ,python-numpydoc)
3692 ("gfortran" ,gfortran)
3693 ("texlive" ,texlive)
3695 (outputs '("out" "doc"))
3699 'build 'configure-openblas
3700 (lambda* (#:key inputs #:allow-other-keys)
3701 (call-with-output-file "site.cfg"
3705 libraries = openblas
3706 library_dirs = ~a/lib
3707 include_dirs = ~a/include
3709 library_dirs = ~a/lib
3710 atlas_libs = openblas
3712 (assoc-ref inputs "openblas")
3713 (assoc-ref inputs "openblas")
3714 (assoc-ref inputs "openblas"))))
3717 'install 'install-doc
3718 (lambda* (#:key outputs #:allow-other-keys)
3719 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3720 (doc (string-append data "/doc/" ,name "-" ,version))
3721 (html (string-append doc "/html"))
3722 (pyver ,(string-append "PYVER=")))
3723 (with-directory-excursion "doc"
3724 ;; Fix generation of images for mathematical expressions.
3725 (substitute* (find-files "source" "conf\\.py")
3726 (("pngmath_use_preview = True")
3727 "pngmath_use_preview = False"))
3729 (system* "make" "html" pyver)
3730 (system* "make" "latex" "PAPER=a4" pyver)
3731 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3732 (copy-file "build/latex/scipy-ref.pdf"
3733 (string-append doc "/scipy-ref.pdf"))
3734 (with-directory-excursion "build/html"
3735 (for-each (lambda (file)
3736 (let* ((dir (dirname file))
3737 (tgt-dir (string-append html "/" dir)))
3738 (install-file file html)))
3739 (find-files "." ".*"))))))
3740 ;; Tests can only be run after the library has been installed and not
3741 ;; within the source directory.
3745 (with-directory-excursion "/tmp"
3746 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
3752 (substitute* "scipy/integrate/tests/test_quadpack.py"
3753 (("libm.so") "libm.so.6"))
3755 %standard-phases)))))))
3756 (home-page "http://www.scipy.org/")
3757 (synopsis "The Scipy library provides efficient numerical routines")
3758 (description "The SciPy library is one of the core packages that make up
3759 the SciPy stack. It provides many user-friendly and efficient numerical
3760 routines such as routines for numerical integration and optimization.")
3761 (license license:bsd-3)))
3763 (define-public python2-scipy
3764 (package-with-python2 python-scipy))
3766 (define-public python-socksipy-branch
3768 (name "python-socksipy-branch")
3773 (uri (pypi-uri "SocksiPy-branch" version))
3776 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
3777 (build-system python-build-system)
3779 `(#:tests? #f)) ; There are no tests
3780 (home-page "https://code.google.com/archive/p/socksipy-branch/")
3781 (synopsis "Python SOCKS module")
3783 "SocksiPy - A Python SOCKS client module. It provides a
3784 socket-like interface that supports connections to any TCP
3785 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
3786 The original version was developed by Dan Haim, this is a
3787 branch created by Mario Vilas to address some open issues,
3788 as the original project seems to have been abandoned circa 2007.")
3789 (license license:bsd-3)))
3791 (define-public python2-socksipy-branch
3792 (package-with-python2 python-socksipy-branch))
3794 (define-public python-sqlalchemy
3796 (name "python-sqlalchemy")
3801 (uri (string-append "https://pypi.python.org/packages/source/S/"
3802 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3805 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
3806 (build-system python-build-system)
3808 `(("python-cython" ,python-cython) ;for c extensions
3809 ("python-pytest" ,python-pytest)
3810 ("python-mock" ,python-mock))) ;for tests
3812 `(#:phases (alist-replace
3814 (lambda _ (zero? (system* "py.test")))
3816 (home-page "http://www.sqlalchemy.org")
3817 (synopsis "Database abstraction library")
3819 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3820 gives application developers the full power and flexibility of SQL. It
3821 provides a full suite of well known enterprise-level persistence patterns,
3822 designed for efficient and high-performing database access, adapted into a
3823 simple and Pythonic domain language.")
3824 (license license:x11)))
3826 (define-public python2-sqlalchemy
3827 (package-with-python2 python-sqlalchemy))
3829 (define-public python-sqlalchemy-utils
3831 (name "python-sqlalchemy-utils")
3836 (uri (pypi-uri "SQLAlchemy-Utils" version))
3839 "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98"))))
3840 (build-system python-build-system)
3842 `(("python-six" ,python-six)
3843 ("python-sqlalchemy" ,python-sqlalchemy)))
3844 (home-page "https://github.com/kvesteri/sqlalchemy-utils")
3845 (synopsis "Various utility functions for SQLAlchemy")
3847 "SQLAlchemy-utils provides various utility functions and custom data types
3848 for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.")
3849 (properties `((python2-variant . ,(delay python2-sqlalchemy-utils))))
3850 (license license:bsd-3)))
3852 (define-public python2-sqlalchemy-utils
3853 (let ((base (package-with-python2
3854 (strip-python2-variant python-sqlalchemy-utils))))
3855 (package (inherit base)
3857 `(("python2-setuptools" ,python2-setuptools)
3858 ,@(package-native-inputs base))))))
3860 (define-public python-alembic
3862 (name "python-alembic")
3867 (uri (pypi-uri "alembic" version))
3870 "0ias6fdzwr2s220fnjspkdgm9510bd0cnap0hx5y4zy4srba9f3z"))))
3871 (build-system python-build-system)
3873 `(("python-mock" ,python-mock)
3874 ("python-pytest-cov" ,python-pytest-cov)))
3876 `(("python-sqlalchemy" ,python-sqlalchemy)
3877 ("python-mako" ,python-mako)
3878 ("python-editor" ,python-editor)))
3879 (home-page "http://bitbucket.org/zzzeek/alembic")
3881 "Database migration tool for SQLAlchemy")
3883 "Alembic is a lightweight database migration tool for usage with the
3884 SQLAlchemy Database Toolkit for Python.")
3885 (license license:expat)
3886 (properties `((python2-variant . ,(delay python2-alembic))))))
3888 (define-public python2-alembic
3889 (let ((alembic (package-with-python2
3890 (strip-python2-variant python-alembic))))
3893 (native-inputs `(("python2-setuptools" ,python2-setuptools)
3894 ,@(package-native-inputs alembic))))))
3896 (define-public python-distutils-extra
3898 (name "python-distutils-extra")
3903 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3904 version "/+download/python-distutils-extra-"
3908 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3909 (build-system python-build-system)
3911 `(("python-setuptools" ,python-setuptools)))
3912 (home-page "https://launchpad.net/python-distutils-extra/")
3913 (synopsis "Enhancements to Python's distutils")
3915 "The python-distutils-extra module enables you to easily integrate
3916 gettext support, themed icons, and scrollkeeper-based documentation into
3917 Python's distutils.")
3918 (license license:gpl2)))
3920 (define-public python2-distutils-extra
3921 (package-with-python2 python-distutils-extra))
3923 (define-public python2-elib.intl
3925 (name "python2-elib.intl")
3929 ;; This project doesn't tag releases or publish tarballs, so we take
3930 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3933 (url "https://github.com/dieterv/elib.intl.git")
3934 (commit "d09997cfef")))
3937 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3938 (build-system python-build-system)
3940 `(("python2-setuptools" ,python2-setuptools)))
3942 ;; incompatible with Python 3 (exception syntax)
3943 `(#:python ,python-2
3945 ;; With standard flags, the install phase attempts to create a zip'd
3946 ;; egg file, and fails with an error: 'ZIP does not support timestamps
3948 #:configure-flags '("--single-version-externally-managed"
3949 "--record=elib.txt")))
3950 (home-page "https://github.com/dieterv/elib.intl")
3951 (synopsis "Enhanced internationalization for Python")
3953 "The elib.intl module provides enhanced internationalization (I18N)
3954 services for your Python modules and applications.")
3955 (license license:lgpl3+)))
3957 (define-public python-pillow
3959 (name "python-pillow")
3964 (uri (pypi-uri "Pillow" version))
3967 "1w9x3dfrg8b5lqhpjl0fczfyf9842wbqwgxbjjq4vfpxv5jwm49l"))))
3968 (build-system python-build-system)
3970 `(("python-setuptools" ,python-setuptools)
3971 ("python-nose" ,python-nose)))
3973 `(("freetype" ,freetype)
3976 ("libjpeg" ,libjpeg)
3977 ("openjpeg" ,openjpeg)
3978 ("libtiff" ,libtiff)
3979 ("libwebp" ,libwebp)))
3981 `(;; Used at runtime for pkg_resources
3982 ("python-setuptools" ,python-setuptools)))
3984 `(#:phases (modify-phases %standard-phases
3986 'install 'disable-egg-compression
3988 ;; Leave the .egg uncompressed since compressing it would
3989 ;; prevent the GC from identifying run-time dependencies.
3990 ;; See <http://bugs.gnu.org/20765>.
3991 (let ((port (open-file "setup.cfg" "a")))
3992 (display "\n[easy_install]\nzip_ok = 0\n"
3997 'install 'check-installed
4000 (setenv "HOME" (getcwd))
4001 (and (zero? (system* "python" "selftest.py"
4003 (zero? (system* "python" "test-installed.py"))))))
4005 (home-page "https://pypi.python.org/pypi/Pillow")
4006 (synopsis "Fork of the Python Imaging Library")
4008 "The Python Imaging Library adds image processing capabilities to your
4009 Python interpreter. This library provides extensive file format support, an
4010 efficient internal representation, and fairly powerful image processing
4011 capabilities. The core image library is designed for fast access to data
4012 stored in a few basic pixel formats. It should provide a solid foundation for
4013 a general image processing tool.")
4014 (license (license:x11-style
4015 "http://www.pythonware.com/products/pil/license.htm"
4016 "The PIL Software License"))))
4018 (define-public python2-pillow
4019 (package-with-python2 python-pillow))
4021 (define-public python-pycparser
4023 (name "python-pycparser")
4028 (uri (pypi-uri "pycparser" version))
4031 "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
4032 (outputs '("out" "doc"))
4033 (build-system python-build-system)
4035 `(("pkg-config" ,pkg-config)
4036 ("python-setuptools" ,python-setuptools)))
4042 (with-directory-excursion "tests"
4043 (zero? (system* "python" "all_tests.py"))))
4045 'install 'install-doc
4046 (lambda* (#:key outputs #:allow-other-keys)
4047 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4048 (doc (string-append data "/doc/" ,name "-" ,version))
4049 (examples (string-append doc "/examples")))
4051 (for-each (lambda (file)
4052 (copy-file (string-append "." file)
4053 (string-append doc file)))
4054 '("/README.rst" "/CHANGES" "/LICENSE"))
4055 (copy-recursively "examples" examples)))
4056 %standard-phases))))
4057 (home-page "https://github.com/eliben/pycparser")
4058 (synopsis "C parser in Python")
4060 "Pycparser is a complete parser of the C language, written in pure Python
4061 using the PLY parsing library. It parses C code into an AST and can serve as
4062 a front-end for C compilers or analysis tools.")
4063 (license license:bsd-3)))
4065 (define-public python2-pycparser
4066 (package-with-python2 python-pycparser))
4068 (define-public python-cffi
4070 (name "python-cffi")
4075 (uri (pypi-uri "cffi" version))
4077 (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
4078 (build-system python-build-system)
4079 (outputs '("out" "doc"))
4081 `(("libffi" ,libffi)))
4082 (propagated-inputs ; required at run-time
4083 `(("python-pycparser" ,python-pycparser)))
4085 `(("pkg-config" ,pkg-config)
4086 ("python-sphinx" ,python-sphinx)
4087 ("python-pytest" ,python-pytest)
4088 ("python-setuptools" ,python-setuptools)))
4092 'install 'install-doc
4093 (lambda* (#:key outputs #:allow-other-keys)
4094 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4095 (doc (string-append data "/doc/" ,name "-" ,version))
4096 (html (string-append doc "/html")))
4097 (with-directory-excursion "doc"
4098 (system* "make" "html")
4100 (copy-recursively "build/html" html))
4101 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
4103 (home-page "http://cffi.readthedocs.org")
4104 (synopsis "Foreign function interface for Python")
4106 "Foreign Function Interface for Python calling C code.")
4107 (license license:expat)))
4109 (define-public python2-cffi
4110 (package-with-python2 python-cffi))
4112 (define-public python-xcffib
4114 (name "python-xcffib")
4119 (uri (string-append "https://pypi.python.org/packages/source/x/"
4120 "xcffib/xcffib-" version ".tar.gz"))
4123 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
4124 (build-system python-build-system)
4126 `(("libxcb" ,libxcb)
4127 ("python-six" ,python-six)))
4129 `(("python-setuptools" ,python-setuptools)))
4131 `(("python-cffi" ,python-cffi))) ; used at run time
4135 'install 'install-doc
4136 (lambda* (#:key outputs #:allow-other-keys)
4137 (let ((doc (string-append (assoc-ref outputs "out") "/share"
4138 "/doc/" ,name "-" ,version)))
4140 (copy-file "README.md"
4141 (string-append doc "/README.md"))))
4143 (home-page "https://github.com/tych0/xcffib")
4144 (synopsis "XCB Python bindings")
4146 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
4147 support for Python 3 and PyPy. It is based on cffi.")
4148 (license license:expat)))
4150 (define-public python2-xcffib
4151 (package-with-python2 python-xcffib))
4153 (define-public python-cairocffi
4155 (name "python-cairocffi")
4160 ;; The archive on pypi is missing the 'utils' directory!
4161 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
4163 (file-name (string-append name "-" version ".tar.gz"))
4166 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
4167 (build-system python-build-system)
4168 (outputs '("out" "doc"))
4170 `(("gdk-pixbuf" ,gdk-pixbuf)
4173 `(("pkg-config" ,pkg-config)
4174 ("python-sphinx" ,python-sphinx)
4175 ("python-docutils" ,python-docutils)
4176 ("python-setuptools" ,python-setuptools)))
4178 `(("python-xcffib" ,python-xcffib))) ; used at run time
4182 'install 'install-doc
4183 (lambda* (#:key inputs outputs #:allow-other-keys)
4184 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4185 (doc (string-append data "/doc/" ,name "-" ,version))
4186 (html (string-append doc "/html")))
4187 (setenv "LD_LIBRARY_PATH"
4188 (string-append (assoc-ref inputs "cairo") "/lib" ":"
4189 (assoc-ref inputs "gdk-pixbuf") "/lib"))
4190 (setenv "LANG" "en_US.UTF-8")
4192 (for-each (lambda (file)
4193 (copy-file (string-append "." file)
4194 (string-append doc file)))
4195 '("/README.rst" "/CHANGES" "/LICENSE"))
4196 (system* "python" "setup.py" "build_sphinx")
4197 (copy-recursively "docs/_build/html" html)))
4199 (home-page "https://github.com/SimonSapin/cairocffi")
4200 (synopsis "Python bindings and object-oriented API for Cairo")
4202 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
4203 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
4204 graphics library with support for multiple backends including image buffers,
4205 PNG, PostScript, PDF, and SVG file output.")
4206 (license license:bsd-3)))
4208 (define-public python2-cairocffi
4209 (package-with-python2 python-cairocffi))
4211 (define-public python-decorator
4213 (name "python-decorator")
4218 (uri (pypi-uri "decorator" version))
4220 (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
4221 (build-system python-build-system)
4222 (arguments '(#:tests? #f)) ; no test target
4224 `(("python-setuptools" ,python-setuptools)))
4225 (home-page "https://pypi.python.org/pypi/decorator/")
4226 (synopsis "Python module to simplify usage of decorators")
4228 "The aim of the decorator module is to simplify the usage of decorators
4229 for the average programmer, and to popularize decorators usage giving examples
4230 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
4231 etc. The core of this module is a decorator factory.")
4232 (license license:expat)))
4234 (define-public python2-decorator
4235 (package-with-python2 python-decorator))
4237 (define-public python-drmaa
4239 (name "python-drmaa")
4245 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
4248 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
4249 (build-system python-build-system)
4250 ;; The test suite requires libdrmaa which is provided by the cluster
4251 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
4252 ;; should be set to the path of the libdrmaa library.
4253 (arguments '(#:tests? #f))
4255 `(("python-nose" ,python-nose)
4256 ("python-setuptools" ,python-setuptools)))
4257 (home-page "https://pypi.python.org/pypi/drmaa")
4258 (synopsis "Python bindings for the DRMAA library")
4260 "A Python package for Distributed Resource Management (DRM) job
4261 submission and control. This package is an implementation of the DRMAA 1.0
4262 Python language binding specification.")
4263 (license license:bsd-3)))
4265 (define-public python2-drmaa
4266 (package-with-python2 python-drmaa))
4268 (define-public python-gridmap
4270 (name "python-gridmap")
4276 "https://github.com/pygridtools/gridmap/archive/v"
4278 (file-name (string-append name "-" version ".tar.gz"))
4280 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
4281 (build-system python-build-system)
4283 `(("python-psutil" ,python-psutil)
4284 ("python-drmaa" ,python-drmaa)
4285 ("python-pyzmq" ,python-pyzmq)))
4287 `(("python-setuptools" ,python-setuptools)))
4288 (home-page "https://github.com/pygridtools/gridmap")
4289 (synopsis "Create jobs on a cluster directly from Python")
4291 "Gridmap is a Python package to allow you to easily create jobs on the
4292 cluster directly from Python. You can directly map Python functions onto the
4293 cluster without needing to write any wrapper code yourself.")
4294 (license license:gpl3+)))
4296 (define-public python2-gridmap
4297 (package-with-python2 python-gridmap))
4299 (define-public python-pexpect
4301 (name "python-pexpect")
4306 (uri (string-append "https://pypi.python.org/packages/source/p/"
4307 "pexpect/pexpect-" version ".tar.gz"))
4309 (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
4310 (build-system python-build-system)
4313 (modify-phases %standard-phases
4314 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4316 `(("python-nose" ,python-nose)))
4317 (home-page "http://pexpect.readthedocs.org/")
4318 (synopsis "Controlling interactive console applications")
4320 "Pexpect is a pure Python module for spawning child applications;
4321 controlling them; and responding to expected patterns in their output.
4322 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4323 child application and control it as if a human were typing commands.")
4324 (license license:isc)))
4326 (define-public python2-pexpect
4327 (package-with-python2 python-pexpect))
4329 (define-public python-setuptools-scm
4331 (name "python-setuptools-scm")
4335 (uri (pypi-uri "setuptools_scm" version))
4338 "1gqr73i150yzj3mz32854vj93x07yr52kn8fdckwa41ll8wgficc"))))
4339 (build-system python-build-system)
4340 (native-inputs `(("python-setuptools" ,python-setuptools)))
4341 (home-page "https://github.com/pypa/setuptools_scm/")
4342 (synopsis "Manage Python package versions in SCM metadata")
4344 "Setuptools_scm handles managing your Python package versions in
4345 @dfn{software configuration management} (SCM) metadata instead of declaring
4346 them as the version argument or in a SCM managed file.")
4347 (license license:expat)))
4349 (define-public python2-setuptools-scm
4350 (package-with-python2 python-setuptools-scm))
4352 (define-public python-pathpy
4354 (name "python-pathpy")
4359 (uri (string-append "https://pypi.python.org/packages/source/p/"
4360 "path.py/path.py-" version ".tar.gz"))
4362 (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
4363 (build-system python-build-system)
4365 `(("python-appdirs" ,python-appdirs)))
4367 `(("python-setuptools" ,python-setuptools)
4368 ("python-setuptools-scm" ,python-setuptools-scm)
4369 ("python-pytest" ,python-pytest)
4370 ("python-pytest-runner" ,python-pytest-runner)))
4371 (home-page "http://github.com/jaraco/path.py")
4372 (synopsis "Python module wrapper for built-in os.path")
4374 "@code{path.py} implements path objects as first-class entities, allowing
4375 common operations on files to be invoked on those path objects directly.")
4376 (license license:expat)))
4378 (define-public python2-pathpy
4379 (package-with-python2 python-pathpy))
4381 (define-public python-pickleshare
4383 (name "python-pickleshare")
4388 (uri (string-append "https://pypi.python.org/packages/source/p/"
4389 "pickleshare/pickleshare-" version ".tar.gz"))
4391 (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
4392 (build-system python-build-system)
4394 `(("python-pathpy" ,python-pathpy)))
4396 `(("python-setuptools" ,python-setuptools)))
4397 (home-page "https://github.com/vivainio/pickleshare")
4398 (synopsis "Tiny key value database with concurrency support")
4400 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
4401 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
4402 shelve, many processes can access the database simultaneously. Changing a
4403 value in database is immediately visible to other processes accessing the same
4404 database. Concurrency is possible because the values are stored in separate
4405 files. Hence the “database” is a directory where all files are governed by
4407 (license license:expat)))
4409 (define-public python2-pickleshare
4410 (package-with-python2 python-pickleshare))
4412 (define-public python-simplegeneric
4414 (name "python-simplegeneric")
4419 (uri (string-append "https://pypi.python.org/packages/source/s/"
4420 "simplegeneric/simplegeneric-" version ".zip"))
4422 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4423 (build-system python-build-system)
4425 `(("python-setuptools" ,python-setuptools)
4427 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4428 (synopsis "Python module for simple generic functions")
4430 "The simplegeneric module lets you define simple single-dispatch generic
4431 functions, akin to Python’s built-in generic functions like @code{len()},
4432 @code{iter()} and so on. However, instead of using specially-named methods,
4433 these generic functions use simple lookup tables, akin to those used by
4434 e.g. @code{pickle.dump()} and other generic functions found in the Python
4436 (license license:zpl2.1)))
4438 (define-public python2-simplegeneric
4439 (package-with-python2 python-simplegeneric))
4441 (define-public python-ipython-genutils
4443 (name "python-ipython-genutils")
4448 (uri (string-append "https://pypi.python.org/packages/source/i/"
4449 "ipython_genutils/ipython_genutils-"
4452 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4453 (build-system python-build-system)
4454 (arguments `(#:tests? #f)) ; no tests
4455 (home-page "http://ipython.org")
4456 (synopsis "Vestigial utilities from IPython")
4458 "This package provides retired utilities from IPython.")
4459 (license license:bsd-3)))
4461 (define-public python2-ipython-genutils
4462 (package-with-python2 python-ipython-genutils))
4464 (define-public python-traitlets
4466 (name "python-traitlets")
4471 (uri (pypi-uri "traitlets" version))
4474 "0nxgj8jxlm1kqf8cx2x7vjid05zdgbxpqhjbdl46r8njlpgkh3j4"))))
4475 (build-system python-build-system)
4478 (modify-phases %standard-phases
4479 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4481 `(("python-ipython-genutils" ,python-ipython-genutils)
4482 ("python-decorator" ,python-decorator)))
4484 `(("python-mock" ,python-mock)
4485 ("python-nose" ,python-nose)))
4486 (home-page "http://ipython.org")
4487 (synopsis "Configuration system for Python applications")
4489 "Traitlets is a framework that lets Python classes have attributes with
4490 type checking, dynamically calculated default values, and ‘on change’
4491 callbacks. The package also includes a mechanism to use traitlets for
4492 configuration, loading values from files or from command line arguments. This
4493 is a distinct layer on top of traitlets, so you can use traitlets in your code
4494 without using the configuration machinery.")
4495 (license license:bsd-3)))
4497 (define-public python2-traitlets
4498 (package-with-python2 python-traitlets))
4500 (define-public python-ipython
4502 (name "python-ipython")
4507 (patches (search-patches "python-ipython-inputhook-ctype.patch"))
4508 (uri (string-append "https://pypi.python.org/packages/source/i/"
4509 "ipython/ipython-" version ".tar.gz"))
4511 (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9"))))
4512 (build-system python-build-system)
4513 (outputs '("out" "doc"))
4515 `(("python-pyzmq" ,python-pyzmq)
4516 ("python-terminado" ,python-terminado)))
4518 `(("readline" ,readline)
4520 ("python-matplotlib" ,python-matplotlib)
4521 ("python-numpy" ,python-numpy)
4522 ("python-numpydoc" ,python-numpydoc)
4523 ("python-jinja2" ,python-jinja2)
4524 ("python-mistune" ,python-mistune)
4525 ("python-jsonschema" ,python-jsonschema)
4526 ("python-pygments" ,python-pygments)
4527 ("python-requests" ,python-requests) ;; for tests
4528 ("python-nose" ,python-nose)))
4530 `(("pkg-config" ,pkg-config)
4531 ("python-sphinx" ,python-sphinx)
4532 ("texlive" ,texlive)
4533 ("texinfo" ,texinfo)
4534 ("python-setuptools" ,python-setuptools)))
4537 (modify-phases %standard-phases
4539 'install 'install-doc
4540 (lambda* (#:key inputs outputs #:allow-other-keys)
4541 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4542 (doc (string-append data "/doc/" ,name "-" ,version))
4543 (html (string-append doc "/html"))
4544 (man1 (string-append data "/man/man1"))
4545 (info (string-append data "/info"))
4546 (examples (string-append doc "/examples")))
4547 (setenv "LANG" "en_US.utf8")
4548 (with-directory-excursion "docs"
4549 ;; FIXME: html and pdf fail to build
4550 ;; (system* "make" "html")
4551 ;; (system* "make" "pdf" "PAPER=a4")
4552 (system* "make" "info"))
4553 (copy-recursively "docs/man" man1)
4554 (copy-recursively "examples" examples)
4555 ;; (copy-recursively "docs/build/html" html)
4556 ;; (copy-file "docs/build/latex/ipython.pdf"
4557 ;; (string-append doc "/ipython.pdf"))
4559 (copy-file "docs/build/texinfo/ipython.info"
4560 (string-append info "/ipython.info"))
4561 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4562 ;; Tests can only be run after the library has been installed and not
4563 ;; within the source directory.
4567 (lambda* (#:key outputs tests? #:allow-other-keys)
4569 (with-directory-excursion "/tmp"
4570 (setenv "HOME" "/tmp/") ;; required by a test
4571 (zero? (system* (string-append (assoc-ref outputs "out")
4576 (lambda* (#:key inputs #:allow-other-keys)
4577 (substitute* "./IPython/utils/_process_posix.py"
4578 (("/usr/bin/env', 'which") (which "which")))
4579 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4580 (("#!/usr/bin/env python")
4581 (string-append "#!" (which "python"))))
4582 ;; Disable 1 failing test
4583 (substitute* "./IPython/core/tests/test_magic.py"
4584 (("def test_dirops\\(\\):" all)
4585 (string-append "@dec.skipif(True)\n" all))))))))
4586 (home-page "http://ipython.org")
4587 (synopsis "IPython is a tool for interactive computing in Python")
4589 "IPython provides a rich architecture for interactive computing with:
4590 Powerful interactive shells, a browser-based notebook, support for interactive
4591 data visualization, embeddable interpreters and tools for parallel
4593 (license license:bsd-3)
4594 (properties `((python2-variant . ,(delay python2-ipython))))))
4596 (define-public python2-ipython
4597 (let ((ipython (package-with-python2 (strip-python2-variant python-ipython))))
4600 ;; FIXME: some tests are failing
4602 `(#:tests? #f ,@(package-arguments ipython)))
4603 ;; FIXME: add pyreadline once available.
4605 `(("python2-mock" ,python2-mock)
4606 ,@(package-inputs ipython))))))
4608 (define-public python-isodate
4610 (name "python-isodate")
4615 (uri (pypi-uri "isodate" version))
4618 "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
4619 (build-system python-build-system)
4621 `(("python-setuptools" ,python-setuptools)))
4623 "http://cheeseshop.python.org/pypi/isodate")
4625 "Python date parser and formatter")
4627 "Python-isodate is a python module for parsing and formatting
4628 ISO 8601 dates, time and duration.")
4629 (license license:bsd-3)))
4631 (define-public python2-isodate
4632 (package-with-python2 python-isodate))
4634 (define-public python-html5lib
4636 (name "python-html5lib")
4641 (uri (pypi-uri "html5lib" version))
4644 "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
4645 (build-system python-build-system)
4647 `(("python-six" ,python-six))) ; required to "import html5lib"
4649 `(("python-setuptools" ,python-setuptools)))
4651 `(#:test-target "check"))
4653 "https://github.com/html5lib/html5lib-python")
4655 "Python HTML parser based on the WHATWG HTML specifcation")
4657 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
4658 and written in Python.")
4659 (license license:expat)))
4661 (define-public python2-html5lib
4662 (package-with-python2 python-html5lib))
4664 (define-public python-urwid
4666 (name "python-urwid")
4671 (uri (pypi-uri "urwid" version))
4674 "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng"))))
4675 (build-system python-build-system)
4678 (modify-phases %standard-phases
4679 ;; Disable failing test. Bug filed upstream:
4680 ;; https://github.com/wardi/urwid/issues/164
4681 ;; TODO: check again for python-urwid > 1.3.1 or python > 3.4.3.
4682 (add-after 'unpack 'disable-failing-test
4684 (substitute* "urwid/tests/test_event_loops.py"
4685 (("test_remove_watch_file")
4686 "disable_remove_watch_file")))))))
4687 (native-inputs `(("python-setuptools" ,python-setuptools)))
4688 (home-page "http://urwid.org")
4689 (synopsis "Console user interface library for Python")
4691 "Urwid is a curses-based UI/widget library for Python. It includes many
4692 features useful for text console applications.")
4693 (license license:lgpl2.1+)))
4695 (define-public python2-urwid
4696 (package-with-python2 python-urwid))
4698 (define-public python-urwidtrees
4700 (name "python-urwidtrees")
4705 ;; package author intends on distributing via github rather than pypi:
4706 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
4707 (uri (string-append "https://github.com/pazz/urwidtrees/archive/"
4709 (file-name (string-append name "-" version ".tar.gz"))
4712 "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh"))))
4713 (build-system python-build-system)
4715 '(#:tests? #f)) ; no tests
4716 (inputs `(("python-urwid" ,python-urwid)))
4717 (home-page "https://github.com/pazz/urwidtrees")
4718 (synopsis "Tree widgets for urwid")
4719 (description "Urwidtrees is a Widget Container API for the @code{urwid}
4720 toolkit. Use it to build trees of widgets.")
4721 (license license:gpl3+)))
4723 (define-public python2-urwidtrees
4724 (package-with-python2 python-urwidtrees))
4726 (define-public python-dbus
4728 (name "python-dbus")
4734 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
4737 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
4738 (build-system gnu-build-system)
4741 (modify-phases %standard-phases
4745 ;; XXX: For the missing '/etc/machine-id'.
4746 (substitute* "test/run-test.sh"
4747 (("DBUS_FATAL_WARNINGS=1")
4748 "DBUS_FATAL_WARNINGS=0"))
4751 `(("pkg-config" ,pkg-config)))
4753 `(("python" ,python)
4754 ("dbus-glib" ,dbus-glib)))
4755 (synopsis "Python bindings for D-bus")
4756 (description "python-dbus provides bindings for libdbus, the reference
4757 implementation of D-Bus.")
4758 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
4759 (license license:expat)))
4761 (define-public python2-dbus
4762 (package (inherit python-dbus)
4763 (name "python2-dbus")
4764 (inputs `(("python" ,python-2)
4765 ,@(alist-delete "python"
4766 (package-inputs python-dbus)
4768 ;; FIXME: on Python 2, the test_utf8 fails with:
4769 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
4770 (arguments `(#:tests? #f))))
4772 (define-public python-apsw
4774 (name "python-apsw")
4775 (version "3.9.2-r1")
4779 (uri (pypi-uri "apsw" version))
4782 "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
4783 (build-system python-build-system)
4785 `(("python-setuptools" ,python-setuptools)
4786 ("sqlite" ,sqlite)))
4789 ;; swap check and install phases
4792 (assoc-ref %standard-phases 'check)
4795 %standard-phases))))
4796 (home-page "https://github.com/rogerbinns/apsw/")
4797 (synopsis "Another Python SQLite Wrapper")
4798 (description "APSW is a Python wrapper for the SQLite
4799 embedded relational database engine. In contrast to other wrappers such as
4800 pysqlite it focuses on being a minimal layer over SQLite attempting just to
4801 translate the complete SQLite API into Python.")
4802 (license license:zlib)))
4804 (define-public python2-apsw
4805 (package-with-python2 python-apsw))
4807 (define-public python-lxml
4809 (name "python-lxml")
4814 (uri (pypi-uri "lxml" version))
4817 "1pvbmiy2m7jwv493kilbghhj2pkh8wy1na3ji350vhzhlwlclx4w"))))
4818 (build-system python-build-system)
4820 `(("libxml2" ,libxml2)
4821 ("libxslt" ,libxslt)
4822 ("python-setuptools" ,python-setuptools)))
4823 (home-page "http://lxml.de/")
4825 "Python XML processing library")
4827 "The lxml XML toolkit is a Pythonic binding for the C libraries
4828 libxml2 and libxslt.")
4829 (license license:bsd-3))) ; and a few more, see LICENSES.txt
4831 (define-public python2-lxml
4832 (package-with-python2 python-lxml))
4834 ;; beautifulsoup4 has a totally different namespace than 3.x,
4835 ;; and pypi seems to put it under its own name, so I guess we should too
4836 (define-public python-beautifulsoup4
4838 (name "python-beautifulsoup4")
4843 (uri (pypi-uri "beautifulsoup4" version))
4846 "1rf94360s8pmn37vxqjl0g74krq2p6nj3wbn6pj94ik6ny44q24f"))))
4847 (build-system python-build-system)
4849 "http://www.crummy.com/software/BeautifulSoup/bs4/")
4851 "Python screen-scraping library")
4853 "Beautiful Soup is a Python library designed for rapidly setting up
4854 screen-scraping projects. It offers Pythonic idioms for navigating,
4855 searching, and modifying a parse tree, providing a toolkit for
4856 dissecting a document and extracting what you need. It automatically
4857 converts incoming documents to Unicode and outgoing documents to UTF-8.")
4858 (license license:expat)
4859 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
4861 (define-public python2-beautifulsoup4
4863 (inherit (package-with-python2
4864 (strip-python2-variant python-beautifulsoup4)))
4865 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
4867 (define-public python2-cssutils
4869 (name "python2-cssutils")
4874 (uri (pypi-uri "cssutils" version))
4877 "0qwha9x1wml2qmipbcz03gndnlwhzrjdvw9i09si247a90l8p8fq"))))
4878 (build-system python-build-system)
4880 `(("python2-mock" ,python2-mock) ; for the tests
4881 ("unzip" ,unzip))) ; for unpacking the source
4883 `(("python2-setuptools" ,python2-setuptools)))
4885 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
4886 #:tests? #f ; The tests apparently download an external URL.
4888 (home-page "http://cthedot.de/cssutils/")
4890 "CSS Cascading Style Sheets library for Python")
4892 "Cssutils is a Python package for parsing and building CSS
4893 Cascading Style Sheets. Currently it provides a DOM only and no rendering
4895 (license license:lgpl3+)))
4897 (define-public python-cssselect
4899 (name "python-cssselect")
4904 (uri (pypi-uri "cssselect" version))
4907 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
4908 (build-system python-build-system)
4910 `(("python-setuptools" ,python-setuptools)))
4912 ;; tests fail with message
4913 ;; AttributeError: 'module' object has no attribute 'tests'
4916 "https://pythonhosted.org/cssselect/")
4918 "CSS3 selector parser and translator to XPath 1.0")
4920 "Cssselect ia a Python module that parses CSS3 Selectors and translates
4921 them to XPath 1.0 expressions. Such expressions can be used in lxml or
4922 another XPath engine to find the matching elements in an XML or HTML document.")
4923 (license license:bsd-3)))
4925 (define-public python2-cssselect
4926 (package-with-python2 python-cssselect))
4928 (define-public python-netifaces
4930 (name "python-netifaces")
4936 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
4941 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
4942 (build-system python-build-system)
4944 `(("python-setuptools" ,python-setuptools)))
4946 "https://bitbucket.org/al45tair/netifaces")
4948 "Python module for portable network interface information")
4950 "Netifaces is a Python module providing information on network
4951 interfaces in an easy and portable manner.")
4952 (license license:expat)))
4954 (define-public python2-netifaces
4955 (package-with-python2 python-netifaces))
4957 (define-public python-networkx
4959 (name "python-networkx")
4964 (uri (pypi-uri "networkx" version))
4966 (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
4967 (build-system python-build-system)
4968 ;; python-decorator is needed at runtime
4970 `(("python-decorator" ,python-decorator)))
4972 `(("python-setuptools" ,python-setuptools)
4973 ("python-nose" ,python-nose)))
4974 (home-page "http://networkx.github.io/")
4975 (synopsis "Python module for creating and manipulating graphs and networks")
4977 "NetworkX is a Python package for the creation, manipulation, and study
4978 of the structure, dynamics, and functions of complex networks.")
4979 (license license:bsd-3)))
4981 (define-public python2-networkx
4982 (package-with-python2 python-networkx))
4984 (define-public snakemake
4992 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
4995 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
4996 (build-system python-build-system)
4997 (inputs `(("python-setuptools" ,python-setuptools)))
4998 (home-page "https://bitbucket.org/johanneskoester/snakemake")
4999 (synopsis "Python-based execution environment for make-like workflows")
5001 "Snakemake aims to reduce the complexity of creating workflows by
5002 providing a clean and modern domain specific specification language (DSL) in
5003 Python style, together with a fast and comfortable execution environment.")
5004 (license license:expat)))
5006 (define-public python-seaborn
5008 (name "python-seaborn")
5013 (uri (pypi-uri "seaborn" version))
5015 (base32 "0ibi3xsfm2kysph61mnfy0pf8d5rkgxgrdb0z9nbizgcgdsb5a0m"))))
5016 (build-system python-build-system)
5018 `(("python-pandas" ,python-pandas)
5019 ("python-matplotlib" ,python-matplotlib)
5020 ("python-scipy" ,python-scipy)))
5021 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
5022 (synopsis "Statistical data visualization")
5024 "Seaborn is a library for making attractive and informative statistical
5025 graphics in Python. It is built on top of matplotlib and tightly integrated
5026 with the PyData stack, including support for numpy and pandas data structures
5027 and statistical routines from scipy and statsmodels.")
5028 (license license:bsd-3)
5029 (properties `((python2-variant . ,(delay python2-seaborn))))))
5031 (define-public python2-seaborn
5032 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
5035 (propagated-inputs `(("python2-pytz" ,python2-pytz)
5036 ,@(package-propagated-inputs base)))
5037 (native-inputs `(("python2-setuptools" ,python2-setuptools)
5038 ,@(package-native-inputs base))))))
5040 (define-public python-sympy
5042 (name "python-sympy")
5048 "https://github.com/sympy/sympy/releases/download/sympy-"
5049 version "/sympy-" version ".tar.gz"))
5051 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
5052 (build-system python-build-system)
5054 `(("python-setuptools" ,python-setuptools)))
5055 (home-page "http://www.sympy.org/")
5056 (synopsis "Python library for symbolic mathematics")
5058 "SymPy is a Python library for symbolic mathematics. It aims to become a
5059 full-featured computer algebra system (CAS) while keeping the code as simple
5060 as possible in order to be comprehensible and easily extensible.")
5061 (license license:bsd-3)))
5063 (define-public python2-sympy
5064 (package-with-python2 python-sympy))
5066 (define-public python-q
5073 (uri (pypi-uri "q" version))
5076 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
5077 (build-system python-build-system)
5078 (home-page "https://github.com/zestyping/q")
5079 (synopsis "Quick-and-dirty debugging output for tired programmers")
5081 "q is a Python module for \"print\" style of debugging Python code. It
5082 provides convenient short API for print out of values, tracebacks, and
5083 falling into the Python interpreter.")
5084 (license license:asl2.0)
5085 (properties `((python2-variant . ,(delay python2-q))))))
5087 (define-public python2-q
5088 (let ((base (package-with-python2 (strip-python2-variant python-q))))
5092 `(("python2-setuptools" ,python2-setuptools)
5093 ,@(package-native-inputs base))))))
5095 (define-public python-testlib
5097 (name "python-testlib")
5103 "https://pypi.python.org/packages/source/t/testlib/testlib-"
5106 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
5107 (build-system python-build-system)
5109 `(("python-setuptools" ,python-setuptools)))
5111 `(("unzip" ,unzip)))
5116 (lambda* (#:key inputs outputs #:allow-other-keys)
5117 (let ((unzip (string-append (assoc-ref inputs "unzip")
5119 (source (assoc-ref inputs "source")))
5120 (and (zero? (system* unzip source))
5121 (chdir (string-append "testlib-" ,version)))))
5123 (synopsis "Python micro test suite harness")
5124 (description "A micro unittest suite harness for Python.")
5125 (home-page "https://github.com/trentm/testlib")
5126 (license license:expat)))
5128 (define-public python2-testlib
5129 (package-with-python2 python-testlib))
5131 (define-public python2-xlib
5133 (name "python2-xlib")
5137 (uri (string-append "mirror://sourceforge/python-xlib/python-xlib"
5139 "python-xlib-" version ".tar.gz"))
5142 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
5143 (build-system python-build-system)
5145 `(#:python ,python-2 ;Python 2 only
5146 #:tests? #f)) ;no tests
5148 `(("python-setuptools" ,python-setuptools)))
5149 (home-page "http://python-xlib.sourceforge.net/")
5150 (synopsis "Python X11 client library")
5152 "The Python X Library is intended to be a fully functional X client
5153 library for Python programs. It is useful to implement low-level X clients.
5154 It is written entirely in Python.")
5155 (license license:gpl2+)))
5157 (define-public python-singledispatch
5159 (name "python-singledispatch")
5164 (uri (pypi-uri "singledispatch" version))
5167 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
5168 (build-system python-build-system)
5170 `(("python-setuptools" ,python-setuptools)))
5172 `(("python-six" ,python-six)))
5174 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
5175 (synopsis "Backport of singledispatch feature from Python 3.4")
5177 "This library brings functools.singledispatch from Python 3.4 to Python
5179 (license license:expat)))
5181 (define-public python2-singledispatch
5182 (package-with-python2 python-singledispatch))
5184 (define-public python-tornado
5186 (name "python-tornado")
5191 (uri (pypi-uri "tornado" version))
5193 (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
5194 (build-system python-build-system)
5196 `(("python-certifi" ,python-certifi)))
5198 `(("python-backports-abc" ,python-backports-abc)))
5199 (home-page "http://www.tornadoweb.org/")
5200 (synopsis "Python web framework and asynchronous networking library")
5202 "Tornado is a Python web framework and asynchronous networking library,
5203 originally developed at FriendFeed. By using non-blocking network I/O,
5204 Tornado can scale to tens of thousands of open connections, making it ideal
5205 for long polling, WebSockets, and other applications that require a long-lived
5206 connection to each user.")
5207 (license license:asl2.0)
5208 (properties `((python2-variant . ,(delay python2-tornado))))))
5210 (define-public python2-tornado
5211 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
5212 (package (inherit tornado)
5214 `(("python2-backport-ssl-match-hostname"
5215 ,python2-backport-ssl-match-hostname)
5216 ("python2-singledispatch" ,python2-singledispatch)
5217 ,@(package-inputs tornado)))
5219 `(("python2-setuptools" ,python2-setuptools)
5220 ,@(package-native-inputs tornado))))))
5222 ;; the python- version can be removed with python-3.5
5223 (define-public python-backports-abc
5225 (name "python-backports-abc")
5230 (uri (pypi-uri "backports_abc" version))
5233 "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
5234 (build-system python-build-system)
5236 `(("python-setuptools" ,python-setuptools)))
5237 (home-page "https://github.com/cython/backports_abc")
5238 (synopsis "Backport of additions to the 'collections.abc' module")
5240 "Python-backports-abc provides a backport of additions to the
5241 'collections.abc' module in Python-3.5.")
5242 (license license:psfl)))
5244 (define-public python2-backports-abc
5245 (package-with-python2 python-backports-abc))
5247 (define-public python-waf
5253 (uri (string-append "https://waf.io/"
5254 "waf-" version ".tar.bz2"))
5257 "1nc4qaqx2vsanlpp9mcwvf91xjqpkvcc6fcxd5sb4fwvaxamw5v6"))))
5258 (build-system python-build-system)
5261 (modify-phases %standard-phases
5265 (system* "python" "waf-light" "configure")
5266 (system* "python" "waf-light" "build")))))
5269 (zero? (system* "python" "waf" "--version"))))
5272 (copy-file "waf" %output))))))
5273 (home-page "https://waf.io/")
5274 (synopsis "Python-based build system")
5276 "Waf is a Python-based framework for configuring, compiling and installing
5278 (license license:bsd-3)))
5280 (define-public python2-waf
5281 (package-with-python2 python-waf))
5283 (define-public python-pyzmq
5285 (name "python-pyzmq")
5290 (uri (pypi-uri "pyzmq" version))
5292 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
5293 (build-system python-build-system)
5296 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
5297 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
5298 ;; --inplace' for 'python setup.py test' to work.
5301 `(("zeromq" ,zeromq)))
5303 `(("pkg-config" ,pkg-config)
5304 ("python-nose" ,python-nose)
5305 ("python-setuptools" ,python-setuptools)))
5306 (home-page "http://github.com/zeromq/pyzmq")
5307 (synopsis "Python bindings for 0MQ")
5309 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
5310 (license license:bsd-4)))
5312 (define-public python2-pyzmq
5313 (package-with-python2 python-pyzmq))
5315 (define-public python-pep8
5317 (name "python-pep8")
5322 (uri (pypi-uri "pep8" version))
5325 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
5326 (build-system python-build-system)
5328 `(("python-setuptools" ,python-setuptools)))
5329 (home-page "http://pep8.readthedocs.org/")
5330 (synopsis "Python style guide checker")
5332 "This tools checks Python code against some of the style conventions in
5334 (license license:expat)))
5336 (define-public python2-pep8
5337 (package-with-python2 python-pep8))
5339 (define-public python-pyflakes
5341 (name "python-pyflakes")
5346 (uri (pypi-uri "pyflakes" version))
5349 "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
5350 (build-system python-build-system)
5352 `(("python-setuptools" ,python-setuptools)))
5354 "https://github.com/pyflakes/pyflakes")
5355 (synopsis "Passive checker of Python programs")
5357 "Pyflakes statically checks Python source code for common errors.")
5358 (license license:expat)))
5360 (define-public python2-pyflakes
5361 (package-with-python2 python-pyflakes))
5363 (define-public python-mccabe
5365 (name "python-mccabe")
5370 (uri (pypi-uri "mccabe" version))
5373 "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
5374 (build-system python-build-system)
5376 `(("python-pytest" ,python-pytest)
5377 ("python-pytest-runner" ,python-pytest-runner)
5378 ("python-setuptools" ,python-setuptools)))
5379 (home-page "https://github.com/flintwork/mccabe")
5380 (synopsis "McCabe checker, plugin for flake8")
5382 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5383 complexity of Python source code.")
5384 (license license:expat)))
5386 (define-public python2-mccabe
5387 (package-with-python2 python-mccabe))
5389 (define-public python-mccabe-0.2.1
5390 (package (inherit python-mccabe)
5395 (uri (pypi-uri "mccabe" version))
5398 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))
5399 (inputs `(("python-setuptools" ,python-setuptools)))))
5401 (define-public python2-mccabe-0.2.1
5402 (package-with-python2 python-mccabe-0.2.1))
5404 ;; Flake8 2.4.1 requires an older version of pep8.
5405 ;; This should be removed ASAP.
5406 (define-public python-pep8-1.5.7
5407 (package (inherit python-pep8)
5413 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5418 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
5420 (define-public python2-pep8-1.5.7
5421 (package-with-python2 python-pep8-1.5.7))
5423 ;; Flake8 2.4.1 requires an older version of pyflakes.
5424 ;; This should be removed ASAP.
5425 (define-public python-pyflakes-0.8.1
5426 (package (inherit python-pyflakes)
5432 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5437 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
5439 (define-public python2-pyflakes-0.8.1
5440 (package-with-python2 python-pyflakes-0.8.1))
5442 (define-public python-flake8
5444 (name "python-flake8")
5449 (uri (pypi-uri "flake8" version))
5452 "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
5453 (build-system python-build-system)
5455 `(("python-setuptools" ,python-setuptools)
5456 ("python-pep8" ,python-pep8)
5457 ("python-pyflakes" ,python-pyflakes)
5458 ("python-mccabe" ,python-mccabe)
5459 ("python-mock" ,python-mock)
5460 ("python-nose" ,python-nose)))
5461 (home-page "https://gitlab.com/pycqa/flake8")
5463 "The modular source code checker: pep8, pyflakes and co")
5465 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5466 (license license:expat)))
5468 (define-public python2-flake8
5469 (package-with-python2 python-flake8))
5471 ;; This will only be needed by the python-hacking package and will not be
5472 ;; necessary once python-hacking > 0.10.2 is released.
5473 (define-public python-flake8-2.2.4
5474 (package (inherit python-flake8)
5476 `(("python-setuptools" ,python-setuptools)
5477 ("python-pep8" ,python-pep8-1.5.7)
5478 ("python-pyflakes" ,python-pyflakes-0.8.1)
5479 ("python-mccabe" ,python-mccabe-0.2.1)
5480 ("python-mock" ,python-mock)
5481 ("python-nose" ,python-nose)))
5486 (uri (pypi-uri "flake8" version))
5489 "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
5491 (define-public python2-flake8-2.2.4
5492 (package-with-python2 python-flake8-2.2.4))
5494 (define-public python-mistune
5496 (name "python-mistune")
5502 "https://pypi.python.org/packages/source/m/mistune/mistune-"
5507 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
5508 (build-system python-build-system)
5510 `(("python-setuptools" ,python-setuptools)
5511 ("python-nose" ,python-nose)
5512 ("python-cython" ,python-cython)))
5513 (home-page "https://github.com/lepture/mistune")
5514 (synopsis "Markdown parser in pure Python")
5515 (description "This package provides a fast markdown parser in pure
5517 (license license:bsd-3)))
5519 (define-public python2-mistune
5520 (package-with-python2 python-mistune))
5522 (define-public python-markdown
5524 (name "python-markdown")
5529 (uri (pypi-uri "Markdown" version))
5532 "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
5533 (build-system python-build-system)
5536 (modify-phases %standard-phases
5539 (zero? (system* "python" "run-tests.py")))))))
5541 `(("python-nose" ,python-nose)
5542 ("python-pyyaml" ,python-pyyaml)))
5543 (home-page "https://pythonhosted.org/Markdown/")
5544 (synopsis "Python implementation of Markdown")
5546 "This package provides a Python implementation of John Gruber's
5547 Markdown. The library features international input, various Markdown
5548 extensions, and several HTML output formats. A command line wrapper
5549 markdown_py is also provided to convert Markdown files to HTML.")
5550 (license license:bsd-3)))
5552 (define-public python2-markdown
5553 (package-with-python2 python-markdown))
5555 (define-public python-ptyprocess
5557 (name "python-ptyprocess")
5563 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
5567 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
5568 (build-system python-build-system)
5570 `(("python-setuptools" ,python-setuptools)
5571 ("python-nose" ,python-nose)))
5574 (modify-phases %standard-phases
5577 (zero? (system* "nosetests")))))))
5578 (home-page "https://github.com/pexpect/ptyprocess")
5579 (synopsis "Run a subprocess in a pseudo terminal")
5581 "This package provides a Python library used to launch a subprocess in a
5582 pseudo terminal (pty), and interact with both the process and its pty.")
5583 (license license:isc)))
5585 (define-public python2-ptyprocess
5586 (package-with-python2 python-ptyprocess))
5588 (define-public python-terminado
5590 (name "python-terminado")
5595 (uri (pypi-uri "terminado" version))
5598 "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc"))))
5599 (build-system python-build-system)
5601 `(("python-tornado" ,python-tornado)
5602 ("python-ptyprocess" ,python-ptyprocess)))
5604 `(("python-nose" ,python-nose)))
5607 (modify-phases %standard-phases
5610 (zero? (system* "nosetests")))))))
5611 (home-page "https://github.com/takluyver/terminado")
5612 (synopsis "Terminals served to term.js using Tornado websockets")
5613 (description "This package provides a Tornado websocket backend for the
5614 term.js Javascript terminal emulator library.")
5615 (license license:bsd-2)
5616 (properties `((python2-variant . ,(delay python2-terminado))))))
5618 (define-public python2-terminado
5619 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
5620 (package (inherit terminado)
5622 `(("python2-backport-ssl-match-hostname"
5623 ,python2-backport-ssl-match-hostname)
5624 ,@(package-propagated-inputs terminado)))
5626 `(("python2-setuptools" ,python2-setuptools)
5627 ,@(package-native-inputs terminado))))))
5629 (define-public python-fonttools
5631 (name "python-fonttools")
5636 "https://pypi.python.org/packages/source/F/FontTools/"
5637 "fonttools-" version ".tar.gz"))
5640 "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
5641 (build-system python-build-system)
5642 (arguments '(#:test-target "check"))
5644 ;; XXX: module not found if setuptools is not available.
5645 `(("python-setuptools" ,python-setuptools)))
5646 (home-page "http://github.com/behdad/fonttools")
5647 (synopsis "Tools to manipulate font files")
5649 "FontTools/TTX is a library to manipulate font files from Python. It
5650 supports reading and writinfg of TrueType/OpenType fonts, reading and writing
5651 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
5652 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
5653 from an XML-based format.")
5654 (license (license:non-copyleft
5655 "file://LICENSE.txt"
5656 "See LICENSE.txt in the distribution."))))
5658 (define-public python2-fonttools
5659 (package-with-python2 python-fonttools))
5661 (define-public python-ly
5668 (uri (string-append "https://pypi.python.org/packages/57/4f/"
5669 "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9"
5670 "/python-ly-" version ".tar.gz"))
5673 "0g6n288l83sfwavxh1aryi0aqvsr3sp7v6f903mckwqa4scpky62"))))
5674 (build-system python-build-system)
5676 `(("python-setuptools" ,python-setuptools)))
5677 (synopsis "Tool and library for manipulating LilyPond files")
5678 (description "This package provides a Python library to parse, manipulate
5679 or create documents in LilyPond format. A command line program ly is also
5680 provided that can be used to do various manipulations with LilyPond files.")
5681 (home-page "https://pypi.python.org/pypi/python-ly")
5682 (license license:gpl2+)))
5684 (define-public python-appdirs
5686 (name "python-appdirs")
5692 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
5697 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
5698 (build-system python-build-system)
5700 `(("python-setuptools" ,python-setuptools)))
5701 (home-page "http://github.com/ActiveState/appdirs")
5703 "Determine platform-specific dirs, e.g. a \"user data dir\"")
5705 "This module provides a portable way of finding out where user data
5706 should be stored on various operating systems.")
5707 (license license:expat)))
5709 (define-public python2-appdirs
5710 (package-with-python2 python-appdirs))
5712 (define-public python-llfuse
5714 (name "python-llfuse")
5719 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5720 "llfuse-" version ".tar.bz2"))
5723 "0v6vj9mb286njgd1szg9hz2qdh5f3vkhsvajripfcqg458av310v"))))
5724 (build-system python-build-system)
5729 `(("pkg-config" ,pkg-config)
5730 ("python-setuptools" ,python-setuptools)))
5731 (synopsis "Python bindings for FUSE")
5733 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
5734 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
5735 (license license:lgpl2.0+)
5736 (properties `((python2-variant . ,(delay python2-llfuse))))))
5738 (define-public python2-llfuse
5739 (package (inherit (package-with-python2
5740 (strip-python2-variant python-llfuse)))
5741 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
5744 (define-public python-llfuse-0.41
5745 (package (inherit python-llfuse)
5750 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5751 "llfuse-" version ".tar.bz2"))
5754 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
5755 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
5756 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
5757 (license (list license:expat license:lgpl2.0+))))
5759 (define-public python-msgpack
5761 (name "python-msgpack")
5765 (uri (pypi-uri "msgpack-python" version))
5768 "11pqk5braa6wndpnr1dhg64js82vjgxnm0lzy73rwl831zgijaqs"))))
5769 (build-system python-build-system)
5770 (synopsis "MessagePack (de)serializer")
5771 (description "MessagePack is a fast, compact binary serialization format,
5772 suitable for similar data to JSON. This package provides CPython bindings for
5773 reading and writing MessagePack data.")
5774 (home-page "https://pypi.python.org/pypi/msgpack-python/")
5775 (license license:asl2.0)
5776 (properties `((python2-variant . ,(delay python2-msgpack))))))
5778 (define-public python2-msgpack
5779 (package (inherit (package-with-python2
5780 (strip-python2-variant python-msgpack)))
5782 `(("python2-setuptools" ,python2-setuptools)))))
5784 (define-public python-netaddr
5786 (name "python-netaddr")
5792 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
5797 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
5798 (build-system python-build-system)
5799 (arguments `(#:tests? #f)) ;; No tests.
5801 `(("python-setuptools" ,python-setuptools)))
5802 (home-page "https://github.com/drkjam/netaddr/")
5803 (synopsis "Pythonic manipulation of network addresses")
5805 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
5806 and MAC network addresses.")
5807 (license license:bsd-3)))
5809 (define-public python2-netaddr
5810 (package-with-python2 python-netaddr))
5812 (define-public python-wrapt
5814 (name "python-wrapt")
5820 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
5825 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
5826 (build-system python-build-system)
5828 ;; Tests are not included in the tarball, they are only available in the
5832 `(("python-setuptools" ,python-setuptools)))
5833 (home-page "https://github.com/GrahamDumpleton/wrapt")
5834 (synopsis "Module for decorators, wrappers and monkey patching")
5836 "The aim of the wrapt module is to provide a transparent object proxy for
5837 Python, which can be used as the basis for the construction of function
5838 wrappers and decorator functions.")
5839 (license license:bsd-2)))
5841 (define-public python2-wrapt
5842 (package-with-python2 python-wrapt))
5844 (define-public python-iso8601
5846 (name "python-iso8601")
5851 (uri (pypi-uri "iso8601" version))
5854 "0c7gh3lsdjds262h0v1sqc66l7hqgfwbakn96qrhdbl0i3vm5yz8"))))
5855 (build-system python-build-system)
5857 `(("python-setuptools" ,python-setuptools)))
5858 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
5859 (synopsis "Module to parse ISO 8601 dates")
5861 "This module parses the most common forms of ISO 8601 date strings (e.g.
5862 @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
5863 (license license:expat)))
5865 (define-public python2-iso8601
5866 (package-with-python2 python-iso8601))
5868 (define-public python-monotonic
5870 (name "python-monotonic")
5876 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
5881 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
5882 (build-system python-build-system)
5884 `(("python-setuptools" ,python-setuptools)))
5885 (home-page "https://github.com/atdt/monotonic")
5886 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
5888 "This module provides a monotonic() function which returns the value (in
5889 fractional seconds) of a clock which never goes backwards.")
5890 (license license:asl2.0)))
5892 (define-public python2-monotonic
5893 (package-with-python2 python-monotonic))
5895 (define-public python-webob
5897 (name "python-webob")
5902 (uri (pypi-uri "WebOb" version))
5905 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
5906 (build-system python-build-system)
5908 `(("python-nose" ,python-nose)
5909 ("python-setuptools" ,python-setuptools)))
5910 (home-page "http://webob.org/")
5911 (synopsis "WSGI request and response object")
5913 "WebOb provides wrappers around the WSGI request environment, and an
5914 object to help create WSGI responses.")
5915 (license license:expat)))
5917 (define-public python2-webob
5918 (package-with-python2 python-webob))
5920 (define-public python-xlrd
5922 (name "python-xlrd")
5926 (uri (pypi-uri "xlrd" version))
5929 "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g"))))
5930 (build-system python-build-system)
5933 (modify-phases %standard-phases
5934 ;; Current test in setup.py does not work as of 1.0.0, so use nose to
5935 ;; run tests instead for now.
5936 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5937 (native-inputs `(("python-nose" ,python-nose)
5938 ("python-setuptools" ,python-setuptools)))
5939 (home-page "http://www.python-excel.org/")
5940 (synopsis "Library for extracting data from Excel files")
5941 (description "This packages provides a library to extract data from
5942 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
5943 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
5944 Unicode-aware. It is not intended as an end-user tool.")
5945 (license license:bsd-3)))
5947 (define-public python2-xlrd
5948 (package-with-python2 python-xlrd))
5950 (define-public python-prettytable
5952 (name "python-prettytable")
5958 "https://pypi.python.org/packages/source/P/PrettyTable/"
5959 "prettytable-" version ".tar.bz2"))
5962 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
5963 (build-system python-build-system)
5965 `(("python-setuptools" ,python-setuptools)))
5966 (home-page "http://code.google.com/p/prettytable/")
5967 (synopsis "Display tabular data in an ASCII table format")
5969 "A library designed to represent tabular data in visually appealing ASCII
5970 tables. PrettyTable allows for selection of which columns are to be printed,
5971 independent alignment of columns (left or right justified or centred) and
5972 printing of sub-tables by specifying a row range.")
5973 (license license:bsd-3)))
5975 (define-public python2-prettytable
5976 (package-with-python2 python-prettytable))
5978 (define-public python-tables
5980 (name "python-tables")
5985 (uri (pypi-uri "tables" version))
5988 "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))))
5989 (build-system python-build-system)
5991 `(;; FIXME: python-build-system does not pass configure-flags to "build"
5992 ;; or "check", so we must override the build and check phases.
5994 (modify-phases %standard-phases
5995 (add-after 'unpack 'use-gcc
5997 (substitute* "setup.py"
5998 (("compiler = new_compiler\\(\\)" line)
6000 "\ncompiler.set_executables(compiler='gcc',"
6001 "compiler_so='gcc',"
6003 "linker_so='gcc -shared')")))
6006 (lambda* (#:key inputs #:allow-other-keys)
6007 (zero? (system* "python" "setup.py" "build"
6008 (string-append "--hdf5="
6009 (assoc-ref inputs "hdf5"))))))
6011 (lambda* (#:key inputs #:allow-other-keys)
6012 (zero? (system* "python" "setup.py" "check"
6013 (string-append "--hdf5="
6014 (assoc-ref inputs "hdf5")))))))))
6016 `(("python-numexpr" ,python-numexpr)
6017 ("python-numpy" ,python-numpy)))
6019 `(("python-setuptools" ,python-setuptools)
6020 ("python-cython" ,python-cython)
6021 ("pkg-config" ,pkg-config)))
6026 (home-page "http://www.pytables.org/")
6027 (synopsis "Hierarchical datasets for Python")
6028 (description "PyTables is a package for managing hierarchical datasets and
6029 designed to efficently cope with extremely large amounts of data.")
6030 (license license:bsd-3)))
6032 (define-public python2-tables
6033 (package-with-python2 python-tables))
6035 (define-public python-pyasn1
6037 (name "python-pyasn1")
6042 (uri (pypi-uri "pyasn1" version))
6045 "0zraxni14bqi20kr4bi6nwsh32aibz0fq0xaczfisw0zdpcsqg45"))))
6046 (build-system python-build-system)
6047 (home-page "http://pyasn1.sourceforge.net/")
6048 (synopsis "ASN.1 types and codecs")
6050 "This is an implementation of ASN.1 types and codecs in Python. It is
6051 suitable for a wide range of protocols based on the ASN.1 specification.")
6052 (license license:bsd-2)))
6054 (define-public python2-pyasn1
6055 (package-with-python2 python-pyasn1))
6057 (define-public python-pyasn1-modules
6059 (name "python-pyasn1-modules")
6064 (uri (pypi-uri "pyasn1-modules" version))
6067 "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
6068 (build-system python-build-system)
6070 `(("python-setuptools" ,python-setuptools)))
6072 `(("python-pyasn1" ,python-pyasn1)))
6073 (home-page "http://sourceforge.net/projects/pyasn1/")
6074 (synopsis "ASN.1 codec implementations")
6076 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
6077 implementations of ASN.1-based codecs and protocols.")
6078 (license license:bsd-3)))
6080 (define-public python2-pyasn1-modules
6081 (package-with-python2 python-pyasn1-modules))
6083 (define-public python-ipaddress
6085 (name "python-ipaddress")
6089 (uri (pypi-uri "ipaddress" version))
6092 "1c3imabdrw8nfksgjjflzg7h4ynjckqacb188rf541m74arq4cas"))))
6093 (build-system python-build-system)
6094 (home-page "https://github.com/phihag/ipaddress")
6095 (synopsis "IP address manipulation library")
6097 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
6098 in Python. This library is used to create, poke at, and manipulate IPv4 and
6099 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
6100 module to older versions of Python.")
6101 (license license:psfl)
6102 (properties `((python2-variant . ,(delay python2-ipaddress))))))
6104 (define-public python2-ipaddress
6105 (let ((base (package-with-python2 (strip-python2-variant python-ipaddress))))
6106 (package (inherit base)
6108 `(("python2-setuptools" ,python2-setuptools)
6109 ,@(package-native-inputs base))))))
6111 (define-public python2-ipaddr
6113 (name "python2-ipaddr")
6118 (uri (pypi-uri "ipaddr" version))
6120 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
6121 (build-system python-build-system)
6123 `(#:python ,python-2 ;version 2 only
6125 (modify-phases %standard-phases
6128 (zero? (system* "python" "ipaddr_test.py")))))))
6129 (home-page "https://github.com/google/ipaddr-py")
6130 (synopsis "IP address manipulation library")
6132 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
6133 IPv6 addresses and networks.
6135 For new implementations you may prefer to use the standard module
6136 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
6137 versions of Python.")
6138 (license license:asl2.0)))
6140 (define-public python-idna
6142 (name "python-idna")
6147 (uri (string-append "https://pypi.python.org/packages/source/i/"
6148 "idna/idna-" version ".tar.gz"))
6151 "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
6152 (build-system python-build-system)
6154 `(("python-setuptools" ,python-setuptools)))
6155 (home-page "https://github.com/kjd/idna")
6156 (synopsis "Internationalized domain names in applications")
6158 "This is a library to support the Internationalised Domain Names in
6159 Applications (IDNA) protocol as specified in RFC 5891. This version of the
6160 protocol is often referred to as “IDNA2008” and can produce different results
6161 from the earlier standard from 2003. The library is also intended to act as a
6162 suitable drop-in replacement for the “encodings.idna” module that comes with
6163 the Python standard library but currently only supports the older 2003
6165 (license license:bsd-4)))
6167 (define-public python2-idna
6168 (package-with-python2 python-idna))
6170 (define-public python-pretend
6172 (name "python-pretend")
6177 (uri (string-append "https://pypi.python.org/packages/source/p/"
6178 "pretend/pretend-" version ".tar.gz"))
6181 "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
6182 (build-system python-build-system)
6184 `(("python-setuptools" ,python-setuptools)))
6185 (home-page "https://github.com/alex/pretend")
6186 (synopsis "Library for stubbing in Python")
6188 "Pretend is a library to make stubbing with Python easier. Stubbing is a
6189 technique for writing tests. You may hear the term mixed up with mocks,
6190 fakes, or doubles. Basically, a stub is an object that returns pre-canned
6191 responses, rather than doing any computation.")
6192 (license license:bsd-3)))
6194 (define-public python2-pretend
6195 (package-with-python2 python-pretend))
6197 (define-public python-cryptography-vectors
6199 (name "python-cryptography-vectors")
6204 (uri (pypi-uri "cryptography_vectors" version))
6207 "15h1iz2klnpb4f8djxy7cpbnyn3wbjp7bnj4pz6s7w6plghbq524"))))
6208 (build-system python-build-system)
6210 `(("python-setuptools" ,python-setuptools)))
6211 (home-page "https://github.com/pyca/cryptography")
6212 (synopsis "Test vectors for the cryptography package")
6214 "This package contains test vectors for the cryptography package.")
6215 ;; Distributed under either BSD-3 or ASL2.0
6216 (license (list license:bsd-3 license:asl2.0))))
6218 (define-public python2-cryptography-vectors
6219 (package-with-python2 python-cryptography-vectors))
6221 (define-public python-cryptography
6223 (name "python-cryptography")
6228 (uri (pypi-uri "cryptography" version))
6231 "1a85l548w5vvq3yhz0az7ajg2ijixzp6gagapw6wgrqvq28ghgs2"))))
6232 (build-system python-build-system)
6235 (modify-phases %standard-phases
6236 (add-before 'check 'disable-failing-test
6238 ;; This test is known to fail with OpenSSL >= 1.0.2i and older
6239 ;; versions of python-cryptography:
6240 ;; https://github.com/pyca/cryptography/issues/3196
6241 ;; TODO: Try re-enabling the test when upgrading
6242 ;; python-cryptography.
6243 (substitute* "tests/hazmat/backends/test_openssl.py"
6244 (("def test_numeric_string_x509_name_entry")
6245 "@pytest.mark.xfail\n def test_numeric_string_x509_name_entry"))
6248 `(("openssl" ,openssl)))
6250 `(("python-cffi" ,python-cffi)
6251 ("python-six" ,python-six)
6252 ("python-pyasn1" ,python-pyasn1)
6253 ("python-idna" ,python-idna)
6254 ("python-iso8601" ,python-iso8601)))
6256 `(("python-cryptography-vectors" ,python-cryptography-vectors)
6257 ("python-hypothesis" ,python-hypothesis)
6258 ("python-setuptools" ,python-setuptools)
6259 ("python-pretend" ,python-pretend)
6260 ("python-pyasn1" ,python-pyasn1)
6261 ("python-pyasn1-modules" ,python-pyasn1-modules)
6262 ("python-pytest" ,python-pytest)))
6263 (home-page "https://github.com/pyca/cryptography")
6264 (synopsis "Cryptographic recipes and primitives for Python")
6266 "cryptography is a package which provides cryptographic recipes and
6267 primitives to Python developers. It aims to be the “cryptographic standard
6268 library” for Python. The package includes both high level recipes, and low
6269 level interfaces to common cryptographic algorithms such as symmetric ciphers,
6270 message digests and key derivation functions.")
6271 ;; Distributed under either BSD-3 or ASL2.0
6272 (license (list license:bsd-3 license:asl2.0))
6273 (properties `((python2-variant . ,(delay python2-cryptography))))))
6275 (define-public python2-cryptography
6276 (let ((crypto (package-with-python2
6277 (strip-python2-variant python-cryptography))))
6278 (package (inherit crypto)
6280 `(("python2-ipaddress" ,python2-ipaddress)
6281 ("python2-backport-ssl-match-hostname"
6282 ,python2-backport-ssl-match-hostname)
6283 ("python2-enum34" ,python2-enum34)
6284 ,@(package-propagated-inputs crypto))))))
6286 (define-public python-pyopenssl
6288 (name "python-pyopenssl")
6293 (uri (pypi-uri "pyOpenSSL" version))
6296 "0prm06zz7hl6bk5s2lqzw25lq6smayfv2fgiliw2rbqxlyiavxw8"))))
6297 (build-system python-build-system)
6299 `(("python-cryptography" ,python-cryptography)
6300 ("python-six" ,python-six)))
6302 `(("openssl" ,openssl)))
6304 `(("python-setuptools" ,python-setuptools)))
6305 (home-page "https://github.com/pyca/pyopenssl")
6306 (synopsis "Python wrapper module around the OpenSSL library")
6308 "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
6310 (license license:asl2.0)))
6312 (define-public python2-pyopenssl
6313 (package-with-python2 python-pyopenssl))
6315 (define-public python-pip
6322 (uri (pypi-uri "pip" version))
6325 "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
6326 (build-system python-build-system)
6328 `(("python-setuptools" ,python-setuptools)
6329 ("python-virtualenv" ,python-virtualenv)
6331 ("python-mock" ,python-mock)
6332 ("python-pytest" ,python-pytest)
6333 ("python-scripttest" ,python-scripttest)))
6334 (home-page "https://pip.pypa.io/")
6336 "Package manager for Python software")
6338 "Pip is a package manager for Python software, that finds packages on the
6339 Python Package Index (PyPI).")
6340 (license license:expat)))
6342 (define-public python2-pip
6343 (package-with-python2 python-pip))
6345 (define-public python-tlsh
6347 (name "python-tlsh")
6349 (home-page "https://github.com/trendmicro/tlsh")
6352 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
6356 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
6357 (file-name (string-append name "-" version ".tar.gz"))))
6358 (build-system cmake-build-system)
6360 '(#:out-of-source? #f
6361 #:phases (modify-phases %standard-phases
6364 (lambda* (#:key outputs #:allow-other-keys)
6365 ;; Build and install the Python bindings. The underlying
6366 ;; C++ library is apparently not meant to be installed.
6367 (let ((out (assoc-ref outputs "out")))
6368 (with-directory-excursion "py_ext"
6369 (and (system* "python" "setup.py" "build")
6370 (system* "python" "setup.py" "install"
6371 (string-append "--prefix=" out))))))))))
6372 (inputs `(("python" ,python-wrapper))) ;for the bindings
6373 (synopsis "Fuzzy matching library for Python")
6375 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
6376 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
6377 value which can be used for similarity comparisons. Similar objects have
6378 similar hash values, which allows for the detection of similar objects by
6379 comparing their hash values. The byte stream should have a sufficient amount
6380 of complexity; for example, a byte stream of identical bytes will not generate
6382 (license license:asl2.0)))
6384 (define-public python2-tlsh
6386 (inherit python-tlsh)
6387 (name "python2-tlsh")
6388 (inputs `(("python" ,python-2)))))
6390 (define-public python-termcolor
6392 (name "python-termcolor")
6397 (uri (pypi-uri "python-termcolor" version))
6400 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
6401 (build-system python-build-system)
6403 ;; There are no tests.
6405 (home-page "http://pypi.python.org/pypi/termcolor")
6406 (synopsis "ANSII Color formatting for terminal output")
6408 "This package provides ANSII Color formatting for output in terminals.")
6409 (license license:expat)))
6411 (define-public python2-termcolor
6412 (package-with-python2 python-termcolor))
6414 (define-public python-libarchive-c
6416 (name "python-libarchive-c")
6420 (uri (pypi-uri "libarchive-c" version))
6423 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
6424 (build-system python-build-system)
6426 '(#:phases (modify-phases %standard-phases
6428 'build 'reference-libarchive
6429 (lambda* (#:key inputs #:allow-other-keys)
6430 ;; Retain the absolute file name of libarchive.so.
6431 (let ((libarchive (assoc-ref inputs "libarchive")))
6432 (substitute* "libarchive/ffi.py"
6433 (("find_library\\('archive'\\)")
6434 (string-append "'" libarchive
6435 "/lib/libarchive.so'"))))
6437 ;; Do not make a compressed egg (see
6438 ;; <http://bugs.gnu.org/20765>).
6439 (let ((port (open-file "setup.cfg" "a")))
6440 (display "\n[easy_install]\nzip_ok = 0\n"
6445 `(("python-setuptools" ,python-setuptools)
6446 ("libarchive" ,libarchive)))
6447 (home-page "https://github.com/Changaco/python-libarchive-c")
6448 (synopsis "Python interface to libarchive")
6450 "This package provides Python bindings to libarchive, a C library to
6451 access possibly compressed archives in many different formats. It uses
6452 Python's @code{ctypes} foreign function interface (FFI).")
6453 (license license:lgpl2.0+)))
6455 (define-public python2-libarchive-c
6456 (package-with-python2 python-libarchive-c))
6458 (define-public python-file
6461 (name "python-file")
6463 (inherit (package-source file))
6464 ;; This patch should not be applied to python2-file.
6465 (patches (search-patches "python-file-double-encoding-bug.patch"))))
6466 (build-system python-build-system)
6468 '(#:tests? #f ;no tests
6469 #:configure-flags '("--single-version-externally-managed" "--root=/")
6470 #:phases (modify-phases %standard-phases
6471 (add-before 'build 'change-directory
6475 (add-before 'build 'set-library-file-name
6476 (lambda* (#:key inputs #:allow-other-keys)
6477 (let ((file (assoc-ref inputs "file")))
6478 (substitute* "magic.py"
6479 (("find_library\\('magic'\\)")
6480 (string-append "'" file "/lib/libmagic.so'")))
6482 (inputs `(("file" ,file)))
6483 (self-native-input? #f)
6484 (synopsis "Python bindings to the libmagic file type guesser. Note that
6485 this module and the python-magic module both provide a \"magic.py\" file;
6486 these two modules, which are different and were developed separately, both
6487 serve the same purpose: provide Python bindings for libmagic.")
6488 (properties `((python2-variant . ,(delay python2-file))))))
6490 (define-public python2-file
6491 (let ((base (package-with-python2 (strip-python2-variant python-file))))
6494 (source (package-source file))
6496 `(("python2-setuptools" ,python2-setuptools)
6497 ,@(package-native-inputs base))))))
6499 (define-public python-debian
6501 (name "python-debian")
6507 "https://pypi.python.org/packages/source/p/python-debian/python-debian-"
6511 "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
6512 (build-system python-build-system)
6514 `(("python-six" ,python-six)))
6516 `(("python-setuptools" ,python-setuptools)))
6517 (home-page "http://packages.debian.org/sid/python-debian")
6518 (synopsis "Debian package related modules")
6520 ;; XXX: Use @enumerate instead of @itemize to work around
6521 ;; <http://bugs.gnu.org/21772>.
6522 "This package provides Python modules that abstract many formats of
6523 Debian-related files, such as:
6526 @item Debtags information;
6527 @item @file{debian/changelog} files;
6528 @item packages files, pdiffs;
6529 @item control files of single or multiple RFC822-style paragraphs---e.g.
6530 @file{debian/control}, @file{.changes}, @file{.dsc};
6531 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6532 contained files and meta-information.
6535 ;; Modules are either GPLv2+ or GPLv3+.
6536 (license license:gpl3+)))
6538 (define-public python2-debian
6539 (package-with-python2 python-debian))
6541 (define-public python-chardet
6543 (name "python-chardet")
6549 "https://pypi.python.org/packages/source/c/chardet/chardet-"
6554 "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
6555 (build-system python-build-system)
6557 `(("python-setuptools" ,python-setuptools)))
6558 (home-page "https://github.com/chardet/chardet")
6559 (synopsis "Universal encoding detector for Python 2 and 3")
6561 "This package provides @code{chardet}, a Python module that can
6562 automatically detect a wide range of file encodings.")
6563 (license license:lgpl2.1+)))
6565 (define-public python2-chardet
6566 (package-with-python2 python-chardet))
6568 (define-public python-docopt
6570 (name "python-docopt")
6575 ;; The release on PyPI does not include tests.
6577 "https://github.com/docopt/docopt/archive/"
6579 (file-name (string-append name "-" version ".tar.gz"))
6582 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
6583 (build-system python-build-system)
6585 `(("python-pytest" ,python-pytest)
6586 ("python-setuptools" ,python-setuptools)))
6588 `(#:phases (alist-replace
6590 (lambda _ (zero? (system* "py.test")))
6592 (home-page "http://docopt.org")
6593 (synopsis "Command-line interface description language for Python")
6594 (description "This library allows the user to define a command-line
6595 interface from a program's help message rather than specifying it
6596 programatically with command-line parsers like @code{getopt} and
6598 (license license:expat)))
6600 (define-public python2-docopt
6601 (package-with-python2 python-docopt))
6603 (define-public python-zope-event
6605 (name "python-zope-event")
6610 (uri (string-append "https://pypi.python.org/packages/source/z"
6611 "/zope.event/zope.event-" version ".tar.gz"))
6614 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
6615 (build-system python-build-system)
6617 `(("python-setuptools" ,python-setuptools)))
6618 (home-page "http://pypi.python.org/pypi/zope.event")
6619 (synopsis "Event publishing system for Python")
6620 (description "Zope.event provides an event publishing API, intended for
6621 use by applications which are unaware of any subscribers to their events. It
6622 is a simple event-dispatching system on which more sophisticated event
6623 dispatching systems can be built.")
6624 (license license:zpl2.1)))
6626 (define-public python2-zope-event
6627 (package-with-python2 python-zope-event))
6629 (define-public python-zope-interface
6631 (name "python-zope-interface")
6636 (uri (string-append "https://pypi.python.org/packages/source/z"
6637 "/zope.interface/zope.interface-" version ".tar.gz"))
6640 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
6641 (build-system python-build-system)
6643 `(("python-zope-event" ,python-zope-event)))
6644 (home-page "https://github.com/zopefoundation/zope.interface")
6645 (synopsis "Python implementation of the \"design by contract\"
6647 (description "Zope.interface provides an implementation of \"object
6648 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
6649 conforming to a given API or contract.")
6650 (license license:zpl2.1)))
6652 (define-public python2-zope-interface
6653 (package-with-python2 python-zope-interface))
6655 (define-public python-zope-exceptions
6657 (name "python-zope-exceptions")
6662 (uri (string-append "https://pypi.python.org/packages/source/z"
6663 "/zope.exceptions/zope.exceptions-"
6667 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
6668 (build-system python-build-system)
6670 '(#:tests? #f)) ; circular dependency with zope.testrunner
6672 `(("python-zope-interface" ,python-zope-interface)))
6673 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
6674 (synopsis "Zope exceptions")
6675 (description "Zope.exceptions provides general-purpose exception types
6676 that have uses outside of the Zope framework.")
6677 (license license:zpl2.1)))
6679 (define-public python2-zope-exceptions
6680 (package-with-python2 python-zope-exceptions))
6682 (define-public python-zope-testing
6684 (name "python-zope-testing")
6689 (uri (string-append "https://pypi.python.org/packages/source/z"
6690 "/zope.testing/zope.testing-" version ".tar.gz"))
6693 "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))
6694 (modules '((guix build utils)))
6697 ;; Remove pre-compiled .pyc files backup files from source.
6698 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
6700 (build-system python-build-system)
6702 `(("python-zope-exceptions" ,python-zope-exceptions)))
6704 `(("python-zope-interface" ,python-zope-interface)))
6705 (home-page "http://pypi.python.org/pypi/zope.testing")
6706 (synopsis "Zope testing helpers")
6707 (description "Zope.testing provides a number of testing utilities for HTML
6708 forms, HTTP servers, regular expressions, and more.")
6709 (license license:zpl2.1)))
6711 (define-public python2-zope-testing
6712 (package-with-python2 python-zope-testing))
6714 (define-public python-zope-testrunner
6716 (name "python-zope-testrunner")
6721 (uri (string-append "https://pypi.python.org/packages/source/z"
6722 "/zope.testrunner/zope.testrunner-"
6726 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
6727 (build-system python-build-system)
6729 `(("python-six" ,python-six)
6730 ("python-zope-exceptions" ,python-zope-exceptions)
6731 ("python-zope-testing" ,python-zope-testing)
6734 `(("python-zope-interface" ,python-zope-interface)))
6735 (home-page "http://pypi.python.org/pypi/zope.testrunner")
6736 (synopsis "Zope testrunner script")
6737 (description "Zope.testrunner provides a script for running Python
6739 (license license:zpl2.1)))
6741 (define-public python2-zope-testrunner
6742 (let ((base (package-with-python2 python-zope-testrunner)))
6746 (append (package-native-inputs base)
6747 `(("python2-subunit" ,python2-subunit)
6748 ("python2-mimeparse" ,python2-mimeparse)))))))
6750 (define-public python-zope-i18nmessageid
6752 (name "python-zope-i18nmessageid")
6758 "https://pypi.python.org/packages/source/z"
6759 "/zope.i18nmessageid/zope.i18nmessageid-"
6763 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
6764 (build-system python-build-system)
6766 `(("python-setuptools" ,python-setuptools)))
6767 (home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
6768 (synopsis "Message identifiers for internationalization")
6769 (description "Zope.i18nmessageid provides facilities for declaring
6770 internationalized messages within program source text.")
6771 (license license:zpl2.1)))
6773 (define-public python2-zope-i18nmessageid
6774 (package-with-python2 python-zope-i18nmessageid))
6776 (define-public python-zope-schema
6778 (name "python-zope-schema")
6783 (uri (string-append "https://pypi.python.org/packages/source/z"
6784 "/zope.schema/zope.schema-" version ".tar.gz"))
6787 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
6788 (build-system python-build-system)
6790 `(("python-zope-event" ,python-zope-event)
6791 ("python-zope-interface" ,python-zope-interface)))
6793 `(("python-zope-testing" ,python-zope-testing)))
6794 (home-page "http://pypi.python.org/pypi/zope.schema")
6795 (synopsis "Zope data schemas")
6796 (description "Zope.scheme provides extensions to zope.interface for
6797 defining data schemas.")
6798 (license license:zpl2.1)))
6800 (define-public python2-zope-schema
6801 (package-with-python2 python-zope-schema))
6803 (define-public python-zope-configuration
6805 (name "python-zope-configuration")
6809 (uri (string-append "https://pypi.python.org/packages/source/z"
6810 "/zope.configuration/zope.configuration-"
6814 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
6815 (build-system python-build-system)
6817 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6818 ("python-zope-schema" ,python-zope-schema)))
6819 (home-page "http://pypi.python.org/pypi/zope.configuration")
6820 (synopsis "Zope Configuration Markup Language")
6821 (description "Zope.configuration implements ZCML, the Zope Configuration
6823 (license license:zpl2.1)))
6825 (define-public python2-zope-configuration
6826 (package-with-python2 python-zope-configuration))
6828 (define-public python-zope-proxy
6830 (name "python-zope-proxy")
6835 (uri (string-append "https://pypi.python.org/packages/source/z"
6836 "/zope.proxy/zope.proxy-" version ".tar.gz"))
6839 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
6840 (build-system python-build-system)
6842 `(("python-zope-interface" ,python-zope-interface)))
6843 (home-page "http://pypi.python.org/pypi/zope.proxy")
6844 (synopsis "Generic, transparent proxies")
6845 (description "Zope.proxy provides generic, transparent proxies for Python.
6846 Proxies are special objects which serve as mostly-transparent wrappers around
6847 another object, intervening in the apparent behavior of the wrapped object
6848 only when necessary to apply the policy (e.g., access checking, location
6849 brokering, etc.) for which the proxy is responsible.")
6850 (license license:zpl2.1)))
6852 (define-public python2-zope-proxy
6853 (package-with-python2 python-zope-proxy))
6855 (define-public python-zope-location
6857 (name "python-zope-location")
6862 (uri (string-append "https://pypi.python.org/packages/source/z"
6863 "/zope.location/zope.location-" version ".tar.gz"))
6866 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
6867 (build-system python-build-system)
6869 `(("python-zope-proxy" ,python-zope-proxy)
6870 ("python-zope-schema" ,python-zope-schema)))
6871 (home-page "http://pypi.python.org/pypi/zope.location/")
6872 (synopsis "Zope location library")
6873 (description "Zope.location implements the concept of \"locations\" in
6874 Zope3, which are are special objects that have a structural location.")
6875 (license license:zpl2.1)))
6877 (define-public python2-zope-location
6878 (package-with-python2 python-zope-location))
6880 (define-public python-zope-security
6882 (name "python-zope-security")
6887 (uri (string-append "https://pypi.python.org/packages/source/z"
6888 "/zope.security/zope.security-" version ".tar.gz"))
6891 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
6892 (build-system python-build-system)
6894 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6895 ("python-zope-component" ,python-zope-component)
6896 ("python-zope-location" ,python-zope-location)
6897 ("python-zope-proxy" ,python-zope-proxy)
6898 ("python-zope-schema" ,python-zope-schema)
6899 ("python-zope-testrunner" ,python-zope-testrunner)
6900 ("python-zope-testing" ,python-zope-testing)))
6901 (home-page "http://pypi.python.org/pypi/zope.security")
6902 (synopsis "Zope security framework")
6903 (description "Zope.security provides a generic mechanism to implement
6904 security policies on Python objects.")
6905 (license license:zpl2.1)))
6907 (define-public python2-zope-security
6908 (let ((zope-security (package-with-python2 python-zope-security)))
6909 (package (inherit zope-security)
6911 `(("python2-zope-testrunner" ,python2-zope-testrunner)
6913 "python-zope-testrunner"
6914 (package-propagated-inputs zope-security)))))))
6916 (define-public python-zope-component
6918 (name "python-zope-component")
6923 (uri (string-append "https://pypi.python.org/packages/source/z"
6924 "/zope.component/zope.component-" version ".tar.gz"))
6927 "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
6928 (build-system python-build-system)
6930 ;; Skip tests due to circular dependency with python-zope-security.
6933 `(("python-zope-testing" ,python-zope-testing)))
6935 `(("python-zope-event" ,python-zope-event)
6936 ("python-zope-interface" ,python-zope-interface)
6937 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6938 ("python-zope-configuration" ,python-zope-configuration)))
6939 (home-page "https://github.com/zopefoundation/zope.component")
6940 (synopsis "Zope Component Architecture")
6941 (description "Zope.component represents the core of the Zope Component
6942 Architecture. Together with the zope.interface package, it provides
6943 facilities for defining, registering and looking up components.")
6944 (license license:zpl2.1)))
6946 (define-public python2-zope-component
6947 (package-with-python2 python-zope-component))
6949 (define-public python-pythondialog
6951 (name "python-pythondialog")
6956 (uri (pypi-uri "pythondialog" version))
6959 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
6960 (build-system python-build-system)
6963 (modify-phases %standard-phases
6964 (add-after 'unpack 'patch-path
6965 (lambda* (#:key inputs #:allow-other-keys)
6966 (let* ((dialog (assoc-ref inputs "dialog")))
6967 ;; Since this library really wants to grovel the search path, we
6968 ;; must hardcode dialog's store path into it.
6969 (substitute* "dialog.py"
6970 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
6971 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
6973 #:tests? #f)) ; no test suite
6975 `(("dialog" ,dialog)))
6976 (home-page "http://pythondialog.sourceforge.net/")
6977 (synopsis "Python interface to the UNIX dialog utility")
6978 (description "A Python wrapper for the dialog utility. Its purpose is to
6979 provide an easy to use, pythonic and comprehensive Python interface to dialog.
6980 This allows one to make simple text-mode user interfaces on Unix-like systems")
6981 (license license:lgpl2.1)
6982 (properties `((python2-variant . ,(delay python2-pythondialog))))))
6984 (define-public python2-pythondialog
6985 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
6988 (version (package-version python-pythondialog))
6991 (uri (pypi-uri "python2-pythondialog" version))
6994 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
6996 (define-public python-pyrfc3339
6998 (name "python-pyrfc3339")
7003 (uri (pypi-uri "pyRFC3339" version))
7006 "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
7007 (build-system python-build-system)
7009 `(("python-pytz" ,python-pytz)))
7011 `(("python-nose" ,python-nose)
7012 ("python-setuptools" ,python-setuptools)))
7013 (home-page "https://github.com/kurtraschke/pyRFC3339")
7014 (synopsis "Python timestamp library")
7015 (description "Python library for generating and parsing RFC 3339-compliant
7017 (license license:expat)))
7019 (define-public python2-pyrfc3339
7020 (package-with-python2 python-pyrfc3339))
7022 (define-public python-werkzeug
7024 (name "python-werkzeug")
7029 (uri (pypi-uri "Werkzeug" version))
7032 "1rgpq8a2qv26d75v9j3b074inirlyy6y4b5x4rxblp202jy4cb77"))))
7033 (build-system python-build-system)
7035 `(("python-pytest" ,python-pytest)))
7036 (home-page "http://werkzeug.pocoo.org/")
7037 (synopsis "Utilities for WSGI applications")
7038 (description "One of the most advanced WSGI utility modules. It includes a
7039 powerful debugger, full-featured request and response objects, HTTP utilities to
7040 handle entity tags, cache control headers, HTTP dates, cookie handling, file
7041 uploads, a powerful URL routing system and a bunch of community-contributed
7043 (license license:x11)))
7045 (define-public python2-werkzeug
7046 (package-with-python2 python-werkzeug))
7048 (define-public python-configobj
7050 (name "python-configobj")
7055 "https://pypi.python.org/packages/source/c/configobj/"
7056 "configobj-" version ".tar.gz"))
7059 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
7060 ;; Patch setup.py so it looks for python-setuptools, which is
7061 ;; required to parse the keyword 'install_requires' in setup.py.
7062 (patches (search-patches "python-configobj-setuptools.patch"))))
7063 (build-system python-build-system)
7065 `(("python-setuptools" ,python-setuptools)
7066 ("python-six" ,python-six)))
7067 (synopsis "Config file reading, writing and validation")
7068 (description "ConfigObj is a simple but powerful config file reader and
7069 writer: an ini file round tripper. Its main feature is that it is very easy to
7070 use, with a straightforward programmer’s interface and a simple syntax for
7072 (home-page "https://github.com/DiffSK/configobj")
7073 (license license:bsd-3)))
7075 (define-public python2-configobj
7076 (package-with-python2 python-configobj))
7078 (define-public python-configargparse
7080 (name "python-configargparse")
7085 "https://pypi.python.org/packages/source/C/ConfigArgParse/"
7086 "ConfigArgParse-" version ".tar.gz"))
7089 "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
7090 (build-system python-build-system)
7092 ;; FIXME: Bug in test suite filed upstream:
7093 ;; https://github.com/bw2/ConfigArgParse/issues/32
7095 (synopsis "Replacement for argparse")
7096 (description "A drop-in replacement for argparse that allows options to also
7097 be set via config files and/or environment variables.")
7098 (home-page "https://github.com/bw2/ConfigArgParse")
7099 (license license:expat)))
7101 (define-public python2-configargparse
7102 (package-with-python2 python-configargparse))
7104 (define-public python-ndg-httpsclient
7106 (name "python-ndg-httpsclient")
7111 "https://pypi.python.org/packages/source/n/ndg-httpsclient/"
7112 "ndg_httpsclient-" version ".tar.gz"))
7115 "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
7116 (build-system python-build-system)
7118 '(;; The tests appear to require networking.
7121 `(("python-pyopenssl" ,python-pyopenssl)))
7122 (synopsis "HTTPS support for Python's httplib and urllib2")
7123 (description "This is a HTTPS client implementation for httplib and urllib2
7124 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
7125 over the default provided with Python and importantly enables full verification
7127 (home-page "https://github.com/cedadev/ndg_httpsclient/")
7128 (license license:bsd-3)))
7130 ;; python2-openssl requires special care, so package-with-python2 is
7132 (define-public python2-ndg-httpsclient
7133 (package (inherit python-ndg-httpsclient)
7134 (name "python2-ndg-httpsclient")
7135 (arguments `(#:python ,python-2))
7137 `(("python2-pyopenssl" ,python2-pyopenssl)))))
7139 (define-public python-contextlib2
7141 (name "python-contextlib2")
7146 (uri (pypi-uri "contextlib2" version))
7149 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
7150 (build-system python-build-system)
7153 (modify-phases %standard-phases
7157 "python" "test_contextlib2.py" "-v")))))))
7158 (home-page "http://contextlib2.readthedocs.org/")
7159 (synopsis "Tools for decorators and context managers")
7160 (description "This module is primarily a backport of the Python
7161 3.2 contextlib to earlier Python versions. Like contextlib, it
7162 provides utilities for common tasks involving decorators and context
7163 managers. It also contains additional features that are not part of
7164 the standard library.")
7165 (license license:psfl)))
7167 (define-public python2-contextlib2
7168 (package-with-python2 python-contextlib2))
7170 (define-public python-texttable
7172 (name "python-texttable")
7177 (uri (pypi-uri "texttable" version))
7180 "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
7181 (build-system python-build-system)
7182 (arguments '(#:tests? #f)) ; no tests
7183 (home-page "https://github.com/foutaise/texttable/")
7184 (synopsis "Python module for creating simple ASCII tables")
7185 (description "Texttable is a Python module for creating simple ASCII
7187 (license license:lgpl2.1+)))
7189 (define-public python2-texttable
7190 (package-with-python2 python-texttable))
7192 (define-public python-websocket-client
7194 (name "python-websocket-client")
7199 (uri (pypi-uri "websocket_client" version))
7202 "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7"))))
7203 (build-system python-build-system)
7205 `(("python-six" ,python-six))) ; for tests
7207 `(("python-setuptools" ,python-setuptools)))
7208 (home-page "https://github.com/liris/websocket-client")
7209 (synopsis "WebSocket client for Python")
7210 (description "The Websocket-client module provides the low level APIs for
7211 WebSocket usage in Python programs.")
7212 (license license:lgpl2.1+)))
7214 (define-public python2-websocket-client
7215 (package-with-python2 python-websocket-client))
7217 (define-public python-atomicwrites
7219 (name "python-atomicwrites")
7223 (uri (pypi-uri "atomicwrites" version))
7226 "1s01dci8arsl9d9vr5nz1fk9znldp1z3l4yl43f0c27z12b8yxl0"))))
7227 (build-system python-build-system)
7228 (synopsis "Atomic file writes in Python")
7229 (description "Library for atomic file writes using platform dependent tools
7230 for atomic file system operations.")
7231 (home-page "https://github.com/untitaker/python-atomicwrites")
7232 (license license:expat)
7233 (properties `((python2-variant . ,(delay python2-atomicwrites))))))
7235 (define-public python2-atomicwrites
7236 (package (inherit (package-with-python2
7237 (strip-python2-variant python-atomicwrites)))
7239 `(("python2-setuptools" ,python2-setuptools)))))
7241 (define-public python-requests-toolbelt
7243 (name "python-requests-toolbelt")
7248 "https://pypi.python.org/packages/"
7249 "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/"
7250 "requests-toolbelt-" version ".tar.gz"))
7253 "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6"))))
7254 (build-system python-build-system)
7256 `(("python-betamax" ,python-betamax)
7257 ("python-mock" ,python-mock)
7258 ("python-pytest" ,python-pytest)))
7260 `(("python-requests" ,python-requests)))
7261 (synopsis "Extensions to python-requests")
7262 (description "This is a toolbelt of useful classes and functions to be used
7263 with python-requests.")
7264 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
7265 (license license:asl2.0)))
7267 (define-public python-click-threading
7269 (name "python-click-threading")
7274 "https://pypi.python.org/packages/"
7275 "fe/b7/e7f609d18a2a351cb71616adcf54df1acd82f83cb9b5936935a4d20e2c23/"
7276 "click-threading-" version ".tar.gz"))
7279 "18bcqikxwb3drb8rf60cclxkxw52521b38ax3byah6j8cn8y9p4j"))))
7280 (build-system python-build-system)
7282 `(("python-click" ,python-click)))
7283 (synopsis "Utilities for multithreading in Click")
7284 (description "This package provides utilities for multithreading in Click
7286 (home-page "https://github.com/click-contrib/click-threading")
7287 (license license:expat)))
7289 (define-public python-click-log
7291 (name "python-click-log")
7295 (uri (pypi-uri "click-log" version))
7298 "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
7299 (build-system python-build-system)
7301 `(("python-click" ,python-click)))
7302 (synopsis "Logging for click applications")
7303 (description "This package provides a Python library for logging Click
7305 (home-page "https://github.com/click-contrib/click-log")
7306 (license license:expat)))
7308 (define-public python-apipkg
7310 (name "python-apipkg")
7314 (uri (pypi-uri "apipkg" version))
7317 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
7318 (build-system python-build-system)
7320 `(("python-pytest" ,python-pytest)))
7321 (synopsis "Namespace control and lazy-import mechanism")
7322 (description "With apipkg you can control the exported namespace of a Python
7323 package and greatly reduce the number of imports for your users. It is a small
7324 pure Python module that works on virtually all Python versions.")
7325 (home-page "https://bitbucket.org/hpk42/apipkg")
7326 (license license:expat)
7327 (properties `((python2-variant . ,(delay python2-apipkg))))))
7329 (define-public python2-apipkg
7331 (inherit (package-with-python2
7332 (strip-python2-variant python-apipkg)))
7334 `(("python2-setuptools" ,python2-setuptools)))))
7336 (define-public python-execnet
7338 (name "python-execnet")
7342 (uri (pypi-uri "execnet" version))
7345 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
7346 (build-system python-build-system)
7348 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
7349 ;; The two test failures are caused by the lack of an `ssh` executable.
7350 ;; The test suite can be run with pytest after the 'install' phase.
7353 `(("python-pytest" ,python-pytest)
7354 ("python-setuptools-scm" ,python-setuptools-scm)))
7356 `(("python-apipkg" ,python-apipkg)))
7357 (synopsis "Rapid multi-Python deployment")
7358 (description "Execnet provides a share-nothing model with
7359 channel-send/receive communication for distributing execution across many
7360 Python interpreters across version, platform and network barriers. It has a
7361 minimal and fast API targetting the following uses:
7363 @item distribute tasks to (many) local or remote CPUs
7364 @item write and deploy hybrid multi-process applications
7365 @item write scripts to administer multiple environments
7367 (home-page "http://codespeak.net/execnet/")
7368 (license license:expat)
7369 (properties `((python2-variant . ,(delay python2-execnet))))))
7371 (define-public python2-execnet
7372 (let ((execnet (package-with-python2
7373 (strip-python2-variant python-execnet))))
7377 `(("python2-setuptools" ,python2-setuptools)
7378 ,@(package-native-inputs execnet))))))
7380 ;;; The software provided by this package was integrated into pytest 2.8.
7381 (define-public python-pytest-cache
7383 (name "python-pytest-cache")
7387 (uri (pypi-uri "pytest-cache" version))
7390 "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
7391 (build-system python-build-system)
7393 `(("python-apipkg" ,python-apipkg)
7394 ("python-execnet" ,python-execnet)
7395 ("python-py" ,python-py)
7396 ("python-pytest" ,python-pytest)))
7397 (synopsis "Py.test plugin with mechanisms for caching across test runs")
7398 (description "The pytest-cache plugin provides tools to rerun failures from
7399 the last py.test invocation.")
7400 (home-page "https://bitbucket.org/hpk42/pytest-cache/")
7401 (license license:expat)
7402 (properties `((python2-variant . ,(delay python2-pytest-cache))))))
7404 (define-public python2-pytest-cache
7405 (let ((pytest-cache (package-with-python2
7406 (strip-python2-variant python-pytest-cache))))
7408 (inherit pytest-cache)
7410 `(("python2-setuptools" ,python2-setuptools)
7411 ,@(package-native-inputs pytest-cache))))))
7413 (define-public python-pytest-localserver
7415 (name "python-pytest-localserver")
7419 (uri (pypi-uri "pytest-localserver" version))
7422 "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
7423 (build-system python-build-system)
7425 `(#:phases (modify-phases %standard-phases
7428 (zero? (system* "py.test" "--genscript=runtests.py"))
7429 (zero? (system* "py.test")))))))
7431 `(("python-pytest" ,python-pytest)
7432 ("python-requests" ,python-requests)
7433 ("python-six" ,python-six)))
7435 `(("python-werkzeug" ,python-werkzeug)))
7436 (synopsis "Py.test plugin to test server connections locally")
7437 (description "Pytest-localserver is a plugin for the pytest testing
7438 framework which enables you to test server connections locally.")
7439 (home-page "https://pypi.python.org/pypi/pytest-localserver")
7440 (license license:expat)))
7442 (define-public python-wsgi-intercept
7444 (name "python-wsgi-intercept")
7449 "https://pypi.python.org/packages/"
7450 "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/"
7451 "wsgi_intercept-" version ".tar.gz"))
7454 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
7455 (build-system python-build-system)
7457 `(("python-pytest" ,python-pytest)
7458 ("python-six" ,python-six)
7459 ("python-urllib3" ,python-urllib3)))
7461 `(("python-httplib2" ,python-httplib2)
7462 ("python-requests" ,python-requests)))
7463 (synopsis "Puts a WSGI application in place of a real URI for testing")
7464 (description "Wsgi_intercept installs a WSGI application in place of a real
7465 URI for testing. Testing a WSGI application normally involves starting a
7466 server at a local host and port, then pointing your test code to that address.
7467 Instead, this library lets you intercept calls to any specific host/port
7468 combination and redirect them into a WSGI application importable by your test
7469 program. Thus, you can avoid spawning multiple processes or threads to test
7471 (home-page "https://github.com/cdent/wsgi-intercept")
7472 (license license:expat)))
7474 (define-public python-pytest-xprocess
7476 (name "python-pytest-xprocess")
7480 (uri (pypi-uri "pytest-xprocess" version))
7483 "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
7484 (build-system python-build-system)
7486 `(("python-pytest" ,python-pytest)
7487 ("python-pytest-cache" ,python-pytest-cache)
7488 ("python-psutil" ,python-psutil)))
7489 (synopsis "Pytest plugin to manage external processes across test runs")
7490 (description "Pytest-xprocess is an experimental py.test plugin for managing
7491 processes across test runs.")
7492 (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
7493 (license license:expat)))
7495 (define-public python-icalendar
7497 (name "python-icalendar")
7501 (uri (pypi-uri "icalendar" version))
7504 "01amnk3621s7fagfla86npd25knbqirchg7h1jpqxqp103d02bs7"))))
7505 (build-system python-build-system)
7507 `(("python-dateutil-2" ,python-dateutil-2)
7508 ("python-pytz" ,python-pytz)))
7509 (synopsis "Python library for parsing iCalendar files")
7510 (description "The icalendar package is a parser/generator of iCalendar
7511 files for use with Python.")
7512 (home-page "https://github.com/collective/icalendar")
7513 (license license:bsd-2)))
7515 (define-public python-sphinxcontrib-newsfeed
7517 (name "python-sphinxcontrib-newsfeed")
7521 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
7524 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
7525 (build-system python-build-system)
7527 `(("python-docutils" ,python-docutils)
7528 ("python-sphinx" ,python-sphinx)))
7529 (synopsis "News Feed extension for Sphinx")
7530 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
7531 Blog, News or Announcements section to a Sphinx website.")
7532 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
7533 (license license:bsd-2)))
7535 (define-public python-args
7537 (name "python-args")
7541 (uri (pypi-uri "args" version))
7544 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
7545 (build-system python-build-system)
7547 `(("python-setuptools" ,python-setuptools)))
7548 (home-page "https://github.com/kennethreitz/args")
7549 (synopsis "Command-line argument parser")
7551 "This library provides a Python module to parse command-line arguments.")
7552 (license license:bsd-3)))
7554 (define-public python2-args
7555 (package-with-python2 python-args))
7557 (define-public python-clint
7559 (name "python-clint")
7563 (uri (pypi-uri "clint" version))
7566 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
7567 (build-system python-build-system)
7569 `(("python-args" ,python-args)
7570 ("python-setuptools" ,python-setuptools)))
7571 (home-page "https://github.com/kennethreitz/clint")
7572 (synopsis "Command-line interface tools")
7574 "Clint is a Python module filled with a set of tools for developing
7575 command-line applications, including tools for colored and indented
7576 output, progress bar display, and pipes.")
7577 (license license:isc)))
7579 (define-public python2-clint
7580 (package-with-python2 python-clint))
7582 (define-public python-astor
7584 (name "python-astor")
7588 (uri (pypi-uri "astor" version))
7591 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
7592 (build-system python-build-system)
7594 `(("python-setuptools" ,python-setuptools)))
7595 (home-page "https://github.com/berkerpeksag/astor")
7596 (synopsis "Read and write Python ASTs")
7598 "Astor is designed to allow easy manipulation of Python source via the
7599 Abstract Syntax Tree.")
7600 (license license:bsd-3)))
7602 (define-public python2-astor
7603 (package-with-python2 python-astor))
7605 (define-public python-rply
7607 (name "python-rply")
7611 (uri (pypi-uri "rply" version))
7614 "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
7615 (build-system python-build-system)
7617 `(("python-appdirs" ,python-appdirs)
7618 ("python-setuptools" ,python-setuptools)))
7619 (home-page "https://github.com/alex/rply")
7620 (synopsis "Parser generator for Python")
7622 "This package provides a pure Python based parser generator, that also
7623 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
7624 with a new public API, and RPython support.")
7625 (license license:bsd-3)))
7627 (define-public python2-rply
7628 (package-with-python2 python-rply))
7630 (define-public python-hy
7636 (uri (pypi-uri "hy" version))
7639 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
7640 (build-system python-build-system)
7642 `(("python-astor" ,python-astor)
7643 ("python-clint" ,python-clint)
7644 ("python-rply" ,python-rply)
7645 ("python-setuptools" ,python-setuptools)))
7646 (home-page "http://hylang.org/")
7647 (synopsis "Lisp frontend to Python")
7649 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
7650 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
7651 Python at your fingertips, in Lisp form.")
7652 (license license:expat)))
7654 (define-public python2-hy
7655 (package-with-python2 python-hy))
7657 (define-public python-rauth
7659 (name "python-rauth")
7664 (uri (pypi-uri "rauth" version))
7667 "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
7668 (build-system python-build-system)
7670 `(#:test-target "check"))
7672 `(("python-requests" ,python-requests)))
7673 (home-page "https://github.com/litl/rauth")
7674 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
7676 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
7677 provides service wrappers for convenient connection initialization and
7678 authenticated session objects providing things like keep-alive.")
7679 (license license:expat)
7680 (properties `((python2-variant . ,(delay python2-rauth))))))
7682 (define-public python2-rauth
7683 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
7686 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7687 ("python2-unittest2" ,python2-unittest2)
7688 ,@(package-native-inputs base))))))
7690 (define-public python2-functools32
7692 (name "python2-functools32")
7697 (uri (pypi-uri "functools32" version))
7700 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
7701 (build-system python-build-system)
7703 `(#:python ,python-2
7704 #:tests? #f)) ; no test target
7706 `(("python2-setuptools" ,python2-setuptools)))
7707 (home-page "https://github.com/MiCHiLU/python-functools32")
7709 "Backport of the functools module from Python 3.2.3")
7711 "This package is a backport of the @code{functools} module from Python
7712 3.2.3 for use with older versions of Python and PyPy.")
7713 (license license:expat)))
7715 (define-public python2-futures
7717 (name "python2-futures")
7722 (uri (pypi-uri "futures" version))
7725 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
7726 (build-system python-build-system)
7727 (arguments `(#:python ,python-2))
7729 `(("python2-setuptools" ,python2-setuptools)))
7730 (home-page "https://github.com/agronholm/pythonfutures")
7732 "Backport of the concurrent.futures package from Python 3.2")
7734 "The concurrent.futures module provides a high-level interface for
7735 asynchronously executing callables. This package backports the
7736 concurrent.futures package from Python 3.2")
7737 (license license:bsd-3)))
7739 (define-public python-promise
7741 (name "python-promise")
7746 (uri (pypi-uri "promise" version))
7749 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
7750 (build-system python-build-system)
7751 ;; Tests wants python-futures, which is a python2 only program, and
7752 ;; can't be found by python-promise at test time.
7753 (arguments `(#:tests? #f))
7754 (home-page "https://github.com/syrusakbary/promise")
7755 (synopsis "Promises/A+ implementation for Python")
7757 "Promises/A+ implementation for Python")
7758 (properties `((python2-variant . ,(delay python2-promise))))
7759 (license license:expat)))
7761 (define-public python2-promise
7762 (let ((promise (package-with-python2
7763 (strip-python2-variant python-promise))))
7764 (package (inherit promise)
7765 (arguments (substitute-keyword-arguments (package-arguments promise)
7768 `(("python2-futures" ,python2-futures)
7769 ("python2-pytest" ,python2-pytest)
7770 ("python2-setuptools" ,python2-setuptools)
7771 ,@(package-native-inputs promise))))))
7773 (define-public python-urllib3
7775 (name "python-urllib3")
7780 (uri (pypi-uri "urllib3" version))
7783 "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf"))))
7784 (build-system python-build-system)
7785 (arguments `(#:tests? #f))
7787 `(("python-setuptools" ,python-setuptools)
7788 ;; some packages for tests
7789 ("python-nose" ,python-nose)
7790 ("python-mock" ,python-mock)
7791 ("python-tornado" ,python-tornado)))
7793 `(;; packages for https security
7794 ("python-certifi" ,python-certifi)
7795 ("python-ndg-httpsclient" ,python-ndg-httpsclient)
7796 ("python-pyasn1" ,python-pyasn1)
7797 ("python-pyopenssl" ,python-pyopenssl)))
7798 (home-page "http://urllib3.readthedocs.org/")
7799 (synopsis "HTTP library with thread-safe connection pooling")
7801 "Urllib3 supports features left out of urllib and urllib2 libraries. It
7802 can reuse the same socket connection for multiple requests, it can POST files,
7803 supports url redirection and retries, and also gzip and deflate decoding.")
7804 (license license:expat)))
7806 (define-public python2-urllib3
7807 (package-with-python2 python-urllib3))
7809 (define-public python-colorama
7811 (name "python-colorama")
7816 (uri (pypi-uri "colorama" version))
7819 "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
7820 (build-system python-build-system)
7822 `(("python-setuptools" ,python-setuptools)))
7823 (synopsis "colored terminal text rendering for Python")
7824 (description "Colorama is a Python library for rendering colored terminal
7826 (home-page "https://pypi.python.org/pypi/colorama")
7827 (license license:bsd-3)))
7829 (define-public python2-colorama
7830 (package-with-python2 python-colorama))
7832 (define-public python-rsa
7839 (uri (pypi-uri "rsa" version))
7842 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
7843 (build-system python-build-system)
7845 `(("python-pyasn1" ,python-pyasn1)
7846 ("python-setuptools" ,python-setuptools)))
7847 (synopsis "Pure-Python RSA implementation")
7848 (description "Python-RSA is a pure-Python RSA implementation. It supports
7849 encryption and decryption, signing and verifying signatures, and key
7850 generation according to PKCS#1 version 1.5. It can be used as a Python
7851 library as well as on the command line.")
7852 (home-page "http://stuvel.eu/rsa")
7853 (license license:asl2.0)))
7855 (define-public python2-rsa
7856 (package-with-python2 python-rsa))
7858 (define-public python-pluggy
7860 (name "python-pluggy")
7865 (uri (pypi-uri "pluggy" version))
7868 "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
7869 (build-system python-build-system)
7871 `(("python-setuptools" ,python-setuptools)))
7872 (synopsis "Plugin and hook calling mechanism for Python")
7873 (description "Pluggy is an extraction of the plugin manager as used by
7874 Pytest but stripped of Pytest specific details.")
7875 (home-page "https://pypi.python.org/pypi/pluggy")
7876 (license license:expat)))
7878 (define-public python2-pluggy
7879 (package-with-python2 python-pluggy))
7881 (define-public python-tox
7888 (uri (pypi-uri "tox" version))
7891 "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
7892 (build-system python-build-system)
7894 ;; FIXME: Tests require a newer version of pytest, but upgrading our
7895 ;; pytest breaks other packages.
7898 `(("python-setuptools" ,python-setuptools)
7899 ("python-pluggy" ,python-pluggy)
7900 ("python-py" ,python-py)
7901 ("python-virtualenv" ,python-virtualenv)
7902 ("python-pytest" ,python-pytest)))
7903 (home-page "http://tox.testrun.org/")
7904 (synopsis "Virtualenv-based automation of test activities")
7905 (description "Tox is a generic virtualenv management and test command line
7906 tool. It can be used to check that a package installs correctly with
7907 different Python versions and interpreters, or run tests in each type of
7908 supported environment, or act as a frontend to continuous integration
7910 (license license:expat)))
7912 (define-public python2-tox
7913 (package-with-python2 python-tox))
7915 (define-public python-jmespath
7917 (name "python-jmespath")
7922 (uri (pypi-uri "jmespath" version))
7925 "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
7926 (build-system python-build-system)
7928 `(("python-setuptools" ,python-setuptools)))
7929 (synopsis "JSON Matching Expressions")
7930 (description "JMESPath (pronounced “james path”) is a Python library that
7931 allows one to declaratively specify how to extract elements from a JSON
7933 (home-page "https://github.com/jmespath/jmespath.py")
7934 (license license:expat)))
7936 (define-public python2-jmespath
7937 (package-with-python2 python-jmespath))
7939 (define-public python-botocore
7941 (name "python-botocore")
7946 (uri (pypi-uri "botocore" version))
7949 "1zxczlwqy9bl27d9bc5x99mb5mcsxm350240lp5nx7014xb311lj"))))
7950 (build-system python-build-system)
7952 `(("python-dateutil" ,python-dateutil-2)
7953 ("python-docutils" ,python-docutils)
7954 ("python-mock" ,python-mock)
7955 ("python-nose" ,python-nose)
7956 ("python-setuptools" ,python-setuptools)
7957 ("python-tox" ,python-tox)
7958 ("python-wheel" ,python-wheel)
7959 ("python-jmespath" ,python-jmespath)))
7960 (home-page "https://github.com/boto/botocore")
7961 (synopsis "Low-level interface to AWS")
7962 (description "Botocore is a Python library that provides a low-level
7963 interface to the Amazon Web Services (AWS) API.")
7964 (license license:asl2.0)))
7966 (define-public python2-botocore
7967 (package-with-python2 python-botocore))
7969 (define-public awscli
7976 (uri (pypi-uri name version))
7979 "0lclasm0wnayd3b8zl9l91i32nbgrhh0ncf9lksss4cv0myfwmfg"))))
7980 (build-system python-build-system)
7982 `(("python-colorama" ,python-colorama)
7983 ("python-docutils" ,python-docutils)
7984 ("python-mock" ,python-mock)
7985 ("python-nose" ,python-nose)
7986 ("python-rsa" ,python-rsa)
7987 ("python-setuptools" ,python-setuptools)
7988 ("python-sphinx" ,python-sphinx)
7989 ("python-tox" ,python-tox)
7990 ("python-wheel" ,python-wheel)
7991 ("python-botocore" ,python-botocore)
7992 ("python-s3transfer" ,python-s3transfer)))
7993 (home-page "http://aws.amazon.com/cli/")
7994 (synopsis "Command line client for AWS")
7995 (description "AWS CLI provides a unified command line interface to the
7996 Amazon Web Services (AWS) API.")
7997 (license license:asl2.0)))
7999 (define-public python-hypothesis
8001 (name "python-hypothesis")
8005 (uri (pypi-uri "hypothesis" version))
8008 "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
8009 (build-system python-build-system)
8011 `(("python-flake8" ,python-flake8)
8012 ("python-pytest" ,python-pytest)))
8013 (synopsis "Library for property based testing")
8014 (description "Hypothesis is a library for testing your Python code against a
8015 much larger range of examples than you would ever want to write by hand. It’s
8016 based on the Haskell library, Quickcheck, and is designed to integrate
8017 seamlessly into your existing Python unit testing work flow.")
8018 (home-page "https://github.com/DRMacIver/hypothesis")
8019 (license license:mpl2.0)
8020 (properties `((python2-variant . ,(delay python2-hypothesis))))))
8022 (define-public python2-hypothesis
8023 (let ((hypothesis (package-with-python2
8024 (strip-python2-variant python-hypothesis))))
8025 (package (inherit hypothesis)
8027 `(("python2-enum34" ,python2-enum34)
8028 ("python2-setuptools" ,python2-setuptools))))))
8030 (define-public python-pytest-subtesthack
8032 (name "python-pytest-subtesthack")
8036 (uri (pypi-uri "pytest-subtesthack" version))
8039 "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
8040 (build-system python-build-system)
8042 `(;; setuptools required for python-2 variant
8043 ("python-setuptools" ,python-setuptools)))
8045 `(("python-pytest" ,python-pytest)))
8046 (synopsis "Set-up and tear-down fixtures for unit tests")
8047 (description "This plugin allows you to set up and tear down fixtures within
8048 unit test functions that use @code{py.test}. This is useful for using
8049 @command{hypothesis} inside py.test, as @command{hypothesis} will call the test
8050 function multiple times, without setting up or tearing down fixture state as is
8051 normally the case.")
8052 (home-page "https://github.com/untitaker/pytest-subtesthack/")
8053 (license license:unlicense)))
8055 (define-public python2-pytest-subtesthack
8056 (package-with-python2 python-pytest-subtesthack))
8058 (define-public python2-xdo
8060 (name "python2-xdo")
8065 "http://http.debian.net/debian/pool/main/p/python-xdo/"
8066 "python-xdo_" version ".orig.tar.gz"))
8069 "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
8070 (build-system python-build-system)
8072 `(#:python ,python-2
8073 #:tests? #f)) ; no tests provided
8075 `(("xdotool" ,xdotool)
8076 ("libX11" ,libx11)))
8077 (home-page "https://tracker.debian.org/pkg/python-xdo")
8078 (synopsis "Python library for simulating X11 keyboard/mouse input")
8079 (description "Provides bindings to libxdo for manipulating X11 via simulated
8080 input. (Note that this is mostly a legacy library; you may wish to look at
8081 python-xdo for newer bindings.)")
8082 (license license:bsd-3)))
8084 (define-public python-wtforms
8086 (name "python-wtforms")
8091 (uri (pypi-uri "WTForms" version ".zip"))
8094 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
8095 (build-system python-build-system)
8097 `(("unzip" ,unzip)))
8098 (home-page "http://wtforms.simplecodes.com/")
8100 "Form validation and rendering library for Python web development")
8102 "WTForms is a flexible forms validation and rendering library
8103 for Python web development. It is very similar to the web form API
8104 available in Django, but is a standalone package.")
8105 (license license:bsd-3)
8106 (properties `((python2-variant . ,(delay python2-wtforms))))))
8108 (define-public python2-wtforms
8110 (inherit (package-with-python2
8111 (strip-python2-variant python-wtforms)))
8112 (inputs `(("python2-setuptools" ,python2-setuptools)))))
8114 (define-public python-mako
8116 (name "python-mako")
8121 (uri (pypi-uri "Mako" version))
8124 "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
8125 (build-system python-build-system)
8127 `(("python-markupsafe" ,python-markupsafe)
8128 ("python-mock" ,python-mock)
8129 ("python-nose" ,python-nose)))
8130 (home-page "http://www.makotemplates.org/")
8131 (synopsis "Templating language for Python")
8132 (description "Mako is a templating language for Python that compiles
8133 templates into Python modules.")
8134 (license license:expat)
8135 (properties `((python2-variant . ,(delay python2-mako))))))
8137 (define-public python2-mako
8138 (let ((base (package-with-python2
8139 (strip-python2-variant python-mako))))
8143 (cons `("python2-setuptools" ,python2-setuptools)
8144 (package-native-inputs base))))))
8146 (define-public python-waitress
8148 (name "python-waitress")
8153 (uri (pypi-uri "waitress" version))
8156 "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
8157 (build-system python-build-system)
8158 (home-page "https://github.com/Pylons/waitress")
8159 (synopsis "Waitress WSGI server")
8160 (description "Waitress is meant to be a production-quality pure-Python WSGI
8161 server with very acceptable performance.")
8162 (license license:zpl2.1)
8163 (properties `((python2-variant . ,(delay python2-waitress))))))
8165 (define-public python2-waitress
8167 (inherit (package-with-python2
8168 (strip-python2-variant python-waitress)))
8169 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8171 (define-public python-wsgiproxy2
8173 (name "python-wsgiproxy2")
8178 (uri (pypi-uri "WSGIProxy2" version ".zip"))
8181 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
8182 (build-system python-build-system)
8185 ("python-nose" ,python-nose)
8186 ("python-coverage" ,python-coverage)))
8188 `(("python-six" ,python-six)
8189 ("python-webob" ,python-webob)))
8191 "https://github.com/gawel/WSGIProxy2/")
8192 (synopsis "WSGI Proxy with various http client backends")
8193 (description "WSGI turns HTTP requests into WSGI function calls.
8194 WSGIProxy turns WSGI function calls into HTTP requests.
8195 It also includes code to sign requests and pass private data,
8196 and to spawn subprocesses to handle requests.")
8197 (license license:expat)
8198 (properties `((python2-variant . ,(delay python2-wsgiproxy2))))))
8200 (define-public python2-wsgiproxy2
8201 (let ((wsgiproxy2 (package-with-python2
8202 (strip-python2-variant python-wsgiproxy2))))
8204 (inherit wsgiproxy2)
8205 (inputs `(("python2-setuptools" ,python2-setuptools)
8206 ,@(package-inputs wsgiproxy2))))))
8208 (define-public python-pastedeploy
8210 (name "python-pastedeploy")
8215 (uri (pypi-uri "PasteDeploy" version))
8218 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
8219 (build-system python-build-system)
8221 `(("python-nose" ,python-nose)))
8223 ;; This package uses pkg_resources, part of setuptools, during runtime,
8224 ;; hence why not a native-input.
8225 `(("python-setuptools" ,python-setuptools)))
8226 (home-page "http://pythonpaste.org/deploy/")
8228 "Load, configure, and compose WSGI applications and servers")
8230 "This tool provides code to load WSGI applications and servers from URIs;
8231 these URIs can refer to Python Eggs for INI-style configuration files. Paste
8232 Script provides commands to serve applications based on this configuration
8234 (license license:expat)))
8236 (define-public python2-pastedeploy
8237 (package-with-python2 python-pastedeploy))
8239 (define-public python-paste
8241 (name "python-paste")
8246 (uri (pypi-uri "Paste" version))
8249 "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
8250 (patches (search-patches "python-paste-remove-website-test.patch"
8251 "python-paste-remove-timing-test.patch"))))
8252 (build-system python-build-system)
8254 `(("python-nose" ,python-nose)))
8256 `(;; Uses pkg_resources provided by setuptools internally.
8257 ("python-setuptools" ,python-setuptools)
8258 ("python-six" ,python-six)))
8260 '(;; Tests don't pass on Python 3, but work fine on Python 2.
8261 ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
8262 ;; but is usable enough for the minimal amount it's used in MediaGoblin
8263 ;; still... things should be better by the next Paste release.)
8265 (home-page "http://pythonpaste.org")
8267 "Python web development tools, focusing on WSGI")
8269 "Paste provides a variety of web development tools and middleware which
8270 can be nested together to build web applications. Paste's design closely
8271 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
8272 (license license:expat)
8273 (properties `((python2-variant . ,(delay python2-paste))))))
8275 (define-public python2-paste
8276 (let ((paste (package-with-python2
8277 (strip-python2-variant python-paste))))
8281 ;; Tests are back for Python 2!
8283 ,@(package-arguments paste))))))
8285 (define-public python-pastescript
8287 (name "python-pastescript")
8292 (uri (pypi-uri "PasteScript" version))
8295 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
8296 (build-system python-build-system)
8298 `(("python-nose" ,python-nose)))
8300 `(;; Uses pkg_resources provided by setuptools internally.
8301 ("python-setuptools" ,python-setuptools)
8302 ("python-paste" ,python-paste)
8303 ("python-pastedeploy" ,python-pastedeploy)))
8304 (home-page "http://pythonpaste.org/script/")
8306 '(;; Unfortunately, this requires the latest unittest2,
8307 ;; but that requires traceback2 which requires linecache2 which requires
8308 ;; unittest2. So we're skipping tests for now.
8309 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
8310 ;; so in theory we could get around this situation somehow.)
8313 "Pluggable command line tool for serving web applications and more")
8315 "PasteScript is a plugin-friendly command line tool which provides a
8316 variety of features, from launching web applications to bootstrapping project
8318 (license license:expat)))
8320 (define-public python2-pastescript
8321 (package-with-python2 python-pastescript))
8323 (define-public python-pyquery
8325 (name "python-pyquery")
8330 (uri (pypi-uri "pyquery" version))
8333 "0j9fsisip21qv4xljsg5dmni1pgpvwrjyyhhql0glydc4bs5rjgv"))))
8334 (build-system python-build-system)
8336 `(("python-lxml" ,python-lxml)
8337 ("python-cssselect" ,python-cssselect)))
8338 (home-page "https://github.com/gawel/pyquery")
8339 (synopsis "Make jQuery-like queries on xml documents")
8340 (description "pyquery allows you to make jQuery queries on xml documents.
8341 The API is as much as possible the similar to jQuery. pyquery uses lxml for
8342 fast xml and html manipulation.")
8343 (license license:bsd-3)
8344 (properties `((python2-variant . ,(delay python2-pyquery))))))
8346 (define-public python2-pyquery
8347 (let ((pyquery (package-with-python2
8348 (strip-python2-variant python-pyquery))))
8351 (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
8353 (define-public python-webtest
8355 (name "python-webtest")
8360 (uri (pypi-uri "WebTest" version))
8363 "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
8364 (build-system python-build-system)
8366 `(;; Unfortunately we have to disable tests!
8367 ;; This release of WebTest is pinned to python-nose < 1.3,
8368 ;; but older versions of python-nose are plagued with the following
8369 ;; bug(s), which rears its ugly head during test execution:
8370 ;; https://github.com/nose-devs/nose/issues/759
8371 ;; https://github.com/nose-devs/nose/pull/811
8373 ;; Commented out code is no good, but in this case, once tests
8374 ;; are ready to be enabled again, we should put the following
8377 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
8378 ;; ; but see above comment
8379 ;; ("python-coverage" ,python-coverage)
8380 ;; ("python-mock" ,python-mock)
8381 ;; ("python-pastedeploy" ,python-pastedeploy)
8382 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
8383 ;; ("python-pyquery" ,python-pyquery)))
8385 `(("python-waitress" ,python-waitress)
8386 ("python-webob" ,python-webob)
8387 ("python-six" ,python-six)
8388 ("python-beautifulsoup4" ,python-beautifulsoup4)))
8389 (home-page "http://webtest.pythonpaste.org/")
8390 (synopsis "Helper to test WSGI applications")
8391 (description "Webtest allows you to test your Python web applications
8392 without starting an HTTP server. It supports anything that supports the
8394 (license license:expat)
8395 (properties `((python2-variant . ,(delay python2-webtest))))))
8397 (define-public python2-webtest
8398 (let ((webtest (package-with-python2
8399 (strip-python2-variant python-webtest))))
8402 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8403 ,@(package-native-inputs webtest))))))
8405 (define-public python-anyjson
8407 (name "python-anyjson")
8412 (uri (pypi-uri "anyjson" version))
8415 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
8416 (build-system python-build-system)
8418 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
8419 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
8420 ;; whatever) so this transformation needs to be done before the tests
8421 ;; can be run. Maybe we could add a build step to transform beforehand
8422 ;; but it could be annoying/difficult.
8423 ;; We can enable tests for the Python 2 version, though, and do below.
8425 (home-page "http://bitbucket.org/runeh/anyjson/")
8427 "Wraps best available JSON implementation in a common interface")
8429 "Anyjson loads whichever is the fastest JSON module installed
8430 and provides a uniform API regardless of which JSON implementation is used.")
8431 (license license:bsd-3)
8432 (properties `((python2-variant . ,(delay python2-anyjson))))))
8434 (define-public python2-anyjson
8435 (let ((anyjson (package-with-python2
8436 (strip-python2-variant python-anyjson))))
8439 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
8441 ,@(package-arguments anyjson)))
8442 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8443 ("python2-nose" ,python2-nose))))))
8445 (define-public python-amqp
8447 (name "python-amqp")
8452 (uri (pypi-uri "amqp" version))
8455 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
8456 (build-system python-build-system)
8458 `(("python-nose" ,python-nose)
8459 ("python-mock" ,python-mock)))
8460 (home-page "http://github.com/celery/py-amqp")
8462 "Low-level AMQP client for Python (fork of amqplib)")
8464 "This is a fork of amqplib which was originally written by Barry Pederson.
8465 It is maintained by the Celery project, and used by kombu as a pure python
8466 alternative when librabbitmq is not available.")
8467 (license license:lgpl2.1+)
8468 (properties `((python2-variant . ,(delay python2-amqp))))))
8470 (define-public python2-amqp
8471 (let ((amqp (package-with-python2
8472 (strip-python2-variant python-amqp))))
8475 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
8476 ;; unmaintained. Weirdly, does not do this on the python 3
8479 ,@(package-arguments amqp)))
8480 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8481 ,@(package-native-inputs amqp))))))
8483 (define-public python-kombu
8485 (name "python-kombu")
8490 (uri (pypi-uri "kombu" version))
8493 "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70"))))
8494 (build-system python-build-system)
8496 `(("python-mock" ,python-mock)
8497 ("python-nose" ,python-nose)))
8499 `(("python-anyjson" ,python-anyjson)
8500 ("python-amqp" ,python-amqp)
8501 ("python-redis" ,python-redis)))
8502 (home-page "http://kombu.readthedocs.org")
8503 (synopsis "Message passing library for Python")
8504 (description "The aim of Kombu is to make messaging in Python as easy as
8505 possible by providing an idiomatic high-level interface for the AMQ protocol,
8506 and also provide proven and tested solutions to common messaging problems.
8507 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
8508 message orientation, queuing, routing, reliability and security, for which the
8509 RabbitMQ messaging server is the most popular implementation.")
8510 (license license:bsd-3)
8511 (properties `((python2-variant . ,(delay python2-kombu))))))
8513 (define-public python2-kombu
8514 (let ((kombu (package-with-python2
8515 (strip-python2-variant python-kombu))))
8518 (inputs `(("python2-setuptools" ,python2-setuptools)
8519 ("python2-unittest2" ,python2-unittest2)
8520 ,@(package-inputs kombu))))))
8522 (define-public python-billiard
8524 (name "python-billiard")
8525 (version "3.3.0.23")
8529 (uri (pypi-uri "billiard" version))
8532 "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9"))))
8533 (build-system python-build-system)
8535 `(("python-nose" ,python-nose)))
8536 (home-page "http://github.com/celery/billiard")
8538 "Python multiprocessing fork with improvements and bugfixes")
8540 "Billiard is a fork of the Python 2.7 multiprocessing package. The
8541 multiprocessing package itself is a renamed and updated version of R Oudkerk's
8542 pyprocessing package. This standalone variant is intended to be compatible with
8543 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
8544 (license license:bsd-3)
8545 (properties `((python2-variant . ,(delay python2-billiard))))))
8547 (define-public python2-billiard
8548 (let ((billiard (package-with-python2
8549 (strip-python2-variant python-billiard))))
8552 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8553 ("python2-unittest2" ,python2-unittest2)
8554 ("python2-mock" ,python2-mock)
8555 ,@(package-native-inputs billiard))))))
8557 (define-public python-celery
8559 (name "python-celery")
8564 (uri (pypi-uri "celery" version))
8567 "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r"))))
8568 (build-system python-build-system)
8571 (modify-phases %standard-phases
8572 ;; These tests break with Python 3.5:
8573 ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295
8577 (system* "nosetests" "--exclude=^test_safe_to_remove.*")))))))
8579 `(("python-nose" ,python-nose)))
8581 `(("python-pytz" ,python-pytz)
8582 ("python-amqp" ,python-amqp)
8583 ("python-anyjson" ,python-anyjson)
8584 ("python-billiard" ,python-billiard)
8585 ("python-kombu" ,python-kombu)))
8586 (home-page "http://celeryproject.org")
8587 (synopsis "Distributed Task Queue")
8588 (description "Celery is an asynchronous task queue/job queue based on
8589 distributed message passing. It is focused on real-time operation, but
8590 supports scheduling as well. The execution units, called tasks, are executed
8591 concurrently on a single or more worker servers using multiprocessing,
8592 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
8593 synchronously (wait until ready).")
8594 (license license:bsd-3)
8595 (properties `((python2-variant . ,(delay python2-celery))))))
8597 (define-public python2-celery
8598 (let ((celery (package-with-python2
8599 (strip-python2-variant python-celery))))
8602 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8603 ("python2-unittest2" ,python2-unittest2)
8604 ("python2-mock" ,python2-mock)
8605 ,@(package-native-inputs celery))))))
8607 (define-public python-translitcodec
8609 (name "python-translitcodec")
8614 (uri (pypi-uri "translitcodec" version))
8617 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
8618 (build-system python-build-system)
8620 `(#:tests? #f)) ; no tests provided
8622 "https://github.com/claudep/translitcodec")
8624 "Unicode to 8-bit charset transliteration codec")
8626 "This package contains codecs for transliterating ISO 10646 texts into
8627 best-effort representations using smaller coded character sets (ASCII,
8629 (license license:expat)
8630 (properties `((python2-variant . ,(delay python2-translitcodec))))))
8632 (define-public python2-translitcodec
8634 (inherit (package-with-python2
8635 (strip-python2-variant python-translitcodec)))
8636 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8638 (define-public python-editor
8640 (name "python-editor")
8645 (uri (pypi-uri "python-editor" version))
8648 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
8649 (build-system python-build-system)
8651 "https://github.com/fmoo/python-editor")
8653 "Programmatically open an editor, capture the result")
8655 "python-editor is a library that provides the editor module for
8656 programmatically interfacing with your system's $EDITOR.")
8657 (license license:asl2.0)
8658 (properties `((python2-variant . ,(delay python2-editor))))))
8660 (define-public python2-editor
8662 (inherit (package-with-python2
8663 (strip-python2-variant python-editor)))
8664 (inputs `(("python2-setuptools" ,python2-setuptools)))))
8666 (define-public python-sphinxcontrib-programoutput
8668 (name "python-sphinxcontrib-programoutput")
8672 (uri (pypi-uri "sphinxcontrib-programoutput" version))
8675 "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
8676 (build-system python-build-system)
8678 `(("python-docutils" ,python-docutils)
8679 ("python-sphinx" ,python-sphinx)))
8680 (synopsis "Sphinx extension to include program output")
8681 (description "A Sphinx extension to literally insert the output of arbitrary
8682 commands into documents, helping you to keep your command examples up to date.")
8683 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
8684 (license license:bsd-2)
8685 (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput))))))
8687 (define-public python2-sphinxcontrib-programoutput
8689 (inherit (package-with-python2
8690 (strip-python2-variant python-sphinxcontrib-programoutput)))
8691 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8693 (define-public python-sphinx-repoze-autointerface
8695 (name "python-sphinx-repoze-autointerface")
8699 (uri (pypi-uri "repoze.sphinx.autointerface" version))
8702 "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f"))))
8703 (build-system python-build-system)
8705 `(("python-docutils" ,python-docutils)
8706 ("python-sphinx" ,python-sphinx)
8707 ("python-zope-interface" ,python-zope-interface)))
8708 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
8709 (description "This package defines an extension for the Sphinx documentation
8710 system. The extension allows generation of API documentation by
8711 introspection of @code{zope.interface} instances in code.")
8712 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
8713 (license license:repoze)))
8715 (define-public python2-sphinx-repoze-autointerface
8716 (package-with-python2 python-sphinx-repoze-autointerface))
8718 (define-public python-psycopg2
8720 (name "python-psycopg2")
8725 (uri (pypi-uri "psycopg2" version))
8728 "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
8729 (build-system python-build-system)
8731 ;; Tests would require a postgresql database "psycopg2_test"
8732 ;; and a running postgresql database management service.
8733 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
8735 `(("postgresql" ,postgresql))) ; libpq
8736 (home-page "http://initd.org/psycopg/")
8737 (synopsis "Python PostgreSQL adapter")
8739 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
8740 (license license:lgpl3+)
8741 (properties `((python2-variant . ,(delay python2-psycopg2))))))
8743 (define-public python2-psycopg2
8745 (inherit (package-with-python2
8746 (strip-python2-variant python-psycopg2)))
8747 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8749 (define-public python-vobject
8751 (name "python-vobject")
8755 (uri (pypi-uri "vobject" version))
8758 "1qfnwlx8qwkgr6nf5wvl6ff1r3kll53dh3z6nyp173nmlhhhqccb"))))
8759 (build-system python-build-system)
8761 '(;; The test suite relies on some non-portable Windows interfaces.
8764 `(("python-dateutil-2" ,python-dateutil-2)
8765 ("python-pyicu" ,python-pyicu)))
8766 (synopsis "Parse and generate vCard and vCalendar files")
8767 (description "Vobject is intended to be a full featured Python package for
8768 parsing and generating vCard and vCalendar files. Currently, iCalendar files
8769 are supported and well tested. vCard 3.0 files are supported, and all data
8770 should be imported, but only a few components are understood in a sophisticated
8772 (home-page "http://eventable.github.io/vobject/")
8773 (license license:asl2.0)
8774 (properties `((python2-variant . ,(delay python2-vobject))))))
8776 (define-public python2-vobject
8778 (inherit (package-with-python2
8779 (strip-python2-variant python-vobject)))
8780 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8782 (define-public python-munkres
8784 (name "python-munkres")
8788 (uri (pypi-uri "munkres" version))
8791 "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"))))
8792 (build-system python-build-system)
8794 '(#:tests? #f)) ; no test suite
8795 (home-page "http://software.clapper.org/munkres/")
8796 (synopsis "Implementation of the Munkres algorithm")
8797 (description "The Munkres module provides an implementation of the Munkres
8798 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
8799 useful for solving the Assignment Problem.")
8800 (license license:bsd-3)))
8802 (define-public python2-munkres
8803 (package-with-python2 python-munkres))
8805 (define-public python-flask
8807 (name "python-flask")
8811 (uri (pypi-uri "Flask" version))
8814 "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"))))
8815 (build-system python-build-system)
8817 `(("python-itsdangerous" ,python-itsdangerous)
8818 ("python-jinja2" ,python-jinja2)
8819 ("python-werkzeug" ,python-werkzeug)))
8820 (home-page "https://github.com/mitsuhiko/flask/")
8821 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
8822 (description "Flask is a micro web framework based on the Werkzeug toolkit
8823 and Jinja2 template engine. It is called a micro framework because it does not
8824 presume or force a developer to use a particular tool or library.")
8825 (license license:bsd-3)
8826 (properties `((python2-variant . ,(delay python2-flask))))))
8828 (define-public python2-flask
8829 (package (inherit (package-with-python2
8830 (strip-python2-variant python-flask)))
8831 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8833 (define-public python-cookies
8835 (name "python-cookies")
8839 (uri (pypi-uri "cookies" version))
8842 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
8843 (build-system python-build-system)
8845 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
8848 `(("python-pytest" ,python2-pytest)))
8849 (synopsis "HTTP cookie parser and renderer")
8850 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
8852 (home-page "https://gitlab.com/sashahart/cookies")
8853 (license license:expat)
8854 (properties `((python2-variant . ,(delay python2-cookies))))))
8856 (define-public python2-cookies
8857 (let ((cookies (package-with-python2
8858 (strip-python2-variant python-cookies))))
8859 (package (inherit cookies)
8860 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8861 ,@(package-native-inputs cookies))))))
8863 (define-public python-responses
8865 (name "python-responses")
8869 (uri (pypi-uri "responses" version))
8872 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
8873 (build-system python-build-system)
8875 `(;; Test suite is not distributed:
8876 ;; https://github.com/getsentry/responses/issues/38
8879 `(("python-cookies" ,python-cookies)
8880 ("python-mock" ,python-mock)))
8882 `(("python-requests" ,python-requests)
8883 ("python-six" ,python-six)))
8884 (home-page "https://github.com/getsentry/responses")
8885 (synopsis "Utility for mocking out the `requests` Python library")
8886 (description "A utility library for mocking out the `requests` Python
8888 (license license:asl2.0)
8889 (properties `((python2-variant . ,(delay python2-responses))))))
8891 (define-public python2-responses
8892 (let ((responses (package-with-python2
8893 (strip-python2-variant python-responses))))
8894 (package (inherit responses)
8895 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8896 ,@(package-native-inputs responses))))))
8898 (define-public python-whoosh
8900 (name "python-whoosh")
8905 (uri (pypi-uri "Whoosh" version))
8908 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
8909 (build-system python-build-system)
8911 `(("python-setuptools" ,python-setuptools)
8912 ("python-pytest" ,python-pytest)))
8913 (home-page "http://bitbucket.org/mchaput/whoosh")
8914 (synopsis "Full text indexing, search, and spell checking library")
8916 "Whoosh is a fast, pure-Python full text indexing, search, and spell
8918 (license license:bsd-2)))
8920 (define-public python2-whoosh
8921 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
8922 (package (inherit whoosh)
8924 `(("python2-backport-ssl-match-hostname"
8925 ,python2-backport-ssl-match-hostname)
8926 ,@(package-propagated-inputs whoosh))))))
8928 (define-public python-pathlib
8930 (name "python-pathlib")
8934 (uri (pypi-uri "pathlib" version))
8937 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
8938 (build-system python-build-system)
8939 ;; The tests depend on the internal "test" module, which does not provide
8940 ;; a stable interface.
8941 (arguments `(#:tests? #f))
8942 (home-page "https://pathlib.readthedocs.org/")
8943 (synopsis "Object-oriented file system paths")
8944 (description "Pathlib offers a set of classes to handle file system paths.
8945 It offers the following advantages over using string objects:
8948 @item No more cumbersome use of os and os.path functions. Everything can
8949 be done easily through operators, attribute accesses, and method calls.
8950 @item Embodies the semantics of different path types. For example,
8951 comparing Windows paths ignores casing.
8952 @item Well-defined semantics, eliminating any inconsistencies or
8953 ambiguities (forward vs. backward slashes, etc.).
8956 Note: In Python 3.4, pathlib is now part of the standard library. For other
8957 Python versions please consider python-pathlib2 instead, which tracks the
8958 standard library module. This module (python-pathlib) isn't maintained
8960 (license license:expat)))
8962 (define-public python2-pathlib
8963 (package-with-python2 python-pathlib))
8965 (define-public python2-pathlib2
8967 (name "python2-pathlib2")
8971 (uri (pypi-uri "pathlib2" version))
8974 "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy"))))
8975 (build-system python-build-system)
8977 `(#:python ,python-2))
8979 `(("python2-setuptools" ,python2-setuptools)
8980 ("python2-six" ,python2-six)))
8981 (home-page "http://pypi.python.org/pypi/pathlib2/")
8982 (synopsis "Object-oriented file system paths - backport of standard
8984 (description "The goal of pathlib2 is to provide a backport of standard
8985 pathlib module which tracks the standard library module, so all the newest
8986 features of the standard pathlib can be used also on older Python versions.
8988 Pathlib offers a set of classes to handle file system paths. It offers the
8989 following advantages over using string objects:
8992 @item No more cumbersome use of os and os.path functions. Everything can
8993 be done easily through operators, attribute accesses, and method calls.
8994 @item Embodies the semantics of different path types. For example,
8995 comparing Windows paths ignores casing.
8996 @item Well-defined semantics, eliminating any inconsistencies or
8997 ambiguities (forward vs. backward slashes, etc.).
8999 (license license:expat)))
9001 (define-public python-jellyfish
9003 (name "python-jellyfish")
9007 (uri (pypi-uri "jellyfish" version))
9010 "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
9011 (build-system python-build-system)
9013 `(("python-pytest" ,python-pytest)))
9014 (home-page "https://github.com/jamesturk/jellyfish")
9015 (synopsis "Approximate and phonetic matching of strings")
9016 (description "Jellyfish uses a variety of string comparison and phonetic
9017 encoding algorithms to do fuzzy string matching.")
9018 (license license:bsd-2)
9019 (properties `((python2-variant . ,(delay python2-jellyfish))))))
9021 (define-public python2-jellyfish
9022 (let ((jellyfish (package-with-python2
9023 (strip-python2-variant python-jellyfish))))
9024 (package (inherit jellyfish)
9025 (native-inputs `(("python2-setuptools" ,python2-setuptools)
9026 ("python2-unicodecsv" ,python2-unicodecsv)
9027 ,@(package-native-inputs jellyfish))))))
9029 (define-public python2-unicodecsv
9031 (name "python2-unicodecsv")
9035 ;; The test suite is not included in the PyPi release.
9036 ;; https://github.com/jdunck/python-unicodecsv/issues/19
9037 (uri (string-append "https://github.com/jdunck/python-unicodecsv/"
9038 "archive/" version ".tar.gz"))
9039 (file-name (string-append name "-" version ".tar.gz"))
9042 "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
9043 (build-system python-build-system)
9045 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
9046 #:python ,python-2))
9048 `(("python2-setuptools" ,python2-setuptools)
9049 ("python2-unittest2" ,python2-unittest2)))
9050 (home-page "https://github.com/jdunck/python-unicodecsv")
9051 (synopsis "Unicode CSV module for Python 2")
9052 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
9053 module, adding support for Unicode strings.")
9054 (license license:bsd-2)))
9056 (define-public python-rarfile
9058 (name "python-rarfile")
9062 (uri (pypi-uri "rarfile" version))
9065 "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
9066 ;; https://github.com/markokr/rarfile/pull/17/
9067 (patches (search-patches "python-rarfile-fix-tests.patch"))))
9068 (build-system python-build-system)
9071 (modify-phases %standard-phases
9073 ;; Many tests fail, but the installation proceeds.
9074 (lambda _ (zero? (system* "make" "-C" "test" "test")))))))
9076 `(("which" ,which))) ; required for tests
9078 `(("libarchive" ,libarchive)))
9079 (home-page "https://github.com/markokr/rarfile")
9080 (synopsis "RAR archive reader for Python")
9081 (description "This is Python module for RAR archive reading. The interface
9082 is made as zipfile like as possible.")
9083 (license license:isc)))
9085 (define-public python2-rarfile
9086 (package-with-python2 python-rarfile))
9088 (define-public python-magic
9090 (name "python-magic")
9095 (uri (string-append "https://github.com/ahupp/python-magic/archive/"
9099 "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
9100 (file-name (string-append name "-" version "-checkout"))))
9101 (build-system python-build-system)
9103 ;; The tests are unreliable, so don't run them. The tests fail
9104 ;; under Python3 because they were written for Python2 and
9105 ;; contain import statements that do not work in Python3. One of
9106 ;; the tests fails under Python2 because its assertions are
9107 ;; overly stringent; it relies on comparing output strings which
9108 ;; are brittle and can change depending on the version of
9109 ;; libmagic being used and the system on which the test is
9110 ;; running. In my case, under GuixSD 0.10.0, only one test
9111 ;; failed, and it seems to have failed only because the version
9112 ;; of libmagic that is packaged in Guix outputs a slightly
9113 ;; different (but not wrong) string than the one that the test
9116 #:phases (modify-phases %standard-phases
9117 ;; Replace a specific method call with a hard-coded
9118 ;; path to the necessary libmagic.so file in the
9119 ;; store. If we don't do this, then the method call
9120 ;; will fail to find the libmagic.so file, which in
9121 ;; turn will cause any application using
9122 ;; python-magic to fail.
9123 (add-before 'build 'hard-code-path-to-libmagic
9124 (lambda* (#:key inputs #:allow-other-keys)
9125 (let ((file (assoc-ref inputs "file")))
9126 (substitute* "magic.py"
9127 (("ctypes.util.find_library\\('magic'\\)")
9128 (string-append "'" file "/lib/libmagic.so'")))
9130 (add-before 'install 'disable-egg-compression
9132 (let ((port (open-file "setup.cfg" "a")))
9133 (display "\n[easy_install]\nzip_ok = 0\n"
9138 `(("python-setuptools" ,python-setuptools)))
9140 ;; python-magic needs to be able to find libmagic.so.
9142 (home-page "https://github.com/ahupp/python-magic")
9143 (synopsis "File type identification using libmagic")
9145 "This module uses ctypes to access the libmagic file type
9146 identification library. It makes use of the local magic database and
9147 supports both textual and MIME-type output. Note that this module and
9148 the python-file module both provide a \"magic.py\" file; these two
9149 modules, which are different and were developed separately, both serve
9150 the same purpose: to provide Python bindings for libmagic.")
9151 (license license:expat)))
9153 (define-public python2-magic
9154 (package-with-python2 python-magic))
9156 (define-public python2-s3cmd
9158 (name "python2-s3cmd")
9163 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
9164 "s3cmd-" version ".tar.gz"))
9167 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
9168 (build-system python-build-system)
9170 ;; s3cmd is written for python2 only and contains no tests.
9171 `(#:python ,python-2
9174 `(("python2-setuptools" ,python2-setuptools)))
9176 `(("python2-dateutil" ,python2-dateutil)
9177 ;; The python-file package also provides a magic.py module.
9178 ;; This is an unfortunate state of affairs; however, s3cmd
9179 ;; fails to install if it cannot find specifically the
9180 ;; python-magic package. Thus we include it, instead of using
9181 ;; python-file. Ironically, s3cmd sometimes works better
9182 ;; without libmagic bindings at all:
9183 ;; https://github.com/s3tools/s3cmd/issues/198
9184 ("python2-magic" ,python2-magic)))
9185 (home-page "http://s3tools.org/s3cmd")
9186 (synopsis "Command line tool for S3-compatible storage services")
9188 "S3cmd is a command line tool for uploading, retrieving and managing data
9189 in storage services that are compatible with the Amazon Simple Storage
9190 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
9191 GnuPG encryption, and more. It also supports management of Amazon's
9192 CloudFront content delivery network.")
9193 (license license:gpl2+)))
9195 (define-public python-pkgconfig
9197 (name "python-pkgconfig")
9202 (uri (pypi-uri "pkgconfig" version))
9205 "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh"))))
9206 (build-system python-build-system)
9208 `(("python-nose" ,python-nose)
9209 ("python-setuptools" ,python-setuptools)))
9211 `(("pkg-config" ,pkg-config)))
9213 `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
9214 ;; and on Python 2 they need the dl module deprecated since Python 2.6.
9216 ;; Prevent creation of the egg. This works around
9217 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
9218 #:configure-flags '("--single-version-externally-managed" "--root=/")
9219 ;; Hard-code the path to pkg-config.
9221 (modify-phases %standard-phases
9225 (substitute* "pkgconfig/pkgconfig.py"
9226 (("cmd = 'pkg-config")
9227 (string-append "cmd = '" (which "pkg-config"))))
9229 (home-page "http://github.com/matze/pkgconfig")
9230 (synopsis "Python interface for pkg-config")
9231 (description "This module provides a Python interface to pkg-config. It
9232 can be used to find all pkg-config packages, check if a package exists,
9233 check if a package meets certain version requirements, query CFLAGS and
9234 LDFLAGS and parse the output to build extensions with setup.py.")
9235 (license license:expat)))
9237 (define-public python2-pkgconfig
9238 (package-with-python2 python-pkgconfig))
9240 (define-public python-bz2file
9242 (name "python-bz2file")
9247 (uri (pypi-uri "bz2file" version))
9250 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
9251 (build-system python-build-system)
9253 `(#:tests? #f)) ; Tests use deprecated python modules.
9254 (home-page "https://github.com/nvawda/bz2file")
9255 (synopsis "Read and write bzip2-compressed files")
9257 "Bz2file is a Python library for reading and writing bzip2-compressed
9258 files. It contains a drop-in replacement for the I/O interface in the
9259 standard library's @code{bz2} module, including features from the latest
9260 development version of CPython that are not available in older releases.")
9261 (license license:asl2.0)
9262 (properties `((python2-variant . ,(delay python2-bz2file))))))
9264 (define-public python2-bz2file
9265 (let ((base (package-with-python2
9266 (strip-python2-variant python-bz2file))))
9270 `(("python2-setuptools" ,python2-setuptools)))
9272 `(#:python ,python-2
9274 (modify-phases %standard-phases
9275 ;; 'python setup.py test' does not work as of 0.98.
9276 ;; There is only the one test file, so we run it directly.
9278 (lambda _ (zero? (system* "python"
9279 "test_bz2file.py"))))))))))
9281 (define-public python-future
9283 (name "python-future")
9288 (uri (pypi-uri "future" version))
9291 "15wvcfzssc68xqnqi1dq4fhd0848hwi9jn42hxyvlqna40zijfrx"))))
9292 (build-system python-build-system)
9293 ;; Many tests connect to the network or are otherwise flawed.
9294 ;; https://github.com/PythonCharmers/python-future/issues/210
9297 (home-page "http://python-future.org")
9298 (synopsis "Single-source support for Python 3 and 2")
9300 "@code{python-future} is the missing compatibility layer between Python 2 and
9301 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
9302 to support both Python 2 and Python 3 with minimal overhead.")
9303 (license license:expat)
9304 (properties `((python2-variant . ,(delay python2-future))))))
9306 (define-public python2-future
9307 (let ((base (package-with-python2
9308 (strip-python2-variant python-future))))
9311 (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
9313 (define-public python-cysignals
9315 (name "python-cysignals")
9320 (uri (pypi-uri "cysignals" version ".tar.bz2"))
9323 "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6"))))
9324 (build-system python-build-system)
9326 `(("python-cython" ,python-cython)
9327 ("python-setuptools" ,python-setuptools)
9328 ("python-sphinx" ,python-sphinx)))
9330 `(("pari-gp" ,pari-gp)))
9332 `(#:modules ((guix build python-build-system)
9333 ((guix build gnu-build-system) #:prefix gnu:)
9335 ;; FIXME: Tests are executed after installation and currently fail
9336 ;; when not installing into standard locations; the author is working
9340 (modify-phases %standard-phases
9343 (assoc-ref gnu:%standard-phases 'configure)))))
9345 "https://github.com/sagemath/cysignals")
9347 "Handling of interrupts and signals for Cython")
9349 "The cysignals package provides mechanisms to handle interrupts (and
9350 other signals and errors) in Cython code, using two related approaches,
9351 for mixed Cython/Python code or external C libraries and pure Cython code,
9353 (license license:lgpl3+)))
9355 (define-public python2-cysignals
9356 (package-with-python2 python-cysignals))
9358 (define-public python2-shedskin
9360 (name "python2-shedskin")
9365 (uri (string-append "https://github.com/shedskin/shedskin/"
9366 "releases/download/v" version
9367 "/shedskin-" version ".tgz"))
9370 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
9371 (build-system python-build-system)
9373 `(#:python ,python-2
9374 #:phases (modify-phases %standard-phases
9375 (add-after 'unpack 'fix-resulting-include-libs
9376 (lambda* (#:key inputs #:allow-other-keys)
9377 (let ((libgc (assoc-ref inputs "libgc"))
9378 (pcre (assoc-ref inputs "pcre")))
9379 (substitute* "shedskin/makefile.py"
9380 (("variable == 'CCFLAGS':[ ]*")
9381 (string-append "variable == 'CCFLAGS':\n"
9382 " line += ' -I " pcre "/include"
9383 " -I " libgc "/include'"))
9384 (("variable == 'LFLAGS':[ ]*")
9385 (string-append "variable == 'LFLAGS':\n"
9386 " line += ' -L" pcre "/lib"
9387 " -L " libgc "/lib'")))
9389 (native-inputs `(("python2-setuptools" ,python2-setuptools)))
9390 (inputs `(("pcre" ,pcre)
9392 (home-page "https://shedskin.github.io/")
9393 (synopsis "Experimental Python-2 to C++ Compiler")
9394 (description (string-append "This is an experimental compiler for a subset of
9395 Python. It generates C++ code and a Makefile."))
9396 (license (list license:gpl3 license:bsd-3 license:expat))))
9398 (define-public python2-rope
9400 (name "python2-rope")
9405 (uri (pypi-uri "rope" version))
9408 "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb"))))
9410 ;; Rope is currently python-2 only.
9411 ;; https://github.com/python-rope/rope/issues/57
9412 `(#:python ,python-2))
9413 (build-system python-build-system)
9415 `(("python2-unittest2" ,python2-unittest2)
9416 ("python2-setuptools" ,python2-setuptools)))
9417 (home-page "https://github.com/python-rope/rope")
9418 (synopsis "Refactoring library for Python")
9419 (description "Rope is a refactoring library for Python. It facilitates
9420 the renaming, moving and extracting of attributes, functions, modules, fields
9421 and parameters in Python 2 source code. These refactorings can also be applied
9422 to occurences in strings and comments.")
9423 (license license:gpl2)))
9425 (define-public python-py3status
9427 (name "python-py3status")
9432 (uri (pypi-uri "py3status" version))
9435 "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds"))))
9436 (build-system python-build-system)
9438 `(("python-setuptools" ,python-setuptools)))
9439 (home-page "https://github.com/ultrabug/py3status")
9440 (synopsis "Extensible i3status wrapper written in Python")
9441 (description "py3status is an i3status wrapper which extends i3status
9442 functionality in a modular way, allowing you to extend your panel with your
9443 own code, responding to click events and updating clock every second.")
9444 (license license:bsd-3)))
9446 (define-public python-tblib
9448 (name "python-tblib")
9452 (uri (pypi-uri "tblib" version))
9454 "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi"))))
9455 (build-system python-build-system)
9458 (modify-phases %standard-phases
9461 ;; Upstream runs tests after installation and the package itself
9462 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
9464 (setenv "PYTHONPATH"
9465 (string-append (getcwd) "/build/lib:"
9466 (getenv "PYTHONPATH")))
9467 (zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
9469 `(("python-pytest" ,python-pytest)
9470 ("python-setuptools" ,python-setuptools)
9471 ("python-six" ,python-six)))
9472 (home-page "https://github.com/ionelmc/python-tblib")
9473 (synopsis "Traceback serialization library")
9475 "Traceback serialization allows you to:
9478 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
9479 different processes. This allows better error handling when running code over
9480 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
9482 @item Parse traceback strings and raise with the parsed tracebacks.
9484 (license license:bsd-3)))
9486 (define-public python2-tblib
9487 (package-with-python2 python-tblib))
9489 (define-public python-sqlparse
9491 (name "python-sqlparse")
9495 (uri (pypi-uri "sqlparse" version))
9498 "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"))))
9499 (build-system python-build-system)
9502 (modify-phases %standard-phases
9505 ;; setup.py-integrated 2to3 only affects the build files, but
9506 ;; py.test is using the source files. So we need to convert them
9508 (when (zero? (system* "python3"))
9509 (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests"))
9510 (zero? (system* "py.test")))))))
9512 `(("python-pytest" ,python-pytest)
9513 ("python-setuptools" ,python-setuptools)))
9514 (home-page "https://github.com/andialbrecht/sqlparse")
9515 (synopsis "Non-validating SQL parser")
9516 (description "Sqlparse is a non-validating SQL parser for Python. It
9517 provides support for parsing, splitting and formatting SQL statements.")
9518 (license license:bsd-3)))
9520 (define-public python2-sqlparse
9521 (package-with-python2 python-sqlparse))
9523 (define-public python-greenlet
9525 (name "python-greenlet")
9529 (uri (pypi-uri "greenlet" version))
9532 "04h0m54dyqg49vyarq26mry6kbivnpl47rnmmrk9qn8wpfxviybr"))))
9533 (build-system python-build-system)
9535 `(("python-setuptools" ,python-setuptools)))
9536 (home-page "https://greenlet.readthedocs.io/")
9537 (synopsis "Lightweight in-process concurrent programming")
9539 "Greenlet package is a spin-off of Stackless, a version of CPython
9540 that supports micro-threads called \"tasklets\". Tasklets run
9541 pseudo-concurrently (typically in a single or a few OS-level threads) and
9542 are synchronized with data exchanges on \"channels\".")
9543 (license (list license:psfl license:expat))))
9545 (define-public python2-greenlet
9546 (package-with-python2 python-greenlet))
9548 (define-public python-gevent
9550 (name "python-gevent")
9554 (uri (pypi-uri "gevent" version))
9557 "1smf3kvidpdiyi2c81alal74p2zm0clrm6xbyy6y1k9a3f2vkrbf"))
9558 (modules '((guix build utils)))
9561 ;; unbunding libev and c-ares
9562 (for-each delete-file-recursively '("libev" "c-ares"))
9564 (call-with-output-file "greentest/__init__.py" noop)
9565 (substitute* "greentest/testrunner.py"
9566 (("import util") "from . import util")
9567 (("from util import log") "from .util import log"))))))
9568 (build-system python-build-system)
9570 `(("python-greenlet" ,python-greenlet)))
9572 `(("python-setuptools" ,python-setuptools)
9573 ("python-six" ,python-six)))
9575 `(("c-ares" ,c-ares)
9577 (home-page "http://www.gevent.org/")
9578 (synopsis "Coroutine-based network library")
9580 "gevent is a coroutine-based Python networking library that uses greenlet
9581 to provide a high-level synchronous API on top of the libev event loop.")
9582 (license license:expat)))
9584 (define-public python2-gevent
9585 (package-with-python2 python-gevent))
9587 (define-public python-twisted
9589 (name "python-twisted")
9593 (uri (pypi-uri "Twisted" version ".tar.bz2"))
9596 "0ydxrp9myw1mvsz3qfzx5579y5llmqa82pxvqchgp5syczffi450"))))
9597 (build-system python-build-system)
9599 `(("python-setuptools" ,python-setuptools)))
9601 `(("python-zope-interface" ,python-zope-interface)))
9602 (home-page "https://twistedmatrix.com/")
9603 (synopsis "Asynchronous networking framework written in Python")
9605 "Twisted is an extensible framework for Python programming, with special
9606 focus on event-based network programming and multiprotocol integration.")
9607 (license license:expat)))
9609 (define-public python2-twisted
9610 (package-with-python2 python-twisted))
9612 (define-public python-pika
9614 (name "python-pika")
9619 (uri (pypi-uri "pika" version))
9622 "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj"))))
9623 (build-system python-build-system)
9625 `(("python-twisted" ,python-twisted)))
9626 (home-page "https://pika.readthedocs.org")
9627 (synopsis "Pure Python AMQP Client Library")
9629 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
9630 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
9631 network support library.")
9632 (license license:bsd-3)))
9634 (define-public python2-pika
9635 (package-with-python2 python-pika))
9637 (define-public python-ply
9645 "https://pypi.python.org/packages/"
9646 "96/e0/430fcdb6b3ef1ae534d231397bee7e9304be14a47a267e82ebcb3323d0b5"
9647 "/ply-" version ".tar.gz"))
9650 "1f70ipynmiy09k6px2j7v4w5cdrc21za3xs2k6f1bsvb0bzvvlg7"))))
9651 (build-system python-build-system)
9652 (home-page "http://www.dabeaz.com/ply/")
9653 (synopsis "Python Lex & Yacc")
9654 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
9655 It uses LR parsing and does extensive error checking.")
9656 (license license:bsd-3)
9657 (properties `((python2-variant . ,(delay python2-ply))))))
9659 (define-public python2-ply
9661 (inherit (package-with-python2
9662 (strip-python2-variant python-ply)))
9663 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
9665 (define-public python-tabulate
9667 (name "python-tabulate")
9671 (uri (pypi-uri "tabulate" version))
9674 "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch"))
9676 (modules '((guix build utils)))
9677 (snippet '(substitute* '("test/test_cli.py"
9678 "test/test_input.py"
9679 "test/test_output.py"
9680 "test/test_regression.py")
9681 (("from common") "from nose.tools")))))
9682 (build-system python-build-system)
9684 `(("python-setuptools" ,python-setuptools)
9686 ("python-nose" ,python-nose)))
9687 (home-page "https://bitbucket.org/astanin/python-tabulate")
9688 (synopsis "Pretty-print tabular data")
9690 "Tabulate is a library and command-line utility to pretty-print tabular
9692 (license license:expat)))
9694 (define-public python2-tabulate
9695 (package-with-python2 python-tabulate))
9697 (define-public python-kazoo
9699 (name "python-kazoo")
9704 (uri (pypi-uri "kazoo" version))
9707 "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj"))))
9708 (build-system python-build-system)
9709 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
9711 `(("python-setuptools" ,python-setuptools)))
9713 `(("python-six" ,python-six)))
9714 (home-page "https://kazoo.readthedocs.org")
9715 (synopsis "High-level Zookeeper client library")
9717 "Kazoo is a Python client library for the Apache Zookeeper distributed
9718 application service. It is designed to be easy to use and to avoid common
9719 programming errors.")
9720 (license license:asl2.0)))
9722 (define-public python2-kazoo
9723 (package-with-python2 python-kazoo))
9725 (define-public python-pykafka
9727 (name "python-pykafka")
9732 "https://pypi.python.org/packages/8b/3e/"
9733 "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/"
9734 "pykafka-" version ".tar.gz"))
9737 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
9738 (build-system python-build-system)
9739 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
9741 `(("python-setuptools" ,python-setuptools)))
9743 `(("python-gevent" ,python-gevent)
9744 ("python-kazoo" ,python-kazoo)
9745 ("python-tabulate" ,python-tabulate)))
9747 `(("librdkafka" ,librdkafka)))
9748 (home-page "https://pykafka.readthedocs.io/")
9749 (synopsis "Apache Kafka client for Python")
9751 "PyKafka is a client for the Apache Kafka distributed messaging system.
9752 It includes Python implementations of Kafka producers and consumers, which
9753 are optionally backed by a C extension built on librdkafka.")
9754 (license license:asl2.0)))
9756 (define-public python2-pykafka
9757 (package-with-python2 python-pykafka))
9759 (define-public python-wcwidth
9761 (name "python-wcwidth")
9767 "https://pypi.python.org/packages/"
9768 "c2/d1/7689293086a8d5320025080cde0e3155b94ae0a7496fb89a3fbaa92c354a/"
9769 "wcwidth-" version ".tar.gz"))
9772 "02wjrpf001gjdjsaxxbzcwfg19crlk2dbddayrfc2v06f53yrcyw"))))
9773 (build-system python-build-system)
9774 (home-page "https://github.com/jquast/wcwidth")
9775 (synopsis "Measure number of terminal column cells of wide-character codes")
9776 (description "Wcwidth measures the number of terminal column cells of
9777 wide-character codes. It is useful for those implementing a terminal emulator,
9778 or programs that carefully produce output to be interpreted by one. It is a
9779 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
9780 specified in POSIX.1-2001 and POSIX.1-2008.")
9781 (license license:expat)
9782 (properties `((python2-variant . ,(delay python2-wcwidth))))))
9784 (define-public python2-wcwidth
9786 (inherit (package-with-python2
9787 (strip-python2-variant python-wcwidth)))
9788 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
9790 (define-public python2-jsonrpclib
9792 (name "python2-jsonrpclib")
9797 "https://pypi.python.org/packages/source/j/jsonrpclib/"
9798 "jsonrpclib-" version ".tar.gz"))
9801 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
9802 (build-system python-build-system)
9804 `(("python2-setuptools" ,python2-setuptools)))
9807 #:python ,python-2))
9808 (home-page "https://github.com/joshmarshall/jsonrpclib/")
9809 (synopsis "Implementation of JSON-RPC specification for Python")
9811 "This library is an implementation of the JSON-RPC specification.
9812 It supports both the original 1.0 specification, as well as the
9813 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
9815 (license license:asl2.0)))
9817 (define-public python-chai
9819 (name "python-chai")
9823 (uri (pypi-uri "chai" version))
9826 "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl"))))
9827 (build-system python-build-system)
9829 `(("python-setuptools" ,python-setuptools)))
9830 (home-page "https://github.com/agoragames/chai")
9831 (synopsis "Mocking framework for Python")
9833 "Chai provides an api for mocking, stubbing and spying your python
9834 objects, patterned after the Mocha library for Ruby.")
9835 (license license:bsd-3)))
9837 (define-public python2-chai
9838 (package-with-python2 python-chai))
9840 (define-public python-arrow
9842 (name "python-arrow")
9846 (uri (pypi-uri "arrow" version))
9849 "1bz7hkdgpqcjs866y58z8jywpy7al0f4rxdr00bh2l5qddyw245j"))))
9850 (build-system python-build-system)
9852 `(("python-setuptools" ,python-setuptools)
9854 ("python-chai" ,python-chai)
9855 ("python-simplejson" ,python-simplejson)))
9857 `(("python-dateutil" ,python-dateutil-2)))
9858 (home-page "https://github.com/crsmithdev/arrow/")
9859 (synopsis "Dates and times for Python")
9861 "Arrow is a Python library to creating, manipulating, formatting and
9862 converting dates, times, and timestamps. It implements and updates the
9864 (license license:asl2.0)))
9866 (define-public python2-arrow
9867 (package-with-python2 python-arrow))
9869 (define-public python-inflection
9871 (name "python-inflection")
9874 (origin (method url-fetch)
9875 (uri (pypi-uri "inflection" version))
9878 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
9879 (build-system python-build-system)
9881 `(("python-setuptools" ,python-setuptools)))
9882 (home-page "http://github.com/jpvanhal/inflection")
9883 (synopsis "Python string transformation library")
9885 "Inflection is a string transformation library. It singularizes
9886 and pluralizes English words, and transforms strings from CamelCase to
9887 underscored string.")
9888 (license license:expat)))
9890 (define-public python2-inflection
9891 (package-with-python2 python-inflection))
9893 (define-public python-pylev
9895 (name "python-pylev")
9899 (uri (pypi-uri "pylev" version))
9902 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
9903 (build-system python-build-system)
9905 `(("python-setuptools" ,python-setuptools)))
9906 (home-page "http://github.com/toastdriven/pylev")
9907 (synopsis "Levenshtein distance implementation in Python")
9908 (description "Pure Python Levenshtein implementation, based off the
9909 Wikipedia code samples at
9910 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
9911 (license license:bsd-3)))
9913 (define-public python2-pylev
9914 (package-with-python2 python-pylev))
9916 (define-public python-cleo
9918 (name "python-cleo")
9922 (uri (pypi-uri "cleo" version))
9925 "1k2dcl6mqpn5bljyl6w42rqyd9mb3y9kh2mg7m2x3kfjwvg0rpva"))))
9926 (build-system python-build-system)
9928 `(("python-setuptools" ,python-setuptools)
9930 ("python-mock" ,python-mock)
9931 ("python-pytest" ,python-pytest)))
9933 `(("python-psutil" ,python-psutil)
9934 ("python-pylev" ,python-pylev)))
9935 (home-page "https://github.com/sdispater/cleo")
9936 (synopsis "Command-line arguments library for Python")
9938 "Cleo allows you to create command-line commands with signature in
9939 docstring and colored output.")
9940 (license license:expat)))
9942 (define-public python2-cleo
9943 (package-with-python2 python-cleo))
9945 (define-public python-lazy-object-proxy
9947 (name "python-lazy-object-proxy")
9951 (uri (pypi-uri "lazy-object-proxy" version))
9954 "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x"))))
9955 (build-system python-build-system)
9957 `(("python-setuptools" ,python-setuptools)))
9958 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
9959 (synopsis "Lazy object proxy for python")
9961 "Lazy object proxy is an object that wraps a callable but defers the call
9962 until the object is actually required, and caches the result of said call.")
9963 (license license:bsd-2)))
9965 (define-public python2-lazy-object-proxy
9966 (package-with-python2 python-lazy-object-proxy))
9968 (define-public python-dnspython
9970 (name "python-dnspython")
9974 (uri (string-append "http://www.dnspython.org/kits/"
9975 version "/dnspython-" version ".tar.gz"))
9978 "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i"))))
9979 (build-system python-build-system)
9980 (arguments '(#:tests? #f)) ; XXX: requires internet access
9982 `(("python-setuptools" ,python-setuptools)))
9983 (home-page "http://www.dnspython.org")
9984 (synopsis "DNS toolkit for Python")
9986 "dnspython is a DNS toolkit for Python. It supports almost all record
9987 types. It can be used for queries, zone transfers, and dynamic updates.
9988 It supports TSIG authenticated messages and EDNS0.")
9989 (license license:expat)))
9991 (define-public python2-dnspython
9992 (package-with-python2 python-dnspython))
9994 (define-public python-email-validator
9996 (name "python-email-validator")
9999 (origin (method url-fetch)
10000 (uri (pypi-uri "email_validator" version))
10003 "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw"))))
10004 (build-system python-build-system)
10007 (modify-phases %standard-phases
10008 (add-before 'build 'use-dnspython
10010 (substitute* "setup.py"
10011 (("dnspython3") "dnspython"))
10014 `(("python-setuptools" ,python-setuptools)))
10016 `(("python-dnspython" ,python-dnspython)
10017 ("python-idna" ,python-idna)))
10018 (home-page "https://github.com/JoshData/python-email-validator")
10019 (synopsis "Email address validation library for Python")
10021 "This library validates email address syntax and deliverability.")
10022 (license license:cc0)))
10024 (define-public python2-email-validator
10025 (package-with-python2 python-email-validator))
10027 (define-public python-ukpostcodeparser
10029 (name "python-ukpostcodeparser")
10033 (uri (pypi-uri "UkPostcodeParser" version))
10036 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
10037 (build-system python-build-system)
10039 `(("python-setuptools" ,python-setuptools)))
10040 (home-page "https://github.com/hamstah/ukpostcodeparser")
10041 (synopsis "UK Postcode parser for Python")
10043 "This library provides the @code{parse_uk_postcode} function for
10044 parsing UK postcodes.")
10045 (license license:expat)))
10047 (define-public python2-ukpostcodeparser
10048 (package-with-python2 python-ukpostcodeparser))
10050 (define-public python-fake-factory
10052 (name "python-fake-factory")
10056 (uri (pypi-uri "fake-factory" version))
10059 "0vs0dkmg0dlaxf8w6q2i3k0i03gmp56ablldv7ci9x3nbadkn71g"))))
10060 (build-system python-build-system)
10062 `(("python-setuptools" ,python-setuptools)
10064 ("python-email-validator" ,python-email-validator)
10065 ("python-mock" ,python-mock)
10066 ("python-ukpostcodeparser" ,python-ukpostcodeparser)))
10068 `(("python-dateutil" ,python-dateutil-2)
10069 ("python-six" ,python-six)))
10070 (home-page "https://github.com/joke2k/faker")
10071 (synopsis "Python package that generates fake data")
10073 "Faker is a Python package that generates fake data such as names,
10074 addresses, and phone numbers.")
10075 (license license:expat)
10076 (properties `((python2-variant . ,(delay python2-fake-factory))))))
10078 (define-public python2-fake-factory
10079 (let ((base (package-with-python2 (strip-python2-variant
10080 python-fake-factory))))
10084 `(("python2-ipaddress" ,python2-ipaddress)
10085 ,@(package-propagated-inputs base))))))
10087 (define-public python-pyaml
10089 (name "python-pyaml")
10093 (uri (pypi-uri "pyaml" version))
10096 "1f5m28vkh4ksq3d80d8mmd2z8wxvc3mgy2pmrv2751dm2xgznm4w"))))
10097 (build-system python-build-system)
10099 `(("python-setuptools" ,python-setuptools)))
10101 `(("python-pyyaml" ,python-pyyaml)))
10102 (home-page "https://github.com/mk-fg/pretty-yaml")
10103 (synopsis "YAML pretty-print library for Python")
10105 "pyaml is a PyYAML based python module to produce pretty and readable
10106 YAML-serialized data.")
10107 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/"))))
10109 (define-public python2-pyaml
10110 (package-with-python2 python-pyaml))
10112 (define-public python-flexmock
10114 (name "python-flexmock")
10118 (uri (pypi-uri "flexmock" version))
10121 "0arc6njvs6i9v9hgvzk5m50296g7zy5m9d7pyb43vdsdgxrci5gy"))))
10122 (build-system python-build-system)
10124 `(("python-setuptools" ,python-setuptools)))
10125 (home-page "https://flexmock.readthedocs.org")
10126 (synopsis "Testing library for Python")
10128 "flexmock is a testing library for Python that makes it easy to create
10129 mocks, stubs and fakes.")
10130 (license license:bsd-3)))
10132 (define-public python2-flexmock
10133 (package-with-python2 python-flexmock))
10135 (define-public python-orator
10137 (name "python-orator")
10141 (uri (pypi-uri "orator" version))
10144 "1li49irsqha17nrda4nsb48biyy0rarp9pphf0jpqwm5zr8hv569"))))
10145 (build-system python-build-system)
10146 (arguments '(#:tests? #f)) ; no tests
10148 `(("python-setuptools" ,python-setuptools)))
10150 `(("python-arrow" ,python-arrow)
10151 ("python-blinker" ,python-blinker)
10152 ("python-cleo" ,python-cleo)
10153 ("python-fake-factory" ,python-fake-factory)
10154 ("python-inflection" ,python-inflection)
10155 ("python-lazy-object-proxy" ,python-lazy-object-proxy)
10156 ("python-pyaml" ,python-pyaml)
10157 ("python-simplejson" ,python-simplejson)
10158 ("python-wrapt" ,python-wrapt)))
10159 (home-page "https://orator-orm.com/")
10160 (synopsis "ActiveRecord ORM for Python")
10162 "Orator provides a simple ActiveRecord-like Object Relational Mapping
10163 implementation for Python.")
10164 (license license:expat)
10165 (properties `((python2-variant . ,(delay python2-orator))))))
10167 (define-public python2-orator
10168 (let ((base (package-with-python2 (strip-python2-variant python-orator))))
10172 `(("python2-ipaddress" ,python2-ipaddress)
10173 ,@(package-propagated-inputs base))))))
10175 (define-public python-prompt-toolkit
10177 (name "python-prompt-toolkit")
10182 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
10185 "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg"))))
10186 (build-system python-build-system)
10187 (inputs `(("python-wcwidth" ,python-wcwidth)
10188 ("python-pygments" ,python-pygments)))
10189 (native-inputs `(("python-six" ,python-six)))
10190 (home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
10191 (synopsis "Library for building command line interfaces in Python")
10193 "Prompt-Toolkit is a library for building interactive command line
10194 interfaces in Python. It's like GNU Readline but it also features syntax
10195 highlighting while typing, out-of-the-box multi-line input editing, advanced
10196 code completion, incremental search, support for Chinese double-width
10197 characters, mouse support, and auto suggestions.")
10198 (license license:bsd-3)
10199 (properties `((python2-variant . ,(delay python2-prompt-toolkit))))))
10201 (define-public python2-prompt-toolkit
10202 (let ((base (package-with-python2 (strip-python2-variant python-prompt-toolkit))))
10206 `(("python2-setuptools" ,python2-setuptools)
10207 ,@(package-native-inputs base))))))
10209 (define-public python-jedi
10211 (name "python-jedi")
10216 (uri (pypi-uri "jedi" version))
10219 "0c8x962ynpx001fdvp07m2q5jk4igkxbj3rmnydavphvlgxijk1v"))))
10220 (build-system python-build-system)
10221 (home-page "https://github.com/davidhalter/jedi")
10223 "Autocompletion for Python that can be used for text editors")
10225 "Jedi is an autocompletion tool for Python that can be used for text editors.")
10226 (license license:expat)
10227 (properties `((python2-variant . ,(delay python2-jedi))))))
10229 (define-public python2-jedi
10230 (let ((base (package-with-python2 (strip-python2-variant python-jedi))))
10234 `(("python2-setuptools" ,python2-setuptools)
10235 ,@(package-native-inputs base))))))
10237 (define-public ptpython
10243 (uri (pypi-uri "ptpython" version))
10246 "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
10247 (build-system python-build-system)
10249 `(("python-docopt" ,python-docopt)
10250 ("python-jedi" ,python-jedi)
10251 ("python-prompt-toolkit" ,python-prompt-toolkit)
10252 ("python-pygments" ,python-pygments)
10253 ("python-setuptools" ,python-setuptools)))
10254 (home-page "https://github.com/jonathanslenders/ptpython")
10255 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
10257 "ptpython is a Python read-eval-print loop with IDE-like features.
10258 It supports syntax highlighting, multiline editing, autocompletion, mouse,
10259 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
10261 (license license:bsd-3)
10262 (properties `((python2-variant . ,(delay ptpython-2))))))
10264 (define-public ptpython-2
10265 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
10268 (name "ptpython2"))))
10270 (define-public python-requests-oauthlib
10272 (name "python-requests-oauthlib")
10277 (uri (pypi-uri "requests-oauthlib" version))
10280 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
10281 (build-system python-build-system)
10284 (modify-phases %standard-phases
10285 ;; removes tests that require network access
10286 (add-before 'check 'pre-check
10288 (delete-file "tests/test_core.py")
10291 `(("python-requests-mock" ,python-requests-mock)
10292 ("python-mock" ,python-mock)))
10294 `(("python-oauthlib" ,python-oauthlib)
10295 ("python-requests" ,python-requests)))
10297 "https://github.com/requests/requests-oauthlib")
10299 "OAuthlib authentication support for Requests")
10301 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
10302 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
10303 (license license:isc)
10304 (properties `((python2-variant . ,(delay python2-requests-oauthlib))))))
10306 (define-public python2-requests-oauthlib
10307 (let ((base (package-with-python2 (strip-python2-variant python-requests-oauthlib))))
10310 (native-inputs `(("python2-setuptools" ,python2-setuptools)
10311 ,@(package-native-inputs base))))))
10313 (define-public python-stem
10315 (name "python-stem")
10320 (uri (pypi-uri "stem" version ".tar.bz2"))
10323 "09a3amp1y351nwz088ckiibbp666qi2lxwkyknavswfm400s0ns7"))))
10324 (build-system python-build-system)
10327 (modify-phases %standard-phases
10330 (zero? (system* "./run_tests.py" "--unit")))))))
10332 `(("python-mock" ,python-mock)
10333 ("python-pep8" ,python-pep8)
10334 ("python-pyflakes" ,python-pyflakes)))
10336 `(("python-pycrypto" ,python-pycrypto)))
10337 (home-page "https://stem.torproject.org/")
10339 "Python controller library that allows applications to interact with Tor")
10341 "Stem is a Python controller library for Tor. With it you can use Tor's
10342 control protocol to script against the Tor process and read descriptor data
10343 relays publish about themselves.")
10344 (license license:lgpl3)))
10346 (define-public python2-stem
10347 (package-with-python2 python-stem))
10349 (define-public python-pyserial
10351 (name "python-pyserial")
10356 (uri (pypi-uri "pyserial" version))
10359 "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn"))))
10360 (build-system python-build-system)
10362 "https://github.com/pyserial/pyserial")
10363 (synopsis "Python Serial Port Bindings")
10364 (description "@code{pyserial} provide serial port bindings for Python. It
10365 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
10366 and/or Xon/Xoff. The port is accessed in RAW mode.")
10367 (license license:bsd-3)
10368 (properties `((python2-variant . ,(delay python2-pyserial))))))
10370 (define-public python2-pyserial
10371 (let ((base (package-with-python2 (strip-python2-variant python-pyserial))))
10375 `(("python2-setuptools" ,python2-setuptools)
10376 ,@(package-native-inputs base))))))
10378 (define-public python-kivy
10380 (name "python-kivy")
10385 (uri (pypi-uri "kivy" version))
10386 (file-name (string-append name "-" version ".tar.gz"))
10389 "0zk3g1j1z0lzcm9d0k1lprrs95zr8n8k5pdg3p5qlsn26jz4bg19"))))
10390 (build-system python-build-system)
10392 `(#:tests? #f ; Tests require many optional packages
10394 (modify-phases %standard-phases
10395 (replace 'build (lambda _ (zero? (system* "make" "force"))))
10396 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
10397 (lambda* (#:key inputs #:allow-other-keys)
10398 (setenv "KIVY_SDL2_PATH"
10399 (string-append (assoc-ref inputs "sdl-union")
10403 `(("pkg-config" ,pkg-config)))
10405 `(("python-cython" ,python-cython)
10406 ("gstreamer" ,gstreamer)
10409 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
10410 (home-page "http://kivy.org")
10412 "Multitouch application framework")
10414 "A software library for rapid development of
10415 hardware-accelerated multitouch applications.")
10416 (license license:expat)))
10418 (define-public python2-kivy
10419 (package-with-python2 python-kivy))
10421 (define-public python-kivy-next
10422 (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe")
10424 (package (inherit python-kivy)
10425 (name "python-kivy-next")
10426 (version (string-append "1.9.1-" revision "."
10427 (string-take commit 7)))
10431 (uri (git-reference
10432 (url "https://github.com/kivy/kivy")
10434 (file-name (string-append name "-" version "-checkout"))
10437 "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))))))
10439 (define-public python2-kivy-next
10440 (package-with-python2 python-kivy-next))
10442 (define-public python-binaryornot
10444 (name "python-binaryornot")
10448 (uri (pypi-uri "binaryornot" version))
10451 "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb"))))
10452 (build-system python-build-system)
10454 `(("python-chardet" ,python-chardet)
10455 ("python-hypothesis" ,python-hypothesis)))
10456 (home-page "https://github.com/audreyr/binaryornot")
10457 (synopsis "Package to check if a file is binary or text")
10458 (description "Ultra-lightweight pure Python package to check if a file is
10460 (license license:bsd-3)
10461 (properties `((python2-variant . ,(delay python2-binaryornot))))))
10463 (define-public python2-binaryornot
10464 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
10465 (package (inherit base)
10467 `(("python2-setuptools" ,python2-setuptools)
10468 ,@(package-native-inputs base)))
10470 `(("python2-enum34" ,python2-enum34)
10471 ,@(package-inputs base))))))
10473 (define-public python-nltk
10475 (name "python-nltk")
10479 (uri (pypi-uri "nltk" version))
10482 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
10483 (build-system python-build-system)
10484 (home-page "http://nltk.org/")
10485 (synopsis "Natural Language Toolkit")
10486 (description "It provides interfaces to over 50 corpora and lexical
10487 resources such as WordNet, along with a suite of text processing libraries
10488 for classification, tokenization, stemming, tagging, parsing, and semantic
10489 reasoning, wrappers for natural language processing libraries.")
10490 (license license:asl2.0)
10491 (properties `((python2-variant . ,(delay python2-nltk))))))
10493 (define-public python2-nltk
10494 (let ((base (package-with-python2 (strip-python2-variant python-nltk))))
10495 (package (inherit base)
10497 `(("python2-setuptools" ,python2-setuptools)
10498 ,@(package-native-inputs base))))))
10500 (define-public python-pymongo
10502 (name "python-pymongo")
10506 (uri (pypi-uri "pymongo" version))
10509 "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x"))))
10510 (build-system python-build-system)
10512 `(("python-certifi" ,python-certifi)))
10513 (home-page "http://github.com/mongodb/mongo-python-driver")
10514 (synopsis "Python driver for MongoDB")
10515 (description "Python driver for MongoDB.")
10516 (license license:asl2.0)
10517 (properties `((python2-variant . ,(delay python2-pymongo))))))
10519 (define-public python2-pymongo
10520 (let ((base (package-with-python2 (strip-python2-variant python-pymongo))))
10521 (package (inherit base)
10523 `(("python2-setuptools" ,python2-setuptools)
10524 ,@(package-native-inputs base))))))
10526 (define-public python-sh
10532 (uri (pypi-uri "sh" version))
10535 "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr"))))
10536 (build-system python-build-system)
10538 `(#:tests? #f)) ; no tests
10539 (home-page "https://github.com/amoffat/sh")
10540 (synopsis "Python subprocess interface")
10541 (description "Abstracts process invocation by providing a function
10542 interface for programs.")
10543 (license license:expat)
10544 (properties `((python2-variant . ,(delay python2-sh))))))
10546 (define-public python2-sh
10547 (let ((base (package-with-python2 (strip-python2-variant python-sh))))
10548 (package (inherit base)
10550 `(("python2-setuptools" ,python2-setuptools)
10551 ,@(package-native-inputs base))))))
10553 (define-public python-consul
10555 (name "python-consul")
10560 (uri (pypi-uri "python-consul" version))
10563 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
10564 (build-system python-build-system)
10566 `(("python-pytest" ,python-pytest)
10567 ("python-requests" ,python-requests)
10568 ("python-six" ,python-six)))
10569 (home-page "https://github.com/cablehead/python-consul")
10570 (synopsis "Python client for Consul")
10572 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
10573 discovery, monitoring and configuration.")
10574 (license license:expat)))
10576 (define-public python2-consul
10577 (let ((consul (package-with-python2 python-consul)))
10578 (package (inherit consul)
10580 `(("python2-setuptools" ,python2-setuptools)
10581 ,@(package-native-inputs consul))))))
10583 (define-public python-schematics
10585 (name "python-schematics")
10590 (uri (string-append
10591 "https://github.com/schematics/schematics/archive/v" version ".tar.gz"))
10592 (file-name (string-append name "-" version ".tar.gz"))
10595 "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l"))))
10596 (build-system python-build-system)
10598 `(("python-six" ,python-six)))
10600 `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed
10601 ; version requirements (eg python-coveralls)
10602 (home-page "https://github.com/schematics/schematics")
10603 (synopsis "Python Data Structures for Humans")
10604 (description "Python Data Structures for Humans.")
10605 (license license:bsd-3)
10606 (properties `((python2-variant . ,(delay python2-schematics))))))
10608 (define-public python2-schematics
10609 (let ((base (package-with-python2 (strip-python2-variant python-schematics))))
10610 (package (inherit base)
10612 `(("python2-setuptools" ,python2-setuptools)
10613 ,@(package-native-inputs base))))))
10615 (define-public python-publicsuffix
10617 (name "python-publicsuffix")
10621 (uri (pypi-uri "publicsuffix" version))
10624 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
10625 (build-system python-build-system)
10627 `(#:tests? #f)) ; tests use the internet
10628 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
10629 (synopsis "Get suffix for a domain name")
10630 (description "Get a public suffix for a domain name using the Public Suffix
10632 (license license:expat)
10633 (properties `((python2-variant . ,(delay python2-nltk))))))
10635 (define-public python2-publicsuffix
10636 (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix))))
10637 (package (inherit base)
10639 `(("python2-setuptools" ,python2-setuptools)
10640 ,@(package-native-inputs base))))))
10642 (define-public python-publicsuffix2
10644 (name "python-publicsuffix2")
10645 (version "2.20160621")
10649 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
10652 "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd"))))
10653 (build-system python-build-system)
10654 (home-page "https://github.com/pombredanne/python-publicsuffix2")
10655 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
10656 (description "Get a public suffix for a domain name using the Public Suffix
10657 List. Forked from and using the same API as the publicsuffix package.")
10658 (license (list license:expat license:mpl2.0))
10659 (properties `((python2-variant . ,(delay python2-publicsuffix2))))))
10661 (define-public python2-publicsuffix2
10662 (let ((base (package-with-python2 (strip-python2-variant python-publicsuffix2))))
10663 (package (inherit base)
10665 `(("python2-setuptools" ,python2-setuptools)
10666 ,@(package-native-inputs base))))))
10668 (define-public python-url
10670 (name "python-url")
10674 (uri (pypi-uri "url" version))
10677 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
10678 (build-system python-build-system)
10680 `(("python-publicsuffix" ,python-publicsuffix)))
10682 `(("python-coverage" ,python-coverage)
10683 ("python-nose" ,python-nose)))
10685 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
10686 (home-page "http://github.com/seomoz/url-py")
10687 (synopsis "URL Parsing")
10688 (description "Library for parsing urls.")
10689 (license license:expat)
10690 (properties `((python2-variant . ,(delay python2-url))))))
10692 (define-public python2-url
10693 (let ((base (package-with-python2 (strip-python2-variant python-url))))
10694 (package (inherit base)
10696 `(("python2-publicsuffix" ,python2-publicsuffix)))
10698 `(("python2-setuptools" ,python2-setuptools)
10699 ,@(package-native-inputs base))))))
10701 (define-public python-freezegun
10703 (name "python-freezegun")
10708 (uri (pypi-uri "freezegun" version))
10711 "14l19x06v5jkq4rdwbmfyw4x9lrjb2300afrk21r1ash7y1y9a0w"))))
10712 (build-system python-build-system)
10714 `(("python-mock" ,python-mock)
10715 ("python-nose" ,python-nose)
10716 ("python-coverage" ,python-coverage)
10717 ("python-dateutil-2" ,python-dateutil-2)))
10719 `(("python-six" ,python-six)))
10721 `(#:phases (modify-phases %standard-phases
10722 ;; The tests are normally executed via `make test`, but the PyPi
10723 ;; package does not include the Makefile.
10726 (zero? (system* "nosetests" "./tests/")))))))
10727 (home-page "https://github.com/spulec/freezegun")
10728 (synopsis "Test utility for mocking the datetime module")
10730 "FreezeGun is a library that allows your python tests to travel through
10731 time by mocking the datetime module.")
10732 (license license:asl2.0)))
10734 (define-public python2-freezegun
10735 (let ((base (package-with-python2 (strip-python2-variant python-freezegun))))
10736 (package (inherit base)
10738 `(("python2-setuptools" ,python2-setuptools)
10739 ,@(package-native-inputs base))))))
10741 (define-public python-odfpy
10743 (name "python-odfpy")
10747 (uri (pypi-uri "odfpy" version))
10750 "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw"))))
10752 `(#:modules ((srfi srfi-1)
10753 (guix build python-build-system)
10754 (guix build utils))
10756 (modify-phases %standard-phases
10758 ;; The test runner invokes python2 and python3 for test*.py.
10759 ;; To avoid having both in inputs, we replicate it here.
10761 (every (lambda (test-file)
10762 (zero? (system* "python" test-file)))
10763 (find-files "tests" "^test.*\\.py$")))))))
10764 (build-system python-build-system)
10765 (home-page "https://github.com/eea/odfpy")
10766 (synopsis "Python API and tools to manipulate OpenDocument files")
10767 (description "Collection of libraries and utility programs written in
10768 Python to manipulate OpenDocument 1.2 files.")
10770 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
10771 ;; number of files with other licenses.
10772 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
10774 (define-public python2-odfpy
10775 (package-with-python2 python-odfpy))
10777 (define-public python-cachecontrol
10779 (name "python-cachecontrol")
10784 ;; Pypi does not have tests.
10785 (uri (string-append
10786 "https://github.com/ionrock/cachecontrol/archive/v"
10787 version ".tar.gz"))
10788 (file-name (string-append name "-" version ".tar.gz"))
10791 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
10792 (build-system python-build-system)
10795 (modify-phases %standard-phases
10798 ;; Drop test that requires internet access.
10799 (delete-file "tests/test_regressions.py")
10800 (setenv "PYTHONPATH"
10801 (string-append (getcwd) "/build/lib:"
10802 (getenv "PYTHONPATH")))
10803 (zero? (system* "py.test" "-vv")))))))
10805 `(("python-pytest" ,python-pytest)
10806 ("python-redis" ,python-redis)
10807 ("python-webtest" ,python-webtest)
10808 ("python-mock" ,python-mock)))
10810 `(("python-requests" ,python-requests)
10811 ("python-lockfile" ,python-lockfile)))
10812 (home-page "https://github.com/ionrock/cachecontrol")
10813 (synopsis "The httplib2 caching algorithms for use with requests")
10814 (description "CacheControl is a port of the caching algorithms in
10815 @code{httplib2} for use with @code{requests} session objects.")
10816 (license license:asl2.0)
10817 (properties `((python2-variant . ,(delay python2-cachecontrol))))))
10819 (define-public python2-cachecontrol
10820 (let ((base (package-with-python2 (strip-python2-variant python-cachecontrol))))
10821 (package (inherit base)
10823 `(("python2-setuptools" ,python2-setuptools)
10824 ,@(package-native-inputs base))))))
10826 (define-public python-lit
10828 (name "python-lit")
10833 (uri (pypi-uri "lit" version))
10836 "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y"))))
10837 (build-system python-build-system)
10838 (home-page "http://llvm.org/")
10839 (synopsis "LLVM Software Testing Tool")
10840 (description "@code{lit} is a portable tool for executing LLVM and Clang
10841 style test suites, summarizing their results, and providing indication of
10843 (license license:ncsa)
10844 (properties `((python2-variant . ,(delay python2-lit))))))
10846 (define-public python2-lit
10847 (let ((base (package-with-python2 (strip-python2-variant python-lit))))
10851 `(("python2-setuptools" ,python2-setuptools)
10852 ,@(package-native-inputs base))))))
10854 (define-public python-pytest-pep8
10856 (name "python-pytest-pep8")
10860 (uri (pypi-uri "pytest-pep8" version))
10863 "06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
10864 (build-system python-build-system)
10866 `(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
10867 ;; Prevent creation of the egg. This works around
10868 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
10869 #:configure-flags '("--single-version-externally-managed" "--root=/")))
10871 `(("python-pytest" ,python-pytest)))
10873 `(("python-pep8" ,python-pep8)))
10874 (home-page "https://bitbucket.org/pytest-dev/pytest-pep8")
10875 (synopsis "Py.test plugin to check PEP8 requirements")
10876 (description "Pytest plugin for checking PEP8 compliance.")
10877 (license license:expat)
10878 (properties `((python2-variant . ,(delay python2-pytest-pep8))))))
10880 (define-public python2-pytest-pep8
10881 (let ((base (package-with-python2 (strip-python2-variant python-pytest-pep8))))
10882 (package (inherit base)
10884 `(("python2-setuptools" ,python2-setuptools)
10885 ,@(package-native-inputs base))))))
10887 (define-public python-pytest-flakes
10889 (name "python-pytest-flakes")
10893 (uri (pypi-uri "pytest-flakes" version))
10896 "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw"))))
10897 (build-system python-build-system)
10899 `(;; Prevent creation of the egg. This works around
10900 ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765 .
10901 #:configure-flags '("--single-version-externally-managed" "--root=/")
10903 (modify-phases %standard-phases
10905 (add-after 'install 'check
10906 (lambda _ ; It's easier to run tests after install.
10907 (zero? (system* "py.test" "-vv")))))))
10909 `(("python-coverage" ,python-coverage)
10910 ("python-pytest" ,python-pytest)
10911 ("python-pytest-cache" ,python-pytest-cache)
10912 ("python-pytest-pep8" ,python-pytest-pep8)))
10914 `(("python-pyflakes" ,python-pyflakes)))
10915 (home-page "https://github.com/fschulze/pytest-flakes")
10916 (synopsis "Py.test plugin to check source code with pyflakes")
10917 (description "Pytest plugin for checking Python source code with pyflakes.")
10918 (license license:expat)
10919 (properties `((python2-variant . ,(delay python2-pytest-flakes))))))
10921 (define-public python2-pytest-flakes
10922 (let ((base (package-with-python2 (strip-python2-variant python-pytest-flakes))))
10923 (package (inherit base)
10925 `(("python2-setuptools" ,python2-setuptools)
10926 ,@(package-native-inputs base))))))
10928 (define-public python-natsort
10930 (name "python-natsort")
10934 (uri (pypi-uri "natsort" version))
10937 "1abld5p4a6n5zjnyw5mi2pv37gqalcybv2brjr2y6l9l2p8v9mja"))))
10938 (build-system python-build-system)
10941 (modify-phases %standard-phases
10942 (add-before 'check 'set-cachedir
10943 ;; Tests require write access to $HOME by default
10944 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)))))
10946 `(("python-hypothesis" ,python-hypothesis)
10947 ("python-pytest-cache" ,python-pytest-cache)
10948 ("python-pytest-cov" ,python-pytest-cov)
10949 ("python-pytest-flakes" ,python-pytest-flakes)
10950 ("python-pytest-pep8" ,python-pytest-pep8)))
10951 (propagated-inputs ; TODO: Add python-fastnumbers.
10952 `(("python-pyicu" ,python-pyicu)))
10953 (home-page "https://github.com/SethMMorton/natsort")
10954 (synopsis "Natural sorting for python and shell")
10956 "Natsort lets you apply natural sorting on lists instead of
10957 lexicographical. If you use the built-in @code{sorted} method in python
10958 on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be
10959 returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a
10960 function @code{natsorted} that identifies numbers and sorts them separately
10961 from strings. It can also sort version numbers, real numbers, mixed types
10962 and more, and comes with a shell command @command{natsort} that exposes this
10963 functionality in the command line.")
10964 (license license:expat)
10965 (properties `((python2-variant . ,(delay python2-natsort))))))
10967 (define-public python2-natsort
10968 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
10969 (package (inherit base)
10971 `(("python2-setuptools" ,python2-setuptools)
10972 ("python2-pathlib" ,python2-pathlib)
10973 ("python2-mock" ,python2-mock)
10974 ("python2-enum34" ,python2-enum34)
10975 ,@(package-native-inputs base))))))
10977 (define-public python-glances
10979 (name "python-glances")
10984 (uri (pypi-uri "Glances" version))
10987 "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg"))))
10988 (build-system python-build-system)
10990 `(("python-psutil" ,python-psutil)))
10992 "https://github.com/nicolargo/glances")
10994 "A cross-platform curses-based monitoring tool")
10996 "Glances is a curses-based monitoring tool for a wide variety of platforms.
10997 Glances uses the PsUtil library to get information from your system. It monitors
10998 CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
10999 (license license:lgpl3+)
11000 (properties `((python2-variant . ,(delay python2-glances))))))
11002 (define-public python2-glances
11003 (let ((base (package-with-python2 (strip-python2-variant python-glances))))
11007 `(("python2-setuptools" ,python2-setuptools)
11008 ,@(package-native-inputs base))))))
11010 (define-public python-graphql-core
11012 (name "python-graphql-core")
11017 (uri (pypi-uri "graphql-core" version))
11020 "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
11021 (build-system python-build-system)
11024 (modify-phases %standard-phases
11025 (add-after 'unpack 'patch-hardcoded-version
11026 (lambda _ (substitute*
11028 (("'gevent==1.1rc1'") "'gevent'"))
11031 `(("python-gevent" ,python-gevent)
11032 ("python-mock" ,python-mock)
11033 ("python-pytest-mock" ,python-pytest-mock)))
11035 `(("python-promise" ,python-promise)
11036 ("python-six" ,python-six)))
11037 (home-page "https://github.com/graphql-python/graphql-core")
11038 (synopsis "GraphQL implementation for Python")
11040 "GraphQL implementation for Python. GraphQL is a data query language and
11041 runtime designed and used to request and deliver data to mobile and web apps.
11042 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
11044 (properties `((python2-variant . ,(delay python2-graphql-core))))
11045 (license license:expat)))
11047 (define-public python2-graphql-core
11048 (let ((base (package-with-python2
11049 (strip-python2-variant python-graphql-core))))
11050 (package (inherit base)
11052 `(("python2-setuptools" ,python2-setuptools)
11053 ,@(package-native-inputs base))))))
11055 (define-public python-graphql-relay
11057 (name "python-graphql-relay")
11062 (uri (pypi-uri "graphql-relay" version))
11065 "04wr9ayshxjjdcg2v21c7ffbz36kif1wjl3604fqd3qignb3fbxi"))))
11066 (build-system python-build-system)
11068 `(("python-pytest" ,python-pytest)))
11070 `(("python-graphql-core" ,python-graphql-core)
11071 ("python-promise" ,python-promise)
11072 ("python-six" ,python-six)))
11073 (home-page "https://github.com/graphql-python/graphql-relay-py")
11074 (synopsis "Relay implementation for Python")
11076 "This is a library to allow the easy creation of Relay-compliant servers
11077 using the GraphQL Python reference implementation of a GraphQL server. It
11078 should be noted that the code is a exact port of the original
11079 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
11081 (properties `((python2-variant . ,(delay python2-graphql-relay))))
11082 (license license:expat)))
11084 (define-public python2-graphql-relay
11085 (let ((base (package-with-python2
11086 (strip-python2-variant python-graphql-relay))))
11087 (package (inherit base)
11089 `(("python2-setuptools" ,python2-setuptools)
11090 ,@(package-native-inputs base))))))
11092 (define-public python-graphene
11094 (name "python-graphene")
11099 (uri (pypi-uri "graphene" version))
11102 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
11103 (build-system python-build-system)
11105 `(("python-django-filter" ,python-django-filter)
11106 ("python-mock" ,python-mock)
11107 ("python-psycopg2" ,python-psycopg2)
11108 ("python-pytest-django" ,python-pytest-django)
11109 ("python-sqlalchemy-utils" ,python-sqlalchemy-utils)))
11111 `(("python-graphql-core" ,python-graphql-core)
11112 ("python-graphql-relay" ,python-graphql-relay)
11113 ("python-iso8601" ,python-iso8601)
11114 ("python-promise" ,python-promise)
11115 ("python-six" ,python-six)))
11116 (home-page "http://graphene-python.org/")
11117 (synopsis "GraphQL Framework for Python")
11119 "Graphene is a Python library for building GraphQL schemas/types.
11120 A GraphQL schema describes your data model, and provides a GraphQL server
11121 with an associated set of resolve methods that know how to fetch data.")
11122 (properties `((python2-variant . ,(delay python2-graphene))))
11123 (license license:expat)))
11125 (define-public python2-graphene
11126 (let ((base (package-with-python2
11127 (strip-python2-variant python-graphene))))
11128 (package (inherit base)
11130 `(("python2-setuptools" ,python2-setuptools)
11131 ("python2-sqlalchemy" ,python2-sqlalchemy)
11132 ,@(package-native-inputs base))))))
11134 (define-public python-nautilus
11136 (name "python-nautilus")
11141 (uri (pypi-uri "nautilus" version))
11144 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
11145 (build-system python-build-system)
11146 (arguments `(#:tests? #f)) ; fails to import test modules
11148 `(("python-setuptools" ,python-setuptools)))
11150 `(("python-bcrypt" ,python-bcrypt)
11151 ("python-click" ,python-click)
11152 ("python-consul" ,python-consul)
11153 ("python-graphql-core" ,python-graphql-core)
11154 ("python-graphql-relay" ,python-graphql-relay)
11155 ("python-graphene" ,python-graphene)
11156 ("python-jinja2" ,python-jinja2)
11157 ("python-nose2" ,python-nose2)
11158 ("python-peewee" ,python-peewee)
11159 ("python-pika" ,python-pika)
11160 ("python-pycparser" ,python-pycparser)
11161 ("python-requests" ,python-requests)
11162 ("python-tornado" ,python-tornado)
11163 ("python-wtforms" ,python-wtforms)))
11164 (home-page "https://github.com/AlecAivazis/nautilus")
11165 (synopsis "Library for creating microservice applications")
11167 "Nautilus is a framework for flux based microservices that looks to
11168 provide extendible implementations of common aspects of a cloud so that you can
11169 focus on building massively scalable web applications.")
11170 (license license:expat)))
11172 (define-public python-betamax
11174 (name "python-betamax")
11179 (uri (pypi-uri "betamax" version))
11182 "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"))))
11183 (build-system python-build-system)
11185 '(;; Many tests fail because they require networking.
11188 `(("python-requests" ,python-requests)))
11189 (home-page "https://github.com/sigmavirus24/betamax")
11190 (synopsis "Record HTTP interactions with python-requests")
11191 (description "Betamax will record your test suite's HTTP interactions and
11192 replay them during future tests. It is designed to work with python-requests.")
11193 (license license:expat)
11194 (properties `((python2-variant . ,(delay python2-betamax))))))
11196 (define-public python2-betamax
11197 (let ((base (package-with-python2 (strip-python2-variant python-betamax))))
11201 `(("python2-setuptools" ,python2-setuptools)
11202 ,@(package-native-inputs base))))))
11204 (define-public python-s3transfer
11206 (name "python-s3transfer")
11210 (uri (pypi-uri "s3transfer" version))
11213 "1jivjkp3xqif9gzr5fiq28jsskmh50vzzd7ldsb4rbyiw1iyv3hy"))))
11214 (build-system python-build-system)
11216 `(("python-docutils" ,python-docutils)))
11218 `(("python-botocore" ,python-botocore)))
11219 (synopsis "Amazon S3 Transfer Manager")
11220 (description "S3transfer is a Python library for managing Amazon S3
11222 (home-page "https://github.com/boto/s3transfer")
11223 (license license:asl2.0)
11224 (properties `((python2-variant . ,(delay python2-s3transfer))))))
11226 (define-public python2-s3transfer
11227 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
11231 `(("python2-futures" ,python2-futures)
11232 ("python2-setuptools" ,python2-setuptools)
11233 ,@(package-native-inputs base))))))
11235 (define-public python-setproctitle
11237 (name "python-setproctitle")
11242 (uri (pypi-uri "setproctitle" version))
11245 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
11246 (build-system python-build-system)
11249 (modify-phases %standard-phases
11250 (add-before 'check 'patch-Makefile
11251 ;; Stricly this is only required for the python2 variant.
11252 ;; But adding a phase in an inherited package seems to be
11253 ;; cumbersum. So we patch even for python3.
11255 (let ((nose (assoc-ref %build-inputs "python2-nose")))
11257 (substitute* "Makefile"
11258 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
11259 (string-append nose "/bin/nosetests "))))
11263 (setenv "PYTHON" (or (which "python3") (which "python")))
11264 (setenv "PYCONFIG" (or (which "python3-config")
11265 (which "python-config")))
11266 (setenv "CC" "gcc")
11267 ;; No need to extend PYTHONPATH to find the built package, since
11268 ;; the Makefile will build anyway
11269 (zero? (system* "make" "check")))))))
11271 `(("procps" ,procps))) ; required for tests
11273 "https://github.com/dvarrazzo/py-setproctitle")
11275 "Setproctitle implementation for Python to customize the process title")
11276 (description "The library allows a process to change its title (as displayed
11277 by system tools such as ps and top).
11279 Changing the title is mostly useful in multi-process systems, for
11280 example when a master process is forked: changing the children's title
11281 allows to identify the task each process is busy with. The technique
11282 is used by PostgreSQL and the OpenSSH Server for example.")
11283 (license license:bsd-3)
11284 (properties `((python2-variant . ,(delay python2-setproctitle))))))
11286 (define-public python2-setproctitle
11287 (let ((base (package-with-python2
11288 (strip-python2-variant python-setproctitle))))
11291 (native-inputs `(("python2-nose" ,python2-nose)
11292 ,@(package-native-inputs base))))))
11294 (define-public python-validictory
11296 (name "python-validictory")
11301 (uri (pypi-uri "validictory" version))
11304 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
11305 (build-system python-build-system)
11308 (modify-phases %standard-phases
11309 (add-after 'unpack 'bootstrap
11310 ;; Move the tests out of the package directory to avoid
11313 (rename-file "validictory/tests" "tests")
11314 (delete-file "tests/__init__.py")))
11317 ;; Extend PYTHONPATH so the built package will be found.
11318 (setenv "PYTHONPATH"
11319 (string-append (getcwd) "/build/lib:"
11320 (getenv "PYTHONPATH")))
11321 (zero? (system* "py.test" "-vv" )))))))
11323 `(("python-pytest" ,python-pytest)))
11325 "https://github.com/jamesturk/validictory")
11326 (synopsis "General purpose Python data validator")
11327 (description "It allows validation of arbitrary Python data structures.
11329 The schema format is based on the JSON Schema
11330 proposal (http://json-schema.org), so combined with json the library is also
11331 useful as a validator for JSON data.")
11332 (license license:expat)
11333 (properties `((python2-variant . ,(delay python2-validictory))))))
11335 (define-public python2-validictory
11336 (let ((base (package-with-python2
11337 (strip-python2-variant python-validictory))))
11340 (native-inputs `(("python2-setuptools" ,python2-setuptools)
11341 ,@(package-native-inputs base))))))
11343 (define-public python-aniso8601
11345 (name "python-aniso8601")
11350 (uri (pypi-uri "aniso8601" version))
11353 "1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g"))))
11354 (build-system python-build-system)
11356 `(("python-dateutil-2" ,python-dateutil-2)))
11358 "https://bitbucket.org/nielsenb/aniso8601")
11360 "Python library for parsing ISO 8601 strings")
11362 "This package contains a library for parsing ISO 8601 datetime strings.")
11363 (license license:bsd-3)))
11365 (define-public python-flask-restful
11367 (name "python-flask-restful")
11372 (uri (pypi-uri "Flask-RESTful" version))
11375 "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c"))))
11376 (build-system python-build-system)
11378 `(("python-aniso8601" ,python-aniso8601)
11379 ("python-flask" ,python-flask)
11380 ("python-pycrypto" ,python-pycrypto)
11381 ("python-pytz" ,python-pytz)))
11383 `(;; Optional dependency of Flask. Tests need it.
11384 ("python-blinker" ,python-blinker)
11385 ("python-mock" ,python-mock) ; For tests
11386 ("python-nose" ,python-nose) ; For tests
11387 ("python-sphinx" ,python-sphinx)))
11389 "https://www.github.com/flask-restful/flask-restful/")
11391 "Flask module for creating REST APIs")
11393 "This package contains a Flask module for creating REST APIs.")
11394 (license license:bsd-3)))
11396 (define-public python-flask-basicauth
11398 (name "python-flask-basicauth")
11403 (uri (pypi-uri "Flask-BasicAuth" version))
11406 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
11407 (build-system python-build-system)
11409 `(("python-flask" ,python-flask)))
11411 "https://github.com/jpvanhal/flask-basicauth")
11413 "HTTP basic access authentication for Flask")
11415 "This package provides HTTP basic access authentication for Flask.")
11416 (license license:bsd-3)))
11418 (define-public python-flask-sqlalchemy
11420 (name "python-flask-sqlalchemy")
11425 (uri (pypi-uri "Flask-SQLAlchemy" version))
11428 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
11429 (build-system python-build-system)
11431 `(("python-flask" ,python-flask)
11432 ("python-sqlalchemy" ,python-sqlalchemy)))
11434 "http://github.com/mitsuhiko/flask-sqlalchemy")
11436 "Module adding SQLAlchemy support to your Flask application")
11438 "This package adds SQLAlchemy support to your Flask application.")
11439 (license license:bsd-3)))