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, 2016 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 version-control)
73 #:use-module (gnu packages web)
74 #:use-module (gnu packages base)
75 #:use-module (gnu packages xml)
76 #:use-module (gnu packages xorg)
77 #:use-module (gnu packages xdisorg)
78 #:use-module (gnu packages zip)
79 #:use-module (gnu packages tcl)
80 #:use-module (guix packages)
81 #:use-module (guix download)
82 #:use-module (guix git-download)
83 #:use-module (guix utils)
84 #:use-module (guix build-system gnu)
85 #:use-module (guix build-system cmake)
86 #:use-module (guix build-system python)
87 #:use-module (guix build-system trivial)
88 #:use-module (srfi srfi-1))
90 (define-public python-2
97 (uri (string-append "https://www.python.org/ftp/python/"
98 version "/Python-" version ".tar.xz"))
101 "1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw"))
102 (patches (map search-patch
103 '("python-2.7-search-paths.patch"
104 "python-2-deterministic-build-info.patch"
105 "python-2.7-source-date-epoch.patch")))))
107 "tk")) ;tkinter; adds 50 MiB to the closure
108 (build-system gnu-build-system)
113 ;; test_distutils test_shutil test_signal test_site test_slice
114 ;; test_smtplib test_smtpnet test_socket test_socketserver
115 ;; test_softspace test_sort test_spwd test_sqlite test_ssl
116 ;; test_startfile test_stat test_str test_strftime test_string
117 ;; test_stringprep test_strop test_strptime test_strtod test_struct
118 ;; test_structmembers test_structseq test_subprocess test_sunau
119 ;; test_sunaudiodev test_sundry test_symtable test_syntax test_sys
120 ;; test_sys_setprofile test_sys_settrace test_sysconfig test_tarfile
121 ;; test_tcl test_telnetlib test_tempfile test_textwrap test_thread
122 ;; test_threaded_import test_threadedtempfile test_threading
123 ;; test_threading_local test_threadsignals test_time test_timeit
124 ;; test_timeout test_tk test_tokenize test_tools test_trace
125 ;; test_traceback test_transformer test_ttk_guionly test_ttk_textonly
126 ;; test_tuple test_typechecks test_ucn test_unary
127 ;; test_undocumented_details test_unicode test_unicode_file
128 ;; test_unicodedata test_univnewlines test_univnewlines2k test_unpack
129 ;; test_urllib test_urllib2 test_urllib2_localnet test_urllib2net
130 ;; test_urllibnet test_urlparse test_userdict test_userlist
131 ;; test_userstring test_uu test_uuid test_wait3 test_wait4
132 ;; test_warnings test_wave test_weakref test_weakset test_whichdb
133 ;; test_winreg test_winsound test_with test_wsgiref test_xdrlib
134 ;; test_xml_etree test_xml_etree_c test_xmllib test_xmlrpc
135 ;; test_xpickle test_xrange test_zipfile test_zipfile64
136 ;; test_zipimport test_zipimport_support test_zlib
138 ;; test_aepack test_al test_applesingle test_bsddb test_bsddb185
139 ;; test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
140 ;; test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_crypt
141 ;; test_curses test_dl test_gdb test_gl test_idle test_imageop
142 ;; test_imgfile test_ioctl test_kqueue test_linuxaudiodev test_macos
143 ;; test_macostools test_msilib test_nis test_ossaudiodev
144 ;; test_scriptpackages
145 ;; 6 skips unexpected on linux2:
146 ;; test_bsddb test_bsddb3 test_crypt test_gdb test_idle test_ioctl
147 ;; One of the typical errors:
149 ;; test test_unicode crashed -- <type 'exceptions.OSError'>: [Errno 2] No
150 ;; such file or directory
153 (list "--enable-shared" ;allow embedding
154 "--with-system-ffi" ;build ctypes
155 (string-append "LDFLAGS=-Wl,-rpath="
156 (assoc-ref %outputs "out") "/lib"))
158 #:modules ((ice-9 ftw) (ice-9 match)
159 (guix build utils) (guix build gnu-build-system))
161 (modify-phases %standard-phases
163 'configure 'patch-lib-shells
165 ;; Filter for existing files, since some may not exist in all
166 ;; versions of python that are built with this recipe.
167 (substitute* (filter file-exists?
168 '("Lib/subprocess.py"
170 "Lib/distutils/tests/test_spawn.py"
171 "Lib/test/test_subprocess.py"))
172 (("/bin/sh") (which "sh")))
174 ;; Use zero as the timestamp in .pyc files so that builds are
175 ;; deterministic. TODO: Remove it when this variable is set in
176 ;; gnu-build-system.scm.
177 (setenv "SOURCE_DATE_EPOCH" "1")
179 (add-before 'configure 'do-not-record-configure-flags
180 (lambda* (#:key configure-flags #:allow-other-keys)
181 ;; Remove configure flags from the installed '_sysconfigdata.py'
182 ;; and 'Makefile' so we don't end up keeping references to the
185 ;; Preserve at least '--with-system-ffi' since otherwise the
186 ;; thing tries to build libffi, fails, and we end up with a
187 ;; Python that lacks ctypes.
188 (substitute* "configure"
189 (("^CONFIG_ARGS=.*$")
190 (format #f "CONFIG_ARGS='~a'\n"
191 (if (member "--with-system-ffi" configure-flags)
198 ;; 'Lib/test/test_site.py' needs a valid $HOME
199 (setenv "HOME" (getcwd))
202 'unpack 'set-source-file-times-to-1980
203 ;; XXX One of the tests uses a ZIP library to pack up some of the
204 ;; source tree, and fails with "ZIP does not support timestamps
205 ;; before 1980". Work around this by setting the file times in the
206 ;; source tree to sometime in early 1980.
208 (let ((circa-1980 (* 10 366 24 60 60)))
209 (ftw "." (lambda (file stat flag)
210 (utime file circa-1980 circa-1980)
213 (add-after 'install 'move-tk-inter
214 (lambda* (#:key outputs #:allow-other-keys)
215 ;; When Tkinter support is built move it to a separate output so
216 ;; that the main output doesn't contain a reference to Tcl/Tk.
217 (let ((out (assoc-ref outputs "out"))
218 (tk (assoc-ref outputs "tk")))
220 (match (find-files out "tkinter.*\\.so")
222 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
223 ;; want it under TK/lib/pythonX.Y/site-packages.
224 (let* ((len (string-length out))
225 (target (string-append
228 (dirname (dirname tkinter.so))
231 (install-file tkinter.so target)
232 (delete-file tkinter.so)))))
237 ("libffi" ,libffi) ; for ctypes
238 ("sqlite" ,sqlite) ; for sqlite extension
240 ("readline" ,readline)
243 ("tk" ,tk))) ; for tkinter
245 `(("pkg-config" ,pkg-config)))
247 (list (search-path-specification
248 (variable "PYTHONPATH")
249 (files '("lib/python2.7/site-packages")))))
250 (home-page "http://python.org")
251 (synopsis "High-level, dynamically-typed programming language")
253 "Python is a remarkably powerful dynamic programming language that
254 is used in a wide variety of application domains. Some of its key
255 distinguishing features include: clear, readable syntax; strong
256 introspection capabilities; intuitive object orientation; natural
257 expression of procedural code; full modularity, supporting hierarchical
258 packages; exception-based error handling; and very high level dynamic
262 (define-public python
263 (package (inherit python-2)
267 (uri (string-append "https://www.python.org/ftp/python/"
268 version "/Python-" version ".tar.xz"))
269 (patches (map search-patch
270 '("python-fix-tests.patch"
271 ;; XXX Try removing this patch for python > 3.4.3
272 "python-disable-ssl-test.patch"
273 "python-3-deterministic-build-info.patch"
274 "python-3-search-paths.patch")))
275 (patch-flags '("-p0"))
278 "1f4nm4z08sy0kqwisvv95l02crv6dyysdmx44p1mz3bn6csrdcxm"))))
279 (arguments (substitute-keyword-arguments (package-arguments python-2)
282 (list (search-path-specification
283 (variable "PYTHONPATH")
284 (files (list (string-append "lib/python"
285 (version-major+minor version)
286 "/site-packages"))))))))
288 ;; Minimal variants of Python, mostly used to break the cycle between Tk and
289 ;; Python (Tk -> libxcb -> Python.)
291 (define-public python2-minimal
292 (package (inherit python-2)
293 (name "python-minimal")
296 (substitute-keyword-arguments (package-arguments python-2)
297 ((#:configure-flags cf)
298 `(append ,cf '("--without-system-ffi")))))
299 (inputs '()))) ;none of the optional dependencies
301 (define-public python-minimal
302 (package (inherit python)
303 (name "python-minimal")
306 (substitute-keyword-arguments (package-arguments python)
307 ((#:configure-flags cf)
308 `(append ,cf '("--without-system-ffi")))))
310 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
311 ;; zlib is required by 'zipimport', used by pip.
312 (inputs `(("openssl" ,openssl)
315 (define* (wrap-python3 python
317 (name (string-append (package-name python) "-wrapper")))
318 (package (inherit python)
321 (build-system trivial-build-system)
323 (propagated-inputs `(("python" ,python)))
325 `(#:modules ((guix build utils))
328 (use-modules (guix build utils))
329 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
330 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
334 (symlink (string-append python old)
335 (string-append bin "/" new)))
336 `("python3" ,"pydoc3" ,"idle3")
337 `("python" ,"pydoc" ,"idle"))))))
338 (synopsis "Wrapper for the Python 3 commands")
340 "This package provides wrappers for the commands of Python@tie{}3.x such
341 that they can be invoked under their usual name---e.g., @command{python}
342 instead of @command{python3}.")))
344 (define-public python-wrapper (wrap-python3 python))
345 (define-public python-minimal-wrapper (wrap-python3 python-minimal))
347 (define-public python-psutil
349 (name "python-psutil")
354 (uri (pypi-uri "psutil" version))
357 "11bd1555vf2ibjnmqf64im5cp55vcqfq45ccinm9ll3bs68na6s2"))))
358 (build-system python-build-system)
360 `(("python-setuptools" ,python-setuptools)))
361 (home-page "https://pypi.python.org/pypi/psutil/")
362 (synopsis "Library for retrieving information on running processes")
364 "psutil (Python system and process utilities) is a library for retrieving
365 information on running processes and system utilization (CPU, memory, disks,
366 network) in Python. It is useful mainly for system monitoring, profiling and
367 limiting process resources and management of running processes. It implements
368 many functionalities offered by command line tools such as: ps, top, lsof,
369 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
370 pidof, tty, taskset, pmap.")
373 (define-public python2-psutil
374 (package-with-python2 python-psutil))
376 (define-public python-passlib
378 (name "python-passlib")
383 (uri (pypi-uri "passlib" version))
386 "1z27wdxs5rj5xhhqfzvzn3yg682irkxw6dcs5jj7mcf97psk8gd8"))))
387 (build-system python-build-system)
389 `(("python-nose" ,python-nose)
390 ("python-setuptools" ,python-setuptools)))
392 `(("python-py-bcrypt" ,python-py-bcrypt)))
396 'check 'set-PYTHON_EGG_CACHE
397 ;; some tests require access to "$HOME/.cython"
398 (lambda* _ (setenv "PYTHON_EGG_CACHE" "/tmp"))
400 (home-page "https://bitbucket.org/ecollins/passlib")
402 "Comprehensive password hashing framework")
404 "Passlib is a password hashing library for Python 2 & 3, which provides
405 cross-platform implementations of over 30 password hashing algorithms, as well
406 as a framework for managing existing password hashes. It's designed to be
407 useful for a wide range of tasks, from verifying a hash found in /etc/shadow,
408 to providing full-strength password hashing for multi-user application.")
411 (define-public python2-passlib
412 (package-with-python2 python-passlib))
414 (define-public python-py-bcrypt
416 (name "python-py-bcrypt")
422 "https://pypi.python.org/packages/source/p/py-bcrypt/py-bcrypt-"
427 "0y6smdggwi5s72v6p1nn53dg6w05hna3d264cq6kas0lap73p8az"))))
428 (build-system python-build-system)
430 `(("python-setuptools" ,python-setuptools)))
431 (home-page "https://code.google.com/p/py-bcrypt")
433 "Bcrypt password hashing and key derivation")
435 "A python wrapper of OpenBSD's Blowfish password hashing code. This
436 system hashes passwords using a version of Bruce Schneier's Blowfish block
437 cipher with modifications designed to raise the cost of off-line password
438 cracking and frustrate fast hardware implementation. The computation cost of
439 the algorithm is parametised, so it can be increased as computers get faster.
440 The intent is to make a compromise of a password database less likely to
441 result in an attacker gaining knowledge of the plaintext passwords (e.g. using
443 ;; "sha2.c" is under BSD-3;
444 ;; "blowfish.c" and "bcrypt.c" are under BSD-4;
445 ;; the rest is under ISC.
446 (license (list isc bsd-3 bsd-4))))
448 (define-public python2-py-bcrypt
449 (package-with-python2 python-py-bcrypt))
452 (define-public python-paramiko
454 (name "python-paramiko")
460 "https://pypi.python.org/packages/source/p/paramiko/paramiko-"
465 "0mbfzm9zlrz6mla9xakrm8wkll3x035f9rj3c5pbgjzfldqscmjg"))))
466 (build-system python-build-system)
468 `(("python-setuptools" ,python-setuptools)))
470 `(("python-pycrypto" ,python-pycrypto)))
472 `(("python-ecdsa" ,python-ecdsa)))
473 (home-page "http://www.paramiko.org/")
474 (synopsis "SSHv2 protocol library")
475 (description "Paramiko is a python implementation of the SSHv2 protocol,
476 providing both client and server functionality. While it leverages a Python C
477 extension for low level cryptography (PyCrypto), Paramiko itself is a pure
478 Python interface around SSH networking concepts.")
481 (define-public python2-paramiko
482 (package-with-python2 python-paramiko))
485 (define-public python-httplib2
487 (name "python-httplib2")
493 "https://pypi.python.org/packages/source/h/httplib2/httplib2-"
498 "1xc3clbrf77r0600kja71j7hk1218sjiq0gfmb8vjdajka8kjqxw"))))
499 (build-system python-build-system)
501 `(("python-setuptools" ,python-setuptools)))
503 "https://github.com/jcgregorio/httplib2")
504 (synopsis "Comprehensive HTTP client library")
506 "A comprehensive HTTP client library supporting many features left out of
507 other HTTP libraries.")
508 (license license:expat)))
510 (define-public python2-httplib2
511 (package-with-python2 python-httplib2))
513 (define-public python-ecdsa
515 (name "python-ecdsa")
521 "https://pypi.python.org/packages/source/e/ecdsa/ecdsa-"
526 "1yj31j0asmrx4an9xvsaj2icdmzy6pw0glfpqrrkrphwdpi1xkv4"))))
527 (build-system python-build-system)
529 `(("python-setuptools" ,python-setuptools)))
531 `(("openssl" ,openssl)))
533 "http://github.com/warner/python-ecdsa")
535 "ECDSA cryptographic signature library (pure python)")
537 "This is an easy-to-use implementation of ECDSA cryptography (Elliptic
538 Curve Digital Signature Algorithm), implemented purely in Python. With this
539 library, you can quickly create keypairs (signing key and verifying key), sign
540 messages, and verify the signatures. The keys and signatures are very short,
541 making them easy to handle and incorporate into other protocols.")
542 (license license:expat)))
544 (define-public python2-ecdsa
545 (package-with-python2 python-ecdsa))
547 (define-public python-ccm
555 "https://pypi.python.org/packages/source/c/ccm/ccm-"
560 "199jw221albs2iv6xczczq88fxnh0aw8hzmys8qkbzkd99dssng9"))))
561 (build-system python-build-system)
563 `(("python-setuptools" ,python-setuptools)))
565 `(("python-pyyaml" ,python-pyyaml)
566 ("python-six" ,python-six)))
567 (home-page "https://github.com/pcmanus/ccm")
568 (synopsis "Cassandra Cluster Manager")
569 (description "A script/library to create, launch and remove an Apache
570 Cassandra cluster on localhost.")
573 (define-public python2-ccm
574 (package-with-python2 python-ccm))
576 (define-public python-pytz
583 (uri (pypi-uri "pytz" version))
586 "1spgdfp1ssya7v3kww7zp71xpj437skpqazcvqr3kr1p1brnw9lr"))))
587 (build-system python-build-system)
588 (arguments `(#:tests? #f)) ; no test target
589 (home-page "http://pythonhosted.org/pytz")
590 (synopsis "Python timezone library")
592 "This library allows accurate and cross platform timezone calculations
593 using Python 2.4 or higher and provides access to the Olson timezone database.")
594 (license license:expat)))
596 (define-public python2-pytz
597 (package-with-python2 python-pytz))
600 (define-public python-babel
602 (name "python-babel")
607 (uri (pypi-uri "Babel" version))
610 "0j2jgfzj1a2m39pm2qc36fzr7a6p5ybwndi0xdzhi2p8zw7dbdkz"))))
611 (build-system python-build-system)
613 `(("python-pytz" ,python-pytz)
614 ("python-setuptools" ,python-setuptools)))
615 (arguments `(#:tests? #f)) ; no test target
616 (home-page "http://babel.pocoo.org/")
618 "Tools for internationalizing Python applications")
620 "Babel is composed of two major parts:
621 - tools to build and work with gettext message catalogs
622 - a Python interface to the CLDR (Common Locale Data Repository), providing
623 access to various locale display names, localized number and date formatting,
627 (define-public python2-babel
628 (package-with-python2 python-babel))
630 (define-public python2-backport-ssl-match-hostname
632 (name "python2-backport-ssl-match-hostname")
638 "https://pypi.python.org/packages/source/b/"
639 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
643 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
644 (build-system python-build-system)
647 #:tests? #f)) ; no test target
649 `(("python2-setuptools" ,python2-setuptools)))
650 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
651 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
653 "This backport brings the ssl.match_hostname() function to users of
654 earlier versions of Python. The function checks the hostname in the
655 certificate returned by the server to which a connection has been established,
656 and verifies that it matches the intended target hostname.")
659 (define-public python-h5py
666 (uri (string-append "https://pypi.python.org/packages/source/h/h5py/h5py-"
670 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps"))))
671 (build-system python-build-system)
673 `(#:tests? #f ; no test target
675 (modify-phases %standard-phases
676 (add-after 'unpack 'fix-hdf5-paths
677 (lambda* (#:key inputs #:allow-other-keys)
678 (let ((prefix (assoc-ref inputs "hdf5")))
679 (substitute* "setup_build.py"
680 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
681 (string-append "['" prefix "/lib" "']"))
682 (("'/opt/local/include', '/usr/local/include'")
683 (string-append "'" prefix "/include" "'")))
684 (substitute* "setup_configure.py"
685 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
686 (string-append "['" prefix "/lib" "']")))
689 `(("python-numpy" ,python-numpy)))
693 `(("python-cython" ,python-cython)))
694 (home-page "http://www.h5py.org/")
695 (synopsis "Read and write HDF5 files from Python")
697 "The h5py package provides both a high- and low-level interface to the
698 HDF5 library from Python. The low-level interface is intended to be a
699 complete wrapping of the HDF5 API, while the high-level component supports
700 access to HDF5 files, datasets and groups using established Python and NumPy
704 (define-public python2-h5py
705 (let ((h5py (package-with-python2 python-h5py)))
706 (package (inherit h5py)
708 `(("python2-numpy" ,python2-numpy)
711 (package-propagated-inputs h5py)))))))
713 (define-public python-lockfile
715 (name "python-lockfile")
720 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
721 "lockfile-" version ".tar.gz"))
724 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
725 (build-system python-build-system)
726 (arguments '(#:test-target "check"))
728 `(("python-pbr" ,python-pbr)))
729 (home-page "http://code.google.com/p/pylockfile/")
730 (synopsis "Platform-independent file locking module")
732 "The lockfile package exports a LockFile class which provides a simple
733 API for locking files.")
734 (license license:expat)
735 (properties `((python2-variant . ,(delay python2-lockfile))))))
737 (define-public python2-lockfile
738 (let ((base (package-with-python2 (strip-python2-variant python-lockfile))))
741 (native-inputs `(("python2-setuptools" ,python2-setuptools)
742 ,@(package-native-inputs base))))))
744 (define-public python-mock
751 (uri (string-append "https://pypi.python.org/packages/source/m/mock/"
752 "mock-" version ".tar.gz"))
755 "0kzlsbki6q0awf89rc287f3aj8x431lrajf160a70z0ikhnxsfdq"))))
756 (build-system python-build-system)
757 (arguments '(#:test-target "check"))
758 (home-page "http://code.google.com/p/mock/")
759 (synopsis "Python mocking and patching library for testing")
761 "Mock is a library for testing in Python. It allows you to replace parts
762 of your system under test with mock objects and make assertions about how they
764 (license license:expat)))
766 (define-public python2-mock
767 (package-with-python2 python-mock))
770 (define-public python-setuptools
772 (name "python-setuptools")
777 (uri (string-append "https://pypi.python.org/packages/source/s/setuptools/setuptools-"
781 "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
782 (build-system python-build-system)
783 ;; FIXME: Tests require pytest, which itself relies on setuptools.
784 ;; One could bootstrap with an internal untested setuptools.
787 (home-page "https://pypi.python.org/pypi/setuptools")
789 "Library designed to facilitate packaging Python projects")
791 "Setuptools is a fully-featured, stable library designed to facilitate
792 packaging Python projects, where packaging includes:
793 Python package and module definitions,
794 distribution package metadata,
796 project installation,
797 platform-specific details,
801 (define-public python2-setuptools
802 (package-with-python2 python-setuptools))
805 (define-public python-pycrypto
807 (name "python-pycrypto")
812 (uri (string-append "https://pypi.python.org/packages/source/p/"
813 "pycrypto/pycrypto-" version ".tar.gz"))
816 "0g0ayql5b9mkjam8hym6zyg6bv77lbh66rv1fyvgqb17kfc1xkpj"))))
817 (build-system python-build-system)
819 `(("python-setuptools" ,python-setuptools)))
826 'build 'set-build-env
827 ;; pycrypto runs an autoconf configure script behind the scenes
829 (setenv "CONFIG_SHELL" (which "bash")))
831 (home-page "http://www.pycrypto.org/")
832 (synopsis "Cryptographic modules for Python")
834 "Pycrypto is a collection of both secure hash functions (such as SHA256
835 and RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
836 etc.). The package is structured to make adding new modules easy.")
837 (license public-domain)))
839 (define-public python2-pycrypto
840 (let ((pycrypto (package-with-python2 python-pycrypto)))
841 (package (inherit pycrypto)
843 `(("python" ,python-2)
846 (package-inputs pycrypto)))))))
848 (define-public python-keyring
850 (name "python-keyring")
855 (uri (pypi-uri "keyring" version))
858 "1h7a1r9ick7wdd0xb5p63413nvjadna2xawrsvmklsl5ddhm5wrx"))))
859 (build-system python-build-system)
861 `(("python-setuptools" ,python-setuptools)
862 ("python-setuptools-scm" ,python-setuptools-scm)
863 ("python-mock" ,python-mock)))
865 `(("python-pycrypto" ,python-pycrypto)))
867 `(#:tests? #f)) ;TODO: tests require pytest
868 (home-page "http://bitbucket.org/kang/python-keyring-lib")
869 (synopsis "Store and access your passwords safely")
871 "The Python keyring lib provides a easy way to access the system keyring
872 service from python. It can be used in any application that needs safe
874 ;; "MIT" and PSF dual license
877 (define-public python2-keyring
878 (let ((keyring (package-with-python2 python-keyring)))
879 (package (inherit keyring)
881 `(("python2-pycrypto" ,python2-pycrypto))))))
883 (define-public python-six
890 (uri (pypi-uri "six" version))
893 "0snmb8xffb3vsma0z67i0h0w2g2dy0p3gsgh9gi4i0kgc5l8spqh"))))
894 (build-system python-build-system)
896 `(("python-setuptools" ,python-setuptools)))
897 (home-page "http://pypi.python.org/pypi/six/")
898 (synopsis "Python 2 and 3 compatibility utilities")
900 "Six is a Python 2 and 3 compatibility library. It provides utility
901 functions for smoothing over the differences between the Python versions with
902 the goal of writing Python code that is compatible on both Python versions.
903 Six supports every Python version since 2.5. It is contained in only one
904 Python file, so it can be easily copied into your project.")
907 (define-public python2-six
908 (package-with-python2 python-six))
910 (define-public python-dateutil-2
912 (name "python-dateutil")
917 (uri (string-append "https://pypi.python.org/packages/source/p/"
918 name "/" name "-" version ".tar.gz"))
921 "0ggbm2z72p0nwjqgvpw8s5bqzwayqiqv2iws0x2a605m3mf4959y"))))
922 (build-system python-build-system)
924 `(("python-setuptools" ,python-setuptools)
925 ("python-six" ,python-six)))
926 (home-page "http://labix.org/python-dateutil")
927 (synopsis "Extensions to the standard datetime module")
929 "The dateutil module provides powerful extensions to the standard
930 datetime module, available in Python 2.3+.")
933 (define-public python2-dateutil-2
934 (package-with-python2 python-dateutil-2))
936 (define-public python-dateutil
938 (name "python-dateutil")
939 (version "1.5") ; last version for python < 3
943 (uri (string-append "http://labix.org/download/python-dateutil/"
944 "python-dateutil-" version ".tar.gz"))
947 "0fqfglhy5khbvsipr3x7m6bcaqljh8xl5cw33vbfxy7qhmywm2n0"))))
948 (build-system python-build-system)
950 `(("python-setuptools" ,python-setuptools)))
951 (home-page "http://labix.org/python-dateutil")
952 (synopsis "Extensions to the standard datetime module")
954 "The dateutil module provides powerful extensions to the standard
955 datetime module, available in Python 2.3+.")
958 (define-public python2-dateutil
959 (package-with-python2 python-dateutil))
961 (define-public python-parsedatetime
963 (name "python-parsedatetime")
968 (uri (string-append "https://pypi.python.org/packages/source/p/"
969 "parsedatetime/parsedatetime-" version ".tar.gz"))
972 "1as0mm4ql3z0324nc9bys2s1ngh507i317p16b79rx86wlmvx9ix"))))
973 (build-system python-build-system)
975 `(("python-setuptools" ,python-setuptools)))
976 (home-page "http://github.com/bear/parsedatetime/")
978 "Parse human-readable date/time text")
980 "Parse human-readable date/time text.")
983 (define-public python2-parsedatetime
984 (package-with-python2 python-parsedatetime))
986 (define-public python-pandas
988 (name "python-pandas")
993 (uri (pypi-uri "pandas" version))
995 (base32 "050qw0ap5bhyv5flp78x3lcq1dlminl3xaj6kbrm0jqmx0672xf9"))))
996 (build-system python-build-system)
998 `(("python-numpy" ,python-numpy)
999 ("python-pytz" ,python-pytz)
1000 ("python-dateutil" ,python-dateutil-2)))
1002 `(("python-nose" ,python-nose)
1003 ("python-setuptools" ,python-setuptools)))
1004 (home-page "http://pandas.pydata.org")
1005 (synopsis "Data structures for data analysis, time series, and statistics")
1007 "Pandas is a Python package providing fast, flexible, and expressive data
1008 structures designed to make working with structured (tabular,
1009 multidimensional, potentially heterogeneous) and time series data both easy
1010 and intuitive. It aims to be the fundamental high-level building block for
1011 doing practical, real world data analysis in Python.")
1014 (define-public python2-pandas
1015 (let ((pandas (package-with-python2 python-pandas)))
1016 (package (inherit pandas)
1018 `(("python2-numpy" ,python2-numpy)
1019 ,@(alist-delete "python-numpy"
1020 (package-propagated-inputs pandas)))))))
1022 (define-public python-tzlocal
1024 (name "python-tzlocal")
1029 (uri (pypi-uri "tzlocal" version))
1032 "12wsw2fl3adrqrwghasld57bhqdrzn0crblqrci1p5acd0ni53s3"))))
1033 (build-system python-build-system)
1034 (propagated-inputs `(("python-pytz" ,python-pytz)))
1035 (home-page "https://github.com/regebro/tzlocal")
1037 "Local timezone information for Python")
1039 "Tzlocal returns a tzinfo object with the local timezone information.
1040 This module attempts to fix a glaring hole in pytz, that there is no way to
1041 get the local timezone information, unless you know the zoneinfo name, and
1042 under several distributions that's hard or impossible to figure out.")
1045 (define-public python2-pysqlite
1047 (name "python2-pysqlite")
1052 (uri (pypi-uri "pysqlite" version))
1055 "0rm0zqyb363y6wljhfmbxs16jjv7p8nk1d8zgq9sdwj6js7y3jkm"))))
1056 (build-system python-build-system)
1058 `(("sqlite" ,sqlite)))
1060 `(#:python ,python-2 ; incompatible with Python 3
1061 #:tests? #f)) ; no test target
1062 (home-page "http://github.com/ghaering/pysqlite")
1063 (synopsis "SQLite bindings for Python")
1065 "Pysqlite provides SQLite bindings for Python that comply to the
1066 Database API 2.0T.")
1067 (license license:zlib)))
1070 (define-public python2-mechanize
1072 (name "python2-mechanize")
1077 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1081 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1082 (build-system python-build-system)
1084 `(("python2-setuptools" ,python2-setuptools)))
1086 `(#:python ,python-2 ; apparently incompatible with Python 3
1088 ;; test fails with message
1089 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1090 ;; (python-3.3.2) or
1091 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1093 ;; The source code is from March 2011 and probably not up-to-date
1094 ;; with respect to python unit tests.
1095 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1097 "Stateful programmatic web browsing in Python")
1099 "Mechanize implements stateful programmatic web browsing in Python,
1100 after Andy Lester’s Perl module WWW::Mechanize.")
1101 (license (non-copyleft "file://COPYING"
1102 "See COPYING in the distribution."))))
1105 (define-public python-simplejson
1107 (name "python-simplejson")
1112 (uri (string-append "https://pypi.python.org/packages/source/s/simplejson/simplejson-"
1116 "07wsry5j44l5zzm74l4j2bvasiq8n5m32f31n2p7c68i5vc6p2ks"))))
1117 (build-system python-build-system)
1118 (home-page "http://simplejson.readthedocs.org/en/latest/")
1120 "Json library for Python")
1122 "JSON (JavaScript Object Notation) is a subset of JavaScript
1123 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1126 Simplejson exposes an API familiar to users of the standard library marshal
1127 and pickle modules. It is the externally maintained version of the json
1128 library contained in Python 2.6, but maintains compatibility with Python 2.5
1129 and (currently) has significant performance advantages, even without using
1130 the optional C extension for speedups. Simplejson is also supported on
1134 (define-public python2-simplejson
1135 (package-with-python2 python-simplejson))
1138 (define-public python-pyicu
1140 (name "python-pyicu")
1145 (uri (string-append "https://pypi.python.org/packages/source/P/PyICU/PyICU-"
1149 "1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"))))
1150 (build-system python-build-system)
1152 `(("icu4c" ,icu4c)))
1153 (home-page "http://pyicu.osafoundation.org/")
1154 (synopsis "Python extension wrapping the ICU C++ API")
1156 "PyICU is a python extension wrapping the ICU C++ API.")
1158 (properties `((python2-variant . ,(delay python2-pyicu))))))
1160 (define-public python2-pyicu
1162 (inherit (package-with-python2
1163 (strip-python2-variant python-pyicu)))
1164 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
1166 (define-public python2-dogtail
1167 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1168 ;; spaces in indentation" with Python 3.
1170 (name "python2-dogtail")
1175 "https://fedorahosted.org/released/dogtail/dogtail-"
1179 "1yc4cg7ip87z15gyd4wy2vzbywrjc52a3m8r8gqy2b50d65llcg1"))))
1180 (build-system python-build-system)
1181 (arguments `(#:python ,python-2
1182 #:tests? #f)) ; invalid command "test"
1183 (home-page "https://fedorahosted.org/dogtail/")
1184 (synopsis "GUI test tool and automation framework written in Python")
1186 "Dogtail is a GUI test tool and automation framework written in Python.
1187 It uses Accessibility (a11y) technologies to communicate with desktop
1188 applications. dogtail scripts are written in Python and executed like any
1189 other Python program.")
1192 (define-public python2-empy
1194 (name "python2-empy")
1198 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1202 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1203 (build-system python-build-system)
1205 `(#:python ,python-2
1206 #:phases (alist-replace
1209 (zero? (system* "./test.sh")))
1211 (home-page "http://www.alcyone.com/software/empy/")
1212 (synopsis "Templating system for Python")
1214 "EmPy is a system for embedding Python expressions and statements in
1215 template text; it takes an EmPy source file, processes it, and produces
1216 output. This is accomplished via expansions, which are special signals to the
1217 EmPy system and are set off by a special prefix (by default the at sign, @@).
1218 EmPy can expand arbitrary Python expressions and statements in this way, as
1219 well as a variety of special forms. Textual data not explicitly delimited in
1220 this way is sent unaffected to the output, allowing Python to be used in
1221 effect as a markup language. Also supported are callbacks via hooks,
1222 recording and playback via diversions, and dynamic, chainable filters. The
1223 system is highly configurable via command line options and embedded
1225 (license lgpl2.1+)))
1227 (define-public python2-element-tree
1229 (name "python2-element-tree")
1234 "http://effbot.org/media/downloads/elementtree-"
1235 version "-20050316.tar.gz"))
1238 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1239 (build-system python-build-system)
1241 `(#:python ,python-2 ; seems to be part of Python 3
1242 #:tests? #f)) ; no 'test' sub-command
1243 (synopsis "Toolkit for XML processing in Python")
1245 "ElementTree is a Python library supporting lightweight XML processing.")
1246 (home-page "http://effbot.org/zone/element-index.htm")
1247 (license (x11-style "http://docs.python.org/2/license.html"
1248 "Like \"CWI LICENSE AGREEMENT FOR PYTHON \
1249 0.9.0 THROUGH 1.2\"."))))
1251 (define-public python2-pybugz
1253 (name "python2-pybugz")
1258 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1262 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1263 (patches (map search-patch
1264 (list "pybugz-stty.patch"
1265 "pybugz-encode-error.patch")))))
1266 (build-system python-build-system)
1268 `(#:python ,python-2 ; SyntaxError with Python 3
1269 #:tests? #f)) ; no 'test' sub-command
1270 (inputs `(("element-tree" ,python2-element-tree)))
1271 (synopsis "Python and command-line interface to Bugzilla")
1273 "PyBugz is a Python library and command-line tool to query the Bugzilla
1274 bug tracking system. It is meant as an aid to speed up interaction with the
1276 (home-page "http://www.liquidx.net/pybugz/")
1279 (define-public python-enum34
1281 (name "python-enum34")
1286 (uri (pypi-uri "enum34" version))
1289 "0yx1m4564wxgbm4glb3457hi16xihd9w63rv13y2przkdir9dfgp"))))
1290 (build-system python-build-system)
1295 (lambda _ (zero? (system* "python" "enum/test_enum.py")))
1297 (home-page "https://pypi.python.org/pypi/enum34")
1298 (synopsis "Backported Python 3.4 Enum")
1300 "Enum34 is the new Python stdlib enum module available in Python 3.4
1301 backported for previous versions of Python from 2.4 to 3.3.")
1304 (define-public python2-enum34
1305 (package-with-python2 python-enum34))
1307 (define-public python-parse-type
1309 (name "python-parse-type")
1314 (uri (string-append "https://pypi.python.org/packages/source/p/"
1315 "parse_type/parse_type-" version ".tar.gz"))
1318 "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
1319 (build-system python-build-system)
1321 `(("python-setuptools" ,python-setuptools)
1322 ("python-six" ,python-six)
1323 ("python-parse" ,python-parse)))
1324 (arguments '(#:tests? #f)) ;TODO: tests require pytest
1325 (home-page "https://github.com/jenisys/parse_type")
1326 (synopsis "Extended parse module")
1328 "Parse_type extends the python parse module.")
1331 (define-public python-parse
1333 (name "python-parse")
1338 (uri (string-append "https://pypi.python.org/packages/source/p/"
1339 "parse/parse-" version ".tar.gz"))
1342 "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57"))))
1343 (build-system python-build-system)
1348 (lambda _ (zero? (system* "python" "test_parse.py")))
1350 (home-page "https://github.com/r1chardj0n3s/parse")
1351 (synopsis "Parse strings")
1353 "Parse strings using a specification based on the Python format()
1358 (define-public scons
1364 (uri (string-append "mirror://sourceforge/scons/scons-"
1368 "0hdlci43wjz8maryj83mz04ir6rwcdrrzpd7cpzvdlzycqhdfmsb"))))
1369 (build-system python-build-system)
1371 ;; With Python 3.x, fails to build with a syntax error.
1372 `(#:python ,python-2
1373 #:tests? #f)) ; no 'python setup.py test' command
1374 (home-page "http://scons.org/")
1375 (synopsis "Software construction tool written in Python")
1377 "SCons is a software construction tool. Think of SCons as an improved,
1378 cross-platform substitute for the classic Make utility with integrated
1379 functionality similar to autoconf/automake and compiler caches such as ccache.
1380 In short, SCons is an easier, more reliable and faster way to build
1384 (define-public python-extras
1386 (name "python-extras")
1392 "https://pypi.python.org/packages/source/e/extras/extras-"
1396 "1h7zx4dfyclalg0fqnfjijpn0f793a9mx8sy3b27gd31nr6dhq3s"))))
1397 (build-system python-build-system)
1399 `(("python-setuptools" ,python-setuptools)))
1401 ;; error in setup.cfg: command 'test' has no such option 'buffer'
1403 (home-page "https://github.com/testing-cabal/extras")
1404 (synopsis "Useful extensions to the Python standard library")
1406 "Extras is a set of extensions to the Python standard library.")
1407 (license license:expat)))
1409 (define-public python2-extras
1410 (package-with-python2 python-extras))
1412 (define-public python-mimeparse
1414 (name "python-mimeparse")
1420 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1424 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1425 (build-system python-build-system)
1427 `(("python-setuptools" ,python-setuptools)))
1429 '(#:tests? #f)) ; no setup.py test command
1431 "https://github.com/dbtsai/python-mimeparse")
1432 (synopsis "Python library for parsing MIME types")
1434 "Mimeparse provides basic functions for parsing MIME type names and
1435 matching them against a list of media-ranges.")
1436 (license license:expat)))
1438 (define-public python2-mimeparse
1439 (package-with-python2 python-mimeparse))
1441 (define-public python-nose
1443 (name "python-nose")
1448 (uri (pypi-uri "nose" version))
1451 "164a43k7k2wsqqk1s6vavcdamvss4mz0vd6pwzv2h9n8rgwzxgzi"))))
1452 (build-system python-build-system)
1454 `(("python-setuptools" ,python-setuptools)))
1456 '(#:tests? #f)) ; FIXME: test suite fails
1457 (home-page "http://readthedocs.org/docs/nose/")
1458 (synopsis "Python testing library")
1460 "Nose extends the unittest library to make testing easier.")
1461 (license lgpl2.0+)))
1463 (define-public python2-nose
1464 (package-with-python2 python-nose))
1466 (define-public python-unittest2
1468 (name "python-unittest2")
1474 "https://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-"
1478 "00yl6lskygcrddx5zspkhr0ibgvpknl4678kkm6s626539grq93q"))))
1479 (build-system python-build-system)
1481 `(("python-setuptools" ,python-setuptools)))
1482 (home-page "http://pypi.python.org/pypi/unittest2")
1483 (synopsis "Python unit testing library")
1485 "Unittest2 is a replacement for the unittest module in the Python
1489 (define-public python2-unittest2
1490 (package (inherit python-unittest2)
1491 (name "python2-unittest2")
1497 "https://pypi.python.org/packages/source/u/unittest2/unittest2-"
1501 "0wbs4i4x3x7klr3v35ss6p9mcqz883i1xgcpkhvl7n2lyv6yhpda"))))
1503 `(("python2-setuptools" ,python2-setuptools)))
1505 `(#:python ,python-2
1506 #:tests? #f)))) ; no setup.py test command
1508 (define-public python-py
1515 (uri (pypi-uri "py" version))
1518 "0561gz2w3i825gyl42mcq14y3dcgkapfiv5zv9a2bz15qxiijl56"))))
1519 (build-system python-build-system)
1521 `(("python-setuptools" ,python-setuptools)))
1522 (home-page "http://pylib.readthedocs.org/")
1523 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1525 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1526 code introspection, and logging.")
1527 (license license:expat)))
1529 (define-public python2-py
1530 (package-with-python2 python-py))
1532 (define-public python-pytest
1534 (name "python-pytest")
1540 "https://pypi.python.org/packages/source/p/pytest/pytest-"
1544 "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm"))
1545 (modules '((guix build utils)))
1547 ;; One of the tests involves the /usr directory, so it fails.
1548 '(substitute* "testing/test_argcomplete.py"
1549 (("def test_remove_dir_prefix\\(self\\):")
1550 "@pytest.mark.xfail\n def test_remove_dir_prefix(self):")))))
1551 (build-system python-build-system)
1553 `(("python-setuptools" ,python-setuptools)
1554 ("python-py" ,python-py)
1555 ("python-nose" ,python-nose)
1556 ("python-mock" ,python-mock)))
1557 (home-page "http://pytest.org")
1558 (synopsis "Python testing library")
1560 "Pytest is a testing tool that provides auto-discovery of test modules
1561 and functions, detailed info on failing assert statements, modular fixtures,
1562 and many external plugins.")
1563 (license license:expat)))
1565 (define-public python2-pytest
1566 (package-with-python2 python-pytest))
1568 (define-public python-pytest-cov
1570 (name "python-pytest-cov")
1575 (uri (pypi-uri "pytest-cov" version))
1578 "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92"))))
1579 (build-system python-build-system)
1581 `(("python-coverage" ,python-coverage)
1582 ("python-pytest" ,python-pytest)))
1584 `(("python-setuptools" ,python-setuptools)))
1585 (home-page "https://github.com/pytest-dev/pytest-cov")
1586 (synopsis "Pytest plugin for measuring coverage")
1588 "Pytest-cov produces coverage reports. It supports centralised testing and
1589 distributed testing in both @code{load} and @code{each} modes. It also
1590 supports coverage of subprocesses.")
1591 (license license:expat)))
1593 (define-public python2-pytest-cov
1594 (package-with-python2 python-pytest-cov))
1596 (define-public python-pytest-runner
1598 (name "python-pytest-runner")
1603 (uri (string-append "https://pypi.python.org/packages/source/p/"
1604 "pytest-runner/pytest-runner-"
1608 "1nwcqx0l3fv52kv8526wy8ypzghbq96c96di318d98d3wh7a8xg7"))))
1609 (build-system python-build-system)
1612 (modify-phases %standard-phases
1613 ;; The fancy way of setting the version with setuptools_scm does not
1614 ;; seem to work here.
1615 (add-after 'unpack 'set-version
1617 (substitute* "docs/conf.py"
1618 (("version = setuptools_scm\\.get_version\\(root='\\.\\.')")
1619 (string-append "version = \"" ,version "\"")))
1622 `(("python-pytest" ,python-pytest)
1623 ("python-setuptools" ,python-setuptools)
1624 ("python-setuptools-scm" ,python-setuptools-scm)))
1625 (home-page "https://bitbucket.org/pytest-dev/pytest-runner")
1626 (synopsis "Invoke py.test as a distutils command")
1628 "This package provides a @command{pytest-runner} command that
1629 @file{setup.py} files can use to run tests.")
1630 (license license:expat)))
1632 (define-public python2-pytest-runner
1633 (package-with-python2 python-pytest-runner))
1635 (define-public python-pytest-xdist
1637 (name "python-pytest-xdist")
1642 (uri (pypi-uri "pytest-xdist" version ".zip"))
1645 "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
1646 (build-system python-build-system)
1649 ("python-setuptools" ,python-setuptools)
1650 ("python-setuptools-scm" ,python-setuptools-scm)))
1652 `(("python-execnet" ,python-execnet)
1653 ("python-pytest" ,python-pytest)
1654 ("python-py" ,python-py)))
1656 "https://github.com/pytest-dev/pytest-xdist")
1658 "Plugin for py.test with distributed testing and loop-on-failing modes")
1660 "The pytest-xdist plugin extends py.test with some unique test execution
1661 modes: parallelization, running tests in boxed subprocesses, the ability
1662 to run tests repeatedly when failed, and the ability to run tests on multiple
1663 Python interpreters or platforms. It uses rsync to copy the existing
1664 program code to a remote location, executes there, and then syncs the
1666 (license license:expat)))
1668 (define-public python2-pytest-xdist
1669 (package-with-python2 python-pytest-xdist))
1671 (define-public python-scripttest
1673 (name "python-scripttest")
1679 "https://pypi.python.org/packages/source/s/scripttest/scripttest-"
1683 "0f4w84k8ck82syys7yg9maz93mqzc8p5ymis941x034v44jzq74m"))))
1684 (build-system python-build-system)
1686 `(("python-setuptools" ,python-setuptools)
1687 ("python-pytest" ,python-pytest)))
1688 (home-page "http://pythonpaste.org/scripttest/")
1689 (synopsis "Python library to test command-line scripts")
1690 (description "Scripttest is a Python helper library for testing
1691 interactive command-line applications. With it you can run a script in a
1692 subprocess and see the output as well as any file modifications.")
1693 (license license:expat)))
1695 (define-public python2-scripttest
1696 (package-with-python2 python-scripttest))
1698 (define-public python-testtools
1700 (name "python-testtools")
1706 "https://pypi.python.org/packages/source/t/testtools/testtools-"
1710 "1dyml28ykpl5jb9khdmcdvhy1cxqingys6qvj2k04fzlaj6z3bbx"))))
1711 (build-system python-build-system)
1713 `(("python-mimeparse" ,python-mimeparse)))
1715 `(("python-setuptools" ,python-setuptools)
1716 ("python-extras" ,python-extras)))
1717 (home-page "https://github.com/testing-cabal/testtools")
1719 "Extensions to the Python standard library unit testing framework")
1721 "Testtools extends the Python standard library unit testing framework to
1722 provide matchers, more debugging information, and cross-Python
1726 (define-public python2-testtools
1727 (package-with-python2 python-testtools))
1729 (define-public python-testscenarios
1731 (name "python-testscenarios")
1737 "https://pypi.python.org/packages/source/t/testscenarios/testscenarios-"
1741 "1671jvrvqlmbnc42j7pc5y6vc37q44aiwrq0zic652pxyy2fxvjg"))))
1742 (build-system python-build-system)
1744 `(("python-setuptools" ,python-setuptools)
1745 ("python-testtools" ,python-testtools)
1746 ("python-mimeparse" ,python-mimeparse)))
1747 (home-page "https://launchpad.net/testscenarios")
1748 (synopsis "Pyunit extension for dependency injection")
1750 "Testscenarios provides clean dependency injection for Python unittest
1752 (license (list bsd-3 asl2.0)))) ; at the user's option
1754 (define-public python2-testscenarios
1755 (package-with-python2 python-testscenarios))
1757 (define-public python-testresources
1759 (name "python-testresources")
1765 "https://pypi.python.org/packages/source/t/testresources/testresources-"
1769 "0cbj3plbllyz42c4b5xxgwaa7mml54lakslrn4kkhinxhdri22md"))))
1770 (build-system python-build-system)
1772 `(("python-setuptools" ,python-setuptools)))
1773 (home-page "https://launchpad.net/testresources")
1775 "Pyunit extension for managing test resources")
1777 "Testresources is an extension to Python's unittest to allow declarative
1778 use of resources by test cases.")
1779 (license (list bsd-3 asl2.0)))) ; at the user's option
1781 (define-public python2-testresources
1782 (package-with-python2 python-testresources))
1784 (define-public python-subunit
1786 (name "python-subunit")
1792 "https://pypi.python.org/packages/source/p/python-subunit/python-subunit-"
1796 "1nkw9wfbvizmpajbj3in8ns07g7lwkiv8hip14jjlwk3cacls6jv"))))
1797 (build-system python-build-system)
1799 `(("python-setuptools" ,python-setuptools)
1800 ("python-testtools" ,python-testtools)
1801 ("python-mimeparse" ,python-mimeparse)
1802 ("python-testscenarios" ,python-testscenarios)))
1803 (home-page "http://launchpad.net/subunit")
1804 (synopsis "Python implementation of the subunit protocol")
1806 "Python-subunit is a Python implementation of the subunit test streaming
1808 (license (list bsd-3 asl2.0)))) ; at the user's option
1810 (define-public python2-subunit
1811 (package-with-python2 python-subunit))
1813 ;; Recent versions of python-fixtures need a recent version of python-pbr,
1814 ;; which needs a recent version of python-fixtures. To fix this circular
1815 ;; dependency, we keep old versions of python-fixtures and python-pbr to
1816 ;; bootstrap the whole thing:
1817 ;; - python-fixtures-0.3.16 is used to build python-pbr-0.11
1818 ;; - python-pbr-0.11 is used to build python-fixtures
1819 ;; - python-fixtures is used to build python-pbr
1820 (define-public python-fixtures-0.3.16
1822 (name "python-fixtures")
1828 "https://pypi.python.org/packages/source/f/fixtures/fixtures-"
1832 "0x9r2gwilcig5g54k60bxzg96zabizq1855lrprlb4zckalp9asc"))))
1833 (build-system python-build-system)
1835 `(("python-setuptools" ,python-setuptools)))
1837 '(#:tests? #f)) ; no setup.py test command
1838 (home-page "https://launchpad.net/python-fixtures")
1839 (synopsis "Python test fixture library")
1841 "Fixtures provides a way to create reusable state, useful when writing
1843 (license (list bsd-3 asl2.0)))) ; at user's option
1845 (define-public python2-fixtures-0.3.16
1846 (package-with-python2 python-fixtures-0.3.16))
1848 (define-public python-pbr-0.11
1856 "https://pypi.python.org/packages/source/p/pbr/pbr-"
1860 "0v9gb7gyqf7q9s99l0nnjj9ww9b0jvyqlwm4d56pcyinxydddw6p"))))
1861 (build-system python-build-system)
1863 `(#:tests? #f)) ;; Most tests seem to use the Internet.
1865 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
1866 ("python-pip" ,python-pip)
1867 ("python-setuptools" ,python-setuptools)))
1868 (home-page "https://launchpad.net/pbr")
1869 (synopsis "Change the default behavior of Python’s setuptools")
1871 "Python Build Reasonableness (PBR) is a library that injects some useful
1872 and sensible default behaviors into your setuptools run.")
1875 (define-public python2-pbr-0.11
1876 (package-with-python2 python-pbr-0.11))
1878 (define-public python-pbr
1886 "https://pypi.python.org/packages/source/p/pbr/pbr-"
1891 "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2"))))
1892 (build-system python-build-system)
1894 `(#:tests? #f)) ;; Most tests seem to use the Internet.
1896 `(("python-testrepository" ,python-testrepository)
1897 ("git" ,git))) ;; pbr actually uses the "git" binary.
1899 `(("python-fixtures" ,python-fixtures)
1900 ("python-mimeparse" ,python-mimeparse)
1901 ("python-mock" ,python-mock)
1902 ("python-setuptools" ,python-setuptools)
1903 ("python-six" ,python-six)
1904 ("python-sphinx" ,python-sphinx)
1905 ("python-testrepository" ,python-testrepository)
1906 ("python-testresources" ,python-testresources)
1907 ("python-testscenarios" ,python-testscenarios)
1908 ("python-testtools" ,python-testtools)
1909 ("python-virtualenv" ,python-virtualenv)))
1910 (home-page "https://launchpad.net/pbr")
1911 (synopsis "Change the default behavior of Python’s setuptools")
1913 "Python Build Reasonableness (PBR) is a library that injects some useful
1914 and sensible default behaviors into your setuptools run.")
1917 (define-public python2-pbr
1918 (package-with-python2 python-pbr))
1920 (define-public python-fixtures
1922 (name "python-fixtures")
1927 (uri (pypi-uri "fixtures" version))
1930 "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"))))
1931 (build-system python-build-system)
1933 `(("python-six" ,python-six)
1934 ("python-pbr-0.11" ,python-pbr-0.11)))
1936 `(("python-pip" ,python-pip)
1937 ("python-setuptools" ,python-setuptools)
1939 ("python-testtools" ,python-testtools)))
1941 '(#:tests? #f)) ; no setup.py test command
1942 (home-page "https://launchpad.net/python-fixtures")
1943 (synopsis "Python test fixture library")
1945 "Fixtures provides a way to create reusable state, useful when writing
1947 (license (list bsd-3 asl2.0)))) ; at user's option
1949 (define-public python2-fixtures
1950 (package-with-python2 python-fixtures))
1952 (define-public python-testrepository
1954 (name "python-testrepository")
1960 "https://pypi.python.org/packages/source/t/testrepository/testrepository-"
1964 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m"))))
1965 (build-system python-build-system)
1967 `(("python-fixtures-0.3.16" ,python-fixtures-0.3.16)
1968 ("python-testtools" ,python-testtools)))
1970 `(("python-setuptools" ,python-setuptools)
1971 ("python-subunit" ,python-subunit)
1972 ("python-mimeparse" ,python-mimeparse)))
1973 (home-page "https://launchpad.net/testrepository")
1974 (synopsis "Database for Python test results")
1975 (description "Testrepository provides a database of test results which can
1976 be used as part of a developer's workflow to check things such as what tests
1977 have failed since the last commit or what tests are currently failing.")
1978 (license (list bsd-3 asl2.0)))) ; at user's option
1980 (define-public python2-testrepository
1981 (package-with-python2 python-testrepository))
1983 (define-public python-coverage
1985 (name "python-coverage")
1990 (uri (pypi-uri "coverage" version))
1993 "0qjlja8ny4gcfp8abqfwdrvr8qw9kr69lkja0b4cqqbsdmdjgcc5"))))
1994 (build-system python-build-system)
1996 `(("python-setuptools" ,python-setuptools)))
1997 (home-page "http://nedbatchelder.com/code/coverage")
1998 (synopsis "Code coverage measurement for Python")
2000 "Coverage measures code coverage, typically during test execution. It
2001 uses the code analysis tools and tracing hooks provided in the Python standard
2002 library to determine which lines are executable, and which have been
2006 (define-public python2-coverage
2007 (package-with-python2 python-coverage))
2009 (define-public python-discover
2011 (name "python-discover")
2017 "https://pypi.python.org/packages/source/d/discover/discover-"
2021 "0y8d0zwiqar51kxj8lzmkvwc3b8kazb04gk5zcb4nzg5k68zmhq5"))))
2022 (build-system python-build-system)
2024 `(("python-setuptools" ,python-setuptools)))
2025 (home-page "http://pypi.python.org/pypi/discover/")
2027 "Python test discovery for unittest")
2029 "Discover provides test discovery for unittest, a feature that has been
2030 backported from Python 2.7 for Python 2.4+.")
2033 (define-public python2-discover
2034 (package-with-python2 python-discover))
2036 (define-public behave
2042 (uri (string-append "https://pypi.python.org/packages/source/b/"
2043 name "/" name "-" version ".tar.gz"))
2046 "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14"))))
2047 (build-system python-build-system)
2049 `(("python-setuptools" ,python-setuptools)
2050 ("python-six" ,python-six)
2051 ("python-parse" ,python-parse)
2052 ("python-parse-type" ,python-parse-type)))
2053 (arguments `(#:tests? #f)) ;TODO: tests require nose>=1.3 and
2055 (home-page "http://github.com/behave/behave")
2056 (synopsis "Python behavior-driven development")
2058 "Behave is a tool for behavior-driven development in python.
2059 Behavior-driven development (or BDD) is an agile software development
2060 technique that encourages collaboration between developers, QA and
2061 non-technical or business participants in a software project. Behave uses
2062 tests written in a natural language style, backed up by Python code.")
2065 (define-public python-exif-read
2067 (name "python-exif-read")
2071 (uri (pypi-uri "ExifRead" version))
2074 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2075 (build-system python-build-system)
2077 `(("python-setuptools" ,python-setuptools)))
2078 (arguments `(#:tests? #f)) ; no tests
2079 (home-page "https://github.com/ianare/exif-py")
2080 (synopsis "Python library to extract EXIF data from image files")
2082 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2086 (define-public python2-exif-read
2087 (package-with-python2 python-exif-read))
2089 (define-public python-pyld
2091 (name "python-pyld")
2095 (uri (pypi-uri "PyLD" version))
2098 "0k881ffazpf8q1z8862g4bb3pzwpnz9whrci2mf311mvn1qbyqad"))))
2099 (build-system python-build-system)
2101 `(("python-setuptools" ,python-setuptools)))
2102 (arguments `(#:tests? #f)) ; no tests
2103 (home-page "http://github.com/digitalbazaar/pyld")
2104 (synopsis "Python implementation of the JSON-LD specification")
2106 "PyLD is an implementation of the JSON-LD specification.")
2109 (define-public python2-pyld
2110 (package-with-python2 python-pyld))
2112 (define-public python-certifi
2114 (name "python-certifi")
2115 (version "2015.11.20.1")
2118 (uri (pypi-uri "certifi" version))
2121 "05lgwf9rz1kn465azy2bpb3zmpnsn9gkypbhnjlclchv98ssgc1h"))))
2122 (build-system python-build-system)
2124 `(("python-setuptools" ,python-setuptools)))
2125 (arguments `(#:tests? #f)) ; no tests
2126 (home-page "http://python-requests.org/")
2127 (synopsis "Python CA certificate bundle")
2129 "Certifi is a Python library that contains a CA certificate bundle, which
2130 is used by the Requests library to verify HTTPS requests.")
2133 (define-public python2-certifi
2134 (package-with-python2 python-certifi))
2136 (define-public python-click
2138 (name "python-click")
2143 (uri (pypi-uri "click" version))
2145 (base32 "10kavbisnk9m93jl2wi34pw7ryr2qbxshh2cysxwxd7bymqgz87v"))))
2146 (build-system python-build-system)
2148 `(("python-setuptools" ,python-setuptools)))
2149 (home-page "http://click.pocoo.org")
2150 (synopsis "Command line library for Python")
2152 "Click is a Python package for creating command line interfaces in a
2153 composable way with as little code as necessary. Its name stands for
2154 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2155 with sensible defaults out of the box.")
2158 (define-public python2-click
2159 (package-with-python2 python-click))
2161 (define-public python-wheel
2163 (name "python-wheel")
2168 (uri (pypi-uri "wheel" version))
2171 "0j0n38hg1jvrmyy68f9ikvzq1gs9g0sx4ws7maf8wi3bwbbqmfqy"))))
2172 (build-system python-build-system)
2174 `(("python-setuptools" ,python-setuptools)
2175 ("python-jsonschema" ,python-jsonschema)
2176 ("python-pytest-cov" ,python-pytest-cov)))
2177 (home-page "https://bitbucket.org/pypa/wheel/")
2178 (synopsis "Format for built Python packages")
2180 "A wheel is a ZIP-format archive with a specially formatted filename and
2181 the @code{.whl} extension. It is designed to contain all the files for a PEP
2182 376 compatible install in a way that is very close to the on-disk format. Many
2183 packages will be properly installed with only the @code{Unpack} step and the
2184 unpacked archive preserves enough information to @code{Spread} (copy data and
2185 scripts to their final locations) at any later time. Wheel files can be
2186 installed with a newer @code{pip} or with wheel's own command line utility.")
2187 (license license:expat)
2188 (properties `((python2-variant . ,(delay python2-wheel))))))
2190 (define-public python2-wheel
2191 (let ((wheel (package-with-python2
2192 (strip-python2-variant python-wheel))))
2193 (package (inherit wheel)
2194 (native-inputs `(("python2-functools32" ,python2-functools32)
2195 ,@(package-native-inputs wheel))))))
2198 (define-public python-requests
2200 (name "python-requests")
2204 (uri (pypi-uri "requests" version))
2207 "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"))))
2208 (build-system python-build-system)
2210 `(("python-setuptools" ,python-setuptools)))
2212 `(("python-py" ,python-py)
2213 ("python-pytest" ,python-pytest)
2214 ("python-pytest-cov" ,python-pytest-cov)
2215 ("python-wheel" ,python-wheel)))
2216 (home-page "http://python-requests.org/")
2217 (synopsis "Python HTTP library")
2219 "Requests is a Python HTTP client library. It aims to be easier to use
2220 than Python’s urllib2 library.")
2223 ;; Some software requires an older version of Requests, notably Docker
2225 (define-public python-requests-2.7
2226 (package (inherit python-requests)
2230 (uri (pypi-uri "requests" version))
2233 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
2235 (define-public python2-requests
2236 (package-with-python2 python-requests))
2238 (define-public python-vcversioner
2240 (name "python-vcversioner")
2241 (version "2.14.0.0")
2245 (uri (pypi-uri "vcversioner" version))
2248 "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c"))))
2249 (build-system python-build-system)
2251 `(("python-setuptools" ,python-setuptools)))
2252 (synopsis "Python library for version number discovery")
2253 (description "Vcversioner is a Python library that inspects tagging
2254 information in a variety of version control systems in order to discover
2256 (home-page "https://github.com/habnabit/vcversioner")
2259 (define-public python2-vcversioner
2260 (package-with-python2 python-vcversioner))
2262 (define-public python-jsonschema
2264 (name "python-jsonschema")
2270 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
2274 "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn"))))
2275 (build-system python-build-system)
2277 `(("python-setuptools" ,python-setuptools)
2278 ("python-vcversioner" ,python-vcversioner)))
2279 (home-page "http://github.com/Julian/jsonschema")
2280 (synopsis "Implementation of JSON Schema for Python")
2282 "Jsonschema is an implementation of JSON Schema for Python.")
2283 (license license:expat)
2284 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2286 (define-public python2-jsonschema
2287 (let ((jsonschema (package-with-python2
2288 (strip-python2-variant python-jsonschema))))
2289 (package (inherit jsonschema)
2291 `(("python2-functools32" ,python2-functools32)
2292 ,@(package-inputs jsonschema))))))
2294 (define-public python-unidecode
2296 (name "python-unidecode")
2300 (uri (pypi-uri "Unidecode" version))
2303 "12hhblqy1ajvidm38im4171x4arg83pfmziyn53nizp29p3m14gi"))))
2304 (build-system python-build-system)
2306 `(("python-setuptools" ,python-setuptools)))
2307 (home-page "https://pypi.python.org/pypi/Unidecode")
2308 (synopsis "ASCII transliterations of Unicode text")
2310 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2311 useful when integrating with legacy code that doesn't support Unicode, or for
2312 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2313 machine identifiers from human-readable Unicode strings that should still be
2314 somewhat intelligeble.")
2317 (define-public python2-unidecode
2318 (package-with-python2 python-unidecode))
2320 (define-public python-pyjwt
2322 (name "python-pyjwt")
2327 (uri (pypi-uri "PyJWT" version))
2330 "1556v2jppd8mjkkj66pxb5rcazm35jq81r233mdl8hfmz9n3icp1"))))
2331 (build-system python-build-system)
2333 `(("python-setuptools" ,python-setuptools)
2334 ("python-pytest-runner" ,python-pytest-runner)))
2336 '(#:tests? #f)) ; test suite doesn't work
2337 (home-page "http://github.com/progrium/pyjwt")
2338 (synopsis "JSON Web Token implementation in Python")
2340 "PyJWT is a JSON Web Token implementation written in Python.")
2341 (license license:expat)))
2343 (define-public python2-pyjwt
2344 (package-with-python2 python-pyjwt))
2346 (define-public python-oauthlib
2348 (name "python-oauthlib")
2352 (uri (pypi-uri "oauthlib" version))
2355 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
2356 (build-system python-build-system)
2358 `(("python-setuptools" ,python-setuptools)
2359 ("python-coverage" ,python-coverage)
2360 ("python-nose" ,python-nose)
2361 ("python-mock" ,python-mock)))
2363 `(("python-blinker" ,python-blinker)
2364 ("python-cryptography" ,python-cryptography)
2365 ("python-pyjwt" ,python-pyjwt)))
2366 (home-page "https://github.com/idan/oauthlib")
2367 (synopsis "OAuth implementation for Python")
2369 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2370 OAuth request-signing logic.")
2373 (define-public python2-oauthlib
2374 (let ((base (package-with-python2 python-oauthlib)))
2378 `(("python2-unittest2" ,python2-unittest2)
2379 ("python2-cryptography" ,python2-cryptography)
2380 ,@(alist-delete "python-cryptography"
2381 (package-inputs base)))))))
2383 (define-public python-itsdangerous
2385 (name "python-itsdangerous")
2391 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2395 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2396 (build-system python-build-system)
2398 `(("python-setuptools" ,python-setuptools)))
2399 (home-page "http://github.com/mitsuhiko/itsdangerous")
2400 (synopsis "Python library for passing data to/from untrusted environments")
2402 "Itsdangerous provides various helpers to pass trusted data to untrusted
2403 environments and back.")
2406 (define-public python2-itsdangerous
2407 (package-with-python2 python-itsdangerous))
2409 (define-public python-pyyaml
2411 (name "python-pyyaml")
2417 "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-"
2421 "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))
2422 (build-system python-build-system)
2424 `(("libyaml" ,libyaml)))
2426 `(("python-setuptools" ,python-setuptools)))
2427 (home-page "http://pyyaml.org/wiki/PyYAML")
2428 (synopsis "YAML parser and emitter for Python")
2430 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2431 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2432 API, and sensible error messages. PyYAML supports standard YAML tags and
2433 provides Python-specific tags that allow to represent an arbitrary Python
2435 (license license:expat)))
2437 (define-public python2-pyyaml
2438 (package-with-python2 python-pyyaml))
2440 (define-public python-virtualenv
2442 (name "python-virtualenv")
2447 (uri (pypi-uri "virtualenv" version))
2450 "1p732accxwqfjbdna39k8w8lp9gyw91vr4kzkhm8mgfxikqqxg5a"))))
2451 (build-system python-build-system)
2454 (modify-phases %standard-phases
2456 (lambda _ (zero? (system* "py.test")))))))
2458 `(("python-setuptools" ,python-setuptools)
2459 ("python-mock" ,python-mock)
2460 ("python-pytest" ,python-pytest)))
2461 (home-page "https://virtualenv.pypa.io/")
2462 (synopsis "Virtual Python environment builder")
2464 "Virtualenv is a tool to create isolated Python environments.")
2465 (license license:expat)))
2467 (define-public python2-virtualenv
2468 (package-with-python2 python-virtualenv))
2470 (define-public python-markupsafe
2472 (name "python-markupsafe")
2478 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2482 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2483 (build-system python-build-system)
2485 `(("python-setuptools" ,python-setuptools)))
2486 (home-page "http://github.com/mitsuhiko/markupsafe")
2487 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2489 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2493 (define-public python2-markupsafe
2494 (package-with-python2 python-markupsafe))
2496 (define-public python-jinja2
2498 (name "python-jinja2")
2503 (uri (pypi-uri "Jinja2" version))
2506 "1x0v41lp5m1pjix3l46zx02b7lqp2hflgpnxwkywxynvi3zz47xw"))))
2507 (build-system python-build-system)
2509 `(("python-setuptools" ,python-setuptools)
2510 ("python-markupsafe" ,python-markupsafe)))
2511 (home-page "http://jinja.pocoo.org/")
2512 (synopsis "Python template engine")
2514 "Jinja2 is a small but fast and easy to use stand-alone template engine
2515 written in pure Python.")
2518 (define-public python2-jinja2
2519 (package-with-python2 python-jinja2))
2521 (define-public python-pystache
2523 (name "python-pystache")
2527 (uri (pypi-uri "pystache" version))
2530 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2531 (build-system python-build-system)
2533 `(("python-setuptools" ,python-setuptools)))
2534 (home-page "http://defunkt.io/pystache/")
2535 (synopsis "Python logic-less template engine")
2537 "Pystache is a Python implementation of the framework agnostic,
2538 logic-free templating system Mustache.")
2539 (license license:expat)))
2541 (define-public python2-pystache
2542 (package-with-python2 python-pystache))
2544 (define-public python-joblib
2546 (name "python-joblib")
2550 (uri (string-append "https://pypi.python.org/packages/source/"
2551 "j/joblib/joblib-" version ".tar.gz"))
2554 "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3"))))
2555 (build-system python-build-system)
2557 `(("python-setuptools" ,python-setuptools)
2558 ("python-nose" ,python-nose)))
2559 (home-page "http://pythonhosted.org/joblib/")
2560 (synopsis "Using Python functions as pipeline jobs")
2562 "Joblib is a set of tools to provide lightweight pipelining in Python.
2563 In particular, joblib offers: transparent disk-caching of the output values
2564 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2565 logging and tracing of the execution.")
2568 (define-public python2-joblib
2569 (package-with-python2 python-joblib))
2571 (define-public python-docutils
2573 (name "python-docutils")
2579 "https://pypi.python.org/packages/source/d/docutils/docutils-"
2583 "1ylnjnw1x4b2y7blr6x35ncdzn69k253kw4cdkv6asdb21w73ny7"))))
2584 (build-system python-build-system)
2586 `(("python-setuptools" ,python-setuptools)))
2588 '(#:tests? #f)) ; no setup.py test command
2589 (home-page "http://docutils.sourceforge.net/")
2590 (synopsis "Python Documentation Utilities")
2592 "Docutils is a modular system for processing documentation into useful
2593 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2595 ;; Most of the source code is public domain, but some source files are
2596 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2597 (license (list public-domain psfl bsd-2 gpl3+))))
2599 (define-public python2-docutils
2600 (package-with-python2 python-docutils))
2602 (define-public python-pygments
2604 (name "python-pygments")
2609 (uri (pypi-uri "Pygments" version))
2612 "0lagrwifsgn0s8bzqahpr87p7gd38xja8f06akscinp6hj89283k"))))
2613 (build-system python-build-system)
2615 `(("python-setuptools" ,python-setuptools)))
2616 (home-page "http://pygments.org/")
2617 (synopsis "Syntax highlighting")
2619 "Pygments is a syntax highlighting package written in Python.")
2622 (define-public python2-pygments
2623 (package-with-python2 python-pygments))
2625 (define-public python-sphinx
2627 (name "python-sphinx")
2633 "https://pypi.python.org/packages/source/S/Sphinx/Sphinx-"
2637 "011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
2638 (build-system python-build-system)
2640 `(("python-setuptools" ,python-setuptools)
2641 ("python-jinja2" ,python-jinja2)
2642 ("python-docutils" ,python-docutils)
2643 ("python-pygments" ,python-pygments)))
2644 (home-page "http://sphinx-doc.org/")
2645 (synopsis "Python documentation generator")
2646 (description "Sphinx is a tool that makes it easy to create documentation
2647 for Python projects or other documents consisting of multiple reStructuredText
2651 (define-public python2-sphinx
2652 (package-with-python2 python-sphinx))
2654 (define-public python-sphinx-rtd-theme
2656 (name "python-sphinx-rtd-theme")
2661 (uri (string-append "https://pypi.python.org/packages/source/s/"
2662 "sphinx_rtd_theme/sphinx_rtd_theme-"
2666 "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
2667 (build-system python-build-system)
2669 `(;; With standard flags, the install phase attempts to create a zip'd
2670 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2672 #:configure-flags '("--single-version-externally-managed"
2673 "--record=sphinx-rtd-theme.txt")))
2675 `(("python-setuptools" ,python-setuptools)))
2677 `(("python-docutils" ,python-docutils)
2678 ("python-sphinx" ,python-sphinx)))
2679 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2680 (synopsis "ReadTheDocs.org theme for Sphinx")
2681 (description "A theme for Sphinx used by ReadTheDocs.org.")
2682 (license license:expat)))
2684 (define-public python2-sphinx-rtd-theme
2685 (package-with-python2 python-sphinx-rtd-theme))
2687 (define-public python-feedgenerator
2689 (name "python-feedgenerator")
2690 (version "20150710.97185b7")
2692 ;; Using the git checkout for now because license file not added till
2693 ;; https://github.com/dmdm/feedgenerator-py3k/commit/97185b7566c240c4bf5ed80db7d6c271204dab39
2697 (url "https://github.com/dmdm/feedgenerator-py3k.git")
2698 (commit "97185b7566c240c4bf5ed80db7d6c271204dab39")))
2701 "0dbd6apij5j1923ib905x0srgcyls4wlabqlwp4dzkwmksvnrr2a"))))
2703 `(;; With standard flags, the install phase attempts to create a zip'd
2704 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2706 #:configure-flags '("--single-version-externally-managed"
2707 "--record=feedgenerator.txt")))
2708 (build-system python-build-system)
2710 `(("python-setuptools" ,python-setuptools)
2711 ("python-pytz" ,python-pytz)
2712 ("python-six" ,python-six)))
2714 "https://github.com/dmdm/feedgenerator-py3k.git")
2716 "Standalone version of Django's Atom/RSS feed generator")
2718 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2719 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2722 (define-public python2-feedgenerator
2723 (package-with-python2 python-feedgenerator))
2725 (define-public python-blinker
2727 (name "python-blinker")
2732 (uri (pypi-uri "blinker" version))
2735 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
2736 (build-system python-build-system)
2738 `(("python-setuptools" ,python-setuptools)))
2739 ;; No "test" command supplied to setuptools, so unless there's another way
2740 ;; to run tests, we're skipping them!
2741 (arguments '(#:tests? #f))
2742 (home-page "http://pythonhosted.org/blinker/")
2743 (synopsis "Fast, simple object-to-object and broadcast signaling")
2745 "Blinker provides a fast dispatching system that allows any number of
2746 interested parties to subscribe to events, or \"signals\".")
2747 (license license:expat)))
2749 (define-public python2-blinker
2750 (package-with-python2 python-blinker))
2752 (define-public pelican
2759 (uri (pypi-uri "pelican" version))
2762 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
2763 (build-system python-build-system)
2765 `(("python-setuptools" ,python-setuptools)))
2767 `(("python-feedgenerator" ,python-feedgenerator)
2768 ("python-jinja2" ,python-jinja2)
2769 ("python-pygments" ,python-pygments)
2770 ("python-docutils" ,python-docutils)
2771 ("python-pytz" ,python-pytz)
2772 ("python-blinker" ,python-blinker)
2773 ("python-unidecode" ,python-unidecode)
2774 ("python-six" ,python-six)
2775 ("python-dateutil-2" ,python-dateutil-2)))
2776 (home-page "http://getpelican.com/")
2778 `(;; XXX Requires a lot more packages to do unit tests :P
2780 #:phases (modify-phases %standard-phases
2782 'install 'adjust-requires
2783 ;; Since feedgenerator is installed from git, it doesn't
2784 ;; conform to the version requirements.
2786 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2787 ;; version requirement so setuptools doesn't get confused.
2789 (substitute* "setup.py"
2790 (("['\"]feedgenerator.*?['\"]")
2791 "'feedgenerator'")))))))
2792 (synopsis "Python-based static site publishing system")
2794 "Pelican is a tool to generate a static blog from reStructuredText,
2795 Markdown input files, and more. Pelican uses Jinja2 for templating
2796 and is very extensible.")
2799 (define-public python-scikit-learn
2801 (name "python-scikit-learn")
2807 "https://github.com/scikit-learn/scikit-learn/archive/"
2811 "140skabifgc7lvvj873pnzlwx0ni6q8qkrsyad2ccjb3h8rxzkih"))))
2812 (build-system python-build-system)
2817 ;; some tests require access to "$HOME"
2818 (lambda _ (setenv "HOME" "/tmp"))
2819 ;; Tests can only be run after the library has been installed and not
2820 ;; within the source directory.
2824 (with-directory-excursion "/tmp"
2825 ;; With Python 3 one test of 3334 fails
2826 ;; (sklearn.tests.test_common.test_transformers); see
2827 ;; https://github.com/scikit-learn/scikit-learn/issues/3693
2828 (system* "nosetests" "-v" "sklearn")))
2829 (alist-delete 'check %standard-phases)))))
2831 `(("openblas" ,openblas)
2832 ("python-nose" ,python-nose)))
2834 `(("python-numpy" ,python-numpy)
2835 ("python-scipy" ,python-scipy)))
2836 (home-page "http://scikit-learn.org/")
2837 (synopsis "Machine Learning in Python")
2839 "Scikit-learn provides simple and efficient tools for data
2840 mining and data analysis.")
2843 (define-public python2-scikit-learn
2844 (let ((scikit (package-with-python2 python-scikit-learn)))
2845 (package (inherit scikit)
2847 `(("python2-numpy" ,python2-numpy)
2848 ("python2-scipy" ,python2-scipy)
2852 "python-scipy" (package-propagated-inputs scikit))))))))
2854 (define-public python-scikit-image
2856 (name "python-scikit-image")
2862 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2865 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2866 (build-system python-build-system)
2868 `(("python-matplotlib" ,python-matplotlib)
2869 ("python-networkx" ,python-networkx)
2870 ("python-numpy" ,python-numpy)
2871 ("python-scipy" ,python-scipy)
2872 ("python-six" ,python-six)
2873 ("python-pillow" ,python-pillow)))
2875 `(("python-cython" ,python-cython)
2876 ("python-setuptools" ,python-setuptools)))
2877 (home-page "http://scikit-image.org/")
2878 (synopsis "Image processing in Python")
2880 "Scikit-image is a collection of algorithms for image processing.")
2883 (define-public python2-scikit-image
2884 (let ((scikit-image (package-with-python2 python-scikit-image)))
2885 (package (inherit scikit-image)
2887 `(("python2-mock" ,python2-mock)
2888 ,@(package-native-inputs scikit-image)))
2890 `(("python2-pytz" ,python2-pytz)
2891 ("python2-matplotlib" ,python2-matplotlib)
2892 ("python2-numpy" ,python2-numpy)
2893 ("python2-scipy" ,python2-scipy)
2894 ,@(fold alist-delete (package-propagated-inputs scikit-image)
2895 '("python-matplotlib" "python-numpy" "python-scipy")))))))
2897 (define-public python-redis
2899 (name "python-redis")
2905 "https://pypi.python.org/packages/source/r/redis/redis-"
2908 (base32 "1701qjwn4n05q90fdg4bsg96s27xf5s4hsb4gxhv3xk052q3gyx4"))))
2909 (build-system python-build-system)
2910 ;; Tests require a running Redis server
2911 (arguments '(#:tests? #f))
2913 `(("python-setuptools" ,python-setuptools)
2914 ("python-pytest" ,python-pytest)))
2915 (home-page "https://github.com/andymccurdy/redis-py")
2916 (synopsis "Redis Python client")
2918 "This package provides a Python interface to the Redis key-value store.")
2919 (license license:expat)))
2921 (define-public python2-redis
2922 (package-with-python2 python-redis))
2924 (define-public python-rq
2932 "https://pypi.python.org/packages/source/r/rq/rq-"
2935 (base32 "0b0z5hn8wkfg300hx7816csgv3bcfamlr29fi3yzgqmpqxwj3fix"))))
2936 (build-system python-build-system)
2938 `(("python-click" ,python-click)
2939 ("python-redis" ,python-redis)))
2941 `(("python-setuptools" ,python-setuptools)))
2942 (home-page "http://python-rq.org/")
2943 (synopsis "Simple job queues for Python")
2945 "RQ (Redis Queue) is a simple Python library for queueing jobs and
2946 processing them in the background with workers. It is backed by Redis and it
2947 is designed to have a low barrier to entry.")
2950 (define-public python2-rq
2951 (package-with-python2 python-rq))
2953 (define-public python-cython
2955 (name "python-cython")
2960 (uri (pypi-uri "Cython" version))
2963 "13hdffhd37mx3gjby018xl179jaj957fy7kzi01crmimxvn2zi7y"))))
2964 (build-system python-build-system)
2965 ;; we need the full python package and not just the python-wrapper
2966 ;; because we need libpython3.3m.so
2968 `(("python" ,python)))
2973 ;; some tests require access to "$HOME/.cython"
2974 (lambda* _ (setenv "HOME" "/tmp"))
2977 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))
2978 %standard-phases))))
2979 (home-page "http://cython.org/")
2980 (synopsis "C extensions for Python")
2981 (description "Cython is an optimising static compiler for both the Python
2982 programming language and the extended Cython programming language. It makes
2983 writing C extensions for Python as easy as Python itself.")
2985 (properties `((python2-variant . ,(delay python2-cython))))))
2987 (define-public python2-cython
2988 (package (inherit (package-with-python2
2989 (strip-python2-variant python-cython)))
2990 (name "python2-cython")
2992 `(("python-2" ,python-2))))) ; this is not automatically changed
2994 ;; This version of numpy is missing the documentation and is only used to
2995 ;; build matplotlib which is required to build numpy's documentation.
2996 (define python-numpy-bootstrap
2998 (name "python-numpy-bootstrap")
3003 (uri (string-append "mirror://sourceforge/numpy"
3004 "/numpy-" version ".tar.gz"))
3007 "1bjjhvncraka5s6i4lg644jrxij6bvycxy7an20gcz3a0m11iygp"))))
3008 (build-system python-build-system)
3010 `(("python-nose" ,python-nose)
3011 ("openblas" ,openblas)
3012 ("lapack" ,lapack)))
3014 `(("gfortran" ,gfortran)))
3018 'build 'set-environment-variables
3019 (lambda* (#:key inputs #:allow-other-keys)
3020 (call-with-output-file "site.cfg"
3024 libraries = openblas
3025 library_dirs = ~a/lib
3026 include_dirs = ~a/include
3029 lapack_libs = lapack
3030 library_dirs = ~a/lib
3031 include_dirs = ~a/include
3033 (assoc-ref inputs "openblas")
3034 (assoc-ref inputs "openblas")
3035 (assoc-ref inputs "lapack")
3036 (assoc-ref inputs "lapack"))))
3037 ;; Use "gcc" executable, not "cc".
3038 (substitute* "numpy/distutils/system_info.py"
3039 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
3040 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
3042 ;; Tests can only be run after the library has been installed and not
3043 ;; within the source directory.
3047 (with-directory-excursion "/tmp"
3048 (zero? (system* "python" "-c"
3049 "import numpy; numpy.test(verbose=2)"))))
3052 %standard-phases)))))
3053 (home-page "http://www.numpy.org/")
3054 (synopsis "Fundamental package for scientific computing with Python")
3055 (description "NumPy is the fundamental package for scientific computing
3056 with Python. It contains among other things: a powerful N-dimensional array
3057 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3058 and Fortran code, useful linear algebra, Fourier transform, and random number
3062 (define python2-numpy-bootstrap
3063 (package-with-python2 python-numpy-bootstrap))
3065 (define-public python2-fastlmm
3067 (name "python2-fastlmm")
3072 (uri (pypi-uri "fastlmm" version ".zip"))
3075 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3076 (build-system python-build-system)
3078 `(#:python ,python-2)) ; only Python 2.7 is supported
3080 `(("python2-numpy" ,python2-numpy)
3081 ("python2-scipy" ,python2-scipy)
3082 ("python2-matplotlib" ,python2-matplotlib)
3083 ("python2-pandas" ,python2-pandas)
3084 ("python2-scikit-learn" ,python2-scikit-learn)
3085 ("python2-cython" ,python2-cython)
3086 ("python2-pysnptools" ,python2-pysnptools)))
3089 ("python2-mock" ,python2-mock)
3090 ("python2-setuptools" ,python2-setuptools)))
3091 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3092 (synopsis "Perform genome-wide association studies on large data sets")
3094 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3095 Models, is a program for performing both single-SNP and SNP-set genome-wide
3096 association studies (GWAS) on extremely large data sets.")
3099 (define-public python-numpy
3100 (package (inherit python-numpy-bootstrap)
3101 (name "python-numpy")
3102 (outputs '("out" "doc"))
3105 ("python-setuptools" ,python-setuptools)
3106 ("python-matplotlib" ,python-matplotlib)
3107 ("python-sphinx" ,python-sphinx)
3108 ("python-pyparsing" ,python-pyparsing)
3109 ("python-numpydoc" ,python-numpydoc)
3110 ,@(package-inputs python-numpy-bootstrap)))
3112 `(("pkg-config" ,pkg-config)
3113 ("texlive" ,texlive)
3114 ("texinfo" ,texinfo)
3116 ,@(package-native-inputs python-numpy-bootstrap)))
3118 `(,@(substitute-keyword-arguments
3119 (package-arguments python-numpy-bootstrap)
3122 'install 'install-doc
3123 (lambda* (#:key outputs #:allow-other-keys)
3124 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3126 data "/doc/" ,name "-"
3127 ,(package-version python-numpy-bootstrap)))
3128 (info (string-append data "/info"))
3129 (html (string-append doc "/html"))
3130 (pyver ,(string-append "PYVER=")))
3131 (with-directory-excursion "doc"
3133 (system* "make" "html" pyver)
3134 (system* "make" "latex" "PAPER=a4" pyver)
3135 (system* "make" "-C" "build/latex"
3136 "all-pdf" "PAPER=a4" pyver)
3137 ;; FIXME: Generation of the info file fails.
3138 ;; (system* "make" "info" pyver)
3140 ;; (copy-file "build/texinfo/numpy.info"
3141 ;; (string-append info "/numpy.info"))
3142 (for-each (lambda (file)
3143 (copy-file (string-append "build/latex" file)
3144 (string-append doc file)))
3145 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3146 (with-directory-excursion "build/html"
3147 (for-each (lambda (file)
3148 (let* ((dir (dirname file))
3149 (tgt-dir (string-append html "/" dir)))
3150 (unless (equal? "." dir)
3152 (install-file file html)))
3153 (find-files "." ".*"))))))
3156 (define-public python2-numpy
3157 (package-with-python2 python-numpy))
3159 (define-public python-pyparsing
3161 (name "python-pyparsing")
3166 (uri (string-append "mirror://sourceforge/pyparsing"
3167 "/pyparsing-" version ".tar.gz"))
3170 "0kw4py7gn45j93q8r7bzajfrjdc3xlsn2yzln41lf9zmrghjkrq6"))))
3171 (build-system python-build-system)
3172 (outputs '("out" "doc"))
3174 `(#:tests? #f ; no test target
3175 #:modules ((guix build python-build-system)
3179 'install 'install-doc
3180 (lambda* (#:key outputs #:allow-other-keys)
3181 (let* ((doc (string-append (assoc-ref outputs "doc")
3182 "/share/doc/" ,name "-" ,version))
3183 (html-doc (string-append doc "/html"))
3184 (examples (string-append doc "/examples")))
3190 (install-file file tgt))
3191 (find-files dir ".*")))
3192 (list "docs" "htmldoc" "examples")
3193 (list doc html-doc examples))))
3195 (home-page "http://pyparsing.wikispaces.com")
3196 (synopsis "Python parsing class library")
3198 "The pyparsing module is an alternative approach to creating and
3199 executing simple grammars, vs. the traditional lex/yacc approach, or the use
3200 of regular expressions. The pyparsing module provides a library of classes
3201 that client code uses to construct the grammar directly in Python code.")
3202 (license license:expat)))
3204 (define-public python2-pyparsing
3205 (package-with-python2 python-pyparsing))
3207 (define-public python-numpydoc
3209 (name "python-numpydoc")
3215 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3219 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3220 (modules '((guix build utils)))
3223 ;; Drop a test requiring matplotlib, which we cannot add as an
3224 ;; input since it would create a circular dependency: Extend the
3225 ;; test for Python 3, where it is already dropped, to Python 2.
3226 (substitute* "numpydoc/tests/test_plot_directive.py"
3228 (build-system python-build-system)
3230 `(("python-setuptools" ,python-setuptools)
3231 ("python-docutils" ,python-docutils)
3232 ("python-sphinx" ,python-sphinx)
3233 ("python-nose" ,python-nose)))
3234 (home-page "https://pypi.python.org/pypi/numpydoc")
3236 "Numpy's Sphinx extensions")
3238 "Sphinx extension to support docstrings in Numpy format.")
3241 (define-public python2-numpydoc
3242 (package-with-python2 python-numpydoc))
3244 (define-public python-numexpr
3246 (name "python-numexpr")
3251 (uri (string-append "https://pypi.python.org/packages/source/"
3252 "n/numexpr/numexpr-" version ".tar.gz"))
3255 "0nsnff5312fm38w6dm34bw7ghfqqy8vl9gig0al963h4mz8zm8nz"))))
3256 (build-system python-build-system)
3257 (arguments `(#:tests? #f)) ; no tests included
3259 `(("python-numpy" ,python-numpy)))
3260 (home-page "https://github.com/pydata/numexpr")
3261 (synopsis "Fast numerical expression evaluator for NumPy")
3263 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3264 expressions that operate on arrays are accelerated and use less memory than
3265 doing the same calculation in Python. In addition, its multi-threaded
3266 capabilities can make use of all your cores, which may accelerate
3267 computations, most specially if they are not memory-bounded (e.g. those using
3268 transcendental functions).")
3269 (license license:expat)))
3271 (define-public python2-numexpr
3272 (let ((numexpr (package-with-python2 python-numexpr)))
3273 (package (inherit numexpr)
3274 ;; Make sure to use special packages for Python 2 instead
3275 ;; of those automatically rewritten by package-with-python2.
3277 `(("python2-numpy" ,python2-numpy)
3278 ,@(alist-delete "python-numpy"
3279 (package-propagated-inputs numexpr)))))))
3281 (define-public python-matplotlib
3283 (name "python-matplotlib")
3288 (uri (string-append "mirror://sourceforge/matplotlib"
3289 "/matplotlib-" version ".tar.gz"))
3292 "1dn05cvd0g984lzhh72wa0z93psgwshbbg93fkab6slx5m3l95av"))
3293 (patches (list (search-patch "matplotlib-setupext-tk.patch")))))
3294 (build-system python-build-system)
3295 (outputs '("out" "doc"))
3296 (propagated-inputs ; the following packages are all needed at run time
3297 `(("python-pyparsing" ,python-pyparsing)
3298 ("python-pygobject" ,python-pygobject)
3299 ("gobject-introspection" ,gobject-introspection)
3300 ("python-tkinter" ,python "tk")
3301 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3302 ;; from 'gtk+') provides the required 'typelib' files used by
3303 ;; 'gobject-introspection'. The location of these files is set with the
3304 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3305 ;; is done automatically by a 'native-search-path' procedure. However,
3306 ;; at run-time the user must set this variable as follows:
3308 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
3310 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3311 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3312 ;; object. For this reason we need to import both libraries.
3313 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3314 ("python-pycairo" ,python-pycairo)
3315 ("python-cairocffi" ,python-cairocffi)))
3317 `(("python-setuptools" ,python-setuptools)
3318 ("python-dateutil" ,python-dateutil-2)
3319 ("python-six" ,python-six)
3320 ("python-pytz" ,python-pytz)
3321 ("python-numpy" ,python-numpy-bootstrap)
3322 ("python-sphinx" ,python-sphinx)
3323 ("python-numpydoc" ,python-numpydoc)
3324 ("python-nose" ,python-nose)
3325 ("python-mock" ,python-mock)
3327 ("imagemagick" ,imagemagick)
3328 ("freetype" ,freetype)
3331 ("python-pillow" ,python-pillow)
3332 ;; FIXME: Add backends when available.
3333 ;("python-wxpython" ,python-wxpython)
3334 ;("python-pyqt" ,python-pyqt)
3338 `(("pkg-config" ,pkg-config)
3339 ("texlive" ,texlive)
3340 ("texinfo" ,texinfo)))
3344 'build 'configure-environment
3345 (lambda* (#:key outputs inputs #:allow-other-keys)
3346 (let ((cairo (assoc-ref inputs "cairo"))
3347 (gtk+ (assoc-ref inputs "gtk+")))
3348 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3350 (setenv "LD_LIBRARY_PATH"
3351 (string-append cairo "/lib:" gtk+ "/lib"))
3352 (setenv "HOME" (getcwd))
3353 (call-with-output-file "setup.cfg"
3355 (format port "[directories]~%
3356 basedirlist = ~a,~a~%
3359 (assoc-ref inputs "tcl")
3360 (assoc-ref inputs "tk"))))))
3362 'install 'install-doc
3363 (lambda* (#:key outputs #:allow-other-keys)
3364 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3365 (doc (string-append data "/doc/" ,name "-" ,version))
3366 (info (string-append data "/info"))
3367 (html (string-append doc "/html")))
3368 (with-directory-excursion "doc"
3369 ;; Produce pdf in 'A4' format.
3370 (substitute* (find-files "." "conf\\.py")
3371 (("latex_paper_size = 'letter'")
3372 "latex_paper_size = 'a4'"))
3375 ;; The doc recommends to run the 'html' target twice.
3376 (system* "python" "make.py" "html")
3377 (system* "python" "make.py" "html")
3378 (copy-recursively "build/html" html)
3379 (system* "python" "make.py" "latex")
3380 (system* "python" "make.py" "texinfo")
3381 (symlink (string-append html "/_images")
3382 (string-append info "/matplotlib-figures"))
3383 (with-directory-excursion "build/texinfo"
3384 (substitute* "matplotlib.texi"
3385 (("@image\\{([^,]*)" all file)
3386 (string-append "@image{matplotlib-figures/" file)))
3387 (symlink (string-append html "/_images")
3388 "./matplotlib-figures")
3389 (system* "makeinfo" "--no-split"
3390 "-o" "matplotlib.info" "matplotlib.texi"))
3391 (copy-file "build/texinfo/matplotlib.info"
3392 (string-append info "/matplotlib.info"))
3393 (copy-file "build/latex/Matplotlib.pdf"
3394 (string-append doc "/Matplotlib.pdf")))))
3395 %standard-phases))))
3396 (home-page "http://matplotlib.org")
3397 (synopsis "2D plotting library for Python")
3399 "Matplotlib is a Python 2D plotting library which produces publication
3400 quality figures in a variety of hardcopy formats and interactive environments
3401 across platforms. Matplotlib can be used in Python scripts, the python and
3402 ipython shell, web application servers, and six graphical user interface
3405 (properties `((python2-variant . ,(delay python2-matplotlib))))))
3407 (define-public python2-matplotlib
3408 (let ((matplotlib (package-with-python2
3409 (strip-python2-variant python-matplotlib))))
3410 (package (inherit matplotlib)
3411 ;; Make sure to use special packages for Python 2 instead
3412 ;; of those automatically rewritten by package-with-python2.
3414 `(("python2-pycairo" ,python2-pycairo)
3415 ("python2-pygobject-2" ,python2-pygobject-2)
3416 ("python2-tkinter" ,python-2 "tk")
3417 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3418 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
3420 (define-public python2-pysnptools
3422 (name "python2-pysnptools")
3427 (uri (pypi-uri "pysnptools" version ".zip"))
3430 "15f4j4w5q603i7mlphb5r6mb1mn33pqg81595fpjp158140yqx7b"))))
3431 (build-system python-build-system)
3433 `(#:python ,python-2)) ; only Python 2.7 is supported
3435 `(("python2-numpy" ,python2-numpy)
3436 ("python2-scipy" ,python2-scipy)
3437 ("python2-pandas" ,python2-pandas)
3438 ("python2-cython" ,python2-cython)))
3441 ("python2-setuptools" ,python2-setuptools)))
3442 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3443 (synopsis "Library for reading and manipulating genetic data")
3445 "PySnpTools is a library for reading and manipulating genetic data. It
3446 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3447 those files. It can also efficiently manipulate ranges of integers using set
3448 operators such as union, intersection, and difference.")
3451 (define-public python-rpy2
3453 (name "python-rpy2")
3458 (uri (pypi-uri "rpy2" version))
3461 "0nhan2qvrw7b7gg5zddwa22kybdv3x1g26vkd7q8lvnkgzrs4dga"))))
3462 (build-system python-build-system)
3464 `(("python-six" ,python-six)
3465 ("readline" ,readline)
3470 `(("python-setuptools" ,python-setuptools)
3472 (home-page "http://rpy.sourceforge.net/")
3473 (synopsis "Python interface to the R language")
3474 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3475 low-level interface to R from Python, a proposed high-level interface,
3476 including wrappers to graphical libraries, as well as R-like structures and
3480 (define-public python2-rpy2
3481 (let ((rpy2 (package-with-python2 python-rpy2)))
3482 (package (inherit rpy2)
3484 `(("python2-singledispatch" ,python2-singledispatch)
3485 ,@(package-native-inputs rpy2))))))
3487 (define-public python-scipy
3489 (name "python-scipy")
3494 (uri (string-append "mirror://sourceforge/scipy"
3495 "/scipy-" version ".tar.xz"))
3498 "0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
3499 (build-system python-build-system)
3501 `(("python-numpy" ,python-numpy)
3502 ("python-matplotlib" ,python-matplotlib)
3503 ("python-pyparsing" ,python-pyparsing)))
3505 `(("lapack" ,lapack)
3506 ("openblas" ,openblas)))
3508 `(("python-nose" ,python-nose)
3509 ("python-sphinx" ,python-sphinx)
3510 ("python-numpydoc" ,python-numpydoc)
3511 ("gfortran" ,gfortran)
3512 ("texlive" ,texlive)
3514 (outputs '("out" "doc"))
3518 'build 'configure-openblas
3519 (lambda* (#:key inputs #:allow-other-keys)
3520 (call-with-output-file "site.cfg"
3524 libraries = openblas
3525 library_dirs = ~a/lib
3526 include_dirs = ~a/include
3528 library_dirs = ~a/lib
3529 atlas_libs = openblas
3531 (assoc-ref inputs "openblas")
3532 (assoc-ref inputs "openblas")
3533 (assoc-ref inputs "openblas"))))
3536 'install 'install-doc
3537 (lambda* (#:key outputs #:allow-other-keys)
3538 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3539 (doc (string-append data "/doc/" ,name "-" ,version))
3540 (html (string-append doc "/html"))
3541 (pyver ,(string-append "PYVER=")))
3542 (with-directory-excursion "doc"
3543 ;; Fix generation of images for mathematical expressions.
3544 (substitute* (find-files "source" "conf\\.py")
3545 (("pngmath_use_preview = True")
3546 "pngmath_use_preview = False"))
3548 (system* "make" "html" pyver)
3549 (system* "make" "latex" "PAPER=a4" pyver)
3550 (system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
3551 (copy-file "build/latex/scipy-ref.pdf"
3552 (string-append doc "/scipy-ref.pdf"))
3553 (with-directory-excursion "build/html"
3554 (for-each (lambda (file)
3555 (let* ((dir (dirname file))
3556 (tgt-dir (string-append html "/" dir)))
3557 (install-file file html)))
3558 (find-files "." ".*"))))))
3559 ;; Tests can only be run after the library has been installed and not
3560 ;; within the source directory.
3564 (with-directory-excursion "/tmp"
3565 (zero? (system* "python" "-c" "import scipy; scipy.test()"))))
3571 (substitute* "scipy/integrate/tests/test_quadpack.py"
3572 (("libm.so") "libm.so.6"))
3574 %standard-phases)))))))
3575 (home-page "http://www.scipy.org/")
3576 (synopsis "The Scipy library provides efficient numerical routines")
3577 (description "The SciPy library is one of the core packages that make up
3578 the SciPy stack. It provides many user-friendly and efficient numerical
3579 routines such as routines for numerical integration and optimization.")
3582 (define-public python2-scipy
3583 (package-with-python2 python-scipy))
3585 (define-public python-sqlalchemy
3587 (name "python-sqlalchemy")
3592 (uri (string-append "https://pypi.python.org/packages/source/S/"
3593 "SQLAlchemy/SQLAlchemy-" version ".tar.gz"))
3596 "1l8qclhd0s90w3pvwhi5mjxdwr5j7gw7cjka2fx6f2vqmq7f4yb6"))))
3597 (build-system python-build-system)
3599 `(("python-cython" ,python-cython) ;for c extensions
3600 ("python-pytest" ,python-pytest)
3601 ("python-mock" ,python-mock))) ;for tests
3603 `(#:phases (alist-replace
3605 (lambda _ (zero? (system* "py.test")))
3607 (home-page "http://www.sqlalchemy.org")
3608 (synopsis "Database abstraction library")
3610 "SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that
3611 gives application developers the full power and flexibility of SQL. It
3612 provides a full suite of well known enterprise-level persistence patterns,
3613 designed for efficient and high-performing database access, adapted into a
3614 simple and Pythonic domain language.")
3617 (define-public python2-sqlalchemy
3618 (package-with-python2 python-sqlalchemy))
3620 (define-public python-alembic
3622 (name "python-alembic")
3627 (uri (pypi-uri "alembic" version))
3630 "0jk23a852l3ybv7gfz81xzslyrnqnpjds5x15zd234y9rh9gq1w5"))))
3631 (build-system python-build-system)
3633 `(("python-mock" ,python-mock)
3634 ("python-pytest-cov" ,python-pytest-cov)))
3636 `(("python-sqlalchemy" ,python-sqlalchemy)
3637 ("python-mako" ,python-mako)
3638 ("python-editor" ,python-editor)))
3639 (home-page "http://bitbucket.org/zzzeek/alembic")
3641 "Database migration tool for SQLAlchemy")
3643 "Alembic is a lightweight database migration tool for usage with the
3644 SQLAlchemy Database Toolkit for Python.")
3645 (license license:expat)
3646 (properties `((python2-variant . ,(delay python2-alembic))))))
3648 (define-public python2-alembic
3649 (let ((alembic (package-with-python2
3650 (strip-python2-variant python-alembic))))
3653 (native-inputs `(("python2-setuptools" ,python2-setuptools)
3654 ,@(package-native-inputs alembic))))))
3656 (define-public python-distutils-extra
3658 (name "python-distutils-extra")
3663 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3664 version "/+download/python-distutils-extra-"
3668 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3669 (build-system python-build-system)
3671 `(("python-setuptools" ,python-setuptools)))
3672 (home-page "https://launchpad.net/python-distutils-extra/")
3673 (synopsis "Enhancements to Python's distutils")
3675 "The python-distutils-extra module enables you to easily integrate
3676 gettext support, themed icons, and scrollkeeper-based documentation into
3677 Python's distutils.")
3680 (define-public python2-distutils-extra
3681 (package-with-python2 python-distutils-extra))
3683 (define-public python2-elib.intl
3685 (name "python2-elib.intl")
3689 ;; This project doesn't tag releases or publish tarballs, so we take
3690 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3693 (url "https://github.com/dieterv/elib.intl.git")
3694 (commit "d09997cfef")))
3697 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3698 (build-system python-build-system)
3700 `(("python2-setuptools" ,python2-setuptools)))
3702 ;; incompatible with Python 3 (exception syntax)
3703 `(#:python ,python-2
3705 ;; With standard flags, the install phase attempts to create a zip'd
3706 ;; egg file, and fails with an error: 'ZIP does not support timestamps
3708 #:configure-flags '("--single-version-externally-managed"
3709 "--record=elib.txt")))
3710 (home-page "https://github.com/dieterv/elib.intl")
3711 (synopsis "Enhanced internationalization for Python")
3713 "The elib.intl module provides enhanced internationalization (I18N)
3714 services for your Python modules and applications.")
3717 (define-public python-pillow
3719 (name "python-pillow")
3724 (uri (pypi-uri "Pillow" version))
3727 "1zwzakr5v0skdh0azp5cd6fwzbll5305dsk33k5jk570vv6lqvs8"))))
3728 (build-system python-build-system)
3730 `(("python-setuptools" ,python-setuptools)
3731 ("python-nose" ,python-nose)))
3733 `(("freetype" ,freetype)
3736 ("libjpeg" ,libjpeg)
3737 ("openjpeg" ,openjpeg)
3738 ("libtiff" ,libtiff)
3739 ("libwebp" ,libwebp)))
3741 `(;; Used at runtime for pkg_resources
3742 ("python-setuptools" ,python-setuptools)))
3744 `(#:phases (modify-phases %standard-phases
3746 'install 'disable-egg-compression
3748 ;; Leave the .egg uncompressed since compressing it would
3749 ;; prevent the GC from identifying run-time dependencies.
3750 ;; See <http://bugs.gnu.org/20765>.
3751 (let ((port (open-file "setup.cfg" "a")))
3752 (display "\n[easy_install]\nzip_ok = 0\n"
3757 'install 'check-installed
3760 (setenv "HOME" (getcwd))
3761 (and (zero? (system* "python" "selftest.py"
3763 (zero? (system* "python" "test-installed.py"))))))
3765 (home-page "https://pypi.python.org/pypi/Pillow")
3766 (synopsis "Fork of the Python Imaging Library")
3768 "The Python Imaging Library adds image processing capabilities to your
3769 Python interpreter. This library provides extensive file format support, an
3770 efficient internal representation, and fairly powerful image processing
3771 capabilities. The core image library is designed for fast access to data
3772 stored in a few basic pixel formats. It should provide a solid foundation for
3773 a general image processing tool.")
3775 "http://www.pythonware.com/products/pil/license.htm"
3776 "The PIL Software License"))))
3778 (define-public python2-pillow
3779 (package-with-python2 python-pillow))
3781 (define-public python-pycparser
3783 (name "python-pycparser")
3788 (uri (pypi-uri "pycparser" version))
3791 "0wvzyb6rxsfj3xcnpa4ynbh9qc7rrbk2277d5wqpphmx9akv8nbr"))))
3792 (outputs '("out" "doc"))
3793 (build-system python-build-system)
3795 `(("pkg-config" ,pkg-config)
3796 ("python-setuptools" ,python-setuptools)))
3802 (with-directory-excursion "tests"
3803 (zero? (system* "python" "all_tests.py"))))
3805 'install 'install-doc
3806 (lambda* (#:key outputs #:allow-other-keys)
3807 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3808 (doc (string-append data "/doc/" ,name "-" ,version))
3809 (examples (string-append doc "/examples")))
3811 (for-each (lambda (file)
3812 (copy-file (string-append "." file)
3813 (string-append doc file)))
3814 '("/README.rst" "/CHANGES" "/LICENSE"))
3815 (copy-recursively "examples" examples)))
3816 %standard-phases))))
3817 (home-page "https://github.com/eliben/pycparser")
3818 (synopsis "C parser in Python")
3820 "Pycparser is a complete parser of the C language, written in pure Python
3821 using the PLY parsing library. It parses C code into an AST and can serve as
3822 a front-end for C compilers or analysis tools.")
3825 (define-public python2-pycparser
3826 (package-with-python2 python-pycparser))
3828 (define-public python-cffi
3830 (name "python-cffi")
3835 (uri (pypi-uri "cffi" version))
3837 (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
3838 (build-system python-build-system)
3839 (outputs '("out" "doc"))
3841 `(("libffi" ,libffi)))
3842 (propagated-inputs ; required at run-time
3843 `(("python-pycparser" ,python-pycparser)))
3845 `(("pkg-config" ,pkg-config)
3846 ("python-sphinx" ,python-sphinx)
3847 ("python-pytest" ,python-pytest)
3848 ("python-setuptools" ,python-setuptools)))
3852 'install 'install-doc
3853 (lambda* (#:key outputs #:allow-other-keys)
3854 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3855 (doc (string-append data "/doc/" ,name "-" ,version))
3856 (html (string-append doc "/html")))
3857 (with-directory-excursion "doc"
3858 (system* "make" "html")
3860 (copy-recursively "build/html" html))
3861 (copy-file "LICENSE" (string-append doc "/LICENSE"))))
3863 (home-page "http://cffi.readthedocs.org")
3864 (synopsis "Foreign function interface for Python")
3866 "Foreign Function Interface for Python calling C code.")
3867 (license license:expat)))
3869 (define-public python2-cffi
3870 (package-with-python2 python-cffi))
3872 (define-public python-xcffib
3874 (name "python-xcffib")
3879 (uri (string-append "https://pypi.python.org/packages/source/x/"
3880 "xcffib/xcffib-" version ".tar.gz"))
3883 "0655hzxv57h1a9ja9kwp0ichbkhf3djw32k33d66xp0q37dq2y81"))))
3884 (build-system python-build-system)
3886 `(("libxcb" ,libxcb)
3887 ("python-six" ,python-six)))
3889 `(("python-setuptools" ,python-setuptools)))
3891 `(("python-cffi" ,python-cffi))) ; used at run time
3895 'install 'install-doc
3896 (lambda* (#:key outputs #:allow-other-keys)
3897 (let ((doc (string-append (assoc-ref outputs "out") "/share"
3898 "/doc/" ,name "-" ,version)))
3900 (copy-file "README.md"
3901 (string-append doc "/README.md"))))
3903 (home-page "https://github.com/tych0/xcffib")
3904 (synopsis "XCB Python bindings")
3906 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
3907 support for Python 3 and PyPy. It is based on cffi.")
3908 (license license:expat)))
3910 (define-public python2-xcffib
3911 (package-with-python2 python-xcffib))
3913 (define-public python-cairocffi
3915 (name "python-cairocffi")
3920 ;; The archive on pypi is missing the 'utils' directory!
3921 (uri (string-append "https://github.com/SimonSapin/cairocffi/archive/v"
3923 (file-name (string-append name "-" version ".tar.gz"))
3926 "03w5p62sp3nqiccx864sbq0jvh7946277jqx3rcc3dch5xwfvv51"))))
3927 (build-system python-build-system)
3928 (outputs '("out" "doc"))
3930 `(("gdk-pixbuf" ,gdk-pixbuf)
3933 `(("pkg-config" ,pkg-config)
3934 ("python-sphinx" ,python-sphinx)
3935 ("python-docutils" ,python-docutils)
3936 ("python-setuptools" ,python-setuptools)))
3938 `(("python-xcffib" ,python-xcffib))) ; used at run time
3942 'install 'install-doc
3943 (lambda* (#:key inputs outputs #:allow-other-keys)
3944 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3945 (doc (string-append data "/doc/" ,name "-" ,version))
3946 (html (string-append doc "/html")))
3947 (setenv "LD_LIBRARY_PATH"
3948 (string-append (assoc-ref inputs "cairo") "/lib" ":"
3949 (assoc-ref inputs "gdk-pixbuf") "/lib"))
3950 (setenv "LANG" "en_US.UTF-8")
3952 (for-each (lambda (file)
3953 (copy-file (string-append "." file)
3954 (string-append doc file)))
3955 '("/README.rst" "/CHANGES" "/LICENSE"))
3956 (system* "python" "setup.py" "build_sphinx")
3957 (copy-recursively "docs/_build/html" html)))
3959 (home-page "https://github.com/SimonSapin/cairocffi")
3960 (synopsis "Python bindings and object-oriented API for Cairo")
3962 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
3963 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
3964 graphics library with support for multiple backends including image buffers,
3965 PNG, PostScript, PDF, and SVG file output.")
3968 (define-public python2-cairocffi
3969 (package-with-python2 python-cairocffi))
3971 (define-public python-decorator
3973 (name "python-decorator")
3978 (uri (pypi-uri "decorator" version))
3980 (base32 "1a5vwhflfd9sh3rfb40xlyipldgdzfff6brman57hqv3661jw0lh"))))
3981 (build-system python-build-system)
3982 (arguments '(#:tests? #f)) ; no test target
3984 `(("python-setuptools" ,python-setuptools)))
3985 (home-page "https://pypi.python.org/pypi/decorator/")
3986 (synopsis "Python module to simplify usage of decorators")
3988 "The aim of the decorator module is to simplify the usage of decorators
3989 for the average programmer, and to popularize decorators usage giving examples
3990 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
3991 etc. The core of this module is a decorator factory.")
3992 (license license:expat)))
3994 (define-public python2-decorator
3995 (package-with-python2 python-decorator))
3997 (define-public python-drmaa
3999 (name "python-drmaa")
4005 "https://pypi.python.org/packages/source/d/drmaa/drmaa-"
4008 (base32 "0bzl9f9g34dlhwf09i3fdv7dqqzf2iq0w7d6c2bafx1nlap8qfbh"))))
4009 (build-system python-build-system)
4010 ;; The test suite requires libdrmaa which is provided by the cluster
4011 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
4012 ;; should be set to the path of the libdrmaa library.
4013 (arguments '(#:tests? #f))
4015 `(("python-nose" ,python-nose)
4016 ("python-setuptools" ,python-setuptools)))
4017 (home-page "https://pypi.python.org/pypi/drmaa")
4018 (synopsis "Python bindings for the DRMAA library")
4020 "A Python package for Distributed Resource Management (DRM) job
4021 submission and control. This package is an implementation of the DRMAA 1.0
4022 Python language binding specification.")
4025 (define-public python2-drmaa
4026 (package-with-python2 python-drmaa))
4028 (define-public python-gridmap
4030 (name "python-gridmap")
4036 "https://github.com/pygridtools/gridmap/archive/v"
4038 (file-name (string-append name "-" version ".tar.gz"))
4040 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
4041 (build-system python-build-system)
4043 `(("python-psutil" ,python-psutil)
4044 ("python-drmaa" ,python-drmaa)
4045 ("python-pyzmq" ,python-pyzmq)))
4047 `(("python-setuptools" ,python-setuptools)))
4048 (home-page "https://github.com/pygridtools/gridmap")
4049 (synopsis "Create jobs on a cluster directly from Python")
4051 "Gridmap is a Python package to allow you to easily create jobs on the
4052 cluster directly from Python. You can directly map Python functions onto the
4053 cluster without needing to write any wrapper code yourself.")
4056 (define-public python2-gridmap
4057 (package-with-python2 python-gridmap))
4059 (define-public python-pexpect
4061 (name "python-pexpect")
4066 (uri (string-append "https://pypi.python.org/packages/source/p/"
4067 "pexpect/pexpect-" version ".tar.gz"))
4069 (base32 "1fp5gm976z7ghm8jw57463rj19cv06c8zw842prgyg788f6n3snz"))))
4070 (build-system python-build-system)
4073 (modify-phases %standard-phases
4074 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4076 `(("python-nose" ,python-nose)))
4077 (home-page "http://pexpect.readthedocs.org/")
4078 (synopsis "Controlling interactive console applications")
4080 "Pexpect is a pure Python module for spawning child applications;
4081 controlling them; and responding to expected patterns in their output.
4082 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4083 child application and control it as if a human were typing commands.")
4086 (define-public python2-pexpect
4087 (package-with-python2 python-pexpect))
4089 (define-public python-setuptools-scm
4091 (name "python-setuptools-scm")
4095 (uri (pypi-uri "setuptools_scm" version))
4098 "0y24bl893zk6nrklbvdrlmpkalf214zjn6k1xrglljd29rrn4wxi"))))
4099 (build-system python-build-system)
4100 (native-inputs `(("python-setuptools" ,python-setuptools)))
4101 (home-page "https://github.com/pypa/setuptools_scm/")
4102 (synopsis "Manage Python package versions in SCM metadata")
4104 "Setuptools_scm handles managing your Python package versions in
4105 @dfn{software configuration management} (SCM) metadata instead of declaring
4106 them as the version argument or in a SCM managed file.")
4107 (license license:expat)))
4109 (define-public python2-setuptools-scm
4110 (package-with-python2 python-setuptools-scm))
4112 (define-public python-pathpy
4114 (name "python-pathpy")
4119 (uri (string-append "https://pypi.python.org/packages/source/p/"
4120 "path.py/path.py-" version ".tar.gz"))
4122 (base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
4123 (build-system python-build-system)
4125 `(("python-appdirs" ,python-appdirs)))
4127 `(("python-setuptools" ,python-setuptools)
4128 ("python-setuptools-scm" ,python-setuptools-scm)
4129 ("python-pytest" ,python-pytest)
4130 ("python-pytest-runner" ,python-pytest-runner)))
4131 (home-page "http://github.com/jaraco/path.py")
4132 (synopsis "Python module wrapper for built-in os.path")
4134 "@code{path.py} implements path objects as first-class entities, allowing
4135 common operations on files to be invoked on those path objects directly.")
4136 (license license:expat)))
4138 (define-public python2-pathpy
4139 (package-with-python2 python-pathpy))
4141 (define-public python-pickleshare
4143 (name "python-pickleshare")
4148 (uri (string-append "https://pypi.python.org/packages/source/p/"
4149 "pickleshare/pickleshare-" version ".tar.gz"))
4151 (base32 "11ljr90j3p6qswdrbl7p4cjb2i93f6vn0vx9anzpshsx0d2mggn0"))))
4152 (build-system python-build-system)
4154 `(("python-pathpy" ,python-pathpy)))
4156 `(("python-setuptools" ,python-setuptools)))
4157 (home-page "https://github.com/vivainio/pickleshare")
4158 (synopsis "Tiny key value database with concurrency support")
4160 "PickleShare is a small ‘shelve’-like datastore with concurrency support.
4161 Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
4162 shelve, many processes can access the database simultaneously. Changing a
4163 value in database is immediately visible to other processes accessing the same
4164 database. Concurrency is possible because the values are stored in separate
4165 files. Hence the “database” is a directory where all files are governed by
4167 (license license:expat)))
4169 (define-public python2-pickleshare
4170 (package-with-python2 python-pickleshare))
4172 (define-public python-simplegeneric
4174 (name "python-simplegeneric")
4179 (uri (string-append "https://pypi.python.org/packages/source/s/"
4180 "simplegeneric/simplegeneric-" version ".zip"))
4182 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4183 (build-system python-build-system)
4185 `(("python-setuptools" ,python-setuptools)
4187 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4188 (synopsis "Python module for simple generic functions")
4190 "The simplegeneric module lets you define simple single-dispatch generic
4191 functions, akin to Python’s built-in generic functions like @code{len()},
4192 @code{iter()} and so on. However, instead of using specially-named methods,
4193 these generic functions use simple lookup tables, akin to those used by
4194 e.g. @code{pickle.dump()} and other generic functions found in the Python
4198 (define-public python2-simplegeneric
4199 (package-with-python2 python-simplegeneric))
4201 (define-public python-ipython-genutils
4203 (name "python-ipython-genutils")
4208 (uri (string-append "https://pypi.python.org/packages/source/i/"
4209 "ipython_genutils/ipython_genutils-"
4212 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4213 (build-system python-build-system)
4214 (arguments `(#:tests? #f)) ; no tests
4215 (home-page "http://ipython.org")
4216 (synopsis "Vestigial utilities from IPython")
4218 "This package provides retired utilities from IPython.")
4221 (define-public python2-ipython-genutils
4222 (package-with-python2 python-ipython-genutils))
4224 (define-public python-traitlets
4226 (name "python-traitlets")
4231 (uri (pypi-uri "traitlets" version))
4234 "0nxgj8jxlm1kqf8cx2x7vjid05zdgbxpqhjbdl46r8njlpgkh3j4"))))
4235 (build-system python-build-system)
4238 (modify-phases %standard-phases
4239 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4241 `(("python-ipython-genutils" ,python-ipython-genutils)
4242 ("python-decorator" ,python-decorator)))
4244 `(("python-mock" ,python-mock)
4245 ("python-nose" ,python-nose)))
4246 (home-page "http://ipython.org")
4247 (synopsis "Configuration system for Python applications")
4249 "Traitlets is a framework that lets Python classes have attributes with
4250 type checking, dynamically calculated default values, and ‘on change’
4251 callbacks. The package also includes a mechanism to use traitlets for
4252 configuration, loading values from files or from command line arguments. This
4253 is a distinct layer on top of traitlets, so you can use traitlets in your code
4254 without using the configuration machinery.")
4257 (define-public python2-traitlets
4258 (package-with-python2 python-traitlets))
4260 (define-public python-ipython
4262 (name "python-ipython")
4267 (patches (list (search-patch "python-ipython-inputhook-ctype.patch")))
4268 (uri (string-append "https://pypi.python.org/packages/source/i/"
4269 "ipython/ipython-" version ".tar.gz"))
4271 (base32 "0xwin0sa9n0cabx4cq1ibf5ldsiw5dyimibla82kicz5gbpas4y9"))))
4272 (build-system python-build-system)
4273 (outputs '("out" "doc"))
4275 `(("python-pyzmq" ,python-pyzmq)
4276 ("python-terminado" ,python-terminado)))
4278 `(("readline" ,readline)
4280 ("python-matplotlib" ,python-matplotlib)
4281 ("python-numpy" ,python-numpy)
4282 ("python-numpydoc" ,python-numpydoc)
4283 ("python-jinja2" ,python-jinja2)
4284 ("python-mistune" ,python-mistune)
4285 ("python-jsonschema" ,python-jsonschema)
4286 ("python-pygments" ,python-pygments)
4287 ("python-requests" ,python-requests) ;; for tests
4288 ("python-nose" ,python-nose)))
4290 `(("pkg-config" ,pkg-config)
4291 ("python-sphinx" ,python-sphinx)
4292 ("texlive" ,texlive)
4293 ("texinfo" ,texinfo)
4294 ("python-setuptools" ,python-setuptools)))
4297 (modify-phases %standard-phases
4299 'install 'install-doc
4300 (lambda* (#:key inputs outputs #:allow-other-keys)
4301 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4302 (doc (string-append data "/doc/" ,name "-" ,version))
4303 (html (string-append doc "/html"))
4304 (man1 (string-append data "/man/man1"))
4305 (info (string-append data "/info"))
4306 (examples (string-append doc "/examples")))
4307 (setenv "LANG" "en_US.utf8")
4308 (with-directory-excursion "docs"
4309 ;; FIXME: html and pdf fail to build
4310 ;; (system* "make" "html")
4311 ;; (system* "make" "pdf" "PAPER=a4")
4312 (system* "make" "info"))
4313 (copy-recursively "docs/man" man1)
4314 (copy-recursively "examples" examples)
4315 ;; (copy-recursively "docs/build/html" html)
4316 ;; (copy-file "docs/build/latex/ipython.pdf"
4317 ;; (string-append doc "/ipython.pdf"))
4319 (copy-file "docs/build/texinfo/ipython.info"
4320 (string-append info "/ipython.info"))
4321 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4322 ;; Tests can only be run after the library has been installed and not
4323 ;; within the source directory.
4327 (lambda* (#:key outputs tests? #:allow-other-keys)
4329 (with-directory-excursion "/tmp"
4330 (setenv "HOME" "/tmp/") ;; required by a test
4331 (zero? (system* (string-append (assoc-ref outputs "out")
4336 (lambda* (#:key inputs #:allow-other-keys)
4337 (substitute* "./IPython/utils/_process_posix.py"
4338 (("/usr/bin/env', 'which") (which "which")))
4339 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4340 (("#!/usr/bin/env python")
4341 (string-append "#!" (which "python"))))
4342 ;; Disable 1 failing test
4343 (substitute* "./IPython/core/tests/test_magic.py"
4344 (("def test_dirops\\(\\):" all)
4345 (string-append "@dec.skipif(True)\n" all))))))))
4346 (home-page "http://ipython.org")
4347 (synopsis "IPython is a tool for interactive computing in Python")
4349 "IPython provides a rich architecture for interactive computing with:
4350 Powerful interactive shells, a browser-based notebook, support for interactive
4351 data visualization, embeddable interpreters and tools for parallel
4355 (define-public python2-ipython
4356 (let ((ipython (package-with-python2 python-ipython)))
4359 ;; FIXME: some tests are failing
4361 `(#:tests? #f ,@(package-arguments ipython)))
4362 ;; Make sure we use custom python2-NAME packages.
4363 ;; FIXME: add pyreadline once available.
4365 `(("python2-terminado" ,python2-terminado)
4366 ,@(alist-delete "python-terminado"
4367 (package-propagated-inputs ipython))))
4369 `(("python2-jsonschema" ,python2-jsonschema)
4370 ("python2-mock" ,python2-mock)
4371 ("python2-matplotlib" ,python2-matplotlib)
4372 ("python2-numpy" ,python2-numpy)
4373 ("python2-requests" ,python2-requests)
4374 ,@(fold alist-delete (package-inputs ipython)
4375 '("python-jsonschema" "python-matplotlib" "python-numpy" "python-requests")))))))
4377 (define-public python-isodate
4379 (name "python-isodate")
4384 (uri (pypi-uri "isodate" version))
4387 "0cafaiwixgpxwh9dsd28qb0dbzsj6xpxjdkyk30ns91ps10mq422"))))
4388 (build-system python-build-system)
4390 `(("python-setuptools" ,python-setuptools)))
4392 "http://cheeseshop.python.org/pypi/isodate")
4394 "Python date parser and formatter")
4396 "Python-isodate is a python module for parsing and formatting
4397 ISO 8601 dates, time and duration.")
4400 (define-public python2-isodate
4401 (package-with-python2 python-isodate))
4403 (define-public python-html5lib
4405 (name "python-html5lib")
4410 (uri (pypi-uri "html5lib" version))
4413 "1lknq5j3nh11xrl268ks76zaj0gyzh34v94n5vbf6dk8llzxdx0q"))))
4414 (build-system python-build-system)
4416 `(("python-six" ,python-six))) ; required to "import html5lib"
4418 `(("python-setuptools" ,python-setuptools)))
4420 `(#:test-target "check"))
4422 "https://github.com/html5lib/html5lib-python")
4424 "Python HTML parser based on the WHATWG HTML specifcation")
4426 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
4427 and written in Python.")
4428 (license license:expat)))
4430 (define-public python2-html5lib
4431 (package-with-python2 python-html5lib))
4433 (define-public python-urwid
4435 (name "python-urwid")
4440 (uri (pypi-uri "urwid" version))
4443 "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19"))))
4444 (build-system python-build-system)
4447 (modify-phases %standard-phases
4448 ;; Disable failing test. Bug filed upstream:
4449 ;; https://github.com/wardi/urwid/issues/164
4450 ;; TODO: check again for python-urwid > 1.3.0 or python > 3.4.3.
4451 (add-after 'unpack 'disable-failing-test
4453 (substitute* "urwid/tests/test_event_loops.py"
4454 (("test_remove_watch_file")
4455 "disable_remove_watch_file")))))))
4456 (native-inputs `(("python-setuptools" ,python-setuptools)))
4457 (home-page "http://urwid.org")
4458 (synopsis "Console user interface library for Python")
4460 "Urwid is a curses-based UI/widget library for Python. It includes many
4461 features useful for text console applications.")
4462 (license lgpl2.1+)))
4464 (define-public python2-urwid
4465 (package-with-python2 python-urwid))
4467 (define-public python-dbus
4469 (name "python-dbus")
4475 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
4478 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
4479 (build-system gnu-build-system)
4482 (modify-phases %standard-phases
4486 ;; XXX: For the missing '/etc/machine-id'.
4487 (substitute* "test/run-test.sh"
4488 (("DBUS_FATAL_WARNINGS=1")
4489 "DBUS_FATAL_WARNINGS=0"))
4492 `(("pkg-config" ,pkg-config)))
4494 `(("python" ,python)
4495 ("dbus-glib" ,dbus-glib)))
4496 (synopsis "Python bindings for D-bus")
4497 (description "python-dbus provides bindings for libdbus, the reference
4498 implementation of D-Bus.")
4499 (home-page "http://www.freedesktop.org/wiki/Software/DBusBindings/")
4500 (license license:expat)))
4502 (define-public python2-dbus
4503 (package (inherit python-dbus)
4504 (name "python2-dbus")
4505 (inputs `(("python" ,python-2)
4506 ,@(alist-delete "python"
4507 (package-inputs python-dbus)
4509 ;; FIXME: on Python 2, the test_utf8 fails with:
4510 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
4511 (arguments `(#:tests? #f))))
4513 (define-public python-apsw
4515 (name "python-apsw")
4516 (version "3.9.2-r1")
4520 (uri (pypi-uri "apsw" version))
4523 "0w4jb0wpx785qw42r3h4fh7gl5w2968q48i7gygybsfxck8nzffs"))))
4524 (build-system python-build-system)
4526 `(("python-setuptools" ,python-setuptools)
4527 ("sqlite" ,sqlite)))
4530 ;; swap check and install phases
4533 (assoc-ref %standard-phases 'check)
4536 %standard-phases))))
4537 (home-page "https://github.com/rogerbinns/apsw/")
4538 (synopsis "Another Python SQLite Wrapper")
4539 (description "APSW is a Python wrapper for the SQLite
4540 embedded relational database engine. In contrast to other wrappers such as
4541 pysqlite it focuses on being a minimal layer over SQLite attempting just to
4542 translate the complete SQLite API into Python.")
4543 (license license:zlib)))
4545 (define-public python2-apsw
4546 (package-with-python2 python-apsw))
4548 (define-public python-lxml
4550 (name "python-lxml")
4555 (uri (pypi-uri "lxml" version))
4558 "0y7m2s8ci6q642zl85y5axkj8z827l0vhjl532acb75hlkir77rl"))))
4559 (build-system python-build-system)
4561 `(("libxml2" ,libxml2)
4562 ("libxslt" ,libxslt)
4563 ("python-setuptools" ,python-setuptools)))
4564 (home-page "http://lxml.de/")
4566 "Python XML processing library")
4568 "The lxml XML toolkit is a Pythonic binding for the C libraries
4569 libxml2 and libxslt.")
4570 (license bsd-3))) ; and a few more, see LICENSES.txt
4572 (define-public python2-lxml
4573 (package-with-python2 python-lxml))
4575 ;; beautifulsoup4 has a totally different namespace than 3.x,
4576 ;; and pypi seems to put it under its own name, so I guess we should too
4577 (define-public python-beautifulsoup4
4579 (name "python-beautifulsoup4")
4584 (uri (pypi-uri "beautifulsoup4" version))
4587 "1d36lc4pfkvl74fmzdib2nqnvknm0jddgf2n9yd7im150qyh3m47"))))
4588 (build-system python-build-system)
4590 "http://www.crummy.com/software/BeautifulSoup/bs4/")
4592 "Python screen-scraping library")
4594 "Beautiful Soup is a Python library designed for rapidly setting up
4595 screen-scraping projects. It offers Pythonic idioms for navigating,
4596 searching, and modifying a parse tree, providing a toolkit for
4597 dissecting a document and extracting what you need. It automatically
4598 converts incoming documents to Unicode and outgoing documents to UTF-8.")
4599 (license license:expat)
4600 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
4602 (define-public python2-beautifulsoup4
4604 (inherit (package-with-python2
4605 (strip-python2-variant python-beautifulsoup4)))
4606 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
4608 (define-public python2-cssutils
4610 (name "python2-cssutils")
4616 "https://pypi.python.org/packages/source/c/cssutils/cssutils-"
4621 "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125"))))
4622 (build-system python-build-system)
4624 `(("python2-mock" ,python2-mock) ; for the tests
4625 ("unzip" ,unzip))) ; for unpacking the source
4627 `(("python2-setuptools" ,python2-setuptools)))
4629 `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
4630 #:tests? #f ; The tests apparently download an external URL.
4632 (home-page "http://cthedot.de/cssutils/")
4634 "CSS Cascading Style Sheets library for Python")
4636 "Cssutils is a Python package for parsing and building CSS
4637 Cascading Style Sheets. Currently it provides a DOM only and no rendering
4641 (define-public python-cssselect
4643 (name "python-cssselect")
4649 "https://pypi.python.org/packages/source/c/cssselect/cssselect-"
4654 "10h623qnp6dp1191jri7lvgmnd4yfkl36k9smqklp1qlf3iafd85"))))
4655 (build-system python-build-system)
4657 `(("python-setuptools" ,python-setuptools)))
4659 ;; tests fail with message
4660 ;; AttributeError: 'module' object has no attribute 'tests'
4663 "https://pythonhosted.org/cssselect/")
4665 "CSS3 selector parser and translator to XPath 1.0")
4667 "Cssselect ia a Python module that parses CSS3 Selectors and translates
4668 them to XPath 1.0 expressions. Such expressions can be used in lxml or
4669 another XPath engine to find the matching elements in an XML or HTML document.")
4672 (define-public python2-cssselect
4673 (package-with-python2 python-cssselect))
4675 (define-public python-netifaces
4677 (name "python-netifaces")
4683 "https://pypi.python.org/packages/source/n/netifaces/netifaces-"
4688 "1plw237a4zib4z8s62g0mrs8gm3kjfrp5sxh6bbk9nl3rdls2mln"))))
4689 (build-system python-build-system)
4691 `(("python-setuptools" ,python-setuptools)))
4693 "https://bitbucket.org/al45tair/netifaces")
4695 "Python module for portable network interface information")
4697 "Netifaces is a Python module providing information on network
4698 interfaces in an easy and portable manner.")
4699 (license license:expat)))
4701 (define-public python2-netifaces
4702 (package-with-python2 python-netifaces))
4704 (define-public python-networkx
4706 (name "python-networkx")
4711 (uri (pypi-uri "networkx" version))
4713 (base32 "1f74s56xb4ggixiq0vxyfxsfk8p20c7a099lpcf60izv1php03hd"))))
4714 (build-system python-build-system)
4715 ;; python-decorator is needed at runtime
4717 `(("python-decorator" ,python-decorator)))
4719 `(("python-setuptools" ,python-setuptools)
4720 ("python-nose" ,python-nose)))
4721 (home-page "http://networkx.github.io/")
4722 (synopsis "Python module for creating and manipulating graphs and networks")
4724 "NetworkX is a Python package for the creation, manipulation, and study
4725 of the structure, dynamics, and functions of complex networks.")
4728 (define-public python2-networkx
4729 (package-with-python2 python-networkx))
4731 (define-public snakemake
4739 "https://pypi.python.org/packages/source/s/snakemake/snakemake-"
4742 (base32 "0fi4b63sj60hvi7rfydvmz2icl4wj74djw5sn2gl8hxd02qw4b91"))))
4743 (build-system python-build-system)
4744 (inputs `(("python-setuptools" ,python-setuptools)))
4745 (home-page "https://bitbucket.org/johanneskoester/snakemake")
4746 (synopsis "Python-based execution environment for make-like workflows")
4748 "Snakemake aims to reduce the complexity of creating workflows by
4749 providing a clean and modern domain specific specification language (DSL) in
4750 Python style, together with a fast and comfortable execution environment.")
4751 (license license:expat)))
4753 (define-public python-seaborn
4755 (name "python-seaborn")
4761 "https://pypi.python.org/packages/source/s/seaborn/seaborn-"
4764 (base32 "1236abw18ijjglmv60q85ckqrvgf5qyy4zlq7nz5aqfg6q87z3wc"))))
4765 (build-system python-build-system)
4767 `(("python-pandas" ,python-pandas)
4768 ("python-matplotlib" ,python-matplotlib)
4769 ("python-scipy" ,python-scipy)))
4771 `(("python-setuptools" ,python-setuptools)))
4772 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
4773 (synopsis "Statistical data visualization")
4775 "Seaborn is a library for making attractive and informative statistical
4776 graphics in Python. It is built on top of matplotlib and tightly integrated
4777 with the PyData stack, including support for numpy and pandas data structures
4778 and statistical routines from scipy and statsmodels.")
4781 (define-public python2-seaborn
4782 (let ((seaborn (package-with-python2 python-seaborn)))
4783 (package (inherit seaborn)
4785 `(("python2-pytz" ,python2-pytz)
4786 ("python2-pandas" ,python2-pandas)
4787 ("python2-matplotlib" ,python2-matplotlib)
4788 ("python2-scipy" ,python2-scipy))))))
4790 (define-public python-sympy
4792 (name "python-sympy")
4798 "https://github.com/sympy/sympy/releases/download/sympy-"
4799 version "/sympy-" version ".tar.gz"))
4801 (base32 "19yp0gy4i7p4g6l3b8vaqkj9qj7yqb5kqy0qgbdagpzgkdz958yz"))))
4802 (build-system python-build-system)
4804 `(("python-setuptools" ,python-setuptools)))
4805 (home-page "http://www.sympy.org/")
4806 (synopsis "Python library for symbolic mathematics")
4808 "SymPy is a Python library for symbolic mathematics. It aims to become a
4809 full-featured computer algebra system (CAS) while keeping the code as simple
4810 as possible in order to be comprehensible and easily extensible.")
4813 (define-public python2-sympy
4814 (package-with-python2 python-sympy))
4816 (define-public python-testlib
4818 (name "python-testlib")
4824 "https://pypi.python.org/packages/source/t/testlib/testlib-"
4827 (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
4828 (build-system python-build-system)
4830 `(("python-setuptools" ,python-setuptools)))
4832 `(("unzip" ,unzip)))
4837 (lambda* (#:key inputs outputs #:allow-other-keys)
4838 (let ((unzip (string-append (assoc-ref inputs "unzip")
4840 (source (assoc-ref inputs "source")))
4841 (and (zero? (system* unzip source))
4842 (chdir (string-append "testlib-" ,version)))))
4844 (synopsis "Python micro test suite harness")
4845 (description "A micro unittest suite harness for Python.")
4846 (home-page "https://github.com/trentm/testlib")
4847 (license license:expat)))
4849 (define-public python2-testlib
4850 (package-with-python2 python-testlib))
4852 (define-public python2-xlib
4854 (name "python2-xlib")
4858 (uri (string-append "mirror://sourceforge/python-xlib/"
4859 "python-xlib-" version ".tar.gz"))
4862 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
4863 (build-system python-build-system)
4865 `(#:python ,python-2 ;Python 2 only
4866 #:tests? #f)) ;no tests
4868 `(("python-setuptools" ,python-setuptools)))
4869 (home-page "http://python-xlib.sourceforge.net/")
4870 (synopsis "Python X11 client library")
4872 "The Python X Library is intended to be a fully functional X client
4873 library for Python programs. It is useful to implement low-level X clients.
4874 It is written entirely in Python.")
4877 (define-public python-singledispatch
4879 (name "python-singledispatch")
4885 "https://pypi.python.org/packages/source/s/singledispatch/"
4886 "singledispatch-" version ".tar.gz"))
4889 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
4890 (build-system python-build-system)
4892 `(("python-setuptools" ,python-setuptools)))
4894 `(("python-six" ,python-six)))
4896 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
4897 (synopsis "Backport of singledispatch feature from Python 3.4")
4899 "This library brings functools.singledispatch from Python 3.4 to Python
4901 (license license:expat)))
4903 (define-public python2-singledispatch
4904 (package-with-python2 python-singledispatch))
4906 (define-public python-tornado
4908 (name "python-tornado")
4913 (uri (pypi-uri "tornado" version))
4915 (base32 "1gzgwayl6hmc9jfcl88bni4jcsk2jcca9dn1rvrfsvnijcjx7hn9"))))
4916 (build-system python-build-system)
4918 `(("python-certifi" ,python-certifi)))
4920 `(("python-backports-abc" ,python-backports-abc)
4921 ("python-setuptools" ,python-setuptools)))
4922 (home-page "http://www.tornadoweb.org/")
4923 (synopsis "Python web framework and asynchronous networking library")
4925 "Tornado is a Python web framework and asynchronous networking library,
4926 originally developed at FriendFeed. By using non-blocking network I/O,
4927 Tornado can scale to tens of thousands of open connections, making it ideal
4928 for long polling, WebSockets, and other applications that require a long-lived
4929 connection to each user.")
4932 (define-public python2-tornado
4933 (let ((tornado (package-with-python2 python-tornado)))
4934 (package (inherit tornado)
4936 `(("python2-backport-ssl-match-hostname"
4937 ,python2-backport-ssl-match-hostname)
4938 ("python2-singledispatch", python2-singledispatch)
4939 ,@(package-inputs tornado))))))
4941 ;; the python- version can be removed with python-3.5
4942 (define-public python-backports-abc
4944 (name "python-backports-abc")
4949 (uri (pypi-uri "backports_abc" version))
4952 "19fh75lni9pb673n2fn505m1rckm0af0szcv5xx1qm1xpa940glb"))))
4953 (build-system python-build-system)
4955 `(("python-setuptools" ,python-setuptools)))
4956 (home-page "https://github.com/cython/backports_abc")
4957 (synopsis "Backport of additions to the 'collections.abc' module.")
4959 "Python-backports-abc provides a backport of additions to the
4960 'collections.abc' module in Python-3.5.")
4963 (define-public python2-backports-abc
4964 (package-with-python2 python-backports-abc))
4966 (define-public python-waf
4972 (uri (string-append "https://waf.io/"
4973 "waf-" version ".tar.bz2"))
4976 "0b5q307fgn6a5d8yjia2d1l4bk1q3ilvc0w8k4isfrrx2gbcw8wn"))))
4977 (build-system python-build-system)
4980 (modify-phases %standard-phases
4984 (system* "python" "waf-light" "configure")
4985 (system* "python" "waf-light" "build")))))
4988 (zero? (system* "python" "waf" "--version"))))
4991 (copy-file "waf" %output))))))
4992 (home-page "https://waf.io/")
4993 (synopsis "Python-based build system")
4995 "Waf is a Python-based framework for configuring, compiling and installing
4999 (define-public python2-waf
5000 (package-with-python2 python-waf))
5002 (define-public python-pyzmq
5004 (name "python-pyzmq")
5009 (uri (pypi-uri "pyzmq" version))
5011 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
5012 (build-system python-build-system)
5015 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
5016 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
5017 ;; --inplace' for 'python setup.py test' to work.
5020 `(("zeromq" ,zeromq)))
5022 `(("pkg-config" ,pkg-config)
5023 ("python-nose" ,python-nose)
5024 ("python-setuptools" ,python-setuptools)))
5025 (home-page "http://github.com/zeromq/pyzmq")
5026 (synopsis "Python bindings for 0MQ")
5028 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
5031 (define-public python2-pyzmq
5032 (package-with-python2 python-pyzmq))
5034 (define-public python-pep8
5036 (name "python-pep8")
5041 (uri (pypi-uri "pep8" version))
5044 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
5045 (build-system python-build-system)
5047 `(("python-setuptools" ,python-setuptools)))
5048 (home-page "http://pep8.readthedocs.org/")
5049 (synopsis "Python style guide checker")
5051 "This tools checks Python code against some of the style conventions in
5053 (license license:expat)))
5055 (define-public python2-pep8
5056 (package-with-python2 python-pep8))
5058 (define-public python-pyflakes
5060 (name "python-pyflakes")
5065 (uri (pypi-uri "pyflakes" version))
5068 "0qs2sgqszq7wcplis8509wk2ygqcrwzbs1ghfj3svvivq2j377pk"))))
5069 (build-system python-build-system)
5071 `(("python-setuptools" ,python-setuptools)))
5073 "https://github.com/pyflakes/pyflakes")
5074 (synopsis "Passive checker of Python programs")
5076 "Pyflakes statically checks Python source code for common errors.")
5077 (license license:expat)))
5079 (define-public python2-pyflakes
5080 (package-with-python2 python-pyflakes))
5082 (define-public python-mccabe
5084 (name "python-mccabe")
5089 (uri (pypi-uri "mccabe" version))
5092 "0yr08a36h8lqlif10l4xcikbbig7q8f41gqywir7rrvnv3mi4aws"))))
5093 (build-system python-build-system)
5095 `(("python-pytest" ,python-pytest)
5096 ("python-pytest-runner" ,python-pytest-runner)
5097 ("python-setuptools" ,python-setuptools)))
5098 (home-page "https://github.com/flintwork/mccabe")
5099 (synopsis "McCabe checker, plugin for flake8")
5101 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5102 complexity of Python source code.")
5103 (license license:expat)))
5105 (define-public python2-mccabe
5106 (package-with-python2 python-mccabe))
5108 (define-public python-mccabe-0.2.1
5109 (package (inherit python-mccabe)
5114 (uri (pypi-uri "mccabe" version))
5117 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))
5118 (inputs `(("python-setuptools" ,python-setuptools)))))
5120 (define-public python2-mccabe-0.2.1
5121 (package-with-python2 python-mccabe-0.2.1))
5123 ;; Flake8 2.4.1 requires an older version of pep8.
5124 ;; This should be removed ASAP.
5125 (define-public python-pep8-1.5.7
5126 (package (inherit python-pep8)
5132 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5137 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))))
5139 (define-public python2-pep8-1.5.7
5140 (package-with-python2 python-pep8-1.5.7))
5142 ;; Flake8 2.4.1 requires an older version of pyflakes.
5143 ;; This should be removed ASAP.
5144 (define-public python-pyflakes-0.8.1
5145 (package (inherit python-pyflakes)
5151 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5156 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))))
5158 (define-public python2-pyflakes-0.8.1
5159 (package-with-python2 python-pyflakes-0.8.1))
5161 (define-public python-flake8
5163 (name "python-flake8")
5168 (uri (pypi-uri "flake8" version))
5171 "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))))
5172 (build-system python-build-system)
5174 `(("python-setuptools" ,python-setuptools)
5175 ("python-pep8" ,python-pep8)
5176 ("python-pyflakes" ,python-pyflakes)
5177 ("python-mccabe" ,python-mccabe)
5178 ("python-mock" ,python-mock)
5179 ("python-nose" ,python-nose)))
5180 (home-page "https://gitlab.com/pycqa/flake8")
5182 "The modular source code checker: pep8, pyflakes and co")
5184 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5185 (license license:expat)))
5187 (define-public python2-flake8
5188 (package-with-python2 python-flake8))
5190 ;; This will only be needed by the python-hacking package and will not be
5191 ;; necessary once python-hacking > 0.10.2 is released.
5192 (define-public python-flake8-2.2.4
5193 (package (inherit python-flake8)
5195 `(("python-setuptools" ,python-setuptools)
5196 ("python-pep8" ,python-pep8-1.5.7)
5197 ("python-pyflakes" ,python-pyflakes-0.8.1)
5198 ("python-mccabe" ,python-mccabe-0.2.1)
5199 ("python-mock" ,python-mock)
5200 ("python-nose" ,python-nose)))
5205 (uri (pypi-uri "flake8" version))
5208 "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
5210 (define-public python2-flake8-2.2.4
5211 (package-with-python2 python-flake8-2.2.4))
5213 (define-public python-mistune
5215 (name "python-mistune")
5221 "https://pypi.python.org/packages/source/m/mistune/mistune-"
5226 "17zqjp9m4d1w3jf2rbbq5xshcw24q1vlcv24gkgfqqyyymajxahx"))))
5227 (build-system python-build-system)
5229 `(("python-setuptools" ,python-setuptools)
5230 ("python-nose" ,python-nose)
5231 ("python-cython" ,python-cython)))
5232 (home-page "https://github.com/lepture/mistune")
5233 (synopsis "Markdown parser in pure Python")
5234 (description "This package provides a fast markdown parser in pure
5238 (define-public python2-mistune
5239 (package-with-python2 python-mistune))
5241 (define-public python-markdown
5243 (name "python-markdown")
5248 (uri (pypi-uri "Markdown" version))
5251 "0q758a3fiiawr20b3hhjfs677cwj6xi284yb7xspcvv0fdicz54d"))))
5252 (build-system python-build-system)
5255 (modify-phases %standard-phases
5258 (zero? (system* "python" "run-tests.py")))))))
5260 `(("python-nose" ,python-nose)
5261 ("python-pyyaml" ,python-pyyaml)))
5262 (home-page "https://pythonhosted.org/Markdown/")
5263 (synopsis "Python implementation of Markdown")
5265 "This package provides a Python implementation of John Gruber's
5266 Markdown. The library features international input, various Markdown
5267 extensions, and several HTML output formats. A command line wrapper
5268 markdown_py is also provided to convert Markdown files to HTML.")
5271 (define-public python2-markdown
5272 (package-with-python2 python-markdown))
5274 (define-public python-ptyprocess
5276 (name "python-ptyprocess")
5282 "https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-"
5286 "0nggns5kikn32yyda2zrj1xdmh49pi3v0drggcdwljbv36r8zdyw"))))
5287 (build-system python-build-system)
5289 `(("python-setuptools" ,python-setuptools)
5290 ("python-nose" ,python-nose)))
5293 (modify-phases %standard-phases
5296 (zero? (system* "nosetests")))))))
5297 (home-page "https://github.com/pexpect/ptyprocess")
5298 (synopsis "Run a subprocess in a pseudo terminal")
5300 "This package provides a Python library used to launch a subprocess in a
5301 pseudo terminal (pty), and interact with both the process and its pty.")
5304 (define-public python2-ptyprocess
5305 (package-with-python2 python-ptyprocess))
5307 (define-public python-terminado
5309 (name "python-terminado")
5315 "https://pypi.python.org/packages/source/t/terminado/terminado-"
5319 "1dkmp1n8dj5v1jl9mfrq8lwyc7dsfrvcmz2bgkpg315sy7pr7s33"))))
5320 (build-system python-build-system)
5322 `(("python-tornado" ,python-tornado)
5323 ("python-ptyprocess" ,python-ptyprocess)))
5325 `(("python-setuptools" ,python-setuptools)
5326 ("python-nose" ,python-nose)))
5329 (modify-phases %standard-phases
5332 (zero? (system* "nosetests")))))))
5333 (home-page "https://github.com/takluyver/terminado")
5334 (synopsis "Terminals served to term.js using Tornado websockets")
5335 (description "This package provides a Tornado websocket backend for the
5336 term.js Javascript terminal emulator library.")
5339 (define-public python2-terminado
5340 (let ((terminado (package-with-python2 python-terminado)))
5341 (package (inherit terminado)
5343 `(("python2-tornado" ,python2-tornado)
5344 ("python2-backport-ssl-match-hostname"
5345 ,python2-backport-ssl-match-hostname)
5346 ,@(alist-delete "python-tornado"
5347 (package-propagated-inputs terminado)))))))
5349 (define-public python-fonttools
5351 (name "python-fonttools")
5356 "https://pypi.python.org/packages/source/F/FontTools/"
5357 "fonttools-" version ".tar.gz"))
5360 "08ay3x4ijarwhl60gqx2i9jzq6pxs20p4snc2d1q5jagh4rn39lb"))))
5361 (build-system python-build-system)
5362 (arguments '(#:test-target "check"))
5364 ;; XXX: module not found if setuptools is not available.
5365 `(("python-setuptools" ,python-setuptools)))
5366 (home-page "http://github.com/behdad/fonttools")
5367 (synopsis "Tools to manipulate font files")
5369 "FontTools/TTX is a library to manipulate font files from Python. It
5370 supports reading and writinfg of TrueType/OpenType fonts, reading and writing
5371 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
5372 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
5373 from an XML-based format.")
5374 (license (non-copyleft "file://LICENSE.txt"
5375 "See LICENSE.txt in the distribution."))))
5377 (define-public python2-fonttools
5378 (package-with-python2 python-fonttools))
5380 (define-public python-ly
5388 "https://pypi.python.org/packages/source/p/python-ly/python-ly-"
5392 "1y6ananq8fia4y4m5id6gvsrm68bzpzd1y46pfzvawic0wjg2l0l"))))
5393 (build-system python-build-system)
5395 `(("python-setuptools" ,python-setuptools)))
5396 (synopsis "Tool and library for manipulating LilyPond files")
5397 (description "This package provides a Python library to parse, manipulate
5398 or create documents in LilyPond format. A command line program ly is also
5399 provided that can be used to do various manipulations with LilyPond files.")
5400 (home-page "https://pypi.python.org/pypi/python-ly")
5403 (define-public python-appdirs
5405 (name "python-appdirs")
5411 "https://pypi.python.org/packages/source/a/appdirs/appdirs-"
5416 "1iddva7v3fq0aqzsahkazxr7vpw28mqcrsy818z4wyiqnkplbhlg"))))
5417 (build-system python-build-system)
5419 `(("python-setuptools" ,python-setuptools)))
5420 (home-page "http://github.com/ActiveState/appdirs")
5422 "Determine platform-specific dirs, e.g. a \"user data dir\"")
5424 "This module provides a portable way of finding out where user data
5425 should be stored on various operating systems.")
5426 (license license:expat)))
5428 (define-public python2-appdirs
5429 (package-with-python2 python-appdirs))
5431 (define-public python-llfuse
5433 (name "python-llfuse")
5438 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5439 "llfuse-" version ".tar.bz2"))
5442 "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps"))))
5443 (build-system python-build-system)
5448 `(("pkg-config" ,pkg-config)
5449 ("python-setuptools" ,python-setuptools)))
5450 (synopsis "Python bindings for FUSE")
5452 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
5453 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
5455 (properties `((python2-variant . ,(delay python2-llfuse))))))
5457 (define-public python2-llfuse
5458 (package (inherit (package-with-python2
5459 (strip-python2-variant python-llfuse)))
5460 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
5463 (define-public python-llfuse-0.41
5464 (package (inherit python-llfuse)
5469 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
5470 "llfuse-" version ".tar.bz2"))
5473 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
5474 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
5475 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
5476 (license (list license:expat lgpl2.0+))))
5478 (define-public python-msgpack
5480 (name "python-msgpack")
5484 (uri (pypi-uri "msgpack-python" version))
5487 "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y"))))
5488 (build-system python-build-system)
5489 (synopsis "MessagePack (de)serializer")
5490 (description "MessagePack is a fast, compact binary serialization format,
5491 suitable for similar data to JSON. This package provides CPython bindings for
5492 reading and writing MessagePack data.")
5493 (home-page "https://pypi.python.org/pypi/msgpack-python/")
5495 (properties `((python2-variant . ,(delay python2-msgpack))))))
5497 (define-public python2-msgpack
5498 (package (inherit (package-with-python2
5499 (strip-python2-variant python-msgpack)))
5501 `(("python2-setuptools" ,python2-setuptools)))))
5503 (define-public python2-msgpack
5504 (package-with-python2 python-msgpack))
5506 (define-public python-netaddr
5508 (name "python-netaddr")
5514 "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
5519 "06dxjlbcicq7q3vqy8agq11ra01kvvd47j4mk6dmghjsyzyckxd1"))))
5520 (build-system python-build-system)
5521 (arguments `(#:tests? #f)) ;; No tests.
5523 `(("python-setuptools" ,python-setuptools)))
5524 (home-page "https://github.com/drkjam/netaddr/")
5525 (synopsis "Pythonic manipulation of network addresses")
5527 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
5528 and MAC network addresses.")
5531 (define-public python2-netaddr
5532 (package-with-python2 python-netaddr))
5534 (define-public python-wrapt
5536 (name "python-wrapt")
5542 "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
5547 "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
5548 (build-system python-build-system)
5550 ;; Tests are not included in the tarball, they are only available in the
5554 `(("python-setuptools" ,python-setuptools)))
5555 (home-page "https://github.com/GrahamDumpleton/wrapt")
5556 (synopsis "Module for decorators, wrappers and monkey patching")
5558 "The aim of the wrapt module is to provide a transparent object proxy for
5559 Python, which can be used as the basis for the construction of function
5560 wrappers and decorator functions.")
5563 (define-public python2-wrapt
5564 (package-with-python2 python-wrapt))
5566 (define-public python-iso8601
5568 (name "python-iso8601")
5574 "https://pypi.python.org/packages/source/i/iso8601/iso8601-"
5579 "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7"))))
5580 (build-system python-build-system)
5582 `(("python-setuptools" ,python-setuptools)))
5583 (home-page "https://bitbucket.org/micktwomey/pyiso8601")
5584 (synopsis "Module to parse ISO 8601 dates")
5586 "This module parses the most common forms of ISO 8601 date strings (e.g.
5587 @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
5588 (license license:expat)))
5590 (define-public python2-iso8601
5591 (package-with-python2 python-iso8601))
5593 (define-public python-monotonic
5595 (name "python-monotonic")
5601 "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
5606 "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
5607 (build-system python-build-system)
5609 `(("python-setuptools" ,python-setuptools)))
5610 (home-page "https://github.com/atdt/monotonic")
5611 (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
5613 "This module provides a monotonic() function which returns the value (in
5614 fractional seconds) of a clock which never goes backwards.")
5617 (define-public python2-monotonic
5618 (package-with-python2 python-monotonic))
5620 (define-public python-webob
5622 (name "python-webob")
5627 (uri (pypi-uri "WebOb" version))
5630 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
5631 (build-system python-build-system)
5633 `(("python-nose" ,python-nose)
5634 ("python-setuptools" ,python-setuptools)))
5635 (home-page "http://webob.org/")
5636 (synopsis "WSGI request and response object")
5638 "WebOb provides wrappers around the WSGI request environment, and an
5639 object to help create WSGI responses.")
5640 (license license:expat)))
5642 (define-public python2-webob
5643 (package-with-python2 python-webob))
5645 (define-public python-xlrd
5647 (name "python-xlrd")
5651 (uri (string-append "https://pypi.python.org/packages/source/x/"
5652 "xlrd/xlrd-" version ".tar.gz"))
5655 "0wpa55nvidmm5m2qr622dsh3cj46akdk0h3zjgzschcmydck73cf"))))
5656 (build-system python-build-system)
5659 (modify-phases %standard-phases
5660 ;; Current test in setup.py does not work as of 0.9.4, so use nose to
5661 ;; run tests instead for now.
5662 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5663 (native-inputs `(("python-nose" ,python-nose)
5664 ("python-setuptools" ,python-setuptools)))
5665 (home-page "http://www.python-excel.org/")
5666 (synopsis "Library for extracting data from Excel files")
5667 (description "This packages provides a library to extract data from
5668 spreadsheets using Microsoft Excel® proprietary file formats @samp{.xls} and
5669 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
5670 Unicode-aware. It is not intended as an end-user tool.")
5673 (define-public python2-xlrd
5674 (package-with-python2 python-xlrd))
5676 (define-public python-prettytable
5678 (name "python-prettytable")
5684 "https://pypi.python.org/packages/source/P/PrettyTable/"
5685 "prettytable-" version ".tar.bz2"))
5688 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
5689 (build-system python-build-system)
5691 `(("python-setuptools" ,python-setuptools)))
5692 (home-page "http://code.google.com/p/prettytable/")
5693 (synopsis "Display tabular data in an ASCII table format")
5695 "A library designed to represent tabular data in visually appealing ASCII
5696 tables. PrettyTable allows for selection of which columns are to be printed,
5697 independent alignment of columns (left or right justified or centred) and
5698 printing of sub-tables by specifying a row range.")
5701 (define-public python2-prettytable
5702 (package-with-python2 python-prettytable))
5704 (define-public python-pyasn1
5706 (name "python-pyasn1")
5711 (uri (string-append "https://pypi.python.org/packages/source/p/"
5712 "pyasn1/pyasn1-" version ".tar.gz"))
5715 "0iw31d9l0zwx35szkzq72hiw002wnqrlrsi9dpbrfngcl1ybwcsx"))))
5716 (build-system python-build-system)
5717 (home-page "http://pyasn1.sourceforge.net/")
5718 (synopsis "ASN.1 types and codecs")
5720 "This is an implementation of ASN.1 types and codecs in Python. It is
5721 suitable for a wide range of protocols based on the ASN.1 specification.")
5724 (define-public python2-pyasn1
5725 (package-with-python2 python-pyasn1))
5727 (define-public python-pyasn1-modules
5729 (name "python-pyasn1-modules")
5734 (uri (pypi-uri "pyasn1-modules" version))
5737 "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh"))))
5738 (build-system python-build-system)
5740 `(("python-setuptools" ,python-setuptools)))
5742 `(("python-pyasn1" ,python-pyasn1)))
5743 (home-page "http://sourceforge.net/projects/pyasn1/")
5744 (synopsis "ASN.1 codec implementations")
5746 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
5747 implementations of ASN.1-based codecs and protocols.")
5750 (define-public python2-pyasn1-modules
5751 (package-with-python2 python-pyasn1-modules))
5753 (define-public python2-ipaddress
5755 (name "python2-ipaddress")
5760 (uri (string-append "https://pypi.python.org/packages/source/i/"
5761 "ipaddress/ipaddress-" version ".tar.gz"))
5764 "0givid4963n57nsjibms2fc347zmcs188q1hw9al1dkc9kj4nvr2"))))
5765 (build-system python-build-system)
5767 `(#:tests? #f ; no tests
5768 #:python ,python-2))
5769 (home-page "https://github.com/phihag/ipaddress")
5770 (synopsis "IP address manipulation library")
5772 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
5773 in Python. This library is used to create, poke at, and manipulate IPv4 and
5774 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
5775 module to older versions of Python.")
5778 (define-public python-idna
5780 (name "python-idna")
5785 (uri (string-append "https://pypi.python.org/packages/source/i/"
5786 "idna/idna-" version ".tar.gz"))
5789 "0frxgmgi234lr9hylg62j69j4ik5zhg0wz05w5dhyacbjfnrl68n"))))
5790 (build-system python-build-system)
5792 `(("python-setuptools" ,python-setuptools)))
5793 (home-page "https://github.com/kjd/idna")
5794 (synopsis "Internationalized domain names in applications")
5796 "This is a library to support the Internationalised Domain Names in
5797 Applications (IDNA) protocol as specified in RFC 5891. This version of the
5798 protocol is often referred to as “IDNA2008” and can produce different results
5799 from the earlier standard from 2003. The library is also intended to act as a
5800 suitable drop-in replacement for the “encodings.idna” module that comes with
5801 the Python standard library but currently only supports the older 2003
5805 (define-public python2-idna
5806 (package-with-python2 python-idna))
5808 (define-public python-pretend
5810 (name "python-pretend")
5815 (uri (string-append "https://pypi.python.org/packages/source/p/"
5816 "pretend/pretend-" version ".tar.gz"))
5819 "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk"))))
5820 (build-system python-build-system)
5822 `(("python-setuptools" ,python-setuptools)))
5823 (home-page "https://github.com/alex/pretend")
5824 (synopsis "Library for stubbing in Python")
5826 "Pretend is a library to make stubbing with Python easier. Stubbing is a
5827 technique for writing tests. You may hear the term mixed up with mocks,
5828 fakes, or doubles. Basically, a stub is an object that returns pre-canned
5829 responses, rather than doing any computation.")
5832 (define-public python2-pretend
5833 (package-with-python2 python-pretend))
5835 (define-public python-cryptography-vectors
5837 (name "python-cryptography-vectors")
5842 (uri (string-append "https://pypi.python.org/packages/source/c/"
5843 "cryptography-vectors/cryptography_vectors-"
5847 "1144l3ypz3bngxd59lb4y74xa401w92lhvvjgxzglmvbh8wzkcbb"))))
5848 (build-system python-build-system)
5850 `(("python-setuptools" ,python-setuptools)))
5851 (home-page "https://github.com/pyca/cryptography")
5852 (synopsis "Test vectors for the cryptography package.")
5854 "This package contains test vectors for the cryptography package.")
5855 ;; Distributed under either BSD-3 or ASL2.0
5856 (license (list bsd-3 asl2.0))))
5858 (define-public python2-cryptography-vectors
5859 (package-with-python2 python-cryptography-vectors))
5861 (define-public python-cryptography
5863 (name "python-cryptography")
5868 (uri (pypi-uri "cryptography" version))
5871 "1qjkrpfvxcyd0kal3zpm5y7f9p3y77ixn9jw8f4dqpgrw1sn3cxl"))))
5872 (build-system python-build-system)
5874 `(("openssl" ,openssl)))
5876 `(("python-cffi" ,python-cffi)
5877 ("python-six" ,python-six)
5878 ("python-pyasn1" ,python-pyasn1)
5879 ("python-idna" ,python-idna)
5880 ("python-iso8601" ,python-iso8601)))
5882 `(("python-cryptography-vectors" ,python-cryptography-vectors)
5883 ("python-hypothesis" ,python-hypothesis)
5884 ("python-setuptools" ,python-setuptools)
5885 ("python-pretend" ,python-pretend)
5886 ("python-pyasn1" ,python-pyasn1)
5887 ("python-pyasn1-modules" ,python-pyasn1-modules)
5888 ("python-pytest" ,python-pytest)))
5889 (home-page "https://github.com/pyca/cryptography")
5890 (synopsis "Cryptographic recipes and primitives for Python")
5892 "cryptography is a package which provides cryptographic recipes and
5893 primitives to Python developers. It aims to be the “cryptographic standard
5894 library” for Python. The package includes both high level recipes, and low
5895 level interfaces to common cryptographic algorithms such as symmetric ciphers,
5896 message digests and key derivation functions.")
5897 ;; Distributed under either BSD-3 or ASL2.0
5898 (license (list bsd-3 asl2.0))
5899 (properties `((python2-variant . ,(delay python2-cryptography))))))
5901 (define-public python2-cryptography
5902 (let ((crypto (package-with-python2
5903 (strip-python2-variant python-cryptography))))
5904 (package (inherit crypto)
5906 `(("python2-ipaddress" ,python2-ipaddress)
5907 ("python2-backport-ssl-match-hostname"
5908 ,python2-backport-ssl-match-hostname)
5909 ("python2-enum34" ,python2-enum34)
5910 ,@(package-propagated-inputs crypto))))))
5912 (define-public python-pyopenssl
5914 (name "python-pyopenssl")
5919 (uri (string-append "https://pypi.python.org/packages/source/p/"
5920 "pyOpenSSL/pyOpenSSL-" version ".tar.gz"))
5923 "0wnnq15rhj7fhdcd8ycwiw6r6g3w9f9lcy6cigg8226vsrq618ph"))))
5924 (build-system python-build-system)
5927 (modify-phases %standard-phases
5928 (add-after 'unpack 'fix-tests
5929 (lambda* (#:key inputs #:allow-other-keys)
5930 (substitute* "OpenSSL/test/test_ssl.py"
5931 (("client\\.connect\\(\\('verisign\\.com', 443\\)\\)")
5933 ;; FIXME: disable broken test
5934 (("test_set_tmp_ecdh") "disabled__set_tmp_ecdh"))
5935 (substitute* "OpenSSL/test/test_crypto.py"
5936 (("command = b\"openssl \"")
5937 (string-append "command = b\""
5938 (assoc-ref inputs "openssl")
5939 "/bin/openssl" " \""))
5940 ;; FIXME: disable four broken tests
5941 (("test_der") "disabled__der")
5942 (("test_digest") "disabled__digest")
5943 (("test_get_extension") "disabled__get_extension")
5944 (("test_extension_count") "disabled__extension_count"))
5947 `(("python-cryptography" ,python-cryptography)
5948 ("python-six" ,python-six)))
5950 `(("openssl" ,openssl)))
5952 `(("python-setuptools" ,python-setuptools)))
5953 (home-page "https://github.com/pyca/pyopenssl")
5954 (synopsis "Python wrapper module around the OpenSSL library")
5956 "PyOpenSSL is a high-level wrapper around a subset of the OpenSSL
5960 (define-public python2-pyopenssl
5961 (package-with-python2 python-pyopenssl))
5963 (define-public python-pip
5970 (uri (pypi-uri "pip" version))
5973 "08cm8d4228fj0qnrysy3qv1a6022zr3dcs25amd14lgxil6vvx26"))))
5974 (build-system python-build-system)
5976 `(("python-setuptools" ,python-setuptools)
5977 ("python-virtualenv" ,python-virtualenv)
5979 ("python-mock" ,python-mock)
5980 ("python-pytest" ,python-pytest)
5981 ("python-scripttest" ,python-scripttest)))
5982 (home-page "https://pip.pypa.io/")
5984 "Package manager for Python software")
5986 "Pip is a package manager for Python software, that finds packages on the
5987 Python Package Index (PyPI).")
5988 (license license:expat)))
5990 (define-public python2-pip
5991 (package-with-python2 python-pip))
5993 (define-public python-tlsh
5995 (name "python-tlsh")
5997 (home-page "https://github.com/trendmicro/tlsh")
6000 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
6004 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
6005 (file-name (string-append name "-" version ".tar.gz"))))
6006 (build-system cmake-build-system)
6008 '(#:out-of-source? #f
6009 #:phases (modify-phases %standard-phases
6012 (lambda* (#:key outputs #:allow-other-keys)
6013 ;; Build and install the Python bindings. The underlying
6014 ;; C++ library is apparently not meant to be installed.
6015 (let ((out (assoc-ref outputs "out")))
6016 (with-directory-excursion "py_ext"
6017 (and (system* "python" "setup.py" "build")
6018 (system* "python" "setup.py" "install"
6019 (string-append "--prefix=" out))))))))))
6020 (inputs `(("python" ,python-wrapper))) ;for the bindings
6021 (synopsis "Fuzzy matching library for Python")
6023 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
6024 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
6025 value which can be used for similarity comparisons. Similar objects have
6026 similar hash values, which allows for the detection of similar objects by
6027 comparing their hash values. The byte stream should have a sufficient amount
6028 of complexity; for example, a byte stream of identical bytes will not generate
6032 (define-public python2-tlsh
6034 (inherit python-tlsh)
6035 (name "python2-tlsh")
6036 (inputs `(("python" ,python-2)))))
6038 (define-public python-libarchive-c
6040 (name "python-libarchive-c")
6044 (uri (pypi-uri "libarchive-c" version))
6047 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
6048 (build-system python-build-system)
6050 '(#:phases (modify-phases %standard-phases
6052 'build 'reference-libarchive
6053 (lambda* (#:key inputs #:allow-other-keys)
6054 ;; Retain the absolute file name of libarchive.so.
6055 (let ((libarchive (assoc-ref inputs "libarchive")))
6056 (substitute* "libarchive/ffi.py"
6057 (("find_library\\('archive'\\)")
6058 (string-append "'" libarchive
6059 "/lib/libarchive.so'"))))
6061 ;; Do not make a compressed egg (see
6062 ;; <http://bugs.gnu.org/20765>).
6063 (let ((port (open-file "setup.cfg" "a")))
6064 (display "\n[easy_install]\nzip_ok = 0\n"
6069 `(("python-setuptools" ,python-setuptools)
6070 ("libarchive" ,libarchive)))
6071 (home-page "https://github.com/Changaco/python-libarchive-c")
6072 (synopsis "Python interface to libarchive")
6074 "This package provides Python bindings to libarchive, a C library to
6075 access possibly compressed archives in many different formats. It uses
6076 Python's @code{ctypes} foreign function interface (FFI).")
6077 (license lgpl2.0+)))
6079 (define-public python2-libarchive-c
6080 (package-with-python2 python-libarchive-c))
6082 (define-public python-file
6085 (name "python-file")
6086 (build-system python-build-system)
6088 '(#:tests? #f ;no tests
6089 #:phases (modify-phases %standard-phases
6090 (add-before 'build 'change-directory
6094 (add-before 'build 'set-library-file-name
6095 (lambda* (#:key inputs #:allow-other-keys)
6096 (let ((file (assoc-ref inputs "file")))
6097 (substitute* "magic.py"
6098 (("find_library\\('magic'\\)")
6099 (string-append "'" file "/lib/libmagic.so'")))
6101 (inputs `(("file" ,file)))
6102 (self-native-input? #f)
6103 (synopsis "Python bindings to the libmagic file type guesser. Note that
6104 this module and the python-magic module both provide a \"magic.py\" file;
6105 these two modules, which are different and were developed separately, both
6106 serve the same purpose: provide Python bindings for libmagic.")))
6108 (define-public python2-file
6109 (package-with-python2 python-file))
6111 (define-public python-debian
6113 (name "python-debian")
6119 "https://pypi.python.org/packages/source/p/python-debian/python-debian-"
6123 "193faznwnjc3n5991wyzim6h9gyq1zxifmfrnpm3avgkh7ahyynh"))))
6124 (build-system python-build-system)
6126 `(("python-six" ,python-six)))
6128 `(("python-setuptools" ,python-setuptools)))
6129 (home-page "http://packages.debian.org/sid/python-debian")
6130 (synopsis "Debian package related modules")
6132 ;; XXX: Use @enumerate instead of @itemize to work around
6133 ;; <http://bugs.gnu.org/21772>.
6134 "This package provides Python modules that abstract many formats of
6135 Debian-related files, such as:
6138 @item Debtags information;
6139 @item @file{debian/changelog} files;
6140 @item packages files, pdiffs;
6141 @item control files of single or multiple RFC822-style paragraphs---e.g.
6142 @file{debian/control}, @file{.changes}, @file{.dsc};
6143 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6144 contained files and meta-information.
6147 ;; Modules are either GPLv2+ or GPLv3+.
6150 (define-public python2-debian
6151 (package-with-python2 python-debian))
6153 (define-public python-chardet
6155 (name "python-chardet")
6161 "https://pypi.python.org/packages/source/c/chardet/chardet-"
6166 "1ak87ikcw34fivcgiz2xvi938dmclh078az65l9x3rmgljrkhgp5"))))
6167 (build-system python-build-system)
6169 `(("python-setuptools" ,python-setuptools)))
6170 (home-page "https://github.com/chardet/chardet")
6171 (synopsis "Universal encoding detector for Python 2 and 3")
6173 "This package provides @code{chardet}, a Python module that can
6174 automatically detect a wide range of file encodings.")
6175 (license lgpl2.1+)))
6177 (define-public python2-chardet
6178 (package-with-python2 python-chardet))
6180 (define-public python-docopt
6182 (name "python-docopt")
6187 ;; The release on PyPI does not include tests.
6189 "https://github.com/docopt/docopt/archive/"
6191 (file-name (string-append name "-" version ".tar.gz"))
6194 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
6195 (build-system python-build-system)
6197 `(("python-pytest" ,python-pytest)
6198 ("python-setuptools" ,python-setuptools)))
6200 `(#:phases (alist-replace
6202 (lambda _ (zero? (system* "py.test")))
6204 (home-page "http://docopt.org")
6205 (synopsis "Command-line interface description language for Python")
6206 (description "This library allows the user to define a command-line
6207 interface from a program's help message rather than specifying it
6208 programatically with command-line parsers like @code{getopt} and
6210 (license license:expat)))
6212 (define-public python2-docopt
6213 (package-with-python2 python-docopt))
6215 (define-public python-zope-event
6217 (name "python-zope-event")
6222 (uri (string-append "https://pypi.python.org/packages/source/z"
6223 "/zope.event/zope.event-" version ".tar.gz"))
6226 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
6227 (build-system python-build-system)
6229 `(("python-setuptools" ,python-setuptools)))
6230 (home-page "http://pypi.python.org/pypi/zope.event")
6231 (synopsis "Event publishing system for Python")
6232 (description "Zope.event provides an event publishing API, intended for
6233 use by applications which are unaware of any subscribers to their events. It
6234 is a simple event-dispatching system on which more sophisticated event
6235 dispatching systems can be built.")
6238 (define-public python2-zope-event
6239 (package-with-python2 python-zope-event))
6241 (define-public python-zope-interface
6243 (name "python-zope-interface")
6248 (uri (string-append "https://pypi.python.org/packages/source/z"
6249 "/zope.interface/zope.interface-" version ".tar.gz"))
6252 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
6253 (build-system python-build-system)
6255 `(("python-zope-event" ,python-zope-event)))
6256 (home-page "https://github.com/zopefoundation/zope.interface")
6257 (synopsis "Python implementation of the \"design by contract\"
6259 (description "Zope.interface provides an implementation of \"object
6260 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
6261 conforming to a given API or contract.")
6264 (define-public python2-zope-interface
6265 (package-with-python2 python-zope-interface))
6267 (define-public python-zope-exceptions
6269 (name "python-zope-exceptions")
6274 (uri (string-append "https://pypi.python.org/packages/source/z"
6275 "/zope.exceptions/zope.exceptions-"
6279 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
6280 (build-system python-build-system)
6282 '(#:tests? #f)) ; circular dependency with zope.testrunner
6284 `(("python-zope-interface" ,python-zope-interface)))
6285 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
6286 (synopsis "Zope exceptions")
6287 (description "Zope.exceptions provides general-purpose exception types
6288 that have uses outside of the Zope framework.")
6291 (define-public python2-zope-exceptions
6292 (package-with-python2 python-zope-exceptions))
6294 (define-public python-zope-testing
6296 (name "python-zope-testing")
6301 (uri (string-append "https://pypi.python.org/packages/source/z"
6302 "/zope.testing/zope.testing-" version ".tar.gz"))
6305 "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))))
6306 (build-system python-build-system)
6308 `(("python-zope-exceptions" ,python-zope-exceptions)))
6310 `(("python-zope-interface" ,python-zope-interface)))
6311 (home-page "http://pypi.python.org/pypi/zope.testing")
6312 (synopsis "Zope testing helpers")
6313 (description "Zope.testing provides a number of testing utilities for HTML
6314 forms, HTTP servers, regular expressions, and more.")
6317 (define-public python2-zope-testing
6318 (package-with-python2 python-zope-testing))
6320 (define-public python-zope-testrunner
6322 (name "python-zope-testrunner")
6327 (uri (string-append "https://pypi.python.org/packages/source/z"
6328 "/zope.testrunner/zope.testrunner-"
6332 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
6333 (build-system python-build-system)
6335 `(("python-six" ,python-six)
6336 ("python-zope-exceptions" ,python-zope-exceptions)
6337 ("python-zope-testing" ,python-zope-testing)
6340 `(("python-zope-interface" ,python-zope-interface)))
6341 (home-page "http://pypi.python.org/pypi/zope.testrunner")
6342 (synopsis "Zope testrunner script")
6343 (description "Zope.testrunner provides a script for running Python
6347 (define-public python2-zope-testrunner
6348 (let ((base (package-with-python2 python-zope-testrunner)))
6352 (append (package-native-inputs base)
6353 `(("python2-subunit" ,python2-subunit)
6354 ("python2-mimeparse" ,python2-mimeparse)))))))
6356 (define-public python-zope-i18nmessageid
6358 (name "python-zope-i18nmessageid")
6364 "https://pypi.python.org/packages/source/z"
6365 "/zope.i18nmessageid/zope.i18nmessageid-"
6369 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
6370 (build-system python-build-system)
6372 `(("python-setuptools" ,python-setuptools)))
6373 (home-page "http://pypi.python.org/pypi/zope.i18nmessageid")
6374 (synopsis "Message identifiers for internationalization")
6375 (description "Zope.i18nmessageid provides facilities for declaring
6376 internationalized messages within program source text.")
6379 (define-public python2-zope-i18nmessageid
6380 (package-with-python2 python-zope-i18nmessageid))
6382 (define-public python-zope-schema
6384 (name "python-zope-schema")
6389 (uri (string-append "https://pypi.python.org/packages/source/z"
6390 "/zope.schema/zope.schema-" version ".tar.gz"))
6393 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
6394 (build-system python-build-system)
6396 `(("python-zope-event" ,python-zope-event)
6397 ("python-zope-interface" ,python-zope-interface)))
6399 `(("python-zope-testing" ,python-zope-testing)))
6400 (home-page "http://pypi.python.org/pypi/zope.schema")
6401 (synopsis "Zope data schemas")
6402 (description "Zope.scheme provides extensions to zope.interface for
6403 defining data schemas.")
6406 (define-public python2-zope-schema
6407 (package-with-python2 python-zope-schema))
6409 (define-public python-zope-configuration
6411 (name "python-zope-configuration")
6415 (uri (string-append "https://pypi.python.org/packages/source/z"
6416 "/zope.configuration/zope.configuration-"
6420 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
6421 (build-system python-build-system)
6423 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6424 ("python-zope-schema" ,python-zope-schema)))
6425 (home-page "http://pypi.python.org/pypi/zope.configuration")
6426 (synopsis "Zope Configuration Markup Language")
6427 (description "Zope.configuration implements ZCML, the Zope Configuration
6431 (define-public python2-zope-configuration
6432 (package-with-python2 python-zope-configuration))
6434 (define-public python-zope-proxy
6436 (name "python-zope-proxy")
6441 (uri (string-append "https://pypi.python.org/packages/source/z"
6442 "/zope.proxy/zope.proxy-" version ".tar.gz"))
6445 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
6446 (build-system python-build-system)
6448 `(("python-zope-interface" ,python-zope-interface)))
6449 (home-page "http://pypi.python.org/pypi/zope.proxy")
6450 (synopsis "Generic, transparent proxies")
6451 (description "Zope.proxy provides generic, transparent proxies for Python.
6452 Proxies are special objects which serve as mostly-transparent wrappers around
6453 another object, intervening in the apparent behavior of the wrapped object
6454 only when necessary to apply the policy (e.g., access checking, location
6455 brokering, etc.) for which the proxy is responsible.")
6458 (define-public python2-zope-proxy
6459 (package-with-python2 python-zope-proxy))
6461 (define-public python-zope-location
6463 (name "python-zope-location")
6468 (uri (string-append "https://pypi.python.org/packages/source/z"
6469 "/zope.location/zope.location-" version ".tar.gz"))
6472 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
6473 (build-system python-build-system)
6475 `(("python-zope-proxy" ,python-zope-proxy)
6476 ("python-zope-schema" ,python-zope-schema)))
6477 (home-page "http://pypi.python.org/pypi/zope.location/")
6478 (synopsis "Zope location library")
6479 (description "Zope.location implements the concept of \"locations\" in
6480 Zope3, which are are special objects that have a structural location.")
6483 (define-public python2-zope-location
6484 (package-with-python2 python-zope-location))
6486 (define-public python-zope-security
6488 (name "python-zope-security")
6493 (uri (string-append "https://pypi.python.org/packages/source/z"
6494 "/zope.security/zope.security-" version ".tar.gz"))
6497 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
6498 (build-system python-build-system)
6500 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6501 ("python-zope-component" ,python-zope-component)
6502 ("python-zope-location" ,python-zope-location)
6503 ("python-zope-proxy" ,python-zope-proxy)
6504 ("python-zope-schema" ,python-zope-schema)
6505 ("python-zope-testrunner" ,python-zope-testrunner)
6506 ("python-zope-testing" ,python-zope-testing)))
6507 (home-page "http://pypi.python.org/pypi/zope.security")
6508 (synopsis "Zope security framework")
6509 (description "Zope.security provides a generic mechanism to implement
6510 security policies on Python objects.")
6513 (define-public python2-zope-security
6514 (let ((zope-security (package-with-python2 python-zope-security)))
6515 (package (inherit zope-security)
6517 `(("python2-zope-testrunner" ,python2-zope-testrunner)
6519 "python-zope-testrunner"
6520 (package-propagated-inputs zope-security)))))))
6522 (define-public python-zope-component
6524 (name "python-zope-component")
6529 (uri (string-append "https://pypi.python.org/packages/source/z"
6530 "/zope.component/zope.component-" version ".tar.gz"))
6533 "06pqr8m5jv12xjyy5b59hh9anl61cxkzhw9mka33r3nxalmi2b18"))))
6534 (build-system python-build-system)
6536 ;; Skip tests due to circular dependency with python-zope-security.
6539 `(("python-zope-testing" ,python-zope-testing)))
6541 `(("python-zope-event" ,python-zope-event)
6542 ("python-zope-interface" ,python-zope-interface)
6543 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
6544 ("python-zope-configuration" ,python-zope-configuration)))
6545 (home-page "https://github.com/zopefoundation/zope.component")
6546 (synopsis "Zope Component Architecture")
6547 (description "Zope.component represents the core of the Zope Component
6548 Architecture. Together with the zope.interface package, it provides
6549 facilities for defining, registering and looking up components.")
6552 (define-public python2-zope-component
6553 (package-with-python2 python-zope-component))
6555 (define-public python2-pythondialog
6557 (name "python2-pythondialog")
6562 (uri (string-append "https://pypi.python.org/packages/source/p/"
6563 "python2-pythondialog/python2-pythondialog-"
6567 "1yhkagsh99bfi592ymczf8rnw8rk6n9hdqy3dd98m3yrx8zmjvry"))))
6568 (build-system python-build-system)
6571 (modify-phases %standard-phases
6572 (add-after 'unpack 'patch-path
6573 (lambda* (#:key inputs #:allow-other-keys)
6574 (let* ((dialog (assoc-ref inputs "dialog")))
6575 ;; Since this library really wants to grovel the search path, we
6576 ;; must hardcode dialog's store path into it.
6577 (substitute* "dialog.py"
6578 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
6579 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
6582 #:tests? #f)) ; no test suite
6584 `(("dialog" ,dialog)))
6585 (home-page "http://pythondialog.sourceforge.net/")
6586 (synopsis "Python interface to the UNIX dialog utility")
6587 (description "A Python wrapper for the dialog utility. Its purpose is to
6588 provide an easy to use, pythonic and comprehensive Python interface to dialog.
6589 This allows one to make simple text-mode user interfaces on Unix-like systems")
6592 (define-public python-pyrfc3339
6594 (name "python-pyrfc3339")
6599 (uri (pypi-uri "pyRFC3339" version))
6602 "0dgm4l9y8jiax5cp6yxjd2i27cq8h33sh81n1wfbmnmqb32cdywd"))))
6603 (build-system python-build-system)
6605 `(("python-pytz" ,python-pytz)))
6607 `(("python-nose" ,python-nose)
6608 ("python-setuptools" ,python-setuptools)))
6609 (home-page "https://github.com/kurtraschke/pyRFC3339")
6610 (synopsis "Python timestamp library")
6611 (description "Python library for generating and parsing RFC 3339-compliant
6613 (license license:expat)))
6615 (define-public python2-pyrfc3339
6616 (package-with-python2 python-pyrfc3339))
6618 (define-public python-werkzeug
6620 (name "python-werkzeug")
6625 (uri (string-append "https://pypi.python.org/packages/source/W/Werkzeug"
6626 "/Werkzeug-" version ".tar.gz"))
6627 (file-name (string-append name "-" version ".tar.gz"))
6630 "1gzwn1lkl90f3l1nzzxr7vjhm21qk8f837i8rvny5a209fcrhkzb"))))
6631 (build-system python-build-system)
6633 `(("python-pytest" ,python-pytest)))
6634 (home-page "http://werkzeug.pocoo.org/")
6635 (synopsis "Utilities for WSGI applications")
6636 (description "One of the most advanced WSGI utility modules. It includes a
6637 powerful debugger, full-featured request and response objects, HTTP utilities to
6638 handle entity tags, cache control headers, HTTP dates, cookie handling, file
6639 uploads, a powerful URL routing system and a bunch of community-contributed
6643 (define-public python2-werkzeug
6644 (package-with-python2 python-werkzeug))
6646 (define-public python-configobj
6648 (name "python-configobj")
6653 "https://pypi.python.org/packages/source/c/configobj/"
6654 "configobj-" version ".tar.gz"))
6657 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
6658 ;; Patch setup.py so it looks for python-setuptools, which is
6659 ;; required to parse the keyword 'install_requires' in setup.py.
6660 (patches (list (search-patch "python-configobj-setuptools.patch")))))
6661 (build-system python-build-system)
6663 `(("python-setuptools" ,python-setuptools)
6664 ("python-six" ,python-six)))
6665 (synopsis "Config file reading, writing and validation")
6666 (description "ConfigObj is a simple but powerful config file reader and
6667 writer: an ini file round tripper. Its main feature is that it is very easy to
6668 use, with a straightforward programmer’s interface and a simple syntax for
6670 (home-page "https://github.com/DiffSK/configobj")
6673 (define-public python2-configobj
6674 (package-with-python2 python-configobj))
6676 (define-public python-configargparse
6678 (name "python-configargparse")
6683 "https://pypi.python.org/packages/source/C/ConfigArgParse/"
6684 "ConfigArgParse-" version ".tar.gz"))
6687 "19wh919gbdbzxzpagg52q3lm62yicm95ddlcx77dyjc1slyshl1v"))))
6688 (build-system python-build-system)
6690 ;; FIXME: Bug in test suite filed upstream:
6691 ;; https://github.com/bw2/ConfigArgParse/issues/32
6693 (synopsis "Replacement for argparse")
6694 (description "A drop-in replacement for argparse that allows options to also
6695 be set via config files and/or environment variables.")
6696 (home-page "https://github.com/bw2/ConfigArgParse")
6697 (license license:expat)))
6699 (define-public python2-configargparse
6700 (package-with-python2 python-configargparse))
6702 (define-public python-ndg-httpsclient
6704 (name "python-ndg-httpsclient")
6709 "https://pypi.python.org/packages/source/n/ndg-httpsclient/"
6710 "ndg_httpsclient-" version ".tar.gz"))
6713 "0x32ibixm3vv5m9xfk83xsqm8xcqw4dd0khbh6qbri6rxgymbhg8"))))
6714 (build-system python-build-system)
6716 `(("python-pyopenssl" ,python-pyopenssl)))
6717 (synopsis "HTTPS support for Python's httplib and urllib2")
6718 (description "This is a HTTPS client implementation for httplib and urllib2
6719 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
6720 over the default provided with Python and importantly enables full verification
6722 (home-page "https://github.com/cedadev/ndg_httpsclient/")
6725 ;; python2-openssl requires special care, so package-with-python2 is
6727 (define-public python2-ndg-httpsclient
6728 (package (inherit python-ndg-httpsclient)
6729 (name "python2-ndg-httpsclient")
6730 (arguments `(#:python ,python-2))
6732 `(("python2-pyopenssl" ,python2-pyopenssl)))))
6734 (define-public python-contextlib2
6736 (name "python-contextlib2")
6741 (uri (pypi-uri "contextlib2" version))
6744 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
6745 (build-system python-build-system)
6748 (modify-phases %standard-phases
6752 "python" "test_contextlib2.py" "-v")))))))
6753 (home-page "http://contextlib2.readthedocs.org/")
6754 (synopsis "Tools for decorators and context managers")
6755 (description "This module is primarily a backport of the Python
6756 3.2 contextlib to earlier Python versions. Like contextlib, it
6757 provides utilities for common tasks involving decorators and context
6758 managers. It also contains additional features that are not part of
6759 the standard library.")
6762 (define-public python2-contextlib2
6763 (package-with-python2 python-contextlib2))
6765 (define-public python-texttable
6767 (name "python-texttable")
6772 (uri (pypi-uri "texttable" version))
6775 "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5"))))
6776 (build-system python-build-system)
6777 (arguments '(#:tests? #f)) ; no tests
6778 (home-page "https://github.com/foutaise/texttable/")
6779 (synopsis "Python module for creating simple ASCII tables")
6780 (description "Texttable is a Python module for creating simple ASCII
6782 (license lgpl2.1+)))
6784 (define-public python2-texttable
6785 (package-with-python2 python-texttable))
6787 (define-public python-websocket-client
6789 (name "python-websocket-client")
6794 (uri (string-append "https://pypi.python.org/packages/source/w"
6795 "/websocket-client/websocket_client-"
6799 "1prdx6d49f1cff17kzj15bnz09palfdgc1m5dkq9jd4mr90n4ak8"))))
6800 (build-system python-build-system)
6802 `(("python-six" ,python-six))) ; for tests
6804 `(("python-setuptools" ,python-setuptools)))
6805 (home-page "https://github.com/liris/websocket-client")
6806 (synopsis "WebSocket client for Python")
6807 (description "The Websocket-client module provides the low level APIs for
6808 WebSocket usage in Python programs.")
6809 (license lgpl2.1+)))
6811 (define-public python2-websocket-client
6812 (package-with-python2 python-websocket-client))
6814 (define-public python-atomicwrites
6816 (name "python-atomicwrites")
6820 (uri (pypi-uri "atomicwrites" version))
6823 "019fa4771q7fb1167yfbh6msdzcqini6v7i59rmf72mzdjd7x5qv"))))
6824 (build-system python-build-system)
6825 (synopsis "Atomic file writes in Python")
6826 (description "Library for atomic file writes using platform dependent tools
6827 for atomic filesystem operations.")
6828 (home-page "https://github.com/untitaker/python-atomicwrites")
6829 (license license:expat)
6830 (properties `((python2-variant . ,(delay python2-atomicwrites))))))
6832 (define-public python2-atomicwrites
6833 (package (inherit (package-with-python2
6834 (strip-python2-variant python-atomicwrites)))
6836 `(("python2-setuptools" ,python2-setuptools)))))
6838 (define-public python-requests-toolbelt
6840 (name "python-requests-toolbelt")
6844 (uri (pypi-uri "requests-toolbelt" version))
6847 "07slish560haspn0hpwgy2izhk2snqq06s6acp8xzmhhz079qknc"))))
6848 (build-system python-build-system)
6850 `(("python-requests" ,python-requests)))
6851 (synopsis "Extensions to python-requests")
6852 (description "This is a toolbelt of useful classes and functions to be used
6853 with python-requests.")
6854 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
6857 (define-public python-click-threading
6859 (name "python-click-threading")
6863 (uri (pypi-uri "click-threading" version))
6866 "0jmrv4334lfxa2ss53c06dafdwqbk1pb3ihd26izn5igw1bm8145"))))
6867 (build-system python-build-system)
6869 `(("python-click" ,python-click)))
6870 (synopsis "Utilities for multithreading in Click")
6871 (description "This package provides utilities for multithreading in Click
6873 (home-page "https://github.com/click-contrib/click-threading")
6874 (license license:expat)))
6876 (define-public python-click-log
6878 (name "python-click-log")
6882 (uri (pypi-uri "click-log" version))
6885 "0kdd1vminxpcfczxl2kkf285n0dr1gxh2cdbx1p6vkj7b7bci3gx"))))
6886 (build-system python-build-system)
6888 `(("python-click" ,python-click)))
6889 (synopsis "Logging for click applications")
6890 (description "This package provides a Python library for logging Click
6892 (home-page "https://github.com/click-contrib/click-log")
6893 (license license:expat)))
6895 (define-public python-apipkg
6897 (name "python-apipkg")
6901 (uri (pypi-uri "apipkg" version))
6904 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
6905 (build-system python-build-system)
6907 `(("python-pytest" ,python-pytest)))
6908 (synopsis "Namespace control and lazy-import mechanism")
6909 (description "With apipkg you can control the exported namespace of a Python
6910 package and greatly reduce the number of imports for your users. It is a small
6911 pure Python module that works on virtually all Python versions.")
6912 (home-page "https://bitbucket.org/hpk42/apipkg")
6913 (license license:expat)
6914 (properties `((python2-variant . ,(delay python2-apipkg))))))
6916 (define-public python2-apipkg
6918 (inherit (package-with-python2
6919 (strip-python2-variant python-apipkg)))
6921 `(("python2-setuptools" ,python2-setuptools)))))
6923 (define-public python-execnet
6925 (name "python-execnet")
6929 (uri (pypi-uri "execnet" version))
6932 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
6933 (build-system python-build-system)
6935 `(("python-setuptools-scm" ,python-setuptools-scm)))
6937 `(("python-apipkg" ,python-apipkg)))
6938 (synopsis "Rapid multi-Python deployment")
6939 (description "Execnet provides a share-nothing model with
6940 channel-send/receive communication for distributing execution across many
6941 Python interpreters across version, platform and network barriers. It has a
6942 minimal and fast API targetting the following uses:
6944 @item distribute tasks to (many) local or remote CPUs
6945 @item write and deploy hybrid multi-process applications
6946 @item write scripts to administer multiple environments
6948 (home-page "http://codespeak.net/execnet/")
6949 (license license:expat)
6950 (properties `((python2-variant . ,(delay python2-execnet))))))
6952 (define-public python2-execnet
6953 (let ((execnet (package-with-python2
6954 (strip-python2-variant python-execnet))))
6958 `(("python2-setuptools" ,python2-setuptools)
6959 ,@(package-native-inputs execnet))))))
6961 ;;; The software provided by this package was integrated into pytest 2.8.
6962 (define-public python-pytest-cache
6964 (name "python-pytest-cache")
6968 (uri (pypi-uri "pytest-cache" version))
6971 "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y"))))
6972 (build-system python-build-system)
6974 `(("python-execnet" ,python-execnet)))
6975 (synopsis "Py.test plugin with mechanisms for caching across test runs")
6976 (description "The pytest-cache plugin provides tools to rerun failures from
6977 the last py.test invocation.")
6978 (home-page "https://bitbucket.org/hpk42/pytest-cache/")
6979 (license license:expat)))
6981 (define-public python-pytest-localserver
6983 (name "python-pytest-localserver")
6987 (uri (pypi-uri "pytest-localserver" version))
6990 "0dvqspjr6va55zwmnnc2mmpqc7mm65kxig9ya44x1z8aadzxpa4p"))))
6991 (build-system python-build-system)
6993 `(#:phases (modify-phases %standard-phases
6996 (zero? (system* "py.test" "--genscript=runtests.py"))
6997 (zero? (system* "py.test")))))))
6999 `(("unzip" ,unzip)))
7001 `(("python-pytest" ,python-pytest)
7002 ("python-requests" ,python-requests)
7003 ("python-six" ,python-six)
7004 ("python-werkzeug" ,python-werkzeug)))
7005 (synopsis "Py.test plugin to test server connections locally")
7006 (description "Pytest-localserver is a plugin for the pytest testing
7007 framework which enables you to test server connections locally.")
7008 (home-page "https://pypi.python.org/pypi/pytest-localserver")
7009 (license license:expat)))
7011 (define-public python-wsgi-intercept
7013 (name "python-wsgi-intercept")
7017 (uri (pypi-uri "wsgi_intercept" version))
7020 "14ajy415ch5d0dnspg4b592p66wlgzah7ay218flp13517fp49zl"))))
7021 (build-system python-build-system)
7023 `(("python-pytest" ,python-pytest)
7024 ("python-six" ,python-six)))
7026 `(("python-httplib2" ,python-httplib2)
7027 ("python-requests" ,python-requests)))
7028 (synopsis "Puts a WSGI application in place of a real URI for testing")
7029 (description "Wsgi_intercept installs a WSGI application in place of a real
7030 URI for testing. Testing a WSGI application normally involves starting a
7031 server at a local host and port, then pointing your test code to that address.
7032 Instead, this library lets you intercept calls to any specific host/port
7033 combination and redirect them into a WSGI application importable by your test
7034 program. Thus, you can avoid spawning multiple processes or threads to test
7036 (home-page "https://github.com/cdent/wsgi-intercept")
7037 (license license:expat)))
7039 (define-public python-pytest-xprocess
7041 (name "python-pytest-xprocess")
7045 (uri (pypi-uri "pytest-xprocess" version))
7048 "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp"))))
7049 (build-system python-build-system)
7051 `(("python-pytest" ,python-pytest)
7052 ("python-pytest-cache" ,python-pytest-cache)
7053 ("python-psutil" ,python-psutil)))
7054 (synopsis "Pytest plugin to manage external processes across test runs")
7055 (description "Pytest-xprocess is an experimental py.test plugin for managing
7056 processes across test runs.")
7057 (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess")
7058 (license license:expat)))
7060 (define-public python-icalendar
7062 (name "python-icalendar")
7066 (uri (pypi-uri "icalendar" version))
7069 "0fhrczdj3jxy5bvswphp3vys7vwv5c9bpwg7asykqwa3z6253q6q"))))
7070 (build-system python-build-system)
7072 `(("python-dateutil-2" ,python-dateutil-2)
7073 ("python-pytz" ,python-pytz)))
7074 (synopsis "Python library for parsing iCalendar files")
7075 (description "The icalendar package is a parser/generator of iCalendar
7076 files for use with Python.")
7077 (home-page "https://github.com/collective/icalendar")
7080 (define-public python-sphinxcontrib-newsfeed
7082 (name "python-sphinxcontrib-newsfeed")
7086 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
7089 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
7090 (build-system python-build-system)
7092 `(("python-docutils" ,python-docutils)
7093 ("python-sphinx" ,python-sphinx)))
7094 (synopsis "News Feed extension for Sphinx")
7095 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
7096 Blog, News or Announcements section to a Sphinx website.")
7097 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
7100 (define-public python-args
7102 (name "python-args")
7106 (uri (pypi-uri "args" version))
7109 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
7110 (build-system python-build-system)
7112 `(("python-setuptools" ,python-setuptools)))
7113 (home-page "https://github.com/kennethreitz/args")
7114 (synopsis "Command-line argument parser")
7116 "This library provides a Python module to parse command-line arguments.")
7119 (define-public python2-args
7120 (package-with-python2 python-args))
7122 (define-public python-clint
7124 (name "python-clint")
7128 (uri (pypi-uri "clint" version))
7131 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
7132 (build-system python-build-system)
7134 `(("python-args" ,python-args)
7135 ("python-setuptools" ,python-setuptools)))
7136 (home-page "https://github.com/kennethreitz/clint")
7137 (synopsis "Command-line interface tools")
7139 "Clint is a Python module filled with a set of tools for developing
7140 command-line applications, including tools for colored and indented
7141 output, progress bar display, and pipes.")
7144 (define-public python2-clint
7145 (package-with-python2 python-clint))
7147 (define-public python-astor
7149 (name "python-astor")
7153 (uri (pypi-uri "astor" version))
7156 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
7157 (build-system python-build-system)
7159 `(("python-setuptools" ,python-setuptools)))
7160 (home-page "https://github.com/berkerpeksag/astor")
7161 (synopsis "Read and write Python ASTs")
7163 "Astor is designed to allow easy manipulation of Python source via the
7164 Abstract Syntax Tree.")
7167 (define-public python2-astor
7168 (package-with-python2 python-astor))
7170 (define-public python-rply
7172 (name "python-rply")
7176 (uri (pypi-uri "rply" version))
7179 "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
7180 (build-system python-build-system)
7182 `(("python-appdirs" ,python-appdirs)
7183 ("python-setuptools" ,python-setuptools)))
7184 (home-page "https://github.com/alex/rply")
7185 (synopsis "Parser generator for Python")
7187 "This package provides a pure Python based parser generator, that also
7188 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
7189 with a new public API, and RPython support.")
7192 (define-public python2-rply
7193 (package-with-python2 python-rply))
7195 (define-public python-hy
7201 (uri (pypi-uri "hy" version))
7204 "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
7205 (build-system python-build-system)
7207 `(("python-astor" ,python-astor)
7208 ("python-clint" ,python-clint)
7209 ("python-rply" ,python-rply)
7210 ("python-setuptools" ,python-setuptools)))
7211 (home-page "http://hylang.org/")
7212 (synopsis "Lisp frontend to Python")
7214 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
7215 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
7216 Python at your fingertips, in Lisp form.")
7217 (license license:expat)))
7219 (define-public python2-hy
7220 (package-with-python2 python-hy))
7222 (define-public python-rauth
7224 (name "python-rauth")
7229 (uri (pypi-uri "rauth" version))
7232 "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf"))))
7233 (build-system python-build-system)
7235 `(#:test-target "check"))
7237 `(("python-setuptools" ,python-setuptools)))
7239 `(("python-requests" ,python-requests)))
7240 (home-page "https://github.com/litl/rauth")
7241 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
7243 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
7244 provides service wrappers for convenient connection initialization and
7245 authenticated session objects providing things like keep-alive.")
7246 (license license:expat)))
7248 (define-public python2-rauth
7249 (let ((rauth (package-with-python2 python-rauth)))
7250 (package (inherit rauth)
7251 (propagated-inputs `(("python2-requests" ,python2-requests)))
7253 `(("python2-unittest2" ,python2-unittest2)
7254 ,@(package-native-inputs rauth))))))
7256 (define-public python2-functools32
7258 (name "python2-functools32")
7263 (uri (pypi-uri "functools32" version))
7266 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
7267 (build-system python-build-system)
7269 `(#:python ,python-2
7270 #:tests? #f)) ; no test target
7272 `(("python2-setuptools" ,python2-setuptools)))
7273 (home-page "https://github.com/MiCHiLU/python-functools32")
7275 "Backport of the functools module from Python 3.2.3")
7277 "This package is a backport of the @code{functools} module from Python
7278 3.2.3 for use with older versions of Python and PyPy.")
7279 (license license:expat)))
7281 (define-public python-futures
7283 (name "python-futures")
7288 (uri (pypi-uri "futures" version))
7291 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig"))))
7292 (build-system python-build-system)
7294 `(("python-setuptools" ,python-setuptools)))
7295 (home-page "https://github.com/agronholm/pythonfutures")
7297 "Backport of the concurrent.futures package from Python 3.2")
7299 "The concurrent.futures module provides a high-level interface for
7300 asynchronously executing callables. This package backports the
7301 concurrent.futures package from Python 3.2")
7304 (define-public python2-futures
7305 (package-with-python2 python-futures))
7307 (define-public python-urllib3
7309 (name "python-urllib3")
7314 (uri (pypi-uri "urllib3" version))
7317 "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf"))))
7318 (build-system python-build-system)
7319 (arguments `(#:tests? #f))
7321 `(("python-setuptools" ,python-setuptools)
7322 ;; some packages for tests
7323 ("python-nose" ,python-nose)
7324 ("python-mock" ,python-mock)
7325 ("python-tornado" ,python-tornado)))
7327 `(;; packages for https security
7328 ("python-certifi" ,python-certifi)
7329 ("python-ndg-httpsclient" ,python-ndg-httpsclient)
7330 ("python-pyasn1" ,python-pyasn1)
7331 ("python-pyopenssl" ,python-pyopenssl)))
7332 (home-page "http://urllib3.readthedocs.org/")
7333 (synopsis "HTTP library with thread-safe connection pooling")
7335 "Urllib3 supports features left out of urllib and urllib2 libraries. It
7336 can reuse the same socket connection for multiple requests, it can POST files,
7337 supports url redirection and retries, and also gzip and deflate decoding.")
7338 (license license:expat)))
7340 (define-public python2-urllib3
7341 (package-with-python2 python-urllib3))
7343 (define-public python-colorama
7345 (name "python-colorama")
7350 (uri (pypi-uri "colorama" version))
7353 "1716z9pq1r5ys3nkg7wdrb3h2f9rmd0zdxpxzmx3bgwgf6xg48gb"))))
7354 (build-system python-build-system)
7356 `(("python-setuptools" ,python-setuptools)))
7357 (synopsis "colored terminal text rendering for Python")
7358 (description "Colorama is a Python library for rendering colored terminal
7360 (home-page "https://pypi.python.org/pypi/colorama")
7363 (define-public python2-colorama
7364 (package-with-python2 python-colorama))
7366 (define-public python-rsa
7373 (uri (pypi-uri "rsa" version))
7376 "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh"))))
7377 (build-system python-build-system)
7379 `(("python-pyasn1" ,python-pyasn1)
7380 ("python-setuptools" ,python-setuptools)))
7381 (synopsis "Pure-Python RSA implementation")
7382 (description "Python-RSA is a pure-Python RSA implementation. It supports
7383 encryption and decryption, signing and verifying signatures, and key
7384 generation according to PKCS#1 version 1.5. It can be used as a Python
7385 library as well as on the command line.")
7386 (home-page "http://stuvel.eu/rsa")
7389 (define-public python2-rsa
7390 (package-with-python2 python-rsa))
7392 (define-public python-pluggy
7394 (name "python-pluggy")
7399 (uri (pypi-uri "pluggy" version))
7402 "18qfzfm40bgx672lkg8q9x5hdh76n7vax99aank7vh2nw21wg70m"))))
7403 (build-system python-build-system)
7405 `(("python-setuptools" ,python-setuptools)))
7406 (synopsis "Plugin and hook calling mechanism for Python")
7407 (description "Pluggy is an extraction of the plugin manager as used by
7408 Pytest but stripped of Pytest specific details.")
7409 (home-page "https://pypi.python.org/pypi/pluggy")
7410 (license license:expat)))
7412 (define-public python2-pluggy
7413 (package-with-python2 python-pluggy))
7415 (define-public python-tox
7422 (uri (pypi-uri "tox" version))
7425 "1vj73ar4rimq3fwy5r2z3jv4g9qbh8rmpmncsc00g0k310acqzxz"))))
7426 (build-system python-build-system)
7428 ;; FIXME: Tests require a newer version of pytest, but upgrading our
7429 ;; pytest breaks other packages.
7432 `(("python-setuptools" ,python-setuptools)
7433 ("python-pluggy" ,python-pluggy)
7434 ("python-py" ,python-py)
7435 ("python-virtualenv" ,python-virtualenv)
7436 ("python-pytest" ,python-pytest)))
7437 (home-page "http://tox.testrun.org/")
7438 (synopsis "Virtualenv-based automation of test activities")
7439 (description "Tox is a generic virtualenv management and test command line
7440 tool. It can be used to check that a package installs correctly with
7441 different Python versions and interpreters, or run tests in each type of
7442 supported environment, or act as a frontend to continuous integration
7444 (license license:expat)))
7446 (define-public python2-tox
7447 (package-with-python2 python-tox))
7449 (define-public python-jmespath
7451 (name "python-jmespath")
7456 (uri (pypi-uri "jmespath" version))
7459 "0g9xvl69y7nr3w7ag4fsp6sm4fqf6vrqjw7504x2hzrrsh3ampq8"))))
7460 (build-system python-build-system)
7462 `(("python-setuptools" ,python-setuptools)))
7463 (synopsis "JSON Matching Expressions")
7464 (description "JMESPath (pronounced “james path”) is a Python library that
7465 allows one to declaratively specify how to extract elements from a JSON
7467 (home-page "https://github.com/jmespath/jmespath.py")
7468 (license license:expat)))
7470 (define-public python2-jmespath
7471 (package-with-python2 python-jmespath))
7473 (define-public python-botocore
7475 (name "python-botocore")
7480 (uri (pypi-uri "botocore" version))
7483 "08vpvdixx1c1lfv6vzjig68bpiir7wfyhzf49ysxgvhbprg5ra0w"))))
7484 (build-system python-build-system)
7486 `(("python-dateutil" ,python-dateutil-2)
7487 ("python-docutils" ,python-docutils)
7488 ("python-mock" ,python-mock)
7489 ("python-nose" ,python-nose)
7490 ("python-setuptools" ,python-setuptools)
7491 ("python-tox" ,python-tox)
7492 ("python-wheel" ,python-wheel)
7493 ("python-jmespath" ,python-jmespath)))
7494 (home-page "https://github.com/boto/botocore")
7495 (synopsis "Low-level interface to AWS")
7496 (description "Botocore is a Python library that provides a low-level
7497 interface to the Amazon Web Services (AWS) API.")
7500 (define-public python2-botocore
7501 (package-with-python2 python-botocore))
7503 (define-public awscli
7511 "https://pypi.python.org/packages/source/a/awscli/awscli-"
7515 "1nj7jqvlpq57hfhby1njsbf8303gapa3njc4dramr6p3ffzvfi2i"))))
7516 (build-system python-build-system)
7518 `(("python-colorama" ,python-colorama)
7519 ("python-docutils" ,python-docutils)
7520 ("python-mock" ,python-mock)
7521 ("python-nose" ,python-nose)
7522 ("python-rsa" ,python-rsa)
7523 ("python-setuptools" ,python-setuptools)
7524 ("python-sphinx" ,python-sphinx)
7525 ("python-tox" ,python-tox)
7526 ("python-wheel" ,python-wheel)
7527 ("python-botocore" ,python-botocore)))
7528 (home-page "http://aws.amazon.com/cli/")
7529 (synopsis "Command line client for AWS")
7530 (description "AWS CLI provides a unified command line interface to the
7531 Amazon Web Services (AWS) API.")
7534 (define-public python-hypothesis
7536 (name "python-hypothesis")
7540 (uri (pypi-uri "hypothesis" version))
7543 "0qyqq9akm4vshhn8cngjc1qykcvsn7cz6dlm6njfsgpbraqrmbbw"))))
7544 (build-system python-build-system)
7546 `(("python-flake8" ,python-flake8)
7547 ("python-pytest" ,python-pytest)))
7548 (synopsis "Library for property based testing")
7549 (description "Hypothesis is a library for testing your Python code against a
7550 much larger range of examples than you would ever want to write by hand. It’s
7551 based on the Haskell library, Quickcheck, and is designed to integrate
7552 seamlessly into your existing Python unit testing work flow.")
7553 (home-page "https://github.com/DRMacIver/hypothesis")
7555 (properties `((python2-variant . ,(delay python2-hypothesis))))))
7557 (define-public python2-hypothesis
7558 (let ((hypothesis (package-with-python2
7559 (strip-python2-variant python-hypothesis))))
7560 (package (inherit hypothesis)
7562 `(("python2-enum34" ,python2-enum34)
7563 ("python2-setuptools" ,python2-setuptools))))))
7565 (define-public python-pytest-subtesthack
7567 (name "python-pytest-subtesthack")
7571 (uri (pypi-uri "pytest-subtesthack" version))
7574 "15kzcr5pchf3id4ikdvlv752rc0j4d912n589l4rifp8qsj19l1x"))))
7575 (build-system python-build-system)
7577 `(;; setuptools required for python-2 variant
7578 ("python-setuptools" ,python-setuptools)))
7580 `(("python-pytest" ,python-pytest)))
7581 (synopsis "Set-up and tear-down fixtures for unit tests")
7582 (description "This plugin allows you to set up and tear down fixtures within
7583 unit test functions that use @code{py.test}. This is useful for using
7584 @command{hypothesis} inside py.test, as @command{hypothesis} will call the test
7585 function multiple times, without setting up or tearing down fixture state as is
7586 normally the case.")
7587 (home-page "https://github.com/untitaker/pytest-subtesthack/")
7588 (license unlicense)))
7590 (define-public python2-pytest-subtesthack
7591 (package-with-python2 python-pytest-subtesthack))
7593 (define-public python2-xdo
7595 (name "python2-xdo")
7600 "http://http.debian.net/debian/pool/main/p/python-xdo/"
7601 "python-xdo_" version ".orig.tar.gz"))
7604 "1kl5c1p0dyxf62plnk6fl77ycfb4whwjms16r14dxx8kn90hlqz4"))))
7605 (build-system python-build-system)
7607 `(#:python ,python-2
7608 #:tests? #f)) ; no tests provided
7610 `(("xdotool" ,xdotool)
7611 ("libX11" ,libx11)))
7612 (home-page "https://tracker.debian.org/pkg/python-xdo")
7613 (synopsis "Python library for simulating X11 keyboard/mouse input")
7614 (description "Provides bindings to libxdo for manipulating X11 via simulated
7615 input. (Note that this is mostly a legacy library; you may wish to look at
7616 python-xdo for newer bindings.)")
7619 (define-public python-wtforms
7621 (name "python-wtforms")
7626 (uri (pypi-uri "WTForms" version ".zip"))
7629 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
7630 (build-system python-build-system)
7632 `(("unzip" ,unzip)))
7633 (home-page "http://wtforms.simplecodes.com/")
7635 "Form validation and rendering library for Python web development")
7637 "WTForms is a flexible forms validation and rendering library
7638 for Python web development. It is very similar to the web form API
7639 available in Django, but is a standalone package.")
7641 (properties `((python2-variant . ,(delay python2-wtforms))))))
7643 (define-public python2-wtforms
7645 (inherit (package-with-python2
7646 (strip-python2-variant python-wtforms)))
7647 (inputs `(("python2-setuptools" ,python2-setuptools)))))
7649 (define-public python-mako
7651 (name "python-mako")
7656 (uri (pypi-uri "Mako" version))
7659 "136kcjbs0s98qkx8a418b05dfblqp0kiiqyx8vhx4rarwc7bqi3n"))))
7660 (build-system python-build-system)
7662 `(("python-markupsafe" ,python-markupsafe)
7663 ("python-mock" ,python-mock)
7664 ("python-nose" ,python-nose)))
7665 (home-page "http://www.makotemplates.org/")
7666 (synopsis "Templating language for Python")
7667 (description "Mako is a templating language for Python that compiles
7668 templates into Python modules.")
7669 (license license:expat)
7670 (properties `((python2-variant . ,(delay python2-mako))))))
7672 (define-public python2-mako
7673 (let ((base (package-with-python2
7674 (strip-python2-variant python-mako))))
7678 (cons `("python2-setuptools" ,python2-setuptools)
7679 (package-native-inputs base))))))
7681 (define-public python-waitress
7683 (name "python-waitress")
7688 (uri (pypi-uri "waitress" version))
7691 "017n9ra6vvmq9d5sfhdzyzr1mg15x2hj2dhm4pdlw98c1ypw2h3w"))))
7692 (build-system python-build-system)
7693 (home-page "https://github.com/Pylons/waitress")
7694 (synopsis "Waitress WSGI server")
7695 (description "Waitress is meant to be a production-quality pure-Python WSGI
7696 server with very acceptable performance.")
7698 (properties `((python2-variant . ,(delay python2-waitress))))))
7700 (define-public python2-waitress
7702 (inherit (package-with-python2
7703 (strip-python2-variant python-waitress)))
7704 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
7706 (define-public python-wsgiproxy2
7708 (name "python-wsgiproxy2")
7713 (uri (pypi-uri "WSGIProxy2" version ".zip"))
7716 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
7717 (build-system python-build-system)
7720 ("python-nose" ,python-nose)
7721 ("python-coverage" ,python-coverage)))
7723 `(("python-six" ,python-six)
7724 ("python-webob" ,python-webob)))
7726 "https://github.com/gawel/WSGIProxy2/")
7727 (synopsis "WSGI Proxy with various http client backends")
7728 (description "WSGI turns HTTP requests into WSGI function calls.
7729 WSGIProxy turns WSGI function calls into HTTP requests.
7730 It also includes code to sign requests and pass private data,
7731 and to spawn subprocesses to handle requests.")
7732 (license license:expat)
7733 (properties `((python2-variant . ,(delay python2-wsgiproxy2))))))
7735 (define-public python2-wsgiproxy2
7736 (let ((wsgiproxy2 (package-with-python2
7737 (strip-python2-variant python-wsgiproxy2))))
7739 (inherit wsgiproxy2)
7740 (inputs `(("python2-setuptools" ,python2-setuptools)
7741 ,@(package-inputs wsgiproxy2))))))
7743 (define-public python-pastedeploy
7745 (name "python-pastedeploy")
7750 (uri (pypi-uri "PasteDeploy" version))
7753 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
7754 (build-system python-build-system)
7756 `(("python-nose" ,python-nose)))
7758 ;; This package uses pkg_resources, part of setuptools, during runtime,
7759 ;; hence why not a native-input.
7760 `(("python-setuptools" ,python-setuptools)))
7761 (home-page "http://pythonpaste.org/deploy/")
7763 "Load, configure, and compose WSGI applications and servers")
7765 "This tool provides code to load WSGI applications and servers from URIs;
7766 these URIs can refer to Python Eggs for INI-style configuration files. Paste
7767 Script provides commands to serve applications based on this configuration
7769 (license license:expat)))
7771 (define-public python2-pastedeploy
7772 (package-with-python2 python-pastedeploy))
7774 (define-public python-paste
7776 (name "python-paste")
7781 (uri (pypi-uri "Paste" version))
7784 "16dsv9qi0r4qsrsb6dilpq2rx0fnglvh36flzywcdnm2jg43mb5d"))
7785 (patches (list (search-patch
7786 "python-paste-remove-website-test.patch")
7788 "python-paste-remove-timing-test.patch")))))
7789 (build-system python-build-system)
7791 `(("python-nose" ,python-nose)))
7793 `(;; Uses pkg_resources provided by setuptools internally.
7794 ("python-setuptools" ,python-setuptools)
7795 ("python-six" ,python-six)))
7797 '(;; Tests don't pass on Python 3, but work fine on Python 2.
7798 ;; (As of 2.0.2, Python 3 support in Paste is presently a bit broken,
7799 ;; but is usable enough for the minimal amount it's used in MediaGoblin
7800 ;; still... things should be better by the next Paste release.)
7802 (home-page "http://pythonpaste.org")
7804 "Python web development tools, focusing on WSGI")
7806 "Paste provides a variety of web development tools and middleware which
7807 can be nested together to build web applications. Paste's design closely
7808 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
7809 (license license:expat)
7810 (properties `((python2-variant . ,(delay python2-paste))))))
7812 (define-public python2-paste
7813 (let ((paste (package-with-python2
7814 (strip-python2-variant python-paste))))
7818 ;; Tests are back for Python 2!
7820 ,@(package-arguments paste))))))
7822 (define-public python-pastescript
7824 (name "python-pastescript")
7829 (uri (pypi-uri "PasteScript" version))
7832 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
7833 (build-system python-build-system)
7835 `(("python-nose" ,python-nose)))
7837 `(;; Uses pkg_resources provided by setuptools internally.
7838 ("python-setuptools" ,python-setuptools)
7839 ("python-paste" ,python-paste)
7840 ("python-pastedeploy" ,python-pastedeploy)))
7841 (home-page "http://pythonpaste.org/script/")
7843 '(;; Unfortunately, this requires the latest unittest2,
7844 ;; but that requires traceback2 which requires linecache2 which requires
7845 ;; unittest2. So we're skipping tests for now.
7846 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
7847 ;; so in theory we could get around this situation somehow.)
7850 "Pluggable command line tool for serving web applications and more")
7852 "PasteScript is a plugin-friendly command line tool which provides a
7853 variety of features, from launching web applications to bootstrapping project
7855 (license license:expat)))
7857 (define-public python2-pastescript
7858 (package-with-python2 python-pastescript))
7860 (define-public python-pyquery
7862 (name "python-pyquery")
7867 (uri (pypi-uri "pyquery" version))
7870 "1ikz1387nsp0pp7mzzr6ip9n5gr67acpap24yn33987v7fkjp0sa"))))
7871 (build-system python-build-system)
7873 `(("python-lxml" ,python-lxml)
7874 ("python-cssselect" ,python-cssselect)))
7875 (home-page "https://github.com/gawel/pyquery")
7876 (synopsis "Make jQuery-like queries on xml documents")
7877 (description "pyquery allows you to make jQuery queries on xml documents.
7878 The API is as much as possible the similar to jQuery. pyquery uses lxml for
7879 fast xml and html manipulation.")
7881 (properties `((python2-variant . ,(delay python2-pyquery))))))
7883 (define-public python2-pyquery
7884 (let ((pyquery (package-with-python2
7885 (strip-python2-variant python-pyquery))))
7888 (native-inputs `(("python2-setuptools" ,python2-setuptools))))))
7890 (define-public python-webtest
7892 (name "python-webtest")
7897 (uri (pypi-uri "WebTest" version))
7900 "0bv0qhdjakdsdgj4sk21gnpp8xp8bga4x03p6gjb83ihrsb7n4xv"))))
7901 (build-system python-build-system)
7903 `(;; Unfortunately we have to disable tests!
7904 ;; This release of WebTest is pinned to python-nose < 1.3,
7905 ;; but older versions of python-nose are plagued with the following
7906 ;; bug(s), which rears its ugly head during test execution:
7907 ;; https://github.com/nose-devs/nose/issues/759
7908 ;; https://github.com/nose-devs/nose/pull/811
7910 ;; Commented out code is no good, but in this case, once tests
7911 ;; are ready to be enabled again, we should put the following
7914 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
7915 ;; ; but see above comment
7916 ;; ("python-coverage" ,python-coverage)
7917 ;; ("python-mock" ,python-mock)
7918 ;; ("python-pastedeploy" ,python-pastedeploy)
7919 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
7920 ;; ("python-pyquery" ,python-pyquery)))
7922 `(("python-waitress" ,python-waitress)
7923 ("python-webob" ,python-webob)
7924 ("python-six" ,python-six)
7925 ("python-beautifulsoup4" ,python-beautifulsoup4)))
7926 (home-page "http://webtest.pythonpaste.org/")
7927 (synopsis "Helper to test WSGI applications")
7928 (description "Webtest allows you to test your Python web applications
7929 without starting an HTTP server. It supports anything that supports the
7931 (license license:expat)
7932 (properties `((python2-variant . ,(delay python2-webtest))))))
7934 (define-public python2-webtest
7935 (let ((webtest (package-with-python2
7936 (strip-python2-variant python-webtest))))
7939 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7940 ,@(package-native-inputs webtest))))))
7942 (define-public python-anyjson
7944 (name "python-anyjson")
7949 (uri (pypi-uri "anyjson" version))
7952 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
7953 (build-system python-build-system)
7955 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
7956 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
7957 ;; whatever) so this transformation needs to be done before the tests
7958 ;; can be run. Maybe we could add a build step to transform beforehand
7959 ;; but it could be annoying/difficult.
7960 ;; We can enable tests for the Python 2 version, though, and do below.
7962 (home-page "http://bitbucket.org/runeh/anyjson/")
7964 "Wraps best available JSON implementation in a common interface")
7966 "Anyjson loads whichever is the fastest JSON module installed
7967 and provides a uniform API regardless of which JSON implementation is used.")
7969 (properties `((python2-variant . ,(delay python2-anyjson))))))
7971 (define-public python2-anyjson
7972 (let ((anyjson (package-with-python2
7973 (strip-python2-variant python-anyjson))))
7976 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
7978 ,@(package-arguments anyjson)))
7979 (native-inputs `(("python2-setuptools" ,python2-setuptools)
7980 ("python2-nose" ,python2-nose))))))
7982 (define-public python-amqp
7984 (name "python-amqp")
7989 (uri (pypi-uri "amqp" version))
7992 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
7993 (build-system python-build-system)
7995 `(("python-nose" ,python-nose)
7996 ("python-mock" ,python-mock)))
7997 (home-page "http://github.com/celery/py-amqp")
7999 "Low-level AMQP client for Python (fork of amqplib)")
8001 "This is a fork of amqplib which was originally written by Barry Pederson.
8002 It is maintained by the Celery project, and used by kombu as a pure python
8003 alternative when librabbitmq is not available.")
8005 (properties `((python2-variant . ,(delay python2-amqp))))))
8007 (define-public python2-amqp
8008 (let ((amqp (package-with-python2
8009 (strip-python2-variant python-amqp))))
8012 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
8013 ;; unmaintained. Weirdly, does not do this on the python 3
8016 ,@(package-arguments amqp)))
8017 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8018 ,@(package-native-inputs amqp))))))
8020 (define-public python-kombu
8022 (name "python-kombu")
8027 (uri (pypi-uri "kombu" version))
8030 "16brjx2lgwbj2a37d0pjbfb84nvld6irghmqrs3qfncajp51hgc5"))))
8031 (build-system python-build-system)
8033 `(("python-mock" ,python-mock)
8034 ("python-nose" ,python-nose)))
8036 `(("python-anyjson" ,python-anyjson)
8037 ("python-amqp" ,python-amqp)))
8038 (home-page "http://kombu.readthedocs.org")
8039 (synopsis "Message passing library for Python")
8040 (description "The aim of Kombu is to make messaging in Python as easy as
8041 possible by providing an idiomatic high-level interface for the AMQ protocol,
8042 and also provide proven and tested solutions to common messaging problems.
8043 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
8044 message orientation, queuing, routing, reliability and security, for which the
8045 RabbitMQ messaging server is the most popular implementation.")
8047 (properties `((python2-variant . ,(delay python2-kombu))))))
8049 (define-public python2-kombu
8050 (let ((kombu (package-with-python2
8051 (strip-python2-variant python-kombu))))
8054 (inputs `(("python2-setuptools" ,python2-setuptools)
8055 ("python2-unittest2" ,python2-unittest2)
8056 ,@(package-inputs kombu))))))
8058 (define-public python-billiard
8060 (name "python-billiard")
8061 (version "3.3.0.22")
8065 (uri (pypi-uri "billiard" version))
8068 "0zp7h6a58alrb3mwdw61jds07395j4j0mj6iqsb8czrihw9ih5nj"))))
8069 (build-system python-build-system)
8071 `(("python-nose" ,python-nose)))
8072 (home-page "http://github.com/celery/billiard")
8074 "Python multiprocessing fork with improvements and bugfixes")
8076 "Billiard is a fork of the Python 2.7 multiprocessing package. The
8077 multiprocessing package itself is a renamed and updated version of R Oudkerk's
8078 pyprocessing package. This standalone variant is intended to be compatible with
8079 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
8081 (properties `((python2-variant . ,(delay python2-billiard))))))
8083 (define-public python2-billiard
8084 (let ((billiard (package-with-python2
8085 (strip-python2-variant python-billiard))))
8088 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8089 ("python2-unittest2" ,python2-unittest2)
8090 ("python2-mock" ,python2-mock)
8091 ,@(package-native-inputs billiard))))))
8093 (define-public python-celery
8095 (name "python-celery")
8100 (uri (pypi-uri "celery" version))
8103 "1md6ywg1s0946qyp8ndnsd677wm0yax933h2sb4m3a4j7lf1jbyh"))))
8104 (build-system python-build-system)
8106 `(("python-nose" ,python-nose)))
8108 `(("python-pytz" ,python-pytz)
8109 ("python-billiard" ,python-billiard)
8110 ("python-kombu" ,python-kombu)))
8111 (home-page "http://celeryproject.org")
8112 (synopsis "Distributed Task Queue")
8113 (description "Celery is an asynchronous task queue/job queue based on
8114 distributed message passing. It is focused on real-time operation, but
8115 supports scheduling as well. The execution units, called tasks, are executed
8116 concurrently on a single or more worker servers using multiprocessing,
8117 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
8118 synchronously (wait until ready).")
8120 (properties `((python2-variant . ,(delay python2-celery))))))
8122 (define-public python2-celery
8123 (let ((celery (package-with-python2
8124 (strip-python2-variant python-celery))))
8127 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8128 ("python2-unittest2" ,python2-unittest2)
8129 ("python2-mock" ,python2-mock)
8130 ,@(package-native-inputs celery))))))
8132 (define-public python-translitcodec
8134 (name "python-translitcodec")
8139 (uri (pypi-uri "translitcodec" version))
8142 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
8143 (build-system python-build-system)
8145 `(#:tests? #f)) ; no tests provided
8147 "https://github.com/claudep/translitcodec")
8149 "Unicode to 8-bit charset transliteration codec")
8151 "This package contains codecs for transliterating ISO 10646 texts into
8152 best-effort representations using smaller coded character sets (ASCII,
8154 (license license:expat)
8155 (properties `((python2-variant . ,(delay python2-translitcodec))))))
8157 (define-public python2-translitcodec
8159 (inherit (package-with-python2
8160 (strip-python2-variant python-translitcodec)))
8161 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8163 (define-public python-editor
8165 (name "python-editor")
8170 (uri (pypi-uri "python-editor" version))
8173 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
8174 (build-system python-build-system)
8176 "https://github.com/fmoo/python-editor")
8178 "Programmatically open an editor, capture the result")
8180 "python-editor is a library that provides the editor module for
8181 programmatically interfacing with your system's $EDITOR.")
8183 (properties `((python2-variant . ,(delay python2-editor))))))
8185 (define-public python2-editor
8187 (inherit (package-with-python2
8188 (strip-python2-variant python-editor)))
8189 (inputs `(("python2-setuptools" ,python2-setuptools)))))
8191 (define-public python-sphinxcontrib-programoutput
8193 (name "python-sphinxcontrib-programoutput")
8197 (uri (pypi-uri "sphinxcontrib-programoutput" version))
8200 "098as6z1s0gb4dh5xcr1fd2vpm91zj93jzvgawspxf5s4hqs0xhp"))))
8201 (build-system python-build-system)
8203 `(("python-docutils" ,python-docutils)
8204 ("python-sphinx" ,python-sphinx)))
8205 (synopsis "Sphinx extension to include program output")
8206 (description "A Sphinx extension to literally insert the output of arbitrary
8207 commands into documents, helping you to keep your command examples up to date.")
8208 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
8210 (properties `((python2-variant . ,(delay python2-sphinxcontrib-programoutput))))))
8212 (define-public python2-sphinxcontrib-programoutput
8214 (inherit (package-with-python2
8215 (strip-python2-variant python-sphinxcontrib-programoutput)))
8216 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8218 (define-public python-sphinx-repoze-autointerface
8220 (name "python-sphinx-repoze-autointerface")
8224 (uri (pypi-uri "repoze.sphinx.autointerface" version))
8227 "016mv3wbylw278wl7z33y2liyra8ljp08zq1g0anzadh1an5zvwp"))))
8228 (build-system python-build-system)
8230 `(("python-docutils" ,python-docutils)
8231 ("python-sphinx" ,python-sphinx)
8232 ("python-zope-interface" ,python-zope-interface)))
8233 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
8234 (description "This package defines an extension for the Sphinx documentation
8235 system. The extension allows generation of API documentation by
8236 introspection of @code{zope.interface} instances in code.")
8237 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
8240 (define-public python2-sphinx-repoze-autointerface
8241 (package-with-python2 python-sphinx-repoze-autointerface))
8243 (define-public python-psycopg2
8245 (name "python-psycopg2")
8250 (uri (pypi-uri "psycopg2" version))
8253 "0k4hshvrwsh8yagydyxgmd0pjm29lwdxkngcq9fzfzkmpsxrmkva"))))
8254 (build-system python-build-system)
8256 ;; Tests would require a postgresql database "psycopg2_test"
8257 ;; and a running postgresql database management service.
8258 `(#:tests? #f)) ; TODO re-enable after providing a test-db.
8260 `(("postgresql" ,postgresql))) ; libpq
8261 (home-page "http://initd.org/psycopg/")
8262 (synopsis "Python PostgreSQL adapter")
8264 "psycopg2 is a thread-safe PostgreSQL adapter that implements DB-API 2.0. ")
8266 (properties `((python2-variant . ,(delay python2-psycopg2))))))
8268 (define-public python2-psycopg2
8270 (inherit (package-with-python2
8271 (strip-python2-variant python-psycopg2)))
8272 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8274 (define-public python-vobject
8276 (name "python-vobject")
8280 (uri (pypi-uri "vobject" version))
8283 "1cwzjnrdr9yg2x21wbf3kf59ibnchvj33mygd69yzi178a9gs9gz"))))
8284 (build-system python-build-system)
8286 `(("python-dateutil-2" ,python-dateutil-2)
8287 ("python-pyicu" ,python-pyicu)))
8288 (synopsis "Parse and generate vCard and vCalendar files")
8289 (description "Vobject is intended to be a full featured Python package for
8290 parsing and generating vCard and vCalendar files. Currently, iCalendar files
8291 are supported and well tested. vCard 3.0 files are supported, and all data
8292 should be imported, but only a few components are understood in a sophisticated
8294 (home-page "http://eventable.github.io/vobject/")
8296 (properties `((python2-variant . ,(delay python2-vobject))))))
8298 (define-public python2-vobject
8300 (inherit (package-with-python2
8301 (strip-python2-variant python-vobject)))
8302 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8304 (define-public python-munkres
8306 (name "python-munkres")
8310 (uri (pypi-uri "munkres" version))
8313 "1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"))))
8314 (build-system python-build-system)
8316 '(#:tests? #f)) ; no test suite
8317 (home-page "http://software.clapper.org/munkres/")
8318 (synopsis "Implementation of the Munkres algorithm")
8319 (description "The Munkres module provides an implementation of the Munkres
8320 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
8321 useful for solving the Assignment Problem.")
8324 (define-public python2-munkres
8325 (package-with-python2 python-munkres))
8327 (define-public python-flask
8329 (name "python-flask")
8333 (uri (pypi-uri "Flask" version))
8336 "0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"))))
8337 (build-system python-build-system)
8339 `(("python-itsdangerous" ,python-itsdangerous)
8340 ("python-jinja2" ,python-jinja2)
8341 ("python-werkzeug" ,python-werkzeug)))
8342 (home-page "https://github.com/mitsuhiko/flask/")
8343 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
8344 (description "Flask is a micro web framework based on the Werkzeug toolkit
8345 and Jinja2 template engine. It is called a micro framework because it does not
8346 presume or force a developer to use a particular tool or library.")
8348 (properties `((python2-variant . ,(delay python2-flask))))))
8350 (define-public python2-flask
8351 (package (inherit (package-with-python2
8352 (strip-python2-variant python-flask)))
8353 (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
8355 (define-public python-cookies
8357 (name "python-cookies")
8361 (uri (pypi-uri "cookies" version))
8364 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
8365 (build-system python-build-system)
8367 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
8370 `(("python-pytest" ,python2-pytest)))
8371 (synopsis "HTTP cookie parser and renderer")
8372 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
8374 (home-page "https://gitlab.com/sashahart/cookies")
8375 (license license:expat)
8376 (properties `((python2-variant . ,(delay python2-cookies))))))
8378 (define-public python2-cookies
8379 (let ((cookies (package-with-python2
8380 (strip-python2-variant python-cookies))))
8381 (package (inherit cookies)
8382 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8383 ,@(package-native-inputs cookies))))))
8385 (define-public python-responses
8387 (name "python-responses")
8391 (uri (pypi-uri "responses" version))
8394 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
8395 (build-system python-build-system)
8397 `(;; Test suite is not distributed:
8398 ;; https://github.com/getsentry/responses/issues/38
8401 `(("python-cookies" ,python-cookies)
8402 ("python-mock" ,python-mock)))
8404 `(("python-requests" ,python-requests)
8405 ("python-six" ,python-six)))
8406 (home-page "https://github.com/getsentry/responses")
8407 (synopsis "Utility for mocking out the `requests` Python library")
8408 (description "A utility library for mocking out the `requests` Python
8411 (properties `((python2-variant . ,(delay python2-responses))))))
8413 (define-public python2-responses
8414 (let ((responses (package-with-python2
8415 (strip-python2-variant python-responses))))
8416 (package (inherit responses)
8417 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8418 ,@(package-native-inputs responses))))))
8420 (define-public python-pathlib
8422 (name "python-pathlib")
8426 (uri (pypi-uri "pathlib" version))
8429 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
8430 (build-system python-build-system)
8433 (modify-phases %standard-phases
8435 (lambda _ (zero? (system* "python" "./test_pathlib.py")))))))
8436 (home-page "https://pathlib.readthedocs.org/")
8437 (synopsis "Object-oriented filesystem paths")
8438 (description "Pathlib offers a set of classes to handle filesystem paths.
8439 It offers the following advantages over using string objects:
8442 @item No more cumbersome use of os and os.path functions. Everything can
8443 be done easily through operators, attribute accesses, and method calls.
8444 @item Embodies the semantics of different path types. For example,
8445 comparing Windows paths ignores casing.
8446 @item Well-defined semantics, eliminating any inconsistencies or
8447 ambiguities (forward vs. backward slashes, etc.).
8449 (license license:expat)))
8451 (define-public python2-pathlib
8452 (package-with-python2 python-pathlib))
8454 (define-public python-jellyfish
8456 (name "python-jellyfish")
8460 (uri (pypi-uri "jellyfish" version))
8463 "12bxh8cy9xmvyrjz7aw159nd5pyvb645rkvw4r6bvm4xbvs8gd07"))))
8464 (build-system python-build-system)
8466 `(("python-pytest" ,python-pytest)))
8467 (home-page "https://github.com/jamesturk/jellyfish")
8468 (synopsis "Approximate and phonetic matching of strings")
8469 (description "Jellyfish uses a variety of string comparison and phonetic
8470 encoding algorithms to do fuzzy string matching.")
8472 (properties `((python2-variant . ,(delay python2-jellyfish))))))
8474 (define-public python2-jellyfish
8475 (let ((jellyfish (package-with-python2
8476 (strip-python2-variant python-jellyfish))))
8477 (package (inherit jellyfish)
8478 (native-inputs `(("python2-setuptools" ,python2-setuptools)
8479 ("python2-unicodecsv" ,python2-unicodecsv)
8480 ,@(package-native-inputs jellyfish))))))
8482 (define-public python2-unicodecsv
8484 (name "python2-unicodecsv")
8488 ;; The test suite is not included in the PyPi release.
8489 ;; https://github.com/jdunck/python-unicodecsv/issues/19
8490 (uri (string-append "https://github.com/jdunck/python-unicodecsv/"
8491 "archive/" version ".tar.gz"))
8492 (file-name (string-append name "-" version ".tar.gz"))
8495 "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
8496 (build-system python-build-system)
8498 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
8499 #:python ,python-2))
8501 `(("python2-setuptools" ,python2-setuptools)
8502 ("python2-unittest2" ,python2-unittest2)))
8503 (home-page "https://github.com/jdunck/python-unicodecsv")
8504 (synopsis "Unicode CSV module for Python 2")
8505 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
8506 module, adding support for Unicode strings.")
8509 (define-public python-rarfile
8511 (name "python-rarfile")
8515 (uri (pypi-uri "rarfile" version))
8518 "0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
8519 ;; https://github.com/markokr/rarfile/pull/17/
8520 (patches (list (search-patch "python-rarfile-fix-tests.patch")))))
8521 (build-system python-build-system)
8524 (modify-phases %standard-phases
8526 ;; Many tests fail, but the installation proceeds.
8527 (lambda _ (zero? (system* "make" "-C" "test" "test")))))))
8529 `(("which" ,which))) ; required for tests
8531 `(("libarchive" ,libarchive)))
8532 (home-page "https://github.com/markokr/rarfile")
8533 (synopsis "RAR archive reader for Python")
8534 (description "This is Python module for RAR archive reading. The interface
8535 is made as zipfile like as possible.")
8538 (define-public python2-rarfile
8539 (package-with-python2 python-rarfile))
8541 (define-public python-magic
8543 (name "python-magic")
8548 (uri (string-append "https://github.com/ahupp/python-magic/archive/"
8552 "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
8553 (file-name (string-append name "-" version "-checkout"))))
8554 (build-system python-build-system)
8556 ;; The tests are unreliable, so don't run them. The tests fail
8557 ;; under Python3 because they were written for Python2 and
8558 ;; contain import statements that do not work in Python3. One of
8559 ;; the tests fails under Python2 because its assertions are
8560 ;; overly stringent; it relies on comparing output strings which
8561 ;; are brittle and can change depending on the version of
8562 ;; libmagic being used and the system on which the test is
8563 ;; running. In my case, under GuixSD 0.10.0, only one test
8564 ;; failed, and it seems to have failed only because the version
8565 ;; of libmagic that is packaged in Guix outputs a slightly
8566 ;; different (but not wrong) string than the one that the test
8569 #:phases (modify-phases %standard-phases
8570 ;; Replace a specific method call with a hard-coded
8571 ;; path to the necessary libmagic.so file in the
8572 ;; store. If we don't do this, then the method call
8573 ;; will fail to find the libmagic.so file, which in
8574 ;; turn will cause any application using
8575 ;; python-magic to fail.
8576 (add-before 'build 'hard-code-path-to-libmagic
8577 (lambda* (#:key inputs #:allow-other-keys)
8578 (let ((file (assoc-ref inputs "file")))
8579 (substitute* "magic.py"
8580 (("ctypes.util.find_library\\('magic'\\)")
8581 (string-append "'" file "/lib/libmagic.so'")))
8584 `(("python-setuptools" ,python-setuptools)))
8586 ;; python-magic needs to be able to find libmagic.so.
8588 (home-page "https://github.com/ahupp/python-magic")
8589 (synopsis "File type identification using libmagic")
8591 "This module uses ctypes to access the libmagic file type
8592 identification library. It makes use of the local magic database and
8593 supports both textual and MIME-type output. Note that this module and
8594 the python-file module both provide a \"magic.py\" file; these two
8595 modules, which are different and were developed separately, both serve
8596 the same purpose: to provide Python bindings for libmagic.")
8597 (license license:expat)))
8599 (define-public python2-magic
8600 (package-with-python2 python-magic))
8602 (define-public python2-s3cmd
8604 (name "python2-s3cmd")
8609 (uri (string-append "mirror://sourceforge/s3tools/"
8610 "s3cmd-" version ".tar.gz"))
8613 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
8614 (build-system python-build-system)
8616 ;; s3cmd is written for python2 only and contains no tests.
8617 `(#:python ,python-2
8620 `(("python2-setuptools" ,python2-setuptools)))
8622 `(("python2-dateutil" ,python2-dateutil)
8623 ;; The python-file package also provides a magic.py module.
8624 ;; This is an unfortunate state of affairs; however, s3cmd
8625 ;; fails to install if it cannot find specifically the
8626 ;; python-magic package. Thus we include it, instead of using
8627 ;; python-file. Ironically, s3cmd sometimes works better
8628 ;; without libmagic bindings at all:
8629 ;; https://github.com/s3tools/s3cmd/issues/198
8630 ("python2-magic" ,python2-magic)))
8631 (home-page "http://s3tools.org/s3cmd")
8632 (synopsis "Command line tool for S3-compatible storage services")
8634 "S3cmd is a command line tool for uploading, retrieving and managing data
8635 in storage services that are compatible with the Amazon Simple Storage
8636 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
8637 GnuPG encryption, and more. It also supports management of Amazon's
8638 CloudFront content delivery network.")