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 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 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 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
22 ;;; This file is part of GNU Guix.
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37 (define-module (gnu packages python)
38 #:use-module ((guix licenses)
39 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 x11-style
40 gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ agpl3+
41 isc mpl2.0 psfl public-domain repoze unlicense x11-style
43 #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages attr)
46 #:use-module (gnu packages backup)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages databases)
49 #:use-module (gnu packages file)
50 #:use-module (gnu packages fontutils)
51 #:use-module (gnu packages gcc)
52 #:use-module (gnu packages ghostscript)
53 #:use-module (gnu packages glib)
54 #:use-module (gnu packages gtk)
55 #:use-module (gnu packages icu4c)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages imagemagick)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages linux)
60 #:use-module (gnu packages maths)
61 #:use-module (gnu packages multiprecision)
62 #:use-module (gnu packages networking)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages pcre)
65 #:use-module (gnu packages perl)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages readline)
68 #:use-module (gnu packages statistics)
69 #:use-module (gnu packages texlive)
70 #:use-module (gnu packages texinfo)
71 #:use-module (gnu packages tls)
72 #:use-module (gnu packages web)
73 #:use-module (gnu packages base)
74 #:use-module (gnu packages xml)
75 #:use-module (gnu packages xorg)
76 #:use-module (gnu packages xdisorg)
77 #:use-module (gnu packages zip)
78 #:use-module (gnu packages tcl)
79 #:use-module (guix packages)
80 #:use-module (guix download)
81 #:use-module (guix git-download)
82 #:use-module (guix utils)
83 #:use-module (guix build-system gnu)
84 #:use-module (guix build-system cmake)
85 #:use-module (guix build-system python)
86 #:use-module (guix build-system trivial)
87 #:use-module (srfi srfi-1))
89 (define-public python-2
96 (uri (string-append "https://www.python.org/ftp/python/"
97 version "/Python-" version ".tar.xz"))
100 "1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw"))
101 (patches (map search-patch
102 '("python-2.7-search-paths.patch"
103 "python-2-deterministic-build-info.patch"
104 "python-2.7-source-date-epoch.patch")))))
106 "tk")) ;tkinter; adds 50 MiB to the closure
107 (build-system gnu-build-system)
112 ;; test_distutils test_shutil test_signal test_site test_slice
113 ;; test_smtplib test_smtpnet test_socket test_socketserver
114 ;; test_softspace test_sort test_spwd test_sqlite test_ssl
115 ;; test_startfile test_stat test_str test_strftime test_string
116 ;; test_stringprep test_strop test_strptime test_strtod test_struct
117 ;; test_structmembers test_structseq test_subprocess test_sunau
118 ;; test_sunaudiodev test_sundry test_symtable test_syntax test_sys
119 ;; test_sys_setprofile test_sys_settrace test_sysconfig test_tarfile
120 ;; test_tcl test_telnetlib test_tempfile test_textwrap test_thread
121 ;; test_threaded_import test_threadedtempfile test_threading
122 ;; test_threading_local test_threadsignals test_time test_timeit
123 ;; test_timeout test_tk test_tokenize test_tools test_trace
124 ;; test_traceback test_transformer test_ttk_guionly test_ttk_textonly
125 ;; test_tuple test_typechecks test_ucn test_unary
126 ;; test_undocumented_details test_unicode test_unicode_file
127 ;; test_unicodedata test_univnewlines test_univnewlines2k test_unpack
128 ;; test_urllib test_urllib2 test_urllib2_localnet test_urllib2net
129 ;; test_urllibnet test_urlparse test_userdict test_userlist
130 ;; test_userstring test_uu test_uuid test_wait3 test_wait4
131 ;; test_warnings test_wave test_weakref test_weakset test_whichdb
132 ;; test_winreg test_winsound test_with test_wsgiref test_xdrlib
133 ;; test_xml_etree test_xml_etree_c test_xmllib test_xmlrpc
134 ;; test_xpickle test_xrange test_zipfile test_zipfile64
135 ;; test_zipimport test_zipimport_support test_zlib
137 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
138 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
139 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_crypt
140 ;; test_curses test_dl test_gdb test_gl test_idle test_imageop
141 ;; test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos
142 ;; test_macostools test_msilib test_nis test_ossaudiodev
143 ;; test_scriptpackages
144 ;; 6 skips unexpected on linux2:
145 ;; test_bsddb test_bsddb3 test_crypt test_gdb test_idle test_ioctl
146 ;; One of the typical errors:
148 ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No
149 ;; such file or directory
152 (list "--enable-shared" ;allow embedding
153 "--with-system-ffi" ;build ctypes
154 (string-append "LDFLAGS=-Wl,-rpath="
155 (assoc-ref %outputs "out") "/lib"))
157 #:modules ((ice-9 ftw) (ice-9 match)
158 (guix build utils) (guix build gnu-build-system))
160 (modify-phases %standard-phases
162 'configure 'patch-lib-shells
164 ;; Filter for existing files, since some may not exist in all
165 ;; versions of python that are built with this recipe.
166 (substitute* (filter file-exists?
167 '("Lib/subprocess.py"
169 "Lib/distutils/tests/test_spawn.py"
170 "Lib/test/test_subprocess.py"))
171 (("/bin/sh") (which "sh")))
173 ;; Use zero as the timestamp in .pyc files so that builds are
174 ;; deterministic. TODO: Remove it when this variable is set in
175 ;; gnu-build-system.scm.
176 (setenv "SOURCE_DATE_EPOCH" "1")
178 (add-before 'configure 'do-not-record-configure-flags
179 (lambda* (#:key configure-flags #:allow-other-keys)
180 ;; Remove configure flags from the installed '_sysconfigdata.py'
181 ;; and 'Makefile' so we don't end up keeping references to the
184 ;; Preserve at least '--with-system-ffi' since otherwise the
185 ;; thing tries to build libffi, fails, and we end up with a
186 ;; Python that lacks ctypes.
187 (substitute* "configure"
188 (("^CONFIG_ARGS=.*$")
189 (format #f "CONFIG_ARGS='~a'\n"
190 (if (member "--with-system-ffi" configure-flags)
197 ;; 'Lib/test/test_site.py' needs a valid $HOME
198 (setenv "HOME" (getcwd))
201 'unpack 'set-source-file-times-to-1980
202 ;; XXX One of the tests uses a ZIP library to pack up some of the
203 ;; source tree, and fails with "ZIP does not support timestamps
204 ;; before 1980". Work around this by setting the file times in the
205 ;; source tree to sometime in early 1980.
207 (let ((circa-1980 (* 10 366 24 60 60)))
208 (ftw "." (lambda (file stat flag)
209 (utime file circa-1980 circa-1980)
212 (add-after 'install 'move-tk-inter
213 (lambda* (#:key outputs #:allow-other-keys)
214 ;; When Tkinter support is built move it to a separate output so
215 ;; that the main output doesn't contain a reference to Tcl/Tk.
216 (let ((out (assoc-ref outputs "out"))
217 (tk (assoc-ref outputs "tk")))
219 (match (find-files out "tkinter.*\\.so")
221 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
222 ;; want it under TK/lib/pythonX.Y/site-packages.
223 (let* ((len (string-length out))
224 (target (string-append
227 (dirname (dirname tkinter.so))
230 (install-file tkinter.so target)
231 (delete-file tkinter.so)))))
236 ("libffi" ,libffi) ; for ctypes
237 ("sqlite" ,sqlite) ; for sqlite extension
239 ("readline" ,readline)
242 ("tk" ,tk))) ; for tkinter
244 `(("pkg-config" ,pkg-config)))
246 (list (search-path-specification
247 (variable "PYTHONPATH")
248 (files '("lib/python2.7/site-packages")))))
249 (home-page "http://python.org")
250 (synopsis "High-level, dynamically-typed programming language")
252 "Python is a remarkably powerful dynamic programming language that
253 is used in a wide variety of application domains. Some of its key
254 distinguishing features include: clear, readable syntax; strong
255 introspection capabilities; intuitive object orientation; natural
256 expression of procedural code; full modularity, supporting hierarchical
257 packages; exception-based error handling; and very high level dynamic
261 (define-public python
262 (package (inherit python-2)
266 (uri (string-append "https://www.python.org/ftp/python/"
267 version "/Python-" version ".tar.xz"))
268 (patches (map search-patch
269 '("python-fix-tests.patch"
270 ;; XXX Try removing this patch for python > 3.4.3
271 "python-disable-ssl-test.patch"
272 "python-3-deterministic-build-info.patch"
273 "python-3-search-paths.patch")))
274 (patch-flags '("-p0"))
277 "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm"))))
278 (arguments (substitute-keyword-arguments (package-arguments python-2)
281 (list (search-path-specification
282 (variable "PYTHONPATH")
283 (files (list (string-append "lib/python"
284 (version-major+minor version)
285 "/site-packages"))))))))
287 ;; Minimal variants of Python, mostly used to break the cycle between Tk and
288 ;; Python (Tk -> libxcb -> Python.)
290 (define-public python2-minimal
291 (package (inherit python-2)
292 (name "python-minimal")
295 (substitute-keyword-arguments (package-arguments python-2)
296 ((#:configure-flags cf)
297 `(append ,cf '("--without-system-ffi")))))
298 (inputs '()))) ;none of the optional dependencies
300 (define-public python-minimal
301 (package (inherit python)
302 (name "python-minimal")
305 (substitute-keyword-arguments (package-arguments python)
306 ((#:configure-flags cf)
307 `(append ,cf '("--without-system-ffi")))))
309 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
310 ;; zlib is required by 'zipimport', used by pip.
311 (inputs `(("openssl" ,openssl)
314 (define* (wrap-python3 python
316 (name (string-append (package-name python) "-wrapper")))
317 (package (inherit python)
320 (build-system trivial-build-system)
322 (propagated-inputs `(("python" ,python)))
324 `(#:modules ((guix build utils))
327 (use-modules (guix build utils))
328 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
329 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
333 (symlink (string-append python old)
334 (string-append bin "/" new)))
335 `("python3" ,"pydoc3" ,"idle3")
336 `("python" ,"pydoc" ,"idle"))))))
337 (synopsis "Wrapper for the Python 3 commands")
339 "This package provides wrappers for the commands of Python@tie{}3.x such
340 that they can be invoked under their usual name---e.g., @command{python}
341 instead of @command{python3}.")))
343 (define-public python-wrapper (wrap-python3 python))
344 (define-public python-minimal-wrapper (wrap-python3 python-minimal))
346 (define-public python-psutil
348 (name "python-psutil")
353 (uri (pypi-uri "psutil" version))
356 "11bd1555vf2ibjnmqf64im5cp55vcqfq45ccinm9ll3bs68na6s2"))))
357 (build-system python-build-system)
359 `(("python-setuptools" ,python-setuptools)))
360 (home-page "https://pypi.python.org/pypi/psutil/")
361 (synopsis "Library for retrieving information on running processes")
363 "psutil (Python system and process utilities) is a library for retrieving
364 information on running processes and system utilization (CPU, memory, disks,
365 network) in Python. It is useful mainly for system monitoring, profiling and
366 limiting process resources and management of running processes. It implements
367 many functionalities offered by command line tools such as: ps, top, lsof,
368 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
369 pidof, tty, taskset, pmap.")
372 (define-public python2-psutil
373 (package-with-python2 python-psutil))
375 (define-public python-passlib
377 (name "python-passlib")
382 (uri (pypi-uri "passlib" version))
385 "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"))))
386 (build-system python-build-system)
388 `(("python-nose" ,python-nose)
389 ("python-setuptools" ,python-setuptools)))
391 `(("python-py-bcrypt" ,python-py-bcrypt)))
395 'check 'set-PYTHON_EGG_CACHE
396 ;; some tests require access to "$HOME/.cython"
397 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
399 (home-page "https://bitbucket.org/ecollins/passlib")
401 "Comprehensive password hashing framework")
403 "Passlib is a password hashing library for Python 2 & 3, which provides
404 cross-platform implementations of over 30 password hashing algorithms, as well
405 as a framework for managing existing password hashes. It's designed to be
406 useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
407 to providing full-strength password hashing for multi-user application.")
410 (define-public python2-passlib
411 (package-with-python2 python-passlib))
413 (define-public python-py-bcrypt
415 (name "python-py-bcrypt")
421 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
426 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
427 (build-system python-build-system)
429 `(("python-setuptools" ,python-setuptools)))
430 (home-page "https://code.google.com/p/py-bcrypt")
432 "Bcrypt password hashing and key derivation")
434 "A python wrapper of OpenBSD's Blowfish password hashing code. This
435 system hashes passwords using a version of Bruce Schneier's Blowfish block
436 cipher with modifications designed to raise the cost of off-line password
437 cracking and frustrate fast hardware implementation. The computation cost of
438 the algorithm is parametised, so it can be increased as computers get faster.
439 The intent is to make a compromise of a password database less likely to
440 result in an attacker gaining knowledge of the plaintext passwords (e.g. using
442 ;; "sha2.c" is under BSD-3;
443 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
444 ;; the rest is under ISC.
445 (license (list isc bsd-3 bsd-4))))
447 (define-public python2-py-bcrypt
448 (package-with-python2 python-py-bcrypt))
451 (define-public python-paramiko
453 (name "python-paramiko")
459 "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
464 "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
465 (build-system python-build-system)
467 `(("python-setuptools" ,python-setuptools)))
469 `(("python-pycrypto" ,python-pycrypto)))
471 `(("python-ecdsa" ,python-ecdsa)))
472 (home-page "http://www.paramiko.org/")
473 (synopsis "SSHv2 protocol library")
474 (description "Paramiko is a python implementation of the SSHv2 protocol,
475 providing both client and server functionality. While it leverages a Python C
476 extension for low level cryptography (PyCrypto), Paramiko itself is a pure
477 Python interface around SSH networking concepts.")
480 (define-public python2-paramiko
481 (package-with-python2 python-paramiko))
484 (define-public python-httplib2
486 (name "python-httplib2")
492 "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
497 "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
498 (build-system python-build-system)
500 `(("python-setuptools" ,python-setuptools)))
502 "https://github.com/jcgregorio/httplib2")
503 (synopsis "Comprehensive HTTP client library")
505 "A comprehensive HTTP client library supporting many features left out of
506 other HTTP libraries.")
507 (license license:expat)))
509 (define-public python2-httplib2
510 (package-with-python2 python-httplib2))
512 (define-public python-ecdsa
514 (name "python-ecdsa")
520 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
525 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
526 (build-system python-build-system)
528 `(("python-setuptools" ,python-setuptools)))
530 `(("openssl" ,openssl)))
532 "http://github.com/warner/python-ecdsa")
534 "ECDSA cryptographic signature library (pure python)")
536 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
537 Curve Digital Signature Algorithm), implemented purely in Python. With this
538 library, you can quickly create keypairs (signing key and verifying key), sign
539 messages, and verify the signatures. The keys and signatures are very short,
540 making them easy to handle and incorporate into other protocols.")
541 (license license:expat)))
543 (define-public python2-ecdsa
544 (package-with-python2 python-ecdsa))
546 (define-public python-ccm
554 "https://pypi.python.org/packages/source/c/ccm/ccm-"
559 "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
560 (build-system python-build-system)
562 `(("python-setuptools" ,python-setuptools)))
564 `(("python-pyyaml" ,python-pyyaml)
565 ("python-six" ,python-six)))
566 (home-page "https://github.com/pcmanus/ccm")
567 (synopsis "Cassandra Cluster Manager")
568 (description "A script/library to create, launch and remove an Apache
569 Cassandra cluster on localhost.")
572 (define-public python2-ccm
573 (package-with-python2 python-ccm))
575 (define-public python-pytz
582 (uri (pypi-uri "pytz" version))
585 "1spgdfp1ssya7v3kww7zp71xpj437skpqazcvqr3kr1p1brnw9lr"))))
586 (build-system python-build-system)
587 (arguments `(#:tests? #f)) ; no test target
588 (home-page "http://pythonhosted.org/pytz")
589 (synopsis "Python timezone library")
591 "This library allows accurate and cross platform timezone calculations
592 using Python 2.4 or higher and provides access to the Olson timezone database.")
593 (license license:expat)))
595 (define-public python2-pytz
596 (package-with-python2 python-pytz))
599 (define-public python-babel
601 (name "python-babel")
606 (uri (pypi-uri "Babel" version))
609 "0j2jgfzj1a2m39pm2qc36fzr7a6p5ybwndi0xdzhi2p8zw7dbdkz"))))
610 (build-system python-build-system)
612 `(("python-pytz" ,python-pytz)
613 ("python-setuptools" ,python-setuptools)))
614 (arguments `(#:tests? #f)) ; no test target
615 (home-page "http://babel.pocoo.org/")
617 "Tools for internationalizing Python applications")
619 "Babel is composed of two major parts:
620 - tools to build and work with gettext message catalogs
621 - a Python interface to the CLDR (Common Locale Data Repository), providing
622 access to various locale display names, localized number and date formatting,
626 (define-public python2-babel
627 (package-with-python2 python-babel))
629 (define-public python2-backport-ssl-match-hostname
631 (name "python2-backport-ssl-match-hostname")
637 "https://pypi.python.org/packages/source/b/"
638 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
642 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
643 (build-system python-build-system)
646 #:tests? #f)) ; no test target
648 `(("python2-setuptools" ,python2-setuptools)))
649 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
650 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
652 "This backport brings the ssl.match_hostname() function to users of
653 earlier versions of Python. The function checks the hostname in the
654 certificate returned by the server to which a connection has been established,
655 and verifies that it matches the intended target hostname.")
658 (define-public python-h5py
665 (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-"
669 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps"))))
670 (build-system python-build-system)
672 `(#:tests? #f ; no test target
674 (modify-phases %standard-phases
675 (add-after 'unpack 'fix-hdf5-paths
676 (lambda* (#:key inputs #:allow-other-keys)
677 (let ((prefix (assoc-ref inputs "hdf5")))
678 (substitute* "setup_build.py"
679 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
680 (string-append "['" prefix "/lib" "']"))
681 (("'/opt/local/include', '/usr/local/include'")
682 (string-append "'" prefix "/include" "'")))
683 (substitute* "setup_configure.py"
684 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
685 (string-append "['" prefix "/lib" "']")))
688 `(("python-numpy" ,python-numpy)))
692 `(("python-cython" ,python-cython)))
693 (home-page "http://www.h5py.org/")
694 (synopsis "Read and write HDF5 files from Python")
696 "The h5py package provides both a high- and low-level interface to the
697 HDF5 library from Python. The low-level interface is intended to be a
698 complete wrapping of the HDF5 API, while the high-level component supports
699 access to HDF5 files, datasets and groups using established Python and NumPy
703 (define-public python2-h5py
704 (let ((h5py (package-with-python2 python-h5py)))
705 (package (inherit h5py)
707 `(("python2-numpy" ,python2-numpy)
710 (package-propagated-inputs h5py)))))))
712 (define-public python-lockfile
714 (name "python-lockfile")
719 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
720 "lockfile-" version ".tar.gz"))
723 "0iwif7i84gwpvrnpv4brshdk8j6l77smvknm8k3bg77mj6f5ini3"))))
724 (build-system python-build-system)
725 (arguments '(#:test-target "check"))
726 (home-page "http://code.google.com/p/pylockfile/")
727 (synopsis "Platform-independent file locking module")
729 "The lockfile package exports a LockFile class which provides a simple
730 API for locking files.")
731 (license license:expat)))
733 (define-public python2-lockfile
734 (package-with-python2 python-lockfile))
736 (define-public python-mock
743 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
744 "mock-" version ".tar.gz"))
747 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
748 (build-system python-build-system)
749 (arguments '(#:test-target "check"))
750 (home-page "http://code.google.com/p/mock/")
751 (synopsis "Python mocking and patching library for testing")
753 "Mock is a library for testing in Python. It allows you to replace parts
754 of your system under test with mock objects and make assertions about how they
756 (license license:expat)))
758 (define-public python2-mock
759 (package-with-python2 python-mock))
762 (define-public python-setuptools
764 (name "python-setuptools")
769 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
773 "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
774 (build-system python-build-system)
775 ;; FIXME: Tests require pytest, which itself relies on setuptools.
776 ;; One could bootstrap with an internal untested setuptools.
779 (home-page "https://pypi.python.org/pypi/setuptools")
781 "Library designed to facilitate packaging Python projects")
783 "Setuptools is a fully-featured, stable library designed to facilitate
784 packaging Python projects, where packaging includes:
785 Python package and module definitions,
786 distribution package metadata,
788 project installation,
789 platform-specific details,
793 (define-public python2-setuptools
794 (package-with-python2 python-setuptools))
797 (define-public python-pycrypto
799 (name "python-pycrypto")
804 (uri (string-append "https://pypi.python.org/packages/source/p/"
805 "pycrypto/pycrypto-" version ".tar.gz"))
808 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
809 (build-system python-build-system)
811 `(("python-setuptools" ,python-setuptools)))
818 'build 'set-build-env
819 ;; pycrypto runs an autoconf configure script behind the scenes
821 (setenv "CONFIG_SHELL" (which "bash")))
823 (home-page "http://www.pycrypto.org/")
824 (synopsis "Cryptographic modules for Python")
826 "Pycrypto is a collection of both secure hash functions (such as SHA256
827 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
828 etc.). The package is structured to make adding new modules easy.")
829 (license public-domain)))
831 (define-public python2-pycrypto
832 (let ((pycrypto (package-with-python2 python-pycrypto)))
833 (package (inherit pycrypto)
835 `(("python" ,python-2)
838 (package-inputs pycrypto)))))))
840 (define-public python-keyring
842 (name "python-keyring")
847 (uri (pypi-uri "keyring" version))
850 "1h7a1r9ick7wdd0xb5p63413nvjadna2xawrsvmklsl5ddhm5wrx"))))
851 (build-system python-build-system)
853 `(("python-setuptools" ,python-setuptools)
854 ("python-setuptools-scm" ,python-setuptools-scm)
855 ("python-mock" ,python-mock)))
857 `(("python-pycrypto" ,python-pycrypto)))
859 `(#:tests? #f)) ;TODO: tests require pytest
860 (home-page "http://bitbucket.org/kang/python-keyring-lib")
861 (synopsis "Store and access your passwords safely")
863 "The Python keyring lib provides a easy way to access the system keyring
864 service from python. It can be used in any application that needs safe
866 ;; "MIT" and PSF dual license
869 (define-public python2-keyring
870 (let ((keyring (package-with-python2 python-keyring)))
871 (package (inherit keyring)
873 `(("python2-pycrypto" ,python2-pycrypto))))))
875 (define-public python-six
882 (uri (pypi-uri "six" version))
885 "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
886 (build-system python-build-system)
888 `(("python-setuptools" ,python-setuptools)))
889 (home-page "http://pypi.python.org/pypi/six/")
890 (synopsis "Python 2 and 3 compatibility utilities")
892 "Six is a Python 2 and 3 compatibility library. It provides utility
893 functions for smoothing over the differences between the Python versions with
894 the goal of writing Python code that is compatible on both Python versions.
895 Six supports every Python version since 2.5. It is contained in only one
896 Python file, so it can be easily copied into your project.")
899 (define-public python2-six
900 (package-with-python2 python-six))
902 (define-public python-dateutil-2
904 (name "python-dateutil")
909 (uri (string-append "https://pypi.python.org/packages/source/p/"
910 name "/" name "-" version ".tar.gz"))
913 "0ggbm2z72p0nwjqgvpw8s5bqzwayqiqv2iws0x2a605m3mf4959y"))))
914 (build-system python-build-system)
916 `(("python-setuptools" ,python-setuptools)
917 ("python-six" ,python-six)))
918 (home-page "http://labix.org/python-dateutil")
919 (synopsis "Extensions to the standard datetime module")
921 "The dateutil module provides powerful extensions to the standard
922 datetime module, available in Python 2.3+.")
925 (define-public python2-dateutil-2
926 (package-with-python2 python-dateutil-2))
928 (define-public python-dateutil
930 (name "python-dateutil")
931 (version "1.5") ; last version for python < 3
935 (uri (string-append "http://labix.org/download/python-dateutil/"
936 "python-dateutil-" version ".tar.gz"))
939 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
940 (build-system python-build-system)
942 `(("python-setuptools" ,python-setuptools)))
943 (home-page "http://labix.org/python-dateutil")
944 (synopsis "Extensions to the standard datetime module")
946 "The dateutil module provides powerful extensions to the standard
947 datetime module, available in Python 2.3+.")
950 (define-public python2-dateutil
951 (package-with-python2 python-dateutil))
953 (define-public python-parsedatetime
955 (name "python-parsedatetime")
960 (uri (string-append "https://pypi.python.org/packages/source/p/"
961 "parsedatetime/parsedatetime-" version ".tar.gz"))
964 "1as0mm4ql3z0324nc9bys2s1ngh507i317p16b79rx86wlmvx9ix"))))
965 (build-system python-build-system)
967 `(("python-setuptools" ,python-setuptools)))
968 (home-page "http://github.com/bear/parsedatetime/")
970 "Parse human-readable date/time text")
972 "Parse human-readable date/time text.")
975 (define-public python2-parsedatetime
976 (package-with-python2 python-parsedatetime))
978 (define-public python-pandas
980 (name "python-pandas")
985 (uri (pypi-uri "pandas" version))
987 (base32 "10agmrkps8bi5948vwpipfxds5kj1d076m9i0nhaxwqiw7gm6670"))))
988 (build-system python-build-system)
990 `(;; Three tests fail:
991 ;; - test_read_google
993 ;; - test_month_range_union_tz_dateutil
996 `(("python-numpy" ,python-numpy)
997 ("python-pytz" ,python-pytz)
998 ("python-dateutil" ,python-dateutil-2)))
1000 `(("python-nose" ,python-nose)
1001 ("python-setuptools" ,python-setuptools)))
1002 (home-page "http://pandas.pydata.org")
1003 (synopsis "Data structures for data analysis, time series, and statistics")
1005 "Pandas is a Python package providing fast, flexible, and expressive data
1006 structures designed to make working with structured (tabular,
1007 multidimensional, potentially heterogeneous) and time series data both easy
1008 and intuitive. It aims to be the fundamental high-level building block for
1009 doing practical, real world data analysis in Python.")
1012 (define-public python2-pandas
1013 (let ((pandas (package-with-python2 python-pandas)))
1014 (package (inherit pandas)
1016 `(("python2-numpy" ,python2-numpy)
1017 ,@(alist-delete "python-numpy"
1018 (package-propagated-inputs pandas)))))))
1020 (define-public python-tzlocal
1022 (name "python-tzlocal")
1027 (uri (pypi-uri "tzlocal" version))
1030 "12wsw2fl3adrqrwghasld57bhqdrzn0crblqrci1p5acd0ni53s3"))))
1031 (build-system python-build-system)
1032 (propagated-inputs `(("python-pytz" ,python-pytz)))
1033 (home-page "https://github.com/regebro/tzlocal")
1035 "Local timezone information for Python")
1037 "Tzlocal returns a tzinfo object with the local timezone information.
1038 This module attempts to fix a glaring hole in pytz, that there is no way to
1039 get the local timezone information, unless you know the zoneinfo name, and
1040 under several distributions that's hard or impossible to figure out.")
1043 (define-public python2-pysqlite
1045 (name "python2-pysqlite")
1050 (uri (pypi-uri "pysqlite" version))
1053 "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
1054 (build-system python-build-system)
1056 `(("sqlite" ,sqlite)))
1058 `(#:python ,python-2 ; incompatible with Python 3
1059 #:tests? #f)) ; no test target
1060 (home-page "http://github.com/ghaering/pysqlite")
1061 (synopsis "SQLite bindings for Python")
1063 "Pysqlite provides SQLite bindings for Python that comply to the
1064 Database API 2.0T.")
1065 (license license:zlib)))
1068 (define-public python2-mechanize
1070 (name "python2-mechanize")
1075 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1079 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1080 (build-system python-build-system)
1082 `(("python2-setuptools" ,python2-setuptools)))
1084 `(#:python ,python-2 ; apparently incompatible with Python 3
1086 ;; test fails with message
1087 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1088 ;; (python-3.3.2) or
1089 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1091 ;; The source code is from March 2011 and probably not up-to-date
1092 ;; with respect to python unit tests.
1093 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1095 "Stateful programmatic web browsing in Python")
1097 "Mechanize implements stateful programmatic web browsing in Python,
1098 after Andy Lester’s Perl module WWW::Mechanize.")
1099 (license (non-copyleft "file://COPYING"
1100 "See COPYING in the distribution."))))
1103 (define-public python-simplejson
1105 (name "python-simplejson")
1110 (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-"
1114 "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks"))))
1115 (build-system python-build-system)
1116 (home-page "http://simplejson.readthedocs.org/en/latest/")
1118 "Json library for Python")
1120 "JSON (JavaScript Object Notation) is a subset of JavaScript
1121 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1124 Simplejson exposes an API familiar to users of the standard library marshal
1125 and pickle modules. It is the externally maintained version of the json
1126 library contained in Python 2.6, but maintains compatibility with Python 2.5
1127 and (currently) has significant performance advantages, even without using
1128 the optional C extension for speedups. Simplejson is also supported on
1132 (define-public python2-simplejson
1133 (package-with-python2 python-simplejson))
1136 (define-public python-pyicu
1138 (name "python-pyicu")
1143 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1147 "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
1148 (build-system python-build-system)
1150 `(("icu4c" ,icu4c)))
1151 (home-page "http://pyicu.osafoundation.org/")
1152 (synopsis "Python extension wrapping the ICU C++ API")
1154 "PyICU is a python extension wrapping the ICU C++ API.")
1156 (properties `((python2-variant . ,(delay python2-pyicu))))))
1158 (define-public python2-pyicu
1160 (inherit (package-with-python2
1161 (strip-python2-variant python-pyicu)))
1162 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
1164 (define-public python2-dogtail
1165 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1166 ;; spaces in indentation" with Python 3.
1168 (name "python2-dogtail")
1173 "https://fedorahosted.org/released/dogtail/dogtail-"
1177 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1178 (build-system python-build-system)
1179 (arguments `(#:python ,python-2
1180 #:tests? #f)) ; invalid command "test"
1181 (home-page "https://fedorahosted.org/dogtail/")
1182 (synopsis "GUI test tool and automation framework written in Python")
1184 "Dogtail is a GUI test tool and automation framework written in Python.
1185 It uses Accessibility (a11y) technologies to communicate with desktop
1186 applications. dogtail scripts are written in Python and executed like any
1187 other Python program.")
1190 (define-public python2-empy
1192 (name "python2-empy")
1196 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1200 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1201 (build-system python-build-system)
1203 `(#:python ,python-2
1204 #:phases (alist-replace
1207 (zero? (system* "./test.sh")))
1209 (home-page "http://www.alcyone.com/software/empy/")
1210 (synopsis "Templating system for Python")
1212 "EmPy is a system for embedding Python expressions and statements in
1213 template text; it takes an EmPy source file, processes it, and produces
1214 output. This is accomplished via expansions, which are special signals to the
1215 EmPy system and are set off by a special prefix (by default the at sign, @@).
1216 EmPy can expand arbitrary Python expressions and statements in this way, as
1217 well as a variety of special forms. Textual data not explicitly delimited in
1218 this way is sent unaffected to the output, allowing Python to be used in
1219 effect as a markup language. Also supported are callbacks via hooks,
1220 recording and playback via diversions, and dynamic, chainable filters. The
1221 system is highly configurable via command line options and embedded
1223 (license lgpl2.1+)))
1225 (define-public python2-element-tree
1227 (name "python2-element-tree")
1232 "http://effbot.org/media/downloads/elementtree-"
1233 version "-20050316.tar.gz"))
1236 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1237 (build-system python-build-system)
1239 `(#:python ,python-2 ; seems to be part of Python 3
1240 #:tests? #f)) ; no 'test' sub-command
1241 (synopsis "Toolkit for XML processing in Python")
1243 "ElementTree is a Python library supporting lightweight XML processing.")
1244 (home-page "http://effbot.org/zone/element-index.htm")
1245 (license (x11-style "http://docs.python.org/2/license.html"
1246 "Like \"CWI LICENSE AGREEMENT FOR PYTHON \
1247 0.9.0 THROUGH 1.2\"."))))
1249 (define-public python2-pybugz
1251 (name "python2-pybugz")
1256 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1260 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1261 (patches (map search-patch
1262 (list "pybugz-stty.patch"
1263 "pybugz-encode-error.patch")))))
1264 (build-system python-build-system)
1266 `(#:python ,python-2 ; SyntaxError with Python 3
1267 #:tests? #f)) ; no 'test' sub-command
1268 (inputs `(("element-tree" ,python2-element-tree)))
1269 (synopsis "Python and command-line interface to Bugzilla")
1271 "PyBugz is a Python library and command-line tool to query the Bugzilla
1272 bug tracking system. It is meant as an aid to speed up interaction with the
1274 (home-page "http://www.liquidx.net/pybugz/")
1277 (define-public python-enum34
1279 (name "python-enum34")
1284 (uri (pypi-uri "enum34" version))
1287 "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
1288 (build-system python-build-system)
1293 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1295 (home-page "https://pypi.python.org/pypi/enum34")
1296 (synopsis "Backported Python 3.4 Enum")
1298 "Enum34 is the new Python stdlib enum module available in Python 3.4
1299 backported for previous versions of Python from 2.4 to 3.3.")
1302 (define-public python2-enum34
1303 (package-with-python2 python-enum34))
1305 (define-public python-parse-type
1307 (name "python-parse-type")
1312 (uri (string-append "https://pypi.python.org/packages/source/p/"
1313 "parse_type/parse_type-" version ".tar.gz"))
1316 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1317 (build-system python-build-system)
1319 `(("python-setuptools" ,python-setuptools)
1320 ("python-six" ,python-six)
1321 ("python-parse" ,python-parse)))
1322 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1323 (home-page "https://github.com/jenisys/parse_type")
1324 (synopsis "Extended parse module")
1326 "Parse_type extends the python parse module.")
1329 (define-public python-parse
1331 (name "python-parse")
1336 (uri (string-append "https://pypi.python.org/packages/source/p/"
1337 "parse/parse-" version ".tar.gz"))
1340 "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57"))))
1341 (build-system python-build-system)
1346 (lambda _ (zero? (system* "python" "test_parse.py")))
1348 (home-page "https://github.com/r1chardj0n3s/parse")
1349 (synopsis "Parse strings")
1351 "Parse strings using a specification based on the Python format()
1356 (define-public scons
1362 (uri (string-append "mirror://sourceforge/scons/scons-"
1366 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
1367 (build-system python-build-system)
1369 ;; With Python 3.x, fails to build with a syntax error.
1370 `(#:python ,python-2
1371 #:tests? #f)) ; no 'python setup.py test' command
1372 (home-page "http://scons.org/")
1373 (synopsis "Software construction tool written in Python")
1375 "SCons is a software construction tool. Think of SCons as an improved,
1376 cross-platform substitute for the classic Make utility with integrated
1377 functionality similar to autoconf/automake and compiler caches such as ccache.
1378 In short, SCons is an easier, more reliable and faster way to build
1382 (define-public python-extras
1384 (name "python-extras")
1390 "https://pypi.python.org/packages/source/e/extras/extras-"
1394 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1395 (build-system python-build-system)
1397 `(("python-setuptools" ,python-setuptools)))
1399 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1401 (home-page "https://github.com/testing-cabal/extras")
1402 (synopsis "Useful extensions to the Python standard library")
1404 "Extras is a set of extensions to the Python standard library.")
1405 (license license:expat)))
1407 (define-public python2-extras
1408 (package-with-python2 python-extras))
1410 (define-public python-mimeparse
1412 (name "python-mimeparse")
1418 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1422 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1423 (build-system python-build-system)
1425 `(("python-setuptools" ,python-setuptools)))
1427 '(#:tests? #f)) ; no setup.py test command
1429 "https://github.com/dbtsai/python-mimeparse")
1430 (synopsis "Python library for parsing MIME types")
1432 "Mimeparse provides basic functions for parsing MIME type names and
1433 matching them against a list of media-ranges.")
1434 (license license:expat)))
1436 (define-public python2-mimeparse
1437 (package-with-python2 python-mimeparse))
1439 (define-public python-nose
1441 (name "python-nose")
1446 (uri (pypi-uri "nose" version))
1449 "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
1450 (build-system python-build-system)
1452 `(("python-setuptools" ,python-setuptools)))
1454 '(#:tests? #f)) ; FIXME: test suite fails
1455 (home-page "http://readthedocs.org/docs/nose/")
1456 (synopsis "Python testing library")
1458 "Nose extends the unittest library to make testing easier.")
1459 (license lgpl2.0+)))
1461 (define-public python2-nose
1462 (package-with-python2 python-nose))
1464 (define-public python-unittest2
1466 (name "python-unittest2")
1472 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1476 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1477 (build-system python-build-system)
1479 `(("python-setuptools" ,python-setuptools)))
1480 (home-page "http://pypi.python.org/pypi/unittest2")
1481 (synopsis "Python unit testing library")
1483 "Unittest2 is a replacement for the unittest module in the Python
1487 (define-public python2-unittest2
1488 (package (inherit python-unittest2)
1489 (name "python2-unittest2")
1495 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1499 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1501 `(("python2-setuptools" ,python2-setuptools)))
1503 `(#:python ,python-2
1504 #:tests? #f)))) ; no setup.py test command
1506 (define-public python-py
1513 (uri (pypi-uri "py" version))
1516 "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
1517 (build-system python-build-system)
1519 `(("python-setuptools" ,python-setuptools)))
1520 (home-page "http://pylib.readthedocs.org/")
1521 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1523 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1524 code introspection, and logging.")
1525 (license license:expat)))
1527 (define-public python2-py
1528 (package-with-python2 python-py))
1530 (define-public python-pytest
1532 (name "python-pytest")
1538 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1542 "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr"))
1543 (modules '((guix build utils)))
1545 ;; One of the tests involves the /usr directory, so it fails.
1546 '(substitute* "testing/test_argcomplete.py"
1547 (("def test_remove_dir_prefix\\(self\\):")
1548 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1549 (build-system python-build-system)
1551 `(("python-setuptools" ,python-setuptools)
1552 ("python-py" ,python-py)
1553 ("python-nose" ,python-nose)
1554 ("python-mock" ,python-mock)))
1555 (home-page "http://pytest.org")
1556 (synopsis "Python testing library")
1558 "Pytest is a testing tool that provides auto-discovery of test modules
1559 and functions, detailed info on failing assert statements, modular fixtures,
1560 and many external plugins.")
1561 (license license:expat)))
1563 (define-public python2-pytest
1564 (package-with-python2 python-pytest))
1566 (define-public python-pytest-cov
1568 (name "python-pytest-cov")
1573 (uri (pypi-uri "pytest-cov" version))
1576 "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92"))))
1577 (build-system python-build-system)
1579 `(("python-coverage" ,python-coverage)
1580 ("python-pytest" ,python-pytest)))
1582 `(("python-setuptools" ,python-setuptools)))
1583 (home-page "https://github.com/pytest-dev/pytest-cov")
1584 (synopsis "Pytest plugin for measuring coverage")
1586 "Pytest-cov produces coverage reports. It supports centralised testing and
1587 distributed testing in both @code{load} and @code{each} modes. It also
1588 supports coverage of subprocesses.")
1589 (license license:expat)))
1591 (define-public python2-pytest-cov
1592 (package-with-python2 python-pytest-cov))
1594 (define-public python-pytest-runner
1596 (name "python-pytest-runner")
1601 (uri (string-append "https://pypi.python.org/packages/source/p/"
1602 "pytest-runner/pytest-runner-"
1606 "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
1607 (build-system python-build-system)
1610 (modify-phases %standard-phases
1611 ;; The fancy way of setting the version with setuptools_scm does not
1612 ;; seem to work here.
1613 (add-after 'unpack 'set-version
1615 (substitute* "docs/conf.py"
1616 (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
1617 (string-append "version = \"" ,version "\"")))
1620 `(("python-pytest" ,python-pytest)
1621 ("python-setuptools" ,python-setuptools)
1622 ("python-setuptools-scm" ,python-setuptools-scm)))
1623 (home-page "https://bitbucket.org/pytest-dev/pytest-runner")
1624 (synopsis "Invoke py.test as a distutils command")
1626 "This package provides a @command{pytest-runner} command that
1627 @file{setup.py} files can use to run tests.")
1628 (license license:expat)))
1630 (define-public python2-pytest-runner
1631 (package-with-python2 python-pytest-runner))
1633 (define-public python-pytest-xdist
1635 (name "python-pytest-xdist")
1640 (uri (pypi-uri "pytest-xdist" version ".zip"))
1643 "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
1644 (build-system python-build-system)
1647 ("python-setuptools" ,python-setuptools)
1648 ("python-setuptools-scm" ,python-setuptools-scm)))
1650 `(("python-execnet" ,python-execnet)
1651 ("python-pytest" ,python-pytest)
1652 ("python-py" ,python-py)))
1654 "https://github.com/pytest-dev/pytest-xdist")
1656 "Plugin for py.test with distributed testing and loop-on-failing modes")
1658 "The pytest-xdist plugin extends py.test with some unique test execution
1659 modes: parallelization, running tests in boxed subprocesses, the ability
1660 to run tests repeatedly when failed, and the ability to run tests on multiple
1661 Python interpreters or platforms. It uses rsync to copy the existing
1662 program code to a remote location, executes there, and then syncs the
1664 (license license:expat)))
1666 (define-public python2-pytest-xdist
1667 (package-with-python2 python-pytest-xdist))
1669 (define-public python-scripttest
1671 (name "python-scripttest")
1677 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1681 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1682 (build-system python-build-system)
1684 `(("python-setuptools" ,python-setuptools)
1685 ("python-pytest" ,python-pytest)))
1686 (home-page "http://pythonpaste.org/scripttest/")
1687 (synopsis "Python library to test command-line scripts")
1688 (description "Scripttest is a Python helper library for testing
1689 interactive command-line applications. With it you can run a script in a
1690 subprocess and see the output as well as any file modifications.")
1691 (license license:expat)))
1693 (define-public python2-scripttest
1694 (package-with-python2 python-scripttest))
1696 (define-public python-testtools
1698 (name "python-testtools")
1704 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1708 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1709 (build-system python-build-system)
1711 `(("python-mimeparse" ,python-mimeparse)))
1713 `(("python-setuptools" ,python-setuptools)
1714 ("python-extras" ,python-extras)))
1715 (home-page "https://github.com/testing-cabal/testtools")
1717 "Extensions to the Python standard library unit testing framework")
1719 "Testtools extends the Python standard library unit testing framework to
1720 provide matchers, more debugging information, and cross-Python
1724 (define-public python2-testtools
1725 (package-with-python2 python-testtools))
1727 (define-public python-testscenarios
1729 (name "python-testscenarios")
1735 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1739 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1740 (build-system python-build-system)
1742 `(("python-setuptools" ,python-setuptools)
1743 ("python-testtools" ,python-testtools)
1744 ("python-mimeparse" ,python-mimeparse)))
1745 (home-page "https://launchpad.net/testscenarios")
1746 (synopsis "Pyunit extension for dependency injection")
1748 "Testscenarios provides clean dependency injection for Python unittest
1750 (license (list bsd-3 asl2.0)))) ; at the user's option
1752 (define-public python2-testscenarios
1753 (package-with-python2 python-testscenarios))
1755 (define-public python-testresources
1757 (name "python-testresources")
1763 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1767 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1768 (build-system python-build-system)
1770 `(("python-setuptools" ,python-setuptools)))
1771 (home-page "https://launchpad.net/testresources")
1773 "Pyunit extension for managing test resources")
1775 "Testresources is an extension to Python's unittest to allow declarative
1776 use of resources by test cases.")
1777 (license (list bsd-3 asl2.0)))) ; at the user's option
1779 (define-public python2-testresources
1780 (package-with-python2 python-testresources))
1782 (define-public python-subunit
1784 (name "python-subunit")
1790 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1794 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1795 (build-system python-build-system)
1797 `(("python-setuptools" ,python-setuptools)
1798 ("python-testtools" ,python-testtools)
1799 ("python-mimeparse" ,python-mimeparse)
1800 ("python-testscenarios" ,python-testscenarios)))
1801 (home-page "http://launchpad.net/subunit")
1802 (synopsis "Python implementation of the subunit protocol")
1804 "Python-subunit is a Python implementation of the subunit test streaming
1806 (license (list bsd-3 asl2.0)))) ; at the user's option
1808 (define-public python2-subunit
1809 (package-with-python2 python-subunit))
1811 ;; Recent versions of python-fixtures need a recent version of python-pbr,
1812 ;; which needs a recent version of python-fixtures. To fix this circular
1813 ;; dependency, we keep old versions of python-fixtures and python-pbr to
1814 ;; bootstrap the whole thing:
1815 ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
1816 ;; - python-pbr-0.11 is used to build python-fixtures
1817 ;; - python-fixtures is used to build python-pbr
1818 (define-public python-fixtures-0.3.16
1820 (name "python-fixtures")
1826 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1830 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1831 (build-system python-build-system)
1833 `(("python-setuptools" ,python-setuptools)))
1835 '(#:tests? #f)) ; no setup.py test command
1836 (home-page "https://launchpad.net/python-fixtures")
1837 (synopsis "Python test fixture library")
1839 "Fixtures provides a way to create reusable state, useful when writing
1841 (license (list bsd-3 asl2.0)))) ; at user's option
1843 (define-public python2-fixtures-0.3.16
1844 (package-with-python2 python-fixtures-0.3.16))
1846 (define-public python-pbr-0.11
1854 "https://pypi.python.org/packages/source/p/pbr/pbr-"
1858 "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
1859 (build-system python-build-system)
1861 `(#:tests? #f)) ;; Most tests seem to use the Internet.
1863 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
1864 ("python-pip" ,python-pip)
1865 ("python-setuptools" ,python-setuptools)))
1866 (home-page "https://launchpad.net/pbr")
1867 (synopsis "Change the default behavior of Python’s setuptools")
1869 "Python Build Reasonableness (PBR) is a library that injects some useful
1870 and sensible default behaviors into your setuptools run.")
1873 (define-public python2-pbr-0.11
1874 (package-with-python2 python-pbr-0.11))
1876 (define-public python-fixtures
1878 (name "python-fixtures")
1883 (uri (pypi-uri "fixtures" version))
1886 "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
1887 (build-system python-build-system)
1889 `(("python-six" ,python-six)
1890 ("python-pbr-0.11" ,python-pbr-0.11)))
1892 `(("python-pip" ,python-pip)
1893 ("python-setuptools" ,python-setuptools)
1895 ("python-testtools" ,python-testtools)))
1897 '(#:tests? #f)) ; no setup.py test command
1898 (home-page "https://launchpad.net/python-fixtures")
1899 (synopsis "Python test fixture library")
1901 "Fixtures provides a way to create reusable state, useful when writing
1903 (license (list bsd-3 asl2.0)))) ; at user's option
1905 (define-public python2-fixtures
1906 (package-with-python2 python-fixtures))
1908 (define-public python-testrepository
1910 (name "python-testrepository")
1916 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
1920 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
1921 (build-system python-build-system)
1923 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
1924 ("python-testtools" ,python-testtools)))
1926 `(("python-setuptools" ,python-setuptools)
1927 ("python-subunit" ,python-subunit)
1928 ("python-mimeparse" ,python-mimeparse)))
1929 (home-page "https://launchpad.net/testrepository")
1930 (synopsis "Database for Python test results")
1931 (description "Testrepository provides a database of test results which can
1932 be used as part of a developer's workflow to check things such as what tests
1933 have failed since the last commit or what tests are currently failing.")
1934 (license (list bsd-3 asl2.0)))) ; at user's option
1936 (define-public python2-testrepository
1937 (package-with-python2 python-testrepository))
1939 (define-public python-coverage
1941 (name "python-coverage")
1946 (uri (pypi-uri "coverage" version))
1949 "0qjlja8ny4gcfp8abqfwdrvr8qw9kr69lkja0b4cqqbsdmdjgcc5"))))
1950 (build-system python-build-system)
1952 `(("python-setuptools" ,python-setuptools)))
1953 (home-page "http://nedbatchelder.com/code/coverage")
1954 (synopsis "Code coverage measurement for Python")
1956 "Coverage measures code coverage, typically during test execution. It
1957 uses the code analysis tools and tracing hooks provided in the Python standard
1958 library to determine which lines are executable, and which have been
1962 (define-public python2-coverage
1963 (package-with-python2 python-coverage))
1965 (define-public python-discover
1967 (name "python-discover")
1973 "https://pypi.python.org/packages/source/d/discover/discover-"
1977 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
1978 (build-system python-build-system)
1980 `(("python-setuptools" ,python-setuptools)))
1981 (home-page "http://pypi.python.org/pypi/discover/")
1983 "Python test discovery for unittest")
1985 "Discover provides test discovery for unittest, a feature that has been
1986 backported from Python 2.7 for Python 2.4+.")
1989 (define-public python2-discover
1990 (package-with-python2 python-discover))
1992 (define-public behave
1998 (uri (string-append "https://pypi.python.org/packages/source/b/"
1999 name "/" name "-" version ".tar.gz"))
2002 "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14"))))
2003 (build-system python-build-system)
2005 `(("python-setuptools" ,python-setuptools)
2006 ("python-six" ,python-six)
2007 ("python-parse" ,python-parse)
2008 ("python-parse-type" ,python-parse-type)))
2009 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
2011 (home-page "http://github.com/behave/behave")
2012 (synopsis "Python behavior-driven development")
2014 "Behave is a tool for behavior-driven development in python.
2015 Behavior-driven development (or BDD) is an agile software development
2016 technique that encourages collaboration between developers, QA and
2017 non-technical or business participants in a software project. Behave uses
2018 tests written in a natural language style, backed up by Python code.")
2021 (define-public python-exif-read
2023 (name "python-exif-read")
2027 (uri (pypi-uri "ExifRead" version))
2030 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2031 (build-system python-build-system)
2033 `(("python-setuptools" ,python-setuptools)))
2034 (arguments `(#:tests? #f)) ; no tests
2035 (home-page "https://github.com/ianare/exif-py")
2036 (synopsis "Python library to extract EXIF data from image files")
2038 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2042 (define-public python2-exif-read
2043 (package-with-python2 python-exif-read))
2045 (define-public python-pyld
2047 (name "python-pyld")
2051 (uri (pypi-uri "PyLD" version))
2054 "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad"))))
2055 (build-system python-build-system)
2057 `(("python-setuptools" ,python-setuptools)))
2058 (arguments `(#:tests? #f)) ; no tests
2059 (home-page "http://github.com/digitalbazaar/pyld")
2060 (synopsis "Python implementation of the JSON-LD specification")
2062 "PyLD is an implementation of the JSON-LD specification.")
2065 (define-public python2-pyld
2066 (package-with-python2 python-pyld))
2068 (define-public python-certifi
2070 (name "python-certifi")
2071 (version "2015.11.20.1")
2074 (uri (pypi-uri "certifi" version))
2077 "05lgwf9rz1kn465azy2bpb3zmpnsn9gkypbhnjlclchv98ssgc1h"))))
2078 (build-system python-build-system)
2080 `(("python-setuptools" ,python-setuptools)))
2081 (arguments `(#:tests? #f)) ; no tests
2082 (home-page "http://python-requests.org/")
2083 (synopsis "Python CA certificate bundle")
2085 "Certifi is a Python library that contains a CA certificate bundle, which
2086 is used by the Requests library to verify HTTPS requests.")
2089 (define-public python2-certifi
2090 (package-with-python2 python-certifi))
2092 (define-public python-click
2094 (name "python-click")
2099 (uri (pypi-uri "click" version))
2101 (base32 "10kavbisnk9m93jl2wi34pw7ryr2qbxshh2cysxwxd7bymqgz87v"))))
2102 (build-system python-build-system)
2104 `(("python-setuptools" ,python-setuptools)))
2105 (home-page "http://click.pocoo.org")
2106 (synopsis "Command line library for Python")
2108 "Click is a Python package for creating command line interfaces in a
2109 composable way with as little code as necessary. Its name stands for
2110 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2111 with sensible defaults out of the box.")
2114 (define-public python2-click
2115 (package-with-python2 python-click))
2117 (define-public python-wheel
2119 (name "python-wheel")
2124 (uri (pypi-uri "wheel" version))
2127 "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
2128 (build-system python-build-system)
2130 `(("python-setuptools" ,python-setuptools)
2131 ("python-jsonschema" ,python-jsonschema)
2132 ("python-pytest-cov" ,python-pytest-cov)))
2133 (home-page "https://bitbucket.org/pypa/wheel/")
2134 (synopsis "Format for built Python packages")
2136 "A wheel is a ZIP-format archive with a specially formatted filename and
2137 the @code{.whl} extension. It is designed to contain all the files for a PEP
2138 376 compatible install in a way that is very close to the on-disk format. Many
2139 packages will be properly installed with only the @code{Unpack} step and the
2140 unpacked archive preserves enough information to @code{Spread} (copy data and
2141 scripts to their final locations) at any later time. Wheel files can be
2142 installed with a newer @code{pip} or with wheel's own command line utility.")
2143 (license license:expat)
2144 (properties `((python2-variant . ,(delay python2-wheel))))))
2146 (define-public python2-wheel
2147 (let ((wheel (package-with-python2
2148 (strip-python2-variant python-wheel))))
2149 (package (inherit wheel)
2150 (native-inputs `(("python2-functools32" ,python2-functools32)
2151 ,@(package-native-inputs wheel))))))
2154 (define-public python-requests
2156 (name "python-requests")
2160 (uri (pypi-uri "requests" version))
2163 "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
2164 (build-system python-build-system)
2166 `(("python-setuptools" ,python-setuptools)))
2168 `(("python-py" ,python-py)
2169 ("python-pytest" ,python-pytest)
2170 ("python-pytest-cov" ,python-pytest-cov)
2171 ("python-wheel" ,python-wheel)))
2172 (home-page "http://python-requests.org/")
2173 (synopsis "Python HTTP library")
2175 "Requests is a Python HTTP client library. It aims to be easier to use
2176 than Python’s urllib2 library.")
2179 ;; Some software requires an older version of Requests, notably Docker
2181 (define-public python-requests-2.7
2182 (package (inherit python-requests)
2186 (uri (pypi-uri "requests" version))
2189 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
2191 (define-public python2-requests
2192 (package-with-python2 python-requests))
2194 (define-public python-vcversioner
2196 (name "python-vcversioner")
2197 (version "2.14.0.0")
2201 (uri (pypi-uri "vcversioner" version))
2204 "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c"))))
2205 (build-system python-build-system)
2207 `(("python-setuptools" ,python-setuptools)))
2208 (synopsis "Python library for version number discovery")
2209 (description "Vcversioner is a Python library that inspects tagging
2210 information in a variety of version control systems in order to discover
2212 (home-page "https://github.com/habnabit/vcversioner")
2215 (define-public python2-vcversioner
2216 (package-with-python2 python-vcversioner))
2218 (define-public python-jsonschema
2220 (name "python-jsonschema")
2226 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
2230 "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
2231 (build-system python-build-system)
2233 `(("python-setuptools" ,python-setuptools)
2234 ("python-vcversioner" ,python-vcversioner)))
2235 (home-page "http://github.com/Julian/jsonschema")
2236 (synopsis "Implementation of JSON Schema for Python")
2238 "Jsonschema is an implementation of JSON Schema for Python.")
2239 (license license:expat)
2240 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2242 (define-public python2-jsonschema
2243 (let ((jsonschema (package-with-python2
2244 (strip-python2-variant python-jsonschema))))
2245 (package (inherit jsonschema)
2247 `(("python2-functools32" ,python2-functools32)
2248 ,@(package-inputs jsonschema))))))
2250 (define-public python-unidecode
2252 (name "python-unidecode")
2256 (uri (pypi-uri "Unidecode" version))
2259 "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
2260 (build-system python-build-system)
2262 `(("python-setuptools" ,python-setuptools)))
2263 (home-page "https://pypi.python.org/pypi/Unidecode")
2264 (synopsis "ASCII transliterations of Unicode text")
2266 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2267 useful when integrating with legacy code that doesn't support Unicode, or for
2268 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2269 machine identifiers from human-readable Unicode strings that should still be
2270 somewhat intelligeble.")
2273 (define-public python2-unidecode
2274 (package-with-python2 python-unidecode))
2276 (define-public python-pyjwt
2278 (name "python-pyjwt")
2283 (uri (pypi-uri "PyJWT" version))
2286 "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
2287 (build-system python-build-system)
2289 `(("python-setuptools" ,python-setuptools)
2290 ("python-pytest-runner" ,python-pytest-runner)))
2292 '(#:tests? #f)) ; test suite doesn't work
2293 (home-page "http://github.com/progrium/pyjwt")
2294 (synopsis "JSON Web Token implementation in Python")
2296 "PyJWT is a JSON Web Token implementation written in Python.")
2297 (license license:expat)))
2299 (define-public python2-pyjwt
2300 (package-with-python2 python-pyjwt))
2302 (define-public python-oauthlib
2304 (name "python-oauthlib")
2308 (uri (pypi-uri "oauthlib" version))
2311 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
2312 (build-system python-build-system)
2314 `(("python-setuptools" ,python-setuptools)
2315 ("python-coverage" ,python-coverage)
2316 ("python-nose" ,python-nose)
2317 ("python-mock" ,python-mock)))
2319 `(("python-blinker" ,python-blinker)
2320 ("python-cryptography" ,python-cryptography)
2321 ("python-pyjwt" ,python-pyjwt)))
2322 (home-page "https://github.com/idan/oauthlib")
2323 (synopsis "OAuth implementation for Python")
2325 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2326 OAuth request-signing logic.")
2329 (define-public python2-oauthlib
2330 (let ((base (package-with-python2 python-oauthlib)))
2334 `(("python2-unittest2" ,python2-unittest2)
2335 ("python2-cryptography" ,python2-cryptography)
2336 ,@(alist-delete "python-cryptography"
2337 (package-inputs base)))))))
2339 (define-public python-itsdangerous
2341 (name "python-itsdangerous")
2347 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2351 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2352 (build-system python-build-system)
2354 `(("python-setuptools" ,python-setuptools)))
2355 (home-page "http://github.com/mitsuhiko/itsdangerous")
2356 (synopsis "Python library for passing data to/from untrusted environments")
2358 "Itsdangerous provides various helpers to pass trusted data to untrusted
2359 environments and back.")
2362 (define-public python2-itsdangerous
2363 (package-with-python2 python-itsdangerous))
2365 (define-public python-pyyaml
2367 (name "python-pyyaml")
2373 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2377 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2378 (build-system python-build-system)
2380 `(("libyaml" ,libyaml)))
2382 `(("python-setuptools" ,python-setuptools)))
2383 (home-page "http://pyyaml.org/wiki/PyYAML")
2384 (synopsis "YAML parser and emitter for Python")
2386 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2387 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2388 API, and sensible error messages. PyYAML supports standard YAML tags and
2389 provides Python-specific tags that allow to represent an arbitrary Python
2391 (license license:expat)))
2393 (define-public python2-pyyaml
2394 (package-with-python2 python-pyyaml))
2396 (define-public python-virtualenv
2398 (name "python-virtualenv")
2403 (uri (pypi-uri "virtualenv" version))
2406 "1p732accxwqfjbdna39k8w8lp9gyw91vr4kzkhm8mgfxikqqxg5a"))))
2407 (build-system python-build-system)
2410 (modify-phases %standard-phases
2412 (lambda _ (zero? (system* "py.test")))))))
2414 `(("python-setuptools" ,python-setuptools)
2415 ("python-mock" ,python-mock)
2416 ("python-pytest" ,python-pytest)))
2417 (home-page "https://virtualenv.pypa.io/")
2418 (synopsis "Virtual Python environment builder")
2420 "Virtualenv is a tool to create isolated Python environments.")
2421 (license license:expat)))
2423 (define-public python2-virtualenv
2424 (package-with-python2 python-virtualenv))
2426 (define-public python-markupsafe
2428 (name "python-markupsafe")
2434 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2438 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2439 (build-system python-build-system)
2441 `(("python-setuptools" ,python-setuptools)))
2442 (home-page "http://github.com/mitsuhiko/markupsafe")
2443 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2445 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2449 (define-public python2-markupsafe
2450 (package-with-python2 python-markupsafe))
2452 (define-public python-jinja2
2454 (name "python-jinja2")
2459 (uri (pypi-uri "Jinja2" version))
2462 "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
2463 (build-system python-build-system)
2465 `(("python-setuptools" ,python-setuptools)
2466 ("python-markupsafe" ,python-markupsafe)))
2467 (home-page "http://jinja.pocoo.org/")
2468 (synopsis "Python template engine")
2470 "Jinja2 is a small but fast and easy to use stand-alone template engine
2471 written in pure Python.")
2474 (define-public python2-jinja2
2475 (package-with-python2 python-jinja2))
2477 (define-public python-pystache
2479 (name "python-pystache")
2483 (uri (pypi-uri "pystache" version))
2486 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2487 (build-system python-build-system)
2489 `(("python-setuptools" ,python-setuptools)))
2490 (home-page "http://defunkt.io/pystache/")
2491 (synopsis "Python logic-less template engine")
2493 "Pystache is a Python implementation of the framework agnostic,
2494 logic-free templating system Mustache.")
2495 (license license:expat)))
2497 (define-public python2-pystache
2498 (package-with-python2 python-pystache))
2500 (define-public python-joblib
2502 (name "python-joblib")
2506 (uri (string-append "https://pypi.python.org/packages/source/"
2507 "j/joblib/joblib-" version ".tar.gz"))
2510 "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3"))))
2511 (build-system python-build-system)
2513 `(("python-setuptools" ,python-setuptools)
2514 ("python-nose" ,python-nose)))
2515 (home-page "http://pythonhosted.org/joblib/")
2516 (synopsis "Using Python functions as pipeline jobs")
2518 "Joblib is a set of tools to provide lightweight pipelining in Python.
2519 In particular, joblib offers: transparent disk-caching of the output values
2520 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2521 logging and tracing of the execution.")
2524 (define-public python2-joblib
2525 (package-with-python2 python-joblib))
2527 (define-public python-docutils
2529 (name "python-docutils")
2535 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2539 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2540 (build-system python-build-system)
2542 `(("python-setuptools" ,python-setuptools)))
2544 '(#:tests? #f)) ; no setup.py test command
2545 (home-page "http://docutils.sourceforge.net/")
2546 (synopsis "Python Documentation Utilities")
2548 "Docutils is a modular system for processing documentation into useful
2549 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2551 ;; Most of the source code is public domain, but some source files are
2552 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2553 (license (list public-domain psfl bsd-2 gpl3+))))
2555 (define-public python2-docutils
2556 (package-with-python2 python-docutils))
2558 (define-public python-pygments
2560 (name "python-pygments")
2565 (uri (pypi-uri "Pygments" version))
2568 "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
2569 (build-system python-build-system)
2571 `(("python-setuptools" ,python-setuptools)))
2572 (home-page "http://pygments.org/")
2573 (synopsis "Syntax highlighting")
2575 "Pygments is a syntax highlighting package written in Python.")
2578 (define-public python2-pygments
2579 (package-with-python2 python-pygments))
2581 (define-public python-sphinx
2583 (name "python-sphinx")
2589 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2593 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2594 (build-system python-build-system)
2596 `(("python-setuptools" ,python-setuptools)
2597 ("python-jinja2" ,python-jinja2)
2598 ("python-docutils" ,python-docutils)
2599 ("python-pygments" ,python-pygments)))
2600 (home-page "http://sphinx-doc.org/")
2601 (synopsis "Python documentation generator")
2602 (description "Sphinx is a tool that makes it easy to create documentation
2603 for Python projects or other documents consisting of multiple reStructuredText
2607 (define-public python2-sphinx
2608 (package-with-python2 python-sphinx))
2610 (define-public python-sphinx-rtd-theme
2612 (name "python-sphinx-rtd-theme")
2617 (uri (string-append "https://pypi.python.org/packages/source/s/"
2618 "sphinx_rtd_theme/sphinx_rtd_theme-"
2622 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2623 (build-system python-build-system)
2625 `(;; With standard flags, the install phase attempts to create a zip'd
2626 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2628 #:configure-flags '("--single-version-externally-managed"
2629 "--record=sphinx-rtd-theme.txt")))
2631 `(("python-setuptools" ,python-setuptools)))
2633 `(("python-docutils" ,python-docutils)
2634 ("python-sphinx" ,python-sphinx)))
2635 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2636 (synopsis "ReadTheDocs.org theme for Sphinx")
2637 (description "A theme for Sphinx used by ReadTheDocs.org.")
2638 (license license:expat)))
2640 (define-public python2-sphinx-rtd-theme
2641 (package-with-python2 python-sphinx-rtd-theme))
2643 (define-public python-feedgenerator
2645 (name "python-feedgenerator")
2646 (version "20150710.97185b7")
2648 ;; Using the git checkout for now because license file not added till
2649 ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39
2653 (url "https://github.com/dmdm/feedgenerator-py3k.git")
2654 (commit "97185b7566c240c4bf5ed80db7d6c271204dab39")))
2657 "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a"))))
2659 `(;; With standard flags, the install phase attempts to create a zip'd
2660 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2662 #:configure-flags '("--single-version-externally-managed"
2663 "--record=feedgenerator.txt")))
2664 (build-system python-build-system)
2666 `(("python-setuptools" ,python-setuptools)
2667 ("python-pytz" ,python-pytz)
2668 ("python-six" ,python-six)))
2670 "https://github.com/dmdm/feedgenerator-py3k.git")
2672 "Standalone version of Django's Atom/RSS feed generator")
2674 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2675 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2678 (define-public python2-feedgenerator
2679 (package-with-python2 python-feedgenerator))
2681 (define-public python-blinker
2683 (name "python-blinker")
2688 (uri (pypi-uri "blinker" version))
2691 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
2692 (build-system python-build-system)
2694 `(("python-setuptools" ,python-setuptools)))
2695 ;; No "test" command supplied to setuptools, so unless there's another way
2696 ;; to run tests, we're skipping them!
2697 (arguments '(#:tests? #f))
2698 (home-page "http://pythonhosted.org/blinker/")
2699 (synopsis "Fast, simple object-to-object and broadcast signaling")
2701 "Blinker provides a fast dispatching system that allows any number of
2702 interested parties to subscribe to events, or \"signals\".")
2703 (license license:expat)))
2705 (define-public python2-blinker
2706 (package-with-python2 python-blinker))
2708 (define-public pelican
2715 (uri (pypi-uri "pelican" version))
2718 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
2719 (build-system python-build-system)
2721 `(("python-setuptools" ,python-setuptools)))
2723 `(("python-feedgenerator" ,python-feedgenerator)
2724 ("python-jinja2" ,python-jinja2)
2725 ("python-pygments" ,python-pygments)
2726 ("python-docutils" ,python-docutils)
2727 ("python-pytz" ,python-pytz)
2728 ("python-blinker" ,python-blinker)
2729 ("python-unidecode" ,python-unidecode)
2730 ("python-six" ,python-six)
2731 ("python-dateutil-2" ,python-dateutil-2)))
2732 (home-page "http://getpelican.com/")
2734 `(;; XXX Requires a lot more packages to do unit tests :P
2736 #:phases (modify-phases %standard-phases
2738 'install 'adjust-requires
2739 ;; Since feedgenerator is installed from git, it doesn't
2740 ;; conform to the version requirements.
2742 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2743 ;; version requirement so setuptools doesn't get confused.
2745 (substitute* "setup.py"
2746 (("['\"]feedgenerator.*?['\"]")
2747 "'feedgenerator'")))))))
2748 (synopsis "Python-based static site publishing system")
2750 "Pelican is a tool to generate a static blog from reStructuredText,
2751 Markdown input files, and more. Pelican uses Jinja2 for templating
2752 and is very extensible.")
2755 (define-public python-scikit-learn
2757 (name "python-scikit-learn")
2763 "https://github.com/scikit-learn/scikit-learn/archive/"
2767 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
2768 (build-system python-build-system)
2773 ;; some tests require access to "$HOME"
2774 (lambda _ (setenv "HOME" "/tmp"))
2775 ;; Tests can only be run after the library has been installed and not
2776 ;; within the source directory.
2780 (with-directory-excursion "/tmp"
2781 ;; With Python 3 one test of 3334 fails
2782 ;; (sklearn.tests.test_common.test_transformers); see
2783 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
2784 (system* "nosetests" "-v" "sklearn")))
2785 (alist-delete 'check %standard-phases)))))
2787 `(("openblas" ,openblas)
2788 ("python-nose" ,python-nose)))
2790 `(("python-numpy" ,python-numpy)
2791 ("python-scipy" ,python-scipy)))
2792 (home-page "http://scikit-learn.org/")
2793 (synopsis "Machine Learning in Python")
2795 "Scikit-learn provides simple and efficient tools for data
2796 mining and data analysis.")
2799 (define-public python2-scikit-learn
2800 (let ((scikit (package-with-python2 python-scikit-learn)))
2801 (package (inherit scikit)
2803 `(("python2-numpy" ,python2-numpy)
2804 ("python2-scipy" ,python2-scipy)
2808 "python-scipy" (package-propagated-inputs scikit))))))))
2810 (define-public python-scikit-image
2812 (name "python-scikit-image")
2818 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2821 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2822 (build-system python-build-system)
2824 `(("python-matplotlib" ,python-matplotlib)
2825 ("python-networkx" ,python-networkx)
2826 ("python-numpy" ,python-numpy)
2827 ("python-scipy" ,python-scipy)
2828 ("python-six" ,python-six)
2829 ("python-pillow" ,python-pillow)))
2831 `(("python-cython" ,python-cython)
2832 ("python-setuptools" ,python-setuptools)))
2833 (home-page "http://scikit-image.org/")
2834 (synopsis "Image processing in Python")
2836 "Scikit-image is a collection of algorithms for image processing.")
2839 (define-public python2-scikit-image
2840 (let ((scikit-image (package-with-python2 python-scikit-image)))
2841 (package (inherit scikit-image)
2843 `(("python2-mock" ,python2-mock)
2844 ,@(package-native-inputs scikit-image)))
2846 `(("python2-pytz" ,python2-pytz)
2847 ("python2-matplotlib" ,python2-matplotlib)
2848 ("python2-numpy" ,python2-numpy)
2849 ("python2-scipy" ,python2-scipy)
2850 ,@(fold alist-delete (package-propagated-inputs scikit-image)
2851 '("python-matplotlib" "python-numpy" "python-scipy")))))))
2853 (define-public python-redis
2855 (name "python-redis")
2861 "https://pypi.python.org/packages/source/r/redis/redis-"
2864 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
2865 (build-system python-build-system)
2866 ;; Tests require a running Redis server
2867 (arguments '(#:tests? #f))
2869 `(("python-setuptools" ,python-setuptools)
2870 ("python-pytest" ,python-pytest)))
2871 (home-page "https://github.com/andymccurdy/redis-py")
2872 (synopsis "Redis Python client")
2874 "This package provides a Python interface to the Redis key-value store.")
2875 (license license:expat)))
2877 (define-public python2-redis
2878 (package-with-python2 python-redis))
2880 (define-public python-rq
2888 "https://pypi.python.org/packages/source/r/rq/rq-"
2891 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
2892 (build-system python-build-system)
2894 `(("python-click" ,python-click)
2895 ("python-redis" ,python-redis)))
2897 `(("python-setuptools" ,python-setuptools)))
2898 (home-page "http://python-rq.org/")
2899 (synopsis "Simple job queues for Python")
2901 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2902 processing them in the background with workers. It is backed by Redis and it
2903 is designed to have a low barrier to entry.")
2906 (define-public python2-rq
2907 (package-with-python2 python-rq))
2909 (define-public python-cython
2911 (name "python-cython")
2916 (uri (pypi-uri "Cython" version))
2919 "13hdffhd37mx3gjby018xl179jaj957fy7kzi01crmimxvn2zi7y"))))
2920 (build-system python-build-system)
2921 ;; we need the full python package and not just the python-wrapper
2922 ;; because we need libpython3.3m.so
2924 `(("python" ,python)))
2929 ;; some tests require access to "$HOME/.cython"
2930 (lambda* _ (setenv "HOME" "/tmp"))
2933 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))
2934 %standard-phases))))
2935 (home-page "http://cython.org/")
2936 (synopsis "C extensions for Python")
2937 (description "Cython is an optimising static compiler for both the Python
2938 programming language and the extended Cython programming language. It makes
2939 writing C extensions for Python as easy as Python itself.")
2941 (properties `((python2-variant . ,(delay python2-cython))))))
2943 (define-public python2-cython
2944 (package (inherit (package-with-python2
2945 (strip-python2-variant python-cython)))
2946 (name "python2-cython")
2948 `(("python-2" ,python-2))))) ; this is not automatically changed
2950 ;; This version of numpy is missing the documentation and is only used to
2951 ;; build matplotlib which is required to build numpy's documentation.
2952 (define python-numpy-bootstrap
2954 (name "python-numpy-bootstrap")
2959 (uri (string-append "mirror://sourceforge/numpy"
2960 "/numpy-" version ".tar.gz"))
2963 "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
2964 (build-system python-build-system)
2966 `(("python-nose" ,python-nose)
2967 ("openblas" ,openblas)
2968 ("lapack" ,lapack)))
2970 `(("gfortran" ,gfortran)))
2974 'build 'set-environment-variables
2975 (lambda* (#:key inputs #:allow-other-keys)
2976 (call-with-output-file "site.cfg"
2980 libraries = openblas
2981 library_dirs = ~a/lib
2982 include_dirs = ~a/include
2985 lapack_libs = lapack
2986 library_dirs = ~a/lib
2987 include_dirs = ~a/include
2989 (assoc-ref inputs "openblas")
2990 (assoc-ref inputs "openblas")
2991 (assoc-ref inputs "lapack")
2992 (assoc-ref inputs "lapack"))))
2993 ;; Use "gcc" executable, not "cc".
2994 (substitute* "numpy/distutils/system_info.py"
2995 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
2996 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
2998 ;; Tests can only be run after the library has been installed and not
2999 ;; within the source directory.
3003 (with-directory-excursion "/tmp"
3004 (zero? (system* "python" "-c"
3005 "import numpy; numpy.test(verbose=2)"))))
3008 %standard-phases)))))
3009 (home-page "http://www.numpy.org/")
3010 (synopsis "Fundamental package for scientific computing with Python")
3011 (description "NumPy is the fundamental package for scientific computing
3012 with Python. It contains among other things: a powerful N-dimensional array
3013 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3014 and Fortran code, useful linear algebra, Fourier transform, and random number
3018 (define python2-numpy-bootstrap
3019 (package-with-python2 python-numpy-bootstrap))
3021 (define-public python2-fastlmm
3023 (name "python2-fastlmm")
3028 (uri (pypi-uri "fastlmm" version ".zip"))
3031 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3032 (build-system python-build-system)
3034 `(#:python ,python-2)) ; only Python 2.7 is supported
3036 `(("python2-numpy" ,python2-numpy)
3037 ("python2-scipy" ,python2-scipy)
3038 ("python2-matplotlib" ,python2-matplotlib)
3039 ("python2-pandas" ,python2-pandas)
3040 ("python2-scikit-learn" ,python2-scikit-learn)
3041 ("python2-cython" ,python2-cython)
3042 ("python2-pysnptools" ,python2-pysnptools)))
3045 ("python2-mock" ,python2-mock)
3046 ("python2-setuptools" ,python2-setuptools)))
3047 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3048 (synopsis "Perform genome-wide association studies on large data sets")
3050 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3051 Models, is a program for performing both single-SNP and SNP-set genome-wide
3052 association studies (GWAS) on extremely large data sets.")
3055 (define-public python-numpy
3056 (package (inherit python-numpy-bootstrap)
3057 (name "python-numpy")
3058 (outputs '("out" "doc"))
3061 ("python-setuptools" ,python-setuptools)
3062 ("python-matplotlib" ,python-matplotlib)
3063 ("python-sphinx" ,python-sphinx)
3064 ("python-pyparsing" ,python-pyparsing)
3065 ("python-numpydoc" ,python-numpydoc)
3066 ,@(package-inputs python-numpy-bootstrap)))
3068 `(("pkg-config" ,pkg-config)
3069 ("texlive" ,texlive)
3070 ("texinfo" ,texinfo)
3072 ,@(package-native-inputs python-numpy-bootstrap)))
3074 `(,@(substitute-keyword-arguments
3075 (package-arguments python-numpy-bootstrap)
3078 'install 'install-doc
3079 (lambda* (#:key outputs #:allow-other-keys)
3080 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3082 data "/doc/" ,name "-"
3083 ,(package-version python-numpy-bootstrap)))
3084 (info (string-append data "/info"))
3085 (html (string-append doc "/html"))
3086 (pyver ,(string-append "PYVER=")))
3087 (with-directory-excursion "doc"
3089 (system* "make" "html" pyver)
3090 (system* "make" "latex" "PAPER=a4" pyver)
3091 (system* "make" "-C" "build/latex"
3092 "all-pdf" "PAPER=a4" pyver)
3093 ;; FIXME: Generation of the info file fails.
3094 ;; (system* "make" "info" pyver)
3096 ;; (copy-file "build/texinfo/numpy.info"
3097 ;; (string-append info "/numpy.info"))
3098 (for-each (lambda (file)
3099 (copy-file (string-append "build/latex" file)
3100 (string-append doc file)))
3101 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3102 (with-directory-excursion "build/html"
3103 (for-each (lambda (file)
3104 (let* ((dir (dirname file))
3105 (tgt-dir (string-append html "/" dir)))
3106 (unless (equal? "." dir)
3108 (install-file file html)))
3109 (find-files "." ".*"))))))
3112 (define-public python2-numpy
3113 (package-with-python2 python-numpy))
3115 (define-public python-pyparsing
3117 (name "python-pyparsing")
3122 (uri (string-append "mirror://sourceforge/pyparsing"
3123 "/pyparsing-" version ".tar.gz"))
3126 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
3127 (build-system python-build-system)
3128 (outputs '("out" "doc"))
3130 `(#:tests? #f ; no test target
3131 #:modules ((guix build python-build-system)
3135 'install 'install-doc
3136 (lambda* (#:key outputs #:allow-other-keys)
3137 (let* ((doc (string-append (assoc-ref outputs "doc")
3138 "/share/doc/" ,name "-" ,version))
3139 (html-doc (string-append doc "/html"))
3140 (examples (string-append doc "/examples")))
3146 (install-file file tgt))
3147 (find-files dir ".*")))
3148 (list "docs" "htmldoc" "examples")
3149 (list doc html-doc examples))))
3151 (home-page "http://pyparsing.wikispaces.com")
3152 (synopsis "Python parsing class library")
3154 "The pyparsing module is an alternative approach to creating and
3155 executing simple grammars, vs. the traditional lex/yacc approach, or the use
3156 of regular expressions. The pyparsing module provides a library of classes
3157 that client code uses to construct the grammar directly in Python code.")
3158 (license license:expat)))
3160 (define-public python2-pyparsing
3161 (package-with-python2 python-pyparsing))
3163 (define-public python-numpydoc
3165 (name "python-numpydoc")
3171 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3175 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3176 (modules '((guix build utils)))
3179 ;; Drop a test requiring matplotlib, which we cannot add as an
3180 ;; input since it would create a circular dependency: Extend the
3181 ;; test for Python 3, where it is already dropped, to Python 2.
3182 (substitute* "numpydoc/tests/test_plot_directive.py"
3184 (build-system python-build-system)
3186 `(("python-setuptools" ,python-setuptools)
3187 ("python-docutils" ,python-docutils)
3188 ("python-sphinx" ,python-sphinx)
3189 ("python-nose" ,python-nose)))
3190 (home-page "https://pypi.python.org/pypi/numpydoc")
3192 "Numpy's Sphinx extensions")
3194 "Sphinx extension to support docstrings in Numpy format.")
3197 (define-public python2-numpydoc
3198 (package-with-python2 python-numpydoc))
3200 (define-public python-numexpr
3202 (name "python-numexpr")
3207 (uri (string-append "https://pypi.python.org/packages/source/"
3208 "n/numexpr/numexpr-" version ".tar.gz"))
3211 "0nsnff5312fm38w6dm34bw7ghfqqy8vl9gig0al963h4mz8zm8nz"))))
3212 (build-system python-build-system)
3213 (arguments `(#:tests? #f)) ; no tests included
3215 `(("python-numpy" ,python-numpy)))
3216 (home-page "https://github.com/pydata/numexpr")
3217 (synopsis "Fast numerical expression evaluator for NumPy")
3219 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3220 expressions that operate on arrays are accelerated and use less memory than
3221 doing the same calculation in Python. In addition, its multi-threaded
3222 capabilities can make use of all your cores, which may accelerate
3223 computations, most specially if they are not memory-bounded (e.g. those using
3224 transcendental functions).")
3225 (license license:expat)))
3227 (define-public python2-numexpr
3228 (let ((numexpr (package-with-python2 python-numexpr)))
3229 (package (inherit numexpr)
3230 ;; Make sure to use special packages for Python 2 instead
3231 ;; of those automatically rewritten by package-with-python2.
3233 `(("python2-numpy" ,python2-numpy)
3234 ,@(alist-delete "python-numpy"
3235 (package-propagated-inputs numexpr)))))))
3237 (define-public python-matplotlib
3239 (name "python-matplotlib")
3244 (uri (string-append "mirror://sourceforge/matplotlib"
3245 "/matplotlib-" version ".tar.gz"))
3248 "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
3249 (patches (list (search-patch "matplotlib-setupext-tk.patch")))))
3250 (build-system python-build-system)
3251 (outputs '("out" "doc"))
3252 (propagated-inputs ; the following packages are all needed at run time
3253 `(("python-pyparsing" ,python-pyparsing)
3254 ("python-pygobject" ,python-pygobject)
3255 ("gobject-introspection" ,gobject-introspection)
3256 ("python-tkinter" ,python "tk")
3257 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3258 ;; from 'gtk+') provides the required 'typelib' files used by
3259 ;; 'gobject-introspection'. The location of these files is set with the
3260 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3261 ;; is done automatically by a 'native-search-path' procedure. However,
3262 ;; at run-time the user must set this variable as follows:
3264 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
3266 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3267 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3268 ;; object. For this reason we need to import both libraries.
3269 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3270 ("python-pycairo" ,python-pycairo)
3271 ("python-cairocffi" ,python-cairocffi)))
3273 `(("python-setuptools" ,python-setuptools)
3274 ("python-dateutil" ,python-dateutil-2)
3275 ("python-six" ,python-six)
3276 ("python-pytz" ,python-pytz)
3277 ("python-numpy" ,python-numpy-bootstrap)
3278 ("python-sphinx" ,python-sphinx)
3279 ("python-numpydoc" ,python-numpydoc)
3280 ("python-nose" ,python-nose)
3281 ("python-mock" ,python-mock)
3283 ("imagemagick" ,imagemagick)
3284 ("freetype" ,freetype)
3287 ("python-pillow" ,python-pillow)
3288 ;; FIXME: Add backends when available.
3289 ;("python-wxpython" ,python-wxpython)
3290 ;("python-pyqt" ,python-pyqt)
3294 `(("pkg-config" ,pkg-config)
3295 ("texlive" ,texlive)
3296 ("texinfo" ,texinfo)))
3300 'build 'configure-environment
3301 (lambda* (#:key outputs inputs #:allow-other-keys)
3302 (let ((cairo (assoc-ref inputs "cairo"))
3303 (gtk+ (assoc-ref inputs "gtk+")))
3304 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3306 (setenv "LD_LIBRARY_PATH"
3307 (string-append cairo "/lib:" gtk+ "/lib"))
3308 (setenv "HOME" (getcwd))
3309 (call-with-output-file "setup.cfg"
3311 (format port "[directories]~%
3312 basedirlist = ~a,~a~%
3315 (assoc-ref inputs "tcl")
3316 (assoc-ref inputs "tk"))))))
3318 'install 'install-doc
3319 (lambda* (#:key outputs #:allow-other-keys)
3320 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3321 (doc (string-append data "/doc/" ,name "-" ,version))
3322 (info (string-append data "/info"))
3323 (html (string-append doc "/html")))
3324 (with-directory-excursion "doc"
3325 ;; Produce pdf in 'A4' format.
3326 (substitute* (find-files "." "conf\\.py")
3327 (("latex_paper_size = 'letter'")
3328 "latex_paper_size = 'a4'"))
3331 ;; The doc recommends to run the 'html' target twice.
3332 (system* "python" "make.py" "html")
3333 (system* "python" "make.py" "html")
3334 (copy-recursively "build/html" html)
3335 (system* "python" "make.py" "latex")
3336 (system* "python" "make.py" "texinfo")
3337 (symlink (string-append html "/_images")
3338 (string-append info "/matplotlib-figures"))
3339 (with-directory-excursion "build/texinfo"
3340 (substitute* "matplotlib.texi"
3341 (("@image\\{([^,]*)" all file)
3342 (string-append "@image{matplotlib-figures/" file)))
3343 (symlink (string-append html "/_images")
3344 "./matplotlib-figures")
3345 (system* "makeinfo" "--no-split"
3346 "-o" "matplotlib.info" "matplotlib.texi"))
3347 (copy-file "build/texinfo/matplotlib.info"
3348 (string-append info "/matplotlib.info"))
3349 (copy-file "build/latex/Matplotlib.pdf"
3350 (string-append doc "/Matplotlib.pdf")))))
3351 %standard-phases))))
3352 (home-page "http://matplotlib.org")
3353 (synopsis "2D plotting library for Python")
3355 "Matplotlib is a Python 2D plotting library which produces publication
3356 quality figures in a variety of hardcopy formats and interactive environments
3357 across platforms. Matplotlib can be used in Python scripts, the python and
3358 ipython shell, web application servers, and six graphical user interface
3361 (properties `((python2-variant . ,(delay python2-matplotlib))))))
3363 (define-public python2-matplotlib
3364 (let ((matplotlib (package-with-python2
3365 (strip-python2-variant python-matplotlib))))
3366 (package (inherit matplotlib)
3367 ;; Make sure to use special packages for Python 2 instead
3368 ;; of those automatically rewritten by package-with-python2.
3370 `(("python2-pycairo" ,python2-pycairo)
3371 ("python2-pygobject-2" ,python2-pygobject-2)
3372 ("python2-tkinter" ,python-2 "tk")
3373 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3374 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
3376 (define-public python2-pysnptools
3378 (name "python2-pysnptools")
3383 (uri (pypi-uri "pysnptools" version ".zip"))
3386 "15f4j4w5q603i7mlphb5r6mb1mn33pqg81595fpjp158140yqx7b"))))
3387 (build-system python-build-system)
3389 `(#:python ,python-2)) ; only Python 2.7 is supported
3391 `(("python2-numpy" ,python2-numpy)
3392 ("python2-scipy" ,python2-scipy)
3393 ("python2-pandas" ,python2-pandas)
3394 ("python2-cython" ,python2-cython)))
3397 ("python2-setuptools" ,python2-setuptools)))
3398 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3399 (synopsis "Library for reading and manipulating genetic data")
3401 "PySnpTools is a library for reading and manipulating genetic data. It
3402 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3403 those files. It can also efficiently manipulate ranges of integers using set
3404 operators such as union, intersection, and difference.")
3407 (define-public python-rpy2
3409 (name "python-rpy2")
3414 (uri (pypi-uri "rpy2" version))
3417 "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
3418 (build-system python-build-system)
3420 `(("python-six" ,python-six)
3421 ("readline" ,readline)
3426 `(("python-setuptools" ,python-setuptools)
3428 (home-page "http://rpy.sourceforge.net/")
3429 (synopsis "Python interface to the R language")
3430 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3431 low-level interface to R from Python, a proposed high-level interface,
3432 including wrappers to graphical libraries, as well as R-like structures and
3436 (define-public python2-rpy2
3437 (let ((rpy2 (package-with-python2 python-rpy2)))
3438 (package (inherit rpy2)
3440 `(("python2-singledispatch" ,python2-singledispatch)
3441 ,@(package-native-inputs rpy2))))))
3443 (define-public python-scipy
3445 (name "python-scipy")
3450 (uri (string-append "mirror://sourceforge/scipy"
3451 "/scipy-" version ".tar.xz"))
3454 "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
3455 (build-system python-build-system)
3457 `(("python-numpy" ,python-numpy)
3458 ("python-matplotlib" ,python-matplotlib)
3459 ("python-pyparsing" ,python-pyparsing)))
3461 `(("lapack" ,lapack)
3462 ("openblas" ,openblas)))
3464 `(("python-nose" ,python-nose)
3465 ("python-sphinx" ,python-sphinx)
3466 ("python-numpydoc" ,python-numpydoc)
3467 ("gfortran" ,gfortran)
3468 ("texlive" ,texlive)
3470 (outputs '("out" "doc"))
3474 'build 'configure-openblas
3475 (lambda* (#:key inputs #:allow-other-keys)
3476 (call-with-output-file "site.cfg"
3480 libraries = openblas
3481 library_dirs = ~a/lib
3482 include_dirs = ~a/include
3484 library_dirs = ~a/lib
3485 atlas_libs = openblas
3487 (assoc-ref inputs "openblas")
3488 (assoc-ref inputs "openblas")
3489 (assoc-ref inputs "openblas"))))
3492 'install 'install-doc
3493 (lambda* (#:key outputs #:allow-other-keys)
3494 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3495 (doc (string-append data "/doc/" ,name "-" ,version))
3496 (html (string-append doc "/html"))
3497 (pyver ,(string-append "PYVER=")))
3498 (with-directory-excursion "doc"
3499 ;; Fix generation of images for mathematical expressions.
3500 (substitute* (find-files "source" "conf\\.py")
3501 (("pngmath_use_preview = True")
3502 "pngmath_use_preview = False"))
3504 (system* "make" "html" pyver)
3505 (system* "make" "latex" "PAPER=a4" pyver)
3506 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3507 (copy-file "build/latex/scipy-ref.pdf"
3508 (string-append doc "/scipy-ref.pdf"))
3509 (with-directory-excursion "build/html"
3510 (for-each (lambda (file)
3511 (let* ((dir (dirname file))
3512 (tgt-dir (string-append html "/" dir)))
3513 (install-file file html)))
3514 (find-files "." ".*"))))))
3515 ;; Tests can only be run after the library has been installed and not
3516 ;; within the source directory.
3520 (with-directory-excursion "/tmp"
3521 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
3527 (substitute* "scipy/integrate/tests/test_quadpack.py"
3528 (("libm.so") "libm.so.6"))
3530 %standard-phases)))))))
3531 (home-page "http://www.scipy.org/")
3532 (synopsis "The Scipy library provides efficient numerical routines")
3533 (description "The SciPy library is one of the core packages that make up
3534 the SciPy stack. It provides many user-friendly and efficient numerical
3535 routines such as routines for numerical integration and optimization.")
3538 (define-public python2-scipy
3539 (package-with-python2 python-scipy))
3541 (define-public python-sqlalchemy
3543 (name "python-sqlalchemy")
3548 (uri (string-append "https://pypi.python.org/packages/source/S/"
3549 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3552 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
3553 (build-system python-build-system)
3555 `(("python-cython" ,python-cython) ;for c extensions
3556 ("python-pytest" ,python-pytest)
3557 ("python-mock" ,python-mock))) ;for tests
3559 `(#:phases (alist-replace
3561 (lambda _ (zero? (system* "py.test")))
3563 (home-page "http://www.sqlalchemy.org")
3564 (synopsis "Database abstraction library")
3566 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3567 gives application developers the full power and flexibility of SQL. It
3568 provides a full suite of well known enterprise-level persistence patterns,
3569 designed for efficient and high-performing database access, adapted into a
3570 simple and Pythonic domain language.")
3573 (define-public python2-sqlalchemy
3574 (package-with-python2 python-sqlalchemy))
3576 (define-public python-alembic
3578 (name "python-alembic")
3583 (uri (pypi-uri "alembic" version))
3586 "0jk23a852l3ybv7gfz81xzslyrnqnpjds5x15zd234y9rh9gq1w5"))))
3587 (build-system python-build-system)
3589 `(("python-mock" ,python-mock)
3590 ("python-pytest-cov" ,python-pytest-cov)))
3592 `(("python-sqlalchemy" ,python-sqlalchemy)
3593 ("python-mako" ,python-mako)
3594 ("python-editor" ,python-editor)))
3595 (home-page "http://bitbucket.org/zzzeek/alembic")
3597 "Database migration tool for SQLAlchemy")
3599 "Alembic is a lightweight database migration tool for usage with the
3600 SQLAlchemy Database Toolkit for Python.")
3601 (license license:expat)
3602 (properties `((python2-variant . ,(delay python2-alembic))))))
3604 (define-public python2-alembic
3605 (let ((alembic (package-with-python2
3606 (strip-python2-variant python-alembic))))
3609 (native-inputs `(("python2-setuptools" ,python2-setuptools)
3610 ,@(package-native-inputs alembic))))))
3612 (define-public python-distutils-extra
3614 (name "python-distutils-extra")
3619 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3620 version "/+download/python-distutils-extra-"
3624 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3625 (build-system python-build-system)
3627 `(("python-setuptools" ,python-setuptools)))
3628 (home-page "https://launchpad.net/python-distutils-extra/")
3629 (synopsis "Enhancements to Python's distutils")
3631 "The python-distutils-extra module enables you to easily integrate
3632 gettext support, themed icons, and scrollkeeper-based documentation into
3633 Python's distutils.")
3636 (define-public python2-distutils-extra
3637 (package-with-python2 python-distutils-extra))
3639 (define-public python2-elib.intl
3641 (name "python2-elib.intl")
3645 ;; This project doesn't tag releases or publish tarballs, so we take
3646 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3649 (url "https://github.com/dieterv/elib.intl.git")
3650 (commit "d09997cfef")))
3653 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3654 (build-system python-build-system)
3656 `(("python2-setuptools" ,python2-setuptools)))
3658 ;; incompatible with Python 3 (exception syntax)
3659 `(#:python ,python-2
3661 ;; With standard flags, the install phase attempts to create a zip'd
3662 ;; egg file, and fails with an error: 'ZIP does not support timestamps
3664 #:configure-flags '("--single-version-externally-managed"
3665 "--record=elib.txt")))
3666 (home-page "https://github.com/dieterv/elib.intl")
3667 (synopsis "Enhanced internationalization for Python")
3669 "The elib.intl module provides enhanced internationalization (I18N)
3670 services for your Python modules and applications.")
3673 (define-public python-pillow
3675 (name "python-pillow")
3680 (uri (pypi-uri "Pillow" version))
3683 "1zwzakr5v0skdh0azp5cd6fwzbll5305dsk33k5jk570vv6lqvs8"))))
3684 (build-system python-build-system)
3686 `(("python-setuptools" ,python-setuptools)
3687 ("python-nose" ,python-nose)))
3689 `(("freetype" ,freetype)
3692 ("libjpeg" ,libjpeg)
3693 ("openjpeg" ,openjpeg)
3694 ("libtiff" ,libtiff)
3695 ("libwebp" ,libwebp)))
3697 `(;; Used at runtime for pkg_resources
3698 ("python-setuptools" ,python-setuptools)))
3700 `(#:phases (modify-phases %standard-phases
3702 'install 'disable-egg-compression
3704 ;; Leave the .egg uncompressed since compressing it would
3705 ;; prevent the GC from identifying run-time dependencies.
3706 ;; See <http://bugs.gnu.org/20765>.
3707 (let ((port (open-file "setup.cfg" "a")))
3708 (display "\n[easy_install]\nzip_ok = 0\n"
3713 'install 'check-installed
3716 (setenv "HOME" (getcwd))
3717 (and (zero? (system* "python" "selftest.py"
3719 (zero? (system* "python" "test-installed.py"))))))
3721 (home-page "https://pypi.python.org/pypi/Pillow")
3722 (synopsis "Fork of the Python Imaging Library")
3724 "The Python Imaging Library adds image processing capabilities to your
3725 Python interpreter. This library provides extensive file format support, an
3726 efficient internal representation, and fairly powerful image processing
3727 capabilities. The core image library is designed for fast access to data
3728 stored in a few basic pixel formats. It should provide a solid foundation for
3729 a general image processing tool.")
3731 "http://www.pythonware.com/products/pil/license.htm"
3732 "The PIL Software License"))))
3734 (define-public python2-pillow
3735 (package-with-python2 python-pillow))
3737 (define-public python-pycparser
3739 (name "python-pycparser")
3744 (uri (pypi-uri "pycparser" version))
3747 "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
3748 (outputs '("out" "doc"))
3749 (build-system python-build-system)
3751 `(("pkg-config" ,pkg-config)
3752 ("python-setuptools" ,python-setuptools)))
3758 (with-directory-excursion "tests"
3759 (zero? (system* "python" "all_tests.py"))))
3761 'install 'install-doc
3762 (lambda* (#:key outputs #:allow-other-keys)
3763 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3764 (doc (string-append data "/doc/" ,name "-" ,version))
3765 (examples (string-append doc "/examples")))
3767 (for-each (lambda (file)
3768 (copy-file (string-append "." file)
3769 (string-append doc file)))
3770 '("/README.rst" "/CHANGES" "/LICENSE"))
3771 (copy-recursively "examples" examples)))
3772 %standard-phases))))
3773 (home-page "https://github.com/eliben/pycparser")
3774 (synopsis "C parser in Python")
3776 "Pycparser is a complete parser of the C language, written in pure Python
3777 using the PLY parsing library. It parses C code into an AST and can serve as
3778 a front-end for C compilers or analysis tools.")
3781 (define-public python2-pycparser
3782 (package-with-python2 python-pycparser))
3784 (define-public python-cffi
3786 (name "python-cffi")
3791 (uri (pypi-uri "cffi" version))
3793 (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
3794 (build-system python-build-system)
3795 (outputs '("out" "doc"))
3797 `(("libffi" ,libffi)))
3798 (propagated-inputs ; required at run-time
3799 `(("python-pycparser" ,python-pycparser)))
3801 `(("pkg-config" ,pkg-config)
3802 ("python-sphinx" ,python-sphinx)
3803 ("python-pytest" ,python-pytest)
3804 ("python-setuptools" ,python-setuptools)))
3808 'install 'install-doc
3809 (lambda* (#:key outputs #:allow-other-keys)
3810 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3811 (doc (string-append data "/doc/" ,name "-" ,version))
3812 (html (string-append doc "/html")))
3813 (with-directory-excursion "doc"
3814 (system* "make" "html")
3816 (copy-recursively "build/html" html))
3817 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
3819 (home-page "http://cffi.readthedocs.org")
3820 (synopsis "Foreign function interface for Python")
3822 "Foreign Function Interface for Python calling C code.")
3823 (license license:expat)))
3825 (define-public python2-cffi
3826 (package-with-python2 python-cffi))
3828 (define-public python-xcffib
3830 (name "python-xcffib")
3835 (uri (string-append "https://pypi.python.org/packages/source/x/"
3836 "xcffib/xcffib-" version ".tar.gz"))
3839 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
3840 (build-system python-build-system)
3842 `(("libxcb" ,libxcb)
3843 ("python-six" ,python-six)))
3845 `(("python-setuptools" ,python-setuptools)))
3847 `(("python-cffi" ,python-cffi))) ; used at run time
3851 'install 'install-doc
3852 (lambda* (#:key outputs #:allow-other-keys)
3853 (let ((doc (string-append (assoc-ref outputs "out") "/share"
3854 "/doc/" ,name "-" ,version)))
3856 (copy-file "README.md"
3857 (string-append doc "/README.md"))))
3859 (home-page "https://github.com/tych0/xcffib")
3860 (synopsis "XCB Python bindings")
3862 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
3863 support for Python 3 and PyPy. It is based on cffi.")
3864 (license license:expat)))
3866 (define-public python2-xcffib
3867 (package-with-python2 python-xcffib))
3869 (define-public python-cairocffi
3871 (name "python-cairocffi")
3876 ;; The archive on pypi is missing the 'utils' directory!
3877 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
3879 (file-name (string-append name "-" version ".tar.gz"))
3882 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
3883 (build-system python-build-system)
3884 (outputs '("out" "doc"))
3886 `(("gdk-pixbuf" ,gdk-pixbuf)
3889 `(("pkg-config" ,pkg-config)
3890 ("python-sphinx" ,python-sphinx)
3891 ("python-docutils" ,python-docutils)
3892 ("python-setuptools" ,python-setuptools)))
3894 `(("python-xcffib" ,python-xcffib))) ; used at run time
3898 'install 'install-doc
3899 (lambda* (#:key inputs outputs #:allow-other-keys)
3900 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3901 (doc (string-append data "/doc/" ,name "-" ,version))
3902 (html (string-append doc "/html")))
3903 (setenv "LD_LIBRARY_PATH"
3904 (string-append (assoc-ref inputs "cairo") "/lib" ":"
3905 (assoc-ref inputs "gdk-pixbuf") "/lib"))
3906 (setenv "LANG" "en_US.UTF-8")
3908 (for-each (lambda (file)
3909 (copy-file (string-append "." file)
3910 (string-append doc file)))
3911 '("/README.rst" "/CHANGES" "/LICENSE"))
3912 (system* "python" "setup.py" "build_sphinx")
3913 (copy-recursively "docs/_build/html" html)))
3915 (home-page "https://github.com/SimonSapin/cairocffi")
3916 (synopsis "Python bindings and object-oriented API for Cairo")
3918 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
3919 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
3920 graphics library with support for multiple backends including image buffers,
3921 PNG, PostScript, PDF, and SVG file output.")
3924 (define-public python2-cairocffi
3925 (package-with-python2 python-cairocffi))
3927 (define-public python-decorator
3929 (name "python-decorator")
3934 (uri (pypi-uri "decorator" version))
3936 (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
3937 (build-system python-build-system)
3938 (arguments '(#:tests? #f)) ; no test target
3940 `(("python-setuptools" ,python-setuptools)))
3941 (home-page "https://pypi.python.org/pypi/decorator/")
3942 (synopsis "Python module to simplify usage of decorators")
3944 "The aim of the decorator module is to simplify the usage of decorators
3945 for the average programmer, and to popularize decorators usage giving examples
3946 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
3947 etc. The core of this module is a decorator factory.")
3948 (license license:expat)))
3950 (define-public python2-decorator
3951 (package-with-python2 python-decorator))
3953 (define-public python-drmaa
3955 (name "python-drmaa")
3961 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
3964 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
3965 (build-system python-build-system)
3966 ;; The test suite requires libdrmaa which is provided by the cluster
3967 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
3968 ;; should be set to the path of the libdrmaa library.
3969 (arguments '(#:tests? #f))
3971 `(("python-nose" ,python-nose)
3972 ("python-setuptools" ,python-setuptools)))
3973 (home-page "https://pypi.python.org/pypi/drmaa")
3974 (synopsis "Python bindings for the DRMAA library")
3976 "A Python package for Distributed Resource Management (DRM) job
3977 submission and control. This package is an implementation of the DRMAA 1.0
3978 Python language binding specification.")
3981 (define-public python2-drmaa
3982 (package-with-python2 python-drmaa))
3984 (define-public python-gridmap
3986 (name "python-gridmap")
3992 "https://github.com/pygridtools/gridmap/archive/v"
3994 (file-name (string-append name "-" version ".tar.gz"))
3996 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
3997 (build-system python-build-system)
3999 `(("python-psutil" ,python-psutil)
4000 ("python-drmaa" ,python-drmaa)
4001 ("python-pyzmq" ,python-pyzmq)))
4003 `(("python-setuptools" ,python-setuptools)))
4004 (home-page "https://github.com/pygridtools/gridmap")
4005 (synopsis "Create jobs on a cluster directly from Python")
4007 "Gridmap is a Python package to allow you to easily create jobs on the
4008 cluster directly from Python. You can directly map Python functions onto the
4009 cluster without needing to write any wrapper code yourself.")
4012 (define-public python2-gridmap
4013 (package-with-python2 python-gridmap))
4015 (define-public python-pexpect
4017 (name "python-pexpect")
4022 (uri (string-append "https://pypi.python.org/packages/source/p/"
4023 "pexpect/pexpect-" version ".tar.gz"))
4025 (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
4026 (build-system python-build-system)
4029 (modify-phases %standard-phases
4030 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4032 `(("python-nose" ,python-nose)))
4033 (home-page "http://pexpect.readthedocs.org/")
4034 (synopsis "Controlling interactive console applications")
4036 "Pexpect is a pure Python module for spawning child applications;
4037 controlling them; and responding to expected patterns in their output.
4038 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4039 child application and control it as if a human were typing commands.")
4042 (define-public python2-pexpect
4043 (package-with-python2 python-pexpect))
4045 (define-public python-setuptools-scm
4047 (name "python-setuptools-scm")
4051 (uri (pypi-uri "setuptools_scm" version))
4054 "0y24bl893zk6nrklbvdrlmpkalf214zjn6k1xrglljd29rrn4wxi"))))
4055 (build-system python-build-system)
4056 (native-inputs `(("python-setuptools" ,python-setuptools)))
4057 (home-page "https://github.com/pypa/setuptools_scm/")
4058 (synopsis "Manage Python package versions in SCM metadata")
4060 "Setuptools_scm handles managing your Python package versions in
4061 @dfn{software configuration management} (SCM) metadata instead of declaring
4062 them as the version argument or in a SCM managed file.")
4063 (license license:expat)))
4065 (define-public python2-setuptools-scm
4066 (package-with-python2 python-setuptools-scm))
4068 (define-public python-pathpy
4070 (name "python-pathpy")
4075 (uri (string-append "https://pypi.python.org/packages/source/p/"
4076 "path.py/path.py-" version ".tar.gz"))
4078 (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
4079 (build-system python-build-system)
4081 `(("python-appdirs" ,python-appdirs)))
4083 `(("python-setuptools" ,python-setuptools)
4084 ("python-setuptools-scm" ,python-setuptools-scm)
4085 ("python-pytest" ,python-pytest)
4086 ("python-pytest-runner" ,python-pytest-runner)))
4087 (home-page "http://github.com/jaraco/path.py")
4088 (synopsis "Python module wrapper for built-in os.path")
4090 "@code{path.py} implements path objects as first-class entities, allowing
4091 common operations on files to be invoked on those path objects directly.")
4092 (license license:expat)))
4094 (define-public python2-pathpy
4095 (package-with-python2 python-pathpy))
4097 (define-public python-pickleshare
4099 (name "python-pickleshare")
4104 (uri (string-append "https://pypi.python.org/packages/source/p/"
4105 "pickleshare/pickleshare-" version ".tar.gz"))
4107 (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
4108 (build-system python-build-system)
4110 `(("python-pathpy" ,python-pathpy)))
4112 `(("python-setuptools" ,python-setuptools)))
4113 (home-page "https://github.com/vivainio/pickleshare")
4114 (synopsis "Tiny key value database with concurrency support")
4116 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
4117 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
4118 shelve, many processes can access the database simultaneously. Changing a
4119 value in database is immediately visible to other processes accessing the same
4120 database. Concurrency is possible because the values are stored in separate
4121 files. Hence the “database” is a directory where all files are governed by
4123 (license license:expat)))
4125 (define-public python2-pickleshare
4126 (package-with-python2 python-pickleshare))
4128 (define-public python-simplegeneric
4130 (name "python-simplegeneric")
4135 (uri (string-append "https://pypi.python.org/packages/source/s/"
4136 "simplegeneric/simplegeneric-" version ".zip"))
4138 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4139 (build-system python-build-system)
4141 `(("python-setuptools" ,python-setuptools)
4143 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4144 (synopsis "Python module for simple generic functions")
4146 "The simplegeneric module lets you define simple single-dispatch generic
4147 functions, akin to Python’s built-in generic functions like @code{len()},
4148 @code{iter()} and so on. However, instead of using specially-named methods,
4149 these generic functions use simple lookup tables, akin to those used by
4150 e.g. @code{pickle.dump()} and other generic functions found in the Python
4154 (define-public python2-simplegeneric
4155 (package-with-python2 python-simplegeneric))
4157 (define-public python-ipython-genutils
4159 (name "python-ipython-genutils")
4164 (uri (string-append "https://pypi.python.org/packages/source/i/"
4165 "ipython_genutils/ipython_genutils-"
4168 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4169 (build-system python-build-system)
4170 (arguments `(#:tests? #f)) ; no tests
4171 (home-page "http://ipython.org")
4172 (synopsis "Vestigial utilities from IPython")
4174 "This package provides retired utilities from IPython.")
4177 (define-public python2-ipython-genutils
4178 (package-with-python2 python-ipython-genutils))
4180 (define-public python-traitlets
4182 (name "python-traitlets")
4187 (uri (pypi-uri "traitlets" version))
4190 "0nxgj8jxlm1kqf8cx2x7vjid05zdgbxpqhjbdl46r8njlpgkh3j4"))))
4191 (build-system python-build-system)
4194 (modify-phases %standard-phases
4195 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4197 `(("python-ipython-genutils" ,python-ipython-genutils)
4198 ("python-decorator" ,python-decorator)))
4200 `(("python-mock" ,python-mock)
4201 ("python-nose" ,python-nose)))
4202 (home-page "http://ipython.org")
4203 (synopsis "Configuration system for Python applications")
4205 "Traitlets is a framework that lets Python classes have attributes with
4206 type checking, dynamically calculated default values, and ‘on change’
4207 callbacks. The package also includes a mechanism to use traitlets for
4208 configuration, loading values from files or from command line arguments. This
4209 is a distinct layer on top of traitlets, so you can use traitlets in your code
4210 without using the configuration machinery.")
4213 (define-public python2-traitlets
4214 (package-with-python2 python-traitlets))
4216 (define-public python-ipython
4218 (name "python-ipython")
4223 (patches (list (search-patch "python-ipython-inputhook-ctype.patch")))
4224 (uri (string-append "https://pypi.python.org/packages/source/i/"
4225 "ipython/ipython-" version ".tar.gz"))
4227 (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9"))))
4228 (build-system python-build-system)
4229 (outputs '("out" "doc"))
4231 `(("python-pyzmq" ,python-pyzmq)
4232 ("python-terminado" ,python-terminado)))
4234 `(("readline" ,readline)
4236 ("python-matplotlib" ,python-matplotlib)
4237 ("python-numpy" ,python-numpy)
4238 ("python-numpydoc" ,python-numpydoc)
4239 ("python-jinja2" ,python-jinja2)
4240 ("python-mistune" ,python-mistune)
4241 ("python-jsonschema" ,python-jsonschema)
4242 ("python-pygments" ,python-pygments)
4243 ("python-requests" ,python-requests) ;; for tests
4244 ("python-nose" ,python-nose)))
4246 `(("pkg-config" ,pkg-config)
4247 ("python-sphinx" ,python-sphinx)
4248 ("texlive" ,texlive)
4249 ("texinfo" ,texinfo)
4250 ("python-setuptools" ,python-setuptools)))
4253 (modify-phases %standard-phases
4255 'install 'install-doc
4256 (lambda* (#:key inputs outputs #:allow-other-keys)
4257 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4258 (doc (string-append data "/doc/" ,name "-" ,version))
4259 (html (string-append doc "/html"))
4260 (man1 (string-append data "/man/man1"))
4261 (info (string-append data "/info"))
4262 (examples (string-append doc "/examples")))
4263 (setenv "LANG" "en_US.utf8")
4264 (with-directory-excursion "docs"
4265 ;; FIXME: html and pdf fail to build
4266 ;; (system* "make" "html")
4267 ;; (system* "make" "pdf" "PAPER=a4")
4268 (system* "make" "info"))
4269 (copy-recursively "docs/man" man1)
4270 (copy-recursively "examples" examples)
4271 ;; (copy-recursively "docs/build/html" html)
4272 ;; (copy-file "docs/build/latex/ipython.pdf"
4273 ;; (string-append doc "/ipython.pdf"))
4275 (copy-file "docs/build/texinfo/ipython.info"
4276 (string-append info "/ipython.info"))
4277 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4278 ;; Tests can only be run after the library has been installed and not
4279 ;; within the source directory.
4283 (lambda* (#:key outputs tests? #:allow-other-keys)
4285 (with-directory-excursion "/tmp"
4286 (setenv "HOME" "/tmp/") ;; required by a test
4287 (zero? (system* (string-append (assoc-ref outputs "out")
4292 (lambda* (#:key inputs #:allow-other-keys)
4293 (substitute* "./IPython/utils/_process_posix.py"
4294 (("/usr/bin/env', 'which") (which "which")))
4295 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4296 (("#!/usr/bin/env python")
4297 (string-append "#!" (which "python"))))
4298 ;; Disable 1 failing test
4299 (substitute* "./IPython/core/tests/test_magic.py"
4300 (("def test_dirops\\(\\):" all)
4301 (string-append "@dec.skipif(True)\n" all))))))))
4302 (home-page "http://ipython.org")
4303 (synopsis "IPython is a tool for interactive computing in Python")
4305 "IPython provides a rich architecture for interactive computing with:
4306 Powerful interactive shells, a browser-based notebook, support for interactive
4307 data visualization, embeddable interpreters and tools for parallel
4311 (define-public python2-ipython
4312 (let ((ipython (package-with-python2 python-ipython)))
4315 ;; FIXME: some tests are failing
4317 `(#:tests? #f ,@(package-arguments ipython)))
4318 ;; Make sure we use custom python2-NAME packages.
4319 ;; FIXME: add pyreadline once available.
4321 `(("python2-terminado" ,python2-terminado)
4322 ,@(alist-delete "python-terminado"
4323 (package-propagated-inputs ipython))))
4325 `(("python2-jsonschema" ,python2-jsonschema)
4326 ("python2-mock" ,python2-mock)
4327 ("python2-matplotlib" ,python2-matplotlib)
4328 ("python2-numpy" ,python2-numpy)
4329 ("python2-requests" ,python2-requests)
4330 ,@(fold alist-delete (package-inputs ipython)
4331 '("python-jsonschema" "python-matplotlib" "python-numpy" "python-requests")))))))
4333 (define-public python-isodate
4335 (name "python-isodate")
4340 (uri (pypi-uri "isodate" version))
4343 "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
4344 (build-system python-build-system)
4346 `(("python-setuptools" ,python-setuptools)))
4348 "http://cheeseshop.python.org/pypi/isodate")
4350 "Python date parser and formatter")
4352 "Python-isodate is a python module for parsing and formatting
4353 ISO 8601 dates, time and duration.")
4356 (define-public python2-isodate
4357 (package-with-python2 python-isodate))
4359 (define-public python-html5lib
4361 (name "python-html5lib")
4366 (uri (pypi-uri "html5lib" version))
4369 "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
4370 (build-system python-build-system)
4372 `(("python-six" ,python-six))) ; required to "import html5lib"
4374 `(("python-setuptools" ,python-setuptools)))
4376 `(#:test-target "check"))
4378 "https://github.com/html5lib/html5lib-python")
4380 "Python HTML parser based on the WHATWG HTML specifcation")
4382 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
4383 and written in Python.")
4384 (license license:expat)))
4386 (define-public python2-html5lib
4387 (package-with-python2 python-html5lib))
4389 (define-public python-urwid
4391 (name "python-urwid")
4396 (uri (pypi-uri "urwid" version))
4399 "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19"))))
4400 (build-system python-build-system)
4403 (modify-phases %standard-phases
4404 ;; Disable failing test. Bug filed upstream:
4405 ;; https://github.com/wardi/urwid/issues/164
4406 ;; TODO: check again for python-urwid > 1.3.0 or python > 3.4.3.
4407 (add-after 'unpack 'disable-failing-test
4409 (substitute* "urwid/tests/test_event_loops.py"
4410 (("test_remove_watch_file")
4411 "disable_remove_watch_file")))))))
4412 (native-inputs `(("python-setuptools" ,python-setuptools)))
4413 (home-page "http://urwid.org")
4414 (synopsis "Console user interface library for Python")
4416 "Urwid is a curses-based UI/widget library for Python. It includes many
4417 features useful for text console applications.")
4418 (license lgpl2.1+)))
4420 (define-public python2-urwid
4421 (package-with-python2 python-urwid))
4423 (define-public python-dbus
4425 (name "python-dbus")
4431 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
4434 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
4435 (build-system gnu-build-system)
4438 (modify-phases %standard-phases
4442 ;; XXX: For the missing '/etc/machine-id'.
4443 (substitute* "test/run-test.sh"
4444 (("DBUS_FATAL_WARNINGS=1")
4445 "DBUS_FATAL_WARNINGS=0"))
4448 `(("pkg-config" ,pkg-config)))
4450 `(("python" ,python)
4451 ("dbus-glib" ,dbus-glib)))
4452 (synopsis "Python bindings for D-bus")
4453 (description "python-dbus provides bindings for libdbus, the reference
4454 implementation of D-Bus.")
4455 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
4456 (license license:expat)))
4458 (define-public python2-dbus
4459 (package (inherit python-dbus)
4460 (name "python2-dbus")
4461 (inputs `(("python" ,python-2)
4462 ,@(alist-delete "python"
4463 (package-inputs python-dbus)
4465 ;; FIXME: on Python 2, the test_utf8 fails with:
4466 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
4467 (arguments `(#:tests? #f))))
4469 (define-public python-apsw
4471 (name "python-apsw")
4472 (version "3.9.2-r1")
4476 (uri (pypi-uri "apsw" version))
4479 "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
4480 (build-system python-build-system)
4482 `(("python-setuptools" ,python-setuptools)
4483 ("sqlite" ,sqlite)))
4486 ;; swap check and install phases
4489 (assoc-ref %standard-phases 'check)
4492 %standard-phases))))
4493 (home-page "https://github.com/rogerbinns/apsw/")
4494 (synopsis "Another Python SQLite Wrapper")
4495 (description "APSW is a Python wrapper for the SQLite
4496 embedded relational database engine. In contrast to other wrappers such as
4497 pysqlite it focuses on being a minimal layer over SQLite attempting just to
4498 translate the complete SQLite API into Python.")
4499 (license license:zlib)))
4501 (define-public python2-apsw
4502 (package-with-python2 python-apsw))
4504 (define-public python-lxml
4506 (name "python-lxml")
4511 (uri (pypi-uri "lxml" version))
4514 "0y7m2s8ci6q642zl85y5axkj8z827l0vhjl532acb75hlkir77rl"))))
4515 (build-system python-build-system)
4517 `(("libxml2" ,libxml2)
4518 ("libxslt" ,libxslt)
4519 ("python-setuptools" ,python-setuptools)))
4520 (home-page "http://lxml.de/")
4522 "Python XML processing library")
4524 "The lxml XML toolkit is a Pythonic binding for the C libraries
4525 libxml2 and libxslt.")
4526 (license bsd-3))) ; and a few more, see LICENSES.txt
4528 (define-public python2-lxml
4529 (package-with-python2 python-lxml))
4531 ;; beautifulsoup4 has a totally different namespace than 3.x,
4532 ;; and pypi seems to put it under its own name, so I guess we should too
4533 (define-public python-beautifulsoup4
4535 (name "python-beautifulsoup4")
4540 (uri (pypi-uri "beautifulsoup4" version))
4543 "1d36lc4pfkvl74fmzdib2nqnvknm0jddgf2n9yd7im150qyh3m47"))))
4544 (build-system python-build-system)
4546 "http://www.crummy.com/software/BeautifulSoup/bs4/")
4548 "Python screen-scraping library")
4550 "Beautiful Soup is a Python library designed for rapidly setting up
4551 screen-scraping projects. It offers Pythonic idioms for navigating,
4552 searching, and modifying a parse tree, providing a toolkit for
4553 dissecting a document and extracting what you need. It automatically
4554 converts incoming documents to Unicode and outgoing documents to UTF-8.")
4555 (license license:expat)
4556 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
4558 (define-public python2-beautifulsoup4
4560 (inherit (package-with-python2
4561 (strip-python2-variant python-beautifulsoup4)))
4562 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
4564 (define-public python2-cssutils
4566 (name "python2-cssutils")
4572 "https://pypi.python.org/packages/source/c/cssutils/cssutils-"
4577 "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125"))))
4578 (build-system python-build-system)
4580 `(("python2-mock" ,python2-mock) ; for the tests
4581 ("unzip" ,unzip))) ; for unpacking the source
4583 `(("python2-setuptools" ,python2-setuptools)))
4585 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
4586 #:tests? #f ; The tests apparently download an external URL.
4588 (home-page "http://cthedot.de/cssutils/")
4590 "CSS Cascading Style Sheets library for Python")
4592 "Cssutils is a Python package for parsing and building CSS
4593 Cascading Style Sheets. Currently it provides a DOM only and no rendering
4597 (define-public python-cssselect
4599 (name "python-cssselect")
4605 "https://pypi.python.org/packages/source/c/cssselect/cssselect-"
4610 "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85"))))
4611 (build-system python-build-system)
4613 `(("python-setuptools" ,python-setuptools)))
4615 ;; tests fail with message
4616 ;; AttributeError: 'module' object has no attribute 'tests'
4619 "https://pythonhosted.org/cssselect/")
4621 "CSS3 selector parser and translator to XPath 1.0")
4623 "Cssselect ia a Python module that parses CSS3 Selectors and translates
4624 them to XPath 1.0 expressions. Such expressions can be used in lxml or
4625 another XPath engine to find the matching elements in an XML or HTML document.")
4628 (define-public python2-cssselect
4629 (package-with-python2 python-cssselect))
4631 (define-public python-netifaces
4633 (name "python-netifaces")
4639 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
4644 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
4645 (build-system python-build-system)
4647 `(("python-setuptools" ,python-setuptools)))
4649 "https://bitbucket.org/al45tair/netifaces")
4651 "Python module for portable network interface information")
4653 "Netifaces is a Python module providing information on network
4654 interfaces in an easy and portable manner.")
4655 (license license:expat)))
4657 (define-public python2-netifaces
4658 (package-with-python2 python-netifaces))
4660 (define-public python-networkx
4662 (name "python-networkx")
4667 (uri (pypi-uri "networkx" version))
4669 (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
4670 (build-system python-build-system)
4671 ;; python-decorator is needed at runtime
4673 `(("python-decorator" ,python-decorator)))
4675 `(("python-setuptools" ,python-setuptools)
4676 ("python-nose" ,python-nose)))
4677 (home-page "http://networkx.github.io/")
4678 (synopsis "Python module for creating and manipulating graphs and networks")
4680 "NetworkX is a Python package for the creation, manipulation, and study
4681 of the structure, dynamics, and functions of complex networks.")
4684 (define-public python2-networkx
4685 (package-with-python2 python-networkx))
4687 (define-public snakemake
4695 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
4698 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
4699 (build-system python-build-system)
4700 (inputs `(("python-setuptools" ,python-setuptools)))
4701 (home-page "https://bitbucket.org/johanneskoester/snakemake")
4702 (synopsis "Python-based execution environment for make-like workflows")
4704 "Snakemake aims to reduce the complexity of creating workflows by
4705 providing a clean and modern domain specific specification language (DSL) in
4706 Python style, together with a fast and comfortable execution environment.")
4707 (license license:expat)))
4709 (define-public python-seaborn
4711 (name "python-seaborn")
4717 "https://pypi.python.org/packages/source/s/seaborn/seaborn-"
4720 (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc"))))
4721 (build-system python-build-system)
4723 `(("python-pandas" ,python-pandas)
4724 ("python-matplotlib" ,python-matplotlib)
4725 ("python-scipy" ,python-scipy)))
4727 `(("python-setuptools" ,python-setuptools)))
4728 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
4729 (synopsis "Statistical data visualization")
4731 "Seaborn is a library for making attractive and informative statistical
4732 graphics in Python. It is built on top of matplotlib and tightly integrated
4733 with the PyData stack, including support for numpy and pandas data structures
4734 and statistical routines from scipy and statsmodels.")
4737 (define-public python2-seaborn
4738 (let ((seaborn (package-with-python2 python-seaborn)))
4739 (package (inherit seaborn)
4741 `(("python2-pytz" ,python2-pytz)
4742 ("python2-pandas" ,python2-pandas)
4743 ("python2-matplotlib" ,python2-matplotlib)
4744 ("python2-scipy" ,python2-scipy))))))
4746 (define-public python-sympy
4748 (name "python-sympy")
4754 "https://github.com/sympy/sympy/releases/download/sympy-"
4755 version "/sympy-" version ".tar.gz"))
4757 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
4758 (build-system python-build-system)
4760 `(("python-setuptools" ,python-setuptools)))
4761 (home-page "http://www.sympy.org/")
4762 (synopsis "Python library for symbolic mathematics")
4764 "SymPy is a Python library for symbolic mathematics. It aims to become a
4765 full-featured computer algebra system (CAS) while keeping the code as simple
4766 as possible in order to be comprehensible and easily extensible.")
4769 (define-public python2-sympy
4770 (package-with-python2 python-sympy))
4772 (define-public python-testlib
4774 (name "python-testlib")
4780 "https://pypi.python.org/packages/source/t/testlib/testlib-"
4783 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
4784 (build-system python-build-system)
4786 `(("python-setuptools" ,python-setuptools)))
4788 `(("unzip" ,unzip)))
4793 (lambda* (#:key inputs outputs #:allow-other-keys)
4794 (let ((unzip (string-append (assoc-ref inputs "unzip")
4796 (source (assoc-ref inputs "source")))
4797 (and (zero? (system* unzip source))
4798 (chdir (string-append "testlib-" ,version)))))
4800 (synopsis "Python micro test suite harness")
4801 (description "A micro unittest suite harness for Python.")
4802 (home-page "https://github.com/trentm/testlib")
4803 (license license:expat)))
4805 (define-public python2-testlib
4806 (package-with-python2 python-testlib))
4808 (define-public python2-xlib
4810 (name "python2-xlib")
4814 (uri (string-append "mirror://sourceforge/python-xlib/"
4815 "python-xlib-" version ".tar.gz"))
4818 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
4819 (build-system python-build-system)
4821 `(#:python ,python-2 ;Python 2 only
4822 #:tests? #f)) ;no tests
4824 `(("python-setuptools" ,python-setuptools)))
4825 (home-page "http://python-xlib.sourceforge.net/")
4826 (synopsis "Python X11 client library")
4828 "The Python X Library is intended to be a fully functional X client
4829 library for Python programs. It is useful to implement low-level X clients.
4830 It is written entirely in Python.")
4833 (define-public python-singledispatch
4835 (name "python-singledispatch")
4841 "https://pypi.python.org/packages/source/s/singledispatch/"
4842 "singledispatch-" version ".tar.gz"))
4845 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
4846 (build-system python-build-system)
4848 `(("python-setuptools" ,python-setuptools)))
4850 `(("python-six" ,python-six)))
4852 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
4853 (synopsis "Backport of singledispatch feature from Python 3.4")
4855 "This library brings functools.singledispatch from Python 3.4 to Python
4857 (license license:expat)))
4859 (define-public python2-singledispatch
4860 (package-with-python2 python-singledispatch))
4862 (define-public python-tornado
4864 (name "python-tornado")
4869 (uri (pypi-uri "tornado" version))
4871 (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
4872 (build-system python-build-system)
4874 `(("python-certifi" ,python-certifi)))
4876 `(("python-backports-abc" ,python-backports-abc)
4877 ("python-setuptools" ,python-setuptools)))
4878 (home-page "http://www.tornadoweb.org/")
4879 (synopsis "Python web framework and asynchronous networking library")
4881 "Tornado is a Python web framework and asynchronous networking library,
4882 originally developed at FriendFeed. By using non-blocking network I/O,
4883 Tornado can scale to tens of thousands of open connections, making it ideal
4884 for long polling, WebSockets, and other applications that require a long-lived
4885 connection to each user.")
4888 (define-public python2-tornado
4889 (let ((tornado (package-with-python2 python-tornado)))
4890 (package (inherit tornado)
4892 `(("python2-backport-ssl-match-hostname"
4893 ,python2-backport-ssl-match-hostname)
4894 ("python2-singledispatch", python2-singledispatch)
4895 ,@(package-inputs tornado))))))
4897 ;; the python- version can be removed with python-3.5
4898 (define-public python-backports-abc
4900 (name "python-backports-abc")
4905 (uri (pypi-uri "backports_abc" version))
4908 "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
4909 (build-system python-build-system)
4911 `(("python-setuptools" ,python-setuptools)))
4912 (home-page "https://github.com/cython/backports_abc")
4913 (synopsis "Backport of additions to the 'collections.abc' module.")
4915 "Python-backports-abc provides a backport of additions to the
4916 'collections.abc' module in Python-3.5.")
4919 (define-public python2-backports-abc
4920 (package-with-python2 python-backports-abc))
4922 (define-public python-waf
4928 (uri (string-append "https://waf.io/"
4929 "waf-" version ".tar.bz2"))
4932 "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn"))))
4933 (build-system python-build-system)
4936 (modify-phases %standard-phases
4940 (system* "python" "waf-light" "configure")
4941 (system* "python" "waf-light" "build")))))
4944 (zero? (system* "python" "waf" "--version"))))
4947 (copy-file "waf" %output))))))
4948 (home-page "https://waf.io/")
4949 (synopsis "Python-based build system")
4951 "Waf is a Python-based framework for configuring, compiling and installing
4955 (define-public python2-waf
4956 (package-with-python2 python-waf))
4958 (define-public python-pyzmq
4960 (name "python-pyzmq")
4965 (uri (pypi-uri "pyzmq" version))
4967 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
4968 (build-system python-build-system)
4971 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
4972 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
4973 ;; --inplace' for 'python setup.py test' to work.
4976 `(("zeromq" ,zeromq)))
4978 `(("pkg-config" ,pkg-config)
4979 ("python-nose" ,python-nose)
4980 ("python-setuptools" ,python-setuptools)))
4981 (home-page "http://github.com/zeromq/pyzmq")
4982 (synopsis "Python bindings for 0MQ")
4984 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
4987 (define-public python2-pyzmq
4988 (package-with-python2 python-pyzmq))
4990 (define-public python-pep8
4992 (name "python-pep8")
4997 (uri (pypi-uri "pep8" version))
5000 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
5001 (build-system python-build-system)
5003 `(("python-setuptools" ,python-setuptools)))
5004 (home-page "http://pep8.readthedocs.org/")
5005 (synopsis "Python style guide checker")
5007 "This tools checks Python code against some of the style conventions in
5009 (license license:expat)))
5011 (define-public python2-pep8
5012 (package-with-python2 python-pep8))
5014 (define-public python-pyflakes
5016 (name "python-pyflakes")
5021 (uri (pypi-uri "pyflakes" version))
5024 "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
5025 (build-system python-build-system)
5027 `(("python-setuptools" ,python-setuptools)))
5029 "https://github.com/pyflakes/pyflakes")
5030 (synopsis "Passive checker of Python programs")
5032 "Pyflakes statically checks Python source code for common errors.")
5033 (license license:expat)))
5035 (define-public python2-pyflakes
5036 (package-with-python2 python-pyflakes))
5038 (define-public python-mccabe
5040 (name "python-mccabe")
5045 (uri (pypi-uri "mccabe" version))
5048 "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
5049 (build-system python-build-system)
5051 `(("python-pytest" ,python-pytest)
5052 ("python-pytest-runner" ,python-pytest-runner)
5053 ("python-setuptools" ,python-setuptools)))
5054 (home-page "https://github.com/flintwork/mccabe")
5055 (synopsis "McCabe checker, plugin for flake8")
5057 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5058 complexity of Python source code.")
5059 (license license:expat)))
5061 (define-public python2-mccabe
5062 (package-with-python2 python-mccabe))
5064 (define-public python-mccabe-0.2.1
5065 (package (inherit python-mccabe)
5070 (uri (pypi-uri "mccabe" version))
5073 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))
5074 (inputs `(("python-setuptools" ,python-setuptools)))))
5076 (define-public python2-mccabe-0.2.1
5077 (package-with-python2 python-mccabe-0.2.1))
5079 ;; Flake8 2.4.1 requires an older version of pep8.
5080 ;; This should be removed ASAP.
5081 (define-public python-pep8-1.5.7
5082 (package (inherit python-pep8)
5088 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5093 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
5095 (define-public python2-pep8-1.5.7
5096 (package-with-python2 python-pep8-1.5.7))
5098 ;; Flake8 2.4.1 requires an older version of pyflakes.
5099 ;; This should be removed ASAP.
5100 (define-public python-pyflakes-0.8.1
5101 (package (inherit python-pyflakes)
5107 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5112 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
5114 (define-public python2-pyflakes-0.8.1
5115 (package-with-python2 python-pyflakes-0.8.1))
5117 (define-public python-flake8
5119 (name "python-flake8")
5124 (uri (pypi-uri "flake8" version))
5127 "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
5128 (build-system python-build-system)
5130 `(("python-setuptools" ,python-setuptools)
5131 ("python-pep8" ,python-pep8)
5132 ("python-pyflakes" ,python-pyflakes)
5133 ("python-mccabe" ,python-mccabe)
5134 ("python-mock" ,python-mock)
5135 ("python-nose" ,python-nose)))
5136 (home-page "https://gitlab.com/pycqa/flake8")
5138 "The modular source code checker: pep8, pyflakes and co")
5140 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5141 (license license:expat)))
5143 (define-public python2-flake8
5144 (package-with-python2 python-flake8))
5146 ;; This will only be needed by the python-hacking package and will not be
5147 ;; necessary once python-hacking > 0.10.2 is released.
5148 (define-public python-flake8-2.2.4
5149 (package (inherit python-flake8)
5151 `(("python-setuptools" ,python-setuptools)
5152 ("python-pep8" ,python-pep8-1.5.7)
5153 ("python-pyflakes" ,python-pyflakes-0.8.1)
5154 ("python-mccabe" ,python-mccabe-0.2.1)
5155 ("python-mock" ,python-mock)
5156 ("python-nose" ,python-nose)))
5161 (uri (pypi-uri "flake8" version))
5164 "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
5166 (define-public python2-flake8-2.2.4
5167 (package-with-python2 python-flake8-2.2.4))
5169 (define-public python-mistune
5171 (name "python-mistune")
5177 "https://pypi.python.org/packages/source/m/mistune/mistune-"
5182 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
5183 (build-system python-build-system)
5185 `(("python-setuptools" ,python-setuptools)
5186 ("python-nose" ,python-nose)
5187 ("python-cython" ,python-cython)))
5188 (home-page "https://github.com/lepture/mistune")
5189 (synopsis "Markdown parser in pure Python")
5190 (description "This package provides a fast markdown parser in pure
5194 (define-public python2-mistune
5195 (package-with-python2 python-mistune))
5197 (define-public python-markdown
5199 (name "python-markdown")
5204 (uri (pypi-uri "Markdown" version))
5207 "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
5208 (build-system python-build-system)
5211 (modify-phases %standard-phases
5214 (zero? (system* "python" "run-tests.py")))))))
5216 `(("python-nose" ,python-nose)
5217 ("python-pyyaml" ,python-pyyaml)))
5218 (home-page "https://pythonhosted.org/Markdown/")
5219 (synopsis "Python implementation of Markdown")
5221 "This package provides a Python implementation of John Gruber's
5222 Markdown. The library features international input, various Markdown
5223 extensions, and several HTML output formats. A command line wrapper
5224 markdown_py is also provided to convert Markdown files to HTML.")
5227 (define-public python2-markdown
5228 (package-with-python2 python-markdown))
5230 (define-public python-ptyprocess
5232 (name "python-ptyprocess")
5238 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
5242 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
5243 (build-system python-build-system)
5245 `(("python-setuptools" ,python-setuptools)
5246 ("python-nose" ,python-nose)))
5249 (modify-phases %standard-phases
5252 (zero? (system* "nosetests")))))))
5253 (home-page "https://github.com/pexpect/ptyprocess")
5254 (synopsis "Run a subprocess in a pseudo terminal")
5256 "This package provides a Python library used to launch a subprocess in a
5257 pseudo terminal (pty), and interact with both the process and its pty.")
5260 (define-public python2-ptyprocess
5261 (package-with-python2 python-ptyprocess))
5263 (define-public python-terminado
5265 (name "python-terminado")
5271 "https://pypi.python.org/packages/source/t/terminado/terminado-"
5275 "1dkmp1n8dj5v1jl9mfrq8lwyc7dsfrvcmz2bgkpg315sy7pr7s33"))))
5276 (build-system python-build-system)
5278 `(("python-tornado" ,python-tornado)
5279 ("python-ptyprocess" ,python-ptyprocess)))
5281 `(("python-setuptools" ,python-setuptools)
5282 ("python-nose" ,python-nose)))
5285 (modify-phases %standard-phases
5288 (zero? (system* "nosetests")))))))
5289 (home-page "https://github.com/takluyver/terminado")
5290 (synopsis "Terminals served to term.js using Tornado websockets")
5291 (description "This package provides a Tornado websocket backend for the
5292 term.js Javascript terminal emulator library.")
5295 (define-public python2-terminado
5296 (let ((terminado (package-with-python2 python-terminado)))
5297 (package (inherit terminado)
5299 `(("python2-tornado" ,python2-tornado)
5300 ("python2-backport-ssl-match-hostname"
5301 ,python2-backport-ssl-match-hostname)
5302 ,@(alist-delete "python-tornado"
5303 (package-propagated-inputs terminado)))))))
5305 (define-public python-fonttools
5307 (name "python-fonttools")
5312 "https://pypi.python.org/packages/source/F/FontTools/"
5313 "fonttools-" version ".tar.gz"))
5316 "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
5317 (build-system python-build-system)
5318 (arguments '(#:test-target "check"))
5320 ;; XXX: module not found if setuptools is not available.
5321 `(("python-setuptools" ,python-setuptools)))
5322 (home-page "http://github.com/behdad/fonttools")
5323 (synopsis "Tools to manipulate font files")
5325 "FontTools/TTX is a library to manipulate font files from Python. It
5326 supports reading and writinfg of TrueType/OpenType fonts, reading and writing
5327 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
5328 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
5329 from an XML-based format.")
5330 (license (non-copyleft "file://LICENSE.txt"
5331 "See LICENSE.txt in the distribution."))))
5333 (define-public python2-fonttools
5334 (package-with-python2 python-fonttools))
5336 (define-public python-ly
5344 "https://pypi.python.org/packages/source/p/python-ly/python-ly-"
5348 "1y6ananq8fia4y4m5id6gvsrm68bzpzd1y46pfzvawic0wjg2l0l"))))
5349 (build-system python-build-system)
5351 `(("python-setuptools" ,python-setuptools)))
5352 (synopsis "Tool and library for manipulating LilyPond files")
5353 (description "This package provides a Python library to parse, manipulate
5354 or create documents in LilyPond format. A command line program ly is also
5355 provided that can be used to do various manipulations with LilyPond files.")
5356 (home-page "https://pypi.python.org/pypi/python-ly")
5359 (define-public python-appdirs
5361 (name "python-appdirs")
5367 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
5372 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
5373 (build-system python-build-system)
5375 `(("python-setuptools" ,python-setuptools)))
5376 (home-page "http://github.com/ActiveState/appdirs")
5378 "Determine platform-specific dirs, e.g. a \"user data dir\"")
5380 "This module provides a portable way of finding out where user data
5381 should be stored on various operating systems.")
5382 (license license:expat)))
5384 (define-public python2-appdirs
5385 (package-with-python2 python-appdirs))
5387 (define-public python-llfuse
5389 (name "python-llfuse")
5394 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5395 "llfuse-" version ".tar.bz2"))
5398 "0yzy8ixpmxk00kdq6lx5vvwbs0n6s59qnja5q0js2ahbqyxiz2hb"))))
5399 (build-system python-build-system)
5404 `(("pkg-config" ,pkg-config)
5405 ("python-setuptools" ,python-setuptools)))
5406 (synopsis "Python bindings for FUSE")
5408 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
5409 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
5410 ;; Python-LLFUSE includes underscore.js, which is MIT (expat) licensed.
5411 ;; The rest of the package is licensed under LGPL2.0 or later.
5412 (license (list license:expat lgpl2.0+))))
5414 (define-public python2-llfuse
5415 (package-with-python2 python-llfuse))
5417 (define-public python-msgpack
5419 (name "python-msgpack")
5424 "https://pypi.python.org/packages/source/m/"
5425 "msgpack-python/msgpack-python-" version ".tar.gz"))
5428 "1527c76b6fn4zzkgfq5xvhh7x9a9686g7fjiz717rw5vklf5ik5z"))))
5429 (build-system python-build-system)
5431 `(("python-setuptools" ,python-setuptools)))
5432 (synopsis "MessagePack (de)serializer")
5433 (description "MessagePack is a fast, compact binary serialization format,
5434 suitable for similar data to JSON. This package provides CPython bindings for
5435 reading and writing MessagePack data.")
5436 (home-page "https://pypi.python.org/pypi/msgpack-python/")
5439 (define-public python2-msgpack
5440 (package-with-python2 python-msgpack))
5442 (define-public python-netaddr
5444 (name "python-netaddr")
5450 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
5455 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
5456 (build-system python-build-system)
5457 (arguments `(#:tests? #f)) ;; No tests.
5459 `(("python-setuptools" ,python-setuptools)))
5460 (home-page "https://github.com/drkjam/netaddr/")
5461 (synopsis "Pythonic manipulation of network addresses")
5463 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
5464 and MAC network addresses.")
5467 (define-public python2-netaddr
5468 (package-with-python2 python-netaddr))
5470 (define-public python-wrapt
5472 (name "python-wrapt")
5478 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
5483 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
5484 (build-system python-build-system)
5486 ;; Tests are not included in the tarball, they are only available in the
5490 `(("python-setuptools" ,python-setuptools)))
5491 (home-page "https://github.com/GrahamDumpleton/wrapt")
5492 (synopsis "Module for decorators, wrappers and monkey patching")
5494 "The aim of the wrapt module is to provide a transparent object proxy for
5495 Python, which can be used as the basis for the construction of function
5496 wrappers and decorator functions.")
5499 (define-public python2-wrapt
5500 (package-with-python2 python-wrapt))
5502 (define-public python-iso8601
5504 (name "python-iso8601")
5510 "https://pypi.python.org/packages/source/i/iso8601/iso8601-"
5515 "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7"))))
5516 (build-system python-build-system)
5518 `(("python-setuptools" ,python-setuptools)))
5519 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
5520 (synopsis "Module to parse ISO 8601 dates")
5522 "This module parses the most common forms of ISO 8601 date strings (e.g.
5523 @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
5524 (license license:expat)))
5526 (define-public python2-iso8601
5527 (package-with-python2 python-iso8601))
5529 (define-public python-monotonic
5531 (name "python-monotonic")
5537 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
5542 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
5543 (build-system python-build-system)
5545 `(("python-setuptools" ,python-setuptools)))
5546 (home-page "https://github.com/atdt/monotonic")
5547 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
5549 "This module provides a monotonic() function which returns the value (in
5550 fractional seconds) of a clock which never goes backwards.")
5553 (define-public python2-monotonic
5554 (package-with-python2 python-monotonic))
5556 (define-public python-webob
5558 (name "python-webob")
5563 (uri (pypi-uri "WebOb" version))
5566 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
5567 (build-system python-build-system)
5569 `(("python-nose" ,python-nose)
5570 ("python-setuptools" ,python-setuptools)))
5571 (home-page "http://webob.org/")
5572 (synopsis "WSGI request and response object")
5574 "WebOb provides wrappers around the WSGI request environment, and an
5575 object to help create WSGI responses.")
5576 (license license:expat)))
5578 (define-public python2-webob
5579 (package-with-python2 python-webob))
5581 (define-public python-xlrd
5583 (name "python-xlrd")
5587 (uri (string-append "https://pypi.python.org/packages/source/x/"
5588 "xlrd/xlrd-" version ".tar.gz"))
5591 "0wpa55nvidmm5m2qr622dsh3cj46akdk0h3zjgzschcmydck73cf"))))
5592 (build-system python-build-system)
5595 (modify-phases %standard-phases
5596 ;; Current test in setup.py does not work as of 0.9.4, so use nose to
5597 ;; run tests instead for now.
5598 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5599 (native-inputs `(("python-nose" ,python-nose)
5600 ("python-setuptools" ,python-setuptools)))
5601 (home-page "http://www.python-excel.org/")
5602 (synopsis "Library for extracting data from Excel files")
5603 (description "This packages provides a library to extract data from
5604 spreadsheets using Microsoft Excel® proprietary file formats @samp{.xls} and
5605 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
5606 Unicode-aware. It is not intended as an end-user tool.")
5609 (define-public python2-xlrd
5610 (package-with-python2 python-xlrd))
5612 (define-public python-prettytable
5614 (name "python-prettytable")
5620 "https://pypi.python.org/packages/source/P/PrettyTable/"
5621 "prettytable-" version ".tar.bz2"))
5624 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
5625 (build-system python-build-system)
5627 `(("python-setuptools" ,python-setuptools)))
5628 (home-page "http://code.google.com/p/prettytable/")
5629 (synopsis "Display tabular data in an ASCII table format")
5631 "A library designed to represent tabular data in visually appealing ASCII
5632 tables. PrettyTable allows for selection of which columns are to be printed,
5633 independent alignment of columns (left or right justified or centred) and
5634 printing of sub-tables by specifying a row range.")
5637 (define-public python2-prettytable
5638 (package-with-python2 python-prettytable))
5640 (define-public python-pyasn1
5642 (name "python-pyasn1")
5647 (uri (string-append "https://pypi.python.org/packages/source/p/"
5648 "pyasn1/pyasn1-" version ".tar.gz"))
5651 "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx"))))
5652 (build-system python-build-system)
5653 (home-page "http://pyasn1.sourceforge.net/")
5654 (synopsis "ASN.1 types and codecs")
5656 "This is an implementation of ASN.1 types and codecs in Python. It is
5657 suitable for a wide range of protocols based on the ASN.1 specification.")
5660 (define-public python2-pyasn1
5661 (package-with-python2 python-pyasn1))
5663 (define-public python-pyasn1-modules
5665 (name "python-pyasn1-modules")
5670 (uri (pypi-uri "pyasn1-modules" version))
5673 "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
5674 (build-system python-build-system)
5676 `(("python-setuptools" ,python-setuptools)))
5678 `(("python-pyasn1" ,python-pyasn1)))
5679 (home-page "http://sourceforge.net/projects/pyasn1/")
5680 (synopsis "ASN.1 codec implementations")
5682 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
5683 implementations of ASN.1-based codecs and protocols.")
5686 (define-public python2-pyasn1-modules
5687 (package-with-python2 python-pyasn1-modules))
5689 (define-public python2-ipaddress
5691 (name "python2-ipaddress")
5696 (uri (string-append "https://pypi.python.org/packages/source/i/"
5697 "ipaddress/ipaddress-" version ".tar.gz"))
5700 "0givid4963n57nsjibms2fc347zmcs188q1hw9al1dkc9kj4nvr2"))))
5701 (build-system python-build-system)
5703 `(#:tests? #f ; no tests
5704 #:python ,python-2))
5705 (home-page "https://github.com/phihag/ipaddress")
5706 (synopsis "IP address manipulation library")
5708 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
5709 in Python. This library is used to create, poke at, and manipulate IPv4 and
5710 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
5711 module to older versions of Python.")
5714 (define-public python-idna
5716 (name "python-idna")
5721 (uri (string-append "https://pypi.python.org/packages/source/i/"
5722 "idna/idna-" version ".tar.gz"))
5725 "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
5726 (build-system python-build-system)
5728 `(("python-setuptools" ,python-setuptools)))
5729 (home-page "https://github.com/kjd/idna")
5730 (synopsis "Internationalized domain names in applications")
5732 "This is a library to support the Internationalised Domain Names in
5733 Applications (IDNA) protocol as specified in RFC 5891. This version of the
5734 protocol is often referred to as “IDNA2008” and can produce different results
5735 from the earlier standard from 2003. The library is also intended to act as a
5736 suitable drop-in replacement for the “encodings.idna” module that comes with
5737 the Python standard library but currently only supports the older 2003
5741 (define-public python2-idna
5742 (package-with-python2 python-idna))
5744 (define-public python-pretend
5746 (name "python-pretend")
5751 (uri (string-append "https://pypi.python.org/packages/source/p/"
5752 "pretend/pretend-" version ".tar.gz"))
5755 "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
5756 (build-system python-build-system)
5758 `(("python-setuptools" ,python-setuptools)))
5759 (home-page "https://github.com/alex/pretend")
5760 (synopsis "Library for stubbing in Python")
5762 "Pretend is a library to make stubbing with Python easier. Stubbing is a
5763 technique for writing tests. You may hear the term mixed up with mocks,
5764 fakes, or doubles. Basically, a stub is an object that returns pre-canned
5765 responses, rather than doing any computation.")
5768 (define-public python2-pretend
5769 (package-with-python2 python-pretend))
5771 (define-public python-cryptography-vectors
5773 (name "python-cryptography-vectors")
5778 (uri (string-append "https://pypi.python.org/packages/source/c/"
5779 "cryptography-vectors/cryptography_vectors-"
5783 "0shawgpax79gvjrj0a313sll9gaqys7q1hxngn6j4k24lmz7bwki"))))
5784 (build-system python-build-system)
5786 `(("python-setuptools" ,python-setuptools)))
5787 (home-page "https://github.com/pyca/cryptography")
5788 (synopsis "Test vectors for the cryptography package.")
5790 "This package contains test vectors for the cryptography package.")
5791 ;; Distributed under either BSD-3 or ASL2.0
5792 (license (list bsd-3 asl2.0))))
5794 (define-public python2-cryptography-vectors
5795 (package-with-python2 python-cryptography-vectors))
5797 (define-public python-cryptography
5799 (name "python-cryptography")
5804 (uri (pypi-uri "cryptography" version))
5807 "0kj511z4g21fhcr649pyzpl0zzkkc7hsgxxjys6z8wwfvmvirccf"))))
5808 (build-system python-build-system)
5810 `(("openssl" ,openssl)))
5812 `(("python-cffi" ,python-cffi)
5813 ("python-six" ,python-six)
5814 ("python-pyasn1" ,python-pyasn1)
5815 ("python-idna" ,python-idna)
5816 ("python-iso8601" ,python-iso8601)))
5818 `(("python-cryptography-vectors" ,python-cryptography-vectors)
5819 ("python-hypothesis" ,python-hypothesis)
5820 ("python-setuptools" ,python-setuptools)
5821 ("python-pretend" ,python-pretend)
5822 ("python-pyasn1" ,python-pyasn1)
5823 ("python-pyasn1-modules" ,python-pyasn1-modules)
5824 ("python-pytest" ,python-pytest)))
5825 (home-page "https://github.com/pyca/cryptography")
5826 (synopsis "Cryptographic recipes and primitives for Python")
5828 "cryptography is a package which provides cryptographic recipes and
5829 primitives to Python developers. It aims to be the “cryptographic standard
5830 library” for Python. The package includes both high level recipes, and low
5831 level interfaces to common cryptographic algorithms such as symmetric ciphers,
5832 message digests and key derivation functions.")
5833 ;; Distributed under either BSD-3 or ASL2.0
5834 (license (list bsd-3 asl2.0))
5835 (properties `((python2-variant . ,(delay python2-cryptography))))))
5837 (define-public python2-cryptography
5838 (let ((crypto (package-with-python2
5839 (strip-python2-variant python-cryptography))))
5840 (package (inherit crypto)
5842 `(("python2-ipaddress" ,python2-ipaddress)
5843 ("python2-backport-ssl-match-hostname"
5844 ,python2-backport-ssl-match-hostname)
5845 ("python2-enum34" ,python2-enum34)
5846 ,@(package-propagated-inputs crypto))))))
5848 (define-public python-pyopenssl
5850 (name "python-pyopenssl")
5855 (uri (string-append "https://pypi.python.org/packages/source/p/"
5856 "pyOpenSSL/pyOpenSSL-" version ".tar.gz"))
5859 "0wnnq15rhj7fhdcd8ycwiw6r6g3w9f9lcy6cigg8226vsrq618ph"))))
5860 (build-system python-build-system)
5863 (modify-phases %standard-phases
5864 (add-after 'unpack 'fix-tests
5865 (lambda* (#:key inputs #:allow-other-keys)
5866 (substitute* "OpenSSL/test/test_ssl.py"
5867 (("client\\.connect\\(\\('verisign\\.com', 443\\)\\)")
5869 ;; FIXME: disable broken test
5870 (("test_set_tmp_ecdh") "disabled__set_tmp_ecdh"))
5871 (substitute* "OpenSSL/test/test_crypto.py"
5872 (("command = b\"openssl \"")
5873 (string-append "command = b\""
5874 (assoc-ref inputs "openssl")
5875 "/bin/openssl" " \""))
5876 ;; FIXME: disable four broken tests
5877 (("test_der") "disabled__der")
5878 (("test_digest") "disabled__digest")
5879 (("test_get_extension") "disabled__get_extension")
5880 (("test_extension_count") "disabled__extension_count"))
5883 `(("python-cryptography" ,python-cryptography)
5884 ("python-six" ,python-six)))
5886 `(("openssl" ,openssl)))
5888 `(("python-setuptools" ,python-setuptools)))
5889 (home-page "https://github.com/pyca/pyopenssl")
5890 (synopsis "Python wrapper module around the OpenSSL library")
5892 "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
5896 (define-public python2-pyopenssl
5897 (package-with-python2 python-pyopenssl))
5899 (define-public python-pip
5906 (uri (pypi-uri "pip" version))
5909 "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
5910 (build-system python-build-system)
5912 `(("python-setuptools" ,python-setuptools)
5913 ("python-virtualenv" ,python-virtualenv)
5915 ("python-mock" ,python-mock)
5916 ("python-pytest" ,python-pytest)
5917 ("python-scripttest" ,python-scripttest)))
5918 (home-page "https://pip.pypa.io/")
5920 "Package manager for Python software")
5922 "Pip is a package manager for Python software, that finds packages on the
5923 Python Package Index (PyPI).")
5924 (license license:expat)))
5926 (define-public python2-pip
5927 (package-with-python2 python-pip))
5929 (define-public python-tlsh
5931 (name "python-tlsh")
5933 (home-page "https://github.com/trendmicro/tlsh")
5936 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
5940 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
5941 (file-name (string-append name "-" version ".tar.gz"))))
5942 (build-system cmake-build-system)
5944 '(#:out-of-source? #f
5945 #:phases (modify-phases %standard-phases
5948 (lambda* (#:key outputs #:allow-other-keys)
5949 ;; Build and install the Python bindings. The underlying
5950 ;; C++ library is apparently not meant to be installed.
5951 (let ((out (assoc-ref outputs "out")))
5952 (with-directory-excursion "py_ext"
5953 (and (system* "python" "setup.py" "build")
5954 (system* "python" "setup.py" "install"
5955 (string-append "--prefix=" out))))))))))
5956 (inputs `(("python" ,python-wrapper))) ;for the bindings
5957 (synopsis "Fuzzy matching library for Python")
5959 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
5960 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
5961 value which can be used for similarity comparisons. Similar objects have
5962 similar hash values, which allows for the detection of similar objects by
5963 comparing their hash values. The byte stream should have a sufficient amount
5964 of complexity; for example, a byte stream of identical bytes will not generate
5968 (define-public python2-tlsh
5970 (inherit python-tlsh)
5971 (name "python2-tlsh")
5972 (inputs `(("python" ,python-2)))))
5974 (define-public python-libarchive-c
5976 (name "python-libarchive-c")
5980 (uri (pypi-uri "libarchive-c" version))
5983 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
5984 (build-system python-build-system)
5986 '(#:phases (modify-phases %standard-phases
5988 'build 'reference-libarchive
5989 (lambda* (#:key inputs #:allow-other-keys)
5990 ;; Retain the absolute file name of libarchive.so.
5991 (let ((libarchive (assoc-ref inputs "libarchive")))
5992 (substitute* "libarchive/ffi.py"
5993 (("find_library\\('archive'\\)")
5994 (string-append "'" libarchive
5995 "/lib/libarchive.so'"))))
5997 ;; Do not make a compressed egg (see
5998 ;; <http://bugs.gnu.org/20765>).
5999 (let ((port (open-file "setup.cfg" "a")))
6000 (display "\n[easy_install]\nzip_ok = 0\n"
6005 `(("python-setuptools" ,python-setuptools)
6006 ("libarchive" ,libarchive)))
6007 (home-page "https://github.com/Changaco/python-libarchive-c")
6008 (synopsis "Python interface to libarchive")
6010 "This package provides Python bindings to libarchive, a C library to
6011 access possibly compressed archives in many different formats. It uses
6012 Python's @code{ctypes} foreign function interface (FFI).")
6013 (license lgpl2.0+)))
6015 (define-public python2-libarchive-c
6016 (package-with-python2 python-libarchive-c))
6018 (define-public python-file
6021 (name "python-file")
6022 (build-system python-build-system)
6024 '(#:tests? #f ;no tests
6025 #:phases (modify-phases %standard-phases
6026 (add-before 'build 'change-directory
6030 (add-before 'build 'set-library-file-name
6031 (lambda* (#:key inputs #:allow-other-keys)
6032 (let ((file (assoc-ref inputs "file")))
6033 (substitute* "magic.py"
6034 (("find_library\\('magic'\\)")
6035 (string-append "'" file "/lib/libmagic.so'")))
6037 (inputs `(("file" ,file)))
6038 (self-native-input? #f)
6039 (synopsis "Python bindings to the libmagic file type guesser")))
6041 (define-public python2-file
6042 (package-with-python2 python-file))
6044 (define-public python-debian
6046 (name "python-debian")
6052 "https://pypi.python.org/packages/source/p/python-debian/python-debian-"
6056 "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
6057 (build-system python-build-system)
6059 `(("python-six" ,python-six)))
6061 `(("python-setuptools" ,python-setuptools)))
6062 (home-page "http://packages.debian.org/sid/python-debian")
6063 (synopsis "Debian package related modules")
6065 ;; XXX: Use @enumerate instead of @itemize to work around
6066 ;; <http://bugs.gnu.org/21772>.
6067 "This package provides Python modules that abstract many formats of
6068 Debian-related files, such as:
6071 @item Debtags information;
6072 @item @file{debian/changelog} files;
6073 @item packages files, pdiffs;
6074 @item control files of single or multiple RFC822-style paragraphs---e.g.
6075 @file{debian/control}, @file{.changes}, @file{.dsc};
6076 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6077 contained files and meta-information.
6080 ;; Modules are either GPLv2+ or GPLv3+.
6083 (define-public python2-debian
6084 (package-with-python2 python-debian))
6086 (define-public python-chardet
6088 (name "python-chardet")
6094 "https://pypi.python.org/packages/source/c/chardet/chardet-"
6099 "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
6100 (build-system python-build-system)
6102 `(("python-setuptools" ,python-setuptools)))
6103 (home-page "https://github.com/chardet/chardet")
6104 (synopsis "Universal encoding detector for Python 2 and 3")
6106 "This package provides @code{chardet}, a Python module that can
6107 automatically detect a wide range of file encodings.")
6108 (license lgpl2.1+)))
6110 (define-public python2-chardet
6111 (package-with-python2 python-chardet))
6113 (define-public python-docopt
6115 (name "python-docopt")
6120 ;; The release on PyPI does not include tests.
6122 "https://github.com/docopt/docopt/archive/"
6124 (file-name (string-append name "-" version ".tar.gz"))
6127 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
6128 (build-system python-build-system)
6130 `(("python-pytest" ,python-pytest)
6131 ("python-setuptools" ,python-setuptools)))
6133 `(#:phases (alist-replace
6135 (lambda _ (zero? (system* "py.test")))
6137 (home-page "http://docopt.org")
6138 (synopsis "Command-line interface description language for Python")
6139 (description "This library allows the user to define a command-line
6140 interface from a program's help message rather than specifying it
6141 programatically with command-line parsers like @code{getopt} and
6143 (license license:expat)))
6145 (define-public python2-docopt
6146 (package-with-python2 python-docopt))
6148 (define-public python-zope-event
6150 (name "python-zope-event")
6155 (uri (string-append "https://pypi.python.org/packages/source/z"
6156 "/zope.event/zope.event-" version ".tar.gz"))
6159 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
6160 (build-system python-build-system)
6162 `(("python-setuptools" ,python-setuptools)))
6163 (home-page "http://pypi.python.org/pypi/zope.event")
6164 (synopsis "Event publishing system for Python")
6165 (description "Zope.event provides an event publishing API, intended for
6166 use by applications which are unaware of any subscribers to their events. It
6167 is a simple event-dispatching system on which more sophisticated event
6168 dispatching systems can be built.")
6171 (define-public python2-zope-event
6172 (package-with-python2 python-zope-event))
6174 (define-public python-zope-interface
6176 (name "python-zope-interface")
6181 (uri (string-append "https://pypi.python.org/packages/source/z"
6182 "/zope.interface/zope.interface-" version ".tar.gz"))
6185 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
6186 (build-system python-build-system)
6188 `(("python-zope-event" ,python-zope-event)))
6189 (home-page "https://github.com/zopefoundation/zope.interface")
6190 (synopsis "Python implementation of the \"design by contract\"
6192 (description "Zope.interface provides an implementation of \"object
6193 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
6194 conforming to a given API or contract.")
6197 (define-public python2-zope-interface
6198 (package-with-python2 python-zope-interface))
6200 (define-public python-zope-exceptions
6202 (name "python-zope-exceptions")
6207 (uri (string-append "https://pypi.python.org/packages/source/z"
6208 "/zope.exceptions/zope.exceptions-"
6212 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
6213 (build-system python-build-system)
6215 '(#:tests? #f)) ; circular dependency with zope.testrunner
6217 `(("python-zope-interface" ,python-zope-interface)))
6218 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
6219 (synopsis "Zope exceptions")
6220 (description "Zope.exceptions provides general-purpose exception types
6221 that have uses outside of the Zope framework.")
6224 (define-public python2-zope-exceptions
6225 (package-with-python2 python-zope-exceptions))
6227 (define-public python-zope-testing
6229 (name "python-zope-testing")
6234 (uri (string-append "https://pypi.python.org/packages/source/z"
6235 "/zope.testing/zope.testing-" version ".tar.gz"))
6238 "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))))
6239 (build-system python-build-system)
6241 `(("python-zope-exceptions" ,python-zope-exceptions)))
6243 `(("python-zope-interface" ,python-zope-interface)))
6244 (home-page "http://pypi.python.org/pypi/zope.testing")
6245 (synopsis "Zope testing helpers")
6246 (description "Zope.testing provides a number of testing utilities for HTML
6247 forms, HTTP servers, regular expressions, and more.")
6250 (define-public python2-zope-testing
6251 (package-with-python2 python-zope-testing))
6253 (define-public python-zope-testrunner
6255 (name "python-zope-testrunner")
6260 (uri (string-append "https://pypi.python.org/packages/source/z"
6261 "/zope.testrunner/zope.testrunner-"
6265 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
6266 (build-system python-build-system)
6268 `(("python-six" ,python-six)
6269 ("python-zope-exceptions" ,python-zope-exceptions)
6270 ("python-zope-testing" ,python-zope-testing)
6273 `(("python-zope-interface" ,python-zope-interface)))
6274 (home-page "http://pypi.python.org/pypi/zope.testrunner")
6275 (synopsis "Zope testrunner script")
6276 (description "Zope.testrunner provides a script for running Python
6280 (define-public python2-zope-testrunner
6281 (let ((base (package-with-python2 python-zope-testrunner)))
6285 (append (package-native-inputs base)
6286 `(("python2-subunit" ,python2-subunit)
6287 ("python2-mimeparse" ,python2-mimeparse)))))))
6289 (define-public python-zope-i18nmessageid
6291 (name "python-zope-i18nmessageid")
6297 "https://pypi.python.org/packages/source/z"
6298 "/zope.i18nmessageid/zope.i18nmessageid-"
6302 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
6303 (build-system python-build-system)
6305 `(("python-setuptools" ,python-setuptools)))
6306 (home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
6307 (synopsis "Message identifiers for internationalization")
6308 (description "Zope.i18nmessageid provides facilities for declaring
6309 internationalized messages within program source text.")
6312 (define-public python2-zope-i18nmessageid
6313 (package-with-python2 python-zope-i18nmessageid))
6315 (define-public python-zope-schema
6317 (name "python-zope-schema")
6322 (uri (string-append "https://pypi.python.org/packages/source/z"
6323 "/zope.schema/zope.schema-" version ".tar.gz"))
6326 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
6327 (build-system python-build-system)
6329 `(("python-zope-event" ,python-zope-event)
6330 ("python-zope-interface" ,python-zope-interface)))
6332 `(("python-zope-testing" ,python-zope-testing)))
6333 (home-page "http://pypi.python.org/pypi/zope.schema")
6334 (synopsis "Zope data schemas")
6335 (description "Zope.scheme provides extensions to zope.interface for
6336 defining data schemas.")
6339 (define-public python2-zope-schema
6340 (package-with-python2 python-zope-schema))
6342 (define-public python-zope-configuration
6344 (name "python-zope-configuration")
6348 (uri (string-append "https://pypi.python.org/packages/source/z"
6349 "/zope.configuration/zope.configuration-"
6353 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
6354 (build-system python-build-system)
6356 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6357 ("python-zope-schema" ,python-zope-schema)))
6358 (home-page "http://pypi.python.org/pypi/zope.configuration")
6359 (synopsis "Zope Configuration Markup Language")
6360 (description "Zope.configuration implements ZCML, the Zope Configuration
6364 (define-public python2-zope-configuration
6365 (package-with-python2 python-zope-configuration))
6367 (define-public python-zope-proxy
6369 (name "python-zope-proxy")
6374 (uri (string-append "https://pypi.python.org/packages/source/z"
6375 "/zope.proxy/zope.proxy-" version ".tar.gz"))
6378 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
6379 (build-system python-build-system)
6381 `(("python-zope-interface" ,python-zope-interface)))
6382 (home-page "http://pypi.python.org/pypi/zope.proxy")
6383 (synopsis "Generic, transparent proxies")
6384 (description "Zope.proxy provides generic, transparent proxies for Python.
6385 Proxies are special objects which serve as mostly-transparent wrappers around
6386 another object, intervening in the apparent behavior of the wrapped object
6387 only when necessary to apply the policy (e.g., access checking, location
6388 brokering, etc.) for which the proxy is responsible.")
6391 (define-public python2-zope-proxy
6392 (package-with-python2 python-zope-proxy))
6394 (define-public python-zope-location
6396 (name "python-zope-location")
6401 (uri (string-append "https://pypi.python.org/packages/source/z"
6402 "/zope.location/zope.location-" version ".tar.gz"))
6405 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
6406 (build-system python-build-system)
6408 `(("python-zope-proxy" ,python-zope-proxy)
6409 ("python-zope-schema" ,python-zope-schema)))
6410 (home-page "http://pypi.python.org/pypi/zope.location/")
6411 (synopsis "Zope location library")
6412 (description "Zope.location implements the concept of \"locations\" in
6413 Zope3, which are are special objects that have a structural location.")
6416 (define-public python2-zope-location
6417 (package-with-python2 python-zope-location))
6419 (define-public python-zope-security
6421 (name "python-zope-security")
6426 (uri (string-append "https://pypi.python.org/packages/source/z"
6427 "/zope.security/zope.security-" version ".tar.gz"))
6430 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
6431 (build-system python-build-system)
6433 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6434 ("python-zope-component" ,python-zope-component)
6435 ("python-zope-location" ,python-zope-location)
6436 ("python-zope-proxy" ,python-zope-proxy)
6437 ("python-zope-schema" ,python-zope-schema)
6438 ("python-zope-testrunner" ,python-zope-testrunner)
6439 ("python-zope-testing" ,python-zope-testing)))
6440 (home-page "http://pypi.python.org/pypi/zope.security")
6441 (synopsis "Zope security framework")
6442 (description "Zope.security provides a generic mechanism to implement
6443 security policies on Python objects.")
6446 (define-public python2-zope-security
6447 (let ((zope-security (package-with-python2 python-zope-security)))
6448 (package (inherit zope-security)
6450 `(("python2-zope-testrunner" ,python2-zope-testrunner)
6452 "python-zope-testrunner"
6453 (package-propagated-inputs zope-security)))))))
6455 (define-public python-zope-component
6457 (name "python-zope-component")
6462 (uri (string-append "https://pypi.python.org/packages/source/z"
6463 "/zope.component/zope.component-" version ".tar.gz"))
6466 "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
6467 (build-system python-build-system)
6469 ;; Skip tests due to circular dependency with python-zope-security.
6472 `(("python-zope-testing" ,python-zope-testing)))
6474 `(("python-zope-event" ,python-zope-event)
6475 ("python-zope-interface" ,python-zope-interface)
6476 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6477 ("python-zope-configuration" ,python-zope-configuration)))
6478 (home-page "https://github.com/zopefoundation/zope.component")
6479 (synopsis "Zope Component Architecture")
6480 (description "Zope.component represents the core of the Zope Component
6481 Architecture. Together with the zope.interface package, it provides
6482 facilities for defining, registering and looking up components.")
6485 (define-public python2-zope-component
6486 (package-with-python2 python-zope-component))
6488 (define-public python2-pythondialog
6490 (name "python2-pythondialog")
6495 (uri (string-append "https://pypi.python.org/packages/source/p/"
6496 "python2-pythondialog/python2-pythondialog-"
6500 "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry"))))
6501 (build-system python-build-system)
6504 (modify-phases %standard-phases
6505 (add-after 'unpack 'patch-path
6506 (lambda* (#:key inputs #:allow-other-keys)
6507 (let* ((dialog (assoc-ref inputs "dialog")))
6508 ;; Since this library really wants to grovel the search path, we
6509 ;; must hardcode dialog's store path into it.
6510 (substitute* "dialog.py"
6511 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
6512 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
6515 #:tests? #f)) ; no test suite
6517 `(("dialog" ,dialog)))
6518 (home-page "http://pythondialog.sourceforge.net/")
6519 (synopsis "Python interface to the UNIX dialog utility")
6520 (description "A Python wrapper for the dialog utility. Its purpose is to
6521 provide an easy to use, pythonic and comprehensive Python interface to dialog.
6522 This allows one to make simple text-mode user interfaces on Unix-like systems")
6525 (define-public python-pyrfc3339
6527 (name "python-pyrfc3339")
6532 (uri (pypi-uri "pyRFC3339" version))
6535 "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
6536 (build-system python-build-system)
6538 `(("python-pytz" ,python-pytz)))
6540 `(("python-nose" ,python-nose)
6541 ("python-setuptools" ,python-setuptools)))
6542 (home-page "https://github.com/kurtraschke/pyRFC3339")
6543 (synopsis "Python timestamp library")
6544 (description "Python library for generating and parsing RFC 3339-compliant
6546 (license license:expat)))
6548 (define-public python2-pyrfc3339
6549 (package-with-python2 python-pyrfc3339))
6551 (define-public python-werkzeug
6553 (name "python-werkzeug")
6558 (uri (string-append "https://pypi.python.org/packages/source/W/Werkzeug"
6559 "/Werkzeug-" version ".tar.gz"))
6560 (file-name (string-append name "-" version ".tar.gz"))
6563 "1gzwn1lkl90f3l1nzzxr7vjhm21qk8f837i8rvny5a209fcrhkzb"))))
6564 (build-system python-build-system)
6566 `(("python-pytest" ,python-pytest)))
6567 (home-page "http://werkzeug.pocoo.org/")
6568 (synopsis "Utilities for WSGI applications")
6569 (description "One of the most advanced WSGI utility modules. It includes a
6570 powerful debugger, full-featured request and response objects, HTTP utilities to
6571 handle entity tags, cache control headers, HTTP dates, cookie handling, file
6572 uploads, a powerful URL routing system and a bunch of community-contributed
6576 (define-public python2-werkzeug
6577 (package-with-python2 python-werkzeug))
6579 (define-public python-configobj
6581 (name "python-configobj")
6586 "https://pypi.python.org/packages/source/c/configobj/"
6587 "configobj-" version ".tar.gz"))
6590 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
6591 ;; Patch setup.py so it looks for python-setuptools, which is
6592 ;; required to parse the keyword 'install_requires' in setup.py.
6593 (patches (list (search-patch "python-configobj-setuptools.patch")))))
6594 (build-system python-build-system)
6596 `(("python-setuptools" ,python-setuptools)
6597 ("python-six" ,python-six)))
6598 (synopsis "Config file reading, writing and validation")
6599 (description "ConfigObj is a simple but powerful config file reader and
6600 writer: an ini file round tripper. Its main feature is that it is very easy to
6601 use, with a straightforward programmer’s interface and a simple syntax for
6603 (home-page "https://github.com/DiffSK/configobj")
6606 (define-public python2-configobj
6607 (package-with-python2 python-configobj))
6609 (define-public python-configargparse
6611 (name "python-configargparse")
6616 "https://pypi.python.org/packages/source/C/ConfigArgParse/"
6617 "ConfigArgParse-" version ".tar.gz"))
6620 "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
6621 (build-system python-build-system)
6623 ;; FIXME: Bug in test suite filed upstream:
6624 ;; https://github.com/bw2/ConfigArgParse/issues/32
6626 (synopsis "Replacement for argparse")
6627 (description "A drop-in replacement for argparse that allows options to also
6628 be set via config files and/or environment variables.")
6629 (home-page "https://github.com/bw2/ConfigArgParse")
6630 (license license:expat)))
6632 (define-public python2-configargparse
6633 (package-with-python2 python-configargparse))
6635 (define-public python-ndg-httpsclient
6637 (name "python-ndg-httpsclient")
6642 "https://pypi.python.org/packages/source/n/ndg-httpsclient/"
6643 "ndg_httpsclient-" version ".tar.gz"))
6646 "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
6647 (build-system python-build-system)
6649 `(("python-pyopenssl" ,python-pyopenssl)))
6650 (synopsis "HTTPS support for Python's httplib and urllib2")
6651 (description "This is a HTTPS client implementation for httplib and urllib2
6652 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
6653 over the default provided with Python and importantly enables full verification
6655 (home-page "https://github.com/cedadev/ndg_httpsclient/")
6658 ;; python2-openssl requires special care, so package-with-python2 is
6660 (define-public python2-ndg-httpsclient
6661 (package (inherit python-ndg-httpsclient)
6662 (name "python2-ndg-httpsclient")
6663 (arguments `(#:python ,python-2))
6665 `(("python2-pyopenssl" ,python2-pyopenssl)))))
6667 (define-public python-contextlib2
6669 (name "python-contextlib2")
6674 (uri (pypi-uri "contextlib2" version))
6677 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
6678 (build-system python-build-system)
6681 (modify-phases %standard-phases
6685 "python" "test_contextlib2.py" "-v")))))))
6686 (home-page "http://contextlib2.readthedocs.org/")
6687 (synopsis "Tools for decorators and context managers")
6688 (description "This module is primarily a backport of the Python
6689 3.2 contextlib to earlier Python versions. Like contextlib, it
6690 provides utilities for common tasks involving decorators and context
6691 managers. It also contains additional features that are not part of
6692 the standard library.")
6695 (define-public python2-contextlib2
6696 (package-with-python2 python-contextlib2))
6698 (define-public python-texttable
6700 (name "python-texttable")
6705 (uri (pypi-uri "texttable" version))
6708 "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
6709 (build-system python-build-system)
6710 (arguments '(#:tests? #f)) ; no tests
6711 (home-page "https://github.com/foutaise/texttable/")
6712 (synopsis "Python module for creating simple ASCII tables")
6713 (description "Texttable is a Python module for creating simple ASCII
6715 (license lgpl2.1+)))
6717 (define-public python2-texttable
6718 (package-with-python2 python-texttable))
6720 (define-public python-websocket-client
6722 (name "python-websocket-client")
6727 (uri (string-append "https://pypi.python.org/packages/source/w"
6728 "/websocket-client/websocket_client-"
6732 "1prdx6d49f1cff17kzj15bnz09palfdgc1m5dkq9jd4mr90n4ak8"))))
6733 (build-system python-build-system)
6735 `(("python-six" ,python-six))) ; for tests
6737 `(("python-setuptools" ,python-setuptools)))
6738 (home-page "https://github.com/liris/websocket-client")
6739 (synopsis "WebSocket client for Python")
6740 (description "The Websocket-client module provides the low level APIs for
6741 WebSocket usage in Python programs.")
6742 (license lgpl2.1+)))
6744 (define-public python2-websocket-client
6745 (package-with-python2 python-websocket-client))
6747 (define-public python-atomicwrites
6749 (name "python-atomicwrites")
6753 (uri (pypi-uri "atomicwrites" version))
6756 "08s05h211r07vs66r4din3swrbzb344vli041fihpg34q3lcxpvw"))))
6757 (build-system python-build-system)
6758 (synopsis "Atomic file writes in Python")
6759 (description "Library for atomic file writes using platform dependent tools
6760 for atomic filesystem operations.")
6761 (home-page "https://github.com/untitaker/python-atomicwrites")
6762 (license license:expat)
6763 (properties `((python2-variant . ,(delay python2-atomicwrites))))))
6765 (define-public python2-atomicwrites
6766 (package (inherit (package-with-python2
6767 (strip-python2-variant python-atomicwrites)))
6769 `(("python2-setuptools" ,python2-setuptools)))))
6771 (define-public python-requests-toolbelt
6773 (name "python-requests-toolbelt")
6777 (uri (pypi-uri "requests-toolbelt" version))
6780 "07slish560haspn0hpwgy2izhk2snqq06s6acp8xzmhhz079qknc"))))
6781 (build-system python-build-system)
6783 `(("python-requests" ,python-requests)))
6784 (synopsis "Extensions to python-requests")
6785 (description "This is a toolbelt of useful classes and functions to be used
6786 with python-requests.")
6787 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
6790 (define-public python-click-threading
6792 (name "python-click-threading")
6796 (uri (pypi-uri "click-threading" version))
6799 "0jmrv4334lfxa2ss53c06dafdwqbk1pb3ihd26izn5igw1bm8145"))))
6800 (build-system python-build-system)
6802 `(("python-click" ,python-click)))
6803 (synopsis "Utilities for multithreading in Click")
6804 (description "This package provides utilities for multithreading in Click
6806 (home-page "https://github.com/click-contrib/click-threading")
6807 (license license:expat)))
6809 (define-public python-click-log
6811 (name "python-click-log")
6815 (uri (pypi-uri "click-log" version))
6818 "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
6819 (build-system python-build-system)
6821 `(("python-click" ,python-click)))
6822 (synopsis "Logging for click applications")
6823 (description "This package provides a Python library for logging Click
6825 (home-page "https://github.com/click-contrib/click-log")
6826 (license license:expat)))
6828 (define-public python-apipkg
6830 (name "python-apipkg")
6834 (uri (pypi-uri "apipkg" version))
6837 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
6838 (build-system python-build-system)
6840 `(("python-pytest" ,python-pytest)))
6841 (synopsis "Namespace control and lazy-import mechanism")
6842 (description "With apipkg you can control the exported namespace of a Python
6843 package and greatly reduce the number of imports for your users. It is a small
6844 pure Python module that works on virtually all Python versions.")
6845 (home-page "https://bitbucket.org/hpk42/apipkg")
6846 (license license:expat)
6847 (properties `((python2-variant . ,(delay python2-apipkg))))))
6849 (define-public python2-apipkg
6851 (inherit (package-with-python2
6852 (strip-python2-variant python-apipkg)))
6854 `(("python2-setuptools" ,python2-setuptools)))))
6856 (define-public python-execnet
6858 (name "python-execnet")
6862 (uri (pypi-uri "execnet" version))
6865 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
6866 (build-system python-build-system)
6868 `(("python-setuptools-scm" ,python-setuptools-scm)))
6870 `(("python-apipkg" ,python-apipkg)))
6871 (synopsis "Rapid multi-Python deployment")
6872 (description "Execnet provides a share-nothing model with
6873 channel-send/receive communication for distributing execution across many
6874 Python interpreters across version, platform and network barriers. It has a
6875 minimal and fast API targetting the following uses:
6877 @item distribute tasks to (many) local or remote CPUs
6878 @item write and deploy hybrid multi-process applications
6879 @item write scripts to administer multiple environments
6881 (home-page "http://codespeak.net/execnet/")
6882 (license license:expat)
6883 (properties `((python2-variant . ,(delay python2-execnet))))))
6885 (define-public python2-execnet
6886 (let ((execnet (package-with-python2
6887 (strip-python2-variant python-execnet))))
6891 `(("python2-setuptools" ,python2-setuptools)
6892 ,@(package-native-inputs execnet))))))
6894 ;;; The software provided by this package was integrated into pytest 2.8.
6895 (define-public python-pytest-cache
6897 (name "python-pytest-cache")
6901 (uri (pypi-uri "pytest-cache" version))
6904 "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
6905 (build-system python-build-system)
6907 `(("python-execnet" ,python-execnet)))
6908 (synopsis "Py.test plugin with mechanisms for caching across test runs")
6909 (description "The pytest-cache plugin provides tools to rerun failures from
6910 the last py.test invocation.")
6911 (home-page "https://bitbucket.org/hpk42/pytest-cache/")
6912 (license license:expat)))
6914 (define-public python-pytest-localserver
6916 (name "python-pytest-localserver")
6920 (uri (pypi-uri "pytest-localserver" version))
6923 "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
6924 (build-system python-build-system)
6926 `(#:phases (modify-phases %standard-phases
6929 (zero? (system* "py.test" "--genscript=runtests.py"))
6930 (zero? (system* "py.test")))))))
6932 `(("unzip" ,unzip)))
6934 `(("python-pytest" ,python-pytest)
6935 ("python-requests" ,python-requests)
6936 ("python-six" ,python-six)
6937 ("python-werkzeug" ,python-werkzeug)))
6938 (synopsis "Py.test plugin to test server connections locally")
6939 (description "Pytest-localserver is a plugin for the pytest testing
6940 framework which enables you to test server connections locally.")
6941 (home-page "https://pypi.python.org/pypi/pytest-localserver")
6942 (license license:expat)))
6944 (define-public python-wsgi-intercept
6946 (name "python-wsgi-intercept")
6950 (uri (pypi-uri "wsgi_intercept" version))
6953 "14ajy415ch5d0dnspg4b592p66wlgzah7ay218flp13517fp49zl"))))
6954 (build-system python-build-system)
6956 `(("python-pytest" ,python-pytest)
6957 ("python-six" ,python-six)))
6959 `(("python-httplib2" ,python-httplib2)
6960 ("python-requests" ,python-requests)))
6961 (synopsis "Puts a WSGI application in place of a real URI for testing")
6962 (description "Wsgi_intercept installs a WSGI application in place of a real
6963 URI for testing. Testing a WSGI application normally involves starting a
6964 server at a local host and port, then pointing your test code to that address.
6965 Instead, this library lets you intercept calls to any specific host/port
6966 combination and redirect them into a WSGI application importable by your test
6967 program. Thus, you can avoid spawning multiple processes or threads to test
6969 (home-page "https://github.com/cdent/wsgi-intercept")
6970 (license license:expat)))
6972 (define-public python-pytest-xprocess
6974 (name "python-pytest-xprocess")
6978 (uri (pypi-uri "pytest-xprocess" version))
6981 "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
6982 (build-system python-build-system)
6984 `(("python-pytest" ,python-pytest)
6985 ("python-pytest-cache" ,python-pytest-cache)
6986 ("python-psutil" ,python-psutil)))
6987 (synopsis "Pytest plugin to manage external processes across test runs")
6988 (description "Pytest-xprocess is an experimental py.test plugin for managing
6989 processes across test runs.")
6990 (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
6991 (license license:expat)))
6993 (define-public python-icalendar
6995 (name "python-icalendar")
6999 (uri (pypi-uri "icalendar" version))
7002 "0fhrczdj3jxy5bvswphp3vys7vwv5c9bpwg7asykqwa3z6253q6q"))))
7003 (build-system python-build-system)
7005 `(("python-dateutil-2" ,python-dateutil-2)
7006 ("python-pytz" ,python-pytz)))
7007 (synopsis "Python library for parsing iCalendar files")
7008 (description "The icalendar package is a parser/generator of iCalendar
7009 files for use with Python.")
7010 (home-page "https://github.com/collective/icalendar")
7013 (define-public python-sphinxcontrib-newsfeed
7015 (name "python-sphinxcontrib-newsfeed")
7019 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
7022 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
7023 (build-system python-build-system)
7025 `(("python-docutils" ,python-docutils)
7026 ("python-sphinx" ,python-sphinx)))
7027 (synopsis "News Feed extension for Sphinx")
7028 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
7029 Blog, News or Announcements section to a Sphinx website.")
7030 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
7033 (define-public python-args
7035 (name "python-args")
7039 (uri (pypi-uri "args" version))
7042 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
7043 (build-system python-build-system)
7045 `(("python-setuptools" ,python-setuptools)))
7046 (home-page "https://github.com/kennethreitz/args")
7047 (synopsis "Command-line argument parser")
7049 "This library provides a Python module to parse command-line arguments.")
7052 (define-public python2-args
7053 (package-with-python2 python-args))
7055 (define-public python-clint
7057 (name "python-clint")
7061 (uri (pypi-uri "clint" version))
7064 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
7065 (build-system python-build-system)
7067 `(("python-args" ,python-args)
7068 ("python-setuptools" ,python-setuptools)))
7069 (home-page "https://github.com/kennethreitz/clint")
7070 (synopsis "Command-line interface tools")
7072 "Clint is a Python module filled with a set of tools for developing
7073 command-line applications, including tools for colored and indented
7074 output, progress bar display, and pipes.")
7077 (define-public python2-clint
7078 (package-with-python2 python-clint))
7080 (define-public python-astor
7082 (name "python-astor")
7086 (uri (pypi-uri "astor" version))
7089 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
7090 (build-system python-build-system)
7092 `(("python-setuptools" ,python-setuptools)))
7093 (home-page "https://github.com/berkerpeksag/astor")
7094 (synopsis "Read and write Python ASTs")
7096 "Astor is designed to allow easy manipulation of Python source via the
7097 Abstract Syntax Tree.")
7100 (define-public python2-astor
7101 (package-with-python2 python-astor))
7103 (define-public python-rply
7105 (name "python-rply")
7109 (uri (pypi-uri "rply" version))
7112 "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
7113 (build-system python-build-system)
7115 `(("python-appdirs" ,python-appdirs)
7116 ("python-setuptools" ,python-setuptools)))
7117 (home-page "https://github.com/alex/rply")
7118 (synopsis "Parser generator for Python")
7120 "This package provides a pure Python based parser generator, that also
7121 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
7122 with a new public API, and RPython support.")
7125 (define-public python2-rply
7126 (package-with-python2 python-rply))
7128 (define-public python-hy
7134 (uri (pypi-uri "hy" version))
7137 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
7138 (build-system python-build-system)
7140 `(("python-astor" ,python-astor)
7141 ("python-clint" ,python-clint)
7142 ("python-rply" ,python-rply)
7143 ("python-setuptools" ,python-setuptools)))
7144 (home-page "http://hylang.org/")
7145 (synopsis "Lisp frontend to Python")
7147 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
7148 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
7149 Python at your fingertips, in Lisp form.")
7150 (license license:expat)))
7152 (define-public python2-hy
7153 (package-with-python2 python-hy))
7155 (define-public python-rauth
7157 (name "python-rauth")
7162 (uri (pypi-uri "rauth" version))
7165 "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
7166 (build-system python-build-system)
7168 `(#:test-target "check"))
7170 `(("python-setuptools" ,python-setuptools)))
7172 `(("python-requests" ,python-requests)))
7173 (home-page "https://github.com/litl/rauth")
7174 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
7176 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
7177 provides service wrappers for convenient connection initialization and
7178 authenticated session objects providing things like keep-alive.")
7179 (license license:expat)))
7181 (define-public python2-rauth
7182 (let ((rauth (package-with-python2 python-rauth)))
7183 (package (inherit rauth)
7184 (propagated-inputs `(("python2-requests" ,python2-requests)))
7186 `(("python2-unittest2" ,python2-unittest2)
7187 ,@(package-native-inputs rauth))))))
7189 (define-public python2-functools32
7191 (name "python2-functools32")
7196 (uri (pypi-uri "functools32" version))
7199 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
7200 (build-system python-build-system)
7202 `(#:python ,python-2
7203 #:tests? #f)) ; no test target
7205 `(("python2-setuptools" ,python2-setuptools)))
7206 (home-page "https://github.com/MiCHiLU/python-functools32")
7208 "Backport of the functools module from Python 3.2.3")
7210 "This package is a backport of the @code{functools} module from Python
7211 3.2.3 for use with older versions of Python and PyPy.")
7212 (license license:expat)))
7214 (define-public python-futures
7216 (name "python-futures")
7221 (uri (pypi-uri "futures" version))
7224 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
7225 (build-system python-build-system)
7227 `(("python-setuptools" ,python-setuptools)))
7228 (home-page "https://github.com/agronholm/pythonfutures")
7230 "Backport of the concurrent.futures package from Python 3.2")
7232 "The concurrent.futures module provides a high-level interface for
7233 asynchronously executing callables. This package backports the
7234 concurrent.futures package from Python 3.2")
7237 (define-public python2-futures
7238 (package-with-python2 python-futures))
7240 (define-public python-urllib3
7242 (name "python-urllib3")
7247 (uri (pypi-uri "urllib3" version))
7250 "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf"))))
7251 (build-system python-build-system)
7252 (arguments `(#:tests? #f))
7254 `(("python-setuptools" ,python-setuptools)
7255 ;; some packages for tests
7256 ("python-nose" ,python-nose)
7257 ("python-mock" ,python-mock)
7258 ("python-tornado" ,python-tornado)))
7260 `(;; packages for https security
7261 ("python-certifi" ,python-certifi)
7262 ("python-ndg-httpsclient" ,python-ndg-httpsclient)
7263 ("python-pyasn1" ,python-pyasn1)
7264 ("python-pyopenssl" ,python-pyopenssl)))
7265 (home-page "http://urllib3.readthedocs.org/")
7266 (synopsis "HTTP library with thread-safe connection pooling")
7268 "Urllib3 supports features left out of urllib and urllib2 libraries. It
7269 can reuse the same socket connection for multiple requests, it can POST files,
7270 supports url redirection and retries, and also gzip and deflate decoding.")
7271 (license license:expat)))
7273 (define-public python2-urllib3
7274 (package-with-python2 python-urllib3))
7276 (define-public python-colorama
7278 (name "python-colorama")
7283 (uri (pypi-uri "colorama" version))
7286 "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
7287 (build-system python-build-system)
7289 `(("python-setuptools" ,python-setuptools)))
7290 (synopsis "colored terminal text rendering for Python")
7291 (description "Colorama is a Python library for rendering colored terminal
7293 (home-page "https://pypi.python.org/pypi/colorama")
7296 (define-public python2-colorama
7297 (package-with-python2 python-colorama))
7299 (define-public python-rsa
7306 (uri (pypi-uri "rsa" version))
7309 "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh"))))
7310 (build-system python-build-system)
7312 `(("python-pyasn1" ,python-pyasn1)
7313 ("python-setuptools" ,python-setuptools)))
7314 (synopsis "Pure-Python RSA implementation")
7315 (description "Python-RSA is a pure-Python RSA implementation. It supports
7316 encryption and decryption, signing and verifying signatures, and key
7317 generation according to PKCS#1 version 1.5. It can be used as a Python
7318 library as well as on the command line.")
7319 (home-page "http://stuvel.eu/rsa")
7322 (define-public python2-rsa
7323 (package-with-python2 python-rsa))
7325 (define-public python-pluggy
7327 (name "python-pluggy")
7332 (uri (pypi-uri "pluggy" version))
7335 "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
7336 (build-system python-build-system)
7338 `(("python-setuptools" ,python-setuptools)))
7339 (synopsis "Plugin and hook calling mechanism for Python")
7340 (description "Pluggy is an extraction of the plugin manager as used by
7341 Pytest but stripped of Pytest specific details.")
7342 (home-page "https://pypi.python.org/pypi/pluggy")
7343 (license license:expat)))
7345 (define-public python2-pluggy
7346 (package-with-python2 python-pluggy))
7348 (define-public python-tox
7355 (uri (pypi-uri "tox" version))
7358 "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
7359 (build-system python-build-system)
7361 ;; FIXME: Tests require a newer version of pytest, but upgrading our
7362 ;; pytest breaks other packages.
7365 `(("python-setuptools" ,python-setuptools)
7366 ("python-pluggy" ,python-pluggy)
7367 ("python-py" ,python-py)
7368 ("python-virtualenv" ,python-virtualenv)
7369 ("python-pytest" ,python-pytest)))
7370 (home-page "http://tox.testrun.org/")
7371 (synopsis "Virtualenv-based automation of test activities")
7372 (description "Tox is a generic virtualenv management and test command line
7373 tool. It can be used to check that a package installs correctly with
7374 different Python versions and interpreters, or run tests in each type of
7375 supported environment, or act as a frontend to continuous integration
7377 (license license:expat)))
7379 (define-public python2-tox
7380 (package-with-python2 python-tox))
7382 (define-public python-jmespath
7384 (name "python-jmespath")
7389 (uri (pypi-uri "jmespath" version))
7392 "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
7393 (build-system python-build-system)
7395 `(("python-setuptools" ,python-setuptools)))
7396 (synopsis "JSON Matching Expressions")
7397 (description "JMESPath (pronounced “james path”) is a Python library that
7398 allows one to declaratively specify how to extract elements from a JSON
7400 (home-page "https://github.com/jmespath/jmespath.py")
7401 (license license:expat)))
7403 (define-public python2-jmespath
7404 (package-with-python2 python-jmespath))
7406 (define-public python-botocore
7408 (name "python-botocore")
7413 (uri (pypi-uri "botocore" version))
7416 "08vpvdixx1c1lfv6vzjig68bpiir7wfyhzf49ysxgvhbprg5ra0w"))))
7417 (build-system python-build-system)
7419 `(("python-dateutil" ,python-dateutil-2)
7420 ("python-docutils" ,python-docutils)
7421 ("python-mock" ,python-mock)
7422 ("python-nose" ,python-nose)
7423 ("python-setuptools" ,python-setuptools)
7424 ("python-tox" ,python-tox)
7425 ("python-wheel" ,python-wheel)
7426 ("python-jmespath" ,python-jmespath)))
7427 (home-page "https://github.com/boto/botocore")
7428 (synopsis "Low-level interface to AWS")
7429 (description "Botocore is a Python library that provides a low-level
7430 interface to the Amazon Web Services (AWS) API.")
7433 (define-public python2-botocore
7434 (package-with-python2 python-botocore))
7436 (define-public awscli
7444 "https://pypi.python.org/packages/source/a/awscli/awscli-"
7448 "1nj7jqvlpq57hfhby1njsbf8303gapa3njc4dramr6p3ffzvfi2i"))))
7449 (build-system python-build-system)
7451 `(("python-colorama" ,python-colorama)
7452 ("python-docutils" ,python-docutils)
7453 ("python-mock" ,python-mock)
7454 ("python-nose" ,python-nose)
7455 ("python-rsa" ,python-rsa)
7456 ("python-setuptools" ,python-setuptools)
7457 ("python-sphinx" ,python-sphinx)
7458 ("python-tox" ,python-tox)
7459 ("python-wheel" ,python-wheel)
7460 ("python-botocore" ,python-botocore)))
7461 (home-page "http://aws.amazon.com/cli/")
7462 (synopsis "Command line client for AWS")
7463 (description "AWS CLI provides a unified command line interface to the
7464 Amazon Web Services (AWS) API.")
7467 (define-public python-hypothesis
7469 (name "python-hypothesis")
7473 (uri (pypi-uri "hypothesis" version))
7476 "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
7477 (build-system python-build-system)
7479 `(("python-flake8" ,python-flake8)
7480 ("python-pytest" ,python-pytest)))
7481 (synopsis "Library for property based testing")
7482 (description "Hypothesis is a library for testing your Python code against a
7483 much larger range of examples than you would ever want to write by hand. It’s
7484 based on the Haskell library, Quickcheck, and is designed to integrate
7485 seamlessly into your existing Python unit testing work flow.")
7486 (home-page "https://github.com/DRMacIver/hypothesis")
7488 (properties `((python2-variant . ,(delay python2-hypothesis))))))
7490 (define-public python2-hypothesis
7491 (let ((hypothesis (package-with-python2
7492 (strip-python2-variant python-hypothesis))))
7493 (package (inherit hypothesis)
7495 `(("python2-enum34" ,python2-enum34)
7496 ("python2-setuptools" ,python2-setuptools))))))
7498 (define-public python-pytest-subtesthack
7500 (name "python-pytest-subtesthack")
7504 (uri (pypi-uri "pytest-subtesthack" version))
7507 "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
7508 (build-system python-build-system)
7510 `(;; setuptools required for python-2 variant
7511 ("python-setuptools" ,python-setuptools)))
7513 `(("python-pytest" ,python-pytest)))
7514 (synopsis "Set-up and tear-down fixtures for unit tests")
7515 (description "This plugin allows you to set up and tear down fixtures within
7516 unit test functions that use @code{py.test}. This is useful for using
7517 @command{hypothesis} inside py.test, as @command{hypothesis} will call the test
7518 function multiple times, without setting up or tearing down fixture state as is
7519 normally the case.")
7520 (home-page "https://github.com/untitaker/pytest-subtesthack/")
7521 (license unlicense)))
7523 (define-public python2-pytest-subtesthack
7524 (package-with-python2 python-pytest-subtesthack))
7526 (define-public python2-xdo
7528 (name "python2-xdo")
7533 "http://http.debian.net/debian/pool/main/p/python-xdo/"
7534 "python-xdo_" version ".orig.tar.gz"))
7537 "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
7538 (build-system python-build-system)
7540 `(#:python ,python-2
7541 #:tests? #f)) ; no tests provided
7543 `(("xdotool" ,xdotool)
7544 ("libX11" ,libx11)))
7545 (home-page "https://tracker.debian.org/pkg/python-xdo")
7546 (synopsis "Python library for simulating X11 keyboard/mouse input")
7547 (description "Provides bindings to libxdo for manipulating X11 via simulated
7548 input. (Note that this is mostly a legacy library; you may wish to look at
7549 python-xdo for newer bindings.)")
7552 (define-public python-wtforms
7554 (name "python-wtforms")
7559 (uri (pypi-uri "WTForms" version ".zip"))
7562 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
7563 (build-system python-build-system)
7565 `(("unzip" ,unzip)))
7566 (home-page "http://wtforms.simplecodes.com/")
7568 "Form validation and rendering library for Python web development")
7570 "WTForms is a flexible forms validation and rendering library
7571 for Python web development. It is very similar to the web form API
7572 available in Django, but is a standalone package.")
7574 (properties `((python2-variant . ,(delay python2-wtforms))))))
7576 (define-public python2-wtforms
7578 (inherit (package-with-python2
7579 (strip-python2-variant python-wtforms)))
7580 (inputs `(("python2-setuptools" ,python2-setuptools)))))
7582 (define-public python-mako
7584 (name "python-mako")
7589 (uri (pypi-uri "Mako" version))
7592 "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
7593 (build-system python-build-system)
7595 `(("python-markupsafe" ,python-markupsafe)
7596 ("python-mock" ,python-mock)
7597 ("python-nose" ,python-nose)))
7598 (home-page "http://www.makotemplates.org/")
7599 (synopsis "Templating language for Python")
7600 (description "Mako is a templating language for Python that compiles
7601 templates into Python modules.")
7602 (license license:expat)
7603 (properties `((python2-variant . ,(delay python2-mako))))))
7605 (define-public python2-mako
7606 (let ((base (package-with-python2
7607 (strip-python2-variant python-mako))))
7611 (cons `("python2-setuptools" ,python2-setuptools)
7612 (package-native-inputs base))))))
7614 (define-public python-waitress
7616 (name "python-waitress")
7621 (uri (pypi-uri "waitress" version))
7624 "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
7625 (build-system python-build-system)
7626 (home-page "https://github.com/Pylons/waitress")
7627 (synopsis "Waitress WSGI server")
7628 (description "Waitress is meant to be a production-quality pure-Python WSGI
7629 server with very acceptable performance.")
7631 (properties `((python2-variant . ,(delay python2-waitress))))))
7633 (define-public python2-waitress
7635 (inherit (package-with-python2
7636 (strip-python2-variant python-waitress)))
7637 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
7639 (define-public python-wsgiproxy2
7641 (name "python-wsgiproxy2")
7646 (uri (pypi-uri "WSGIProxy2" version ".zip"))
7649 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
7650 (build-system python-build-system)
7653 ("python-nose" ,python-nose)
7654 ("python-coverage" ,python-coverage)))
7656 `(("python-six" ,python-six)
7657 ("python-webob" ,python-webob)))
7659 "https://github.com/gawel/WSGIProxy2/")
7660 (synopsis "WSGI Proxy with various http client backends")
7661 (description "WSGI turns HTTP requests into WSGI function calls.
7662 WSGIProxy turns WSGI function calls into HTTP requests.
7663 It also includes code to sign requests and pass private data,
7664 and to spawn subprocesses to handle requests.")
7665 (license license:expat)
7666 (properties `((python2-variant . ,(delay python2-wsgiproxy2))))))
7668 (define-public python2-wsgiproxy2
7669 (let ((wsgiproxy2 (package-with-python2
7670 (strip-python2-variant python-wsgiproxy2))))
7672 (inherit wsgiproxy2)
7673 (inputs `(("python2-setuptools" ,python2-setuptools)
7674 ,@(package-inputs wsgiproxy2))))))
7676 (define-public python-pastedeploy
7678 (name "python-pastedeploy")
7683 (uri (pypi-uri "PasteDeploy" version))
7686 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
7687 (build-system python-build-system)
7689 `(("python-nose" ,python-nose)))
7691 ;; This package uses pkg_resources, part of setuptools, during runtime,
7692 ;; hence why not a native-input.
7693 `(("python-setuptools" ,python-setuptools)))
7694 (home-page "http://pythonpaste.org/deploy/")
7696 "Load, configure, and compose WSGI applications and servers")
7698 "This tool provides code to load WSGI applications and servers from URIs;
7699 these URIs can refer to Python Eggs for INI-style configuration files. Paste
7700 Script provides commands to serve applications based on this configuration
7702 (license license:expat)))
7704 (define-public python2-pastedeploy
7705 (package-with-python2 python-pastedeploy))
7707 (define-public python-paste
7709 (name "python-paste")
7714 (uri (pypi-uri "Paste" version))
7717 "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
7718 (patches (list (search-patch
7719 "python-paste-remove-website-test.patch")
7721 "python-paste-remove-timing-test.patch")))))
7722 (build-system python-build-system)
7724 `(("python-nose" ,python-nose)))
7726 `(;; Uses pkg_resources provided by setuptools internally.
7727 ("python-setuptools" ,python-setuptools)
7728 ("python-six" ,python-six)))
7730 '(;; Tests don't pass on Python 3, but work fine on Python 2.
7731 ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
7732 ;; but is usable enough for the minimal amount it's used in MediaGoblin
7733 ;; still... things should be better by the next Paste release.)
7735 (home-page "http://pythonpaste.org")
7737 "Python web development tools, focusing on WSGI")
7739 "Paste provides a variety of web development tools and middleware which
7740 can be nested together to build web applications. Paste's design closely
7741 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
7742 (license license:expat)
7743 (properties `((python2-variant . ,(delay python2-paste))))))
7745 (define-public python2-paste
7746 (let ((paste (package-with-python2
7747 (strip-python2-variant python-paste))))
7751 ;; Tests are back for Python 2!
7753 ,@(package-arguments paste))))))
7755 (define-public python-pastescript
7757 (name "python-pastescript")
7762 (uri (pypi-uri "PasteScript" version))
7765 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
7766 (build-system python-build-system)
7768 `(("python-nose" ,python-nose)))
7770 `(;; Uses pkg_resources provided by setuptools internally.
7771 ("python-setuptools" ,python-setuptools)
7772 ("python-paste" ,python-paste)
7773 ("python-pastedeploy" ,python-pastedeploy)))
7774 (home-page "http://pythonpaste.org/script/")
7776 '(;; Unfortunately, this requires the latest unittest2,
7777 ;; but that requires traceback2 which requires linecache2 which requires
7778 ;; unittest2. So we're skipping tests for now.
7779 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
7780 ;; so in theory we could get around this situation somehow.)
7783 "Pluggable command line tool for serving web applications and more")
7785 "PasteScript is a plugin-friendly command line tool which provides a
7786 variety of features, from launching web applications to bootstrapping project
7788 (license license:expat)))
7790 (define-public python2-pastescript
7791 (package-with-python2 python-pastescript))
7793 (define-public python-pyquery
7795 (name "python-pyquery")
7800 (uri (pypi-uri "pyquery" version))
7803 "1ikz1387nsp0pp7mzzr6ip9n5gr67acpap24yn33987v7fkjp0sa"))))
7804 (build-system python-build-system)
7806 `(("python-lxml" ,python-lxml)
7807 ("python-cssselect" ,python-cssselect)))
7808 (home-page "https://github.com/gawel/pyquery")
7809 (synopsis "Make jQuery-like queries on xml documents")
7810 (description "pyquery allows you to make jQuery queries on xml documents.
7811 The API is as much as possible the similar to jQuery. pyquery uses lxml for
7812 fast xml and html manipulation.")
7814 (properties `((python2-variant . ,(delay python2-pyquery))))))
7816 (define-public python2-pyquery
7817 (let ((pyquery (package-with-python2
7818 (strip-python2-variant python-pyquery))))
7821 (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
7823 (define-public python-webtest
7825 (name "python-webtest")
7830 (uri (pypi-uri "WebTest" version))
7833 "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
7834 (build-system python-build-system)
7836 `(;; Unfortunately we have to disable tests!
7837 ;; This release of WebTest is pinned to python-nose < 1.3,
7838 ;; but older versions of python-nose are plagued with the following
7839 ;; bug(s), which rears its ugly head during test execution:
7840 ;; https://github.com/nose-devs/nose/issues/759
7841 ;; https://github.com/nose-devs/nose/pull/811
7843 ;; Commented out code is no good, but in this case, once tests
7844 ;; are ready to be enabled again, we should put the following
7847 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
7848 ;; ; but see above comment
7849 ;; ("python-coverage" ,python-coverage)
7850 ;; ("python-mock" ,python-mock)
7851 ;; ("python-pastedeploy" ,python-pastedeploy)
7852 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
7853 ;; ("python-pyquery" ,python-pyquery)))
7855 `(("python-waitress" ,python-waitress)
7856 ("python-webob" ,python-webob)
7857 ("python-six" ,python-six)
7858 ("python-beautifulsoup4" ,python-beautifulsoup4)))
7859 (home-page "http://webtest.pythonpaste.org/")
7860 (synopsis "Helper to test WSGI applications")
7861 (description "Webtest allows you to test your Python web applications
7862 without starting an HTTP server. It supports anything that supports the
7864 (license license:expat)
7865 (properties `((python2-variant . ,(delay python2-webtest))))))
7867 (define-public python2-webtest
7868 (let ((webtest (package-with-python2
7869 (strip-python2-variant python-webtest))))
7872 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7873 ,@(package-native-inputs webtest))))))
7875 (define-public python-anyjson
7877 (name "python-anyjson")
7882 (uri (pypi-uri "anyjson" version))
7885 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
7886 (build-system python-build-system)
7888 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
7889 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
7890 ;; whatever) so this transformation needs to be done before the tests
7891 ;; can be run. Maybe we could add a build step to transform beforehand
7892 ;; but it could be annoying/difficult.
7893 ;; We can enable tests for the Python 2 version, though, and do below.
7895 (home-page "http://bitbucket.org/runeh/anyjson/")
7897 "Wraps best available JSON implementation in a common interface")
7899 "Anyjson loads whichever is the fastest JSON module installed
7900 and provides a uniform API regardless of which JSON implementation is used.")
7902 (properties `((python2-variant . ,(delay python2-anyjson))))))
7904 (define-public python2-anyjson
7905 (let ((anyjson (package-with-python2
7906 (strip-python2-variant python-anyjson))))
7909 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
7911 ,@(package-arguments anyjson)))
7912 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7913 ("python2-nose" ,python2-nose))))))
7915 (define-public python-amqp
7917 (name "python-amqp")
7922 (uri (pypi-uri "amqp" version))
7925 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
7926 (build-system python-build-system)
7928 `(("python-nose" ,python-nose)
7929 ("python-mock" ,python-mock)))
7930 (home-page "http://github.com/celery/py-amqp")
7932 "Low-level AMQP client for Python (fork of amqplib)")
7934 "This is a fork of amqplib which was originally written by Barry Pederson.
7935 It is maintained by the Celery project, and used by kombu as a pure python
7936 alternative when librabbitmq is not available.")
7938 (properties `((python2-variant . ,(delay python2-amqp))))))
7940 (define-public python2-amqp
7941 (let ((amqp (package-with-python2
7942 (strip-python2-variant python-amqp))))
7945 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
7946 ;; unmaintained. Weirdly, does not do this on the python 3
7949 ,@(package-arguments amqp)))
7950 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7951 ,@(package-native-inputs amqp))))))
7953 (define-public python-kombu
7955 (name "python-kombu")
7960 (uri (pypi-uri "kombu" version))
7963 "16brjx2lgwbj2a37d0pjbfb84nvld6irghmqrs3qfncajp51hgc5"))))
7964 (build-system python-build-system)
7966 `(("python-mock" ,python-mock)
7967 ("python-nose" ,python-nose)))
7969 `(("python-anyjson" ,python-anyjson)
7970 ("python-amqp" ,python-amqp)))
7971 (home-page "http://kombu.readthedocs.org")
7972 (synopsis "Message passing library for Python")
7973 (description "The aim of Kombu is to make messaging in Python as easy as
7974 possible by providing an idiomatic high-level interface for the AMQ protocol,
7975 and also provide proven and tested solutions to common messaging problems.
7976 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
7977 message orientation, queuing, routing, reliability and security, for which the
7978 RabbitMQ messaging server is the most popular implementation.")
7980 (properties `((python2-variant . ,(delay python2-kombu))))))
7982 (define-public python2-kombu
7983 (let ((kombu (package-with-python2
7984 (strip-python2-variant python-kombu))))
7987 (inputs `(("python2-setuptools" ,python2-setuptools)
7988 ("python2-unittest2" ,python2-unittest2)
7989 ,@(package-inputs kombu))))))
7991 (define-public python-billiard
7993 (name "python-billiard")
7994 (version "3.3.0.22")
7998 (uri (pypi-uri "billiard" version))
8001 "0zp7h6a58alrb3mwdw61jds07395j4j0mj6iqsb8czrihw9ih5nj"))))
8002 (build-system python-build-system)
8004 `(("python-nose" ,python-nose)))
8005 (home-page "http://github.com/celery/billiard")
8007 "Python multiprocessing fork with improvements and bugfixes")
8009 "Billiard is a fork of the Python 2.7 multiprocessing package. The
8010 multiprocessing package itself is a renamed and updated version of R Oudkerk's
8011 pyprocessing package. This standalone variant is intended to be compatible with
8012 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
8014 (properties `((python2-variant . ,(delay python2-billiard))))))
8016 (define-public python2-billiard
8017 (let ((billiard (package-with-python2
8018 (strip-python2-variant python-billiard))))
8021 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8022 ("python2-unittest2" ,python2-unittest2)
8023 ("python2-mock" ,python2-mock)
8024 ,@(package-native-inputs billiard))))))
8026 (define-public python-celery
8028 (name "python-celery")
8033 (uri (pypi-uri "celery" version))
8036 "1md6ywg1s0946qyp8ndnsd677wm0yax933h2sb4m3a4j7lf1jbyh"))))
8037 (build-system python-build-system)
8039 `(("python-nose" ,python-nose)))
8041 `(("python-pytz" ,python-pytz)
8042 ("python-billiard" ,python-billiard)
8043 ("python-kombu" ,python-kombu)))
8044 (home-page "http://celeryproject.org")
8045 (synopsis "Distributed Task Queue")
8046 (description "Celery is an asynchronous task queue/job queue based on
8047 distributed message passing. It is focused on real-time operation, but
8048 supports scheduling as well. The execution units, called tasks, are executed
8049 concurrently on a single or more worker servers using multiprocessing,
8050 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
8051 synchronously (wait until ready).")
8053 (properties `((python2-variant . ,(delay python2-celery))))))
8055 (define-public python2-celery
8056 (let ((celery (package-with-python2
8057 (strip-python2-variant python-celery))))
8060 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8061 ("python2-unittest2" ,python2-unittest2)
8062 ("python2-mock" ,python2-mock)
8063 ,@(package-native-inputs celery))))))
8065 (define-public python-translitcodec
8067 (name "python-translitcodec")
8072 (uri (pypi-uri "translitcodec" version))
8075 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
8076 (build-system python-build-system)
8078 `(#:tests? #f)) ; no tests provided
8080 "https://github.com/claudep/translitcodec")
8082 "Unicode to 8-bit charset transliteration codec")
8084 "This package contains codecs for transliterating ISO 10646 texts into
8085 best-effort representations using smaller coded character sets (ASCII,
8087 (license license:expat)
8088 (properties `((python2-variant . ,(delay python2-translitcodec))))))
8090 (define-public python2-translitcodec
8092 (inherit (package-with-python2
8093 (strip-python2-variant python-translitcodec)))
8094 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8096 (define-public python-editor
8098 (name "python-editor")
8103 (uri (pypi-uri "python-editor" version))
8106 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
8107 (build-system python-build-system)
8109 "https://github.com/fmoo/python-editor")
8111 "Programmatically open an editor, capture the result")
8113 "python-editor is a library that provides the editor module for
8114 programmatically interfacing with your system's $EDITOR.")
8116 (properties `((python2-variant . ,(delay python2-editor))))))
8118 (define-public python2-editor
8120 (inherit (package-with-python2
8121 (strip-python2-variant python-editor)))
8122 (inputs `(("python2-setuptools" ,python2-setuptools)))))
8124 (define-public python-sphinxcontrib-programoutput
8126 (name "python-sphinxcontrib-programoutput")
8130 (uri (pypi-uri "sphinxcontrib-programoutput" version))
8133 "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
8134 (build-system python-build-system)
8136 `(("python-docutils" ,python-docutils)
8137 ("python-sphinx" ,python-sphinx)))
8138 (synopsis "Sphinx extension to include program output")
8139 (description "A Sphinx extension to literally insert the output of arbitrary
8140 commands into documents, helping you to keep your command examples up to date.")
8141 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
8143 (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput))))))
8145 (define-public python2-sphinxcontrib-programoutput
8147 (inherit (package-with-python2
8148 (strip-python2-variant python-sphinxcontrib-programoutput)))
8149 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8151 (define-public python-sphinx-repoze-autointerface
8153 (name "python-sphinx-repoze-autointerface")
8157 (uri (pypi-uri "repoze.sphinx.autointerface" version))
8160 "016mv3wbylw278wl7z33y2liyra8ljp08zq1g0anzadh1an5zvwp"))))
8161 (build-system python-build-system)
8163 `(("python-docutils" ,python-docutils)
8164 ("python-sphinx" ,python-sphinx)
8165 ("python-zope-interface" ,python-zope-interface)))
8166 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
8167 (description "This package defines an extension for the Sphinx documentation
8168 system. The extension allows generation of API documentation by
8169 introspection of @code{zope.interface} instances in code.")
8170 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
8173 (define-public python2-sphinx-repoze-autointerface
8174 (package-with-python2 python-sphinx-repoze-autointerface))
8176 (define-public python-psycopg2
8178 (name "python-psycopg2")
8183 (uri (pypi-uri "psycopg2" version))
8186 "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
8187 (build-system python-build-system)
8189 ;; Tests would require a postgresql database "psycopg2_test"
8190 ;; and a running postgresql database management service.
8191 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
8193 `(("postgresql" ,postgresql))) ; libpq
8194 (home-page "http://initd.org/psycopg/")
8195 (synopsis "Python PostgreSQL adapter")
8197 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
8199 (properties `((python2-variant . ,(delay python2-psycopg2))))))
8201 (define-public python2-psycopg2
8203 (inherit (package-with-python2
8204 (strip-python2-variant python-psycopg2)))
8205 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8207 (define-public python-vobject
8209 (name "python-vobject")
8213 (uri (pypi-uri "vobject" version))
8216 "1cwzjnrdr9yg2x21wbf3kf59ibnchvj33mygd69yzi178a9gs9gz"))))
8217 (build-system python-build-system)
8219 `(("python-dateutil-2" ,python-dateutil-2)
8220 ("python-pyicu" ,python-pyicu)))
8221 (synopsis "Parse and generate vCard and vCalendar files")
8222 (description "Vobject is intended to be a full featured Python package for
8223 parsing and generating vCard and vCalendar files. Currently, iCalendar files
8224 are supported and well tested. vCard 3.0 files are supported, and all data
8225 should be imported, but only a few components are understood in a sophisticated
8227 (home-page "http://eventable.github.io/vobject/")
8229 (properties `((python2-variant . ,(delay python2-vobject))))))
8231 (define-public python2-vobject
8233 (inherit (package-with-python2
8234 (strip-python2-variant python-vobject)))
8235 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))