1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
8 ;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
9 ;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
10 ;;; Copyright © 2015, 2016, 2017, 2018 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, 2017 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
17 ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2015, 2017 Kyle Meyer <kyle@kyleam.com>
19 ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
21 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
22 ;;; Copyright © 2016, 2018 Hartmut Goebel <h.goebel@crazy-compilers.com>
23 ;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
24 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
25 ;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
26 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
27 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
28 ;;; Copyright © 2016 David Craven <david@craven.ch>
29 ;;; Copyright © 2016, 2017, 2018 Marius Bakke <mbakke@fastmail.com>
30 ;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at>
31 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
32 ;;; Copyright © 2016, 2017 Alex Vong <alexvong1995@gmail.com>
33 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
34 ;;; Copyright © 2016, 2017 Julien Lepiller <julien@lepiller.eu>
35 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
36 ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
37 ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
38 ;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
39 ;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com>
40 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
41 ;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
42 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
43 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
44 ;;; Copyright © 2017, 2018 Kei Kebreau <kkebreau@posteo.net>
45 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
46 ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
47 ;;; Copyright © 2017 Brendan Tildesley <brendan.tildesley@openmailbox.org>
48 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
49 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
50 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
51 ;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
52 ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
53 ;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
54 ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
55 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
56 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
58 ;;; This file is part of GNU Guix.
60 ;;; GNU Guix is free software; you can redistribute it and/or modify it
61 ;;; under the terms of the GNU General Public License as published by
62 ;;; the Free Software Foundation; either version 3 of the License, or (at
63 ;;; your option) any later version.
65 ;;; GNU Guix is distributed in the hope that it will be useful, but
66 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
67 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68 ;;; GNU General Public License for more details.
70 ;;; You should have received a copy of the GNU General Public License
71 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
73 (define-module (gnu packages python)
74 #:use-module ((guix licenses) #:prefix license:)
75 #:use-module (gnu packages)
76 #:use-module (gnu packages algebra)
77 #:use-module (gnu packages adns)
78 #:use-module (gnu packages attr)
79 #:use-module (gnu packages backup)
80 #:use-module (gnu packages bash)
81 #:use-module (gnu packages check)
82 #:use-module (gnu packages compression)
83 #:use-module (gnu packages crypto)
84 #:use-module (gnu packages databases)
85 #:use-module (gnu packages file)
86 #:use-module (gnu packages fontutils)
87 #:use-module (gnu packages gcc)
88 #:use-module (gnu packages geo)
89 #:use-module (gnu packages ghostscript)
90 #:use-module (gnu packages gl)
91 #:use-module (gnu packages glib)
92 #:use-module (gnu packages graphviz)
93 #:use-module (gnu packages graphics)
94 #:use-module (gnu packages gstreamer)
95 #:use-module (gnu packages gtk)
96 #:use-module (gnu packages icu4c)
97 #:use-module (gnu packages image)
98 #:use-module (gnu packages imagemagick)
99 #:use-module (gnu packages libevent)
100 #:use-module (gnu packages libffi)
101 #:use-module (gnu packages linux)
102 #:use-module (gnu packages machine-learning)
103 #:use-module (gnu packages man)
104 #:use-module (gnu packages maths)
105 #:use-module (gnu packages multiprecision)
106 #:use-module (gnu packages networking)
107 #:use-module (gnu packages ncurses)
108 #:use-module (gnu packages openstack)
109 #:use-module (gnu packages pcre)
110 #:use-module (gnu packages perl)
111 #:use-module (gnu packages pkg-config)
112 #:use-module (gnu packages python-crypto)
113 #:use-module (gnu packages python-web)
114 #:use-module (gnu packages qt)
115 #:use-module (gnu packages readline)
116 #:use-module (gnu packages sdl)
117 #:use-module (gnu packages search)
118 #:use-module (gnu packages shells)
119 #:use-module (gnu packages ssh)
120 #:use-module (gnu packages statistics)
121 #:use-module (gnu packages terminals)
122 #:use-module (gnu packages tex)
123 #:use-module (gnu packages texinfo)
124 #:use-module (gnu packages time)
125 #:use-module (gnu packages tls)
126 #:use-module (gnu packages version-control)
127 #:use-module (gnu packages video)
128 #:use-module (gnu packages web)
129 #:use-module (gnu packages base)
130 #:use-module (gnu packages xml)
131 #:use-module (gnu packages xorg)
132 #:use-module (gnu packages xdisorg)
133 #:use-module (gnu packages tcl)
134 #:use-module (gnu packages bdw-gc)
135 #:use-module (guix packages)
136 #:use-module (guix download)
137 #:use-module (guix git-download)
138 #:use-module (guix utils)
139 #:use-module (guix build-system gnu)
140 #:use-module (guix build-system cmake)
141 #:use-module (guix build-system python)
142 #:use-module (guix build-system trivial)
143 #:use-module (srfi srfi-1))
145 (define-public python-2.7
152 (uri (string-append "https://www.python.org/ftp/python/"
153 version "/Python-" version ".tar.xz"))
156 "0x2mvz9dp11wj7p5ccvmk9s0hzjk2fa1m462p395l4r6bfnb3n92"))
157 (patches (search-patches "python-2.7-search-paths.patch"
158 "python-2-deterministic-build-info.patch"
159 "python-2.7-site-prefixes.patch"
160 "python-2.7-source-date-epoch.patch"
161 "python-2.7-adjust-tests.patch"))
162 (modules '((guix build utils)))
163 ;; suboptimal to delete failing tests here, but if we delete them in the
164 ;; arguments then we need to make sure to strip out that phase when it
165 ;; gets inherited by python and python-minimal.
168 (for-each delete-file
169 '("Lib/test/test_compileall.py"
170 "Lib/test/test_ctypes.py" ; fails on mips64el
171 "Lib/test/test_distutils.py"
172 "Lib/test/test_import.py"
173 "Lib/test/test_shutil.py"
174 "Lib/test/test_socket.py"
175 "Lib/test/test_subprocess.py"))
178 "tk")) ;tkinter; adds 50 MiB to the closure
179 (build-system gnu-build-system)
181 `(#:test-target "test"
183 (list "--enable-shared" ;allow embedding
184 "--with-system-ffi" ;build ctypes
185 "--with-ensurepip=install" ;install pip and setuptools
186 "--enable-unicode=ucs4"
187 (string-append "LDFLAGS=-Wl,-rpath="
188 (assoc-ref %outputs "out") "/lib"))
190 #:modules ((ice-9 ftw) (ice-9 match)
191 (guix build utils) (guix build gnu-build-system))
193 (modify-phases %standard-phases
195 'configure 'patch-lib-shells
197 ;; Filter for existing files, since some may not exist in all
198 ;; versions of python that are built with this recipe.
199 (substitute* (filter file-exists?
200 '("Lib/subprocess.py"
202 "Lib/distutils/tests/test_spawn.py"
203 "Lib/test/support/__init__.py"
204 "Lib/test/test_subprocess.py"))
205 (("/bin/sh") (which "sh")))
207 (add-before 'configure 'do-not-record-configure-flags
208 (lambda* (#:key configure-flags #:allow-other-keys)
209 ;; Remove configure flags from the installed '_sysconfigdata.py'
210 ;; and 'Makefile' so we don't end up keeping references to the
213 ;; Preserve at least '--with-system-ffi' since otherwise the
214 ;; thing tries to build libffi, fails, and we end up with a
215 ;; Python that lacks ctypes.
216 (substitute* "configure"
217 (("^CONFIG_ARGS=.*$")
218 (format #f "CONFIG_ARGS='~a'\n"
219 (if (member "--with-system-ffi" configure-flags)
226 ;; 'Lib/test/test_site.py' needs a valid $HOME
227 (setenv "HOME" (getcwd))
230 'unpack 'set-source-file-times-to-1980
231 ;; XXX One of the tests uses a ZIP library to pack up some of the
232 ;; source tree, and fails with "ZIP does not support timestamps
233 ;; before 1980". Work around this by setting the file times in the
234 ;; source tree to sometime in early 1980.
236 (let ((circa-1980 (* 10 366 24 60 60)))
237 (ftw "." (lambda (file stat flag)
238 (utime file circa-1980 circa-1980)
241 (add-after 'install 'remove-tests
242 ;; Remove 25 MiB of unneeded unit tests. Keep test_support.*
243 ;; because these files are used by some libraries out there.
244 (lambda* (#:key outputs #:allow-other-keys)
245 (let ((out (assoc-ref outputs "out")))
246 (match (scandir (string-append out "/lib")
248 (string-prefix? "python" name)))
250 (let ((testdir (string-append out "/lib/" pythonX.Y
252 (with-directory-excursion testdir
253 (for-each delete-file-recursively
259 (string-prefix? "test_support."
261 (call-with-output-file "__init__.py" (const #t))
263 (add-after 'install 'move-tk-inter
264 (lambda* (#:key outputs #:allow-other-keys)
265 ;; When Tkinter support is built move it to a separate output so
266 ;; that the main output doesn't contain a reference to Tcl/Tk.
267 (let ((out (assoc-ref outputs "out"))
268 (tk (assoc-ref outputs "tk")))
270 (match (find-files out "tkinter.*\\.so")
272 ;; The .so is in OUT/lib/pythonX.Y/lib-dynload, but we
273 ;; want it under TK/lib/pythonX.Y/site-packages.
274 (let* ((len (string-length out))
275 (target (string-append
278 (dirname (dirname tkinter.so))
281 (install-file tkinter.so target)
282 (delete-file tkinter.so)))))
287 ("libffi" ,libffi) ; for ctypes
288 ("sqlite" ,sqlite) ; for sqlite extension
290 ("readline" ,readline)
293 ("tk" ,tk))) ; for tkinter
295 `(("pkg-config" ,pkg-config)))
297 (list (search-path-specification
298 (variable "PYTHONPATH")
299 (files '("lib/python2.7/site-packages")))))
300 (home-page "https://www.python.org")
301 (synopsis "High-level, dynamically-typed programming language")
303 "Python is a remarkably powerful dynamic programming language that
304 is used in a wide variety of application domains. Some of its key
305 distinguishing features include: clear, readable syntax; strong
306 introspection capabilities; intuitive object orientation; natural
307 expression of procedural code; full modularity, supporting hierarchical
308 packages; exception-based error handling; and very high level dynamic
310 (license license:psfl)))
312 ;; Current 2.x version.
313 (define-public python-2 python-2.7)
315 (define-public python2-called-python
316 ;; Both 2.x and 3.x used to be called "python". In commit
317 ;; a7714d42de2c3082f3609d1e63c83d703fb39cf9 (March 2018), we renamed the
318 ;; Python 2.x package to "python2".
322 (properties `((superseded . ,python-2)))))
324 (define-public python-3.7
325 (package (inherit python-2)
330 (uri (string-append "https://www.python.org/ftp/python/"
331 version "/Python-" version ".tar.xz"))
332 (patches (search-patches
333 "python-fix-tests.patch"
334 "python-3-fix-tests.patch"
335 "python-3-deterministic-build-info.patch"
336 "python-3-search-paths.patch"))
337 (patch-flags '("-p0"))
340 "0j9mic5c9lbd2b20wka7hily7szz740wy9ilfrczxap63rnrk0h3"))
343 (for-each delete-file
344 '("Lib/ctypes/test/test_win32.py" ; fails on aarch64
345 "Lib/test/test_fcntl.py" ; fails on aarch64
346 "Lib/test/test_posix.py")) ; fails on aarch64
349 (substitute-keyword-arguments (package-arguments python-2)
351 `(modify-phases ,phases
352 ;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it
353 ;; again afterwards. See <https://bugs.python.org/issue34022>.
354 (add-before 'check 'unset-SOURCE_DATE_EPOCH
355 (lambda _ (unsetenv "SOURCE_DATE_EPOCH") #t))
356 (add-after 'check 'reset-SOURCE_DATE_EPOCH
357 (lambda _ (setenv "SOURCE_DATE_EPOCH" "1") #t))
358 ;; FIXME: Without this phase we have close to 400 files that
359 ;; differ across different builds of this package. With this phase
360 ;; there are 44 files left that differ.
361 (add-after 'remove-tests 'rebuild-bytecode
362 (lambda* (#:key outputs #:allow-other-keys)
363 (let ((out (assoc-ref outputs "out")))
364 ;; Disable hash randomization to ensure the generated .pycs
366 (setenv "PYTHONHASHSEED" "0")
369 (format #t "Compiling with optimization level: ~a\n"
370 (if (null? opt) "none" (car opt)))
371 (for-each (lambda (file)
373 `(,(string-append out "/bin/python3")
377 ;; Don't build lib2to3, because it's Python 2 code.
380 (find-files out "\\.py$")))
381 (list '() '("-O") '("-OO")))
384 (list (search-path-specification
385 (variable "PYTHONPATH")
386 (files (list (string-append "lib/python"
387 (version-major+minor version)
388 "/site-packages"))))))))
390 ;; Current 3.x version.
391 (define-public python-3 python-3.7)
393 ;; Current major version.
394 (define-public python python-3)
396 ;; Minimal variants of Python, mostly used to break the cycle between Tk and
397 ;; Python (Tk -> libxcb -> Python.)
399 (define-public python2-minimal
400 (package (inherit python-2)
401 (name "python2-minimal")
404 ;; Keep zlib, which is used by 'pip' (via the 'zipimport' module), which
405 ;; is invoked upon 'make install'. 'pip' also expects 'ctypes' and thus
407 (inputs `(("libffi" ,libffi)
410 (define-public python-minimal
411 (package (inherit python)
412 (name "python-minimal")
415 ;; Build fails due to missing ctypes without libffi.
416 ;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
417 ;; zlib is required by 'zipimport', used by pip.
418 (inputs `(("libffi" ,libffi)
422 (define-public python-debug
425 (name "python-debug")
426 (outputs '("out" "debug"))
427 (build-system gnu-build-system)
429 (substitute-keyword-arguments (package-arguments python)
430 ((#:configure-flags flags '())
431 `(cons "--with-pydebug" ,flags))))
433 "High-level, dynamically-typed programming language (for debugging)")
435 "This variant of Python provides an interpreter built with
436 @code{--with-pydebug} to help develop and debug extensions. See
437 @url{https://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug.html},
438 for more information.")))
440 (define* (wrap-python3 python
442 (name (string-append (package-name python) "-wrapper")))
443 (package (inherit python)
446 (build-system trivial-build-system)
448 (inputs `(("bash" ,bash)))
449 (propagated-inputs `(("python" ,python)))
451 `(#:modules ((guix build utils))
454 (use-modules (guix build utils))
455 (let ((bin (string-append (assoc-ref %outputs "out") "/bin"))
456 (python (string-append (assoc-ref %build-inputs "python") "/bin/")))
460 (symlink (string-append python old)
461 (string-append bin "/" new)))
462 `("python3" ,"pydoc3" ,"idle3" ,"pip3")
463 `("python" ,"pydoc" ,"idle" ,"pip"))
464 ;; python-config outputs search paths based upon its location,
465 ;; use a bash wrapper to avoid changing its outputs.
466 (let ((bash (string-append (assoc-ref %build-inputs "bash")
468 (old (string-append python "python3-config"))
469 (new (string-append bin "/python-config")))
470 (with-output-to-file new
472 (format #t "#!~a~%" bash)
473 (format #t "exec \"~a\" \"$@\"~%" old)
476 (synopsis "Wrapper for the Python 3 commands")
478 "This package provides wrappers for the commands of Python@tie{}3.x such
479 that they can be invoked under their usual name---e.g., @command{python}
480 instead of @command{python3}.")))
482 (define-public python-wrapper (wrap-python3 python))
483 (define-public python-minimal-wrapper (wrap-python3 python-minimal))
485 (define-public python-psutil
487 (name "python-psutil")
492 (uri (pypi-uri "psutil" version))
495 "063v69x7spyclyaxrd3gmzj3p16q5ayg97xqhwb1kyn22a9pwip2"))))
496 (build-system python-build-system)
498 ;; FIXME: some tests does not return and times out.
500 (home-page "https://www.github.com/giampaolo/psutil")
501 (synopsis "Library for retrieving information on running processes")
503 "psutil (Python system and process utilities) is a library for retrieving
504 information on running processes and system utilization (CPU, memory, disks,
505 network) in Python. It is useful mainly for system monitoring, profiling and
506 limiting process resources and management of running processes. It implements
507 many functionalities offered by command line tools such as: ps, top, lsof,
508 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
509 pidof, tty, taskset, pmap.")
510 (properties `((python2-variant . ,(delay python2-psutil))))
511 (license license:bsd-3)))
513 (define-public python2-psutil
514 (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
518 `(("python2-enum34" ,python2-enum34) ;optional
519 ,@(package-propagated-inputs base))))))
521 (define-public python-shapely
523 (name "python-shapely")
528 (uri (pypi-uri "Shapely" version))
531 "0svc58dzcw9gj92b4sgq35sdxkf85z0qwlzxarkzq4bp3h8jy58l"))))
532 (build-system python-build-system)
534 `(("python-cython" ,python-cython)
535 ("python-matplotlib" ,python-matplotlib)
536 ("python-pytest" ,python-pytest)
537 ("python-pytest-cov" ,python-pytest-cov)))
541 `(("python-numpy" ,python-numpy)))
544 (modify-phases %standard-phases
545 (add-after 'unpack 'patch-geos-path
546 (lambda* (#:key inputs #:allow-other-keys)
547 (let ((geos (assoc-ref inputs "geos"))
548 (glibc (assoc-ref inputs ,(if (%current-target-system)
549 "cross-libc" "libc"))))
550 (substitute* "shapely/geos.py"
551 (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
552 (string-append "_lgeos = load_dll('geos_c', fallbacks=['"
553 geos "/lib/libgeos_c.so'])"))
554 (("free = load_dll\\('c'\\)\\.free")
555 (string-append "free = load_dll('c', fallbacks=['"
556 glibc "/lib/libc.so.6']).free"))))
558 (home-page "https://github.com/Toblerity/Shapely")
559 (synopsis "Library for the manipulation and analysis of geometric objects")
560 (description "Shapely is a Python package for manipulation and analysis of
561 planar geometric objects. It is based on the @code{GEOS} library.")
562 (license license:bsd-3)))
564 (define-public python-logwrap
566 (name "python-logwrap")
571 (uri (pypi-uri "logwrap" version ".zip"))
574 "1d2k0hvpbi51vl410y8fbs5m0nxnlh2k7gr2nrh3k81ibhzscsra"))))
575 (build-system python-build-system)
577 `(("python-six" ,python-six)
578 ("python-typing" ,python-typing)))
581 ("python-cython" ,python-cython)
582 ("python-pytest" ,python-pytest)
583 ("python-pytest-cov" ,python-pytest-cov)
584 ("python-pytest-runner" ,python-pytest-runner)))
585 (home-page "https://github.com/penguinolog/logwrap")
586 (synopsis "Decorator for logging function arguments")
587 (description "This package provides a decorator to log function arguments
588 and function call return values in a human-readable way.")
589 (license license:asl2.0)))
591 (define-public python2-shapely
592 (package-with-python2 python-shapely))
594 (define-public python-clyent
596 (name "python-clyent")
601 (uri (pypi-uri "clyent" version))
604 "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
605 (build-system python-build-system)
607 `(("python-mock" ,python-mock)))
608 (home-page "https://github.com/binstar/clyent")
609 (synopsis "Command line client library")
610 (description "Clyent is a Python command line utiliy library. It is used
611 by @code{binstar}, @code{binstar-build} and @code{chalmers}.")
612 (license license:bsd-3)))
614 (define-public python2-clyent
615 (package-with-python2 python-clyent))
617 (define-public python-babel
619 (name "python-babel")
624 (uri (pypi-uri "Babel" version))
627 "0x98qqqw35xllpcama013a9788ly84z8dm1w2wwfpxh2710c8df5"))))
628 (build-system python-build-system)
630 `(("python-pytz" ,python-pytz)))
631 (arguments `(#:tests? #f)) ; no test target
632 (home-page "http://babel.pocoo.org/")
634 "Tools for internationalizing Python applications")
636 "Babel is composed of two major parts:
637 - tools to build and work with gettext message catalogs
638 - a Python interface to the CLDR (Common Locale Data Repository), providing
639 access to various locale display names, localized number and date formatting,
641 (license license:bsd-3)))
643 (define-public python2-babel
644 (package-with-python2 python-babel))
646 (define-public python2-backport-ssl-match-hostname
648 (name "python2-backport-ssl-match-hostname")
654 "https://pypi.python.org/packages/source/b/"
655 "backports.ssl_match_hostname/backports.ssl_match_hostname-"
659 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
660 (build-system python-build-system)
663 #:tests? #f)) ; no test target
664 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
665 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
667 "This backport brings the ssl.match_hostname() function to users of
668 earlier versions of Python. The function checks the hostname in the
669 certificate returned by the server to which a connection has been established,
670 and verifies that it matches the intended target hostname.")
671 (license license:psfl)))
673 (define-public python-hdf4
680 (uri (pypi-uri name version))
683 "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
684 (build-system python-build-system)
685 (native-inputs `(("nose" ,python-nose)))
686 (propagated-inputs `(("numpy" ,python-numpy)))
693 (modify-phases %standard-phases
696 ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
697 ;; on to import numpy. Somehow this works on their CI system.
698 ;; Let's just manage PYTHONPATH here instead.
699 (substitute* "runexamples.sh"
700 (("export PYTHONPATH=.*") ""))
702 (string-append (getcwd) ":"
703 (getenv "PYTHONPATH")))
704 (and (zero? (system* "./runexamples.sh"))
705 (zero? (system* "nosetests" "-v"))))))))
706 (home-page "https://github.com/fhs/python-hdf4")
707 (synopsis "Python interface to the NCSA HDF4 library")
709 "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
710 which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
711 NetCDF files can also be read and modified. Python-HDF4 is a fork of
712 @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
713 (license license:expat)))
715 (define-public python2-hdf4
716 (package-with-python2 python-hdf4))
718 (define-public python-h5py
725 (uri (pypi-uri "h5py" version))
728 "0mdr6wrq02ac93m1aqx9kad0ppfzmm4imlxqgyy1x4l7hmdcc9p6"))))
729 (build-system python-build-system)
731 `(#:tests? #f ; no test target
733 (modify-phases %standard-phases
734 (add-after 'unpack 'fix-hdf5-paths
735 (lambda* (#:key inputs #:allow-other-keys)
736 (let ((prefix (assoc-ref inputs "hdf5")))
737 (substitute* "setup_build.py"
738 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
739 (string-append "['" prefix "/lib" "']"))
740 (("'/opt/local/include', '/usr/local/include'")
741 (string-append "'" prefix "/include" "'")))
742 (substitute* "setup_configure.py"
743 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
744 (string-append "['" prefix "/lib" "']")))
747 `(("python-six" ,python-six)
748 ("python-numpy" ,python-numpy)))
752 `(("python-cython" ,python-cython)
753 ("python-pkgconfig" ,python-pkgconfig)))
754 (home-page "http://www.h5py.org/")
755 (synopsis "Read and write HDF5 files from Python")
757 "The h5py package provides both a high- and low-level interface to the
758 HDF5 library from Python. The low-level interface is intended to be a
759 complete wrapping of the HDF5 API, while the high-level component supports
760 access to HDF5 files, datasets and groups using established Python and NumPy
762 (license license:bsd-3)))
764 (define-public python2-h5py
765 (package-with-python2 python-h5py))
767 (define-public python-netcdf4
769 (name "python-netcdf4")
774 (uri (pypi-uri "netCDF4" version))
777 "1h6jq338amlbk0ilzvjyl7cck80i0bah9a5spn9in71vy2qxm7i5"))))
778 (build-system python-build-system)
780 `(("python-cython" ,python-cython)))
782 `(("python-numpy" ,python-numpy)))
789 (modify-phases %standard-phases
792 (setenv "NO_NET" "1") ; disable opendap tests
793 (with-directory-excursion "test"
794 (setenv "PYTHONPATH" ; find and add the library we just built
796 (car (find-files "../build" "lib.*"
798 #:fail-on-error? #:t))
799 ":" (getenv "PYTHONPATH")))
800 (zero? (system* "python" "run_all.py"))))))))
802 "https://github.com/Unidata/netcdf4-python")
803 (synopsis "Python/numpy interface to the netCDF library")
804 (description "Netcdf4-python is a Python interface to the netCDF C
805 library. netCDF version 4 has many features not found in earlier
806 versions of the library and is implemented on top of HDF5. This module
807 can read and write files in both the new netCDF 4 and the old netCDF 3
808 format, and can create files that are readable by HDF5 clients. The
809 API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
810 to users of that module.")
811 ;; The software is mainly ISC, but includes some files covered
812 ;; by the Expat license.
813 (license (list license:isc license:expat))))
815 (define-public python2-netcdf4
816 (package-with-python2 python-netcdf4))
818 (define-public python-lockfile
820 (name "python-lockfile")
825 (uri (string-append "https://pypi.python.org/packages/source/l/lockfile/"
826 "lockfile-" version ".tar.gz"))
829 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
830 (build-system python-build-system)
831 (arguments '(#:test-target "check"))
833 `(("python-pbr" ,python-pbr)))
834 (home-page "https://launchpad.net/pylockfile")
835 (synopsis "Platform-independent file locking module")
837 "The lockfile package exports a LockFile class which provides a simple
838 API for locking files.")
839 (license license:expat)))
841 (define-public python2-lockfile
842 (package-with-python2 python-lockfile))
844 (define-public python-setuptools
846 (name "python-setuptools")
851 (uri (pypi-uri "setuptools" version ".zip"))
854 "0pq116lr14gnc62v76nk0npkm6krb2mpp7p9ab369zgv4n7dnah1"))
855 (modules '((guix build utils)))
858 ;; Remove included binaries which are used to build self-extracting
859 ;; installers for Windows.
860 ;; TODO: Find some way to build them ourself so we can include them.
861 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
863 (build-system python-build-system)
864 ;; FIXME: Tests require pytest, which itself relies on setuptools.
865 ;; One could bootstrap with an internal untested setuptools.
868 (home-page "https://pypi.python.org/pypi/setuptools")
870 "Library designed to facilitate packaging Python projects")
872 "Setuptools is a fully-featured, stable library designed to facilitate
873 packaging Python projects, where packaging includes:
874 Python package and module definitions,
875 distribution package metadata,
877 project installation,
878 platform-specific details,
880 ;; TODO: setuptools now bundles the following libraries:
881 ;; packaging, pyparsing, six and appdirs. How to unbundle?
882 (license (list license:psfl ; setuptools itself
883 license:expat ; six, appdirs, pyparsing
884 license:asl2.0 ; packaging is dual ASL2/BSD-2
887 (define-public python2-setuptools
888 (package-with-python2 python-setuptools))
890 (define-public python-uniseg
892 (name "python-uniseg")
897 (uri (pypi-uri "uniseg" version ".zip"))
900 "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
901 (build-system python-build-system)
903 '(#:tests? #f)) ; The test suite requires network access.
907 "https://bitbucket.org/emptypage/uniseg-python")
909 "Python library to determine Unicode text segmentations")
911 "Uniseg is a Python package used to determine Unicode text segmentations.
912 Supported segmentations include:
914 @item @dfn{Code point} (any value in the Unicode codespace)
915 @item @dfn{Grapheme cluster} (user-perceived character made of a single or
916 multiple Unicode code points, e.g. \"G\" + acute-accent)
921 (license license:expat)))
923 (define-public python2-uniseg
924 (package-with-python2 python-uniseg))
926 (define-public python-humanfriendly
928 (name "python-humanfriendly")
933 (uri (pypi-uri "humanfriendly" version))
936 "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi"))))
937 (build-system python-build-system)
939 `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
942 `(("python-monotonic" ,python-monotonic)))
943 (home-page "https://humanfriendly.readthedocs.io")
944 (synopsis "Human-friendly input and output in Python")
946 "The functions and classes in @code{humanfriendly} can be used to make
947 text interfaces more user-friendly. It includes tools to parse and format
948 numbers, file sizes, and timespans, timers for long-running operations, menus
949 to allow the user to choose from a list of options, and terminal interaction
951 (license license:expat)))
953 (define-public python2-humanfriendly
954 (package-with-python2 python-humanfriendly))
956 (define-public python-capturer
958 (name "python-capturer")
963 (uri (pypi-uri "capturer" version))
966 "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
967 (build-system python-build-system)
971 `(("python-humanfriendly" ,python-humanfriendly)))
972 (home-page "https://capturer.readthedocs.io")
973 (synopsis "Capture stdout and stderr streams of the current process")
975 "The capturer package makes it easy to capture the stdout and stderr
976 streams of the current process and subprocesses. Output can be relayed
977 to the terminal in real time but is also available to the Python program
978 for additional processing.")
979 (license license:expat)))
981 (define-public python2-capturer
982 (package-with-python2 python-capturer))
984 (define-public python-verboselogs
986 (name "python-verboselogs")
991 (uri (pypi-uri "verboselogs" version))
994 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
995 (build-system python-build-system)
997 `(("python-mock" ,python-mock)
998 ("python-astroid" ,python-astroid)
999 ("python-pylint" ,python-pylint)))
1000 (home-page "https://verboselogs.readthedocs.io")
1001 (synopsis "Verbose logging level for Python's logging module")
1003 "The @code{verboselogs} package extends Python's @code{logging} module to
1004 add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
1005 (license license:expat)))
1007 (define-public python2-verboselogs
1008 (package-with-python2 python-verboselogs))
1010 (define-public python-coloredlogs
1012 (name "python-coloredlogs")
1017 (uri (pypi-uri "coloredlogs" version))
1020 "1blcann6dyg5dhps9pg12rn0q0rjrlajpmmil0gy0j4cbvnl2il9"))))
1021 (build-system python-build-system)
1023 `(;Tests require some updated modules
1026 `(("python-capturer" ,python-capturer)))
1027 (home-page "https://coloredlogs.readthedocs.io")
1028 (synopsis "Colored stream handler for Python's logging module")
1030 "The @code{coloredlogs} package enables colored terminal output for
1031 Python's logging module. The @code{ColoredFormatter} class inherits from
1032 @code{logging.Formatter} and uses ANSI escape sequences to render your logging
1033 messages in color.")
1034 (license license:expat)))
1036 (define-public python2-coloredlogs
1037 (package-with-python2 python-coloredlogs))
1039 (define-public python-eventlet
1041 (name "python-eventlet")
1046 (uri (pypi-uri "eventlet" version))
1049 "0f3q55mq4n021wb7qa53pz3ix6i2py64sap66vsaqm2scjw83m9s"))))
1050 (build-system python-build-system)
1052 `(("python-greenlet" ,python-greenlet)))
1054 ;; TODO: Requires unpackaged 'enum-compat'.
1056 (home-page "http://eventlet.net")
1057 (synopsis "Concurrent networking library for Python")
1059 "Eventlet is a concurrent networking library for Python that
1060 allows you to change how you run your code, not how you write it.
1061 It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
1062 Coroutines ensure that the developer uses a blocking style of programming
1063 that is similar to threading, but provide the benefits of non-blocking I/O.
1064 The event dispatch is implicit, which means you can easily use @code{Eventlet}
1065 from the Python interpreter, or as a small part of a larger application.")
1066 (license license:expat)))
1068 (define-public python2-eventlet
1069 (let ((base (package-with-python2
1070 (strip-python2-variant python-eventlet))))
1071 (package (inherit base)
1073 `(("python2-enum34" ,python2-enum34)
1074 ,@(package-propagated-inputs base))))))
1076 (define-public python-six
1083 (uri (pypi-uri "six" version))
1086 "1scqzwc51c875z23phj48gircqjgnn3af8zy2izjwmnlxrxsgs3h"))))
1087 (build-system python-build-system)
1090 (modify-phases %standard-phases
1093 (invoke "py.test" "-v"))))))
1095 `(("python-py" ,python-py)
1096 ("python-pytest" ,python-pytest-bootstrap)))
1097 (home-page "https://pypi.python.org/pypi/six/")
1098 (synopsis "Python 2 and 3 compatibility utilities")
1100 "Six is a Python 2 and 3 compatibility library. It provides utility
1101 functions for smoothing over the differences between the Python versions with
1102 the goal of writing Python code that is compatible on both Python versions.
1103 Six supports every Python version since 2.5. It is contained in only one
1104 Python file, so it can be easily copied into your project.")
1105 (license license:x11)))
1107 (define-public python2-six
1108 (package-with-python2 python-six))
1110 (define-public python-six-bootstrap
1112 (inherit python-six)
1113 (name "python-six-bootstrap")
1115 (arguments `(#:tests? #f))))
1117 (define-public python2-six-bootstrap
1118 (package-with-python2 python-six-bootstrap))
1120 (define-public python-schedule
1122 (name "python-schedule")
1127 (uri (pypi-uri "schedule" version))
1130 "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
1131 (build-system python-build-system)
1133 `(("python-pytest" ,python-pytest)
1134 ("python-mock" ,python-mock)))
1135 (home-page "https://github.com/dbader/schedule")
1136 (synopsis "Schedule periodic function calls in Python")
1138 "Schedule is an in-process scheduler for periodic jobs that uses the
1139 builder pattern for configuration. Schedule lets you run Python functions (or
1140 any other callable) periodically at pre-determined intervals using a simple,
1141 human-friendly syntax.")
1142 (license license:expat)))
1144 (define-public python2-schedule
1145 (package-with-python2 python-schedule))
1147 (define-public python-pandas
1149 (name "python-pandas")
1154 (uri (pypi-uri "pandas" version))
1156 (base32 "142nvwb01r2wv42y2cz40bx33hd8ffh6s6gynapg859fmzr2mdah"))))
1157 (build-system python-build-system)
1159 `(#:modules ((guix build utils)
1160 (guix build python-build-system)
1163 #:phases (modify-phases %standard-phases
1166 (let ((build-directory
1169 (car (scandir "build"
1170 (cut string-prefix? "lib." <>))))))
1171 (with-directory-excursion build-directory
1172 ;; Delete tests that require "moto" which is not yet in Guix.
1173 (for-each delete-file
1174 '("pandas/tests/io/conftest.py"
1175 "pandas/tests/io/json/test_compression.py"
1176 "pandas/tests/io/test_excel.py"
1177 "pandas/tests/io/test_parquet.py"))
1178 (invoke "pytest" "-v" "pandas" "-k"
1180 "not network and not disabled"
1181 ;; XXX: Due to the deleted tests above.
1182 " and not test_read_s3_jsonl")))))))))
1184 `(("python-numpy" ,python-numpy)
1185 ("python-pytz" ,python-pytz)
1186 ("python-dateutil" ,python-dateutil)))
1188 `(("python-cython" ,python-cython)
1189 ("python-beautifulsoup4" ,python-beautifulsoup4)
1190 ("python-lxml" ,python-lxml)
1191 ("python-html5lib" ,python-html5lib)
1192 ("python-nose" ,python-nose)
1193 ("python-pytest" ,python-pytest)))
1194 (home-page "https://pandas.pydata.org")
1195 (synopsis "Data structures for data analysis, time series, and statistics")
1197 "Pandas is a Python package providing fast, flexible, and expressive data
1198 structures designed to make working with structured (tabular,
1199 multidimensional, potentially heterogeneous) and time series data both easy
1200 and intuitive. It aims to be the fundamental high-level building block for
1201 doing practical, real world data analysis in Python.")
1202 (license license:bsd-3)))
1204 (define-public python2-pandas
1205 (package-with-python2 python-pandas))
1207 (define-public python2-mechanize
1209 (name "python2-mechanize")
1214 (uri (string-append "https://pypi.python.org/packages/source/m/mechanize/mechanize-"
1218 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1219 (build-system python-build-system)
1221 `(#:python ,python-2 ; apparently incompatible with Python 3
1223 ;; test fails with message
1224 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1225 ;; (python-3.3.2) or
1226 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1228 ;; The source code is from March 2011 and probably not up-to-date
1229 ;; with respect to python unit tests.
1230 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1232 "Stateful programmatic web browsing in Python")
1234 "Mechanize implements stateful programmatic web browsing in Python,
1235 after Andy Lester’s Perl module WWW::Mechanize.")
1236 (license (license:non-copyleft
1238 "See COPYING in the distribution."))))
1241 (define-public python-simplejson
1243 (name "python-simplejson")
1248 (uri (pypi-uri "simplejson" version))
1251 "1lkv3xlf7ryzi69zqfdbkvpxdfy1rg1rq2yzcnxgf4km5m6difqy"))))
1252 (build-system python-build-system)
1253 (home-page "http://simplejson.readthedocs.org/en/latest/")
1255 "Json library for Python")
1257 "JSON (JavaScript Object Notation) is a subset of JavaScript
1258 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1261 Simplejson exposes an API familiar to users of the standard library marshal
1262 and pickle modules. It is the externally maintained version of the json
1263 library contained in Python 2.6, but maintains compatibility with Python 2.5
1264 and (currently) has significant performance advantages, even without using
1265 the optional C extension for speedups. Simplejson is also supported on
1267 (license license:x11)))
1269 (define-public python2-simplejson
1270 (package-with-python2 python-simplejson))
1273 (define-public python-pyicu
1275 (name "python-pyicu")
1280 (uri (pypi-uri "PyICU" version))
1283 "05nz4p2dpkhwj6y9kik24xbvmfxji39nl0xw0sc0nvp9fgzf6xnd"))))
1284 (build-system python-build-system)
1286 `(("icu4c" ,icu4c)))
1288 `(("python-pytest" ,python-pytest)
1289 ("python-six" ,python-six)))
1290 (home-page "https://github.com/ovalhub/pyicu")
1291 (synopsis "Python extension wrapping the ICU C++ API")
1293 "PyICU is a python extension wrapping the ICU C++ API.")
1294 (properties `((python2-variant . ,(delay python2-pyicu))))
1295 (license license:x11)))
1297 (define-public python2-pyicu
1298 (let ((base (package-with-python2
1299 (strip-python2-variant python-pyicu))))
1303 `(,@(package-arguments base)
1305 (modify-phases %standard-phases
1306 (add-before 'check 'delete-failing-test
1308 ;; XXX: This fails due to Unicode issues unique to Python 2,
1309 ;; it seems: <https://github.com/ovalhub/pyicu/issues/61>.
1310 (delete-file "test/test_Script.py")
1313 (define-public python2-dogtail
1314 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1315 ;; spaces in indentation" with Python 3.
1317 (name "python2-dogtail")
1321 (uri (pypi-uri "dogtail" version))
1324 "0p5wfssvzr9w0bvhllzbbd8fnp4cca2qxcpcsc33dchrmh5n552x"))))
1325 (build-system python-build-system)
1326 (arguments `(#:python ,python-2
1327 #:tests? #f)) ; invalid command "test"
1328 ;; Currently no offical homepage.
1329 (home-page "https://pypi.python.org/pypi/dogtail/")
1330 (synopsis "GUI test tool and automation framework written in Python")
1332 "Dogtail is a GUI test tool and automation framework written in Python.
1333 It uses Accessibility (a11y) technologies to communicate with desktop
1334 applications. dogtail scripts are written in Python and executed like any
1335 other Python program.")
1336 (license license:gpl2+)))
1338 (define-public python-empy
1340 (name "python-empy")
1344 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1348 "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
1349 (build-system python-build-system)
1351 `(#:tests? #f)) ;python2 only
1352 (home-page "http://www.alcyone.com/software/empy/")
1353 (synopsis "Templating system for Python")
1355 "EmPy is a system for embedding Python expressions and statements in
1356 template text; it takes an EmPy source file, processes it, and produces
1357 output. This is accomplished via expansions, which are special signals to the
1358 EmPy system and are set off by a special prefix (by default the at sign, @@).
1359 EmPy can expand arbitrary Python expressions and statements in this way, as
1360 well as a variety of special forms. Textual data not explicitly delimited in
1361 this way is sent unaffected to the output, allowing Python to be used in
1362 effect as a markup language. Also supported are callbacks via hooks,
1363 recording and playback via diversions, and dynamic, chainable filters. The
1364 system is highly configurable via command line options and embedded
1366 (license license:lgpl2.1+)))
1368 (define-public python2-empy
1369 (package-with-python2 python-empy))
1371 (define-public python2-element-tree
1373 (name "python2-element-tree")
1378 "http://effbot.org/media/downloads/elementtree-"
1379 version "-20050316.tar.gz"))
1382 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1383 (build-system python-build-system)
1385 `(#:python ,python-2 ; seems to be part of Python 3
1386 #:tests? #f)) ; no 'test' sub-command
1387 (synopsis "Toolkit for XML processing in Python")
1389 "ElementTree is a Python library supporting lightweight XML processing.")
1390 (home-page "http://effbot.org/zone/element-index.htm")
1391 (license (license:x11-style
1392 "http://docs.python.org/2/license.html"
1393 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
1395 (define-public python2-pybugz
1397 (name "python2-pybugz")
1402 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1406 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1407 (patches (search-patches "pybugz-stty.patch"
1408 "pybugz-encode-error.patch"))))
1409 (build-system python-build-system)
1411 `(#:python ,python-2 ; SyntaxError with Python 3
1412 #:tests? #f)) ; no 'test' sub-command
1414 `(("element-tree" ,python2-element-tree)))
1415 (synopsis "Python and command-line interface to Bugzilla")
1417 "PyBugz is a Python library and command-line tool to query the Bugzilla
1418 bug tracking system. It is meant as an aid to speed up interaction with the
1420 (home-page "http://www.liquidx.net/pybugz/")
1421 (license license:gpl2)))
1423 (define-public python2-enum
1425 (name "python2-enum")
1429 (uri (pypi-uri "enum" version))
1432 "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl"))))
1433 (build-system python-build-system)
1435 `(#:python ,python-2))
1436 (home-page "http://pypi.python.org/pypi/enum/")
1437 (synopsis "Robust enumerated type support in Python")
1439 "This provides a module for robust enumerations in Python. It has
1440 been superseded by the Python standard library and is provided only for
1442 ;; Choice of either license.
1443 (license (list license:gpl3+ license:psfl))))
1445 (define-public python-enum34
1447 (name "python-enum34")
1452 (uri (pypi-uri "enum34" version))
1455 "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a"))))
1456 (build-system python-build-system)
1457 (home-page "https://pypi.python.org/pypi/enum34")
1458 (synopsis "Backported Python 3.4 Enum")
1460 "Enum34 is the new Python stdlib enum module available in Python 3.4
1461 backported for previous versions of Python from 2.4 to 3.3.")
1462 (license license:bsd-3)))
1464 (define-public python2-enum34
1465 (package-with-python2 python-enum34))
1467 (define-public python-parse-type
1469 (name "python-parse-type")
1474 (uri (pypi-uri "parse_type" version))
1477 "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"))))
1478 (build-system python-build-system)
1480 `(("python-six" ,python-six)
1481 ("python-parse" ,python-parse)))
1483 `(("python-pytest" ,python-pytest)
1484 ("python-pytest-runner" ,python-pytest-runner)))
1485 (home-page "https://github.com/jenisys/parse_type")
1486 (synopsis "Extended parse module")
1488 "Parse_type extends the python parse module.")
1490 `((python2-variant . ,(delay python2-parse-type))))
1491 (license license:bsd-3)))
1493 (define-public python2-parse-type
1494 (let ((base (package-with-python2
1495 (strip-python2-variant python-parse-type))))
1496 (package (inherit base)
1498 `(("python2-enum34" ,python2-enum34)
1499 ,@(package-propagated-inputs base))))))
1501 (define-public python-parse
1503 (name "python-parse")
1508 (uri (pypi-uri "parse" version))
1511 "1lj9v1q4imszyhvipb6drsm3xdl35nan011mqxxas1yaypixsj40"))))
1512 (build-system python-build-system)
1515 (modify-phases %standard-phases
1517 (lambda _ (invoke "python" "test_parse.py"))))))
1518 (home-page "https://github.com/r1chardj0n3s/parse")
1519 (synopsis "Parse strings")
1521 "Parse strings using a specification based on the Python format()
1523 (license license:x11)))
1525 (define-public python-polib
1527 (name "python-polib")
1531 (uri (pypi-uri "polib" version))
1534 "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss"))))
1535 (build-system python-build-system)
1536 (home-page "https://bitbucket.org/izi/polib/wiki/Home")
1537 (synopsis "Manipulate, create and modify gettext files")
1538 (description "Polib can manipulate any gettext format (po, pot and mo)
1539 files. It can be used to create po files from scratch or to modify
1541 (license license:expat)))
1543 (define-public python2-polib
1544 (let ((base (package-with-python2 (strip-python2-variant python-polib))))
1547 (arguments `(,@(package-arguments base)
1548 ;; Tests don't work with python2.
1551 (define-public scons
1557 (uri (string-append "mirror://sourceforge/scons/scons/" version
1558 "/scons-" version ".tar.gz"))
1561 "0wzid419mlwqw9llrg8gsx4nkzhqy16m4m40r0xnh6cwscw5wir4"))))
1562 (build-system python-build-system)
1564 `(#:use-setuptools? #f ; still relies on distutils
1565 #:tests? #f)) ; no 'python setup.py test' command
1566 (home-page "http://scons.org/")
1567 (synopsis "Software construction tool written in Python")
1569 "SCons is a software construction tool. Think of SCons as an improved,
1570 cross-platform substitute for the classic Make utility with integrated
1571 functionality similar to autoconf/automake and compiler caches such as ccache.
1572 In short, SCons is an easier, more reliable and faster way to build
1574 (license license:x11)))
1576 (define-public scons-python2
1578 (inherit (package-with-python2 scons))
1579 (name "scons-python2")))
1581 (define-public python-extras
1583 (name "python-extras")
1588 (uri (pypi-uri "extras" version))
1591 "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
1592 (build-system python-build-system)
1594 ;; FIXME: Circular dependency on testtools.
1596 (home-page "https://github.com/testing-cabal/extras")
1597 (synopsis "Useful extensions to the Python standard library")
1599 "Extras is a set of extensions to the Python standard library.")
1600 (license license:expat)))
1602 (define-public python2-extras
1603 (package-with-python2 python-extras))
1605 (define-public python-mimeparse
1607 (name "python-mimeparse")
1613 "https://pypi.python.org/packages/source/p/python-mimeparse/python-mimeparse-"
1617 "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w"))))
1618 (build-system python-build-system)
1620 '(#:tests? #f)) ; no setup.py test command
1622 "https://github.com/dbtsai/python-mimeparse")
1623 (synopsis "Python library for parsing MIME types")
1625 "Mimeparse provides basic functions for parsing MIME type names and
1626 matching them against a list of media-ranges.")
1627 (license license:expat)))
1629 (define-public python2-mimeparse
1630 (package-with-python2 python-mimeparse))
1632 (define-public python-pafy
1634 (name "python-pafy")
1639 (uri (pypi-uri "pafy" version))
1642 "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
1643 (build-system python-build-system)
1645 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
1647 ;; Youtube-dl is a python package which is imported in the file
1648 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
1649 `(("youtube-dl" ,youtube-dl)))
1650 (home-page "https://np1.github.io/pafy/")
1651 (synopsis "Retrieve YouTube content and metadata")
1653 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
1654 (license license:lgpl3+)))
1656 (define-public python2-funcsigs
1658 (name "python2-funcsigs")
1662 (uri (pypi-uri "funcsigs" version))
1665 "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"))))
1666 (build-system python-build-system)
1668 `(#:python ,python-2))
1670 `(("python2-unittest2" ,python2-unittest2)))
1671 (home-page "http://funcsigs.readthedocs.org")
1672 (synopsis "Python function signatures from PEP362")
1674 "Backport of @code{funcsigs} which was introduced in Python 3.3.")
1675 (license license:asl2.0)))
1677 (define-public python2-funcsigs-bootstrap
1679 (inherit python2-funcsigs)
1680 (name "python2-funcsigs-bootstrap")
1684 ,@(package-arguments python2-funcsigs)))))
1686 (define-public python-py
1693 (uri (pypi-uri "py" version))
1696 "1xxvwfn82457djf55f5n2c94699rfqnk43br8fif2r2q8gvrmm9z"))))
1697 (build-system python-build-system)
1699 ;; FIXME: "ImportError: 'test' module incorrectly imported from
1700 ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
1701 ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
1702 ;; Is this module globally installed?"
1705 `(("python-setuptools-scm" ,python-setuptools-scm)))
1706 (home-page "https://github.com/pytest-dev/py")
1707 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1709 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1710 code introspection, and logging.")
1711 (license license:expat)))
1713 (define-public python2-py
1714 (package-with-python2 python-py))
1716 ;; Recent versions of python-fixtures and python-testrepository need
1717 ;; python-pbr for packaging, which itself needs these two packages for
1719 ;; To fix this circular dependency, we use a build of python-pbr, based on the
1720 ;; same source, just without any test dependencies and with tests disabled.
1721 ;; python-pbr-minmal is then used to package python-fixtures and
1722 ;; python-testrepository.
1723 ;; Strictly speaking we currently could remove the test-requirements from the
1724 ;; normal python-pbr package (and save this package) since test are disabled
1725 ;; there anyway. But this may change in future.
1726 (define-public python-pbr-minimal
1728 (name "python-pbr-minimal")
1733 (uri (pypi-uri "pbr" version))
1736 "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p"))))
1737 (build-system python-build-system)
1740 (home-page "http://docs.openstack.org/developer/pbr/")
1741 (synopsis "Minimal build of python-pbr used for bootstrapping")
1743 "Used only for bootstrapping python2-pbr, you should not need this.")
1744 (license license:asl2.0)))
1746 (define-public python2-pbr-minimal
1747 (package-with-python2 python-pbr-minimal))
1749 (define-public python-pbr
1751 (inherit python-pbr-minimal)
1754 `(#:tests? #f)) ;; Most tests seem to use the Internet.
1756 `(("git" ,git))) ;; pbr actually uses the "git" binary.
1758 `(("python-fixtures" ,python-fixtures-bootstrap)
1759 ;; discover, coverage, hacking, subunit
1760 ("python-mock" ,python-mock)
1761 ("python-six" ,python-six)
1762 ("python-sphinx" ,python-sphinx)
1763 ("python-testrepository" ,python-testrepository-bootstrap)
1764 ("python-testresources" ,python-testresources-bootstrap)
1765 ("python-testscenarios" ,python-testscenarios-bootstrap)
1766 ("python-testtools" ,python-testtools-bootstrap)
1767 ("python-virtualenv" ,python-virtualenv)))
1768 (synopsis "Enhance the default behavior of Python’s setuptools")
1770 "Python Build Reasonableness (PBR) is a library that injects some useful
1771 and sensible default behaviors into your setuptools run. It will set
1772 versions, process requirements files and generate AUTHORS and ChangeLog file
1773 from git information.
1776 (define-public python2-pbr
1777 (package-with-python2 python-pbr))
1779 (define-public python-exif-read
1781 (name "python-exif-read")
1785 (uri (pypi-uri "ExifRead" version))
1788 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
1789 (build-system python-build-system)
1790 (arguments `(#:tests? #f)) ; no tests
1791 (home-page "https://github.com/ianare/exif-py")
1792 (synopsis "Python library to extract EXIF data from image files")
1794 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
1796 (license license:bsd-3)))
1798 (define-public python2-exif-read
1799 (package-with-python2 python-exif-read))
1801 (define-public python-pyld
1803 (name "python-pyld")
1807 (uri (pypi-uri "PyLD" version))
1810 "12i2g6xdj30k7xxcibg3sc5y76snwq8l6n8fy9lyi577kgy0h2pm"))))
1811 (build-system python-build-system)
1812 (home-page "https://github.com/digitalbazaar/pyld")
1813 (synopsis "Python implementation of the JSON-LD specification")
1815 "PyLD is an implementation of the JSON-LD specification.")
1816 (license license:bsd-3)))
1818 (define-public python2-pyld
1819 (package-with-python2 python-pyld))
1821 (define-public python-click
1823 (name "python-click")
1828 (uri (pypi-uri "click" version))
1831 "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi"))))
1832 (build-system python-build-system)
1834 `(;; The tests are fragile, depending on a specific version of pytest:
1835 ;; <https://github.com/pallets/click/issues/823>
1838 (modify-phases %standard-phases
1839 (add-after 'unpack 'fix-paths
1840 (lambda* (#:key inputs #:allow-other-keys)
1841 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
1842 "cross-libc" "libc"))))
1843 (substitute* "click/_unicodefun.py"
1845 (string-append "'" glibc "/bin/locale'"))))
1848 `(("python-pytest" ,python-pytest)))
1849 (home-page "http://click.pocoo.org")
1850 (synopsis "Command line library for Python")
1852 "Click is a Python package for creating command line interfaces in a
1853 composable way with as little code as necessary. Its name stands for
1854 \"Command Line Interface Creation Kit\". It's highly configurable but comes
1855 with sensible defaults out of the box.")
1856 (license license:bsd-3)))
1858 (define-public python2-click
1859 (package-with-python2 python-click))
1861 (define-public python-wheel
1863 (name "python-wheel")
1864 (version "0.30.0a0")
1868 (uri (pypi-uri "wheel" version))
1871 "1nm6mn8isny0hr86rhbfrpfj867c0phf001xgsd69xfp9ady1wwq"))))
1872 (build-system python-build-system)
1874 `(("python-jsonschema" ,python-jsonschema)
1875 ("python-pytest-cov" ,python-pytest-cov)))
1876 (home-page "https://bitbucket.org/pypa/wheel/")
1877 (synopsis "Format for built Python packages")
1879 "A wheel is a ZIP-format archive with a specially formatted filename and
1880 the @code{.whl} extension. It is designed to contain all the files for a PEP
1881 376 compatible install in a way that is very close to the on-disk format. Many
1882 packages will be properly installed with only the @code{Unpack} step and the
1883 unpacked archive preserves enough information to @code{Spread} (copy data and
1884 scripts to their final locations) at any later time. Wheel files can be
1885 installed with a newer @code{pip} or with wheel's own command line utility.")
1886 (license license:expat)
1887 (properties `((python2-variant . ,(delay python2-wheel))))))
1889 (define-public python2-wheel
1890 (let ((wheel (package-with-python2
1891 (strip-python2-variant python-wheel))))
1892 (package (inherit wheel)
1893 (native-inputs `(("python2-functools32" ,python2-functools32)
1894 ,@(package-native-inputs wheel))))))
1896 (define-public python-vcversioner
1898 (name "python-vcversioner")
1899 (version "2.16.0.0")
1903 (uri (pypi-uri "vcversioner" version))
1906 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
1907 (build-system python-build-system)
1908 (synopsis "Python library for version number discovery")
1909 (description "Vcversioner is a Python library that inspects tagging
1910 information in a variety of version control systems in order to discover
1912 (home-page "https://github.com/habnabit/vcversioner")
1913 (license license:isc)))
1915 (define-public python2-vcversioner
1916 (package-with-python2 python-vcversioner))
1918 (define-public python-jsonschema
1920 (name "python-jsonschema")
1926 "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-"
1930 "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg"))))
1931 (build-system python-build-system)
1934 (modify-phases %standard-phases
1935 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
1937 `(("python-nose" ,python-nose)
1938 ("python-vcversioner" ,python-vcversioner)))
1939 (home-page "https://github.com/Julian/jsonschema")
1940 (synopsis "Implementation of JSON Schema for Python")
1942 "Jsonschema is an implementation of JSON Schema for Python.")
1943 (license license:expat)
1944 (properties `((python2-variant . ,(delay python2-jsonschema))))))
1946 (define-public python2-jsonschema
1947 (let ((jsonschema (package-with-python2
1948 (strip-python2-variant python-jsonschema))))
1949 (package (inherit jsonschema)
1951 `(("python2-mock" ,python2-mock)
1952 ,@(package-native-inputs jsonschema)))
1954 `(("python2-functools32" ,python2-functools32))))))
1956 (define-public python-schema
1958 (name "python-schema")
1963 (uri (pypi-uri "schema" version))
1966 "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
1967 (build-system python-build-system)
1969 `(("python-pytest" ,python-pytest)))
1970 (home-page "https://github.com/keleshev/schema")
1971 (synopsis "Simple data validation library")
1973 "@code{python-schema} is a library for validating Python data
1974 structures, such as those obtained from config-files, forms, external
1975 services or command-line parsing, converted from JSON/YAML (or
1976 something else) to Python data-types.")
1977 (license license:psfl)))
1979 (define-public python2-schema
1980 (package-with-python2 python-schema))
1982 (define-public python-schema-0.5
1983 (package (inherit python-schema)
1988 (uri (pypi-uri "schema" version))
1991 "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
1993 (define-public python2-schema-0.5
1994 (package-with-python2 python-schema-0.5))
1996 (define-public python-kitchen
1998 (name "python-kitchen")
2003 (uri (pypi-uri "kitchen" version))
2006 "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
2007 (build-system python-build-system)
2009 `(("python-chardet" ,python-chardet)))
2010 (home-page "https://github.com/fedora-infra/kitchen")
2011 (synopsis "Python API for snippets")
2012 (description "@code{kitchen} module provides a python API for all sorts of
2013 little useful snippets of code that everybody ends up writing for their projects
2014 but never seem big enough to build an independent release. Use kitchen and stop
2015 cutting and pasting that code over and over.")
2016 (license (list license:lgpl2.1+
2017 ;; subprocess.py, test_subprocess.py,
2018 ;; kitchen/pycompat25/defaultdict.py:
2021 (define-public python2-kitchen
2022 (package-with-python2 python-kitchen))
2024 (define-public python-unidecode
2026 (name "python-unidecode")
2030 (uri (pypi-uri "Unidecode" version))
2033 "0lfhp9c5xrbpjvbpr12ji52g1lx04404bzzdg6pvabhzisw6l2i8"))))
2034 (build-system python-build-system)
2035 (home-page "https://pypi.python.org/pypi/Unidecode")
2036 (synopsis "ASCII transliterations of Unicode text")
2038 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2039 useful when integrating with legacy code that doesn't support Unicode, or for
2040 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2041 machine identifiers from human-readable Unicode strings that should still be
2042 somewhat intelligible.")
2043 (license license:gpl2+)))
2045 (define-public python2-unidecode
2046 (package-with-python2 python-unidecode))
2048 (define-public python-pyjwt
2050 (name "python-pyjwt")
2055 (uri (pypi-uri "PyJWT" version))
2058 "1rxsg14i33vm2i6lz0my628108c81k43v10n4h3p0gx62xdyf2sh"))
2059 (modules '((guix build utils)))
2062 (for-each delete-file-recursively
2063 (find-files "." "\\.pyc$"))
2065 (build-system python-build-system)
2067 `(("python-pytest" ,python-pytest)
2068 ("python-pytest-cov" ,python-pytest-cov)
2069 ("python-pytest-runner" ,python-pytest-runner)))
2070 (home-page "https://github.com/progrium/pyjwt")
2071 (synopsis "JSON Web Token implementation in Python")
2073 "PyJWT is a JSON Web Token implementation written in Python.")
2074 (license license:expat)))
2076 (define-public python2-pyjwt
2077 (package-with-python2 python-pyjwt))
2079 (define-public python-pykka
2081 (name "python-pykka")
2086 (uri (pypi-uri "Pykka" version))
2089 "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8"))))
2090 (build-system python-build-system)
2092 `(("python-mock" ,python-mock)
2093 ("python-nose" ,python-nose)
2094 ("python-gevent" ,python-gevent)
2095 ("python-eventlet" ,python-eventlet)))
2096 (home-page "https://www.pykka.org/")
2097 (synopsis "Pykka is a Python implementation of the actor model")
2099 "Pykka is a Python implementation of the actor model.
2100 The actor model introduces some simple rules to control the sharing
2101 of state and cooperation between execution units, which makes it
2102 easier to build concurrent applications.")
2103 (license license:asl2.0)))
2105 (define-public python2-pykka
2106 (package-with-python2 python-pykka))
2108 (define-public python-itsdangerous
2110 (name "python-itsdangerous")
2116 "https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-"
2120 "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"))))
2121 (build-system python-build-system)
2122 (home-page "https://github.com/mitsuhiko/itsdangerous")
2123 (synopsis "Python library for passing data to/from untrusted environments")
2125 "Itsdangerous provides various helpers to pass trusted data to untrusted
2126 environments and back.")
2127 (license license:bsd-3)))
2129 (define-public python2-itsdangerous
2130 (package-with-python2 python-itsdangerous))
2132 (define-public python-pyyaml
2134 (name "python-pyyaml")
2139 (uri (pypi-uri "PyYAML" version))
2142 "1gx603g484z46cb74j9rzr6sjlh2vndxayicvlyhxdz98lhhkwry"))))
2143 (build-system python-build-system)
2145 `(("libyaml" ,libyaml)))
2146 (home-page "http://pyyaml.org/wiki/PyYAML")
2147 (synopsis "YAML parser and emitter for Python")
2149 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2150 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2151 API, and sensible error messages. PyYAML supports standard YAML tags and
2152 provides Python-specific tags that allow to represent an arbitrary Python
2154 (license license:expat)))
2156 (define-public python2-pyyaml
2157 (package-with-python2 python-pyyaml))
2159 (define-public python-virtualenv
2161 (name "python-virtualenv")
2166 (uri (pypi-uri "virtualenv" version))
2169 "07cbajzk8l05k5zhlw0b9wbf2is65bl9v6zrn2a0iyn57w6pd73d"))))
2170 (build-system python-build-system)
2173 (modify-phases %standard-phases
2176 ;; Disable failing test. See upstream bug report
2177 ;; https://github.com/pypa/virtualenv/issues/957
2178 (substitute* "tests/test_virtualenv.py"
2179 (("skipif.*") "skipif(True, reason=\"Guix\")\n"))
2180 (zero? (system* "py.test")))))))
2182 `(("python-mock" ,python-mock)
2183 ("python-pytest" ,python-pytest)))
2184 (home-page "https://virtualenv.pypa.io/")
2185 (synopsis "Virtual Python environment builder")
2187 "Virtualenv is a tool to create isolated Python environments.")
2188 (license license:expat)))
2190 (define-public python2-virtualenv
2191 (package-with-python2 python-virtualenv))
2193 (define-public python-markupsafe
2195 (name "python-markupsafe")
2201 "https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-"
2205 "1hvip33wva3fnmvfp9x5klqri7hpl1hkgqmjbss18nmrb7zimv54"))))
2206 (build-system python-build-system)
2207 (home-page "https://github.com/mitsuhiko/markupsafe")
2208 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2210 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2212 (license license:bsd-3)))
2214 (define-public python2-markupsafe
2215 (package-with-python2 python-markupsafe))
2217 (define-public python-jinja2
2219 (name "python-jinja2")
2224 (uri (pypi-uri "Jinja2" version))
2227 "1zzrkywhziqffrzks14kzixz7nd4yh2vc0fb04a68vfd2ai03anx"))))
2228 (build-system python-build-system)
2230 `(("python-markupsafe" ,python-markupsafe)))
2231 (home-page "http://jinja.pocoo.org/")
2232 (synopsis "Python template engine")
2234 "Jinja2 is a small but fast and easy to use stand-alone template engine
2235 written in pure Python.")
2236 (license license:bsd-3)))
2238 (define-public python2-jinja2
2239 (package-with-python2 python-jinja2))
2241 (define-public python-pystache
2243 (name "python-pystache")
2247 (uri (pypi-uri "pystache" version))
2250 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2251 (build-system python-build-system)
2253 '(#:tests? #f)) ; FIXME: Python 3 tests are failing.
2254 (home-page "http://defunkt.io/pystache/")
2255 (synopsis "Python logic-less template engine")
2257 "Pystache is a Python implementation of the framework agnostic,
2258 logic-free templating system Mustache.")
2259 (license license:expat)
2260 (properties `((python2-variant . ,(delay python2-pystache))))))
2262 (define-public python2-pystache
2263 (package (inherit (package-with-python2
2264 (strip-python2-variant python-pystache)))
2266 `(#:python ,python-2
2268 (modify-phases %standard-phases
2271 (zero? (system* "python" "test_pystache.py")))))))))
2273 (define-public python-joblib
2275 (name "python-joblib")
2279 (uri (pypi-uri "joblib" version))
2282 "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9"))
2283 (modules '((guix build utils)))
2286 ;; Remove pre-compiled .pyc files from source.
2287 (for-each delete-file-recursively
2288 (find-files "." "__pycache__" #:directories? #t))
2289 (for-each delete-file (find-files "." "\\.pyc$"))
2291 (build-system python-build-system)
2294 (modify-phases %standard-phases
2295 (add-before 'check 'disable-failing-tests
2297 ;; This numpydoc tests fails for unknown reasons
2298 (delete-file "doc/sphinxext/numpydoc/tests/test_docscrape.py")
2299 ;; This numpydoc test depends on matplotlib, which is not a
2301 (delete-file "doc/sphinxext/numpydoc/tests/test_plot_directive.py")
2302 ;; These tests fail to execute sys.executable
2303 (substitute* "joblib/test/test_parallel.py"
2304 (("import nose" line)
2305 (string-append "from nose.plugins.skip import SkipTest\n" line))
2306 (("def test_nested_parallel_warnings" line)
2307 (string-append "@SkipTest\n" line))
2308 (("def test_parallel_with_interactively_defined_functions" line)
2309 (string-append "@SkipTest\n" line)))
2311 ;; Provide nose to enable tests command
2313 `(("python-nose" ,python-nose)
2314 ("python-sphinx" ,python-sphinx)
2315 ("python-docutils" ,python-docutils)
2316 ("python-numpydoc" ,python-numpydoc)))
2317 (home-page "http://pythonhosted.org/joblib/")
2318 (synopsis "Using Python functions as pipeline jobs")
2320 "Joblib is a set of tools to provide lightweight pipelining in Python.
2321 In particular, joblib offers: transparent disk-caching of the output values
2322 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2323 logging and tracing of the execution.")
2324 (license license:bsd-3)))
2326 (define-public python2-joblib
2327 (package-with-python2 python-joblib))
2329 (define-public python-docutils
2331 (name "python-docutils")
2336 (uri (pypi-uri "docutils" version))
2339 "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"))))
2340 (build-system python-build-system)
2342 '(#:tests? #f)) ; no setup.py test command
2343 (home-page "http://docutils.sourceforge.net/")
2344 (synopsis "Python Documentation Utilities")
2346 "Docutils is a modular system for processing documentation into useful
2347 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2349 ;; Most of the source code is public domain, but some source files are
2350 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2351 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
2353 (define-public python2-docutils
2354 (package-with-python2 python-docutils))
2356 (define-public python-pygments
2358 (name "python-pygments")
2363 (uri (pypi-uri "Pygments" version))
2366 "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv"))))
2367 (build-system python-build-system)
2369 ;; FIXME: Tests require sphinx, which depends on this.
2371 (home-page "http://pygments.org/")
2372 (synopsis "Syntax highlighting")
2374 "Pygments is a syntax highlighting package written in Python.")
2375 (license license:bsd-2)))
2377 (define-public python2-pygments
2378 (package-with-python2 python-pygments))
2380 (define-public python-sphinxcontrib-websupport
2382 (name "python-sphinxcontrib-websupport")
2386 (uri (pypi-uri "sphinxcontrib-websupport" version))
2389 "1f9f0wjpi9nhikbyaz6d19s7qvzdf1nq2g5dsh640fma4q9rd1bs"))))
2390 (build-system python-build-system)
2392 `(("python-mock" ,python-mock)
2393 ("python-pytest" ,python-pytest)
2394 ("python-xapian-bindings" ,python-xapian-bindings)))
2395 ;; Needed for running the test suite
2397 `(("python-six" ,python-six)
2398 ("python-jinja2" ,python-jinja2)
2399 ("python-docutils" ,python-docutils)
2400 ("python-sphinx" ,python-sphinx)
2401 ("python-sqlalchemy" ,python-sqlalchemy)
2402 ("python-whoosh" ,python-whoosh)))
2403 (home-page "http://sphinx-doc.org/")
2404 (synopsis "Sphinx API for web applications")
2405 (description "This package provides a Python API to easily integrate
2406 Sphinx documentation into your web application. It provides tools to
2407 integrate Sphinx documents in web templates and to handle searches.")
2408 (license license:bsd-3)))
2410 (define-public python-sphinx
2412 (name "python-sphinx")
2417 (uri (pypi-uri "Sphinx" version))
2420 "1i8p9idnli4gr0y4x67yakbdk5w6a0xjzhrg6bg51y9d1fi7fslf"))))
2421 (build-system python-build-system)
2424 (modify-phases %standard-phases
2427 ;; Requires Internet access.
2428 (delete-file "tests/test_build_linkcheck.py")
2429 (zero? (system* "make" "test")))))))
2431 `(("python-imagesize" ,python-imagesize)
2432 ("python-sphinx-alabaster-theme"
2433 ,python-sphinx-alabaster-theme)
2434 ("python-babel" ,python-babel)
2435 ("python-snowballstemmer" ,python-snowballstemmer)
2436 ("python-docutils" ,python-docutils)
2437 ("python-jinja2" ,python-jinja2)
2438 ("python-pygments" ,python-pygments)
2439 ("python-requests" ,python-requests)
2440 ("python-six" ,python-six)))
2442 `(("graphviz" ,graphviz)
2443 ("python-html5lib" ,python-html5lib)
2444 ("python-mock" ,python-mock)
2445 ("python-nose" ,python-nose)))
2446 (home-page "http://sphinx-doc.org/")
2447 (synopsis "Python documentation generator")
2448 (description "Sphinx is a tool that makes it easy to create documentation
2449 for Python projects or other documents consisting of multiple reStructuredText
2451 (license license:bsd-3)
2452 (properties `((python2-variant . ,(delay python2-sphinx))))))
2454 (define-public python-sphinx-1.6
2455 (package (inherit python-sphinx)
2456 (name "python-sphinx")
2460 (uri (pypi-uri "Sphinx" version))
2463 "0gjakw9fv5pwqb5yyclxycs36sapxizk1vx6mkcdizmzgzcfy0gi"))))
2466 (modify-phases %standard-phases
2469 ;; Requires Internet access.
2470 (delete-file "tests/test_build_linkcheck.py")
2471 (substitute* "tests/test_build_latex.py"
2472 (("@pytest.mark.sphinx\\('latex', testroot='images'\\)")
2473 "@pytest.mark.skip()"))
2474 (zero? (system* "make" "test")))))))
2476 `(("python-sphinxcontrib-websupport" ,python-sphinxcontrib-websupport)
2477 ,@(package-propagated-inputs python-sphinx)))
2479 `(("python-pytest" ,python-pytest)
2480 ("imagemagick" ,imagemagick) ; for "convert"
2481 ,@(package-native-inputs python-sphinx)))
2482 (properties `((python2-variant . ,(delay python2-sphinx-1.6))))))
2484 (define-public python2-sphinx-1.6
2485 (let ((base (package-with-python2 (strip-python2-variant python-sphinx-1.6))))
2489 `(("python2-typing" ,python2-typing)
2490 ,@(package-propagated-inputs base)))
2491 (native-inputs `(("python2-enum34" ,python2-enum34)
2492 ,@(package-native-inputs base))))))
2494 (define-public python-sphinx-1.5.3
2496 (inherit python-sphinx)
2497 (name "python-sphinx")
2502 (uri (pypi-uri "Sphinx" version))
2505 "0kw1axswbvaavr8ggyf4qr6hnisnrzlbkkcdada69vk1x9xjassg"))))
2507 `(("python-pytest" ,python-pytest)
2508 ,@(package-native-inputs python-sphinx)))))
2510 (define-public python2-sphinx
2511 (let ((base (package-with-python2 (strip-python2-variant python-sphinx))))
2514 (native-inputs `(("python2-mock" ,python2-mock)
2515 ("python2-enum34" ,python2-enum34)
2516 ,@(package-native-inputs base)))
2517 (propagated-inputs `(("python2-pytz" ,python2-pytz)
2518 ,@(package-propagated-inputs base))))))
2520 (define-public python-sphinx-gallery
2522 (name "python-sphinx-gallery")
2526 (uri (string-append "https://github.com/sphinx-gallery/sphinx-gallery"
2527 "/archive/v" version ".tar.gz"))
2528 (file-name (string-append name "-" version ".tar.gz"))
2531 "03fs99mcb1r7qp0xixqv07vcz98sk21yq19ffdysi0infdcpzfkd"))))
2532 (build-system python-build-system)
2534 ;; FIXME: Tests attempt to download <https://docs.python.org/3/objects.inv>,
2535 ;; <https://docs.scipy.org/doc/numpy/objects.inv>, and
2536 ;; <https://matplotlib.org/objects.inv>.
2539 `(("python-pytest-runner" ,python-pytest-runner)))
2540 (home-page "https://sphinx-gallery.github.io/")
2541 (synopsis "Generate an examples gallery automatically")
2543 "@code{sphinx_gallery} is a Sphinx extension that builds an HTML version
2544 from any set of Python scripts and puts it into an examples gallery.")
2545 (license license:bsd-3)))
2547 (define-public python2-sphinx-gallery
2548 (package-with-python2 python-sphinx-gallery))
2550 (define-public python-sphinx-rtd-theme
2552 (name "python-sphinx-rtd-theme")
2557 (uri (pypi-uri "sphinx_rtd_theme" version))
2560 "05rlhjzdyapr2w74jjs7mrm8hi69qskcr5vya9f9drpsys7lpxrd"))))
2561 (build-system python-build-system)
2562 (arguments '(#:tests? #f)) ; No tests.
2564 `(("python-sphinx" ,python-sphinx)))
2565 (home-page "https://github.com/snide/sphinx_rtd_theme/")
2566 (synopsis "ReadTheDocs.org theme for Sphinx")
2567 (description "A theme for Sphinx used by ReadTheDocs.org.")
2568 (license license:expat)))
2570 (define-public python2-sphinx-rtd-theme
2571 (package-with-python2 python-sphinx-rtd-theme))
2573 (define-public python-guzzle-sphinx-theme
2575 (name "python-guzzle-sphinx-theme")
2580 (uri (pypi-uri "guzzle_sphinx_theme" version))
2583 "1rnkzrrsbnifn3vsb4pfaia3nlvgvw6ndpxp7lzjrh23qcwid34v"))))
2584 (build-system python-build-system)
2586 `(("python-sphinx" ,python-sphinx)))
2587 (home-page "https://github.com/guzzle/guzzle_sphinx_theme")
2588 (synopsis "Sphinx theme used by Guzzle")
2589 (description "This package provides guzzle_sphinx_theme, a theme for the
2590 Sphinx documentation system, used by @uref{http://docs.guzzlephp.org, Guzzle}
2591 and several other projects.")
2592 (license license:expat)))
2594 (define-public python2-guzzle-sphinx-theme
2595 (package-with-python2 python-guzzle-sphinx-theme))
2597 (define-public python-rst.linker
2599 (name "python-rst.linker")
2604 (uri (pypi-uri "rst.linker" version))
2607 "0iqaacp7pj1s8avs4kc0qg0r7dscywaq37y6l9j14glqdikk0wdj"))))
2608 (build-system python-build-system)
2610 `(("python-dateutil" ,python-dateutil)
2611 ("python-six" ,python-six)))
2613 `(("python-setuptools-scm" ,python-setuptools-scm)))
2614 ;; Test would require path.py, which would introduce a cyclic dependence.
2615 (arguments `(#:tests? #f))
2616 ;; Note: As of version 1.7 the documentation is not worth building.
2617 (home-page "https://github.com/jaraco/rst.linker")
2618 (synopsis "Sphinx plugin to add links and timestamps")
2619 (description "rst.linker allows to automatically replace text by a
2620 reStructuredText external reference or timestamps. It's primary purpose is to
2621 augment the changelog, but it can be used for other documents, too.")
2622 (license license:expat)))
2624 (define-public python2-rst.linker
2625 (package-with-python2 python-rst.linker))
2627 (define-public python-feedgenerator
2629 (name "python-feedgenerator")
2634 (uri (pypi-uri "feedgenerator" version))
2637 "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
2638 (modules '((guix build utils)))
2641 ;; Remove pre-compiled .pyc files from source.
2642 (for-each delete-file-recursively
2643 (find-files "." "__pycache__" #:directories? #t))
2644 (for-each delete-file (find-files "." "\\.pyc$"))
2646 (build-system python-build-system)
2648 `(("python-pytz" ,python-pytz)
2649 ("python-six" ,python-six)))
2650 (home-page "https://github.com/getpelican/feedgenerator")
2652 "Standalone version of Django's Atom/RSS feed generator")
2654 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
2655 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
2656 (license license:bsd-3)))
2658 (define-public python2-feedgenerator
2659 (package-with-python2 python-feedgenerator))
2661 (define-public python-blinker
2663 (name "python-blinker")
2668 (uri (pypi-uri "blinker" version))
2671 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
2672 (build-system python-build-system)
2673 (home-page "http://pythonhosted.org/blinker/")
2674 (synopsis "Fast, simple object-to-object and broadcast signaling")
2676 "Blinker provides a fast dispatching system that allows any number of
2677 interested parties to subscribe to events, or \"signals\".")
2678 (license license:expat)))
2680 (define-public python2-blinker
2681 (package-with-python2 python-blinker))
2683 (define-public pelican
2690 (uri (pypi-uri "pelican" version))
2693 "1hn94rb4q3zmcq16in055xikal4dba5hfx3zznq7warllcgc9f8k"))))
2694 (build-system python-build-system)
2696 `(("python-feedgenerator" ,python-feedgenerator)
2697 ("python-jinja2" ,python-jinja2)
2698 ("python-pygments" ,python-pygments)
2699 ("python-docutils" ,python-docutils)
2700 ("python-pytz" ,python-pytz)
2701 ("python-blinker" ,python-blinker)
2702 ("python-unidecode" ,python-unidecode)
2703 ("python-six" ,python-six)
2704 ("python-dateutil" ,python-dateutil)
2705 ("python-markdown" ,python-markdown)))
2706 (home-page "http://getpelican.com/")
2708 `(;; XXX Requires a lot more packages to do unit tests :P
2710 #:phases (modify-phases %standard-phases
2712 'install 'adjust-requires
2713 ;; Since feedgenerator is installed from git, it doesn't
2714 ;; conform to the version requirements.
2716 ;; We *do have* "feedgenerator >= 1.6", but strip off the
2717 ;; version requirement so setuptools doesn't get confused.
2719 (substitute* "setup.py"
2720 (("['\"]feedgenerator.*?['\"]")
2721 "'feedgenerator'")))))))
2722 (synopsis "Python-based static site publishing system")
2724 "Pelican is a tool to generate a static blog from reStructuredText,
2725 Markdown input files, and more. Pelican uses Jinja2 for templating
2726 and is very extensible.")
2727 (license license:agpl3+)))
2729 (define-public python-scikit-image
2731 (name "python-scikit-image")
2737 "https://pypi.python.org/packages/source/s/scikit-image/scikit-image-"
2740 (base32 "0jz416fqvpahqyffw8plmszzfj669w8wvf3y9clnr5lr6a7md3kn"))))
2741 (build-system python-build-system)
2743 ;; TODO: Some tests require running X11 server. Disable them?
2745 ;; See DEPENDS.txt for the list of build and run time requiremnts
2747 `(("python-matplotlib" ,python-matplotlib)
2748 ("python-networkx" ,python-networkx)
2749 ("python-scipy" ,python-scipy)
2750 ("python-pillow" ,python-pillow)))
2752 `(("python-numpy" ,python-numpy)
2753 ("python-cython" ,python-cython)
2754 ("python-six" ,python-six)))
2755 (home-page "http://scikit-image.org/")
2756 (synopsis "Image processing in Python")
2758 "Scikit-image is a collection of algorithms for image processing.")
2759 (license license:bsd-3)))
2761 (define-public python2-scikit-image
2762 (package-with-python2 python-scikit-image))
2764 (define-public python-cython
2766 (name "python-cython")
2771 (uri (pypi-uri "Cython" version))
2774 "02y0pp1nx77b8s1mpxc6da2dccl6wd31pp4ksi9via479qcvacmr"))))
2775 (build-system python-build-system)
2776 ;; we need the full python package and not just the python-wrapper
2777 ;; because we need libpython3.3m.so
2779 `(("python" ,python)))
2782 (modify-phases %standard-phases
2783 (add-before 'check 'set-HOME
2784 ;; some tests require access to "$HOME/.cython"
2785 (lambda _ (setenv "HOME" "/tmp") #t))
2787 (lambda _ (zero? (system* "python" "runtests.py" "-vv")))))))
2788 (home-page "http://cython.org/")
2789 (synopsis "C extensions for Python")
2790 (description "Cython is an optimising static compiler for both the Python
2791 programming language and the extended Cython programming language. It makes
2792 writing C extensions for Python as easy as Python itself.")
2793 (license license:asl2.0)
2794 (properties `((python2-variant . ,(delay python2-cython))))))
2796 (define-public python2-cython
2797 (package (inherit (package-with-python2
2798 (strip-python2-variant python-cython)))
2799 (name "python2-cython")
2801 `(("python-2" ,python-2))))) ; this is not automatically changed
2803 ;; The RPython toolchain currently does not support Python 3.
2804 (define-public python2-rpython
2806 (name "python2-rpython")
2811 (uri (pypi-uri "rpython" version))
2814 "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0"))))
2815 (build-system python-build-system)
2816 (arguments `(#:python ,python-2))
2818 `(("python2-pytest" ,python2-pytest))) ; needed for running tests
2819 (home-page "https://rpython.readthedocs.org")
2820 (synopsis "Framework for implementing interpreters and virtual machines")
2821 (description "RPython is a translation and support framework for
2822 producing implementations of dynamic languages, emphasizing a clean separation
2823 between language specification and implementation aspects.")
2824 (license license:expat)))
2826 ;; NOTE: when upgrading numpy please make sure that python-pandas and
2827 ;; python-scipy still build, as these three packages are often used together.
2828 (define-public python-numpy
2830 (name "python-numpy")
2836 "https://github.com/numpy/numpy/releases/download/v"
2837 version "/numpy-" version ".tar.gz"))
2840 "0admjpkih63lm19zbbilq8ck4f6ny5kqi03dk3m6b2mnixsh4jhv"))))
2841 (build-system python-build-system)
2843 `(("openblas" ,openblas)
2844 ("lapack" ,lapack)))
2846 `(("python-cython" ,python-cython)
2847 ("python-nose" ,python-nose)
2848 ("gfortran" ,gfortran)))
2851 (modify-phases %standard-phases
2852 (add-before 'build 'configure-blas-lapack
2853 (lambda* (#:key inputs #:allow-other-keys)
2854 (call-with-output-file "site.cfg"
2858 libraries = openblas
2859 library_dirs = ~a/lib
2860 include_dirs = ~a/include
2862 # backslash-n to make emacs happy
2864 lapack_libs = lapack
2865 library_dirs = ~a/lib
2866 include_dirs = ~a/include
2868 (assoc-ref inputs "openblas")
2869 (assoc-ref inputs "openblas")
2870 (assoc-ref inputs "lapack")
2871 (assoc-ref inputs "lapack"))))
2873 (add-before 'build 'fix-executable-paths
2874 (lambda* (#:key inputs #:allow-other-keys)
2875 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
2876 ;; instead of /bin/sh.
2877 (substitute* "numpy/distutils/exec_command.py"
2878 (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end)
2879 (string-append match-start (assoc-ref inputs "bash") match-end)))
2880 ;; Use "gcc" executable, not "cc".
2881 (substitute* "numpy/distutils/system_info.py"
2882 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
2883 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
2885 ;; Tests can only be run after the library has been installed and not
2886 ;; within the source directory.
2888 (add-after 'install 'check
2889 (lambda* (#:key outputs inputs #:allow-other-keys)
2890 ;; Make installed package available for running the tests
2891 (add-installed-pythonpath inputs outputs)
2892 (with-directory-excursion "/tmp"
2893 (zero? (system* "python" "-c"
2894 "import numpy; numpy.test(verbose=2)"))))))))
2895 (home-page "http://www.numpy.org/")
2896 (synopsis "Fundamental package for scientific computing with Python")
2897 (description "NumPy is the fundamental package for scientific computing
2898 with Python. It contains among other things: a powerful N-dimensional array
2899 object, sophisticated (broadcasting) functions, tools for integrating C/C++
2900 and Fortran code, useful linear algebra, Fourier transform, and random number
2902 (license license:bsd-3)))
2904 (define-public python2-numpy
2905 (package-with-python2 python-numpy))
2907 ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
2908 ;; interest only for legacy code going back to NumPy's predecessor
2910 (define-public python2-numpy-1.8
2911 (package (inherit python2-numpy)
2917 "https://github.com/numpy/numpy/archive/v" version ".tar.gz"))
2918 (file-name (string-append "python2-numpy-" version ".tar.gz"))
2921 "0sc20gz1b17xnyrkp5frca3ql5qfalpv916hfg2kqxpwr6jg0f1g"))))
2923 (substitute-keyword-arguments (package-arguments python2-numpy)
2925 `(modify-phases ,phases
2926 (replace 'configure-blas-lapack
2927 (lambda* (#:key inputs #:allow-other-keys)
2928 (call-with-output-file "site.cfg"
2932 libraries = openblas,lapack
2933 library_dirs = ~a/lib:~a/lib
2934 include_dirs = ~a/include:~a/include
2936 (assoc-ref inputs "openblas")
2937 (assoc-ref inputs "lapack")
2938 (assoc-ref inputs "openblas")
2939 (assoc-ref inputs "lapack"))))
2941 (description "NumPy is the fundamental package for scientific computing
2942 with Python. It contains among other things: a powerful N-dimensional array
2943 object, sophisticated (broadcasting) functions, tools for integrating C/C++
2944 and Fortran code, useful linear algebra, Fourier transform, and random number
2945 capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API
2946 that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
2948 (license license:bsd-3)))
2950 (define-public python-munch
2952 (name "python-munch")
2957 (uri (pypi-uri "munch" version))
2960 "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l"))))
2961 (build-system python-build-system)
2962 (home-page "https://github.com/Infinidat/munch")
2963 (synopsis "Dot-accessible dictionary")
2964 (description "Munch is a dot-accessible dictionary similar to JavaScript
2966 (license license:expat)))
2968 (define-public python2-munch
2969 (package-with-python2 python-munch))
2971 (define-public python-colormath
2973 (name "python-colormath")
2978 (uri (pypi-uri "colormath" version))
2981 "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
2982 (build-system python-build-system)
2984 `(("python-networkx" ,python-networkx)
2985 ("python-numpy" ,python-numpy)))
2986 (home-page "https://github.com/gtaylor/python-colormath")
2987 (synopsis "Color math and conversion library")
2989 "This is a Python library for color math and conversions.")
2990 (license license:bsd-3)))
2992 (define-public python2-colormath
2993 (package-with-python2 python-colormath))
2995 (define-public python-spectra
2997 (name "python-spectra")
3002 (uri (pypi-uri "spectra" version))
3005 "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
3006 (build-system python-build-system)
3009 (modify-phases %standard-phases
3012 (zero? (system* "nosetests" "-v")))))))
3014 `(("python-colormath" ,python-colormath)))
3016 `(("python-nose" ,python-nose)))
3017 (home-page "https://github.com/jsvine/spectra")
3018 (synopsis "Color scales and color conversion")
3020 "This package provides a Python library intended to make color math,
3021 color scales, and color space conversion easy. It has support for:
3026 @item Color blending
3027 @item Brightening/darkening colors
3028 @item Saturating/desaturating colors
3029 @item Conversion to/from multiple color spaces.
3031 (license license:expat)))
3033 (define-public python2-spectra
3034 (package-with-python2 python-spectra))
3036 (define-public python2-fastlmm
3038 (name "python2-fastlmm")
3043 (uri (pypi-uri "fastlmm" version ".zip"))
3046 "1q8c34rpmwkfy3r4d5172pzdkpfryj561897z9r3x22gq7813x1m"))))
3047 (build-system python-build-system)
3049 `(#:python ,python-2)) ; only Python 2.7 is supported
3051 `(("python2-numpy" ,python2-numpy)
3052 ("python2-scipy" ,python2-scipy)
3053 ("python2-matplotlib" ,python2-matplotlib)
3054 ("python2-pandas" ,python2-pandas)
3055 ("python2-scikit-learn" ,python2-scikit-learn)
3056 ("python2-pysnptools" ,python2-pysnptools)))
3059 ("python2-cython" ,python2-cython)
3060 ("python2-mock" ,python2-mock)
3061 ("python2-nose" ,python2-nose)))
3062 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/fastlmm/")
3063 (synopsis "Perform genome-wide association studies on large data sets")
3065 "FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed
3066 Models, is a program for performing both single-SNP and SNP-set genome-wide
3067 association studies (GWAS) on extremely large data sets.")
3068 (license license:asl2.0)))
3070 (define-public python-numpy-documentation
3072 (name "python-numpy-documentation")
3073 (version (package-version python-numpy))
3074 (source (package-source python-numpy))
3075 (build-system python-build-system)
3077 `(("python-matplotlib" ,python-matplotlib)
3078 ("python-numpy" ,python-numpy)
3079 ("pkg-config" ,pkg-config)
3080 ("python-sphinx" ,python-sphinx)
3081 ("python-numpydoc" ,python-numpydoc)
3082 ("texlive" ,(texlive-union (list texlive-fonts-amsfonts
3084 texlive-generic-ifxetex
3085 texlive-generic-pdftex
3086 texlive-latex-amsfonts
3087 texlive-latex-capt-of
3089 texlive-latex-environ
3090 texlive-latex-eqparbox
3091 texlive-latex-etoolbox
3092 texlive-latex-expdlist
3093 texlive-latex-fancyhdr
3094 texlive-latex-fancyvrb
3095 texlive-latex-fncychap
3097 texlive-latex-framed
3098 texlive-latex-geometry
3099 texlive-latex-graphics
3100 texlive-latex-hyperref
3101 texlive-latex-mdwtools
3102 texlive-latex-multirow
3103 texlive-latex-oberdiek
3104 texlive-latex-parskip
3105 texlive-latex-preview
3106 texlive-latex-tabulary
3107 texlive-latex-threeparttable
3108 texlive-latex-titlesec
3109 texlive-latex-trimspaces
3111 texlive-latex-upquote
3113 texlive-latex-varwidth
3114 texlive-latex-wrapfig)))
3115 ("texinfo" ,texinfo)
3117 ("scipy-sphinx-theme"
3118 ,(origin ; The build script expects scipy-sphinx-theme as a git submodule
3121 (url "https://github.com/scipy/scipy-sphinx-theme.git")
3122 (commit "c466764e2231ba132c09826b5b138fffa1cfcec3")))
3125 "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl"))))
3126 ,@(package-native-inputs python-numpy)))
3128 `(#:tests? #f ; we're only generating the documentation
3130 (modify-phases %standard-phases
3133 (lambda* (#:key inputs outputs #:allow-other-keys)
3134 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
3136 data "/doc/" ,name "-"
3137 ,(package-version python-numpy)))
3138 (info-reader (string-append data "/info"))
3139 (html (string-append doc "/html"))
3140 (scipy-sphinx-theme "scipy-sphinx-theme")
3141 (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme))
3142 (pyver ,(string-append "PYVER=")))
3144 ;; FIXME: this is needed to for texlive-union to generate
3145 ;; fonts, which are not found.
3146 (setenv "HOME" "/tmp")
3148 (with-directory-excursion "doc"
3149 (copy-recursively sphinx-theme-checkout scipy-sphinx-theme)
3151 (system* "make" "html" pyver)
3152 (system* "make" "latex" "PAPER=a4" pyver)
3153 (system* "make" "-C" "build/latex"
3154 "all-pdf" "PAPER=a4" pyver)
3155 ;; FIXME: Generation of the info file fails.
3156 ;; (system* "make" "info" pyver)
3158 ;; (copy-file "build/texinfo/numpy.info"
3159 ;; (string-append info "/numpy.info"))
3160 (for-each (lambda (file)
3161 (copy-file (string-append "build/latex" file)
3162 (string-append doc file)))
3163 '("/numpy-ref.pdf" "/numpy-user.pdf"))
3164 (with-directory-excursion "build/html"
3165 (for-each (lambda (file)
3166 (let* ((dir (dirname file))
3167 (tgt-dir (string-append html "/" dir)))
3168 (unless (equal? "." dir)
3170 (install-file file html)))
3171 (find-files "." ".*")))))
3173 (home-page (package-home-page python-numpy))
3174 (synopsis "Documentation for the python-numpy package")
3175 (description (package-description python-numpy))
3176 (license (package-license python-numpy))))
3178 (define-public python2-numpy-documentation
3179 (let ((numpy-documentation (package-with-python2 python-numpy-documentation)))
3181 (inherit numpy-documentation)
3182 (native-inputs `(("python2-functools32" ,python2-functools32)
3183 ,@(package-native-inputs numpy-documentation))))))
3185 (define-public python-pygit2
3187 (name "python-pygit2")
3192 (uri (pypi-uri "pygit2" version))
3195 "1cbc488ra3kg7r3qky17ms0szi3cda2d96qfkv1l9djsy9hnvw57"))
3197 (search-patches "python-pygit2-disable-network-tests.patch"))))
3198 (build-system python-build-system)
3200 `(("python-six" ,python-six)
3201 ("python-cffi" ,python-cffi)
3202 ("libgit2" ,libgit2)
3203 ("python-tox" ,python-tox)))
3204 (home-page "https://github.com/libgit2/pygit2")
3205 (synopsis "Python bindings for libgit2")
3206 (description "Pygit2 is a set of Python bindings to the libgit2 shared
3207 library, libgit2 implements Git plumbing.")
3208 ;; GPL2.0 only, with linking exception.
3209 (license license:gpl2)))
3211 (define-public python2-pygit2
3212 (package-with-python2 python-pygit2))
3214 (define-public python-pyparsing
3216 (name "python-pyparsing")
3221 (uri (string-append "mirror://sourceforge/pyparsing/pyparsing"
3222 "/pyparsing-" version
3223 "/pyparsing-" version ".tar.gz"))
3226 "016b9gh606aa44sq92jslm89bg874ia0yyiyb643fa6dgbsbqch8"))))
3227 (build-system python-build-system)
3228 (outputs '("out" "doc"))
3230 `(#:tests? #f ; no test target
3232 (modify-phases %standard-phases
3233 (add-after 'install 'install-doc
3234 (lambda* (#:key outputs #:allow-other-keys)
3235 (let* ((doc (string-append (assoc-ref outputs "doc")
3236 "/share/doc/" ,name "-" ,version))
3237 (html-doc (string-append doc "/html"))
3238 (examples (string-append doc "/examples")))
3244 (install-file file tgt))
3245 (find-files dir ".*")))
3246 (list "docs" "htmldoc" "examples")
3247 (list doc html-doc examples))
3249 (home-page "http://pyparsing.wikispaces.com")
3250 (synopsis "Python parsing class library")
3252 "The pyparsing module is an alternative approach to creating and
3253 executing simple grammars, vs. the traditional lex/yacc approach, or the use
3254 of regular expressions. The pyparsing module provides a library of classes
3255 that client code uses to construct the grammar directly in Python code.")
3256 (license license:expat)))
3258 (define-public python2-pyparsing
3259 (package-with-python2 python-pyparsing))
3261 (define-public python-numpydoc
3263 (name "python-numpydoc")
3269 "https://pypi.python.org/packages/source/n/numpydoc/numpydoc-"
3273 "0d4dnifaxkll50jx6czj05y8cb4ny60njd2wz299sj2jxfy51w4k"))
3274 (modules '((guix build utils)))
3277 ;; Drop a test requiring matplotlib, which we cannot add as an
3278 ;; input since it would create a circular dependency: Extend the
3279 ;; test for Python 3, where it is already dropped, to Python 2.
3280 (substitute* "numpydoc/tests/test_plot_directive.py"
3283 (build-system python-build-system)
3285 `(("python-sphinx" ,python-sphinx)))
3287 `(("python-nose" ,python-nose)))
3288 (home-page "https://pypi.python.org/pypi/numpydoc")
3290 "Numpy's Sphinx extensions")
3292 "Sphinx extension to support docstrings in Numpy format.")
3293 (license license:bsd-2)))
3295 (define-public python2-numpydoc
3296 (package-with-python2 python-numpydoc))
3298 (define-public python-numexpr
3300 (name "python-numexpr")
3305 (uri (pypi-uri "numexpr" version))
3308 "1frnbcwmsi312154x274xl28xazr1k8vjby83fwyla2n10a81bgq"))))
3309 (build-system python-build-system)
3310 (arguments `(#:tests? #f)) ; no tests included
3312 `(("python-numpy" ,python-numpy)))
3313 (home-page "https://github.com/pydata/numexpr")
3314 (synopsis "Fast numerical expression evaluator for NumPy")
3316 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
3317 expressions that operate on arrays are accelerated and use less memory than
3318 doing the same calculation in Python. In addition, its multi-threaded
3319 capabilities can make use of all your cores, which may accelerate
3320 computations, most specially if they are not memory-bounded (e.g. those using
3321 transcendental functions).")
3322 (license license:expat)))
3324 (define-public python2-numexpr
3325 (package-with-python2 python-numexpr))
3327 (define-public python-cycler
3329 (name "python-cycler")
3333 (uri (pypi-uri "cycler" version))
3336 "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
3337 (build-system python-build-system)
3339 ;; XXX: The current version requires 'coveralls' which we don't have.
3340 ;; Enable this for the next release which uses 'python-pytest'.
3343 `(("python-six" ,python-six)))
3344 (home-page "http://matplotlib.org/cycler/")
3345 (synopsis "Composable keyword argument iterator")
3347 "When using @code{matplotlib} and plotting more than one line, it is
3348 common to want to be able to want to be able to cycle over one or more artist
3349 styles; but the plotting logic can quickly become involved.
3350 To address this and enable easy cycling over arbitrary @code{kwargs}, the
3351 @code{Cycler} class was developed.")
3352 (license license:bsd-3)))
3354 (define-public python2-cycler
3355 (package-with-python2 python-cycler))
3357 (define-public python-colorspacious
3359 (name "python-colorspacious")
3364 (uri (string-append "https://github.com/njsmith/colorspacious/archive/v"
3366 (file-name (string-append name "-" version))
3368 (base32 "1vflh5jm32qb0skza2i8pjacv09w6gq84fqpp2nj77s0rbmzgr4k"))))
3369 (build-system python-build-system)
3371 `(("python-numpy" ,python-numpy)))
3373 `(("python-nose" ,python-nose)))
3376 (modify-phases %standard-phases
3379 (zero? (system* "nosetests" "--all-modules" "-v" "colorspacious")))))))
3380 (home-page "https://github.com/njsmith/colorspacious")
3381 (synopsis "Python library for colorspace conversions")
3382 (description "@code{colorspacious} is a Python library that lets you
3383 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
3384 (license license:expat)))
3386 (define-public python2-colorspacious
3387 (package-with-python2 python-colorspacious))
3389 (define-public python-matplotlib
3391 (name "python-matplotlib")
3396 (uri (pypi-uri "matplotlib" version))
3399 "1s6dv225w3k4fv52h8lfjc7qq5y56i9755ayx0mz48ddi99fzisd"))))
3400 (build-system python-build-system)
3401 (propagated-inputs ; the following packages are all needed at run time
3402 `(("python-cycler" ,python-cycler)
3403 ("python-kiwisolver" ,python-kiwisolver)
3404 ("python-pyparsing" ,python-pyparsing)
3405 ("python-pygobject" ,python-pygobject)
3406 ("gobject-introspection" ,gobject-introspection)
3407 ("python-tkinter" ,python "tk")
3408 ("python-dateutil" ,python-dateutil)
3409 ("python-numpy" ,python-numpy)
3410 ("python-pillow" ,python-pillow)
3411 ("python-pytz" ,python-pytz)
3412 ("python-six" ,python-six)
3413 ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated
3414 ;; from 'gtk+') provides the required 'typelib' files used by
3415 ;; 'gobject-introspection'. The location of these files is set with the
3416 ;; help of the environment variable GI_TYPELIB_PATH. At build time this
3417 ;; is done automatically by a 'native-search-path' procedure. However,
3418 ;; at run-time the user must set this variable as follows:
3420 ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0
3422 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
3423 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
3424 ;; object. For this reason we need to import both libraries.
3425 ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo
3426 ("python-pycairo" ,python-pycairo)
3427 ("python-pyqt" ,python-pyqt)
3428 ("python-cairocffi" ,python-cairocffi)))
3430 `(("libpng" ,libpng)
3431 ("imagemagick" ,imagemagick)
3432 ("freetype" ,freetype)
3435 ;; FIXME: Add backends when available.
3436 ;("python-wxpython" ,python-wxpython)
3440 `(("pkg-config" ,pkg-config)
3441 ("python-nose" ,python-nose)
3442 ("python-mock" ,python-mock)))
3445 (modify-phases %standard-phases
3446 (add-before 'build 'configure-environment
3447 (lambda* (#:key outputs inputs #:allow-other-keys)
3448 (let ((cairo (assoc-ref inputs "cairo"))
3449 (gtk+ (assoc-ref inputs "gtk+")))
3450 ;; Setting these directories in the 'basedirlist' of 'setup.cfg'
3452 (setenv "LD_LIBRARY_PATH"
3453 (string-append cairo "/lib:" gtk+ "/lib"))
3454 (setenv "HOME" (getcwd))
3455 (call-with-output-file "setup.cfg"
3457 (format port "[directories]~%
3458 basedirlist = ~a,~a~%
3461 (assoc-ref inputs "tcl")
3462 (assoc-ref inputs "tk")))))
3464 (home-page "http://matplotlib.org")
3465 (synopsis "2D plotting library for Python")
3467 "Matplotlib is a Python 2D plotting library which produces publication
3468 quality figures in a variety of hardcopy formats and interactive environments
3469 across platforms. Matplotlib can be used in Python scripts, the python and
3470 ipython shell, web application servers, and six graphical user interface
3472 (license license:psfl)
3473 (properties `((python2-variant . ,(delay python2-matplotlib))))))
3475 (define-public python2-matplotlib
3476 (let ((matplotlib (package-with-python2
3477 (strip-python2-variant python-matplotlib))))
3478 (package (inherit matplotlib)
3479 ;; Make sure to use special packages for Python 2 instead
3480 ;; of those automatically rewritten by package-with-python2.
3482 `(("python2-pycairo" ,python2-pycairo)
3483 ("python2-backports-functools-lru-cache"
3484 ,python2-backports-functools-lru-cache)
3485 ("python2-functools32" ,python2-functools32)
3486 ("python2-pygobject-2" ,python2-pygobject-2)
3487 ("python2-subprocess32" ,python2-subprocess32)
3488 ("python2-tkinter" ,python-2 "tk")
3489 ,@(fold alist-delete (package-propagated-inputs matplotlib)
3490 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
3492 (define-public python-matplotlib-documentation
3494 (name "python-matplotlib-documentation")
3495 (version (package-version python-matplotlib))
3496 (source (package-source python-matplotlib))
3497 (build-system python-build-system)
3499 `(("python-matplotlib" ,python-matplotlib)
3500 ("python-colorspacious" ,python-colorspacious)
3501 ("python-sphinx" ,python-sphinx-1.6)
3502 ("python-sphinx-gallery" ,python-sphinx-gallery)
3503 ("python-numpydoc" ,python-numpydoc)
3504 ("python-ipython" ,python-ipython)
3505 ("python-mock" ,python-mock)
3506 ("graphviz" ,graphviz)
3507 ("texlive" ,texlive)
3508 ("texinfo" ,texinfo)
3509 ,@(package-native-inputs python-matplotlib)))
3511 `(#:tests? #f ; we're only generating documentation
3513 (modify-phases %standard-phases
3517 ;; Produce pdf in 'A4' format.
3518 (substitute* "conf.py"
3519 (("latex_paper_size = 'letter'") "")
3520 ;; latex_paper_size is deprecated -> set paper size using
3522 (("latex_elements\\['pointsize'\\] = '11pt'" match)
3523 ;; insert at a point where latex_elements{} is defined:
3524 (string-append match "\nlatex_elements['papersize'] = 'a4paper'")))
3525 (invoke "make" "SPHINXBUILD=sphinx-build" "html" "latex" "texinfo")))
3527 (lambda* (#:key inputs outputs #:allow-other-keys)
3528 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
3529 (doc (string-append data "/doc/python-matplotlib-" ,version))
3530 (info (string-append data "/info"))
3531 (html (string-append doc "/html")))
3534 (copy-recursively "build/html" html)
3535 (symlink (string-append html "/_images")
3536 (string-append info "/matplotlib-figures"))
3537 (with-directory-excursion "build/texinfo"
3538 (substitute* "matplotlib.texi"
3539 (("@image\\{([^,]*)" all file)
3540 (string-append "@image{matplotlib-figures/" file)))
3541 (symlink (string-append html "/_images")
3542 "./matplotlib-figures")
3543 (system* "makeinfo" "--no-split"
3544 "-o" "matplotlib.info" "matplotlib.texi"))
3545 (copy-file "build/texinfo/matplotlib.info"
3546 (string-append info "/matplotlib.info"))
3547 (copy-file "build/latex/Matplotlib.pdf"
3548 (string-append doc "/Matplotlib.pdf")))
3550 (home-page (package-home-page python-matplotlib))
3551 (synopsis "Documentation for the python-matplotlib package")
3552 (description (package-description python-matplotlib))
3553 (license (package-license python-matplotlib))))
3555 (define-public python2-matplotlib-documentation
3556 (package-with-python2 python-matplotlib-documentation))
3558 (define-public python2-pysnptools
3560 (name "python2-pysnptools")
3565 (uri (pypi-uri "pysnptools" version ".zip"))
3568 "1wybggjzz8zw7aav4pjsg2h22xp17a1lghrprza1pxwlm7wf96y2"))))
3569 (build-system python-build-system)
3571 `(#:python ,python-2)) ; only Python 2.7 is supported
3573 `(("python2-numpy" ,python2-numpy)
3574 ("python2-scipy" ,python2-scipy)
3575 ("python2-pandas" ,python2-pandas)))
3577 `(("python2-cython" ,python2-cython)))
3579 `(("unzip" ,unzip)))
3580 (home-page "http://research.microsoft.com/en-us/um/redmond/projects/mscompbio/")
3581 (synopsis "Library for reading and manipulating genetic data")
3583 "PySnpTools is a library for reading and manipulating genetic data. It
3584 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
3585 those files. It can also efficiently manipulate ranges of integers using set
3586 operators such as union, intersection, and difference.")
3587 (license license:asl2.0)))
3589 (define-public python-rpy2
3591 (name "python-rpy2")
3596 (uri (pypi-uri "rpy2" version))
3599 "0bqihjrdqwj5r1h86shvfb1p5hfr4a6klv1v54bzfr9r144w3rni"))))
3600 (build-system python-build-system)
3602 '(#:modules ((ice-9 ftw)
3606 (guix build python-build-system))
3608 (modify-phases %standard-phases
3609 ;; Without this phase the test loader cannot find the directories, in
3610 ;; which it is supposed to look for test files.
3611 (add-after 'unpack 'fix-tests
3612 (lambda* (#:key outputs #:allow-other-keys)
3613 (substitute* "rpy/tests.py"
3614 (("loader.discover\\(")
3615 "loader.discover(rpy_root + '/' +"))
3618 (lambda* (#:key outputs inputs #:allow-other-keys)
3619 (let ((cwd (getcwd)))
3620 (setenv "PYTHONPATH"
3621 (string-append cwd "/build/"
3622 (find (cut string-prefix? "lib" <>)
3623 (scandir (string-append cwd "/build")))
3625 (getenv "PYTHONPATH"))))
3626 ;; FIXME: Even when all tests pass, the check phase will fail.
3627 (system* "python" "-m" "rpy2.tests" "-v"))))))
3629 `(("python-six" ,python-six)
3630 ("python-jinja2" ,python-jinja2)
3631 ("python-pytz" ,python-pytz)))
3633 `(("readline" ,readline)
3636 ("r-minimal" ,r-minimal)
3637 ("r-survival" ,r-survival)
3638 ("r-ggplot2" ,r-ggplot2)
3639 ("r-rsqlite" ,r-rsqlite)
3640 ("r-dplyr" ,r-dplyr)
3641 ("r-dbplyr" ,r-dbplyr)
3642 ("python-numpy" ,python-numpy)))
3645 (home-page "http://rpy.sourceforge.net/")
3646 (synopsis "Python interface to the R language")
3647 (description "rpy2 is a redesign and rewrite of rpy. It is providing a
3648 low-level interface to R from Python, a proposed high-level interface,
3649 including wrappers to graphical libraries, as well as R-like structures and
3651 ;; Any of these licenses can be picked for the R interface. The whole
3652 ;; project is released under GPLv2+ according to the license declaration
3654 (license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+))))
3656 (define-public python-scipy
3658 (name "python-scipy")
3663 (uri (pypi-uri "scipy" version))
3666 "1fj0r7bg0cfk5clvl57ga06y9bfh05iwlv1dqqs1r6pd89wccfc7"))))
3667 (build-system python-build-system)
3669 `(("python-numpy" ,python-numpy)
3670 ("python-matplotlib" ,python-matplotlib)
3671 ("python-pyparsing" ,python-pyparsing)))
3673 `(("lapack" ,lapack)
3674 ("openblas" ,openblas)))
3676 `(("python-cython" ,python-cython)
3677 ("python-pytest" ,python-pytest)
3678 ("python-sphinx" ,python-sphinx)
3679 ("python-numpydoc" ,python-numpydoc)
3680 ("gfortran" ,gfortran)
3683 (outputs '("out" "doc"))
3686 (modify-phases %standard-phases
3687 (add-before 'build 'configure-openblas
3688 (lambda* (#:key inputs #:allow-other-keys)
3689 (call-with-output-file "site.cfg"
3693 libraries = openblas
3694 library_dirs = ~a/lib
3695 include_dirs = ~a/include
3697 # backslash-n to make emacs happy
3699 library_dirs = ~a/lib
3700 atlas_libs = openblas
3702 (assoc-ref inputs "openblas")
3703 (assoc-ref inputs "openblas")
3704 (assoc-ref inputs "openblas"))))
3706 (add-after 'install 'install-doc
3707 (lambda* (#:key inputs outputs #:allow-other-keys)
3708 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
3709 (doc (string-append data "/doc/" ,name "-" ,version))
3710 (html (string-append doc "/html"))
3711 (pyver ,(string-append "PYVER=" (version-major+minor
3712 (package-version python))))
3713 ;; By default it tries to run sphinx-build through the Python
3714 ;; interpreter which won't work with our shell wrapper.
3715 (sphinxbuild "SPHINXBUILD=LANG=C sphinx-build"))
3716 ;; Make installed package available for building the
3718 (add-installed-pythonpath inputs outputs)
3719 (with-directory-excursion "doc"
3720 ;; Fix generation of images for mathematical expressions.
3721 (substitute* (find-files "source" "conf\\.py")
3722 (("pngmath_use_preview = True")
3723 "pngmath_use_preview = False"))
3725 (invoke "make" "html" pyver sphinxbuild)
3726 (with-directory-excursion "build/html"
3727 (for-each (lambda (file)
3728 (let* ((dir (dirname file))
3729 (tgt-dir (string-append html "/" dir)))
3730 (install-file file html)))
3731 (find-files "." ".*")))))
3733 ;; Tests can only be run after the library has been installed and not
3734 ;; within the source directory.
3736 (add-after 'install 'check
3737 (lambda* (#:key inputs outputs #:allow-other-keys)
3738 (add-installed-pythonpath inputs outputs)
3739 (with-directory-excursion "/tmp"
3740 (invoke "python" "-c"
3741 "import scipy; scipy.test('full', verbose=2)")))))))
3742 (home-page "https://www.scipy.org/")
3743 (synopsis "The Scipy library provides efficient numerical routines")
3744 (description "The SciPy library is one of the core packages that make up
3745 the SciPy stack. It provides many user-friendly and efficient numerical
3746 routines such as routines for numerical integration and optimization.")
3747 (properties `((python2-variant . ,(delay python2-scipy))))
3748 (license license:bsd-3)))
3750 (define-public python2-scipy
3751 (package-with-python2
3752 (strip-python2-variant python-scipy)))
3754 (define-public python-socksipy-branch
3756 (name "python-socksipy-branch")
3761 (uri (pypi-uri "SocksiPy-branch" version))
3764 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
3765 (build-system python-build-system)
3767 `(#:tests? #f)) ; There are no tests
3768 (home-page "https://code.google.com/archive/p/socksipy-branch/")
3769 (synopsis "Python SOCKS module")
3771 "SocksiPy - A Python SOCKS client module. It provides a
3772 socket-like interface that supports connections to any TCP
3773 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
3774 The original version was developed by Dan Haim, this is a
3775 branch created by Mario Vilas to address some open issues,
3776 as the original project seems to have been abandoned circa 2007.")
3777 (license license:bsd-3)))
3779 (define-public python2-socksipy-branch
3780 (package-with-python2 python-socksipy-branch))
3782 (define-public python-pycodestyle
3784 (name "python-pycodestyle")
3789 (uri (pypi-uri "pycodestyle" version))
3792 "0fhy4vnlgpjq4qd1wdnl6pvdw7rah0ypmn8c9mkhz8clsndskz6b"))))
3793 (build-system python-build-system)
3794 (home-page "https://pycodestyle.readthedocs.io/")
3795 (synopsis "Python style guide checker")
3796 (description "@code{pycodestyle} (formerly pep8) is a tool to check
3797 Python code against some of the style conventions in
3798 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
3799 (license license:expat)))
3801 (define-public python2-pycodestyle
3802 (package-with-python2 python-pycodestyle))
3804 (define-public python-multidict
3806 (name "python-multidict")
3811 (uri (pypi-uri "multidict" version))
3814 "1vf5bq8hn5a9rvhr5v4fwbmarfsp35hhr8gs74kqfijy34j2f194"))))
3815 (build-system python-build-system)
3817 `(("python-pytest" ,python-pytest)
3818 ("python-pytest-runner" ,python-pytest-runner)))
3819 (home-page "https://github.com/aio-libs/multidict/")
3820 (synopsis "Multidict implementation")
3821 (description "Multidict is dict-like collection of key-value pairs
3822 where key might be occurred more than once in the container.")
3823 (license license:asl2.0)))
3825 (define-public python-orderedmultidict
3827 (name "python-orderedmultidict")
3832 (uri (pypi-uri "orderedmultidict" version))
3835 "0dls862ibm7qbq4fnvwx0xn1v9hwyzywbff8xjjdr42dd75208yw"))))
3836 (build-system python-build-system)
3839 (modify-phases %standard-phases
3840 (add-after 'unpack 'fix-tests
3842 ;; The package uses nosetest for running the tests.
3843 ;; Adding this initfile allows to run the test suite
3844 ;; without requiring nosetest.
3845 (zero? (system* "touch" "tests/__init__.py")))))))
3847 `(("python-six" ,python-six)))
3849 `(("python-pycodestyle" ,python-pycodestyle)))
3850 (home-page "https://github.com/gruns/orderedmultidict")
3851 (synopsis "Python Ordered Multivalue Dictionary - omdict")
3852 (description "This package contains a library for ordered multivalue
3853 dictionaries. A multivalue dictionary is a dictionary that can store
3854 multiple values for the same key. An ordered multivalue dictionary is a
3855 multivalue dictionary that retains the order of insertions and deletions.")
3856 (license license:unlicense)))
3858 (define-public python2-orderedmultidict
3859 (package-with-python2 python-orderedmultidict))
3861 (define-public python-autopep8
3863 (name "python-autopep8")
3868 (uri (pypi-uri "autopep8" version))
3871 "192bvhzi4d0claqxgzymvv7k3qnj627742bc8sgxpzjj42pd9112"))))
3872 (build-system python-build-system)
3874 `(("python-pycodestyle" ,python-pycodestyle)))
3875 (home-page "https://github.com/hhatto/autopep8")
3876 (synopsis "Format Python code according to the PEP 8 style guide")
3878 "@code{autopep8} automatically formats Python code to conform to
3879 the PEP 8 style guide. It uses the pycodestyle utility to determine
3880 what parts of the code needs to be formatted. @code{autopep8} is
3881 capable of fixing most of the formatting issues that can be reported
3883 (license (license:non-copyleft
3884 "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
3886 (define-public python2-autopep8
3887 (package-with-python2 python-autopep8))
3889 (define-public python-distutils-extra
3891 (name "python-distutils-extra")
3896 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
3897 version "/+download/python-distutils-extra-"
3901 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
3902 (build-system python-build-system)
3903 (home-page "https://launchpad.net/python-distutils-extra/")
3904 (synopsis "Enhancements to Python's distutils")
3906 "The python-distutils-extra module enables you to easily integrate
3907 gettext support, themed icons, and scrollkeeper-based documentation into
3908 Python's distutils.")
3909 (license license:gpl2)))
3911 (define-public python2-distutils-extra
3912 (package-with-python2 python-distutils-extra))
3914 (define-public python2-elib.intl
3916 (name "python2-elib.intl")
3920 ;; This project doesn't tag releases or publish tarballs, so we take
3921 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
3924 (url "https://github.com/dieterv/elib.intl.git")
3925 (commit "d09997cfef")))
3926 (file-name (string-append name "-" version "-checkout"))
3929 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
3930 (build-system python-build-system)
3932 ;; incompatible with Python 3 (exception syntax)
3933 `(#:python ,python-2
3935 (home-page "https://github.com/dieterv/elib.intl")
3936 (synopsis "Enhanced internationalization for Python")
3938 "The elib.intl module provides enhanced internationalization (I18N)
3939 services for your Python modules and applications.")
3940 (license license:lgpl3+)))
3942 (define-public python-olefile
3944 (name "python-olefile")
3949 (uri (string-append "https://github.com/decalage2/olefile/archive/v"
3951 (file-name (string-append name "-" version ".tar.gz"))
3954 "1wmxbrhyqjry2000zx0zdhqdqxhgi06nz7sbzjlh222q2zjv1gpj"))))
3955 (build-system python-build-system)
3957 "https://www.decalage.info/python/olefileio")
3958 (synopsis "Read and write Microsoft OLE2 files.")
3960 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
3961 Storage or Compound Document, Microsoft Office). It is an improved version of
3962 the OleFileIO module from PIL, the Python Image Library.")
3963 (license license:bsd-3)))
3965 (define-public python2-olefile
3966 (package-with-python2 python-olefile))
3968 (define-public python-pillow
3970 (name "python-pillow")
3975 (uri (pypi-uri "Pillow" version))
3978 "09xmn7rl6840sli2iz1k3fgxfgmri2nqz6vkinmb9mgg8ifp2z59"))
3979 (patch-flags '("-p1" "--binary"))
3980 (patches (search-patches "python-pillow-fix-failing-tests.patch"))))
3981 (build-system python-build-system)
3983 `(("python-nose" ,python-nose)))
3985 `(("freetype" ,freetype)
3988 ("libjpeg" ,libjpeg)
3989 ("openjpeg" ,openjpeg)
3990 ("libtiff" ,libtiff)
3991 ("libwebp" ,libwebp)))
3993 `(("python-olefile" ,python-olefile)))
3995 `(#:phases (modify-phases %standard-phases
3997 'install 'check-installed
3998 (lambda* (#:key outputs inputs #:allow-other-keys)
4000 (setenv "HOME" (getcwd))
4001 ;; Make installed package available for running the
4003 (add-installed-pythonpath inputs outputs)
4004 (and (zero? (system* "python" "selftest.py"
4006 (zero? (system* "python" "test-installed.py"))))))
4008 (home-page "https://pypi.python.org/pypi/Pillow")
4009 (synopsis "Fork of the Python Imaging Library")
4011 "The Python Imaging Library adds image processing capabilities to your
4012 Python interpreter. This library provides extensive file format support, an
4013 efficient internal representation, and fairly powerful image processing
4014 capabilities. The core image library is designed for fast access to data
4015 stored in a few basic pixel formats. It should provide a solid foundation for
4016 a general image processing tool.")
4017 (license (license:x11-style
4018 "http://www.pythonware.com/products/pil/license.htm"
4019 "The PIL Software License"))))
4021 (define-public python2-pillow
4022 (package-with-python2 python-pillow))
4024 (define-public python-pycparser
4026 (name "python-pycparser")
4031 (uri (pypi-uri "pycparser" version))
4034 "1dkkjri0miidqb1zcqhqljfa34fcy9k5akasgwsv6k622zlk3b0a"))))
4035 (outputs '("out" "doc"))
4036 (build-system python-build-system)
4038 `(("pkg-config" ,pkg-config)))
4041 (modify-phases %standard-phases
4044 (with-directory-excursion "tests"
4045 (zero? (system* "python" "all_tests.py")))))
4046 (add-after 'install 'install-doc
4047 (lambda* (#:key outputs #:allow-other-keys)
4048 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4049 (doc (string-append data "/doc/" ,name "-" ,version))
4050 (examples (string-append doc "/examples")))
4052 (for-each (lambda (file)
4053 (copy-file (string-append "." file)
4054 (string-append doc file)))
4055 '("/README.rst" "/CHANGES" "/LICENSE"))
4056 (copy-recursively "examples" examples)))))))
4057 (home-page "https://github.com/eliben/pycparser")
4058 (synopsis "C parser in Python")
4060 "Pycparser is a complete parser of the C language, written in pure Python
4061 using the PLY parsing library. It parses C code into an AST and can serve as
4062 a front-end for C compilers or analysis tools.")
4063 (license license:bsd-3)))
4065 (define-public python2-pycparser
4066 (package-with-python2 python-pycparser))
4068 (define-public python-xcffib
4070 (name "python-xcffib")
4075 (uri (pypi-uri "xcffib" version))
4078 "09gbnmr5vn58mm8xi3fmd7fz6743cks6c46dphnxzwax6zsxmy60"))))
4079 (build-system python-build-system)
4081 `(("libxcb" ,libxcb)))
4083 `(("python-cffi" ,python-cffi) ; used at run time
4084 ("python-six" ,python-six)))
4086 `(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
4089 (modify-phases %standard-phases
4090 (add-after 'unpack 'fix-libxcb-path
4091 (lambda* (#:key inputs #:allow-other-keys)
4092 (let ((libxcb (assoc-ref inputs "libxcb")))
4093 (substitute* '("xcffib/__init__.py")
4094 (("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
4096 (add-after 'install 'install-doc
4097 (lambda* (#:key outputs #:allow-other-keys)
4098 (let ((doc (string-append (assoc-ref outputs "out") "/share"
4099 "/doc/" ,name "-" ,version)))
4101 (copy-file "README.md"
4102 (string-append doc "/README.md"))
4104 (home-page "https://github.com/tych0/xcffib")
4105 (synopsis "XCB Python bindings")
4107 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
4108 support for Python 3 and PyPy. It is based on cffi.")
4109 (license license:expat)))
4111 (define-public python2-xcffib
4112 (package-with-python2 python-xcffib))
4114 (define-public python-cairocffi
4116 (name "python-cairocffi")
4121 ;; The archive on pypi is missing the 'utils' directory!
4122 (uri (string-append "https://github.com/Kozea/cairocffi/archive/v"
4124 (file-name (string-append name "-" version ".tar.gz"))
4127 "1rk2dvy3fxrga6bvvxc2fi5lbaynm5h4a0w0aaxyn3bc77rszjg9"))
4128 (patches (search-patches "python-cairocffi-dlopen-path.patch"))))
4129 (build-system python-build-system)
4130 (outputs '("out" "doc"))
4134 ("gdk-pixbuf" ,gdk-pixbuf)
4138 `(("pkg-config" ,pkg-config)
4139 ("python-pytest" ,python-pytest)
4140 ("python-sphinx" ,python-sphinx)
4141 ("python-docutils" ,python-docutils)))
4143 `(("python-xcffib" ,python-xcffib))) ; used at run time
4145 `(;; FIXME: Tests cannot find 'libcairo.so.2'.
4148 (modify-phases %standard-phases
4149 (add-after 'unpack 'patch-paths
4150 (lambda* (#:key inputs outputs #:allow-other-keys)
4151 (substitute* (find-files "." "\\.py$")
4152 (("dlopen\\(ffi, 'cairo'")
4153 (string-append "dlopen(ffi, '" (assoc-ref inputs "cairo")
4154 "/lib/libcairo.so.2'"))
4155 (("dlopen\\(ffi, 'gdk-3'")
4156 (string-append "dlopen(ffi, '" (assoc-ref inputs "gtk+")
4157 "/lib/libgtk-3.so.0'"))
4158 (("dlopen\\(ffi, 'gdk_pixbuf-2.0'")
4159 (string-append "dlopen(ffi, '" (assoc-ref inputs "gdk-pixbuf")
4160 "/lib/libgdk_pixbuf-2.0.so.0'"))
4161 (("dlopen\\(ffi, 'glib-2.0'")
4162 (string-append "dlopen(ffi, '" (assoc-ref inputs "glib")
4163 "/lib/libglib-2.0.so.0'"))
4164 (("dlopen\\(ffi, 'gobject-2.0'")
4165 (string-append "dlopen(ffi, '" (assoc-ref inputs "glib")
4166 "/lib/libgobject-2.0.so.0'"))
4167 (("dlopen\\(ffi, 'pangocairo-1.0'")
4168 (string-append "dlopen(ffi, '" (assoc-ref inputs "pango")
4169 "/lib/libpangocairo-1.0.so.0'"))
4170 (("dlopen\\(ffi, 'pango-1.0'")
4171 (string-append "dlopen(ffi, '" (assoc-ref inputs "pango")
4172 "/lib/libpango-1.0.so.0'")))
4174 (add-after 'install 'install-doc
4175 (lambda* (#:key inputs outputs #:allow-other-keys)
4176 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4177 (doc (string-append data "/doc/" ,name "-" ,version))
4178 (html (string-append doc "/html")))
4179 (setenv "LD_LIBRARY_PATH"
4180 (string-append (assoc-ref inputs "cairo") "/lib" ":"
4181 (assoc-ref inputs "gdk-pixbuf") "/lib"))
4182 (setenv "LANG" "en_US.UTF-8")
4184 (for-each (lambda (file)
4185 (copy-file (string-append "." file)
4186 (string-append doc file)))
4187 '("/README.rst" "/CHANGES" "/LICENSE"))
4188 (system* "python" "setup.py" "build_sphinx")
4189 (copy-recursively "docs/_build/html" html)
4191 (home-page "https://github.com/Kozea/cairocffi")
4192 (synopsis "Python bindings and object-oriented API for Cairo")
4194 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
4195 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
4196 graphics library with support for multiple backends including image buffers,
4197 PNG, PostScript, PDF, and SVG file output.")
4198 (license license:bsd-3)))
4200 (define-public python2-cairocffi
4201 (package-with-python2 python-cairocffi))
4203 (define-public python-decorator
4205 (name "python-decorator")
4210 (uri (pypi-uri "decorator" version))
4212 (base32 "03iaf116rm3w8b4agb8hzf6z9331mrvi4khfxq35zkx17sgxsikx"))))
4213 (build-system python-build-system)
4214 (arguments '(#:tests? #f)) ; no test target
4215 (home-page "https://pypi.python.org/pypi/decorator/")
4216 (synopsis "Python module to simplify usage of decorators")
4218 "The aim of the decorator module is to simplify the usage of decorators
4219 for the average programmer, and to popularize decorators usage giving examples
4220 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
4221 etc. The core of this module is a decorator factory.")
4222 (license license:expat)))
4224 (define-public python2-decorator
4225 (package-with-python2 python-decorator))
4227 (define-public python-drmaa
4229 (name "python-drmaa")
4234 (uri (pypi-uri "drmaa" version))
4236 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
4237 (build-system python-build-system)
4238 ;; The test suite requires libdrmaa which is provided by the cluster
4239 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
4240 ;; should be set to the path of the libdrmaa library.
4241 (arguments '(#:tests? #f))
4243 `(("python-nose" ,python-nose)))
4244 (home-page "https://pypi.python.org/pypi/drmaa")
4245 (synopsis "Python bindings for the DRMAA library")
4247 "A Python package for Distributed Resource Management (DRM) job
4248 submission and control. This package is an implementation of the DRMAA 1.0
4249 Python language binding specification.")
4250 (license license:bsd-3)))
4252 (define-public python2-drmaa
4253 (package-with-python2 python-drmaa))
4255 (define-public python-grako
4257 (name "python-grako")
4263 (pypi-uri "grako" version ".zip"))
4266 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
4267 (build-system python-build-system)
4268 (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
4271 ("python-pytest" ,python-pytest)
4272 ("python-pytest-runner" ,python-pytest-runner)))
4273 (home-page "https://bitbucket.org/neogeny/grako")
4274 (synopsis "EBNF parser generator")
4276 "Grako takes a grammar in a variation of EBNF as input, and outputs a
4277 memoizing PEG/Packrat parser in Python.")
4278 (license license:bsd-3)))
4280 (define-public python2-grako
4281 (package-with-python2 python-grako))
4283 (define-public python-gridmap
4285 (name "python-gridmap")
4291 "https://github.com/pygridtools/gridmap/archive/v"
4293 (file-name (string-append name "-" version ".tar.gz"))
4295 (base32 "1gzjg2k6f14i1msm2b0ax8d9ds1hvk6qd5nlaivg8m4cxqp4cp1x"))))
4296 (build-system python-build-system)
4298 '(#:tests? #f)) ; FIXME: Requires python-cherrypy.
4300 `(("python-psutil" ,python-psutil)
4301 ("python-drmaa" ,python-drmaa)
4302 ("python-pyzmq" ,python-pyzmq)))
4303 (home-page "https://github.com/pygridtools/gridmap")
4304 (synopsis "Create jobs on a cluster directly from Python")
4306 "Gridmap is a Python package to allow you to easily create jobs on the
4307 cluster directly from Python. You can directly map Python functions onto the
4308 cluster without needing to write any wrapper code yourself.")
4309 (license license:gpl3+)))
4311 (define-public python2-gridmap
4312 (package-with-python2 python-gridmap))
4314 (define-public python-honcho
4316 (name "python-honcho")
4322 "https://github.com/nickstenning/honcho/archive/v"
4324 (file-name (string-append name "-" version ".tar.gz"))
4326 (base32 "0zizn61n5z5hq421hkypk9pw8s6fpxw30f4hsg7k4ivwzy3gjw9j"))))
4327 (build-system python-build-system)
4329 `(("python-pytest" ,python-pytest)
4330 ("python-mock" ,python-mock)
4331 ("python-tox" ,python-tox)
4332 ("which" ,which))) ;for tests
4334 `(("python-jinja2" ,python-jinja2)))
4337 (modify-phases %standard-phases
4339 (add-after 'install 'check
4340 (lambda* (#:key outputs inputs #:allow-other-keys)
4341 ;; fix honcho path in testsuite
4342 (substitute* "tests/conftest.py"
4343 (("'honcho'") (string-append "'" (assoc-ref outputs "out")
4344 "/bin/honcho" "'")))
4345 ;; It's easier to run tests after install.
4346 ;; Make installed package available for running the tests
4347 (add-installed-pythonpath inputs outputs)
4348 (zero? (system* "py.test" "-v")))))))
4349 (home-page "https://github.com/nickstenning/honcho")
4350 (synopsis "Manage Procfile-based applications")
4352 "A Procfile is a file which describes how to run an application
4353 consisting of serveral processes. honcho starts all listed processes.
4354 The output of all running processes is collected by honcho and
4356 (license license:expat)))
4358 (define-public python2-honcho
4359 (package-with-python2 python-honcho))
4361 (define-public python-pexpect
4363 (name "python-pexpect")
4368 (uri (pypi-uri "pexpect" version))
4370 (base32 "14ls7k99pwvl21zqv65kzrhccv50j89m5ij1hf0slmsvlxjj84rx"))))
4371 (build-system python-build-system)
4374 (modify-phases %standard-phases
4375 (add-before 'check 'prepare-tests
4377 (substitute* (find-files "tests")
4378 (("/bin/ls") (which "ls"))
4379 (("/bin/echo") (which "echo"))
4380 (("/bin/which") (which "which"))
4381 ;; Many tests try to use the /bin directory which
4382 ;; is not present in the build environment.
4383 ;; Use one that's non-empty and unlikely to change.
4384 (("/bin'") "/dev'"))
4385 ;; XXX: Socket connection test gets "Connection reset by peer".
4386 ;; Why does it not work? Delete for now.
4387 (delete-file "tests/test_socket.py")
4389 (replace 'check (lambda _ (zero? (system* "nosetests" "-v")))))))
4391 `(("python-nose" ,python-nose)
4392 ("python-pytest" ,python-pytest)
4395 ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
4397 `(("python-ptyprocess" ,python-ptyprocess)))
4398 (home-page "http://pexpect.readthedocs.org/")
4399 (synopsis "Controlling interactive console applications")
4401 "Pexpect is a pure Python module for spawning child applications;
4402 controlling them; and responding to expected patterns in their output.
4403 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
4404 child application and control it as if a human were typing commands.")
4405 (license license:isc)))
4407 (define-public python2-pexpect
4408 (package-with-python2 python-pexpect))
4410 (define-public python-setuptools-scm
4412 (name "python-setuptools-scm")
4416 (uri (pypi-uri "setuptools_scm" version))
4419 "0pzvfmx8s20yrgkgwfbxaspz2x1g38qv61jpm0ns91lrb22ldas9"))))
4420 (build-system python-build-system)
4421 (home-page "https://github.com/pypa/setuptools_scm/")
4422 (synopsis "Manage Python package versions in SCM metadata")
4424 "Setuptools_scm handles managing your Python package versions in
4425 @dfn{software configuration management} (SCM) metadata instead of declaring
4426 them as the version argument or in a SCM managed file.")
4427 (license license:expat)))
4429 (define-public python2-setuptools-scm
4430 (package-with-python2 python-setuptools-scm))
4432 (define-public python-pathpy
4434 (name "python-pathpy")
4439 (uri (pypi-uri "path.py" version))
4441 (base32 "07x15v8c7ry9bvycw294c9yq6ky9v2b0dalvgi6rn38ilh69vsz7"))))
4442 ;; (outputs '("out" "doc"))
4443 (build-system python-build-system)
4445 `(("python-appdirs" ,python-appdirs)))
4447 `(("python-setuptools-scm" ,python-setuptools-scm)
4448 ("python-sphinx" ,python-sphinx)
4449 ("python-rst.linker" ,python-rst.linker)
4450 ("python-pytest" ,python-pytest)
4451 ("python-pytest-runner" ,python-pytest-runner)))
4453 ;; FIXME: Documentation and tests require "jaraco.packaging".
4456 ;; (modify-phases %standard-phases
4457 ;; (add-after 'build 'build-doc
4459 ;; (setenv "LANG" "en_US.UTF-8")
4460 ;; (zero? (system* "python" "setup.py" "build_sphinx"))))
4461 ;; (add-after 'install 'install-doc
4462 ;; (lambda* (#:key outputs #:allow-other-keys)
4463 ;; (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4464 ;; (doc (string-append data "/doc/" ,name "-" ,version))
4465 ;; (html (string-append doc "/html")))
4467 ;; (for-each (lambda (file)
4468 ;; (copy-file file (string-append doc "/" file)))
4469 ;; '("README.rst" "CHANGES.rst"))
4470 ;; (copy-recursively "build/sphinx/html" html)))))))
4471 (home-page "https://github.com/jaraco/path.py")
4472 (synopsis "Python module wrapper for built-in os.path")
4474 "@code{path.py} implements path objects as first-class entities, allowing
4475 common operations on files to be invoked on those path objects directly.")
4476 (license license:expat)))
4478 (define-public python2-pathpy
4479 (package-with-python2 python-pathpy))
4481 (define-public python-simplegeneric
4483 (name "python-simplegeneric")
4488 (uri (string-append "https://pypi.python.org/packages/source/s/"
4489 "simplegeneric/simplegeneric-" version ".zip"))
4491 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
4492 (build-system python-build-system)
4494 `(("unzip" ,unzip)))
4495 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
4496 (synopsis "Python module for simple generic functions")
4498 "The simplegeneric module lets you define simple single-dispatch generic
4499 functions, akin to Python’s built-in generic functions like @code{len()},
4500 @code{iter()} and so on. However, instead of using specially-named methods,
4501 these generic functions use simple lookup tables, akin to those used by
4502 e.g. @code{pickle.dump()} and other generic functions found in the Python
4504 (license license:zpl2.1)))
4506 (define-public python2-simplegeneric
4507 (package-with-python2 python-simplegeneric))
4509 (define-public python-ipython-genutils
4510 ;; TODO: This package is retired, check if can be removed, see description.
4512 (name "python-ipython-genutils")
4517 (uri (string-append "https://pypi.python.org/packages/source/i/"
4518 "ipython_genutils/ipython_genutils-"
4521 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
4522 (build-system python-build-system)
4523 (arguments `(#:tests? #f)) ; no tests
4524 (home-page "https://ipython.org")
4525 (synopsis "Vestigial utilities from IPython")
4527 "This package provides retired utilities from IPython. No packages
4528 outside IPython/Jupyter should depend on it.
4530 This package shouldn't exist. It contains some common utilities shared by
4531 Jupyter and IPython projects during The Big Split. As soon as possible, those
4532 packages will remove their dependency on this, and this package will go
4534 (license license:bsd-3)))
4536 (define-public python2-ipython-genutils
4537 (package-with-python2 python-ipython-genutils))
4539 (define-public python-traitlets
4541 (name "python-traitlets")
4546 (uri (pypi-uri "traitlets" version))
4549 "1afy08sa5n9gnkvh3da49c16zkyv598vchv0p1hp7zzjy8895hz4"))))
4550 (build-system python-build-system)
4553 (modify-phases %standard-phases
4554 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
4556 `(("python-ipython-genutils" ,python-ipython-genutils)
4557 ("python-decorator" ,python-decorator)))
4559 `(("python-mock" ,python-mock)
4560 ("python-nose" ,python-nose)))
4561 (home-page "https://ipython.org")
4562 (synopsis "Configuration system for Python applications")
4564 "Traitlets is a framework that lets Python classes have attributes with
4565 type checking, dynamically calculated default values, and ‘on change’
4566 callbacks. The package also includes a mechanism to use traitlets for
4567 configuration, loading values from files or from command line arguments. This
4568 is a distinct layer on top of traitlets, so you can use traitlets in your code
4569 without using the configuration machinery.")
4570 (license license:bsd-3)))
4572 (define-public python2-traitlets
4573 (package-with-python2 python-traitlets))
4575 (define-public python-jupyter-core
4577 (name "python-jupyter-core")
4582 (uri (string-append (pypi-uri "jupyter_core" version)))
4585 "1dy083rarba8prn9f9srxq3c7n7vyql02ycrqq306c40lr57aw5s"))))
4586 (build-system python-build-system)
4587 ;; FIXME: not sure how to run the tests
4588 (arguments `(#:tests? #f))
4590 `(("python-traitlets" ,python-traitlets)))
4591 (home-page "http://jupyter.org/")
4592 (synopsis "Jupyter base package")
4594 "Jupyter core is the base package on which Jupyter projects rely.")
4595 (license license:bsd-3)))
4597 (define-public python2-jupyter-core
4598 (package-with-python2 python-jupyter-core))
4600 (define-public python-jupyter-client
4602 (name "python-jupyter-client")
4607 (uri (pypi-uri "jupyter_client" version))
4610 "1vjjrpjw7k5sh982pbjnslv7byfbfazjw9g92jvs7dz5qbx556n9"))))
4611 (build-system python-build-system)
4612 ;; Tests fail because of missing native python kernel which I assume is
4613 ;; provided by the ipython package, which we cannot use because it would
4614 ;; cause a dependency cycle.
4615 (arguments `(#:tests? #f))
4617 `(("python-pyzmq" ,python-pyzmq)
4618 ("python-traitlets" ,python-traitlets)
4619 ("python-jupyter-core" ,python-jupyter-core)))
4620 (home-page "http://jupyter.org/")
4621 (synopsis "Jupyter protocol implementation and client libraries")
4623 "The @code{jupyter_client} package contains the reference implementation
4624 of the Jupyter protocol. It also provides client and kernel management APIs
4625 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
4626 installing @code{kernelspec}s for use with Jupyter frontends.")
4627 (license license:bsd-3)))
4629 (define-public python2-jupyter-client
4630 (package-with-python2 python-jupyter-client))
4632 (define-public python-ipykernel
4634 (name "python-ipykernel")
4639 (uri (pypi-uri "ipykernel" version))
4641 (base32 "0qllv0k6zzv1r1cj1x2ygxmlrrqhbslzj8rc6r6fg3kc1rgz4m2s"))))
4642 (build-system python-build-system)
4643 ;; The tests load a submodule of IPython. However, IPython itself depends
4645 (arguments `(#:tests? #f))
4647 ;; imported at runtime during connect
4648 `(("python-jupyter-client" ,python-jupyter-client)))
4649 (home-page "https://ipython.org")
4650 (synopsis "IPython Kernel for Jupyter")
4652 "This package provides the IPython kernel for Jupyter.")
4653 (license license:bsd-3)))
4655 (define-public python2-ipykernel
4656 (package-with-python2 python-ipykernel))
4658 (define-public python-ipython
4660 (name "python-ipython")
4665 (uri (pypi-uri "ipython" version ".tar.gz"))
4667 (base32 "03qmzpfy00if10i9k8fjkam1s4xg22j73f933x5d228z9n4rwik6"))))
4668 (build-system python-build-system)
4669 (outputs '("out" "doc"))
4671 `(("python-pyzmq" ,python-pyzmq)
4672 ("python-prompt-toolkit" ,python-prompt-toolkit)
4673 ("python-terminado" ,python-terminado)
4674 ("python-matplotlib" ,python-matplotlib)
4675 ("python-numpy" ,python-numpy)
4676 ("python-numpydoc" ,python-numpydoc)
4677 ("python-jinja2" ,python-jinja2)
4678 ("python-jupyter-console"
4679 ;; The python-ipython and python-jupyter-console require each
4680 ;; other. To get the functionality in both packages working, strip
4681 ;; down the python-jupyter-console package when using it as an input
4682 ;; to python-ipython.
4683 ,python-jupyter-console-minimal)
4684 ("python-mistune" ,python-mistune)
4685 ("python-pexpect" ,python-pexpect)
4686 ("python-pickleshare" ,python-pickleshare)
4687 ("python-simplegeneric" ,python-simplegeneric)
4688 ("python-jsonschema" ,python-jsonschema)
4689 ("python-traitlets" ,python-traitlets)
4690 ("python-ipykernel" ,python-ipykernel)
4691 ("python-nbformat" ,python-nbformat)
4692 ("python-pygments" ,python-pygments)))
4694 `(("readline" ,readline)
4697 `(("graphviz" ,graphviz)
4698 ("pkg-config" ,pkg-config)
4699 ("python-requests" ,python-requests) ;; for tests
4700 ("python-testpath" ,python-testpath)
4701 ("python-nose" ,python-nose)
4702 ("python-sphinx" ,python-sphinx)
4703 ("python-shpinx-rtd-theme" ,python-sphinx-rtd-theme)
4704 ;; FIXME: It's possible that a smaller union would work just as well.
4705 ("texlive" ,(texlive-union (list texlive-fonts-amsfonts
4707 texlive-generic-ifxetex
4708 texlive-generic-pdftex
4709 texlive-latex-amsfonts
4710 texlive-latex-capt-of
4712 texlive-latex-environ
4713 texlive-latex-eqparbox
4714 texlive-latex-etoolbox
4715 texlive-latex-expdlist
4716 texlive-latex-fancyhdr
4717 texlive-latex-fancyvrb
4718 texlive-latex-fncychap
4720 texlive-latex-framed
4721 texlive-latex-geometry
4722 texlive-latex-graphics
4723 texlive-latex-hyperref
4724 texlive-latex-mdwtools
4725 texlive-latex-multirow
4726 texlive-latex-oberdiek
4727 texlive-latex-parskip
4728 texlive-latex-preview
4729 texlive-latex-tabulary
4730 texlive-latex-threeparttable
4731 texlive-latex-titlesec
4732 texlive-latex-trimspaces
4734 texlive-latex-upquote
4736 texlive-latex-varwidth
4737 texlive-latex-wrapfig)))
4738 ("texinfo" ,texinfo)))
4741 (modify-phases %standard-phases
4743 'install 'install-doc
4744 (lambda* (#:key inputs outputs #:allow-other-keys)
4745 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4746 (doc (string-append data "/doc/" ,name "-" ,version))
4747 (html (string-append doc "/html"))
4748 (man1 (string-append data "/man/man1"))
4749 (info (string-append data "/info"))
4750 (examples (string-append doc "/examples"))
4751 (python-arg (string-append "PYTHON=" (which "python"))))
4752 (setenv "LANG" "en_US.utf8")
4753 ;; Make installed package available for running the tests
4754 (add-installed-pythonpath inputs outputs)
4755 (with-directory-excursion "docs"
4756 ;; FIXME: pdf fails to build
4757 ;;(system* "make" "pdf" "PAPER=a4")
4758 (system* "make" python-arg "html")
4759 (system* "make" python-arg "info"))
4760 (copy-recursively "docs/man" man1)
4761 (copy-recursively "examples" examples)
4762 (copy-recursively "docs/build/html" html)
4763 ;; (copy-file "docs/build/latex/ipython.pdf"
4764 ;; (string-append doc "/ipython.pdf"))
4766 (copy-file "docs/build/texinfo/ipython.info"
4767 (string-append info "/ipython.info"))
4768 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))))
4769 ;; Tests can only be run after the library has been installed and not
4770 ;; within the source directory.
4774 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4776 (with-directory-excursion "/tmp"
4777 ;; Make installed package available for running the tests
4778 (add-installed-pythonpath inputs outputs)
4779 (setenv "HOME" "/tmp/") ;; required by a test
4780 (zero? (system* (string-append (assoc-ref outputs "out")
4785 (lambda* (#:key inputs #:allow-other-keys)
4786 (substitute* "./IPython/utils/_process_posix.py"
4787 (("/usr/bin/env', 'which") (which "which")))
4788 (substitute* "./IPython/core/tests/test_inputtransformer.py"
4789 (("#!/usr/bin/env python")
4790 (string-append "#!" (which "python"))))
4791 ;; Disable 1 failing test
4792 (substitute* "./IPython/core/tests/test_magic.py"
4793 (("def test_dirops\\(\\):" all)
4794 (string-append "@dec.skipif(True)\n" all))))))))
4795 (home-page "https://ipython.org")
4796 (synopsis "IPython is a tool for interactive computing in Python")
4798 "IPython provides a rich architecture for interactive computing with:
4799 Powerful interactive shells, a browser-based notebook, support for interactive
4800 data visualization, embeddable interpreters and tools for parallel
4802 (license license:bsd-3)
4803 (properties `((python2-variant . ,(delay python2-ipython))))))
4805 (define-public python2-ipython
4806 (let ((ipython (package-with-python2 (strip-python2-variant python-ipython))))
4809 ;; FIXME: add pyreadline once available.
4811 `(("python2-backports-shutil-get-terminal-size"
4812 ,python2-backports-shutil-get-terminal-size)
4813 ("python2-pathlib2" ,python2-pathlib2)
4814 ,@(package-propagated-inputs ipython)))
4816 `(("python2-mock" ,python2-mock)
4817 ,@(package-native-inputs ipython))))))
4819 (define-public python-urwid
4821 (name "python-urwid")
4826 (uri (pypi-uri "urwid" version))
4829 "1g6cpicybvbananpjikmjk8npmjk4xvak1wjzji62wc600wkwkb4"))))
4830 (build-system python-build-system)
4831 (home-page "http://urwid.org")
4832 (synopsis "Console user interface library for Python")
4834 "Urwid is a curses-based UI/widget library for Python. It includes many
4835 features useful for text console applications.")
4836 (license license:lgpl2.1+)))
4838 (define-public python2-urwid
4839 (package-with-python2 python-urwid))
4841 (define-public python-urwidtrees
4843 (name "python-urwidtrees")
4848 ;; package author intends on distributing via github rather than pypi:
4849 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
4850 (uri (string-append "https://github.com/pazz/urwidtrees/archive/"
4852 (file-name (string-append name "-" version ".tar.gz"))
4855 "0d30lyd3s2a97rhqfax5w9ssqds2z6aydqx3c6j2c2lk3cb4ngvh"))))
4856 (build-system python-build-system)
4858 '(#:tests? #f)) ; no tests
4859 (propagated-inputs `(("python-urwid" ,python-urwid)))
4860 (home-page "https://github.com/pazz/urwidtrees")
4861 (synopsis "Tree widgets for urwid")
4862 (description "Urwidtrees is a Widget Container API for the @code{urwid}
4863 toolkit. Use it to build trees of widgets.")
4864 (license license:gpl3+)))
4866 (define-public python2-urwidtrees
4867 (package-with-python2 python-urwidtrees))
4869 (define-public python-dbus
4871 (name "python-dbus")
4877 "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-"
4880 (base32 "1py62qir966lvdkngg0v8k1khsqxwk5m4s8nflpk1agk5f5nqb71"))))
4881 (build-system gnu-build-system)
4884 (modify-phases %standard-phases
4888 ;; XXX: For the missing '/etc/machine-id'.
4889 (substitute* "test/run-test.sh"
4890 (("DBUS_FATAL_WARNINGS=1")
4891 "DBUS_FATAL_WARNINGS=0"))
4894 `(("pkg-config" ,pkg-config)))
4896 `(("python" ,python)
4897 ("dbus-glib" ,dbus-glib)))
4898 (synopsis "Python bindings for D-bus")
4899 (description "python-dbus provides bindings for libdbus, the reference
4900 implementation of D-Bus.")
4901 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
4902 (license license:expat)))
4904 (define-public python2-dbus
4905 (package (inherit python-dbus)
4906 (name "python2-dbus")
4907 (inputs `(("python" ,python-2)
4908 ,@(alist-delete "python"
4909 (package-inputs python-dbus)
4911 ;; FIXME: on Python 2, the test_utf8 fails with:
4912 ;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
4913 (arguments `(#:tests? #f))))
4915 (define-public python-lxml
4917 (name "python-lxml")
4922 (uri (pypi-uri "lxml" version))
4925 "15nvf6n285n282682qyw3wihsncb0x5amdhyi4b83bfa2nz74vvk"))))
4926 (build-system python-build-system)
4928 `(("libxml2" ,libxml2)
4929 ("libxslt" ,libxslt)))
4930 (home-page "http://lxml.de/")
4932 "Python XML processing library")
4934 "The lxml XML toolkit is a Pythonic binding for the C libraries
4935 libxml2 and libxslt.")
4936 (license license:bsd-3))) ; and a few more, see LICENSES.txt
4938 (define-public python2-lxml
4939 (package-with-python2 python-lxml))
4941 ;; beautifulsoup4 has a totally different namespace than 3.x,
4942 ;; and pypi seems to put it under its own name, so I guess we should too
4943 (define-public python-beautifulsoup4
4945 (name "python-beautifulsoup4")
4950 (uri (pypi-uri "beautifulsoup4" version))
4953 "0glaw1vyxnbp03fni7h5496n6iib0n5iim4gax1n0ngscs9s075j"))))
4954 (build-system python-build-system)
4957 (modify-phases %standard-phases
4958 ;; The Python 2 source is the definitive source of beautifulsoup4. We
4959 ;; must use this conversion script when building with Python 3. The
4960 ;; conversion script also runs the tests.
4961 ;; For more information, see the file 'convert-py3k' in the source
4964 (lambda _ (zero? (system* "./convert-py3k")))))))
4966 "https://www.crummy.com/software/BeautifulSoup/bs4/")
4968 "Python screen-scraping library")
4970 "Beautiful Soup is a Python library designed for rapidly setting up
4971 screen-scraping projects. It offers Pythonic idioms for navigating,
4972 searching, and modifying a parse tree, providing a toolkit for
4973 dissecting a document and extracting what you need. It automatically
4974 converts incoming documents to Unicode and outgoing documents to UTF-8.")
4975 (license license:expat)
4976 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
4978 (define-public python2-beautifulsoup4
4980 (inherit (package-with-python2
4981 (strip-python2-variant python-beautifulsoup4)))
4982 (arguments `(#:python ,python-2))))
4984 (define-public python-netifaces
4986 (name "python-netifaces")
4991 (uri (pypi-uri "netifaces" version))
4994 "1gccklrcplbbqh81g1mdgpa5y8na7kkf29cq2ka3f5a2fp5hyndx"))))
4995 (build-system python-build-system)
4996 (home-page "https://github.com/al45tair/netifaces")
4998 "Python module for portable network interface information")
5000 "Netifaces is a Python module providing information on network
5001 interfaces in an easy and portable manner.")
5002 (license license:expat)))
5004 (define-public python2-netifaces
5005 (package-with-python2 python-netifaces))
5007 (define-public python-networkx
5009 (name "python-networkx")
5014 (uri (pypi-uri "networkx" version ".zip"))
5016 (base32 "1ccb8mfz4m821k9y0cigkbq42q2sbb4dj5fbjshp0awp32j2q9v4"))))
5017 (build-system python-build-system)
5018 ;; python-decorator is needed at runtime
5020 `(("python-decorator" ,python-decorator)))
5022 `(("python-nose" ,python-nose)
5024 (home-page "http://networkx.github.io/")
5025 (synopsis "Python module for creating and manipulating graphs and networks")
5027 "NetworkX is a Python package for the creation, manipulation, and study
5028 of the structure, dynamics, and functions of complex networks.")
5029 (license license:bsd-3)))
5031 (define-public python2-networkx
5032 (package-with-python2 python-networkx))
5034 ;; Define new package, because the current version of python-colormath does
5035 ;; not build against 2.0.
5036 (define-public python-networkx2
5037 (package (inherit python-networkx)
5038 (name "python-networkx2")
5043 (uri (pypi-uri "networkx" version ".zip"))
5046 "1ajl2jp8qry9nyjzzkqpy0vmsr14d23z1qk7y0vr5iwjbpvzhpyd"))
5048 (search-patches "python-networkx2-reproducible-build.patch"))))))
5050 (define-public python2-networkx2
5051 (package-with-python2 python-networkx2))
5053 (define-public python-datrie
5055 (name "python-datrie")
5060 (uri (pypi-uri "datrie" version))
5063 "08r0if7dry2q7p34gf7ffyrlnf4bdvnprxgydlfxgfnvq8f3f4bs"))))
5064 (build-system python-build-system)
5066 `(("python-cython" ,python-cython)
5067 ("python-hypothesis" ,python-hypothesis)
5068 ("python-pytest" ,python-pytest)
5069 ("python-pytest-runner" ,python-pytest-runner)))
5070 (home-page "https://github.com/kmike/datrie")
5071 (synopsis "Fast, efficiently stored trie for Python")
5073 "This package provides a fast, efficiently stored trie implementation for
5075 (license license:lgpl2.1+)))
5077 (define-public snakemake
5084 (uri (pypi-uri "snakemake" version))
5086 (base32 "0a1i5v5qxbmmpznp7my9nva8y7pxp8pjrwk2gxgisdskg35sq8s1"))))
5087 (build-system python-build-system)
5089 ;; TODO: Package missing test dependencies.
5092 (modify-phases %standard-phases
5093 ;; For cluster execution Snakemake will call Python. Since there is
5094 ;; no suitable PYTHONPATH set, cluster execution will fail. We fix
5095 ;; this by calling the snakemake wrapper instead.
5096 (add-after 'unpack 'call-wrapper-not-wrapped-snakemake
5097 (lambda* (#:key outputs #:allow-other-keys)
5098 (substitute* "snakemake/executors.py"
5099 (("\\{sys.executable\\} -m snakemake")
5100 (string-append (assoc-ref outputs "out")
5104 `(("python-wrapt" ,python-wrapt)
5105 ("python-requests" ,python-requests)
5106 ("python-appdirs" ,python-appdirs)
5107 ("python-configargparse" ,python-configargparse)
5108 ("python-datrie" ,python-datrie)
5109 ("python-docutils" ,python-docutils)
5110 ("python-jinja2" ,python-jinja2)
5111 ("python-jsonschema" ,python-jsonschema)
5112 ("python-networkx" ,python-networkx)
5113 ("python-pyyaml" ,python-pyyaml)
5114 ("python-ratelimiter" ,python-ratelimiter)))
5115 (home-page "https://bitbucket.org/snakemake/snakemake/wiki/Home")
5116 (synopsis "Python-based execution environment for make-like workflows")
5118 "Snakemake aims to reduce the complexity of creating workflows by
5119 providing a clean and modern domain specific specification language (DSL) in
5120 Python style, together with a fast and comfortable execution environment.")
5121 (license license:expat)))
5123 ;; This is currently needed for the pigx-* packages.
5124 (define-public snakemake-4
5125 (package (inherit snakemake)
5130 (uri (pypi-uri "snakemake" version))
5132 (base32 "0g0paia4z7w3srnqdmavq3hrb2x7qnpf81jx50njl0p7y4y0j8jv"))))
5134 `(("python-wrapt" ,python-wrapt)
5135 ("python-requests" ,python-requests)
5136 ("python-appdirs" ,python-appdirs)
5137 ("python-configargparse" ,python-configargparse)
5138 ("python-pyyaml" ,python-pyyaml)
5139 ("python-ratelimiter" ,python-ratelimiter)))))
5141 (define-public python-pyqrcode
5143 (name "python-pyqrcode")
5148 (uri (pypi-uri "PyQRCode" version))
5151 "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
5152 (build-system python-build-system)
5154 "https://github.com/mnooner256/pyqrcode")
5155 (synopsis "QR code generator")
5157 "Pyqrcode is a QR code generator written purely in Python with
5158 SVG, EPS, PNG and terminal output.")
5159 (license license:bsd-3)))
5161 (define-public python-seaborn
5163 (name "python-seaborn")
5168 (uri (pypi-uri "seaborn" version))
5170 (base32 "0pawrqc3mxpwd5g9pvi9gba02637bh5c8ldpp8izfwpfn52469zs"))))
5171 (build-system python-build-system)
5173 '(#:tests? #f)) ; Tests requires a running X11 server.
5175 `(("python-pandas" ,python-pandas)
5176 ("python-matplotlib" ,python-matplotlib)
5177 ("python-scipy" ,python-scipy)))
5178 (home-page "http://stanford.edu/~mwaskom/software/seaborn/")
5179 (synopsis "Statistical data visualization")
5181 "Seaborn is a library for making attractive and informative statistical
5182 graphics in Python. It is built on top of matplotlib and tightly integrated
5183 with the PyData stack, including support for numpy and pandas data structures
5184 and statistical routines from scipy and statsmodels.")
5185 (license license:bsd-3)
5186 (properties `((python2-variant . ,(delay python2-seaborn))))))
5188 (define-public python2-seaborn
5189 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
5192 (propagated-inputs `(("python2-pytz" ,python2-pytz)
5193 ,@(package-propagated-inputs base))))))
5195 (define-public python-mpmath
5197 (name "python-mpmath")
5201 (uri (string-append "http://mpmath.org/files/mpmath-"
5205 "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8"))))
5206 (build-system python-build-system)
5209 (modify-phases %standard-phases
5213 (system* "python" "mpmath/tests/runtests.py" "-local")))))))
5214 (home-page "http://mpmath.org")
5215 (synopsis "Arbitrary-precision floating-point arithmetic in python")
5217 "@code{mpmath} can be used as an arbitrary-precision substitute for
5218 Python's float/complex types and math/cmath modules, but also does much
5219 more advanced mathematics.")
5220 (license license:bsd-3)))
5222 (define-public python2-mpmath
5223 (package-with-python2 python-mpmath))
5225 (define-public python-bigfloat
5227 (name "python-bigfloat")
5232 (uri (pypi-uri "bigfloat" version))
5234 (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6"))))
5235 (build-system python-build-system)
5238 (home-page "https://github.com/mdickinson/bigfloat")
5239 (synopsis "Arbitrary precision floating-point arithmetic for Python")
5241 "This packages provides a Python interface to the MPFR library for
5242 multiprecision arithmetic.")
5243 (license license:lgpl3+)))
5245 (define-public python2-bigfloat
5246 (package-with-python2 python-bigfloat))
5248 (define-public python-sympy
5250 (name "python-sympy")
5256 "https://github.com/sympy/sympy/releases/download/sympy-"
5257 version "/sympy-" version ".tar.gz"))
5259 (base32 "190n29sppw7g8ihilc5451y7jlfcaw56crqiqbf1jff43dlmfnxc"))))
5260 (build-system python-build-system)
5263 (modify-phases %standard-phases
5264 ;; Run the core tests after installation. By default it would run
5265 ;; *all* tests, which take a very long time to complete and are known
5268 (add-after 'install 'check
5269 (lambda* (#:key outputs #:allow-other-keys)
5270 (invoke "python3" "-c" "import sympy; sympy.test(\"/core\")")
5273 `(("python-mpmath" ,python-mpmath)))
5274 (home-page "http://www.sympy.org/")
5275 (synopsis "Python library for symbolic mathematics")
5277 "SymPy is a Python library for symbolic mathematics. It aims to become a
5278 full-featured computer algebra system (CAS) while keeping the code as simple
5279 as possible in order to be comprehensible and easily extensible.")
5280 (license license:bsd-3)))
5282 (define-public python2-sympy
5284 (inherit (package-with-python2 python-sympy))
5287 (modify-phases %standard-phases
5288 ;; Run the core tests after installation. By default it would run
5289 ;; *all* tests, which take a very long time to complete and are known
5292 (add-after 'install 'check
5293 (lambda* (#:key outputs #:allow-other-keys)
5294 (invoke "python" "-c" "import sympy; sympy.test(\"/core\")")
5297 (define-public python-q
5304 (uri (pypi-uri "q" version))
5307 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
5308 (build-system python-build-system)
5309 (home-page "https://github.com/zestyping/q")
5310 (synopsis "Quick-and-dirty debugging output for tired programmers")
5312 "q is a Python module for \"print\" style of debugging Python code. It
5313 provides convenient short API for print out of values, tracebacks, and
5314 falling into the Python interpreter.")
5315 (license license:asl2.0)))
5317 (define-public python2-q
5318 (package-with-python2 python-q))
5320 (define-public python2-xlib
5322 (name "python2-xlib")
5326 (uri (string-append "mirror://sourceforge/python-xlib/python-xlib"
5328 "python-xlib-" version ".tar.gz"))
5331 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
5332 (build-system python-build-system)
5334 `(#:python ,python-2 ;Python 2 only
5335 #:tests? #f)) ;no tests
5336 (home-page "http://python-xlib.sourceforge.net/")
5337 (synopsis "Python X11 client library")
5339 "The Python X Library is intended to be a fully functional X client
5340 library for Python programs. It is useful to implement low-level X clients.
5341 It is written entirely in Python.")
5342 (license license:gpl2+)))
5344 (define-public python-singledispatch
5346 (name "python-singledispatch")
5351 (uri (pypi-uri "singledispatch" version))
5354 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
5355 (build-system python-build-system)
5357 `(("python-six" ,python-six))) ; required for conversion, not at run-time
5359 "http://docs.python.org/3/library/functools.html#functools.singledispatch")
5360 (synopsis "Backport of singledispatch feature from Python 3.4")
5362 "This library brings functools.singledispatch from Python 3.4 to Python
5364 (license license:expat)))
5366 (define-public python2-singledispatch
5367 (package-with-python2 python-singledispatch))
5369 ;; the python- version can be removed with python-3.5
5370 (define-public python-backports-abc
5372 (name "python-backports-abc")
5377 (uri (pypi-uri "backports_abc" version))
5380 "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
5381 (build-system python-build-system)
5382 (home-page "https://github.com/cython/backports_abc")
5383 (synopsis "Backport of additions to the 'collections.abc' module")
5385 "Python-backports-abc provides a backport of additions to the
5386 'collections.abc' module in Python-3.5.")
5387 (license license:psfl)))
5389 (define-public python2-backports-abc
5390 (package-with-python2 python-backports-abc))
5392 (define-public python-backports-csv
5394 (name "python-backports-csv")
5399 (uri (pypi-uri "backports.csv" version))
5402 "1imzbrradkfn8s2m1qcimyn74dn1mz2p3j381jljn166rf2i6hlc"))))
5403 (build-system python-build-system)
5404 (home-page "https://github.com/ryanhiebert/backports.csv")
5405 (synopsis "Backport of Python 3's csv module for Python 2")
5407 "Provides a backport of Python 3's @code{csv} module for parsing
5408 comma separated values. The API of the @code{csv} module in Python 2
5409 is drastically different from the @code{csv} module in Python 3.
5410 This is due, for the most part, to the difference between str in
5411 Python 2 and Python 3.")
5412 (license license:psfl)))
5414 (define-public python2-backports-csv
5415 (package-with-python2 python-backports-csv))
5417 (define-public python2-backports-shutil-get-terminal-size
5419 (name "python2-backports-shutil-get-terminal-size")
5424 (uri (pypi-uri "backports.shutil_get_terminal_size" version))
5427 "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
5428 (build-system python-build-system)
5430 `(#:python ,python-2
5432 (modify-phases %standard-phases
5435 (zero? (system* "py.test" "-v")))))))
5437 `(("python2-pytest" ,python2-pytest)))
5438 (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
5439 (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
5441 "This package provides a backport of the @code{get_terminal_size
5442 function} from Python 3.3's @code{shutil}.
5443 Unlike the original version it is written in pure Python rather than C,
5444 so it might be a tiny bit slower.")
5445 (license license:expat)))
5447 (define-public python-waf
5453 (uri (string-append "https://waf.io/"
5454 "waf-" version ".tar.bz2"))
5457 "0wl4cnmp06lfxqjxaan58bqxn27smhydz0sg5prrfbl3bsw4gv6q"))))
5458 (build-system python-build-system)
5461 (modify-phases %standard-phases
5464 (invoke "python" "waf-light" "configure" "build")))
5467 (invoke "python" "waf" "--version")))
5470 (copy-file "waf" %output)
5472 (home-page "https://waf.io/")
5473 (synopsis "Python-based build system")
5475 "Waf is a Python-based framework for configuring, compiling and installing
5477 (license license:bsd-3)))
5479 (define-public python2-waf
5480 (package-with-python2 python-waf))
5482 (define-public python-pyzmq
5484 (name "python-pyzmq")
5489 (uri (pypi-uri "pyzmq" version))
5491 (base32 "13fhwnlvsvxv72kfhqbpn6qi7msh8mc8377mpabv32skk2cjfnxx"))))
5492 (build-system python-build-system)
5495 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
5496 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
5497 ;; --inplace' for 'python setup.py test' to work.
5500 `(("zeromq" ,zeromq)))
5502 `(("pkg-config" ,pkg-config)
5503 ("python-nose" ,python-nose)))
5504 (home-page "https://github.com/zeromq/pyzmq")
5505 (synopsis "Python bindings for 0MQ")
5507 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
5508 (license license:bsd-4)))
5510 (define-public python2-pyzmq
5511 (package-with-python2 python-pyzmq))
5513 (define-public python-pep8
5515 (name "python-pep8")
5520 (uri (pypi-uri "pep8" version))
5523 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))))
5524 (build-system python-build-system)
5525 (home-page "http://pep8.readthedocs.org/")
5526 (synopsis "Python style guide checker")
5528 "This tools checks Python code against some of the style conventions in
5530 (license license:expat)))
5532 (define-public python2-pep8
5533 (package-with-python2 python-pep8))
5535 (define-public python-pyflakes
5537 (name "python-pyflakes")
5542 (uri (pypi-uri "pyflakes" version))
5545 "0jba28czyvimdc72llms3f17swp3i8jdcabf5w0j00adfbn64xls"))))
5546 (build-system python-build-system)
5548 "https://github.com/pyflakes/pyflakes")
5549 (synopsis "Passive checker of Python programs")
5551 "Pyflakes statically checks Python source code for common errors.")
5552 (license license:expat)))
5554 (define-public python2-pyflakes
5555 (package-with-python2 python-pyflakes))
5557 (define-public python-mccabe
5559 (name "python-mccabe")
5564 (uri (pypi-uri "mccabe" version))
5567 "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
5568 (build-system python-build-system)
5570 `(("python-pytest" ,python-pytest-bootstrap)
5571 ("python-pytest-runner" ,python-pytest-runner)))
5572 (home-page "https://github.com/flintwork/mccabe")
5573 (synopsis "McCabe checker, plugin for flake8")
5575 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
5576 complexity of Python source code.")
5577 (license license:expat)))
5579 (define-public python2-mccabe
5580 (package-with-python2 python-mccabe))
5582 (define-public python-mccabe-0.2.1
5583 (package (inherit python-mccabe)
5588 (uri (pypi-uri "mccabe" version))
5591 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))))
5593 (define-public python2-mccabe-0.2.1
5594 (package-with-python2 python-mccabe-0.2.1))
5596 ;; Flake8 2.4.1 requires an older version of pep8.
5597 ;; This should be removed ASAP.
5598 (define-public python-pep8-1.5.7
5599 (package (inherit python-pep8)
5605 "https://pypi.python.org/packages/source/p/pep8/pep8-"
5610 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))
5612 ;; XXX Tests not compatible with Python 3.5.
5615 (define-public python2-pep8-1.5.7
5616 (package-with-python2 python-pep8-1.5.7))
5618 ;; Flake8 2.4.1 requires an older version of pyflakes.
5619 ;; This should be removed ASAP.
5620 (define-public python-pyflakes-0.8.1
5621 (package (inherit python-pyflakes)
5627 "https://pypi.python.org/packages/source/p/pyflakes/pyflakes-"
5632 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))
5634 ;; XXX Tests not compatible with Python 3.5.
5637 (define-public python2-pyflakes-0.8.1
5638 (package-with-python2 python-pyflakes-0.8.1))
5640 (define-public python-flake8
5642 (name "python-flake8")
5647 (uri (pypi-uri "flake8" version))
5650 "184b33grvvjmiwlv9kyd7yng9qv5ld24154j70z332xxg9gjclvj"))))
5651 (build-system python-build-system)
5654 (modify-phases %standard-phases
5656 (add-after 'install 'check
5657 (lambda* (#:key inputs outputs #:allow-other-keys)
5658 (add-installed-pythonpath inputs outputs)
5659 (zero? (system* "pytest" "-v")))))))
5661 `(("python-pycodestyle" ,python-pycodestyle)
5662 ("python-pyflakes" ,python-pyflakes)
5663 ;; flake8 depends on a newer setuptools than provided by python.
5664 ("python-setuptools" ,python-setuptools)
5665 ("python-mccabe" ,python-mccabe)))
5667 `(("python-mock" ,python-mock) ; TODO: only required for < 3.3
5668 ("python-pytest" ,python-pytest-bootstrap)
5669 ("python-pytest-runner" ,python-pytest-runner)))
5670 (home-page "https://gitlab.com/pycqa/flake8")
5672 "The modular source code checker: pep8, pyflakes and co")
5674 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
5675 (properties `((python2-variant . ,(delay python2-flake8))))
5676 (license license:expat)))
5678 (define-public python2-flake8
5679 (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
5680 (package (inherit base)
5682 `(("python2-configparser" ,python2-configparser)
5683 ("python2-enum34" ,python2-enum34)
5684 ,@(package-propagated-inputs base))))))
5686 ;; python-hacking requires flake8 <2.6.0.
5687 (define-public python-flake8-2.5
5689 (inherit python-flake8)
5693 (uri (pypi-uri "flake8" version))
5696 "1snylqwbmrylbx3r1wpz8ggk98f6bcag4441ag8mm2l7wyn58sij"))))
5698 `(("python-pep8" ,python-pep8)
5699 ,@(package-propagated-inputs python-flake8)))
5700 (properties `((python2-variant . ,(delay python2-flake8-2.5))))))
5702 (define-public python2-flake8-2.5
5704 (inherit python2-flake8)
5705 (version (package-version python-flake8-2.5))
5707 (inherit (package-source python-flake8-2.5))))
5709 `(("python2-pep8" ,python2-pep8)
5710 ,@(package-propagated-inputs python2-flake8)))))
5712 (define-public python-flake8-polyfill
5714 (name "python-flake8-polyfill")
5719 (uri (pypi-uri "flake8-polyfill" version))
5722 "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"))))
5723 (build-system python-build-system)
5726 (modify-phases %standard-phases
5729 (setenv "PYTHONPATH"
5730 (string-append (getcwd) "/build/lib:"
5731 (getenv "PYTHONPATH")))
5732 (zero? (system* "py.test" "-v")))))))
5734 `(("python-flake8" ,python-flake8)
5735 ("python-mock" ,python-mock)
5736 ("python-pep8" ,python-pep8)
5737 ("python-pycodestyle" ,python-pycodestyle)
5738 ("python-pytest" ,python-pytest)))
5739 (home-page "https://gitlab.com/pycqa/flake8-polyfill")
5740 (synopsis "Polyfill package for Flake8 plugins")
5742 "This package that provides some compatibility helpers for Flake8
5743 plugins that intend to support Flake8 2.x and 3.x simultaneously.")
5744 (license license:expat)))
5746 (define-public python2-flake8-polyfill
5747 (package-with-python2 python-flake8-polyfill))
5749 (define-public python-mistune
5751 (name "python-mistune")
5756 (uri (pypi-uri "mistune" version))
5759 "06b662p6kf46wh2jsabaqhaq4bz1srh2zxkrnx4yg96azlxw645w"))))
5760 (build-system python-build-system)
5762 `(("python-nose" ,python-nose)
5763 ("python-cython" ,python-cython)))
5764 (home-page "https://github.com/lepture/mistune")
5765 (synopsis "Markdown parser in pure Python")
5766 (description "This package provides a fast markdown parser in pure
5768 (license license:bsd-3)))
5770 (define-public python2-mistune
5771 (package-with-python2 python-mistune))
5773 (define-public python-markdown
5775 (name "python-markdown")
5780 (uri (pypi-uri "Markdown" version))
5783 "108g80ryzykh8bj0i7jfp71510wrcixdi771lf2asyghgyf8cmm8"))))
5784 (build-system python-build-system)
5787 (modify-phases %standard-phases
5790 (zero? (system* "python" "run-tests.py")))))))
5792 `(("python-nose" ,python-nose)
5793 ("python-pyyaml" ,python-pyyaml)))
5794 (home-page "https://pythonhosted.org/Markdown/")
5795 (synopsis "Python implementation of Markdown")
5797 "This package provides a Python implementation of John Gruber's
5798 Markdown. The library features international input, various Markdown
5799 extensions, and several HTML output formats. A command line wrapper
5800 markdown_py is also provided to convert Markdown files to HTML.")
5801 (license license:bsd-3)))
5803 (define-public python2-markdown
5804 (package-with-python2 python-markdown))
5806 (define-public python-ptyprocess
5808 (name "python-ptyprocess")
5813 (uri (pypi-uri "ptyprocess" version))
5816 "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
5817 (build-system python-build-system)
5819 `(("python-nose" ,python-nose)))
5822 (modify-phases %standard-phases
5825 (zero? (system* "nosetests")))))))
5826 (home-page "https://github.com/pexpect/ptyprocess")
5827 (synopsis "Run a subprocess in a pseudo terminal")
5829 "This package provides a Python library used to launch a subprocess in a
5830 pseudo terminal (pty), and interact with both the process and its pty.")
5831 (license license:isc)))
5833 (define-public python2-ptyprocess
5834 (package-with-python2 python-ptyprocess))
5836 (define-public python-cram
5838 (name "python-cram")
5840 (home-page "https://bitheap.org/cram/")
5843 (uri (list (string-append home-page "cram-"
5845 (pypi-uri "cram" version)))
5848 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
5851 (modify-phases %standard-phases
5852 (add-after 'unpack 'patch-source
5854 (substitute* (find-files "cram" ".*\\.py$")
5855 ;; Replace default shell path.
5856 (("/bin/sh") (which "sh")))
5857 (substitute* (find-files "tests" ".*\\.t$")
5859 (("/bin/bash") (which "bash"))
5860 (("/bin/sh") (which "sh")))
5861 (substitute* "cram/_test.py"
5862 ;; This hack works around a bug triggered by substituting
5863 ;; the /bin/sh paths. "tests/usage.t" compares the output of
5864 ;; "cram -h", which breaks the output at 80 characters. This
5865 ;; causes the line showing the default shell to break into two
5866 ;; lines, but the test expects a single line...
5867 (("env\\['COLUMNS'\\] = '80'")
5868 "env['COLUMNS'] = '160'"))
5871 (add-after 'install 'check
5872 ;; The test phase uses the built library and executable.
5873 ;; It's easier to run it after install since the build
5874 ;; directory contains version-specific PATH.
5875 (lambda* (#:key inputs outputs #:allow-other-keys)
5876 (add-installed-pythonpath inputs outputs)
5877 (setenv "PATH" (string-append (getenv "PATH") ":"
5878 (assoc-ref outputs "out") "/bin"))
5879 (zero? (system* "make" "test")))))))
5880 (build-system python-build-system)
5882 `(("python-coverage" ,python-coverage)
5884 (synopsis "Simple testing framework for command line applications")
5886 "Cram is a functional testing framework for command line applications.
5887 Cram tests look like snippets of interactive shell sessions. Cram runs each
5888 command and compares the command output in the test with the command’s actual
5890 (license license:gpl2+)))
5892 (define-public python2-cram
5893 (package-with-python2 python-cram))
5895 (define-public python-straight-plugin
5897 (name "python-straight-plugin")
5902 (uri (pypi-uri "straight.plugin" version))
5905 "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
5906 (build-system python-build-system)
5907 (home-page "https://github.com/ironfroggy/straight.plugin")
5908 (synopsis "Simple namespaced plugin facility")
5909 (description "Straight Plugin provides a type of plugin you can create from
5910 almost any existing Python modules, and an easy way for outside developers to
5911 add functionality and customization to your projects with their own plugins.")
5912 (license license:expat)))
5914 (define-public python2-straight-plugin
5915 (package-with-python2 python-straight-plugin))
5917 (define-public python-fonttools
5919 (name "python-fonttools")
5923 (uri (pypi-uri "fonttools" version ".zip"))
5926 "0vsvjhidpb5kywpjgz1j3fywzkddxkb0afqai18qa3h6lqjyxwpb"))))
5927 (build-system python-build-system)
5930 ("python-pytest" ,python-pytest)
5931 ("python-pytest-runner" ,python-pytest-runner)))
5932 (home-page "https://github.com/behdad/fonttools")
5933 (synopsis "Tools to manipulate font files")
5935 "FontTools/TTX is a library to manipulate font files from Python. It
5936 supports reading and writing of TrueType/OpenType fonts, reading and writing
5937 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
5938 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
5939 from an XML-based format.")
5940 (license license:expat)))
5942 (define-public python2-fonttools
5943 (package-with-python2 python-fonttools))
5945 (define-public python-ly
5952 (uri (pypi-uri name version))
5955 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
5956 (build-system python-build-system)
5958 ;; FIXME: Some tests need network access.
5960 (synopsis "Tool and library for manipulating LilyPond files")
5961 (description "This package provides a Python library to parse, manipulate
5962 or create documents in LilyPond format. A command line program ly is also
5963 provided that can be used to do various manipulations with LilyPond files.")
5964 (home-page "https://pypi.python.org/pypi/python-ly")
5965 (license license:gpl2+)))
5967 (define-public python-appdirs
5969 (name "python-appdirs")
5974 (uri (pypi-uri "appdirs" version))
5977 "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
5978 (build-system python-build-system)
5979 (home-page "https://github.com/ActiveState/appdirs")
5981 "Determine platform-specific dirs, e.g. a \"user data dir\"")
5983 "This module provides a portable way of finding out where user data
5984 should be stored on various operating systems.")
5985 (license license:expat)))
5987 (define-public python2-appdirs
5988 (package-with-python2 python-appdirs))
5990 (define-public python-llfuse
5992 (name "python-llfuse")
5996 (uri (pypi-uri "llfuse" version ".tar.bz2"))
5999 "1rqww632y2zz71xmr6ch7yq80kvza9mhqr2z773k0d8l1lwzl575"))))
6000 (build-system python-build-system)
6005 `(("pkg-config" ,pkg-config)))
6006 (synopsis "Python bindings for FUSE")
6008 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
6009 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
6010 (license license:lgpl2.0+)
6011 (properties `((python2-variant . ,(delay python2-llfuse))))))
6013 (define-public python2-llfuse
6014 (package (inherit (package-with-python2
6015 (strip-python2-variant python-llfuse)))
6016 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
6019 (define-public python-llfuse-0.41
6020 (package (inherit python-llfuse)
6025 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
6026 "llfuse-" version ".tar.bz2"))
6029 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
6030 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
6031 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
6032 (license (list license:expat license:lgpl2.0+))))
6034 (define-public python-msgpack
6036 (name "python-msgpack")
6040 (uri (pypi-uri "msgpack" version))
6043 "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
6044 (build-system python-build-system)
6046 `(#:modules ((guix build utils)
6047 (guix build python-build-system)
6052 (modify-phases %standard-phases
6055 (let ((cwd (getcwd)))
6056 (setenv "PYTHONPATH"
6057 (string-append cwd "/build/"
6058 (find (cut string-prefix? "lib" <>)
6059 (scandir (string-append cwd "/build")))
6061 (getenv "PYTHONPATH")))
6062 (invoke "pytest" "-v" "test")))))))
6064 `(("python-pytest" ,python-pytest)))
6065 (synopsis "MessagePack (de)serializer")
6066 (description "MessagePack is a fast, compact binary serialization format,
6067 suitable for similar data to JSON. This package provides CPython bindings for
6068 reading and writing MessagePack data.")
6069 (home-page "https://pypi.python.org/pypi/msgpack/")
6070 (license license:asl2.0)))
6072 ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
6073 ;; release 0.5. Some packages like borg still call it by the old name for now.
6074 ;; <https://bugs.gnu.org/30662>
6075 (define-public python-msgpack-transitional
6077 (inherit python-msgpack)
6078 (name "python-msgpack-transitional")
6080 (substitute-keyword-arguments (package-arguments python-msgpack)
6082 `(modify-phases ,phases
6083 (add-after 'unpack 'configure-transitional
6085 ;; Keep using the old name.
6086 (substitute* "setup.py"
6087 (("TRANSITIONAL = False")
6088 "TRANSITIONAL = 1"))
6091 (define-public python2-msgpack
6092 (package-with-python2 python-msgpack))
6094 (define-public python-netaddr
6096 (name "python-netaddr")
6101 (uri (pypi-uri "netaddr" version))
6104 "1zdfadvpq4lmcqzr383gywxn4xyn355kj1n3lk9q2l03vmyfrbiq"))))
6105 (build-system python-build-system)
6106 (arguments `(#:tests? #f)) ;; No tests.
6107 (home-page "https://github.com/drkjam/netaddr/")
6108 (synopsis "Pythonic manipulation of network addresses")
6110 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
6111 and MAC network addresses.")
6112 (license license:bsd-3)))
6114 (define-public python2-netaddr
6115 (package-with-python2 python-netaddr))
6117 (define-public python-wrapt
6119 (name "python-wrapt")
6124 (uri (pypi-uri "wrapt" version))
6127 "1ip3dwib39xhp79kblskgvz3fjzcwxgx3fs3ahdixhpjg7a61mfl"))))
6128 (build-system python-build-system)
6130 ;; Tests are not included in the tarball, they are only available in the
6133 (home-page "https://github.com/GrahamDumpleton/wrapt")
6134 (synopsis "Module for decorators, wrappers and monkey patching")
6136 "The aim of the wrapt module is to provide a transparent object proxy for
6137 Python, which can be used as the basis for the construction of function
6138 wrappers and decorator functions.")
6139 (license license:bsd-2)))
6141 (define-public python2-wrapt
6142 (package-with-python2 python-wrapt))
6144 (define-public python-xlrd
6146 (name "python-xlrd")
6150 (uri (pypi-uri "xlrd" version))
6153 "0s8hjiz01vbhy85xalrz0qlsmd9ypf36zjqrf97hh984spapvy0g"))))
6154 (build-system python-build-system)
6157 (modify-phases %standard-phases
6158 ;; Current test in setup.py does not work as of 1.0.0, so use nose to
6159 ;; run tests instead for now.
6160 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
6161 (native-inputs `(("python-nose" ,python-nose)))
6162 (home-page "http://www.python-excel.org/")
6163 (synopsis "Library for extracting data from Excel files")
6164 (description "This packages provides a library to extract data from
6165 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
6166 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
6167 Unicode-aware. It is not intended as an end-user tool.")
6168 (license license:bsd-3)))
6170 (define-public python2-xlrd
6171 (package-with-python2 python-xlrd))
6173 (define-public python-prettytable
6175 (name "python-prettytable")
6181 "https://pypi.python.org/packages/source/P/PrettyTable/"
6182 "prettytable-" version ".tar.bz2"))
6185 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
6186 (build-system python-build-system)
6187 (home-page "http://code.google.com/p/prettytable/")
6188 (synopsis "Display tabular data in an ASCII table format")
6190 "A library designed to represent tabular data in visually appealing ASCII
6191 tables. PrettyTable allows for selection of which columns are to be printed,
6192 independent alignment of columns (left or right justified or centred) and
6193 printing of sub-tables by specifying a row range.")
6194 (license license:bsd-3)))
6196 (define-public python2-prettytable
6197 (package-with-python2 python-prettytable))
6199 (define-public python-tables
6201 (name "python-tables")
6206 (uri (pypi-uri "tables" version))
6209 "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))
6210 (modules '((guix build utils)))
6213 ;; Remove pre-compiled .pyc files from source.
6214 (for-each delete-file-recursively
6215 (find-files "." "__pycache__" #:directories? #t))
6216 (for-each delete-file (find-files "." "\\.pyc$"))
6218 (build-system python-build-system)
6220 `(;; FIXME: python-build-system does not pass configure-flags to "build"
6221 ;; or "check", so we must override the build and check phases.
6223 (modify-phases %standard-phases
6224 (add-after 'unpack 'use-gcc
6226 (substitute* "setup.py"
6227 (("compiler = new_compiler\\(\\)" line)
6229 "\ncompiler.set_executables(compiler='gcc',"
6230 "compiler_so='gcc',"
6232 "linker_so='gcc -shared')")))
6235 (lambda* (#:key inputs #:allow-other-keys)
6236 (zero? (system* "python" "setup.py" "build"
6237 (string-append "--hdf5="
6238 (assoc-ref inputs "hdf5"))))))
6240 (lambda* (#:key inputs #:allow-other-keys)
6241 (zero? (system* "python" "setup.py" "check"
6242 (string-append "--hdf5="
6243 (assoc-ref inputs "hdf5")))))))))
6245 `(("python-numexpr" ,python-numexpr)
6246 ("python-numpy" ,python-numpy)))
6248 `(("python-cython" ,python-cython)
6249 ("pkg-config" ,pkg-config)))
6254 (home-page "http://www.pytables.org/")
6255 (synopsis "Hierarchical datasets for Python")
6256 (description "PyTables is a package for managing hierarchical datasets and
6257 designed to efficiently cope with extremely large amounts of data.")
6258 (license license:bsd-3)))
6260 (define-public python2-tables
6261 (package-with-python2 python-tables))
6263 (define-public python-pyasn1
6265 (name "python-pyasn1")
6270 (uri (pypi-uri "pyasn1" version))
6273 "1z5h38anjzzrxpraa9iq9llffyx2zs8gx0q6dc1g029miwnn50gv"))))
6274 (build-system python-build-system)
6275 (home-page "http://pyasn1.sourceforge.net/")
6276 (synopsis "ASN.1 types and codecs")
6278 "This is an implementation of ASN.1 types and codecs in Python. It is
6279 suitable for a wide range of protocols based on the ASN.1 specification.")
6280 (license license:bsd-2)))
6282 (define-public python2-pyasn1
6283 (package-with-python2 python-pyasn1))
6285 (define-public python-pyasn1-modules
6287 (name "python-pyasn1-modules")
6292 (uri (pypi-uri "pyasn1-modules" version))
6295 "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0"))))
6296 (build-system python-build-system)
6298 `(("python-pyasn1" ,python-pyasn1)))
6299 (home-page "https://sourceforge.net/projects/pyasn1/")
6300 (synopsis "ASN.1 codec implementations")
6302 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
6303 implementations of ASN.1-based codecs and protocols.")
6304 (license license:bsd-3)))
6306 (define-public python2-pyasn1-modules
6307 (package-with-python2 python-pyasn1-modules))
6309 (define-public python-ipaddress
6311 (name "python-ipaddress")
6315 (uri (pypi-uri "ipaddress" version))
6318 "10agaa1cys1bk1ycpl2w8lky9vjx8h1xh1z29mg0niqx0638c390"))))
6319 (build-system python-build-system)
6320 (home-page "https://github.com/phihag/ipaddress")
6321 (synopsis "IP address manipulation library")
6323 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
6324 in Python. This library is used to create, poke at, and manipulate IPv4 and
6325 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
6326 module to older versions of Python.")
6327 (license license:psfl)))
6329 (define-public python2-ipaddress
6330 (package-with-python2 python-ipaddress))
6332 (define-public python2-ipaddr
6334 (name "python2-ipaddr")
6339 (uri (pypi-uri "ipaddr" version))
6341 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
6342 (build-system python-build-system)
6344 `(#:python ,python-2 ;version 2 only
6346 (modify-phases %standard-phases
6349 (zero? (system* "python" "ipaddr_test.py")))))))
6350 (home-page "https://github.com/google/ipaddr-py")
6351 (synopsis "IP address manipulation library")
6353 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
6354 IPv6 addresses and networks.
6356 For new implementations you may prefer to use the standard module
6357 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
6358 versions of Python.")
6359 (license license:asl2.0)))
6361 (define-public python-idna
6363 (name "python-idna")
6368 (uri (pypi-uri "idna" version))
6371 "13qaab6d0s15gknz8v3zbcfmbj6v86hn9pjxgkdf62ch13imssic"))))
6372 (build-system python-build-system)
6373 (home-page "https://github.com/kjd/idna")
6374 (synopsis "Internationalized domain names in applications")
6376 "This is a library to support the Internationalised Domain Names in
6377 Applications (IDNA) protocol as specified in RFC 5891. This version of the
6378 protocol is often referred to as “IDNA2008” and can produce different results
6379 from the earlier standard from 2003. The library is also intended to act as a
6380 suitable drop-in replacement for the “encodings.idna” module that comes with
6381 the Python standard library but currently only supports the older 2003
6383 (license license:bsd-4)))
6385 (define-public python2-idna
6386 (package-with-python2 python-idna))
6388 (define-public python-idna-ssl
6390 (name "python-idna-ssl")
6395 (uri (pypi-uri "idna-ssl" version))
6398 "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
6399 (build-system python-build-system)
6401 `(#:tests? #f)) ;circular dependency with python-aiohttp
6402 (home-page "https://github.com/aio-libs/idna-ssl")
6403 (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
6404 (description "Patch @code{ssl.match_hostname} for Unicode(idna)
6406 (license license:expat)))
6408 (define-public python-pretend
6410 (name "python-pretend")
6415 (uri (string-append "https://pypi.python.org/packages/source/p/"
6416 "pretend/pretend-" version ".tar.gz"))
6419 "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
6420 (build-system python-build-system)
6421 (home-page "https://github.com/alex/pretend")
6422 (synopsis "Library for stubbing in Python")
6424 "Pretend is a library to make stubbing with Python easier. Stubbing is a
6425 technique for writing tests. You may hear the term mixed up with mocks,
6426 fakes, or doubles. Basically, a stub is an object that returns pre-canned
6427 responses, rather than doing any computation.")
6428 (license license:bsd-3)))
6430 (define-public python2-pretend
6431 (package-with-python2 python-pretend))
6433 (define-public python-pip
6440 (uri (pypi-uri "pip" version))
6443 "03clr9c1dih5n9c00c592zzvf6r1ffimywkaq9agcqdllzhl7wh9"))))
6444 (build-system python-build-system)
6446 '(#:tests? #f)) ; there are no tests in the pypi archive.
6447 (home-page "https://pip.pypa.io/")
6448 (synopsis "Package manager for Python software")
6450 "Pip is a package manager for Python software, that finds packages on the
6451 Python Package Index (PyPI).")
6452 (license license:expat)))
6454 (define-public python2-pip
6455 (package-with-python2 python-pip))
6457 (define-public python-tlsh
6459 (name "python-tlsh")
6461 (home-page "https://github.com/trendmicro/tlsh")
6464 (uri (string-append "https://github.com/trendmicro/tlsh/archive/v"
6468 "00bhzjqrlh7v538kbkbn8lgx976j1138al3sdhklaizqjvpwyk4r"))
6469 (file-name (string-append name "-" version ".tar.gz"))))
6470 (build-system cmake-build-system)
6472 '(#:out-of-source? #f
6473 #:phases (modify-phases %standard-phases
6476 (lambda* (#:key outputs #:allow-other-keys)
6477 ;; Build and install the Python bindings. The underlying
6478 ;; C++ library is apparently not meant to be installed.
6479 (let ((out (assoc-ref outputs "out")))
6480 (with-directory-excursion "py_ext"
6481 (and (system* "python" "setup.py" "build")
6482 (system* "python" "setup.py" "install"
6483 (string-append "--prefix=" out))))))))))
6484 (inputs `(("python" ,python-wrapper))) ;for the bindings
6485 (synopsis "Fuzzy matching library for Python")
6487 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
6488 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
6489 value which can be used for similarity comparisons. Similar objects have
6490 similar hash values, which allows for the detection of similar objects by
6491 comparing their hash values. The byte stream should have a sufficient amount
6492 of complexity; for example, a byte stream of identical bytes will not generate
6494 (license license:asl2.0)))
6496 (define-public python2-tlsh
6498 (inherit python-tlsh)
6499 (name "python2-tlsh")
6500 (inputs `(("python" ,python-2)))))
6502 (define-public python-termcolor
6504 (name "python-termcolor")
6509 (uri (pypi-uri "termcolor" version))
6512 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
6513 (build-system python-build-system)
6515 ;; There are no tests.
6517 (home-page "https://pypi.python.org/pypi/termcolor")
6518 (synopsis "ANSII Color formatting for terminal output")
6520 "This package provides ANSII Color formatting for output in terminals.")
6521 (license license:expat)))
6523 (define-public python2-termcolor
6524 (package-with-python2 python-termcolor))
6526 (define-public python-libarchive-c
6528 (name "python-libarchive-c")
6532 (uri (pypi-uri "libarchive-c" version))
6535 "0z4r7v3dhd6b3120mav05ff08srih176r2rg5k8kn7mjd9pslm2x"))))
6536 (build-system python-build-system)
6538 '(#:phases (modify-phases %standard-phases
6540 'build 'reference-libarchive
6541 (lambda* (#:key inputs #:allow-other-keys)
6542 ;; Retain the absolute file name of libarchive.so.
6543 (let ((libarchive (assoc-ref inputs "libarchive")))
6544 (substitute* "libarchive/ffi.py"
6545 (("find_library\\('archive'\\)")
6546 (string-append "'" libarchive
6547 "/lib/libarchive.so'")))))))))
6549 `(("libarchive" ,libarchive)))
6550 (home-page "https://github.com/Changaco/python-libarchive-c")
6551 (synopsis "Python interface to libarchive")
6553 "This package provides Python bindings to libarchive, a C library to
6554 access possibly compressed archives in many different formats. It uses
6555 Python's @code{ctypes} foreign function interface (FFI).")
6556 (license license:lgpl2.0+)))
6558 (define-public python2-libarchive-c
6559 (package-with-python2 python-libarchive-c))
6561 (define-public python-file
6564 (name "python-file")
6565 (build-system python-build-system)
6567 '(#:tests? #f ;no tests
6568 #:configure-flags '("--single-version-externally-managed" "--root=/")
6569 #:phases (modify-phases %standard-phases
6570 (add-before 'build 'change-directory
6574 (add-before 'build 'set-library-file-name
6575 (lambda* (#:key inputs #:allow-other-keys)
6576 (let ((file (assoc-ref inputs "file")))
6577 (substitute* "magic.py"
6578 (("find_library\\('magic'\\)")
6579 (string-append "'" file "/lib/libmagic.so'")))
6581 (inputs `(("file" ,file)))
6582 (self-native-input? #f)
6583 (synopsis "Python bindings to the libmagic file type guesser. Note that
6584 this module and the python-magic module both provide a \"magic.py\" file;
6585 these two modules, which are different and were developed separately, both
6586 serve the same purpose: provide Python bindings for libmagic.")))
6588 (define-public python2-file
6589 (package-with-python2 python-file))
6591 (define-public python-debian
6593 (name "python-debian")
6598 (uri (pypi-uri name version))
6601 "0i15f0xzx679sd0ldq2sls9pnnps9fv6vhqvnv9dzf4qhma42i0y"))))
6602 (build-system python-build-system)
6604 `(("python-six" ,python-six)))
6605 (home-page "http://packages.debian.org/sid/python-debian")
6606 (synopsis "Debian package related modules")
6608 ;; XXX: Use @enumerate instead of @itemize to work around
6609 ;; <http://bugs.gnu.org/21772>.
6610 "This package provides Python modules that abstract many formats of
6611 Debian-related files, such as:
6614 @item Debtags information;
6615 @item @file{debian/changelog} files;
6616 @item packages files, pdiffs;
6617 @item control files of single or multiple RFC822-style paragraphs---e.g.
6618 @file{debian/control}, @file{.changes}, @file{.dsc};
6619 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
6620 contained files and meta-information.
6623 ;; Modules are either GPLv2+ or GPLv3+.
6624 (license license:gpl3+)))
6626 (define-public python2-debian
6627 (package-with-python2 python-debian))
6629 (define-public python-nbformat
6631 (name "python-nbformat")
6636 (uri (pypi-uri "nbformat" version))
6639 "00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp"))))
6640 (build-system python-build-system)
6641 (arguments `(#:tests? #f)) ; no test target
6643 `(("python-ipython-genutils" ,python-ipython-genutils)
6644 ("python-jsonschema" ,python-jsonschema)
6645 ("python-jupyter-core" ,python-jupyter-core)
6646 ("python-traitlets" ,python-traitlets)))
6647 (home-page "http://jupyter.org")
6648 (synopsis "Jupyter Notebook format")
6649 (description "This package provides the reference implementation of the
6650 Jupyter Notebook format and Python APIs for working with notebooks.")
6651 (license license:bsd-3)))
6653 (define-public python2-nbformat
6654 (package-with-python2 python-nbformat))
6656 (define-public python-bleach
6658 (name "python-bleach")
6663 (uri (pypi-uri "bleach" version))
6666 "0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj"))))
6667 (build-system python-build-system)
6669 `(("python-html5lib" ,python-html5lib-0.9)
6670 ("python-six" ,python-six)))
6672 `(("python-nose" ,python-nose)))
6673 (home-page "https://github.com/jsocol/bleach")
6674 (synopsis "Whitelist-based HTML-sanitizing tool")
6675 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
6676 (license license:asl2.0)))
6678 (define-public python2-bleach
6679 (package-with-python2 python-bleach))
6681 (define-public python-entrypoints
6683 (name "python-entrypoints")
6688 (uri (string-append "https://github.com/takluyver/entrypoints/archive/"
6690 (file-name (string-append name "-" version ".tar.gz"))
6693 "1pdvgfr5bxyvnfvxbsd3zi0dh3il71pc4k6rinx6zpps91b84a56"))))
6694 (build-system python-build-system)
6695 ;; The package does not come with a setup.py file, so we have to generate
6700 (modify-phases %standard-phases
6701 (add-after 'unpack 'create-setup.py
6703 (call-with-output-file "setup.py"
6706 from setuptools import setup
6707 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
6709 (home-page "https://github.com/takluyver/entrypoints")
6710 (synopsis "Discover and load entry points from installed Python packages")
6711 (description "Entry points are a way for Python packages to advertise
6712 objects with some common interface. The most common examples are
6713 @code{console_scripts} entry points, which define shell commands by
6714 identifying a Python function to run. The @code{entrypoints} module contains
6715 functions to find and load entry points.")
6716 (license license:expat)))
6718 (define-public python2-entrypoints
6719 (package-with-python2 python-entrypoints))
6721 (define-public python-nbconvert
6723 (name "python-nbconvert")
6728 (uri (pypi-uri "nbconvert" version))
6731 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
6732 (build-system python-build-system)
6734 `(;; The "bdist_egg" target is disabled by default, causing the installation
6736 #:configure-flags (list "bdist_egg")
6737 ;; FIXME: 5 failures, 40 errors.
6740 ;; (modify-phases %standard-phases
6743 ;; (zero? (system* "py.test" "-v")))))
6745 `(("python-pytest" ,python-pytest)))
6747 `(("python-bleach" ,python-bleach)
6748 ("python-entrypoints" ,python-entrypoints)
6749 ("python-jinja2" ,python-jinja2)
6750 ("python-jupyter-core" ,python-jupyter-core)
6751 ("python-mistune" ,python-mistune)
6752 ("python-nbformat" ,python-nbformat)
6753 ("python-pygments" ,python-pygments)
6754 ("python-traitlets" ,python-traitlets)))
6755 (home-page "http://jupyter.org")
6756 (synopsis "Converting Jupyter Notebooks")
6757 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
6758 notebooks to various other formats via Jinja templates. It allows you to
6759 convert an @code{.ipynb} notebook file into various static formats including:
6767 @item ReStructured Text (rst)
6768 @item executable script
6770 (license license:bsd-3)))
6772 (define-public python2-nbconvert
6773 (package-with-python2 python-nbconvert))
6775 (define-public python-notebook
6777 (name "python-notebook")
6781 (uri (pypi-uri "notebook" version))
6784 "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r"))))
6785 (build-system python-build-system)
6788 (modify-phases %standard-phases
6791 ;; HOME must be set for tests
6792 (setenv "HOME" "/tmp")
6793 (zero? (system* "nosetests")))))))
6795 `(("python-jupyter-core" ,python-jupyter-core)
6796 ("python-nbformat" ,python-nbformat)
6797 ("python-nbconvert" ,python-nbconvert)
6798 ("python-ipython" ,python-ipython)))
6800 `(("python-nose" ,python-nose)
6801 ("python-sphinx" ,python-sphinx)
6802 ("python-requests" ,python-requests)))
6803 (home-page "http://jupyter.org/")
6804 (synopsis "Web-based notebook environment for interactive computing")
6806 "The Jupyter HTML notebook is a web-based notebook environment for
6807 interactive computing.")
6808 (properties `((python2-variant . ,(delay python2-notebook))))
6809 (license license:bsd-3)))
6811 (define-public python2-notebook
6812 (let ((base (package-with-python2
6813 (strip-python2-variant python-notebook))))
6814 (package (inherit base)
6816 `(("python2-mock" ,python2-mock)
6817 ,@(package-native-inputs base)))
6819 (substitute-keyword-arguments (package-arguments base)
6821 `(modify-phases ,phases
6822 (add-before 'check 'disable-test-case
6823 ;; The test requires network access to localhost. Curiously it
6824 ;; fails with Python 2 only. Simply make the test-case return
6828 "notebook/services/nbconvert/tests/test_nbconvert_api.py"
6829 (("formats = self.nbconvert_api") "return #")))))))))))
6831 (define-public python-widgetsnbextension
6833 (name "python-widgetsnbextension")
6838 (uri (pypi-uri "widgetsnbextension" version))
6841 "0lff2mrwrgsa1mxmwx3phl9xvy0jqfpg6khbmxy53jbq56rwy666"))))
6842 (build-system python-build-system)
6844 `(("python-notebook" ,python-notebook)))
6846 `(("python-certifi" ,python-certifi)
6847 ("python-nose" ,python-nose)))
6848 (home-page "https://ipython.org")
6849 (synopsis "IPython HTML widgets for Jupyter")
6850 (description "This package provides interactive HTML widgets for Jupyter
6852 (license license:bsd-3)))
6854 (define-public python2-widgetsnbextension
6855 (package-with-python2 python-widgetsnbextension))
6857 (define-public python-ipywidgets
6859 (name "python-ipywidgets")
6864 (uri (pypi-uri "ipywidgets" version))
6867 "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms"))))
6868 (build-system python-build-system)
6869 ;; FIXME: it's not clear how to run the tests.
6870 (arguments `(#:tests? #f))
6872 `(("python-ipykernel" ,python-ipykernel)
6873 ("python-ipython" ,python-ipython)
6874 ("python-traitlets" ,python-traitlets)
6875 ("python-widgetsnbextension" ,python-widgetsnbextension)))
6876 (home-page "https://ipython.org")
6877 (synopsis "IPython HTML widgets for Jupyter")
6878 (description "Ipywidgets are interactive HTML widgets for Jupyter
6879 notebooks and the IPython kernel. Notebooks come alive when interactive
6880 widgets are used. Users gain control of their data and can visualize changes
6882 (license license:bsd-3)))
6884 (define-public python2-ipywidgets
6885 (package-with-python2 python-ipywidgets))
6887 (define-public python-jupyter-console
6889 (name "python-jupyter-console")
6894 (uri (pypi-uri "jupyter_console" version))
6897 "1kam1qzgwr7srhm5r6aj90di5sws4bq0jmiw15452ddamb9yspal"))))
6898 (build-system python-build-system)
6899 ;; FIXME: it's not clear how to run the tests.
6900 (arguments `(#:tests? #f))
6902 `(("python-ipykernel" ,python-ipykernel)
6903 ("python-ipython" ,python-ipython)
6904 ("python-jupyter-client" ,python-jupyter-client)
6905 ("python-prompt-toolkit" ,python-prompt-toolkit)
6906 ("python-pygments" ,python-pygments)))
6907 (home-page "https://jupyter.org")
6908 (synopsis "Jupyter terminal console")
6909 (description "This package provides a terminal-based console frontend for
6910 Jupyter kernels. It also allows for console-based interaction with non-Python
6911 Jupyter kernels such as IJulia and IRKernel.")
6912 (license license:bsd-3)))
6914 (define-public python2-jupyter-console
6915 (package-with-python2 python-jupyter-console))
6917 ;; The python-ipython and python-jupyter-console require each other. To get
6918 ;; the functionality in both packages working, strip down the
6919 ;; python-jupyter-console package when using it as an input to python-ipython.
6920 (define python-jupyter-console-minimal
6922 (inherit python-jupyter-console)
6923 (name "python-jupyter-console-minimal")
6925 (substitute-keyword-arguments
6926 (package-arguments python-jupyter-console)
6928 `(modify-phases ,phases
6929 (add-after 'install 'delete-bin
6930 (lambda* (#:key outputs #:allow-other-keys)
6931 ;; Delete the bin files, to avoid conflicts in profiles
6932 ;; where python-ipython and python-jupyter-console are
6934 (delete-file-recursively
6936 (assoc-ref outputs "out") "/bin"))))))))
6937 ;; Remove the python-ipython propagated input, to avoid the cycle
6941 (package-propagated-inputs python-jupyter-console)))))
6943 (define-public jupyter
6950 (uri (pypi-uri "jupyter" version))
6953 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
6954 (build-system python-build-system)
6955 ;; FIXME: it's not clear how to run the tests.
6956 (arguments `(#:tests? #f))
6958 `(("python-ipykernel" ,python-ipykernel)
6959 ("python-ipywidgets" ,python-ipywidgets)
6960 ("python-jupyter-console" ,python-jupyter-console)
6961 ("python-nbconvert" ,python-nbconvert)
6962 ("python-notebook" ,python-notebook)))
6964 (native-search-paths
6965 (list (search-path-specification
6966 (variable "JUPYTER_PATH")
6967 (files '("share/jupyter")))))
6969 (home-page "http://jupyter.org")
6970 (synopsis "Web application for interactive documents")
6972 "The Jupyter Notebook is a web application that allows you to create and
6973 share documents that contain live code, equations, visualizations and
6974 explanatory text. Uses include: data cleaning and transformation, numerical
6975 simulation, statistical modeling, machine learning and much more.")
6976 (license license:bsd-3)))
6978 (define-public python-chardet
6980 (name "python-chardet")
6985 (uri (pypi-uri "chardet" version))
6988 "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"))))
6990 `(("python-hypothesis" ,python-hypothesis)
6991 ("python-pytest" ,python-pytest)
6992 ("python-pytest-runner" ,python-pytest-runner)))
6993 (build-system python-build-system)
6994 (home-page "https://github.com/chardet/chardet")
6995 (synopsis "Universal encoding detector for Python 2 and 3")
6997 "This package provides @code{chardet}, a Python module that can
6998 automatically detect a wide range of file encodings.")
6999 (license license:lgpl2.1+)))
7001 (define-public python2-chardet
7002 (package-with-python2 python-chardet))
7004 (define-public python-docopt
7006 (name "python-docopt")
7011 ;; The release on PyPI does not include tests.
7013 "https://github.com/docopt/docopt/archive/"
7015 (file-name (string-append name "-" version ".tar.gz"))
7018 "16bf890xbdz3m30rsv2qacklh2rdn1zrfspfnwzx9g7vwz8yw4r1"))))
7019 (build-system python-build-system)
7021 `(("python-pytest" ,python-pytest)))
7024 (modify-phases %standard-phases
7026 (lambda _ (zero? (system* "py.test")))))))
7027 (home-page "http://docopt.org")
7028 (synopsis "Command-line interface description language for Python")
7029 (description "This library allows the user to define a command-line
7030 interface from a program's help message rather than specifying it
7031 programatically with command-line parsers like @code{getopt} and
7033 (license license:expat)))
7035 (define-public python2-docopt
7036 (package-with-python2 python-docopt))
7038 (define-public python-pythondialog
7040 (name "python-pythondialog")
7045 (uri (pypi-uri "pythondialog" version))
7048 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
7049 (build-system python-build-system)
7052 (modify-phases %standard-phases
7053 (add-after 'unpack 'patch-path
7054 (lambda* (#:key inputs #:allow-other-keys)
7055 (let* ((dialog (assoc-ref inputs "dialog")))
7056 ;; Since this library really wants to grovel the search path, we
7057 ;; must hardcode dialog's store path into it.
7058 (substitute* "dialog.py"
7059 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
7060 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
7062 #:tests? #f)) ; no test suite
7064 `(("dialog" ,dialog)))
7065 (home-page "http://pythondialog.sourceforge.net/")
7066 (synopsis "Python interface to the UNIX dialog utility")
7067 (description "A Python wrapper for the dialog utility. Its purpose is to
7068 provide an easy to use, pythonic and comprehensive Python interface to dialog.
7069 This allows one to make simple text-mode user interfaces on Unix-like systems")
7070 (license license:lgpl2.1)
7071 (properties `((python2-variant . ,(delay python2-pythondialog))))))
7073 (define-public python2-pythondialog
7074 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
7077 (version (package-version python-pythondialog))
7080 (uri (pypi-uri "python2-pythondialog" version))
7083 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
7085 (define-public python-configobj
7087 (name "python-configobj")
7092 "https://pypi.python.org/packages/source/c/configobj/"
7093 "configobj-" version ".tar.gz"))
7096 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
7097 ;; Patch setup.py so it looks for python-setuptools, which is
7098 ;; required to parse the keyword 'install_requires' in setup.py.
7099 (patches (search-patches "python-configobj-setuptools.patch"))))
7100 (build-system python-build-system)
7102 `(("python-six" ,python-six)))
7103 (synopsis "Config file reading, writing and validation")
7104 (description "ConfigObj is a simple but powerful config file reader and
7105 writer: an ini file round tripper. Its main feature is that it is very easy to
7106 use, with a straightforward programmer’s interface and a simple syntax for
7108 (home-page "https://github.com/DiffSK/configobj")
7109 (license license:bsd-3)))
7111 (define-public python2-configobj
7112 (package-with-python2 python-configobj))
7114 (define-public python-configargparse
7116 (name "python-configargparse")
7121 "https://pypi.io/packages/source/C/ConfigArgParse/"
7122 "ConfigArgParse-" version ".tar.gz"))
7125 "0fgkiqh6r3rbkdq3k8c48m85g52k96686rw3a6jg4lcncrkpvk98"))))
7126 (build-system python-build-system)
7128 `(("python-pyyaml" ,python-pyyaml)))
7131 (modify-phases %standard-phases
7134 ;; Bypass setuptools-shim because one test relies on "setup.py"
7135 ;; being the first argument passed to the python call.
7137 ;; NOTE: Many tests do not run because they rely on Python's
7138 ;; built-in test.test_argparse, but we remove the unit tests from
7139 ;; our Python installation.
7140 (zero? (system* "python" "setup.py" "test")))))))
7141 (synopsis "Replacement for argparse")
7142 (description "A drop-in replacement for argparse that allows options to also
7143 be set via config files and/or environment variables.")
7144 (home-page "https://github.com/bw2/ConfigArgParse")
7145 (license license:expat)))
7147 (define-public python2-configargparse
7148 (package-with-python2 python-configargparse))
7150 (define-public python-contextlib2
7152 (name "python-contextlib2")
7157 (uri (pypi-uri "contextlib2" version))
7160 "0cmp131dlh0d0zvw0aza1zd13glvngzk8lb4avks0hm7yxwdr9am"))))
7161 (build-system python-build-system)
7164 (modify-phases %standard-phases
7168 "python" "test_contextlib2.py" "-v")))))))
7169 (home-page "http://contextlib2.readthedocs.org/")
7170 (synopsis "Tools for decorators and context managers")
7171 (description "This module is primarily a backport of the Python
7172 3.2 contextlib to earlier Python versions. Like contextlib, it
7173 provides utilities for common tasks involving decorators and context
7174 managers. It also contains additional features that are not part of
7175 the standard library.")
7176 (license license:psfl)))
7178 (define-public python2-contextlib2
7179 (package-with-python2 python-contextlib2))
7181 (define-public python-texttable
7183 (name "python-texttable")
7188 (uri (pypi-uri "texttable" version))
7191 "1liiiydgkg37i46a418aw19fyf6z3ds51wdwwpyjbs12x0phhf4a"))))
7192 (build-system python-build-system)
7193 (arguments '(#:tests? #f)) ; no tests
7194 (home-page "https://github.com/foutaise/texttable/")
7195 (synopsis "Python module for creating simple ASCII tables")
7196 (description "Texttable is a Python module for creating simple ASCII
7198 (license license:lgpl2.1+)))
7200 (define-public python2-texttable
7201 (package-with-python2 python-texttable))
7203 (define-public python-atomicwrites
7205 (name "python-atomicwrites")
7209 (uri (pypi-uri "atomicwrites" version))
7212 "11bm90fwm2avvf4f3ib8g925w7jr4m11vcsinn1bi6ns4bm32214"))))
7213 (build-system python-build-system)
7214 (synopsis "Atomic file writes in Python")
7215 (description "Library for atomic file writes using platform dependent tools
7216 for atomic file system operations.")
7217 (home-page "https://github.com/untitaker/python-atomicwrites")
7218 (license license:expat)))
7220 (define-public python2-atomicwrites
7221 (package-with-python2 python-atomicwrites))
7223 (define-public python-click-threading
7225 (name "python-click-threading")
7229 (uri (pypi-uri "click-threading" version))
7232 "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j"))))
7233 (build-system python-build-system)
7235 `(("python-click" ,python-click)))
7236 (synopsis "Utilities for multithreading in Click")
7237 (description "This package provides utilities for multithreading in Click
7239 (home-page "https://github.com/click-contrib/click-threading")
7240 (license license:expat)))
7242 (define-public python-click-log
7244 (name "python-click-log")
7248 (uri (pypi-uri "click-log" version))
7251 "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
7252 (build-system python-build-system)
7254 `(("python-click" ,python-click)))
7255 (synopsis "Logging for click applications")
7256 (description "This package provides a Python library for logging Click
7258 (home-page "https://github.com/click-contrib/click-log")
7259 (license license:expat)))
7261 (define-public python-apipkg
7263 (name "python-apipkg")
7267 (uri (pypi-uri "apipkg" version))
7270 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
7271 (build-system python-build-system)
7273 `(("python-pytest" ,python-pytest)))
7274 (synopsis "Namespace control and lazy-import mechanism")
7275 (description "With apipkg you can control the exported namespace of a Python
7276 package and greatly reduce the number of imports for your users. It is a small
7277 pure Python module that works on virtually all Python versions.")
7278 (home-page "https://bitbucket.org/hpk42/apipkg")
7279 (license license:expat)))
7281 (define-public python2-apipkg
7282 (package-with-python2 python-apipkg))
7284 (define-public python-execnet
7286 (name "python-execnet")
7290 (uri (pypi-uri "execnet" version))
7293 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
7294 (build-system python-build-system)
7296 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
7297 ;; The two test failures are caused by the lack of an `ssh` executable.
7298 ;; The test suite can be run with pytest after the 'install' phase.
7301 `(("python-pytest" ,python-pytest)
7302 ("python-setuptools-scm" ,python-setuptools-scm)))
7304 `(("python-apipkg" ,python-apipkg)))
7305 (synopsis "Rapid multi-Python deployment")
7306 (description "Execnet provides a share-nothing model with
7307 channel-send/receive communication for distributing execution across many
7308 Python interpreters across version, platform and network barriers. It has a
7309 minimal and fast API targeting the following uses:
7311 @item distribute tasks to (many) local or remote CPUs
7312 @item write and deploy hybrid multi-process applications
7313 @item write scripts to administer multiple environments
7315 (home-page "http://codespeak.net/execnet/")
7316 (license license:expat)))
7318 (define-public python2-execnet
7319 (package-with-python2 python-execnet))
7321 (define-public python-icalendar
7323 (name "python-icalendar")
7327 (uri (pypi-uri "icalendar" version))
7330 "139y79y6ijl39m5bj771r43vpah9s4ly7d1k76la6hrx7l144ak8"))))
7331 (build-system python-build-system)
7333 `(("python-dateutil" ,python-dateutil)
7334 ("python-pytz" ,python-pytz)))
7335 (synopsis "Python library for parsing iCalendar files")
7336 (description "The icalendar package is a parser/generator of iCalendar
7337 files for use with Python.")
7338 (home-page "https://github.com/collective/icalendar")
7339 (license license:bsd-2)))
7341 (define-public python-sphinxcontrib-newsfeed
7343 (name "python-sphinxcontrib-newsfeed")
7347 (uri (pypi-uri "sphinxcontrib-newsfeed" version))
7350 "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"))))
7351 (arguments '(#:tests? #f)) ; No tests.
7352 (build-system python-build-system)
7354 `(("python-sphinx" ,python-sphinx)))
7355 (synopsis "News Feed extension for Sphinx")
7356 (description "Sphinxcontrib-newsfeed is an extension for adding a simple
7357 Blog, News or Announcements section to a Sphinx website.")
7358 (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed")
7359 (license license:bsd-2)))
7361 (define-public python-args
7363 (name "python-args")
7367 (uri (pypi-uri "args" version))
7370 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
7371 (build-system python-build-system)
7372 (home-page "https://github.com/kennethreitz/args")
7373 (synopsis "Command-line argument parser")
7375 "This library provides a Python module to parse command-line arguments.")
7376 (license license:bsd-3)))
7378 (define-public python2-args
7379 (package-with-python2 python-args))
7381 (define-public python-clint
7383 (name "python-clint")
7387 (uri (pypi-uri "clint" version))
7390 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
7391 (build-system python-build-system)
7394 (modify-phases %standard-phases
7397 (zero? (system* "py.test" "-v")))))))
7399 `(("python-pytest" ,python-pytest)))
7401 `(("python-args" ,python-args)))
7402 (home-page "https://github.com/kennethreitz/clint")
7403 (synopsis "Command-line interface tools")
7405 "Clint is a Python module filled with a set of tools for developing
7406 command-line applications, including tools for colored and indented
7407 output, progress bar display, and pipes.")
7408 (license license:isc)))
7410 (define-public python2-clint
7411 (package-with-python2 python-clint))
7413 (define-public python-astor
7415 (name "python-astor")
7419 (uri (pypi-uri "astor" version))
7422 "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
7423 (build-system python-build-system)
7424 (home-page "https://github.com/berkerpeksag/astor")
7425 (synopsis "Read and write Python ASTs")
7427 "Astor is designed to allow easy manipulation of Python source via the
7428 Abstract Syntax Tree.")
7429 (license license:bsd-3)))
7431 (define-public python2-astor
7432 (package-with-python2 python-astor))
7434 (define-public python-rply
7436 (name "python-rply")
7440 (uri (pypi-uri "rply" version))
7443 "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"))))
7444 (build-system python-build-system)
7446 `(("python-appdirs" ,python-appdirs)))
7447 (home-page "https://github.com/alex/rply")
7448 (synopsis "Parser generator for Python")
7450 "This package provides a pure Python based parser generator, that also
7451 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
7452 with a new public API, and RPython support.")
7453 (license license:bsd-3)))
7455 (define-public python2-rply
7456 (package-with-python2 python-rply))
7458 (define-public python-hy
7464 (uri (pypi-uri "hy" version))
7467 "19sfymaksx9jhksfnb15ahid46mzrhdfzz6yy2craz2qnzvpmky8"))))
7468 (build-system python-build-system)
7471 (modify-phases %standard-phases
7474 ;; Tests require write access to HOME.
7475 (setenv "HOME" "/tmp")
7476 (zero? (system* "nosetests")))))))
7478 `(("python-coverage" ,python-coverage)
7479 ("python-nose" ,python-nose)))
7481 `(("python-astor" ,python-astor)
7482 ("python-clint" ,python-clint)
7483 ("python-rply" ,python-rply)))
7484 (home-page "http://hylang.org/")
7485 (synopsis "Lisp frontend to Python")
7487 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
7488 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
7489 Python at your fingertips, in Lisp form.")
7490 (license license:expat)))
7492 (define-public python2-hy
7493 (package-with-python2 python-hy))
7495 (define-public python2-functools32
7497 (name "python2-functools32")
7502 (uri (pypi-uri "functools32" version))
7505 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
7506 (build-system python-build-system)
7508 `(#:python ,python-2
7509 #:tests? #f)) ; no test target
7510 (home-page "https://github.com/MiCHiLU/python-functools32")
7512 "Backport of the functools module from Python 3.2.3")
7514 "This package is a backport of the @code{functools} module from Python
7515 3.2.3 for use with older versions of Python and PyPy.")
7516 (license license:expat)))
7518 (define-public python2-subprocess32
7520 (name "python2-subprocess32")
7524 (uri (pypi-uri "subprocess32" version))
7527 "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y"))
7529 (search-patches "python2-subprocess32-disable-input-test.patch"))))
7530 (build-system python-build-system)
7532 `(#:python ,python-2
7533 ;; The test suite fails with Python > 2.7.13:
7534 ;; import test.support
7535 ;; ImportError: No module named support
7538 (modify-phases %standard-phases
7539 (add-after 'unpack 'patch-/bin/sh
7541 (substitute* '("subprocess32.py"
7542 "test_subprocess32.py")
7543 (("/bin/sh") (which "sh")))
7545 (home-page "https://github.com/google/python-subprocess32")
7546 (synopsis "Backport of the subprocess module from Python 3.2")
7548 "This is a backport of the @code{subprocess} standard library module
7549 from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some
7550 new features. On POSIX systems it is guaranteed to be reliable when used
7551 in threaded applications. It includes timeout support from Python 3.3 but
7552 otherwise matches 3.2’s API.")
7553 (license license:psfl)))
7555 (define-public python2-futures
7557 (name "python2-futures")
7562 (uri (pypi-uri "futures" version))
7565 "1pw1z4329xvlabdpwqa6b7v2fxf7hl64m4cgr22ckbym8m8m4hh5"))))
7566 (build-system python-build-system)
7567 (arguments `(#:python ,python-2))
7568 (home-page "https://github.com/agronholm/pythonfutures")
7570 "Backport of the concurrent.futures package from Python 3.2")
7572 "The concurrent.futures module provides a high-level interface for
7573 asynchronously executing callables. This package backports the
7574 concurrent.futures package from Python 3.2")
7575 (license license:bsd-3)))
7577 (define-public python-promise
7579 (name "python-promise")
7584 (uri (pypi-uri "promise" version))
7587 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
7588 (build-system python-build-system)
7589 ;; Tests wants python-futures, which is a python2 only program, and
7590 ;; can't be found by python-promise at test time.
7591 (arguments `(#:tests? #f))
7592 (home-page "https://github.com/syrusakbary/promise")
7593 (synopsis "Promises/A+ implementation for Python")
7595 "Promises/A+ implementation for Python")
7596 (properties `((python2-variant . ,(delay python2-promise))))
7597 (license license:expat)))
7599 (define-public python2-promise
7600 (let ((promise (package-with-python2
7601 (strip-python2-variant python-promise))))
7602 (package (inherit promise)
7603 (arguments (substitute-keyword-arguments (package-arguments promise)
7606 `(("python2-futures" ,python2-futures)
7607 ("python2-pytest" ,python2-pytest)
7608 ,@(package-native-inputs promise))))))
7610 (define-public python-colorama
7612 (name "python-colorama")
7617 (uri (pypi-uri "colorama" version))
7620 "1wd1szk0z3073ghx26ynw43gnc140ibln1safgsis6s6z3s25ss8"))))
7621 (build-system python-build-system)
7622 (synopsis "Colored terminal text rendering for Python")
7623 (description "Colorama is a Python library for rendering colored terminal
7625 (home-page "https://pypi.python.org/pypi/colorama")
7626 (license license:bsd-3)))
7628 (define-public python2-colorama
7629 (package-with-python2 python-colorama))
7631 (define-public python-rsa
7638 (uri (pypi-uri "rsa" version))
7641 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
7642 (build-system python-build-system)
7644 `(("python-pyasn1" ,python-pyasn1)))
7645 (synopsis "Pure-Python RSA implementation")
7646 (description "Python-RSA is a pure-Python RSA implementation. It supports
7647 encryption and decryption, signing and verifying signatures, and key
7648 generation according to PKCS#1 version 1.5. It can be used as a Python
7649 library as well as on the command line.")
7650 (home-page "https://stuvel.eu/rsa")
7651 (license license:asl2.0)))
7653 (define-public python2-rsa
7654 (package-with-python2 python-rsa))
7656 (define-public python-pluggy
7658 (name "python-pluggy")
7663 (uri (pypi-uri "pluggy" version))
7666 "1zqckndfn85l1cd8pndw212zg1bq9fkg1nnj32kp2mppppsyg2kz"))))
7667 (build-system python-build-system)
7668 (synopsis "Plugin and hook calling mechanism for Python")
7669 (description "Pluggy is an extraction of the plugin manager as used by
7670 Pytest but stripped of Pytest specific details.")
7671 (home-page "https://pypi.python.org/pypi/pluggy")
7672 (license license:expat)))
7674 (define-public python2-pluggy
7675 (package-with-python2 python-pluggy))
7677 (define-public python-tox
7684 (uri (pypi-uri "tox" version))
7687 "1drp6mwm8wdypjym15ia8lwjxbhcksb9vzxg4ay5dh4ji57by2ny"))))
7688 (build-system python-build-system)
7690 ;; FIXME: Tests require pytest-timeout, which itself requires
7691 ;; pytest>=2.8.0 for installation.
7694 `(("python-pluggy" ,python-pluggy) ; >=0.3.0,<0.4.0
7695 ("python-py" ,python-py)
7696 ("python-virtualenv" ,python-virtualenv)))
7698 `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
7699 ("python-pytest" ,python-pytest) ; >= 2.3.5
7700 ("python-setuptools-scm" ,python-setuptools-scm)))
7701 (home-page "http://tox.testrun.org/")
7702 (synopsis "Virtualenv-based automation of test activities")
7703 (description "Tox is a generic virtualenv management and test command line
7704 tool. It can be used to check that a package installs correctly with
7705 different Python versions and interpreters, or run tests in each type of
7706 supported environment, or act as a frontend to continuous integration
7708 (license license:expat)))
7710 (define-public python2-tox
7711 (package-with-python2 python-tox))
7713 (define-public python-jmespath
7715 (name "python-jmespath")
7720 (uri (pypi-uri "jmespath" version))
7723 "0r7wc7fsxmlwzxx9j1j7rms06c6xs6d4sysirdhz1jk2mb4x90ba"))))
7724 (build-system python-build-system)
7726 `(("python-nose" ,python-nose)))
7727 (synopsis "JSON Matching Expressions")
7728 (description "JMESPath (pronounced “james path”) is a Python library that
7729 allows one to declaratively specify how to extract elements from a JSON
7731 (home-page "https://github.com/jmespath/jmespath.py")
7732 (license license:expat)))
7734 (define-public python2-jmespath
7735 (package-with-python2 python-jmespath))
7737 (define-public python-botocore
7739 (name "python-botocore")
7744 (uri (pypi-uri "botocore" version))
7747 "12cqpbnz3vfv41mp9admvciw7bc7hz57sjpqs2bxaw9wnfmbw5lg"))))
7748 (build-system python-build-system)
7750 ;; FIXME: Many tests are failing.
7753 `(("python-dateutil" ,python-dateutil)
7754 ("python-docutils" ,python-docutils)
7755 ("python-jmespath" ,python-jmespath)))
7757 `(("python-mock" ,python-mock)
7758 ("python-nose" ,python-nose)
7760 ("python-tox" ,python-tox)
7761 ("python-wheel" ,python-wheel)))
7762 (home-page "https://github.com/boto/botocore")
7763 (synopsis "Low-level interface to AWS")
7764 (description "Botocore is a Python library that provides a low-level
7765 interface to the Amazon Web Services (AWS) API.")
7766 (license license:asl2.0)))
7768 (define-public python2-botocore
7769 (package-with-python2 python-botocore))
7771 (define-public python-xdo
7778 "http://http.debian.net/debian/pool/main/p/python-xdo/"
7779 "python-xdo_" version ".orig.tar.gz"))
7782 "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
7783 (build-system python-build-system)
7786 (modify-phases %standard-phases
7787 (add-before 'install 'patch-libxdo-path
7788 ;; Hardcode the path of dynamically loaded libxdo library.
7789 (lambda* (#:key inputs #:allow-other-keys)
7790 (let ((libxdo (string-append
7791 (assoc-ref inputs "xdotool")
7793 (substitute* "xdo/_xdo.py"
7794 (("find_library\\(\"xdo\"\\)")
7795 (simple-format #f "\"~a\"" libxdo)))
7797 #:tests? #f)) ; no tests provided
7799 `(("python-six" ,python-six)))
7801 `(("xdotool" ,xdotool)
7802 ("libX11" ,libx11)))
7803 (home-page "https://tracker.debian.org/pkg/python-xdo")
7804 (synopsis "Python library for simulating X11 keyboard/mouse input")
7805 (description "Provides bindings to libxdo for manipulating X11 via simulated
7806 input. (Note that this is mostly a legacy library; you may wish to look at
7807 python-xdo for newer bindings.)")
7808 (license license:bsd-3)))
7810 (define-public python2-xdo
7811 (package-with-python2 python-xdo))
7813 (define-public python-mako
7815 (name "python-mako")
7820 (uri (pypi-uri "Mako" version))
7823 "1bi5gnr8r8dva06qpyx4kgjc6spm2k1y908183nbbaylggjzs0jf"))))
7824 (build-system python-build-system)
7826 `(("python-markupsafe" ,python-markupsafe)))
7828 `(("python-mock" ,python-mock)
7829 ("python-nose" ,python-nose)
7830 ("python-pytest" ,python-pytest)))
7831 (home-page "http://www.makotemplates.org/")
7832 (synopsis "Templating language for Python")
7833 (description "Mako is a templating language for Python that compiles
7834 templates into Python modules.")
7835 (license license:expat)))
7837 (define-public python2-mako
7838 (package-with-python2 python-mako))
7840 (define-public python-waitress
7842 (name "python-waitress")
7847 (uri (pypi-uri "waitress" version))
7848 (patches (search-patches "python-waitress-fix-tests.patch"))
7851 "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
7852 (build-system python-build-system)
7853 (home-page "https://github.com/Pylons/waitress")
7854 (synopsis "Waitress WSGI server")
7855 (description "Waitress is meant to be a production-quality pure-Python WSGI
7856 server with very acceptable performance.")
7857 (license license:zpl2.1)))
7859 (define-public python2-waitress
7860 (package-with-python2 python-waitress))
7862 (define-public python-pyquery
7864 (name "python-pyquery")
7869 (uri (pypi-uri "pyquery" version))
7872 "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
7873 (build-system python-build-system)
7875 `(("python-webob" ,python-webob)
7876 ("python-webtest" ,python-webtest)))
7878 `(("python-lxml" ,python-lxml)
7879 ("python-cssselect" ,python-cssselect)))
7880 (home-page "https://github.com/gawel/pyquery")
7881 (synopsis "Make jQuery-like queries on xml documents")
7882 (description "pyquery allows you to make jQuery queries on xml documents.
7883 The API is as much as possible the similar to jQuery. pyquery uses lxml for
7884 fast xml and html manipulation.")
7885 (license license:bsd-3)))
7887 (define-public python2-pyquery
7888 (package-with-python2 python-pyquery))
7890 (define-public python-anyjson
7892 (name "python-anyjson")
7897 (uri (pypi-uri "anyjson" version))
7900 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
7901 (build-system python-build-system)
7903 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
7904 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
7905 ;; whatever) so this transformation needs to be done before the tests
7906 ;; can be run. Maybe we could add a build step to transform beforehand
7907 ;; but it could be annoying/difficult.
7908 ;; We can enable tests for the Python 2 version, though, and do below.
7910 (home-page "https://bitbucket.org/runeh/anyjson/")
7912 "Wraps best available JSON implementation in a common interface")
7914 "Anyjson loads whichever is the fastest JSON module installed
7915 and provides a uniform API regardless of which JSON implementation is used.")
7916 (license license:bsd-3)
7917 (properties `((python2-variant . ,(delay python2-anyjson))))))
7919 (define-public python2-anyjson
7920 (let ((anyjson (package-with-python2
7921 (strip-python2-variant python-anyjson))))
7924 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
7926 ,@(package-arguments anyjson)))
7927 (native-inputs `(("python2-nose" ,python2-nose))))))
7929 (define-public python-amqp
7931 (name "python-amqp")
7936 (uri (pypi-uri "amqp" version))
7939 "06n6q0kxhjnbfz3vn8x9yz09lwmn1xi9d6wxp31h5jbks0b4vsid"))))
7940 (build-system python-build-system)
7942 `(("python-nose" ,python-nose)
7943 ("python-mock" ,python-mock)))
7944 (home-page "https://github.com/celery/py-amqp")
7946 "Low-level AMQP client for Python (fork of amqplib)")
7948 "This is a fork of amqplib which was originally written by Barry Pederson.
7949 It is maintained by the Celery project, and used by kombu as a pure python
7950 alternative when librabbitmq is not available.")
7951 (license license:lgpl2.1+)
7952 (properties `((python2-variant . ,(delay python2-amqp))))))
7954 (define-public python2-amqp
7955 (let ((amqp (package-with-python2
7956 (strip-python2-variant python-amqp))))
7959 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
7960 ;; unmaintained. Weirdly, does not do this on the python 3
7963 ,@(package-arguments amqp))))))
7965 (define-public python-txamqp
7967 (name "python-txamqp")
7972 (uri (pypi-uri "txAMQP" version))
7975 "1r43a66dd547mz40ikymm8y3d480cidy560fj81qc0jk4lncgmmr"))))
7976 (build-system python-build-system)
7978 `(("python-six" ,python-six)
7979 ("python-twisted" ,python-twisted)))
7980 (home-page "https://github.com/txamqp/txamqp")
7981 (synopsis "Communicate with AMQP peers and brokers using Twisted")
7983 "This package provides a Python library for communicating with AMQP peers
7984 and brokers using the asynchronous networking framework Twisted. It contains
7985 all the necessary code to connect, send and receive messages to/from an
7986 AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
7987 also includes support for using Thrift RPC over AMQP in Twisted
7989 (license license:asl2.0)))
7991 (define-public python2-txamqp
7992 (package-with-python2 python-txamqp))
7994 (define-public python-kombu
7996 (name "python-kombu")
8001 (uri (pypi-uri "kombu" version))
8004 "0l16chb314gpq2v7fh94a22c30lcv6w3ylmhsa60bldlcq6a0r70"))))
8005 (build-system python-build-system)
8007 `(("python-mock" ,python-mock)
8008 ("python-nose" ,python-nose)))
8010 `(("python-anyjson" ,python-anyjson)
8011 ("python-amqp" ,python-amqp)
8012 ("python-redis" ,python-redis)))
8013 (home-page "http://kombu.readthedocs.org")
8014 (synopsis "Message passing library for Python")
8015 (description "The aim of Kombu is to make messaging in Python as easy as
8016 possible by providing an idiomatic high-level interface for the AMQ protocol,
8017 and also provide proven and tested solutions to common messaging problems.
8018 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
8019 message orientation, queuing, routing, reliability and security, for which the
8020 RabbitMQ messaging server is the most popular implementation.")
8021 (license license:bsd-3)
8022 (properties `((python2-variant . ,(delay python2-kombu))))))
8024 (define-public python2-kombu
8025 (let ((kombu (package-with-python2
8026 (strip-python2-variant python-kombu))))
8029 (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2.
8030 ;; It works fine on the python3 variant.
8032 ,@(package-arguments kombu)))
8033 (native-inputs `(("python2-unittest2" ,python2-unittest2)
8034 ,@(package-native-inputs kombu))))))
8036 (define-public python-billiard
8038 (name "python-billiard")
8039 (version "3.3.0.23")
8043 (uri (pypi-uri "billiard" version))
8046 "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9"))))
8047 (build-system python-build-system)
8049 `(("python-nose" ,python-nose)))
8050 (home-page "https://github.com/celery/billiard")
8052 "Python multiprocessing fork with improvements and bugfixes")
8054 "Billiard is a fork of the Python 2.7 multiprocessing package. The
8055 multiprocessing package itself is a renamed and updated version of R Oudkerk's
8056 pyprocessing package. This standalone variant is intended to be compatible with
8057 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
8058 (license license:bsd-3)
8059 (properties `((python2-variant . ,(delay python2-billiard))))))
8061 (define-public python2-billiard
8062 (let ((billiard (package-with-python2
8063 (strip-python2-variant python-billiard))))
8066 (native-inputs `(("python2-unittest2" ,python2-unittest2)
8067 ("python2-mock" ,python2-mock)
8068 ,@(package-native-inputs billiard))))))
8070 (define-public python-celery
8072 (name "python-celery")
8077 (uri (pypi-uri "celery" version))
8080 "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r"))))
8081 (build-system python-build-system)
8084 (modify-phases %standard-phases
8085 ;; These tests break with Python 3.5:
8086 ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295
8090 (system* "nosetests" "--exclude=^test_safe_to_remove.*")))))))
8092 `(("python-nose" ,python-nose)))
8094 `(("python-pytz" ,python-pytz)
8095 ("python-billiard" ,python-billiard)
8096 ("python-kombu" ,python-kombu)))
8097 (home-page "http://celeryproject.org")
8098 (synopsis "Distributed Task Queue")
8099 (description "Celery is an asynchronous task queue/job queue based on
8100 distributed message passing. It is focused on real-time operation, but
8101 supports scheduling as well. The execution units, called tasks, are executed
8102 concurrently on a single or more worker servers using multiprocessing,
8103 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
8104 synchronously (wait until ready).")
8105 (license license:bsd-3)
8106 (properties `((python2-variant . ,(delay python2-celery))))))
8108 (define-public python2-celery
8109 (let ((celery (package-with-python2
8110 (strip-python2-variant python-celery))))
8113 (native-inputs `(("python2-unittest2" ,python2-unittest2)
8114 ("python2-mock" ,python2-mock)
8115 ,@(package-native-inputs celery))))))
8117 (define-public python-translitcodec
8119 (name "python-translitcodec")
8124 (uri (pypi-uri "translitcodec" version))
8127 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
8128 (build-system python-build-system)
8130 `(#:tests? #f)) ; no tests provided
8132 "https://github.com/claudep/translitcodec")
8134 "Unicode to 8-bit charset transliteration codec")
8136 "This package contains codecs for transliterating ISO 10646 texts into
8137 best-effort representations using smaller coded character sets (ASCII,
8139 (license license:expat)))
8141 (define-public python2-translitcodec
8142 (package-with-python2 python-translitcodec))
8144 (define-public python-editor
8146 (name "python-editor")
8151 (uri (pypi-uri "python-editor" version))
8154 "1ypnpgvzpkbwsg4rdvy4sy51j28b5xq9v8pnkwxncn07vqz06p7n"))))
8155 (build-system python-build-system)
8157 "https://github.com/fmoo/python-editor")
8159 "Programmatically open an editor, capture the result")
8161 "python-editor is a library that provides the editor module for
8162 programmatically interfacing with your system's $EDITOR.")
8163 (license license:asl2.0)))
8165 (define-public python2-editor
8166 (package-with-python2 python-editor))
8168 (define-public python-sphinxcontrib-programoutput
8170 (name "python-sphinxcontrib-programoutput")
8174 (uri (pypi-uri "sphinxcontrib-programoutput" version))
8177 "153hhnlbx4688zj9wd64819ps5znc2jlyp5crkgzvn5hxgy99vpx"))))
8178 (build-system python-build-system)
8180 ;; FIXME: Many tests are failing and the upstream is gone.
8183 `(("python-sphinx" ,python-sphinx)))
8184 (synopsis "Sphinx extension to include program output")
8185 (description "A Sphinx extension to literally insert the output of arbitrary
8186 commands into documents, helping you to keep your command examples up to date.")
8187 (home-page "https://github.com/lunaryorn/sphinxcontrib-programoutput")
8188 (license license:bsd-2)))
8190 (define-public python2-sphinxcontrib-programoutput
8191 (package-with-python2 python-sphinxcontrib-programoutput))
8193 (define-public python-sphinx-repoze-autointerface
8195 (name "python-sphinx-repoze-autointerface")
8199 (uri (pypi-uri "repoze.sphinx.autointerface" version))
8202 "08ycivzf7bh4a1zcyp31hbyqs1b2c9r26raa3vxjwwmbfqr3iw4f"))))
8203 (build-system python-build-system)
8204 (arguments '(#:tests? #f)) ; No tests.
8206 `(("python-sphinx" ,python-sphinx)
8207 ("python-zope-interface" ,python-zope-interface)))
8208 (synopsis "Auto-generate Sphinx API docs from Zope interfaces")
8209 (description "This package defines an extension for the Sphinx documentation
8210 system. The extension allows generation of API documentation by
8211 introspection of @code{zope.interface} instances in code.")
8212 (home-page "https://github.com/repoze/repoze.sphinx.autointerface")
8213 (license license:repoze)))
8215 (define-public python2-sphinx-repoze-autointerface
8216 (package-with-python2 python-sphinx-repoze-autointerface))
8218 (define-public python-vobject
8220 (name "python-vobject")
8224 (uri (pypi-uri "vobject" version))
8227 "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg"))))
8228 (build-system python-build-system)
8230 '(;; The test suite relies on some non-portable Windows interfaces.
8233 `(("python-dateutil" ,python-dateutil)
8234 ("python-pyicu" ,python-pyicu)))
8235 (synopsis "Parse and generate vCard and vCalendar files")
8236 (description "Vobject is intended to be a full featured Python package for
8237 parsing and generating vCard and vCalendar files. Currently, iCalendar files
8238 are supported and well tested. vCard 3.0 files are supported, and all data
8239 should be imported, but only a few components are understood in a sophisticated
8241 (home-page "http://eventable.github.io/vobject/")
8242 (license license:asl2.0)))
8244 (define-public python2-vobject
8245 (package-with-python2 python-vobject))
8247 (define-public python-munkres
8249 (name "python-munkres")
8253 (uri (pypi-uri "munkres" version))
8256 "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq"))))
8257 (build-system python-build-system)
8259 '(#:tests? #f)) ; no test suite
8260 (home-page "http://software.clapper.org/munkres/")
8261 (synopsis "Implementation of the Munkres algorithm")
8262 (description "The Munkres module provides an implementation of the Munkres
8263 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
8264 useful for solving the Assignment Problem.")
8265 (license license:bsd-3)))
8267 (define-public python2-munkres
8268 (package-with-python2 python-munkres))
8270 (define-public python-whoosh
8272 (name "python-whoosh")
8277 (uri (pypi-uri "Whoosh" version))
8280 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
8281 (build-system python-build-system)
8283 `(("python-pytest" ,python-pytest)))
8284 (home-page "https://bitbucket.org/mchaput/whoosh")
8285 (synopsis "Full text indexing, search, and spell checking library")
8287 "Whoosh is a fast, pure-Python full text indexing, search, and spell
8289 (license license:bsd-2)))
8291 (define-public python2-whoosh
8292 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
8293 (package (inherit whoosh)
8295 `(("python2-backport-ssl-match-hostname"
8296 ,python2-backport-ssl-match-hostname)
8297 ,@(package-propagated-inputs whoosh))))))
8299 (define-public python-pathlib
8301 (name "python-pathlib")
8305 (uri (pypi-uri "pathlib" version))
8308 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
8309 (build-system python-build-system)
8310 ;; The tests depend on the internal "test" module, which does not provide
8311 ;; a stable interface.
8312 (arguments `(#:tests? #f))
8313 (home-page "https://pathlib.readthedocs.org/")
8314 (synopsis "Object-oriented file system paths")
8315 (description "Pathlib offers a set of classes to handle file system paths.
8316 It offers the following advantages over using string objects:
8319 @item No more cumbersome use of os and os.path functions. Everything can
8320 be done easily through operators, attribute accesses, and method calls.
8321 @item Embodies the semantics of different path types. For example,
8322 comparing Windows paths ignores casing.
8323 @item Well-defined semantics, eliminating any inconsistencies or
8324 ambiguities (forward vs. backward slashes, etc.).
8327 Note: In Python 3.4, pathlib is now part of the standard library. For other
8328 Python versions please consider python-pathlib2 instead, which tracks the
8329 standard library module. This module (python-pathlib) isn't maintained
8331 (license license:expat)))
8333 (define-public python2-pathlib
8334 (package-with-python2 python-pathlib))
8336 (define-public python2-pathlib2
8338 (name "python2-pathlib2")
8342 (uri (pypi-uri "pathlib2" version))
8345 "10yb0iv5x2hs631rcppkhbddx799d3h8pcwmkbh2a66ns3w71ccf"))))
8346 (build-system python-build-system)
8347 ;; We only need the the Python 2 variant, since for Python 3 our minimum
8348 ;; version is 3.4 which already includes this package as part of the
8349 ;; standard library.
8351 `(#:python ,python-2))
8353 `(("python2-scandir" ,python2-scandir)
8354 ("python2-six" ,python2-six)))
8355 (home-page "https://pypi.python.org/pypi/pathlib2/")
8356 (synopsis "Object-oriented file system paths - backport of standard
8358 (description "The goal of pathlib2 is to provide a backport of standard
8359 pathlib module which tracks the standard library module, so all the newest
8360 features of the standard pathlib can be used also on older Python versions.
8362 Pathlib offers a set of classes to handle file system paths. It offers the
8363 following advantages over using string objects:
8366 @item No more cumbersome use of os and os.path functions. Everything can
8367 be done easily through operators, attribute accesses, and method calls.
8368 @item Embodies the semantics of different path types. For example,
8369 comparing Windows paths ignores casing.
8370 @item Well-defined semantics, eliminating any inconsistencies or
8371 ambiguities (forward vs. backward slashes, etc.).
8373 (license license:expat)))
8375 (define-public python-jellyfish
8377 (name "python-jellyfish")
8381 (uri (pypi-uri "jellyfish" version))
8384 "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8"))))
8385 (build-system python-build-system)
8387 `(("python-pytest" ,python-pytest)))
8388 (home-page "https://github.com/jamesturk/jellyfish")
8389 (synopsis "Approximate and phonetic matching of strings")
8390 (description "Jellyfish uses a variety of string comparison and phonetic
8391 encoding algorithms to do fuzzy string matching.")
8392 (license license:bsd-2)
8393 (properties `((python2-variant . ,(delay python2-jellyfish))))))
8395 (define-public python2-jellyfish
8396 (let ((jellyfish (package-with-python2
8397 (strip-python2-variant python-jellyfish))))
8398 (package (inherit jellyfish)
8399 (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv)
8400 ,@(package-native-inputs jellyfish))))))
8402 (define-public python2-unicodecsv
8404 (name "python2-unicodecsv")
8408 ;; The test suite is not included in the PyPi release.
8409 ;; https://github.com/jdunck/python-unicodecsv/issues/19
8410 (uri (string-append "https://github.com/jdunck/python-unicodecsv/"
8411 "archive/" version ".tar.gz"))
8412 (file-name (string-append name "-" version ".tar.gz"))
8415 "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"))))
8416 (build-system python-build-system)
8418 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
8419 #:python ,python-2))
8421 `(("python2-unittest2" ,python2-unittest2)))
8422 (home-page "https://github.com/jdunck/python-unicodecsv")
8423 (synopsis "Unicode CSV module for Python 2")
8424 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
8425 module, adding support for Unicode strings.")
8426 (license license:bsd-2)))
8428 (define-public python-rarfile
8430 (name "python-rarfile")
8434 (uri (pypi-uri "rarfile" version))
8437 "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra"))))
8438 (build-system python-build-system)
8441 (modify-phases %standard-phases
8443 ;; Many tests fail, but the installation proceeds.
8444 (lambda _ (zero? (system* "make" "-C" "test" "test")))))))
8446 `(("which" ,which))) ; required for tests
8448 `(("libarchive" ,libarchive)))
8449 (home-page "https://github.com/markokr/rarfile")
8450 (synopsis "RAR archive reader for Python")
8451 (description "This is Python module for RAR archive reading. The interface
8452 is made as zipfile like as possible.")
8453 (license license:isc)))
8455 (define-public python2-rarfile
8456 (package-with-python2 python-rarfile))
8458 (define-public python-magic
8460 (name "python-magic")
8465 (uri (pypi-uri "python-magic" version))
8468 "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
8469 (file-name (string-append name "-" version "-checkout"))))
8470 (build-system python-build-system)
8472 ;; The tests are unreliable, so don't run them. The tests fail
8473 ;; under Python3 because they were written for Python2 and
8474 ;; contain import statements that do not work in Python3. One of
8475 ;; the tests fails under Python2 because its assertions are
8476 ;; overly stringent; it relies on comparing output strings which
8477 ;; are brittle and can change depending on the version of
8478 ;; libmagic being used and the system on which the test is
8479 ;; running. In my case, under GuixSD 0.10.0, only one test
8480 ;; failed, and it seems to have failed only because the version
8481 ;; of libmagic that is packaged in Guix outputs a slightly
8482 ;; different (but not wrong) string than the one that the test
8485 #:phases (modify-phases %standard-phases
8486 ;; Replace a specific method call with a hard-coded
8487 ;; path to the necessary libmagic.so file in the
8488 ;; store. If we don't do this, then the method call
8489 ;; will fail to find the libmagic.so file, which in
8490 ;; turn will cause any application using
8491 ;; python-magic to fail.
8492 (add-before 'build 'hard-code-path-to-libmagic
8493 (lambda* (#:key inputs #:allow-other-keys)
8494 (let ((file (assoc-ref inputs "file")))
8495 (substitute* "magic.py"
8496 (("ctypes.util.find_library\\('magic'\\)")
8497 (string-append "'" file "/lib/libmagic.so'")))
8499 (add-before 'install 'disable-egg-compression
8501 (let ((port (open-file "setup.cfg" "a")))
8502 (display "\n[easy_install]\nzip_ok = 0\n"
8507 ;; python-magic needs to be able to find libmagic.so.
8510 "https://github.com/ahupp/python-magic")
8512 "File type identification using libmagic")
8514 "This module uses ctypes to access the libmagic file type
8515 identification library. It makes use of the local magic database and
8516 supports both textual and MIME-type output. Note that this module and
8517 the python-file module both provide a \"magic.py\" file; these two
8518 modules, which are different and were developed separately, both serve
8519 the same purpose: to provide Python bindings for libmagic.")
8520 (license license:expat)))
8522 (define-public python2-magic
8523 (package-with-python2 python-magic))
8525 (define-public python2-s3cmd
8527 (name "python2-s3cmd")
8532 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
8533 "s3cmd-" version ".tar.gz"))
8536 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
8537 (build-system python-build-system)
8539 ;; s3cmd is written for python2 only and contains no tests.
8540 `(#:python ,python-2
8543 `(("python2-dateutil" ,python2-dateutil)
8544 ;; The python-file package also provides a magic.py module.
8545 ;; This is an unfortunate state of affairs; however, s3cmd
8546 ;; fails to install if it cannot find specifically the
8547 ;; python-magic package. Thus we include it, instead of using
8548 ;; python-file. Ironically, s3cmd sometimes works better
8549 ;; without libmagic bindings at all:
8550 ;; https://github.com/s3tools/s3cmd/issues/198
8551 ("python2-magic" ,python2-magic)))
8552 (home-page "http://s3tools.org/s3cmd")
8553 (synopsis "Command line tool for S3-compatible storage services")
8555 "S3cmd is a command line tool for uploading, retrieving and managing data
8556 in storage services that are compatible with the Amazon Simple Storage
8557 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
8558 GnuPG encryption, and more. It also supports management of Amazon's
8559 CloudFront content delivery network.")
8560 (license license:gpl2+)))
8562 (define-public python-pkgconfig
8564 (name "python-pkgconfig")
8569 (uri (pypi-uri "pkgconfig" version))
8572 "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh"))))
8573 (build-system python-build-system)
8575 `(("python-nose" ,python-nose)))
8577 `(("pkg-config" ,pkg-config)))
8579 `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
8580 ;; and on Python 2 they need the dl module deprecated since Python 2.6.
8582 ;; Hard-code the path to pkg-config.
8584 (modify-phases %standard-phases
8588 (substitute* "pkgconfig/pkgconfig.py"
8589 (("cmd = 'pkg-config")
8590 (string-append "cmd = '" (which "pkg-config"))))
8592 (home-page "https://github.com/matze/pkgconfig")
8593 (synopsis "Python interface for pkg-config")
8594 (description "This module provides a Python interface to pkg-config. It
8595 can be used to find all pkg-config packages, check if a package exists,
8596 check if a package meets certain version requirements, query CFLAGS and
8597 LDFLAGS and parse the output to build extensions with setup.py.")
8598 (license license:expat)))
8600 (define-public python2-pkgconfig
8601 (package-with-python2 python-pkgconfig))
8603 (define-public python-bz2file
8605 (name "python-bz2file")
8610 (uri (pypi-uri "bz2file" version))
8613 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
8614 (build-system python-build-system)
8616 `(#:tests? #f)) ; Tests use deprecated python modules.
8617 (home-page "https://github.com/nvawda/bz2file")
8618 (synopsis "Read and write bzip2-compressed files")
8620 "Bz2file is a Python library for reading and writing bzip2-compressed
8621 files. It contains a drop-in replacement for the I/O interface in the
8622 standard library's @code{bz2} module, including features from the latest
8623 development version of CPython that are not available in older releases.")
8624 (license license:asl2.0)
8625 (properties `((python2-variant . ,(delay python2-bz2file))))))
8627 (define-public python2-bz2file
8628 (let ((base (package-with-python2
8629 (strip-python2-variant python-bz2file))))
8633 `(#:python ,python-2
8635 (modify-phases %standard-phases
8636 ;; 'python setup.py test' does not work as of 0.98.
8637 ;; There is only the one test file, so we run it directly.
8639 (lambda _ (zero? (system* "python"
8640 "test_bz2file.py"))))))))))
8642 (define-public python-future
8644 (name "python-future")
8649 (uri (pypi-uri "future" version))
8652 "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773"))))
8653 (build-system python-build-system)
8654 ;; Many tests connect to the network or are otherwise flawed.
8655 ;; https://github.com/PythonCharmers/python-future/issues/210
8658 (home-page "http://python-future.org")
8659 (synopsis "Single-source support for Python 3 and 2")
8661 "@code{python-future} is the missing compatibility layer between Python 2 and
8662 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
8663 to support both Python 2 and Python 3 with minimal overhead.")
8664 (license license:expat)))
8666 (define-public python2-future
8667 (package-with-python2 python-future))
8669 (define-public python-cysignals
8671 (name "python-cysignals")
8676 (uri (pypi-uri "cysignals" version ".tar.bz2"))
8679 "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6"))))
8680 (build-system python-build-system)
8682 `(("python-cython" ,python-cython)
8683 ("python-sphinx" ,python-sphinx)))
8685 `(("pari-gp" ,pari-gp)))
8687 `(#:modules ((guix build python-build-system)
8688 ((guix build gnu-build-system) #:prefix gnu:)
8690 ;; FIXME: Tests are executed after installation and currently fail
8691 ;; when not installing into standard locations; the author is working
8695 (modify-phases %standard-phases
8698 (assoc-ref gnu:%standard-phases 'configure)))))
8700 "https://github.com/sagemath/cysignals")
8702 "Handling of interrupts and signals for Cython")
8704 "The cysignals package provides mechanisms to handle interrupts (and
8705 other signals and errors) in Cython code, using two related approaches,
8706 for mixed Cython/Python code or external C libraries and pure Cython code,
8708 (license license:lgpl3+)))
8710 (define-public python2-cysignals
8711 (package-with-python2 python-cysignals))
8713 (define-public python2-shedskin
8715 (name "python2-shedskin")
8720 (uri (string-append "https://github.com/shedskin/shedskin/"
8721 "releases/download/v" version
8722 "/shedskin-" version ".tgz"))
8725 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
8726 (build-system python-build-system)
8728 `(#:python ,python-2
8729 #:phases (modify-phases %standard-phases
8730 (add-after 'unpack 'fix-resulting-include-libs
8731 (lambda* (#:key inputs #:allow-other-keys)
8732 (let ((libgc (assoc-ref inputs "libgc"))
8733 (pcre (assoc-ref inputs "pcre")))
8734 (substitute* "shedskin/makefile.py"
8735 (("variable == 'CCFLAGS':[ ]*")
8736 (string-append "variable == 'CCFLAGS':\n"
8737 " line += ' -I " pcre "/include"
8738 " -I " libgc "/include'"))
8739 (("variable == 'LFLAGS':[ ]*")
8740 (string-append "variable == 'LFLAGS':\n"
8741 " line += ' -L" pcre "/lib"
8742 " -L " libgc "/lib'")))
8744 (inputs `(("pcre" ,pcre)
8746 (home-page "https://shedskin.github.io/")
8747 (synopsis "Experimental Python-2 to C++ Compiler")
8748 (description (string-append "This is an experimental compiler for a subset of
8749 Python. It generates C++ code and a Makefile."))
8750 (license (list license:gpl3 license:bsd-3 license:expat))))
8752 (define-public python2-rope
8754 (name "python2-rope")
8759 (uri (pypi-uri "rope" version))
8762 "18k5znhpwvrfck3yp0jmhd5j8r0f0s8bk1zh5yhs2cfgmfhbwigb"))))
8764 ;; Rope is currently python-2 only.
8765 ;; https://github.com/python-rope/rope/issues/57
8766 `(#:python ,python-2))
8767 (build-system python-build-system)
8769 `(("python2-unittest2" ,python2-unittest2)))
8770 (home-page "https://github.com/python-rope/rope")
8771 (synopsis "Refactoring library for Python")
8772 (description "Rope is a refactoring library for Python. It facilitates
8773 the renaming, moving and extracting of attributes, functions, modules, fields
8774 and parameters in Python 2 source code. These refactorings can also be applied
8775 to occurrences in strings and comments.")
8776 (license license:gpl2)))
8778 (define-public python-py3status
8780 (name "python-py3status")
8785 (uri (pypi-uri "py3status" version))
8788 "0shxcfz4wcczj0mhwp4w0dvwd2fdd9bgprq8slim1519iiqzgwhq"))))
8789 (build-system python-build-system)
8794 (modify-phases %standard-phases
8795 ;; 'file' is used for detection of configuration file encoding
8796 ;; let's make link the dependency to particular input
8797 (add-before 'build 'patch-file-path
8798 (lambda* (#:key inputs #:allow-other-keys)
8799 (let ((file-path (assoc-ref inputs "file")))
8800 (substitute* "py3status/parse_config.py"
8801 (("\\['file', '-b'")
8802 (string-append "['" file-path "/bin/file', '-b'")))
8804 #:tests? #f)) ; TODO: Requires many libraries not in Guix.
8805 (home-page "https://github.com/ultrabug/py3status")
8806 (synopsis "Extensible i3status wrapper written in Python")
8807 (description "py3status is an i3status wrapper which extends i3status
8808 functionality in a modular way, allowing you to extend your panel with your
8809 own code, responding to click events and updating clock every second.")
8810 (license license:bsd-3)))
8812 (define-public python-tblib
8814 (name "python-tblib")
8818 (uri (pypi-uri "tblib" version))
8820 "1rsg8h069kqgncyv8fgzyj6qflk6j10cb78pa5jk34ixwq044vj3"))))
8821 (build-system python-build-system)
8824 (modify-phases %standard-phases
8827 ;; Upstream runs tests after installation and the package itself
8828 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
8830 (setenv "PYTHONPATH"
8831 (string-append (getcwd) "/build/lib:"
8832 (getenv "PYTHONPATH")))
8833 (zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
8835 `(("python-pytest" ,python-pytest)
8836 ("python-six" ,python-six)))
8837 (home-page "https://github.com/ionelmc/python-tblib")
8838 (synopsis "Traceback serialization library")
8840 "Traceback serialization allows you to:
8843 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
8844 different processes. This allows better error handling when running code over
8845 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
8847 @item Parse traceback strings and raise with the parsed tracebacks.
8849 (license license:bsd-3)))
8851 (define-public python2-tblib
8852 (package-with-python2 python-tblib))
8854 (define-public python-greenlet
8856 (name "python-greenlet")
8860 (uri (pypi-uri "greenlet" version))
8863 "1xhik26j4f3kc4qw9xmj0c567rb5h1zryb4ijwqnqwwjvfhbv59h"))))
8864 (build-system python-build-system)
8865 (home-page "https://greenlet.readthedocs.io/")
8866 (synopsis "Lightweight in-process concurrent programming")
8868 "Greenlet package is a spin-off of Stackless, a version of CPython
8869 that supports micro-threads called \"tasklets\". Tasklets run
8870 pseudo-concurrently (typically in a single or a few OS-level threads) and
8871 are synchronized with data exchanges on \"channels\".")
8872 (license (list license:psfl license:expat))))
8874 (define-public python2-greenlet
8875 (package-with-python2 python-greenlet))
8877 (define-public python-gevent
8879 (name "python-gevent")
8883 (uri (pypi-uri "gevent" version))
8886 "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7"))
8887 (modules '((guix build utils)))
8890 ;; unbunding libev and c-ares
8891 (delete-file-recursively "deps")
8893 (build-system python-build-system)
8895 `(#:modules ((ice-9 ftw)
8898 (guix build python-build-system))
8899 #:phases (modify-phases %standard-phases
8900 (add-after 'unpack 'unpack-libev
8901 (lambda* (#:key inputs #:allow-other-keys)
8902 (mkdir-p "deps/libev")
8903 ;; FIXME: gevent requires building libev, even though
8904 ;; it only links against the proper one.
8905 (invoke "tar" "-xf" (assoc-ref inputs "libev-source")
8906 "--strip-components=1" "-C" "deps/libev")))
8907 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
8909 (substitute* "src/gevent/subprocess.py"
8910 (("/bin/sh") (which "sh")))
8911 (for-each (lambda (file)
8913 (("/bin/sh") (which "sh"))
8914 (("/bin/true") (which "true"))))
8915 (find-files "src/greentest" "\\.py$"))
8917 (add-before 'build 'do-not-use-bundled-sources
8919 (setenv "CONFIG_SHELL" (which "bash"))
8920 (setenv "LIBEV_EMBED" "false")
8921 (setenv "CARES_EMBED" "false")
8922 (setenv "EMBED" "false")
8926 ;; Make sure the build directory is on PYTHONPATH.
8927 (setenv "PYTHONPATH"
8929 (getenv "PYTHONPATH") ":"
8931 (car (scandir "build" (cut string-prefix? "lib." <>)))))
8932 (with-directory-excursion "src/greentest"
8933 ;; XXX: Many tests require network access. Instead we only
8934 ;; run known-good tests. Unfortunately we cannot use
8935 ;; recursion here since this directory also contains
8936 ;; Python-version-specific subfolders.
8937 (apply invoke "python" "testrunner.py" "--config"
8939 (scandir "." (cut regexp-exec
8940 (make-regexp "test_+(subprocess|core)")
8943 `(("python-greenlet" ,python-greenlet)))
8945 `(("libev-source" ,(package-source libev))
8946 ("python-six" ,python-six)))
8948 `(("c-ares" ,c-ares)
8950 (home-page "http://www.gevent.org/")
8951 (synopsis "Coroutine-based network library")
8953 "gevent is a coroutine-based Python networking library that uses greenlet
8954 to provide a high-level synchronous API on top of the libev event loop.")
8955 (license license:expat)))
8957 (define-public python2-gevent
8958 (package-with-python2 python-gevent))
8960 (define-public python-fastimport
8962 (name "python-fastimport")
8967 (uri (pypi-uri "fastimport" version))
8969 (base32 "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43"))))
8970 (build-system python-build-system)
8971 (home-page "https://github.com/jelmer/python-fastimport")
8972 (synopsis "VCS fastimport parser and generator in Python")
8973 (description "This package provides a parser for and generator of the Git
8974 @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
8976 (license license:gpl2+)))
8978 (define-public python2-fastimport
8979 (package-with-python2 python-fastimport))
8981 (define-public python-twisted
8983 (name "python-twisted")
8987 (uri (pypi-uri "Twisted" version ".tar.bz2"))
8990 "1p245mg15hkxp7hy5cyq2fgvlgjkb4cg0gwkwd148nzy1bbi3wnv"))))
8991 (build-system python-build-system)
8993 '(#:tests? #f)) ; FIXME: Some tests are failing.
8995 ;; (modify-phases %standard-phases
8998 ;; (zero? (system* "./bin/trial" "twisted")))))
9000 `(("python-zope-interface" ,python-zope-interface)
9001 ("python-incremental" ,python-incremental)
9002 ("python-constantly" ,python-constantly)
9003 ("python-automat" ,python-automat)))
9004 (home-page "https://twistedmatrix.com/")
9005 (synopsis "Asynchronous networking framework written in Python")
9007 "Twisted is an extensible framework for Python programming, with special
9008 focus on event-based network programming and multiprotocol integration.")
9009 (license license:expat)))
9011 (define-public python2-twisted
9012 (package-with-python2 python-twisted))
9014 (define-public python-pika
9016 (name "python-pika")
9021 (uri (pypi-uri "pika" version))
9024 "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj"))))
9025 (build-system python-build-system)
9027 `(("python-pyev" ,python-pyev)
9028 ("python-tornado" ,python-tornado)
9029 ("python-twisted" ,python-twisted)))
9030 (home-page "https://pika.readthedocs.org")
9031 (synopsis "Pure Python AMQP Client Library")
9033 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
9034 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
9035 network support library.")
9036 (license license:bsd-3)))
9038 (define-public python2-pika
9039 (package-with-python2 python-pika))
9041 (define-public python-ply
9048 (uri (pypi-uri "ply" version))
9051 "1jxsr1d2f732r6ljhvm827113dckwl6qwakfvpbdhcbhvpvlmscn"))))
9052 (build-system python-build-system)
9053 (home-page "http://www.dabeaz.com/ply/")
9054 (synopsis "Python Lex & Yacc")
9055 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
9056 It uses LR parsing and does extensive error checking.")
9057 (license license:bsd-3)))
9059 (define-public python2-ply
9060 (package-with-python2 python-ply))
9062 (define-public python-tabulate
9064 (name "python-tabulate")
9068 (uri (pypi-uri "tabulate" version))
9071 "1inqhspd4frxnp08c32yndr0lc4px1xfkqah184i5w09gkhvi843"))))
9072 (build-system python-build-system)
9074 ;; FIXME: The pypi release tarball is missing a 'test/common.py'
9075 ;; and the latest release is not tagged in the upstream repository.
9077 (home-page "https://bitbucket.org/astanin/python-tabulate")
9078 (synopsis "Pretty-print tabular data")
9080 "Tabulate is a library and command-line utility to pretty-print tabular
9082 (license license:expat)))
9084 (define-public python2-tabulate
9085 (package-with-python2 python-tabulate))
9087 (define-public python-kazoo
9089 (name "python-kazoo")
9094 (uri (pypi-uri "kazoo" version))
9097 "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7"))))
9098 (build-system python-build-system)
9099 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
9101 `(("python-six" ,python-six)))
9102 (home-page "https://kazoo.readthedocs.org")
9103 (synopsis "High-level Zookeeper client library")
9105 "Kazoo is a Python client library for the Apache Zookeeper distributed
9106 application service. It is designed to be easy to use and to avoid common
9107 programming errors.")
9108 (license license:asl2.0)))
9110 (define-public python2-kazoo
9111 (package-with-python2 python-kazoo))
9113 (define-public python-pykafka
9115 (name "python-pykafka")
9120 "https://pypi.python.org/packages/8b/3e/"
9121 "384eeff406b06315738b62483fd2126c6e4f544167116b17cc04ea7d2a59/"
9122 "pykafka-" version ".tar.gz"))
9125 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
9126 (build-system python-build-system)
9127 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
9129 `(("python-gevent" ,python-gevent)
9130 ("python-kazoo" ,python-kazoo)
9131 ("python-tabulate" ,python-tabulate)))
9133 `(("librdkafka" ,librdkafka)))
9134 (home-page "https://pykafka.readthedocs.io/")
9135 (synopsis "Apache Kafka client for Python")
9137 "PyKafka is a client for the Apache Kafka distributed messaging system.
9138 It includes Python implementations of Kafka producers and consumers, which
9139 are optionally backed by a C extension built on librdkafka.")
9140 (license license:asl2.0)))
9142 (define-public python2-pykafka
9143 (package-with-python2 python-pykafka))
9145 (define-public python-wcwidth
9147 (name "python-wcwidth")
9152 (uri (pypi-uri "wcwidth" version))
9155 "0pn6dflzm609m4r3i8ik5ni9ijjbb5fa3vg1n7hn6vkd49r77wrx"))))
9156 (build-system python-build-system)
9157 (home-page "https://github.com/jquast/wcwidth")
9158 (synopsis "Measure number of terminal column cells of wide-character codes")
9159 (description "Wcwidth measures the number of terminal column cells of
9160 wide-character codes. It is useful for those implementing a terminal emulator,
9161 or programs that carefully produce output to be interpreted by one. It is a
9162 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
9163 specified in POSIX.1-2001 and POSIX.1-2008.")
9164 (license license:expat)))
9166 (define-public python2-wcwidth
9167 (package-with-python2 python-wcwidth))
9169 (define-public python2-jsonrpclib
9171 (name "python2-jsonrpclib")
9176 "https://pypi.python.org/packages/source/j/jsonrpclib/"
9177 "jsonrpclib-" version ".tar.gz"))
9180 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
9181 (build-system python-build-system)
9184 #:python ,python-2))
9185 (home-page "https://github.com/joshmarshall/jsonrpclib/")
9186 (synopsis "Implementation of JSON-RPC specification for Python")
9188 "This library is an implementation of the JSON-RPC specification.
9189 It supports both the original 1.0 specification, as well as the
9190 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
9192 (license license:asl2.0)))
9194 (define-public python-chai
9196 (name "python-chai")
9200 (uri (pypi-uri "chai" version))
9203 "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))))
9204 (build-system python-build-system)
9205 (home-page "https://github.com/agoragames/chai")
9206 (synopsis "Mocking framework for Python")
9208 "Chai provides an api for mocking, stubbing and spying your python
9209 objects, patterned after the Mocha library for Ruby.")
9210 (license license:bsd-3)))
9212 (define-public python2-chai
9213 (package-with-python2 python-chai))
9215 (define-public python-inflection
9217 (name "python-inflection")
9220 (origin (method url-fetch)
9221 (uri (pypi-uri "inflection" version))
9224 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
9225 (build-system python-build-system)
9227 `(("python-pytest" ,python-pytest)))
9228 (home-page "https://github.com/jpvanhal/inflection")
9229 (synopsis "Python string transformation library")
9231 "Inflection is a string transformation library. It singularizes
9232 and pluralizes English words, and transforms strings from CamelCase to
9233 underscored string.")
9234 (license license:expat)))
9236 (define-public python2-inflection
9237 (package-with-python2 python-inflection))
9239 (define-public python-pylev
9241 (name "python-pylev")
9245 (uri (pypi-uri "pylev" version))
9248 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
9249 (build-system python-build-system)
9250 (home-page "https://github.com/toastdriven/pylev")
9251 (synopsis "Levenshtein distance implementation in Python")
9252 (description "Pure Python Levenshtein implementation, based off the
9253 Wikipedia code samples at
9254 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
9255 (license license:bsd-3)))
9257 (define-public python2-pylev
9258 (package-with-python2 python-pylev))
9260 (define-public python-cleo
9262 (name "python-cleo")
9266 (uri (pypi-uri "cleo" version))
9269 "0q1cf0szr0d54am4pypzwdnm74zpladdsinad94c2fz5i06fdpf7"))))
9270 (build-system python-build-system)
9273 ("python-mock" ,python-mock)
9274 ("python-pytest-mock" ,python-pytest-mock)
9275 ("python-pytest" ,python-pytest)))
9277 `(("python-backpack" ,python-backpack)
9278 ("python-pastel" ,python-pastel)
9279 ("python-pylev" ,python-pylev)))
9280 (home-page "https://github.com/sdispater/cleo")
9281 (synopsis "Command-line arguments library for Python")
9283 "Cleo allows you to create command-line commands with signature in
9284 docstring and colored output.")
9285 (license license:expat)))
9287 (define-public python2-cleo
9288 (package-with-python2 python-cleo))
9290 (define-public python-lazy-object-proxy
9292 (name "python-lazy-object-proxy")
9296 (uri (pypi-uri "lazy-object-proxy" version))
9299 "0s22aqqkdscyh8sjspyyax7qa1aiz8p4midrnyf39717fhfczm6x"))))
9300 (build-system python-build-system)
9301 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
9302 (synopsis "Lazy object proxy for python")
9304 "Lazy object proxy is an object that wraps a callable but defers the call
9305 until the object is actually required, and caches the result of said call.")
9306 (license license:bsd-2)))
9308 (define-public python2-lazy-object-proxy
9309 (package-with-python2 python-lazy-object-proxy))
9311 (define-public python-dnspython
9313 (name "python-dnspython")
9317 (uri (string-append "http://www.dnspython.org/kits/"
9318 version "/dnspython-" version ".tar.gz"))
9321 "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i"))))
9322 (build-system python-build-system)
9323 (arguments '(#:tests? #f)) ; XXX: requires internet access
9324 (home-page "http://www.dnspython.org")
9325 (synopsis "DNS toolkit for Python")
9327 "dnspython is a DNS toolkit for Python. It supports almost all record
9328 types. It can be used for queries, zone transfers, and dynamic updates.
9329 It supports TSIG authenticated messages and EDNS0.")
9330 (license license:expat)))
9332 (define-public python2-dnspython
9333 (package-with-python2 python-dnspython))
9335 (define-public python-email-validator
9337 (name "python-email-validator")
9340 (origin (method url-fetch)
9341 (uri (pypi-uri "email_validator" version))
9344 "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
9345 (build-system python-build-system)
9348 (modify-phases %standard-phases
9349 (add-before 'build 'use-dnspython
9351 (substitute* "setup.py"
9352 (("dnspython3") "dnspython"))
9355 `(("python-dnspython" ,python-dnspython)
9356 ("python-idna" ,python-idna)))
9357 (home-page "https://github.com/JoshData/python-email-validator")
9358 (synopsis "Email address validation library for Python")
9360 "This library validates email address syntax and deliverability.")
9361 (license license:cc0)))
9363 (define-public python2-email-validator
9364 (package-with-python2 python-email-validator))
9366 (define-public python-ukpostcodeparser
9368 (name "python-ukpostcodeparser")
9372 (uri (pypi-uri "UkPostcodeParser" version))
9375 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
9376 (build-system python-build-system)
9377 (home-page "https://github.com/hamstah/ukpostcodeparser")
9378 (synopsis "UK Postcode parser for Python")
9380 "This library provides the @code{parse_uk_postcode} function for
9381 parsing UK postcodes.")
9382 (license license:expat)))
9384 (define-public python2-ukpostcodeparser
9385 (package-with-python2 python-ukpostcodeparser))
9387 (define-public python-faker
9389 (name "python-faker")
9393 (uri (pypi-uri "Faker" version))
9396 "1fh2p2yz0fsdr4fqwxgddwbvfb6qn6vp8yx0qwqzra27yq5d1wsm"))
9398 (search-patches "python-faker-fix-build-32bit.patch"))
9399 (modules '((guix build utils)))
9402 (for-each delete-file (find-files "." "\\.pyc$"))
9404 (build-system python-build-system)
9407 (modify-phases %standard-phases
9410 (zero? (system* "python" "-m" "unittest" "-v" "tests")))))))
9413 ("python-email-validator" ,python-email-validator)
9414 ("python-mock" ,python-mock)
9415 ("python-ukpostcodeparser" ,python-ukpostcodeparser)))
9417 `(("python-dateutil" ,python-dateutil)
9418 ("python-six" ,python-six)))
9419 (home-page "https://github.com/joke2k/faker")
9420 (synopsis "Python package that generates fake data")
9422 "Faker is a Python package that generates fake data such as names,
9423 addresses, and phone numbers.")
9424 (license license:expat)
9425 (properties `((python2-variant . ,(delay python2-faker))))))
9427 (define-public python2-faker
9428 (let ((base (package-with-python2 (strip-python2-variant
9433 `(("python2-ipaddress" ,python2-ipaddress)
9434 ,@(package-propagated-inputs base))))))
9436 (define-public python-pyaml
9438 (name "python-pyaml")
9442 (uri (pypi-uri "pyaml" version))
9445 "132grrw0ajq4nrappi3ldbkb952k7yn9b6c7csi2rmvzm1g6ppp2"))))
9446 (build-system python-build-system)
9448 `(("python-unidecode" ,python-unidecode)))
9450 `(("python-pyyaml" ,python-pyyaml)))
9451 (home-page "https://github.com/mk-fg/pretty-yaml")
9452 (synopsis "YAML pretty-print library for Python")
9454 "pyaml is a PyYAML based python module to produce pretty and readable
9455 YAML-serialized data.")
9456 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/"))))
9458 (define-public python2-pyaml
9459 (package-with-python2 python-pyaml))
9461 (define-public python-backpack
9463 (name "python-backpack")
9468 (uri (pypi-uri "backpack" version))
9471 "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
9472 (build-system python-build-system)
9474 `(("python-pytest" ,python-pytest)
9475 ("python-nose" ,python-nose)))
9477 `(("python-simplejson" ,python-simplejson)))
9478 (home-page "https://github.com/sdispater/backpack")
9479 (synopsis "Utilities for working with Python collections")
9480 (description "Backpack provides some useful utilities for working with
9481 collections of data.")
9482 (license license:expat)))
9484 (define-public python2-backpack
9485 (package-with-python2 python-backpack))
9487 (define-public python-prompt-toolkit
9489 (name "python-prompt-toolkit")
9494 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
9497 "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))
9498 (build-system python-build-system)
9500 '(#:tests? #f)) ; The test suite uses some Windows-specific data types.
9502 `(("python-wcwidth" ,python-wcwidth)
9503 ("python-six" ,python-six)
9504 ("python-pygments" ,python-pygments)))
9505 (home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
9506 (synopsis "Library for building command line interfaces in Python")
9508 "Prompt-Toolkit is a library for building interactive command line
9509 interfaces in Python. It's like GNU Readline but it also features syntax
9510 highlighting while typing, out-of-the-box multi-line input editing, advanced
9511 code completion, incremental search, support for Chinese double-width
9512 characters, mouse support, and auto suggestions.")
9513 (license license:bsd-3)))
9515 (define-public python2-prompt-toolkit
9516 (package-with-python2 python-prompt-toolkit))
9518 (define-public python-jedi
9520 (name "python-jedi")
9525 (uri (pypi-uri "jedi" version))
9528 "1bcr7csx4xil1iwmk03d79jis0bkmgi9k0kir3xa4rmwqsagcwhr"))))
9529 (build-system python-build-system)
9532 (modify-phases %standard-phases
9533 (replace 'check (lambda _
9534 (invoke "py.test" "-vv"))))))
9536 `(("python-pytest" ,python-pytest)
9537 ("python-parso" ,python-parso)
9538 ("python-docopt" ,python-docopt)))
9539 (home-page "https://github.com/davidhalter/jedi")
9541 "Autocompletion for Python that can be used for text editors")
9543 "Jedi is an autocompletion tool for Python that can be used for text
9545 (license license:expat)))
9547 (define-public python2-jedi
9548 (package-with-python2 python-jedi))
9550 (define-public ptpython
9556 (uri (pypi-uri "ptpython" version))
9559 "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
9560 (build-system python-build-system)
9562 '(#:tests? #f)) ; FIXME: No tests in pypi tarball.
9564 `(("python-docopt" ,python-docopt)
9565 ("python-jedi" ,python-jedi)
9566 ("python-prompt-toolkit" ,python-prompt-toolkit)
9567 ("python-pygments" ,python-pygments)))
9568 (home-page "https://github.com/jonathanslenders/ptpython")
9569 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
9571 "ptpython is a Python read-eval-print loop with IDE-like features.
9572 It supports syntax highlighting, multiline editing, autocompletion, mouse,
9573 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
9575 (license license:bsd-3)
9576 (properties `((python2-variant . ,(delay ptpython-2))))))
9578 (define-public ptpython-2
9579 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
9582 (name "ptpython2"))))
9584 (define-public python-stem
9586 (name "python-stem")
9591 (uri (pypi-uri "stem" version))
9594 "1va9p3ij7lxg6ixfsvaql06dn11l3fgpxmss1dhlvafm7sqizznp"))))
9595 (build-system python-build-system)
9598 (modify-phases %standard-phases
9599 (add-before 'check 'fix-test-environment
9601 ;; Fixes: FileNotFoundError: [Errno 2] No such file or directory:
9602 ;; '/tmp/guix-build-python-stem-1.6.0.drv-0/stem-1.6.0/.gitignore'.
9603 (with-output-to-file ".gitignore"
9604 (lambda _ (format #t "%")))
9608 (invoke "./run_tests.py" "--unit")
9611 `(("python-mock" ,python-mock)
9612 ("python-pep8" ,python-pep8)
9613 ("python-pyflakes" ,python-pyflakes)))
9614 (home-page "https://stem.torproject.org/")
9616 "Python controller library that allows applications to interact with Tor")
9618 "Stem is a Python controller library for Tor. With it you can use Tor's
9619 control protocol to script against the Tor process and read descriptor data
9620 relays publish about themselves.")
9621 (license license:lgpl3)))
9623 (define-public python2-stem
9624 (package-with-python2 python-stem))
9626 (define-public python-pyserial
9628 (name "python-pyserial")
9633 (uri (pypi-uri "pyserial" version))
9636 "0k1nfdrxxkdlv4zgaqsdv8li0pj3gbh2pyxw8q2bsg6f9490amyn"))))
9637 (build-system python-build-system)
9639 '(#:tests? #f)) ; FIXME: 3/49 tests are failing.
9641 ;; (modify-phases %standard-phases
9644 ;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
9646 "https://github.com/pyserial/pyserial")
9647 (synopsis "Python Serial Port Bindings")
9648 (description "@code{pyserial} provide serial port bindings for Python. It
9649 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
9650 and/or Xon/Xoff. The port is accessed in RAW mode.")
9651 (license license:bsd-3)))
9653 (define-public python2-pyserial
9654 (package-with-python2 python-pyserial))
9656 (define-public python-kivy
9658 (name "python-kivy")
9663 (uri (pypi-uri "Kivy" version))
9664 (file-name (string-append name "-" version ".tar.gz"))
9667 "1394zh6kvf7k5d8vlzxcsfcailr3q59xwg9b1n7qaf25bvyq1h98"))))
9668 (build-system python-build-system)
9670 `(#:tests? #f ; Tests require many optional packages
9672 (modify-phases %standard-phases
9673 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
9674 (lambda* (#:key inputs #:allow-other-keys)
9675 (setenv "KIVY_SDL2_PATH"
9676 (string-append (assoc-ref inputs "sdl-union")
9681 ("pkg-config" ,pkg-config)
9682 ("python-cython" ,python-cython)))
9684 `(("gstreamer" ,gstreamer)
9687 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
9688 (home-page "http://kivy.org")
9690 "Multitouch application framework")
9692 "A software library for rapid development of
9693 hardware-accelerated multitouch applications.")
9694 (license license:expat)))
9696 (define-public python2-kivy
9697 (package-with-python2 python-kivy))
9699 (define-public python-kivy-next
9700 (let ((commit "a988c5e7a47da56263ff39514264a3de516ef2fe")
9702 (package (inherit python-kivy)
9703 (name "python-kivy-next")
9704 (version (string-append "1.9.1-" revision "."
9705 (string-take commit 7)))
9710 (url "https://github.com/kivy/kivy")
9712 (file-name (string-append name "-" version "-checkout"))
9715 "0jk92b4a8l7blkvkgkjihk171s0dfnq582cckff5srwc8kal5m0p")))))))
9717 (define-public python2-kivy-next
9718 (package-with-python2 python-kivy-next))
9720 (define-public python-binaryornot
9722 (name "python-binaryornot")
9726 (uri (pypi-uri "binaryornot" version))
9729 "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb"))))
9730 (build-system python-build-system)
9732 `(("python-chardet" ,python-chardet)
9733 ("python-hypothesis" ,python-hypothesis)))
9734 (home-page "https://github.com/audreyr/binaryornot")
9735 (synopsis "Package to check if a file is binary or text")
9736 (description "Ultra-lightweight pure Python package to check if a file is
9738 (license license:bsd-3)
9739 (properties `((python2-variant . ,(delay python2-binaryornot))))))
9741 (define-public python2-binaryornot
9742 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
9743 (package (inherit base)
9745 `(("python2-enum34" ,python2-enum34)
9746 ,@(package-propagated-inputs base))))))
9748 (define-public python-nltk
9750 (name "python-nltk")
9754 (uri (pypi-uri "nltk" version))
9757 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
9758 (build-system python-build-system)
9760 '(;; The tests require some extra resources to be downloaded.
9761 ;; TODO Try packaging these resources.
9763 (home-page "http://nltk.org/")
9764 (synopsis "Natural Language Toolkit")
9765 (description "It provides interfaces to over 50 corpora and lexical
9766 resources such as WordNet, along with a suite of text processing libraries
9767 for classification, tokenization, stemming, tagging, parsing, and semantic
9768 reasoning, wrappers for natural language processing libraries.")
9769 (license license:asl2.0)))
9771 (define-public python2-nltk
9772 (package-with-python2 python-nltk))
9774 (define-public python-pymongo
9776 (name "python-pymongo")
9780 (uri (pypi-uri "pymongo" version))
9783 "07mra6w86wjqy4lx5fvimidjhhfzd562gfjn8grsnbv2q8pk0i9x"))))
9784 (build-system python-build-system)
9786 `(("python-certifi" ,python-certifi)))
9787 (home-page "https://github.com/mongodb/mongo-python-driver")
9788 (synopsis "Python driver for MongoDB")
9789 (description "Python driver for MongoDB.")
9790 (license license:asl2.0)))
9792 (define-public python2-pymongo
9793 (package-with-python2 python-pymongo))
9795 (define-public python-sh
9801 (uri (pypi-uri "sh" version))
9804 "192r0mpv6dmkysjzhc43ddffiwb5g7c76bgr1mb1z2xz9awbj3sr"))))
9805 (build-system python-build-system)
9807 `(#:tests? #f)) ; no tests
9808 (home-page "https://github.com/amoffat/sh")
9809 (synopsis "Python subprocess interface")
9810 (description "Abstracts process invocation by providing a function
9811 interface for programs.")
9812 (license license:expat)))
9814 (define-public python2-sh
9815 (package-with-python2 python-sh))
9817 (define-public python-consul
9819 (name "python-consul")
9824 (uri (pypi-uri "python-consul" version))
9827 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
9828 (build-system python-build-system)
9830 '(#:tests? #f)) ; The tests are not distributed
9832 `(("python-requests" ,python-requests)
9833 ("python-six" ,python-six)))
9834 (home-page "https://github.com/cablehead/python-consul")
9835 (synopsis "Python client for Consul")
9837 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
9838 discovery, monitoring and configuration.")
9839 (license license:expat)))
9841 (define-public python2-consul
9842 (package-with-python2 python-consul))
9844 (define-public python-schematics
9846 (name "python-schematics")
9852 "https://github.com/schematics/schematics/archive/v" version ".tar.gz"))
9853 (file-name (string-append name "-" version ".tar.gz"))
9856 "19v1i69bf3bzarfxmbv0v6ivpcn758x3shvbiy9l2hy0lvqwnp6l"))))
9857 (build-system python-build-system)
9859 `(("python-six" ,python-six)))
9861 `(#:tests? #f)) ; requires a bunch of not very nice packages with fixed
9862 ; version requirements (eg python-coveralls)
9863 (home-page "https://github.com/schematics/schematics")
9864 (synopsis "Python Data Structures for Humans")
9865 (description "Python Data Structures for Humans.")
9866 (license license:bsd-3)))
9868 (define-public python2-schematics
9869 (package-with-python2 python-schematics))
9871 (define-public python-odfpy
9873 (name "python-odfpy")
9877 (uri (pypi-uri "odfpy" version))
9880 "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw"))))
9882 `(#:modules ((srfi srfi-1)
9883 (guix build python-build-system)
9886 (modify-phases %standard-phases
9888 ;; The test runner invokes python2 and python3 for test*.py.
9889 ;; To avoid having both in inputs, we replicate it here.
9891 (every (lambda (test-file)
9892 (zero? (system* "python" test-file)))
9893 (find-files "tests" "^test.*\\.py$")))))))
9894 (build-system python-build-system)
9895 (home-page "https://github.com/eea/odfpy")
9896 (synopsis "Python API and tools to manipulate OpenDocument files")
9897 (description "Collection of libraries and utility programs written in
9898 Python to manipulate OpenDocument 1.2 files.")
9900 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
9901 ;; number of files with other licenses.
9902 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
9904 (define-public python2-odfpy
9905 (package-with-python2 python-odfpy))
9907 (define-public python-natsort
9909 (name "python-natsort")
9913 (uri (pypi-uri "natsort" version))
9916 "0bh6j0l8iapjnsgg3bs6q075cnzjl6zw1vlgqyv3qrygm2cxypkn"))))
9917 (build-system python-build-system)
9920 (modify-phases %standard-phases
9921 (add-before 'check 'set-cachedir
9922 ;; Tests require write access to $HOME by default
9923 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t)))))
9925 `(("python-hypothesis" ,python-hypothesis)
9926 ("python-pytest-cache" ,python-pytest-cache)
9927 ("python-pytest-cov" ,python-pytest-cov)
9928 ("python-pytest-flakes" ,python-pytest-flakes)
9929 ("python-pytest-pep8" ,python-pytest-pep8)))
9930 (propagated-inputs ; TODO: Add python-fastnumbers.
9931 `(("python-pyicu" ,python-pyicu)))
9932 (home-page "https://github.com/SethMMorton/natsort")
9933 (synopsis "Natural sorting for python and shell")
9935 "Natsort lets you apply natural sorting on lists instead of
9936 lexicographical. If you use the built-in @code{sorted} method in python
9937 on a list such as @code{['a20', 'a9', 'a1', 'a4', 'a10']}, it would be
9938 returned as @code{['a1', 'a10', 'a20', 'a4', 'a9']}. Natsort provides a
9939 function @code{natsorted} that identifies numbers and sorts them separately
9940 from strings. It can also sort version numbers, real numbers, mixed types
9941 and more, and comes with a shell command @command{natsort} that exposes this
9942 functionality in the command line.")
9943 (license license:expat)
9944 (properties `((python2-variant . ,(delay python2-natsort))))))
9946 (define-public python2-natsort
9947 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
9948 (package (inherit base)
9950 `(("python2-pathlib" ,python2-pathlib)
9951 ("python2-mock" ,python2-mock)
9952 ("python2-enum34" ,python2-enum34)
9953 ,@(package-native-inputs base))))))
9955 (define-public python-glances
9957 (name "python-glances")
9962 (uri (pypi-uri "Glances" version))
9965 "11jbq40g8alsbirnd4kiagznqg270247i0m8qhi48ldf2i5xppxg"))))
9966 (build-system python-build-system)
9968 `(("python-psutil" ,python-psutil)))
9970 "https://github.com/nicolargo/glances")
9972 "A cross-platform curses-based monitoring tool")
9974 "Glances is a curses-based monitoring tool for a wide variety of platforms.
9975 Glances uses the PsUtil library to get information from your system. It monitors
9976 CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
9977 (license license:lgpl3+)))
9979 (define-public python2-glances
9980 (package-with-python2 python-glances))
9982 (define-public python-graphql-core
9984 (name "python-graphql-core")
9989 (uri (pypi-uri "graphql-core" version))
9992 "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
9993 (build-system python-build-system)
9995 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
9997 (modify-phases %standard-phases
9998 (add-after 'unpack 'patch-hardcoded-version
9999 (lambda _ (substitute*
10001 (("'gevent==1.1rc1'") "'gevent'"))
10004 `(("python-gevent" ,python-gevent)
10005 ("python-mock" ,python-mock)
10006 ("python-pytest-mock" ,python-pytest-mock)))
10008 `(("python-promise" ,python-promise)
10009 ("python-six" ,python-six)))
10010 (home-page "https://github.com/graphql-python/graphql-core")
10011 (synopsis "GraphQL implementation for Python")
10013 "GraphQL implementation for Python. GraphQL is a data query language and
10014 runtime designed and used to request and deliver data to mobile and web apps.
10015 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
10017 (license license:expat)))
10019 (define-public python2-graphql-core
10020 (package-with-python2 python-graphql-core))
10022 (define-public python-graphql-relay
10024 (name "python-graphql-relay")
10029 (uri (pypi-uri "graphql-relay" version))
10032 "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7"))))
10033 (build-system python-build-system)
10035 '(#:tests? #f)) ; The tests are not distributed
10037 `(("python-graphql-core" ,python-graphql-core)
10038 ("python-promise" ,python-promise)
10039 ("python-six" ,python-six)))
10040 (home-page "https://github.com/graphql-python/graphql-relay-py")
10041 (synopsis "Relay implementation for Python")
10043 "This is a library to allow the easy creation of Relay-compliant servers
10044 using the GraphQL Python reference implementation of a GraphQL server. It
10045 should be noted that the code is a exact port of the original
10046 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
10048 (license license:expat)))
10050 (define-public python2-graphql-relay
10051 (package-with-python2 python-graphql-relay))
10053 (define-public python-graphene
10055 (name "python-graphene")
10060 (uri (pypi-uri "graphene" version))
10063 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
10064 (build-system python-build-system)
10066 `(("python-graphql-core" ,python-graphql-core)
10067 ("python-graphql-relay" ,python-graphql-relay)
10068 ("python-iso8601" ,python-iso8601)
10069 ("python-promise" ,python-promise)
10070 ("python-six" ,python-six)))
10072 `(#:tests? #f)) ; no tests/ in the PyPI tarball
10073 (home-page "http://graphene-python.org/")
10074 (synopsis "GraphQL Framework for Python")
10076 "Graphene is a Python library for building GraphQL schemas/types.
10077 A GraphQL schema describes your data model, and provides a GraphQL server
10078 with an associated set of resolve methods that know how to fetch data.")
10079 (properties `((python2-variant . ,(delay python2-graphene))))
10080 (license license:expat)))
10082 (define-public python2-graphene
10083 (let ((base (package-with-python2
10084 (strip-python2-variant python-graphene))))
10085 (package (inherit base)
10087 `(("python2-sqlalchemy" ,python2-sqlalchemy)
10088 ,@(package-native-inputs base))))))
10090 (define-public python-nautilus
10092 (name "python-nautilus")
10097 (uri (pypi-uri "nautilus" version))
10100 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
10101 (build-system python-build-system)
10102 (arguments `(#:tests? #f)) ; fails to import test modules
10104 `(("python-bcrypt" ,python-bcrypt)
10105 ("python-click" ,python-click)
10106 ("python-consul" ,python-consul)
10107 ("python-graphene" ,python-graphene)
10108 ("python-jinja2" ,python-jinja2)
10109 ("python-peewee" ,python-peewee)
10110 ("python-pika" ,python-pika)
10111 ("python-tornado" ,python-tornado)
10112 ("python-wtforms" ,python-wtforms)))
10114 `(("python-nose2" ,python-nose2)))
10115 (home-page "https://github.com/AlecAivazis/nautilus")
10116 (synopsis "Library for creating microservice applications")
10118 "Nautilus is a framework for flux based microservices that looks to
10119 provide extendible implementations of common aspects of a cloud so that you can
10120 focus on building massively scalable web applications.")
10121 (license license:expat)))
10123 (define-public python-snowballstemmer
10125 (name "python-snowballstemmer")
10129 (uri (pypi-uri "snowballstemmer" version))
10132 "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi"))))
10133 (build-system python-build-system)
10135 `(;; No tests exist
10137 (home-page "https://github.com/shibukawa/snowball_py")
10138 (synopsis "Snowball stemming library collection for Python")
10139 (description "This package provides 16 word stemmer algorithms generated
10140 from Snowball algorithms. It includes the 15 original ones plus the Poerter
10142 (license license:bsd-3)))
10144 (define-public python2-snowballstemmer
10145 (package-with-python2 python-snowballstemmer))
10147 (define-public python-sphinx-cloud-sptheme
10149 (name "python-sphinx-cloud-sptheme")
10153 (uri (pypi-uri "cloud_sptheme" version))
10156 "1dniqb6a39yh786f86c4jn666rwnyi1jvzn4616zhcchb7sfdshd"))))
10157 (build-system python-build-system)
10158 ;; FIXME: The 'pypi' release archive does not contain tests.
10159 (arguments '(#:tests? #f))
10161 `(("python-sphinx" ,python-sphinx)))
10162 (home-page "https://bitbucket.org/ecollins/cloud_sptheme")
10163 (synopsis "'Cloud' theme for Sphinx documenter")
10164 (description "This package contains the \"Cloud\" theme for Sphinx and some
10165 related extensions.")
10166 (license license:bsd-3)))
10168 (define-public python2-sphinx-cloud-sptheme
10169 (package-with-python2 python-sphinx-cloud-sptheme))
10171 (define-public python-sphinx-alabaster-theme
10173 (name "python-sphinx-alabaster-theme")
10177 (uri (pypi-uri "alabaster" version))
10180 "027anxzcb951gjlcc43y3rbn9qrw36d16vj9wd2smv5410xx9bs7"))))
10181 (build-system python-build-system)
10183 `(("python-pygments" ,python-pygments)))
10184 (home-page "https://alabaster.readthedocs.io/")
10185 (synopsis "Configurable sidebar-enabled Sphinx theme")
10186 (description "Alabaster is a visually (c)lean, responsive, configurable
10187 theme for the Sphinx documentation system. It's the default theme of Sphinx.")
10188 (license license:bsd-3)))
10190 (define-public python2-sphinx-alabaster-theme
10191 (package-with-python2 python-sphinx-alabaster-theme))
10193 (define-public python-setproctitle
10195 (name "python-setproctitle")
10200 (uri (pypi-uri "setproctitle" version))
10203 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
10204 (build-system python-build-system)
10207 (modify-phases %standard-phases
10208 (add-before 'check 'patch-Makefile
10209 ;; Stricly this is only required for the python2 variant.
10210 ;; But adding a phase in an inherited package seems to be
10211 ;; cumbersum. So we patch even for python3.
10213 (let ((nose (assoc-ref %build-inputs "python2-nose")))
10215 (substitute* "Makefile"
10216 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
10217 (string-append nose "/bin/nosetests "))))
10221 (setenv "PYTHON" (or (which "python3") (which "python")))
10222 (setenv "PYCONFIG" (or (which "python3-config")
10223 (which "python-config")))
10224 (setenv "CC" "gcc")
10225 ;; No need to extend PYTHONPATH to find the built package, since
10226 ;; the Makefile will build anyway
10227 (zero? (system* "make" "check")))))))
10229 `(("procps" ,procps))) ; required for tests
10231 "https://github.com/dvarrazzo/py-setproctitle")
10233 "Setproctitle implementation for Python to customize the process title")
10234 (description "The library allows a process to change its title (as displayed
10235 by system tools such as ps and top).
10237 Changing the title is mostly useful in multi-process systems, for
10238 example when a master process is forked: changing the children's title
10239 allows to identify the task each process is busy with. The technique
10240 is used by PostgreSQL and the OpenSSH Server for example.")
10241 (license license:bsd-3)
10242 (properties `((python2-variant . ,(delay python2-setproctitle))))))
10244 (define-public python2-setproctitle
10245 (let ((base (package-with-python2
10246 (strip-python2-variant python-setproctitle))))
10249 (native-inputs `(("python2-nose" ,python2-nose)
10250 ,@(package-native-inputs base))))))
10252 (define-public python-validictory
10254 (name "python-validictory")
10259 (uri (pypi-uri "validictory" version))
10262 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
10263 (build-system python-build-system)
10266 (modify-phases %standard-phases
10267 (add-after 'unpack 'bootstrap
10268 ;; Move the tests out of the package directory to avoid
10271 (rename-file "validictory/tests" "tests")
10272 (delete-file "tests/__init__.py")))
10275 ;; Extend PYTHONPATH so the built package will be found.
10276 (setenv "PYTHONPATH"
10277 (string-append (getcwd) "/build/lib:"
10278 (getenv "PYTHONPATH")))
10279 (zero? (system* "py.test" "-vv" )))))))
10281 `(("python-pytest" ,python-pytest)))
10283 "https://github.com/jamesturk/validictory")
10284 (synopsis "General purpose Python data validator")
10285 (description "It allows validation of arbitrary Python data structures.
10287 The schema format is based on the JSON Schema
10288 proposal (http://json-schema.org), so combined with json the library is also
10289 useful as a validator for JSON data.")
10290 (license license:expat)))
10292 (define-public python2-validictory
10293 (package-with-python2 python-validictory))
10295 (define-public python-pyev
10297 (name "python-pyev")
10302 (uri (pypi-uri "pyev" version))
10305 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
10306 (build-system python-build-system)
10308 `(#:tests? #f ; no test suite
10310 (modify-phases %standard-phases
10311 (add-after 'unpack 'patch
10312 (lambda* (#:key inputs #:allow-other-keys)
10313 (let ((libev (string-append (assoc-ref inputs "libev")
10314 "/lib/libev.so.4")))
10315 (substitute* "setup.py"
10316 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
10317 (string-append "libev_dll_name = \"" libev "\"")))))))))
10319 `(("libev" ,libev)))
10320 (home-page "http://pythonhosted.org/pyev/")
10321 (synopsis "Python libev interface")
10322 (description "Pyev provides a Python interface to libev.")
10323 (license license:gpl3)))
10325 (define-public python2-pyev
10326 (package-with-python2 python-pyev))
10328 (define-public python-imagesize
10330 (name "python-imagesize")
10335 (uri (pypi-uri "imagesize" version))
10338 "0qk07k0z4241lkzzjji7z4da04pcvg7bfc4xz1934zlqhwmwdcha"))))
10339 (build-system python-build-system)
10341 '(;; Test files are not distributed on PyPi:
10342 ;; https://github.com/shibukawa/imagesize_py/issues/7
10344 (home-page "https://github.com/shibukawa/imagesize_py")
10345 (synopsis "Gets image size of files in variaous formats in Python")
10347 "This package allows determination of image size from
10348 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
10349 (license license:expat)))
10351 (define-public python2-imagesize
10352 (package-with-python2 python-imagesize))
10354 (define-public python-termstyle
10356 (name "python-termstyle")
10361 (uri (pypi-uri "termstyle" version))
10364 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
10365 (build-system python-build-system)
10368 (modify-phases %standard-phases
10371 (zero? (system* "python" "test3.py")))))))
10372 (home-page "https://github.com/gfxmonk/termstyle")
10373 (synopsis "Console text coloring for Python")
10374 (description "This package provides console text coloring for Python.")
10375 (license license:bsd-3)))
10377 (define-public python-argcomplete
10379 (name "python-argcomplete")
10384 (uri (pypi-uri "argcomplete" version))
10387 "11bwiw6j0nilgz81xnw6f1npyga3prp8asjqrm87cdr3ria5l03x"))))
10388 (build-system python-build-system)
10390 `(("python-pexpect" ,python-pexpect)
10392 ("bash-full" ,bash))) ;full Bash for 'test_file_completion'
10393 (home-page "https://github.com/kislyuk/argcomplete")
10394 (synopsis "Shell tab completion for Python argparse")
10395 (description "argcomplete provides extensible command line tab completion
10396 of arguments and options for Python scripts using @code{argparse}. It's
10397 particularly useful for programs with many options or sub-parsers that can
10398 dynamically suggest completions; for example, when browsing resources over the
10400 (license license:asl2.0)))
10402 (define-public python2-argcomplete
10403 (package-with-python2 python-argcomplete))
10405 (define-public python-xopen
10407 (name "python-xopen")
10412 (uri (pypi-uri "xopen" version))
10415 "1a0wbil552wsmklwd89ssmgz3pjd86qa9i7jh8wqb9wslc8a2qjr"))
10416 (file-name (string-append name "-" version ".tar.gz"))))
10417 (build-system python-build-system)
10418 (home-page "https://github.com/marcelm/xopen/")
10419 (synopsis "Open compressed files transparently")
10420 (description "This module provides an @code{xopen} function that works like
10421 Python's built-in @code{open} function, but can also deal with compressed files.
10422 Supported compression formats are gzip, bzip2 and, xz, and are automatically
10423 recognized by their file extensions. The focus is on being as efficient as
10424 possible on all supported Python versions.")
10425 (license license:expat)))
10427 (define-public python2-xopen
10428 (let ((base (package-with-python2
10429 (strip-python2-variant python-xopen))))
10432 (propagated-inputs `(("python2-bz2file" ,python2-bz2file)
10433 ,@(package-propagated-inputs base))))))
10435 (define-public python2-cheetah
10437 (name "python2-cheetah")
10442 (uri (pypi-uri "Cheetah" version))
10445 "0l5mm4lnysjkzpjr95q5ydm9xc8bv43fxmr79ypybrf1y0lq4c5y"))))
10446 (build-system python-build-system)
10448 `(#:python ,python-2))
10450 `(("python2-markdown" ,python2-markdown)))
10451 (home-page "https://pythonhosted.org/Cheetah/")
10452 (synopsis "Template engine")
10453 (description "Cheetah is a text-based template engine and Python code
10456 Cheetah can be used as a standalone templating utility or referenced as
10457 a library from other Python applications. It has many potential uses,
10458 but web developers looking for a viable alternative to ASP, JSP, PHP and
10459 PSP are expected to be its principle user group.
10463 @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
10465 @item Cleanly separates content, graphic design, and program code.
10466 @item Blends the power and flexibility of Python with a simple template language
10467 that non-programmers can understand.
10468 @item Gives template writers full access to any Python data structure, module,
10469 function, object, or method in their templates.
10470 @item Makes code reuse easy by providing an object-orientated interface to
10471 templates that is accessible from Python code or other Cheetah templates.
10472 One template can subclass another and selectively reimplement sections of it.
10473 @item Provides a simple, yet powerful, caching mechanism that can dramatically
10474 improve the performance of a dynamic website.
10475 @item Compiles templates into optimized, yet readable, Python code.
10477 (license (license:x11-style "file://LICENSE"))))
10479 (define-public python-dulwich
10481 (name "python-dulwich")
10486 (uri (list (string-append "https://www.dulwich.io/releases/"
10487 "dulwich-" version ".tar.gz")
10488 (pypi-uri "dulwich" version)))
10491 "1aa1xfrxkc3j9s4xi0llhf5gndyi9ryprcxsqfa5fcb8ph34981q"))))
10492 (build-system python-build-system)
10495 (modify-phases %standard-phases
10496 (add-before 'check 'fix-tests
10497 (lambda* (#:key inputs #:allow-other-keys)
10498 ;; The tests use Popen with a custom environment which doesn't
10500 (substitute* "dulwich/tests/compat/utils.py"
10501 (("'git'") (string-append "'"
10504 (substitute* '("dulwich/tests/test_repository.py"
10505 "dulwich/tests/test_hooks.py")
10506 (("#!/bin/sh") (string-append "#!" (which "sh"))))
10507 (setenv "TEST_RUNNER" "unittest")
10508 (setenv "PYTHONHASHSEED" "random")
10511 `(("python-fastimport" ,python-fastimport)))
10513 `(("python-mock" ,python-mock)
10514 ("python-geventhttpclient" ,python-geventhttpclient)
10516 (home-page "https://www.dulwich.io/")
10517 (synopsis "Git implementation in Python")
10518 (description "Dulwich is an implementation of the Git file formats and
10519 protocols written in pure Python.")
10520 ;; Can be used with either license.
10521 (license (list license:asl2.0 license:gpl2+))))
10523 (define-public python2-dulwich
10524 (package-with-python2 python-dulwich))
10526 (define-public python-pbkdf2
10528 (name "python-pbkdf2")
10533 (uri (pypi-uri "pbkdf2" version))
10536 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
10537 (build-system python-build-system)
10540 (modify-phases %standard-phases
10543 (setenv "PYTHONPATH"
10544 (string-append (getcwd) "/build/lib:"
10545 (getenv "PYTHONPATH")))
10546 (zero? (system* "python" "test/test_pbkdf2.py")))))))
10548 `(("python-pycrypto" ,python-pycrypto))) ; optional
10549 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
10550 (synopsis "Password-based key derivation")
10551 (description "This module implements the password-based key derivation
10552 function, PBKDF2, specified in RSA PKCS#5 v2.0.
10554 PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
10555 is part of the RSA Public Key Cryptography Standards series. The provided
10556 implementation takes a password or a passphrase and a salt value (and
10557 optionally a iteration count, a digest module, and a MAC module) and provides
10558 a file-like object from which an arbitrarly-sized key can be read.")
10559 (license license:expat)))
10561 (define-public python2-pbkdf2
10562 (package-with-python2 python-pbkdf2))
10564 (define-public python-qrcode
10566 (name "python-qrcode")
10571 (uri (pypi-uri "qrcode" version))
10574 "1gz1g2n9kqwqkak78aavr354z1v3yyiksk7q6xp5hi1zr6s0syq3"))))
10575 (build-system python-build-system)
10577 ;; FIXME: Tests require packaging 'pymaging'.
10580 `(("python-lxml" ,python-lxml) ; for SVG output
10581 ("python-pillow" ,python-pillow) ; for PNG output
10582 ("python-six" ,python-six)))
10584 `(;; The setup.cfg file needs to be used, and support for this requires
10585 ;; at least version 30.3.0 of setuptools
10586 ("python-setuptools" ,python-setuptools)))
10587 (home-page "https://github.com/lincolnloop/python-qrcode")
10588 (synopsis "QR Code image generator")
10589 (description "This package provides a pure Python QR Code generator
10590 module. It uses the Python Imaging Library (PIL) to allow for the generation
10593 In addition this package provides a command line tool to generate QR codes and
10594 either write these QR codes to a file or do the output as ascii art at the
10596 (license license:bsd-3)))
10598 (define-public python2-qrcode
10599 (package-with-python2 python-qrcode))
10601 (define-public python-rst2ansi
10603 (name "python-rst2ansi")
10608 (uri (pypi-uri "rst2ansi" version))
10611 "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
10612 (build-system python-build-system)
10614 `(("python-docutils" ,python-docutils)))
10615 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
10616 (synopsis "Convert RST to ANSI-decorated console output")
10618 "Python module dedicated to rendering RST (reStructuredText) documents
10619 to ansi-escaped strings suitable for display in a terminal.")
10620 (license license:expat)))
10622 (define-public python-ansi2html
10624 (name "python-ansi2html")
10629 (uri (pypi-uri "ansi2html" version))
10632 "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
10633 (build-system python-build-system)
10635 `(("python-mock" ,python-mock)
10636 ("python-nose" ,python-nose)))
10638 `(("python-six" ,python-six)))
10639 (home-page "https://github.com/ralphbean/ansi2html")
10640 (synopsis "Convert ANSI-decorated console output to HTML")
10642 "@command{ansi2html} is a Python library and command line utility for
10643 convering text with ANSI color codes to HTML or LaTeX.")
10644 (license license:gpl3+)))
10646 (define-public python2-ansi2html
10647 (package-with-python2 python-ansi2html))
10649 (define-public python-ddt
10651 (name "python-ddt")
10656 (uri (pypi-uri "ddt" version))
10659 "1lw17420iimhghkgzgax85nn8d1an2d6k2cfvb7j5kwn2dqlr1vk"))))
10660 (build-system python-build-system)
10662 `(("python-mock" ,python-mock)
10663 ("python-nose" ,python-nose)))
10665 `(("python-six" ,python-six)
10666 ("python-pyyaml" ,python-pyyaml)))
10667 (home-page "https://github.com/txels/ddt")
10668 (synopsis "Data-Driven Tests")
10670 "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
10671 running it with different test data, and make it appear as multiple test
10673 (license license:expat)))
10675 (define-public python2-ddt
10676 (package-with-python2 python-ddt))
10678 (define-public python-pycosat
10680 (name "python-pycosat")
10685 (uri (pypi-uri "pycosat" version))
10688 "1kl3wh1f47rc712n4bmwplbx3fqz3x9i1b587jrbpmvdva4c8f6l"))))
10689 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
10690 (build-system python-build-system)
10691 (home-page "https://github.com/ContinuumIO/pycosat")
10692 (synopsis "Bindings to picosat (a SAT solver)")
10694 "This package provides efficient Python bindings to @code{picosat} on
10695 the C level. When importing pycosat, the @code{picosat} solver becomes part
10696 of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
10697 Problem} (SAT) solver.")
10698 (license license:expat)))
10700 (define-public python2-pycosat
10701 (package-with-python2 python-pycosat))
10703 (define-public python2-ruamel.ordereddict
10705 (name "python2-ruamel.ordereddict")
10710 (uri (pypi-uri "ruamel.ordereddict" version))
10713 "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
10714 (build-system python-build-system)
10716 `(#:python ,python-2
10718 (modify-phases %standard-phases
10720 (add-after 'install 'check
10721 (lambda* (#:key inputs outputs #:allow-other-keys)
10722 (add-installed-pythonpath inputs outputs)
10723 (zero? (system* "python" "test/testordereddict.py")))))))
10724 (home-page "https://bitbucket.org/ruamel/ordereddict")
10725 (synopsis "Version of dict that keeps keys in insertion order")
10727 "This is an implementation of an ordered dictionary with @dfn{Key
10728 Insertion Order} (KIO: updates of values do not affect the position of the
10729 key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
10730 removed and put at the back). The standard library module @code{OrderedDict},
10731 implemented later, implements a subset of @code{ordereddict} functionality.
10732 Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
10733 Order} (KSO, no sorting function can be specified, but a transform can be
10734 specified to apply on the key before comparison (e.g. @code{string.lower})).")
10735 (license license:expat)))
10737 (define-public python-pypeg2
10739 (name "python-pypeg2")
10744 (uri (pypi-uri "pyPEG2" version))
10747 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
10748 (build-system python-build-system)
10749 (propagated-inputs `(("python-lxml" ,python-lxml)))
10751 ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
10753 (home-page "https://fdik.org/pyPEG/")
10754 (synopsis "Parsering Expression Grammars in Python")
10755 (description "PyPEG is an intrinsic parser interpreter framework for
10756 Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
10757 parse many formal languages.")
10758 (license license:gpl2)))
10760 (define-public python-incremental
10762 (name "python-incremental")
10767 (uri (pypi-uri "incremental" version))
10770 "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
10771 (build-system python-build-system)
10772 (home-page "https://github.com/hawkowl/incremental")
10773 (synopsis "Library for versioning Python projects")
10774 (description "Incremental is a small library that versions your Python
10776 (license license:expat)))
10778 (define-public python2-incremental
10779 (package-with-python2 python-incremental))
10781 (define-public python-invoke
10783 (name "python-invoke")
10784 (home-page "http://www.pyinvoke.org/")
10788 (uri (pypi-uri "invoke" version))
10791 "0aiy1xvk1f91246zxd1zqrm679vdvd10h843a2na41cqr3cflpi6"))))
10792 (build-system python-build-system)
10794 ;; XXX: Requires many dependencies that are not yet in Guix.
10796 (synopsis "Pythonic task execution")
10798 "Invoke is a Python task execution tool and library, drawing inspiration
10799 from various sources to arrive at a powerful and clean feature set. It is
10800 evolved from the Fabric project, but focuses on local and abstract concerns
10801 instead of servers and network commands.")
10802 (license license:bsd-3)))
10804 (define-public python2-invoke
10805 (package-with-python2 python-invoke))
10807 (define-public python-automat
10809 (name "python-automat")
10813 (uri (pypi-uri "Automat" version))
10816 "1a7nsrljysfmdqmpn2apfa1gg6rfah4y9sizvns8gb08rx7d07rw"))))
10817 (build-system python-build-system)
10818 ;; We disable the tests because they require python-twisted, while
10819 ;; python-twisted depends on python-automat. Twisted is optional, but the
10820 ;; tests fail if it is not available. Also see
10821 ;; <https://github.com/glyph/automat/issues/71>.
10822 (arguments '(#:tests? #f))
10824 `(("python-m2r" ,python-m2r)
10825 ("python-setuptools-scm" ,python-setuptools-scm)
10826 ("python-graphviz" ,python-graphviz)))
10828 `(("python-six" ,python-six)
10829 ("python-attrs" ,python-attrs)))
10830 (home-page "https://github.com/glyph/Automat")
10831 (synopsis "Self-service finite-state machines")
10832 (description "Automat is a library for concise, idiomatic Python
10833 expression of finite-state automata (particularly deterministic finite-state
10835 (license license:expat)))
10837 (define-public python2-automat
10838 (package-with-python2 python-automat))
10840 (define-public python-m2r
10842 (name "python-m2r")
10846 (uri (pypi-uri "m2r" version))
10849 "1axrwnf425sz4qz3c0qc7yhhki4myzb8rki7pczcsgzznzmqdyxd"))))
10850 (build-system python-build-system)
10852 `(("python-docutils" ,python-docutils)
10853 ("python-mistune" ,python-mistune)))
10855 `(("python-pygments" ,python-pygments)
10856 ("python-mock" ,python-mock)))
10857 (home-page "https://github.com/miyakogi/m2r")
10858 (synopsis "Markdown to reStructuredText converter")
10859 (description "M2R converts a markdown file including reST markups to valid
10861 (license license:expat)))
10863 (define-public python2-m2r
10864 (package-with-python2 python-m2r))
10866 (define-public python-constantly
10868 (name "python-constantly")
10872 (uri (pypi-uri "constantly" version))
10875 "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
10876 (build-system python-build-system)
10877 (home-page "https://github.com/twisted/constantly")
10878 (synopsis "Symbolic constants in Python")
10879 (description "Constantly is a Python library that provides symbolic
10880 constant support. It includes collections and constants with text, numeric,
10881 and bit flag values.")
10882 (license license:expat)))
10884 (define-public python2-constantly
10885 (package-with-python2 python-constantly))
10887 (define-public python-attrs
10889 (name "python-attrs")
10893 (uri (pypi-uri "attrs" version))
10896 "1jafnn1kzd6qhxgprhx6y6ik1r5m2rilx25syzcmq03azp660y8w"))))
10897 (build-system python-build-system)
10899 `(("python-coverage" ,python-coverage)
10900 ("python-hypothesis" ,python-hypothesis)
10901 ("python-pytest" ,python-pytest)
10902 ("python-six" ,python-six)
10903 ("python-sphinx" ,python-sphinx)
10904 ("python-zope-interface" ,python-zope-interface)))
10905 (home-page "https://github.com/python-attrs/attrs/")
10906 (synopsis "Attributes without boilerplate")
10907 (description "@code{attrs} is a Python package with class decorators that
10908 ease the chores of implementing the most common attribute-related object
10910 (license license:expat)))
10912 (define-public python2-attrs
10913 (package-with-python2 python-attrs))
10915 (define-public python-attrs-bootstrap
10917 (inherit python-attrs)
10918 (name "python-attrs-bootstrap")
10919 (native-inputs `())
10920 (arguments `(#:tests? #f))))
10922 (define-public python2-attrs-bootstrap
10923 (package-with-python2 python-attrs-bootstrap))
10925 (define-public python2-cliapp
10927 (name "python2-cliapp")
10928 (version "1.20170823")
10932 (uri (string-append
10933 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
10934 version ".tar.gz"))
10937 "1i9gik0xrj6jmi95s5w988jl1y265baz5xm5pbqdyvsh8h9ln6yq"))))
10938 (build-system python-build-system)
10940 `(#:python ,python-2
10942 (modify-phases %standard-phases
10943 ;; check phase needs to be run before the build phase. If not,
10944 ;; coverage-test-runner looks for tests for the built source files,
10947 (add-before 'build 'check
10949 ;; Disable python3 tests
10950 (substitute* "check"
10951 (("python3") "# python3"))
10952 (zero? (system* "./check")))))))
10954 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
10955 ("python2-pep8" ,python2-pep8)))
10957 `(("python2-pyaml" ,python2-pyaml)))
10958 (home-page "https://liw.fi/cliapp/")
10959 (synopsis "Python framework for command line programs")
10960 (description "@code{python2-cliapp} is a python framework for
10961 command line programs. It contains the typical stuff such programs
10962 need to do, such as parsing the command line for options, and
10963 iterating over input files.")
10964 (license license:gpl2+)))
10966 (define-public python2-ttystatus
10968 (name "python2-ttystatus")
10973 (uri (string-append
10974 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/ttystatus/snapshot/ttystatus-"
10975 version ".tar.gz"))
10978 "0vivqbw7ddhsq1zj3g9cvvv4f0phl0pis2smsnwcr2szz2fk3hl6"))))
10979 (build-system python-build-system)
10981 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
10982 ("python2-pep8" ,python2-pep8)))
10984 `(#:python ,python-2
10986 (modify-phases %standard-phases
10987 ;; check phase needs to be run before the build phase. If not,
10988 ;; coverage-test-runner looks for tests for the built source files,
10991 (add-before 'build 'check
10993 (zero? (system* "make" "check")))))))
10994 (home-page "https://liw.fi/ttystatus/")
10995 (synopsis "Python library for showing progress reporting and
10996 status updates on terminals")
10997 (description "@code{python2-ttystatus} is a python library for
10998 showing progress reporting and status updates on terminals, for
10999 command line programs. Output is automatically adapted to the width
11000 of the terminal: truncated if it does not fit, and resized if the
11001 terminal size changes.")
11002 (license license:gpl3+)))
11004 (define-public python2-tracing
11006 (name "python2-tracing")
11011 (uri (string-append
11012 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-"
11013 version ".tar.gz"))
11016 "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw"))))
11017 (build-system python-build-system)
11019 `(#:python ,python-2))
11020 (home-page "https://liw.fi/tracing/")
11021 (synopsis "Python debug logging helper")
11022 (description "@code{python2-tracing} is a python library for
11023 logging debug messages. It provides a way to turn debugging messages
11024 on and off, based on the filename they occur in. It is much faster
11025 than using @code{logging.Filter} to accomplish the same thing, which
11026 matters when code is run in production mode. The actual logging still
11027 happens using the @code{logging} library.")
11028 (license license:gpl3+)))
11030 (define-public python2-larch
11032 (name "python2-larch")
11033 (version "1.20151025")
11037 (uri (string-append
11038 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-"
11039 version ".tar.gz"))
11040 (patches (search-patches
11041 "python2-larch-coverage-4.0a6-compatibility.patch"))
11044 "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663"))))
11045 (build-system python-build-system)
11047 `(#:python ,python-2
11049 (modify-phases %standard-phases
11050 ;; check phase needs to be run before the build phase. If not,
11051 ;; coverage-test-runner looks for tests for the built source files,
11054 (add-before 'build 'check
11056 (zero? (system* "make" "check")))))))
11058 `(("cmdtest" ,cmdtest)
11059 ("python2-coverage-test-runner" ,python2-coverage-test-runner)))
11061 `(("python2-tracing" ,python2-tracing)))
11062 (home-page "https://liw.fi/larch/")
11063 (synopsis "Python copy-on-write B-tree library")
11064 (description "@code{python2-larch} is an implementation of
11065 particular kind of B-tree, based on research by Ohad Rodeh. See
11066 @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details
11067 on the data structure.
11069 The distinctive feature of this B-tree is that a node is never
11070 (conceptually) modified. Instead, all updates are done by
11071 copy-on-write. This makes it easy to clone a tree, and modify only the
11072 clone, while other processes access the original tree.")
11073 (license license:gpl3+)))
11075 (define-public python-astroid
11077 (name "python-astroid")
11082 (uri (string-append
11083 "https://github.com/PyCQA/astroid/archive/astroid-"
11084 version ".tar.gz"))
11087 "0isn5p7f9n48hmksgbrj7dkm9dyglnayzn5jngk37qywg8a74ngn"))))
11088 (build-system python-build-system)
11090 `(("python-lazy-object-proxy" ,python-lazy-object-proxy)
11091 ("python-six" ,python-six)
11092 ("python-wrapt" ,python-wrapt)))
11095 (modify-phases %standard-phases
11098 (zero? (system* "python" "-m" "unittest" "discover"
11099 "-p" "unittest*.py")))))))
11100 (home-page "https://github.com/PyCQA/astroid")
11101 (synopsis "Common base representation of python source code for pylint and
11103 (description "@code{python-astroid} provides a common base representation
11104 of python source code for projects such as pychecker, pyreverse, pylint, etc.
11106 It provides a compatible representation which comes from the _ast module. It
11107 rebuilds the tree generated by the builtin _ast module by recursively walking
11108 down the AST and building an extended ast. The new node classes have
11109 additional methods and attributes for different usages. They include some
11110 support for static inference and local name scopes. Furthermore, astroid
11111 builds partial trees by inspecting living objects.")
11112 (license license:lgpl2.1+)
11113 (properties `((python2-variant . ,(delay python2-astroid))))))
11115 (define-public python2-astroid
11116 (let ((base (package-with-python2
11117 (strip-python2-variant python-astroid))))
11118 (package (inherit base)
11120 `(("python2-backports-functools-lru-cache"
11121 ,python2-backports-functools-lru-cache)
11122 ("python2-enum34" ,python2-enum34)
11123 ("python2-singledispatch" ,python2-singledispatch)
11124 ,@(package-propagated-inputs base))))))
11126 (define-public python-isort
11128 (name "python-isort")
11133 (uri (string-append
11134 "https://github.com/timothycrosley/isort/archive/"
11135 version ".tar.gz"))
11136 (file-name (string-append name "-" version ".tar.gz"))
11139 "0zsrgkb0krn5476yncy5dd56k7dk34zqb4bnlvwy44ixgilyjmfh"))))
11140 (build-system python-build-system)
11142 `(("python-mock" ,python-mock)
11143 ("python-pytest" ,python-pytest)))
11144 (home-page "https://github.com/timothycrosley/isort")
11145 (synopsis "Python utility/library to sort python imports")
11146 (description "@code{python-isort} is a python utility/library to sort
11147 imports alphabetically, and automatically separated into sections. It
11148 provides a command line utility, a python library and plugins for various
11150 (license license:expat)))
11152 (define-public python2-isort
11153 (package-with-python2 python-isort))
11155 (define-public python2-backports-functools-lru-cache
11157 (name "python2-backports-functools-lru-cache")
11162 ;; only the pypi tarballs contain the necessary metadata
11163 (uri (pypi-uri "backports.functools_lru_cache" version))
11166 "158ysf2hb0q4p4695abfiym9x1ywg0dgh8a3apd7gqaaxjy22jj4"))))
11167 (build-system python-build-system)
11169 `(("python2-setuptools-scm" ,python2-setuptools-scm)))
11171 `(#:python ,python-2))
11172 (home-page "https://github.com/jaraco/backports.functools_lru_cache")
11173 (synopsis "Backport of functools.lru_cache from Python 3.3")
11174 (description "@code{python2-backports-functools-lru-cache} is a backport
11175 of @code{functools.lru_cache} from python 3.3.")
11176 (license license:expat)))
11178 (define-public python-configparser
11180 (name "python-configparser")
11185 (uri (string-append
11186 "https://bitbucket.org/ambv/configparser/get/"
11187 version ".tar.bz2"))
11188 (file-name (string-append name "-" version ".tar.gz"))
11191 "0waq40as14abwzbb321hfz4vr1fi363nscy32ga14qvfygrg96wa"))))
11192 (build-system python-build-system)
11193 (home-page "http://docs.python.org/py3k/library/configparser.html")
11194 (synopsis "Backport of configparser from python 3.5")
11195 (description "@code{python-configparser} is a backport of
11196 @code{configparser} from Python 3.5 so that it can be used directly
11197 in other versions.")
11198 (license license:expat)))
11200 (define-public python2-configparser
11201 (package-with-python2 python-configparser))
11203 (define-public python-mando
11205 (name "python-mando")
11209 (uri (pypi-uri "mando" version))
11212 "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr"))))
11213 (build-system python-build-system)
11215 `(("python-rst2ansi" ,python-rst2ansi)
11216 ("python-six" ,python-six)))
11218 `(("python-pytest" ,python-pytest)))
11219 (home-page "https://mando.readthedocs.org/")
11221 "Wrapper around argparse, allowing creation of complete CLI applications")
11223 "This package is a wrapper around argparse, allowing you to write complete CLI
11224 applications in seconds while maintaining all the flexibility.")
11225 (license license:expat)))
11227 (define-public python2-mando
11228 (package-with-python2 python-mando))
11230 (define-public python-fudge
11232 (name "python-fudge")
11233 ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2
11234 ;; package, which is currently the only use of this package.
11239 (uri (pypi-uri "fudge" version))
11242 "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l"))))
11243 (build-system python-build-system)
11245 `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package.
11246 (home-page "https://github.com/fudge-py/fudge")
11247 (synopsis "Replace real objects with fakes/mocks/stubs while testing")
11249 "Fudge is a Python module for using fake objects (mocks and stubs) to
11252 In readable Python code, you declare the methods available on your fake object
11253 and how they should be called. Then you inject that into your application and
11254 start testing. This declarative approach means you don’t have to record and
11255 playback actions and you don’t have to inspect your fakes after running code.
11256 If the fake object was used incorrectly then you’ll see an informative
11257 exception message with a traceback that points to the culprit.")
11258 (license license:expat)))
11260 (define-public python2-fudge
11261 (package-with-python2 python-fudge))
11263 (define-public python-mwclient
11265 (name "python-mwclient")
11270 ;; The PyPI version wouldn't contain tests.
11271 (uri (string-append "https://github.com/mwclient/mwclient/archive/"
11272 "v" version ".tar.gz"))
11273 (file-name (string-append name "-" version ".tar.gz"))
11276 "1jj0yhilkjir00719fc7w133x7hdyhkxhk6xblla4asig45klsfv"))))
11277 (build-system python-build-system)
11279 `(("python-requests" ,python-requests)
11280 ("python-requests-oauthlib"
11281 ,python-requests-oauthlib)
11282 ("python-six" ,python-six)))
11284 `(("python-mock" ,python-mock)
11285 ("python-pytest" ,python-pytest)
11286 ("python-pytest-pep8" ,python-pytest-pep8)
11287 ("python-pytest-cache" ,python-pytest-cache)
11288 ("python-pytest-cov" ,python-pytest-cov)
11289 ("python-responses" ,python-responses)))
11290 (home-page "https://github.com/btongminh/mwclient")
11291 (synopsis "MediaWiki API client")
11292 (description "This package provides a MediaWiki API client.")
11293 (license license:expat)))
11295 (define-public python2-mwclient
11296 (package-with-python2 python-mwclient))
11298 (define-public python-utils
11300 (name "python-utils")
11304 (uri (pypi-uri "python-utils" version))
11307 "1mcsy6q5am4ya72rgkpb6kax6vv7c93cfkkas89xnpa4sj9zf28p"))))
11308 (build-system python-build-system)
11310 `(("pytest-runner" ,python-pytest-runner)
11311 ("pytest" ,python-pytest)
11312 ("six" ,python-six)))
11313 (home-page "https://github.com/WoLpH/python-utils")
11314 (synopsis "Convenient utilities not included with the standard Python install")
11316 "Python Utils is a collection of small Python functions and classes which
11317 make common patterns shorter and easier.")
11318 (license license:bsd-2)))
11320 (define-public python2-utils
11321 (package-with-python2 python-utils))
11323 (define-public python-sphinx-me
11325 (name "python-sphinx-me")
11330 (uri (pypi-uri "sphinx-me" version))
11333 "06jzgp213zihnvpcy2y5jy3ykid3apc2ncp2pg6a2g05lhiziglq"))))
11334 (build-system python-build-system)
11335 (home-page "https://github.com/stephenmcd/sphinx-me")
11336 (synopsis "Create a Sphinx documentation shell")
11338 "Create a Sphinx documentation shell for your project and include the
11339 README file as the documentation index. It handles extracting the required
11340 meta data such as the project name, author and version from your project for
11341 use in your Sphinx docs.")
11342 (license license:bsd-2)))
11344 (define-public python2-sphinx-me
11345 (package-with-python2 python-sphinx-me))
11347 (define-public python-diff-match-patch
11349 (name "python-diff-match-patch")
11350 (version "20121119")
11354 (uri (pypi-uri "diff-match-patch" version))
11357 "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
11358 (build-system python-build-system)
11359 (home-page "https://code.google.com/p/google-diff-match-patch")
11360 (synopsis "Synchronize plain text")
11361 (description "Diff Match and Patch libraries offer robust algorithms to
11362 perform the operations required for synchronizing plain text.")
11363 (license license:asl2.0)))
11365 (define-public python2-diff-match-patch
11366 (package-with-python2 python-diff-match-patch))
11368 (define-public python-dirsync
11370 (name "python-dirsync")
11375 (uri (pypi-uri "dirsync" version ".zip"))
11378 "1hcdvmkwd5512zbxpin0k7bx5bkgzy3swjx7d0kj1y45af6r75v2"))))
11379 (build-system python-build-system)
11381 `(("unzip" ,unzip)))
11383 `(("six" ,python-six)))
11384 (home-page "https://bitbucket.org/tkhyn/dirsync")
11385 (synopsis "Advanced directory tree synchronisation tool")
11386 (description "Advanced directory tree synchronisation tool.")
11387 (license license:expat)))
11389 (define-public python2-dirsync
11390 (package-with-python2 python-dirsync))
11392 (define-public python-levenshtein
11394 (name "python-levenshtein")
11399 (uri (pypi-uri "python-Levenshtein" version))
11402 "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"))))
11403 (build-system python-build-system)
11404 (home-page "https://github.com/ztane/python-Levenshtein")
11405 (synopsis "Fast computation of Levenshtein distance and string similarity")
11407 "The Levenshtein Python C extension module contains functions for fast computation of
11409 @item Levenshtein (edit) distance, and edit operations
11410 @item string similarity
11411 @item approximate median strings, and generally string averaging
11412 @item string sequence and set similarity
11414 It supports both normal and Unicode strings.")
11415 (license license:gpl2+)))
11417 (define-public python2-levenshtein
11418 (package-with-python2 python-levenshtein))
11420 (define-public python-scandir
11422 (name "python-scandir")
11427 (uri (pypi-uri "scandir" version))
11429 (base32 "0gbnhjzg42rj87ljv9kb648rfxph69ly3c8r9841dxy4d7l5pmdj"))))
11430 (build-system python-build-system)
11432 `(#:phases (modify-phases %standard-phases
11435 (invoke "python" "test/run_tests.py"))))))
11436 (home-page "https://github.com/benhoyt/scandir")
11437 (synopsis "Directory iteration function")
11439 "Directory iteration function like os.listdir(), except that instead of
11440 returning a list of bare filenames, it yields DirEntry objects that include
11441 file type and stat information along with the name. Using scandir() increases
11442 the speed of os.walk() by 2-20 times (depending on the platform and file
11443 system) by avoiding unnecessary calls to os.stat() in most cases.
11445 This package is part of the Python standard library since version 3.5.")
11446 (license license:bsd-3)))
11448 (define-public python2-scandir
11449 (package-with-python2 python-scandir))
11451 (define-public python2-stemming
11453 (name "python2-stemming")
11458 (uri (pypi-uri "stemming" version))
11460 (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr"))))
11461 (build-system python-build-system)
11463 `(#:python ,python-2))
11464 (home-page "https://bitbucket.org/mchaput/stemming/overview")
11465 (synopsis "Python implementations of various stemming algorithms")
11467 "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins
11468 stemming algorithms for English. These implementations are straightforward and
11469 efficient, unlike some Python versions of the same algorithms available on the
11470 Web. This package is an extraction of the stemming code included in the Whoosh
11472 (license license:public-domain)))
11474 (define-public python-factory-boy
11476 (name "python-factory-boy")
11481 (uri (pypi-uri "factory_boy" version))
11483 (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56"))))
11484 (build-system python-build-system)
11486 ;; Tests are not included in the tarball.
11489 `(("faker" ,python-faker)))
11490 (home-page "https://github.com/benhoyt/scandir")
11491 (synopsis "Versatile test fixtures replacement")
11493 "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl.
11495 As a fixtures replacement tool, it aims to replace static, hard to maintain
11496 fixtures with easy-to-use factories for complex object.
11498 Instead of building an exhaustive test setup with every possible combination
11499 of corner cases, factory_boy allows you to use objects customized for the
11500 current test, while only declaring the test-specific fields")
11501 (license license:expat)))
11503 (define-public python2-factory-boy
11504 (package-with-python2 python-factory-boy))
11506 (define-public python-translate-toolkit
11508 (name "python-translate-toolkit")
11513 (uri (pypi-uri "translate-toolkit" version ".tar.bz2"))
11515 (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq"))))
11516 (build-system python-build-system)
11518 `(("python-pytest" ,python-pytest)
11519 ("python-sphinx" ,python-sphinx)))
11521 `(("python-babel" ,python-babel)
11522 ("python-beautifulsoup4" ,python-beautifulsoup4)
11523 ("python-chardet" ,python-chardet)
11524 ("python-diff-match-patch" ,python-diff-match-patch)
11525 ("python-levenshtein" ,python-levenshtein)
11526 ("python-lxml" ,python-lxml)
11527 ("python-six" ,python-six)
11528 ("python-vobject" ,python-vobject)
11529 ("python-pyyaml" ,python-pyyaml)))
11531 ;; TODO: tests are not run, because they end with
11532 ;; TypeError: parse() missing 2 required positional arguments: 'tree' and
11534 ;; during test setup.
11536 (home-page "http://toolkit.translatehouse.org")
11537 (synopsis "Tools and API for translation and localization engineering")
11539 "Tools and API for translation and localization engineering. It contains
11540 several utilities, as well as an API for building localization tools.")
11541 (license license:gpl2+)))
11543 (define-public python2-translate-toolkit
11544 (package-with-python2 python-translate-toolkit))
11546 (define-public python-packaging
11548 (name "python-packaging")
11553 (uri (pypi-uri "packaging" version))
11556 "17k1xbjshackwvbsnxqixbph8rbqhz4bf4g3al5xyzhavxgq6l2x"))))
11557 (build-system python-build-system)
11559 `(("python-pretend" ,python-pretend)
11560 ("python-pytest" ,python-pytest)))
11562 `(("python-pyparsing" ,python-pyparsing)
11563 ("python-six" ,python-six)))
11564 (home-page "https://github.com/pypa/packaging")
11565 (synopsis "Core utilities for Python packages")
11566 (description "Packaging is a Python module for dealing with Python packages.
11567 It offers an interface for working with package versions, names, and dependency
11569 ;; From 'LICENSE': This software is made available under the terms of
11570 ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
11571 ;; Contributions to this software is made under the terms of *both* these
11573 (license (list license:asl2.0 license:bsd-2))))
11575 (define-public python2-packaging
11576 (package-with-python2 python-packaging))
11578 (define-public python-relatorio
11580 (name "python-relatorio")
11585 (uri (pypi-uri "relatorio" version))
11588 "1na6hlhz1awi1hbjg1gyclq0khz42iz90wvdjw7mmj655788bpxx"))))
11589 (build-system python-build-system)
11591 `(("python-lxml" ,python-lxml)
11592 ("python-genshi" ,python-genshi)))
11594 `(("python-magic" ,python-magic)))
11595 (home-page "https://relatorio.tryton.org/")
11596 (synopsis "Templating library able to output ODT and PDF files")
11597 (description "Relatorio is a templating library which provides a way to
11598 easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
11599 for more filetypes can be easily added by creating plugins for them.")
11600 (license license:gpl3+)))
11602 (define-public python2-relatorio
11603 (package-with-python2 python-relatorio))
11605 (define-public python-radon
11607 (name "python-radon")
11612 (uri (pypi-uri "radon" version))
11615 "07gq5hq4nrffxnlnksws9hrx7fd001gam63j62i82gyfr23gvdym"))))
11616 (build-system python-build-system)
11618 `(#:phases (modify-phases %standard-phases
11621 (invoke "python" "radon/tests/run.py"))))))
11623 `(("python-colorama" ,python-colorama)
11624 ("python-flake8-polyfill" ,python-flake8-polyfill)
11625 ("python-mando" ,python-mando)))
11627 `(("python-pytest" ,python-pytest)
11628 ("python-pytest-mock" ,python-pytest-mock)))
11629 (home-page "https://radon.readthedocs.org/")
11630 (synopsis "Code Metrics in Python")
11631 (description "Radon is a Python tool which computes various code metrics.
11632 Supported metrics are:
11634 @item raw metrics: SLOC, comment lines, blank lines, &c.
11635 @item Cyclomatic Complexity (i.e. McCabe’s Complexity)
11636 @item Halstead metrics (all of them)
11637 @item the Maintainability Index (a Visual Studio metric)
11639 (license license:expat)))
11641 (define-public python2-radon
11642 (package-with-python2 python-radon))
11644 (define-public python-sure
11646 (name "python-sure")
11651 (uri (pypi-uri "sure" version))
11654 "1iyqsy2d6radi88g1qf0lziy5b39h5cpb3g5jiqyb4xi46ig3x1z"))))
11655 (build-system python-build-system)
11657 `(("python-mock" ,python-mock)
11658 ("python-six" ,python-six)))
11660 `(("python-nose" ,python-nose)))
11661 (home-page "https://github.com/gabrielfalcao/sure")
11662 (synopsis "Automated testing library in python for python")
11664 "Sure is a python library that leverages a DSL for writing assertions.
11665 Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
11666 (license license:gpl3+)))
11668 (define-public python2-sure
11669 (package-with-python2 python-sure))
11671 (define-public python2-couleur
11672 ;; This package does not seem to support python3 at all, hence,
11673 ;; only the python2 variant definition is provided.
11675 (name "python2-couleur")
11680 (uri (pypi-uri "couleur" version))
11683 "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
11684 (build-system python-build-system)
11686 `(#:python ,python-2))
11687 (home-page "https://github.com/gabrielfalcao/couleur")
11689 "ANSI terminal tool for python, colored shell and other handy fancy features")
11691 "@code{Couleur} provides python programs a way to use the ANSI features in a unix
11692 terminal such as coloured output in the shell, overwriting output, indentation, etc.")
11693 ;; README.md says ASL2.0, but all source code headers are LGPL3+.
11694 ;; https://github.com/gabrielfalcao/couleur/issues/11
11695 (license license:lgpl3+)))
11697 (define-public python-misaka
11699 (name "python-misaka")
11704 (uri (pypi-uri "misaka" version))
11707 "1yqrq3a5rracirmvk52n28nn6ckdaz897gnigv89a9gmyn87sqw7"))))
11708 (build-system python-build-system)
11710 `(;; Line 37 of setup.py calls self.run_command('develop')
11711 ;; in the 'check' phase. This command seems to be trying
11713 ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
11714 ;; for which it does not have the permission to write.
11717 `(("python-cffi" ,python-cffi)))
11718 (home-page "https://github.com/FSX/misaka")
11719 (synopsis "Python binding for Hoedown")
11721 "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
11722 library written in C. It features a fast HTML renderer and functionality to make custom
11723 renderers (e.g. man pages or LaTeX).")
11724 (license license:expat)))
11726 (define-public python2-misaka
11727 (package-with-python2 python-misaka))
11729 (define-public python2-steadymark
11730 ;; This is forced into being a python2 only variant
11731 ;; due to its dependence on couleur that has no support
11734 (name "python2-steadymark")
11739 (uri (pypi-uri "steadymark" version))
11742 "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
11743 (build-system python-build-system)
11745 `(("python-couleur" ,python2-couleur)
11746 ("python-sure" ,python2-sure)
11747 ("python-misaka" ,python2-misaka)))
11749 `(#:python ,python-2
11751 (modify-phases %standard-phases
11752 (add-before 'build 'patch-setup-py
11754 ;; Update requirements from dependency==version
11755 ;; to dependency>=version
11756 (substitute* "setup.py"
11759 (home-page "https://github.com/gabrielfalcao/steadymark")
11760 (synopsis "Markdown-based test runner for python")
11762 "@code{Steadymark} allows documentation to be written in github-flavoured
11763 markdown. The documentation may contain snippets of code surrounded by python
11764 code blocks and @code{Steadymark} will find these snippets and run them, making
11765 sure that there are no old malfunctional examples in the documentation examples.")
11766 (license license:expat)))
11768 (define-public python-jsonpointer
11770 (name "python-jsonpointer")
11775 (uri (pypi-uri "jsonpointer" version))
11778 "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
11779 (build-system python-build-system)
11780 (home-page "https://github.com/stefankoegl/python-json-pointer")
11781 (synopsis "Identify specific nodes in a JSON document")
11782 (description "@code{jsonpointer} allows you to access specific nodes
11783 by path in a JSON document (see RFC 6901).")
11784 (license license:bsd-3)))
11786 (define-public python2-jsonpointer
11787 (package-with-python2 python-jsonpointer))
11789 (define-public python-jsonpatch
11791 (name "python-jsonpatch")
11796 ;; pypi version lacks tests.js
11797 (uri (string-append "https://github.com/stefankoegl/python-json-patch/"
11798 "archive/v" version ".tar.gz"))
11799 (file-name (string-append name "-" version ".tar.gz"))
11802 "085ykisl8v7mv9h7hvhdy3l2fjzs4214gx32r5k6nx4f76hbv6y5"))))
11803 (build-system python-build-system)
11805 `(("python-jsonpointer" ,python-jsonpointer)))
11806 (home-page "https://github.com/stefankoegl/python-json-patch")
11807 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
11808 (description "@code{jsonpatch} is a library and program that allows
11809 applying JSON Patches according to RFC 6902.")
11810 (license license:bsd-3)))
11812 (define-public python2-jsonpatch
11813 (package-with-python2 python-jsonpatch))
11815 (define-public python-jsonpatch-0.4
11816 (package (inherit python-jsonpatch)
11817 (name "python-jsonpatch")
11822 (uri (string-append "https://github.com/stefankoegl/python-json-patch/"
11823 "archive/v" version ".tar.gz"))
11824 (file-name (string-append name "-" version ".tar.gz"))
11827 "0j0cd9z9zyp8kppp464jxrfgrnbgkzl1yi10i5gsv8yz6d95929d"))))))
11829 (define-public python2-jsonpatch-0.4
11830 (package-with-python2 python-jsonpatch-0.4))
11832 (define-public python-rfc3986
11834 (name "python-rfc3986")
11838 (uri (pypi-uri "rfc3986" version))
11841 "06wlmysw83f75ff84zr1yr6n0shvc2xn1n1sb4iwzqap9hf5fn44"))))
11842 (build-system python-build-system)
11844 `(#:modules ((guix build utils)
11845 (guix build python-build-system)
11850 (modify-phases %standard-phases
11853 (let ((cwd (getcwd)))
11854 (setenv "PYTHONPATH"
11855 (string-append cwd "/build/"
11856 (find (cut string-prefix? "lib" <>)
11857 (scandir (string-append cwd "/build")))
11859 (getenv "PYTHONPATH")))
11860 (invoke "pytest" "-v")))))))
11862 `(("python-pytest" ,python-pytest)))
11863 (home-page "https://rfc3986.readthedocs.io/")
11864 (synopsis "Parse and validate URI references")
11866 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
11867 validation and authority parsing. This module also supports RFC@tie{}6874
11868 which adds support for zone identifiers to IPv6 addresses.")
11869 (license license:asl2.0)))
11871 (define-public python2-rfc3986
11872 (package-with-python2 python-rfc3986))
11874 (define-public python-rfc3987
11876 (name "python-rfc3987")
11881 (uri (pypi-uri "rfc3987" version))
11884 "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
11885 (build-system python-build-system)
11886 (home-page "https://pypi.python.org/pypi/rfc3987")
11887 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
11888 (description "@code{rfc3987} provides routines for parsing and
11889 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
11890 (license license:gpl3+)))
11892 (define-public python2-rfc3987
11893 (package-with-python2 python-rfc3987))
11895 (define-public python-validate-email
11897 (name "python-validate-email")
11902 (uri (pypi-uri "validate_email" version))
11905 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
11906 (build-system python-build-system)
11907 (home-page "https://github.com/syrusakbary/validate_email")
11908 (synopsis "Verifies if an email address is valid and really exists")
11909 (description "@code{validate_email} can be used to verify if an email
11910 address is valid and really exists.")
11911 (license license:lgpl3+)))
11913 (define-public python2-validate-email
11914 (package-with-python2 python-validate-email))
11916 (define-public python-flex
11918 (name "python-flex")
11923 (uri (pypi-uri "flex" version))
11926 "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
11927 (build-system python-build-system)
11929 `(("python-click" ,python-click)
11930 ("python-iso8601" ,python-iso8601)
11931 ("python-jsonpointer" ,python-jsonpointer)
11932 ("python-pyyaml" ,python-pyyaml)
11933 ("python-requests" ,python-requests)
11934 ("python-rfc3987" ,python-rfc3987)
11935 ("python-six" ,python-six)
11936 ("python-validate-email" ,python-validate-email)))
11937 (home-page "https://github.com/pipermerriam/flex")
11938 (synopsis "Validates Swagger schemata")
11939 (description "@code{flex} can be used to validate Swagger schemata.")
11940 (license license:bsd-3)))
11942 (define-public python2-flex
11943 (package-with-python2 python-flex))
11945 (define-public python-marshmallow
11947 (name "python-marshmallow")
11948 (version "3.0.0b3")
11952 (uri (pypi-uri "marshmallow" version))
11955 "07mcrij1yvk85lvgx44wwr9pc80xryghvlgayb057g1cazcypysd"))))
11956 (build-system python-build-system)
11958 `(("python-dateutil" ,python-dateutil)
11959 ("python-simplejson" ,python-simplejson)))
11961 `(("python-pytest" ,python-pytest)
11962 ("python-pytz" ,python-pytz)))
11963 (home-page "https://github.com/marshmallow-code/marshmallow")
11964 (synopsis "Convert complex datatypes to and from native
11965 Python datatypes.")
11966 (description "@code{marshmallow} provides a library for converting
11967 complex datatypes to and from native Python datatypes.")
11968 (license license:expat)))
11970 (define-public python2-marshmallow
11971 (package-with-python2 python-marshmallow))
11973 (define-public python-apispec
11975 (name "python-apispec")
11980 (uri (pypi-uri "apispec" version))
11983 "0kxa8723zbisx10363yh4mmmn4higxrspymbjfz5zq8f644zagm9"))))
11984 (build-system python-build-system)
11986 `(("python-pyyaml" ,python-pyyaml)))
11988 `(("python-pytest" ,python-pytest)
11989 ("python-flask" ,python-flask)
11990 ("python-marshmallow" ,python-marshmallow)
11991 ("python-tornado" ,python-tornado)
11992 ("python-bottle" ,python-bottle)
11993 ("python-mock" ,python-mock)))
11994 (home-page "https://github.com/marshmallow-code/apispec")
11995 (synopsis "Swagger 2.0 API specification generator")
11996 (description "@code{python-apispec} is a pluggable API specification
11997 generator. Currently supports the OpenAPI specification (f.k.a.
11999 (license license:expat)))
12001 (define-public python2-apispec
12002 (package-with-python2 python-apispec))
12004 (define-public python-flasgger
12006 (name "python-flasgger")
12011 (uri (string-append "https://github.com/rochacbruno/flasgger/archive/"
12012 version ".tar.gz"))
12013 (file-name (string-append name "-" version ".tar.gz"))
12016 "1gqzlm0rb55fdpsy5ipkganlx9cnpi454fqyycr03jm22zql14ay"))))
12017 (build-system python-build-system)
12020 (modify-phases %standard-phases
12022 (lambda* (#:key inputs outputs #:allow-other-keys)
12023 (substitute* "Makefile"
12024 (("flake8 flasgger --ignore=F403")
12025 "flake8 flasgger --ignore=E731,F403"))
12026 (setenv "PYTHONPATH" (string-append (getcwd)
12028 (getenv "PYTHONPATH")))
12029 (zero? (system* "py.test")))))))
12031 `(("python-flask" ,python-flask)
12032 ("python-pyyaml" ,python-pyyaml)
12033 ("python-jsonschema" ,python-jsonschema)
12034 ("python-mistune" ,python-mistune)
12035 ("python-six" ,python-six)))
12037 `(("python-decorator" ,python-decorator)
12038 ("python-flake8" ,python-flake8)
12039 ("python-flask-restful" ,python-flask-restful)
12040 ("python-flex" ,python-flex)
12041 ("python-pytest" ,python-pytest)
12042 ("python-pytest-cov" ,python-pytest-cov)
12043 ("python-marshmallow" ,python-marshmallow)
12044 ("python-apispec" ,python-apispec)))
12045 (home-page "https://github.com/rochacbruno/flasgger/")
12046 (synopsis "Extract Swagger specs from your Flask project")
12047 (description "@code{python-flasgger} allows extracting Swagger specs
12048 from your Flask project. It is a fork of Flask-Swagger.")
12049 (license license:expat)))
12051 (define-public python2-flasgger
12052 (package-with-python2 python-flasgger))
12054 (define-public python-swagger-spec-validator
12056 (name "python-swagger-spec-validator")
12061 (uri (pypi-uri "swagger-spec-validator" version))
12064 "13hkpn2lycwr0468yqhjb3kwszqf7hjwlq61w7vdxq1caz31k4nw"))))
12065 (build-system python-build-system)
12067 `(("python-jsonschema" ,python-jsonschema)
12068 ("python-six" ,python-six)))
12070 "https://github.com/Yelp/swagger_spec_validator")
12071 (synopsis "Validation of Swagger specifications")
12072 (description "@code{swagger_spec_validator} provides a library for
12073 validating Swagger API specifications.")
12074 (license license:asl2.0)))
12076 (define-public python2-swagger-spec-validator
12077 (package-with-python2 python-swagger-spec-validator))
12079 (define-public python-apache-libcloud
12081 (name "python-apache-libcloud")
12086 (uri (pypi-uri "apache-libcloud" version))
12089 "1a71z02ckcxld72k4qgmdnkjan52c4wczncs3p2mp5yafh7dsan7"))))
12090 (build-system python-build-system)
12093 (modify-phases %standard-phases
12094 (add-after 'unpack 'patch-ssh
12095 (lambda* (#:key inputs #:allow-other-keys)
12096 (substitute* "libcloud/compute/ssh.py"
12097 (("'ssh'") (string-append "'" (assoc-ref inputs "openssh")
12100 (add-after 'unpack 'patch-tests
12102 (substitute* "./libcloud/test/test_file_fixtures.py"
12103 ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-923>.
12104 (("def _ascii") "def _raw_data(self, method, url, body, headers):
12105 return (httplib.OK,
12107 {\"test\": \"value\"},
12108 httplib.responses[httplib.OK])
12110 (substitute* "libcloud/test/compute/test_ssh_client.py"
12111 (("class ShellOutSSHClientTests")
12112 "@unittest.skip(\"Guix container doesn't have ssh service\")
12113 class ShellOutSSHClientTests")
12114 ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-924>.
12115 (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'")
12116 (("'.xF0', '.x90', '.x8D', '.x88'")
12117 "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'"))
12120 `(("openssh" ,openssh)))
12122 `(("python-paramiko" ,python-paramiko)
12123 ("python-requests" ,python-requests)))
12125 `(("python-lockfile" ,python-lockfile)
12126 ("python-mock" ,python-mock)
12127 ("python-requests-mock" ,python-requests-mock)))
12128 (home-page "https://libcloud.apache.org/")
12129 (synopsis "Unified Cloud API")
12130 (description "@code{libcloud} is a Python library for interacting with
12131 many of the popular cloud service providers using a unified API.")
12132 (license license:asl2.0)))
12134 (define-public python2-apache-libcloud
12135 (package-with-python2 python-apache-libcloud))
12137 (define-public python-smmap2
12139 (name "python-smmap2")
12144 (uri (pypi-uri "smmap2" version))
12147 "1hvn28p3zvxa98sbi9lrqvv2ps4q284j4jq9a619zw0m7yv0sly7"))))
12148 (build-system python-build-system)
12150 `(("python-nosexcover" ,python-nosexcover)))
12151 (home-page "https://github.com/Byron/smmap")
12152 (synopsis "Python sliding window memory map manager")
12153 (description "@code{smmap2} is a pure Python implementation of a sliding
12154 window memory map manager.")
12155 (license license:bsd-3)))
12157 (define-public python2-smmap2
12158 (package-with-python2 python-smmap2))
12160 (define-public python-regex
12162 (name "python-regex")
12163 (version "2017.06.07")
12166 (uri (pypi-uri "regex" version))
12169 "06r6b7yigikbj3a72whl85r2b64pj1r0ypmw9yalmkm0wnxq8mz4"))))
12170 (build-system python-build-system)
12171 (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
12172 (synopsis "Alternative regular expression module")
12173 (description "This regular expression implementation is backwards-
12174 compatible with the standard @code{re} module, but offers additional
12175 functionality like full case-folding for case-insensitive matches in Unicode.")
12176 (license license:psfl)))
12178 (define-public python2-regex
12179 (package-with-python2 python-regex))
12181 (define-public python2-pyopengl
12183 (name "python2-pyopengl")
12188 (uri (pypi-uri "PyOpenGL" version))
12191 "1byxjj6a8rwzhxhjqlc588zdad2qwxdd7vlam2653ylll31waiwv"))))
12193 `(#:python ,python-2))
12194 (build-system python-build-system)
12195 (home-page "http://pyopengl.sourceforge.net")
12196 (synopsis "Standard OpenGL bindings for Python")
12198 "PyOpenGL is the most common cross platform Python binding to OpenGL and
12199 related APIs. The binding is created using the standard @code{ctypes}
12201 (license license:bsd-3)))
12203 (define-public python2-pyopengl-accelerate
12205 (inherit python2-pyopengl)
12206 (name "python2-pyopengl-accelerate")
12211 (uri (pypi-uri "PyOpenGL-accelerate" version))
12214 "0464c1ifzk0k92lyndikmvzjgnx1y25r7bkkc8pnxm4kp1q4czwj"))))
12215 (synopsis "Acceleration code for PyOpenGL")
12217 "This is the Cython-coded accelerator module for PyOpenGL.")))
12219 (define-public python-rencode
12221 (name "python-rencode")
12226 (uri (pypi-uri "rencode" version))
12229 "08if5yax1xn5yfp8p3765ccjmfcv9di7i4m5jckgnwvdsgznwkbj"))))
12230 (build-system python-build-system)
12231 (native-inputs `(("pkg-config" ,pkg-config)
12232 ("python-cython" ,python-cython)))
12233 (home-page "https://github.com/aresch/rencode")
12234 (synopsis "Serialization of heterogeneous data structures")
12236 "The @code{rencode} module is a data structure serialization library,
12237 similar to @code{bencode} from the BitTorrent project. For complex,
12238 heterogeneous data structures with many small elements, r-encoding stake up
12239 significantly less space than b-encodings. This version of rencode is a
12240 complete rewrite in Cython to attempt to increase the performance over the
12241 pure Python module.")
12242 (license license:bsd-3)))
12244 (define-public python2-rencode
12245 (package-with-python2 python-rencode))
12247 (define-public python-xenon
12249 (name "python-xenon")
12254 (uri (pypi-uri "xenon" version))
12257 "029cbhysg2vr5n4jz8gpg2793f8wkwnqpr1qgv6c1dn685vy31mc"))))
12258 (build-system python-build-system)
12260 `(("python-pyyaml" ,python-pyyaml)
12261 ("python-radon" ,python-radon)
12262 ("python-requests" ,python-requests)
12263 ("python-flake8" ,python-flake8)
12264 ("python-tox" ,python-tox)))
12267 (modify-phases %standard-phases
12268 (add-before 'build 'patch-test-requirements
12270 ;; Remove httpretty dependency for tests.
12271 (substitute* "setup.py"
12272 (("httpretty") ""))
12274 (home-page "https://xenon.readthedocs.org/")
12275 (synopsis "Monitor code metrics for Python on your CI server")
12277 "Xenon is a monitoring tool based on Radon. It monitors code complexity.
12278 Ideally, @code{xenon} is run every time code is committed. Through command
12279 line options, various thresholds can be set for the complexity of code. It
12280 will fail (i.e. it will exit with a non-zero exit code) when any of these
12281 requirements is not met.")
12282 (license license:expat)))
12284 (define-public python2-xenon
12285 (package-with-python2 python-xenon))
12287 (define-public python-pysocks
12289 (name "python-pysocks")
12294 (uri (pypi-uri "PySocks" version))
12297 "1krkiss578zqwcg4c8iqz1hwscwhsvy2djp3xyvps5gsgvr2j0yh"))))
12298 (build-system python-build-system)
12299 (arguments `(#:tests? #f))
12300 (home-page "https://github.com/Anorov/PySocks")
12301 (synopsis "SOCKS client module")
12302 (description "@code{pysocks} is an updated and semi-actively maintained
12303 version of @code{SocksiPy} with bug fixes and extra features.")
12304 (license license:bsd-3)))
12306 (define-public python2-pysocks
12307 (package-with-python2 python-pysocks))
12309 (define-public python-pydiff
12311 (name "python-pydiff")
12316 (uri (pypi-uri "pydiff" version))
12319 "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
12320 (build-system python-build-system)
12321 (home-page "https://github.com/myint/pydiff")
12322 (synopsis "Library to diff two Python files at the bytecode level")
12324 "@code{pydiff} makes it easy to look for actual code changes while
12325 ignoring formatting changes.")
12326 (license license:expat)))
12328 (define-public python2-pydiff
12329 (package-with-python2 python-pydiff))
12331 (define-public python-tqdm
12333 (name "python-tqdm")
12338 (uri (pypi-uri "tqdm" version))
12341 "1pw0ngm0zn9papdmkwipi3yih5c3di6d0w849bdmrraq4d2d9h2y"))))
12342 (build-system python-build-system)
12344 `(("python-flake8" ,python-flake8)
12345 ("python-nose" ,python-nose)
12346 ("python-coverage" ,python-coverage)))
12347 (home-page "https://github.com/tqdm/tqdm")
12348 (synopsis "Fast, extensible progress meter")
12350 "Make loops show a progress bar on the console by just wrapping any
12351 iterable with @code{|tqdm(iterable)|}. Offers many options to define
12352 design and layout.")
12353 (license (list license:mpl2.0 license:expat))))
12355 (define-public python2-tqdm
12356 (package-with-python2 python-tqdm))
12358 (define-public python-pkginfo
12360 (name "python-pkginfo")
12365 (uri (pypi-uri "pkginfo" version))
12368 "0x6lm17p1ks031mj6pajyp4rkq74vpqq8qwjb7ikgwmkli1day2q"))))
12369 (build-system python-build-system)
12371 ;; The tests are broken upstream.
12374 "https://code.launchpad.net/~tseaver/pkginfo/trunk")
12376 "Query metadatdata from sdists, bdists, and installed packages")
12378 "API to query the distutils metadata written in @file{PKG-INFO} inside a
12379 source distriubtion (an sdist) or a binary distribution (e.g., created by
12380 running bdist_egg). It can also query the EGG-INFO directory of an installed
12381 distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
12382 created by running @code{python setup.py develop}).")
12383 (license license:expat)))
12385 (define-public python2-pkginfo
12386 (package-with-python2 python-pkginfo))
12388 (define-public python-twine
12390 (name "python-twine")
12395 (uri (pypi-uri "twine" version))
12398 "1ay1b6kdq6k4bfbjsvf6ymj41wrgpvinhxndb09355pwhxwmp96a"))))
12399 (build-system python-build-system)
12401 `(("python-tqdm" ,python-tqdm)
12402 ("python-pkginfo" ,python-pkginfo)
12403 ("python-requests" ,python-requests)
12404 ("python-requests-toolbelt" ,python-requests-toolbelt)))
12405 (home-page "https://github.com/pypa/twine")
12406 (synopsis "Collection of utilities for interacting with PyPI")
12408 "@code{twine} currently supports registering projects and uploading
12409 distributions. It authenticates the user over HTTPS, allows them to pre-sign
12410 their files and supports any packaging format (including wheels).")
12411 (license license:asl2.0)))
12413 (define-public python2-twine
12414 (package-with-python2 python-twine))
12416 (define-public python-linecache2
12418 (name "python-linecache2")
12423 (uri (pypi-uri "linecache2" version))
12426 "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
12427 (build-system python-build-system)
12429 `(;; The tests depend on unittest2, and our version is a bit too old.
12432 `(("python-pbr" ,python-pbr-minimal)))
12434 "https://github.com/testing-cabal/linecache2")
12435 (synopsis "Backports of the linecache module")
12437 "The linecache module allows one to get any line from any file, while
12438 attempting to optimize internally, using a cache, the common case where many
12439 lines are read from a single file.")
12440 (license license:psfl)))
12442 (define-public python2-linecache2
12443 (package-with-python2 python-linecache2))
12445 (define-public python-traceback2
12447 (name "python-traceback2")
12452 (uri (pypi-uri "traceback2" version))
12455 "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
12456 (build-system python-build-system)
12458 `(;; python-traceback2 and python-unittest2 depend on one another.
12461 `(("python-pbr" ,python-pbr-minimal)))
12463 `(("python-linecache2" ,python-linecache2)))
12465 "https://github.com/testing-cabal/traceback2")
12466 (synopsis "Backports of the traceback module")
12468 "This module provides a standard interface to extract, format and print
12469 stack traces of Python programs. It exactly mimics the behavior of the Python
12470 interpreter when it prints a stack trace.")
12471 (license license:psfl)))
12473 (define-public python2-traceback2
12474 (package-with-python2 python-traceback2))
12476 (define-public python-ratelimiter
12478 (name "python-ratelimiter")
12483 (uri (pypi-uri "ratelimiter" version))
12486 "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
12487 (build-system python-build-system)
12489 '(#:tests? #f)) ; There are no tests in the pypi archive.
12490 (home-page "https://github.com/RazerM/ratelimiter")
12491 (synopsis "Simple rate limiting object")
12493 "The @code{ratelimiter} module ensures that an operation will not be
12494 executed more than a given number of times during a given period.")
12495 (license license:asl2.0)))
12497 (define-public python2-ratelimiter
12498 (package-with-python2 python-ratelimiter))
12500 (define-public python-dukpy
12502 (name "python-dukpy")
12507 (uri (string-append "https://github.com/kovidgoyal/dukpy/archive/v"
12508 version ".tar.gz"))
12509 (file-name (string-append name "-" version ".tar.gz"))
12512 "0pj39rfwlzivqm5hkrsza7gssg6ggpxlq5ivc8f3h7x5pfgc6y6c"))))
12513 (build-system python-build-system)
12514 (home-page "https://github.com/kovidgoyal/dukpy")
12515 (synopsis "Run JavaScript in python")
12517 "dukpy is a JavaScript runtime environment for Python using the duktape
12518 embeddable JavaScript engine.")
12519 ;; Dukpy is licensed under MIT like the embedded duktape library,
12520 ;; with 'errors.c' as GPL3.
12521 (license (list license:expat license:gpl3))))
12523 (define-public python2-dukpy
12524 (package-with-python2 python-dukpy))
12526 (define-public python-jsonrpclib-pelix
12528 (name "python-jsonrpclib-pelix")
12533 (uri (pypi-uri "jsonrpclib-pelix" version))
12536 "1qs95vxplxwspbrqy8bvc195s58iy43qkf75yrjfql2sim8b25sl"))))
12537 (build-system python-build-system)
12538 (home-page "https://github.com/tcalmant/jsonrpclib/")
12539 (synopsis "JSON-RPC 2.0 client library for Python")
12541 "This library implements the JSON-RPC v2.0
12542 specification (backwards-compatible) as a client library for Python. This
12543 version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
12545 (license license:asl2.0)))
12547 (define-public python2-jsonrpclib-pelix
12548 (package-with-python2 python-jsonrpclib-pelix))
12550 (define-public python-setuptools-scm-git-archive
12552 (name "python-setuptools-scm-git-archive")
12557 (uri (pypi-uri "setuptools_scm_git_archive" version))
12560 "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
12561 (build-system python-build-system)
12563 `(("python-pytest" ,python-pytest)))
12565 `(("python-setuptools-scm" ,python-setuptools-scm)))
12566 (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
12567 (synopsis "Setuptools_scm plugin for git archives")
12569 "The setuptools_scm_git_archive package is a plugin to
12570 setuptools_scm, which supports obtaining versions from git archives that
12571 belong to tagged versions.")
12572 (license license:expat)))
12574 (define-public python2-setuptools-scm-git-archive
12575 (package-with-python2 python-setuptools-scm-git-archive))
12577 (define-public python-pyclipper
12579 (name "python-pyclipper")
12584 (uri (pypi-uri "pyclipper" version ".zip"))
12587 "1zpmwv3bya3j984y5cf9x9d5108kf6mxldcba68wiq0frv5qrssw"))))
12588 (build-system python-build-system)
12590 `(#:tests? #f)); 8 Tests fail, 37 succeed
12592 `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
12594 `(("unzip" ,unzip)))
12595 (home-page "https://github.com/greginvm/pyclipper")
12596 (synopsis "Wrapper for Angus Johnson's Clipper library")
12598 "Pyclipper is a Cython wrapper for the C++ translation of the
12599 Angus Johnson's polygon clipping Clipper library (ver. 6.2.1).")
12600 (license license:expat)))
12602 (define-public python2-pyclipper
12603 (package-with-python2 python-pyclipper))
12605 (define-public python2-booleanoperations
12607 (name "python2-booleanoperations")
12612 (uri (pypi-uri "booleanOperations" version ".zip"))
12615 "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn"))))
12616 (build-system python-build-system)
12618 `(#:python ,python-2))
12621 ("python2-pytest" ,python2-pytest)
12622 ("python2-pytest-runner" ,python2-pytest-runner)))
12624 `(("python-fonttools" ,python2-fonttools)
12625 ("python-pyclipper" ,python2-pyclipper)
12626 ("python-ufolib" ,python2-ufolib)))
12627 (home-page "https://github.com/typemytype/booleanOperations")
12628 (synopsis "Boolean operations on paths")
12630 "BooleanOperations provides a Python library that enables
12631 boolean operations on paths.")
12632 (license license:expat)))
12634 (define-public python-tempdir
12636 (name "python-tempdir")
12641 (uri (pypi-uri "tempdir" version))
12644 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
12645 (build-system python-build-system)
12646 (home-page "https://pypi.org/project/tempdir/")
12648 ;; the package has no tests
12650 (synopsis "Python library for managing temporary directories")
12652 "This library manages temporary directories that are automatically
12653 deleted with all their contents when they are no longer needed. It is
12654 particularly convenient for use in tests.")
12655 (license license:expat)))
12657 (define-public python2-tempdir
12658 (package-with-python2 python-tempdir))
12660 (define-public python-activepapers
12662 (name "python-activepapers")
12667 (uri (pypi-uri "ActivePapers.Py" version))
12670 "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
12671 (build-system python-build-system)
12673 `(#:modules ((ice-9 ftw)
12676 (guix build python-build-system))
12679 (modify-phases %standard-phases
12680 (add-after 'unpack 'delete-python2-code
12682 (for-each delete-file
12683 '("lib/activepapers/builtins2.py"
12684 "lib/activepapers/standardlib2.py"
12685 "lib/activepapers/utility2.py"))))
12688 ;; Deactivate the test cases that download files
12689 (setenv "NO_NETWORK_ACCESS" "1")
12690 ;; For some strange reason, some tests fail if nosetests runs all
12691 ;; test modules in a single execution. They pass if each test
12692 ;; module is run individually.
12693 (for-each (lambda (filename)
12694 (invoke "nosetests"
12695 (string-append "tests/" filename)))
12698 (string-suffix? ".py" filename)))))))))
12700 `(("python-tempdir" ,python-tempdir)
12701 ("python-nose" ,python-nose)))
12703 `(("python-h5py" ,python-h5py)))
12704 (home-page "http://www.activepapers.org/")
12705 (synopsis "Executable papers for scientific computing")
12707 "ActivePapers is a tool for working with executable papers, which
12708 combine data, code, and documentation in single-file packages,
12709 suitable for publication as supplementary material or on repositories
12710 such as figshare or Zenodo.")
12711 (properties `((python2-variant . ,(delay python2-activepapers))))
12712 (license license:bsd-3)))
12714 (define-public python2-activepapers
12715 (let ((base (package-with-python2
12716 (strip-python2-variant python-activepapers))))
12720 (substitute-keyword-arguments (package-arguments base)
12722 `(modify-phases ,phases
12723 (delete 'delete-python2-code)
12724 (add-after 'unpack 'delete-python3-code
12726 (for-each delete-file
12727 '("lib/activepapers/builtins3.py"
12728 "lib/activepapers/standardlib3.py"
12729 "lib/activepapers/utility3.py")))))))))))
12731 (define-public python-semver
12733 (name "python-semver")
12738 (uri (pypi-uri "semver" version))
12741 "0hhgqppchv59rqj0yzi1prdg2nfsywqmjsqy2rycyxm0hvxmbyqz"))))
12742 (build-system python-build-system)
12745 (modify-phases %standard-phases
12746 (add-after 'unpack 'patch-test-requirements
12748 (substitute* "setup.py"
12749 ;; Our Python is new enough.
12750 (("'virtualenv<14\\.0\\.0'") "'virtualenv'"))
12753 `(("python-tox" ,python-tox)
12754 ("python-virtualenv" ,python-virtualenv)))
12755 (home-page "https://github.com/k-bx/python-semver")
12756 (synopsis "Python helper for Semantic Versioning")
12757 (description "This package provides a Python library for
12758 @url{Semantic Versioning, http://semver.org/}.")
12759 (license license:bsd-3)))
12761 (define-public python2-semver
12762 (package-with-python2 python-semver))
12764 (define-public python2-pyro
12766 (name "python2-pyro")
12771 (uri (pypi-uri "Pyro" version))
12772 (file-name (string-append "Pyro-" version ".tar.gz"))
12775 "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v"))))
12776 (build-system python-build-system)
12778 ;; Pyro is not compatible with Python 3
12779 `(#:python ,python-2
12780 ;; Pyro has no test cases for automatic execution
12782 (home-page "http://pythonhosted.org/Pyro/")
12783 (synopsis "Distributed object manager for Python")
12784 (description "Pyro is a Distributed Object Technology system
12785 written in Python that is designed to be easy to use. It resembles
12786 Java's Remote Method Invocation (RMI). It has less similarity to CORBA,
12787 which is a system and language independent Distributed Object Technology
12788 and has much more to offer than Pyro or RMI. Pyro 3.x is no
12789 longer maintained. New projects should use Pyro4 instead, which
12790 is the new Pyro version that is actively developed.")
12791 (license license:expat)))
12793 (define-public python2-scientific
12795 (name "python2-scientific")
12800 (uri (string-append "https://bitbucket.org/khinsen/"
12801 "scientificpython/downloads/ScientificPython-"
12802 version ".tar.gz"))
12803 (file-name (string-append "ScientificPython-" version ".tar.gz"))
12806 "0fc69zhlsn9d2jvbzyjl9ah53vj598h84nkq230c83ahfvgzx5y3"))))
12807 (build-system python-build-system)
12809 `(("netcdf" ,netcdf)))
12811 `(("python-numpy" ,python2-numpy-1.8)
12812 ("python-pyro" ,python2-pyro)))
12814 ;; ScientificPython is not compatible with Python 3
12815 `(#:python ,python-2
12816 #:tests? #f ; No test suite
12818 (modify-phases %standard-phases
12820 (lambda* (#:key inputs #:allow-other-keys)
12821 (zero? (system* "python" "setup.py" "build"
12822 (string-append "--netcdf_prefix="
12823 (assoc-ref inputs "netcdf")))))))))
12824 (home-page "https://bitbucket.org/khinsen/scientificpython")
12825 (synopsis "Python modules for scientific computing")
12826 (description "ScientificPython is a collection of Python modules that are
12827 useful for scientific computing. Most modules are rather general (Geometry,
12828 physical units, automatic derivatives, ...) whereas others are more
12829 domain-specific (e.g. netCDF and PDB support). The library is currently
12830 not actively maintained and works only with Python 2 and NumPy < 1.9.")
12831 (license license:cecill-c)))
12833 (define-public python2-mmtk
12835 (name "python2-mmtk")
12840 (uri (string-append "https://bitbucket.org/khinsen/"
12841 "mmtk/downloads/MMTK-" version ".tar.gz"))
12842 (file-name (string-append "MMTK-" version ".tar.gz"))
12845 "1d0nnjx4lwsvh8f99vv1r6gi50d93yba0adkz8b4zgv4za4c5862"))))
12846 (build-system python-build-system)
12848 `(("netcdf" ,netcdf)))
12850 `(("python-scientific" ,python2-scientific)
12851 ("python-tkinter" ,python-2 "tk")))
12853 `(#:python ,python-2
12856 (modify-phases %standard-phases
12857 (add-before 'build 'includes-from-scientific
12858 (lambda* (#:key inputs #:allow-other-keys)
12859 (mkdir-p "Include/Scientific")
12862 (assoc-ref inputs "python-scientific")
12863 "/include/python2.7/Scientific")
12864 "Include/Scientific"))))))
12865 (home-page "http://dirac.cnrs-orleans.fr/MMTK")
12866 (synopsis "Python library for molecular simulation")
12867 (description "MMTK is a library for molecular simulations with an emphasis
12868 on biomolecules. It provides widely used methods such as Molecular Dynamics
12869 and normal mode analysis, but also basic routines for implementing new methods
12870 for simulation and analysis. The library is currently not actively maintained
12871 and works only with Python 2 and NumPy < 1.9.")
12872 (license license:cecill-c)))
12874 (define-public python-phonenumbers
12876 (name "python-phonenumbers")
12881 (uri (pypi-uri "phonenumbers" version))
12884 "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
12885 (build-system python-build-system)
12887 "https://github.com/daviddrysdale/python-phonenumbers")
12889 "Python library for dealing with international phone numbers")
12891 "This package provides a Python port of Google's libphonenumber library.")
12892 (license license:asl2.0)))
12894 (define-public python2-phonenumbers
12895 (package-with-python2 python-phonenumbers))
12897 (define-public python-send2trash
12899 (name "python-send2trash")
12902 (origin (method url-fetch)
12903 ;; Source tarball on PyPI doesn't include tests.
12904 (uri (string-append "https://github.com/hsoft/send2trash/archive/"
12905 version ".tar.gz"))
12906 (file-name (string-append name "-" version ".tar.gz"))
12909 "0ffyhwjyx61slkdy38iwjc4gmj7fj9gs2q58f075gwvq630pzm9z"))))
12910 (build-system python-build-system)
12913 (modify-phases %standard-phases
12914 (add-before 'check 'pre-check
12916 (mkdir-p "/tmp/foo")
12917 (setenv "HOME" "/tmp/foo")
12919 (home-page "https://github.com/hsoft/send2trash")
12920 (synopsis "Send files to the user's @file{~/Trash} directory")
12921 (description "This package provides a Python library to send files to the
12922 user's @file{~/Trash} directory.")
12923 (license license:bsd-3)))
12925 (define-public python2-send2trash
12927 (inherit (package-with-python2 python-send2trash))
12929 (substitute-keyword-arguments (package-arguments python-send2trash)
12931 `(modify-phases ,phases
12932 (add-before 'check 'setenv
12934 (setenv "PYTHONPATH"
12935 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
12937 (properties `((python2-variant . ,(delay python-send2trash))))))
12939 (define-public python-yapf
12941 (name "python-yapf")
12946 (uri (pypi-uri "yapf" version))
12949 "144gc7d6b1415vh02409rnb8qd5kxi6mxlr7y64d5cizgxbf72kx"))))
12950 (build-system python-build-system)
12951 (home-page "https://github.com/google/yapf")
12952 (synopsis "Formatter for Python code")
12953 (description "YAPF is a formatter for Python code. It's based off of
12954 @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
12955 takes the code and reformats it to the best formatting that conforms to the
12956 style guide, even if the original code didn't violate the style guide.")
12957 (license license:asl2.0)))
12959 (define-public python2-yapf
12960 (package-with-python2 python-yapf))
12962 (define-public python-gyp
12963 (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
12966 (name "python-gyp")
12967 ;; Google does not release versions,
12968 ;; based on second most recent commit date.
12969 (version (git-version "0.0.0" revision commit))
12972 ;; Google does not release tarballs,
12973 ;; git checkout is needed.
12975 (uri (git-reference
12976 (url "https://chromium.googlesource.com/external/gyp")
12978 (file-name (git-file-name name version))
12981 "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
12982 (build-system python-build-system)
12983 (home-page "https://gyp.gsrc.io/")
12984 (synopsis "GYP is a Meta-Build system")
12986 "GYP builds build systems for large, cross platform applications.
12987 It can be used to generate XCode projects, Visual Studio projects, Ninja build
12988 files, and Makefiles.")
12989 (license license:bsd-3))))
12991 (define-public python2-gyp
12992 (package-with-python2 python-gyp))
12994 (define-public python-whatever
12996 (name "python-whatever")
13001 (uri (string-append "https://github.com/Suor/whatever/archive/" version
13005 "1iqvnaf0zpc6b4rvbqq4xy45mszcscyzpzknv8wg6j84pbp22sap"))
13006 (file-name (string-append name "-" version ".tar.gz"))))
13007 (build-system python-build-system)
13010 (modify-phases %standard-phases
13013 (invoke "py.test"))))))
13015 `(("python-pytest" ,python-pytest)))
13016 (home-page "http://github.com/Suor/whatever")
13017 (synopsis "Make anonymous functions by partial application of operators")
13018 (description "@code{whatever} provides an easy way to make anonymous
13019 functions by partial application of operators.")
13020 (license license:bsd-3)))
13022 (define-public python2-whatever
13023 (package-with-python2 python-whatever))
13025 (define-public python-funcy
13027 (name "python-funcy")
13032 (uri (string-append "https://github.com/Suor/funcy/archive/" version
13036 "1fanxivsip29vgarw6dn39xym3q4pbxcpa11plpp548lvxajpahz"))
13037 (file-name (string-append name "-" version ".tar.gz"))))
13038 (build-system python-build-system)
13041 (modify-phases %standard-phases
13044 (invoke "py.test"))))))
13046 `(("python-pytest" ,python-pytest)
13047 ("python-whatever" ,python-whatever)))
13048 (home-page "http://github.com/Suor/funcy")
13049 (synopsis "Functional tools")
13050 (description "@code{funcy} is a library that provides functional tools.
13053 @item merge - Merges collections of the same type
13054 @item walk - Type-preserving map
13055 @item select - Selects a part of a collection
13056 @item take - Takes the first n items of a collection
13057 @item first - Takes the first item of a collection
13058 @item remove - Predicated-removes items of a collection
13059 @item concat - Concatenates two collections
13060 @item flatten - Flattens a collection with subcollections
13061 @item distinct - Returns only distinct items
13062 @item split - Predicated-splits a collection
13063 @item split_at - Splits a collection at a given item
13064 @item group_by - Groups items by group
13065 @item pairwise - Pairs off adjacent items
13066 @item partial - Partially-applies a function
13067 @item curry - Curries a function
13068 @item compose - Composes functions
13069 @item complement - Complements a predicate
13070 @item all_fn - \"all\" with predicate
13072 (license license:bsd-3)))
13074 (define-public python2-funcy
13075 (package-with-python2 python-funcy))
13077 (define-public python-isoweek
13079 (name "python-isoweek")
13084 (uri (pypi-uri "isoweek" version))
13087 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
13088 (build-system python-build-system)
13089 (home-page "https://github.com/gisle/isoweek")
13090 (synopsis "Objects representing a week")
13091 (description "The @code{isoweek} module provide the class Week that
13092 implements the week definition of ISO 8601. This standard also defines
13093 a notation for identifying weeks; yyyyWww (where the W is a literal).
13094 Week instances stringify to this form.")
13095 (license license:bsd-3)))
13097 (define-public python2-isoweek
13098 (package-with-python2 python-isoweek))
13100 (define-public python-tokenize-rt
13102 (name "python-tokenize-rt")
13107 (uri (pypi-uri "tokenize-rt" version))
13110 "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
13111 (build-system python-build-system)
13112 (home-page "https://github.com/asottile/tokenize-rt")
13113 (synopsis "Wrapper around the stdlib tokenize which roundtrips.")
13115 "This Python library is a wrapper around @code{tokenize} from the Python
13116 standard library. It provides two additional tokens @code{ESCAPED_NL} and
13117 @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
13118 and @code{tokens_to_src} to roundtrip.")
13119 (license license:expat)))
13121 (define-public python-future-fstrings
13123 (name "python-future-fstrings")
13128 (uri (pypi-uri "future_fstrings" version))
13131 "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
13132 (build-system python-build-system)
13134 `(("python-tokenize-rt" ,python-tokenize-rt)))
13135 (home-page "https://github.com/asottile/future-fstrings")
13136 (synopsis "Backport of fstrings to Python < 3.6")
13138 "This package provides a UTF-8 compatible encoding
13139 @code{future_fstrings}, which performs source manipulation. It decodes the
13140 source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
13141 @code{f} strings.")
13142 (license license:expat)))
13144 (define-public python-typing
13146 (name "python-typing")
13151 (uri (pypi-uri "typing" version))
13154 "1wmk9nkh30n37cbrqwkbggmj2390lhrlagjkd0ikm02l88saj06l"))))
13155 (build-system python-build-system)
13156 (home-page "https://docs.python.org/3/library/typing.html")
13157 (synopsis "Type hints for Python")
13158 (description "This is a backport of the standard library @code{typing}
13159 module to Python versions older than 3.5. Typing defines a standard notation
13160 for Python function and variable type annotations. The notation can be used
13161 for documenting code in a concise, standard format, and it has been designed
13162 to also be used by static and runtime type checkers, static analyzers, IDEs
13164 (license license:psfl)))
13166 (define-public python2-typing
13167 (package-with-python2 python-typing))
13169 (define-public bpython
13176 (uri (pypi-uri "bpython" version))
13179 "0bxhxi5zxdkrf8b4gwn0d363kdz3qnypjwhm1aydki53ph8ca1w9"))))
13180 (build-system python-build-system)
13183 (modify-phases %standard-phases
13184 (add-after 'unpack 'remove-failing-test
13186 ;; Remove failing test. FIXME: make it pass
13187 (delete-file "bpython/test/test_args.py")
13189 (add-after 'wrap 'add-aliases
13190 ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
13191 (lambda* (#:key outputs #:allow-other-keys)
13192 (let ((out (assoc-ref outputs "out")))
13195 (symlink old (string-append out "/bin/" new)))
13196 '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
13197 '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
13200 `(("python-pygments" ,python-pygments)
13201 ("python-requests" ,python-requests)
13202 ("python-babel" ,python-babel) ; optional, for internationalization
13203 ("python-curtsies" ,python-curtsies) ; >= 0.1.18
13204 ("python-greenlet" ,python-greenlet)
13205 ("python-urwid" ,python-urwid) ; for bpython-urwid only
13206 ("python-six" ,python-six)))
13208 `(("python-sphinx" ,python-sphinx)
13209 ("python-mock" ,python-mock)))
13210 (home-page "https://bpython-interpreter.org/")
13211 (synopsis "Fancy interface to the Python interpreter")
13212 (description "Bpython is a fancy interface to the Python
13213 interpreter. bpython's main features are
13216 @item in-line syntax highlighting,
13217 @item readline-like autocomplete with suggestions displayed as you type,
13218 @item expected parameter list for any Python function,
13219 @item \"rewind\" function to pop the last line of code from memory and
13221 @item send the code you've entered off to a pastebin,
13222 @item save the code you've entered to a file, and
13223 @item auto-indentation.
13225 (license license:expat)))
13227 (define-public bpython2
13228 (let ((base (package-with-python2
13229 (strip-python2-variant bpython))))
13230 (package (inherit base)
13233 `(#:python ,python-2
13235 (modify-phases %standard-phases
13236 (add-after 'unpack 'remove-failing-test
13238 ;; Remove failing test. FIXME: make it pass
13239 (delete-file "bpython/test/test_args.py")
13240 ;; Disable failing test-cases (renaming inhibits they are
13242 (substitute* "bpython/test/test_curtsies_repl.py"
13243 (("^(\\s*def )(test_get_last_word_with_prev_line\\W)" _ a b)
13244 (string-append a "xxx_off_" b))
13245 (("^(\\s*def )(test_complex\\W)" _ a b)
13246 (string-append a "xxx_off_" b)))
13248 (add-before 'build 'rename-scripts
13249 ;; rename the scripts to bypthon2, bpdb2, etc.
13251 (substitute* "setup.py"
13252 (("^(\\s+'bpdb)(\\s+=.*',?)\\s*?$" _ name rest)
13253 (string-append name "2" rest "\n"))
13254 (("^(\\s+'bpython)(-\\S+)?(\\s+=.*',?)\\s*?$" _ name sub rest)
13255 (string-append name "2" (or sub "") rest "\n")))
13258 (define-public python-pyinotify
13260 (name "python-pyinotify")
13264 (uri (pypi-uri "pyinotify" version))
13267 "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
13268 (build-system python-build-system)
13269 (arguments `(#:tests? #f)) ;no tests
13270 (home-page "https://github.com/seb-m/pyinotify")
13271 (synopsis "Python library for monitoring inotify events")
13273 "@code{pyinotify} provides a Python interface for monitoring
13274 file system events on Linux.")
13275 (license license:expat)))
13277 (define-public python2-pyinotify
13278 (package-with-python2 python-pyinotify))
13280 ;; Ada parser uses this version.
13281 (define-public python2-quex-0.67.3
13283 (name "python2-quex")
13288 (uri (string-append "mirror://sourceforge/quex/HISTORY/"
13289 (version-major+minor version)
13290 "/quex-" version ".zip"))
13293 "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw"))))
13294 (build-system python-build-system)
13296 `(("unzip" ,unzip)))
13298 `(#:python ,python-2
13301 (modify-phases %standard-phases
13302 (delete 'configure)
13305 (lambda* (#:key outputs #:allow-other-keys)
13306 (let* ((out (assoc-ref outputs "out"))
13307 (share/quex (string-append out "/share/quex"))
13308 (bin (string-append out "/bin")))
13309 (copy-recursively "." share/quex)
13311 (symlink (string-append share/quex "/quex-exe.py")
13312 (string-append bin "/quex"))
13314 (native-search-paths
13315 (list (search-path-specification
13316 (variable "QUEX_PATH")
13317 (files '("share/quex")))))
13318 (home-page "http://quex.sourceforge.net/")
13319 (synopsis "Lexical analyzer generator in Python")
13320 (description "@code{quex} is a lexical analyzer generator in Python.")
13321 (license license:lgpl2.1+))) ; Non-military
13323 (define-public python2-quex
13324 (package (inherit python2-quex-0.67.3)
13325 (name "python2-quex")
13330 (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz"))
13333 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j"))
13334 (file-name (string-append name "-" version ".tar.gz"))))))
13336 (define-public python-more-itertools
13338 (name "python-more-itertools")
13343 (uri (pypi-uri "more-itertools" version))
13346 "1s6qhl7a7jy8gqw8p545rxfp7rwz1hmjr9p6prk93zbv6f9rhsrb"))))
13347 (build-system python-build-system)
13349 `(("python-six" ,python-six-bootstrap)))
13350 (home-page "https://github.com/erikrose/more-itertools")
13351 (synopsis "More routines for operating on iterables, beyond itertools")
13352 (description "Python's built-in @code{itertools} module implements a
13353 number of iterator building blocks inspired by constructs from APL, Haskell,
13354 and SML. @code{more-itertools} includes additional building blocks for
13355 working with iterables.")
13356 (license license:expat)))
13358 (define-public python2-more-itertools
13359 (package-with-python2 python-more-itertools))
13361 (define-public python-latexcodec
13363 (name "python-latexcodec")
13368 (uri (pypi-uri "latexcodec" version))
13371 "0zdd1gf24i83ykadx0y30n3001j43scqr2saql3vckk5c39dj1wn"))))
13372 (build-system python-build-system)
13374 `(("python-six" ,python-six)))
13375 (home-page "https://readthedocs.org/projects/latexcodec/")
13376 (synopsis "Work with LaTeX code in Python")
13377 (description "Lexer and codec to work with LaTeX code in Python.")
13378 (license license:expat)))
13380 (define-public python-pybtex
13382 (name "python-pybtex")
13387 (uri (pypi-uri "pybtex" version))
13390 "00300j8dn5pxq4ndxmfmbmycg2znawkqs49val2x6jlmfiy6r2mg"))))
13391 (build-system python-build-system)
13393 `(("python-nose" ,python-nose)))
13395 `(("python-latexcodec" ,python-latexcodec)
13396 ("python-pyyaml" ,python-pyyaml)
13397 ("python-six" ,python-six)))
13399 `(#:test-target "nosetests"))
13400 (home-page "https://pybtex.org/")
13401 (synopsis "BibTeX-compatible bibliography processor")
13402 (description "Pybtex is a BibTeX-compatible bibliography processor written
13403 in Python. You can simply type pybtex instead of bibtex.")
13404 (license license:expat)))
13406 (define-public python-onetimepass
13408 (name "python-onetimepass")
13413 (uri (pypi-uri "onetimepass" version))
13415 (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
13416 (build-system python-build-system)
13417 (propagated-inputs `(("python-six" ,python-six)))
13418 (home-page "https://github.com/tadeck/onetimepass/")
13419 (synopsis "One-time password library")
13420 (description "Python one-time password library for HMAC-based (HOTP) and
13421 time-based (TOTP) passwords.")
13422 (license license:expat)))
13424 (define-public python-parso
13426 (name "python-parso")
13431 (uri (pypi-uri "parso" version))
13434 "0zvh4rdhv2wkglkgh0h9kn9ndpsw5p639wcwv47jn1kfp504lq7h"))))
13436 `(("python-pytest" ,python-pytest)))
13437 (build-system python-build-system)
13438 (home-page "https://github.com/davidhalter/parso")
13439 (synopsis "Python Parser")
13440 (description "Parso is a Python parser that supports error recovery and
13441 round-trip parsing for different Python versions (in multiple Python versions).
13442 Parso is also able to list multiple syntax errors in your Python file.")
13443 (license license:expat)))
13445 (define-public python2-parso
13446 (package-with-python2 python-parso))
13448 (define-public python-async-generator
13450 (name "python-async-generator")
13455 (uri (pypi-uri "async_generator" version))
13458 "0wc3hidz1q85cja93k5pzybn0fprfnqyrv4qlkdqdzklc5f4dmdp"))))
13459 (build-system python-build-system)
13461 `(("python-pytest" ,python-pytest)))
13462 (home-page "https://github.com/python-trio/async_generator")
13463 (synopsis "Async generators and context managers for Python 3.5+")
13464 (description "@code{async_generator} back-ports Python 3.6's native async
13465 generators and Python 3.7's context managers into Python 3.5.")
13467 (license (list license:expat license:asl2.0))))
13469 (define-public python-async-timeout
13471 (name "python-async-timeout")
13476 (uri (pypi-uri "async-timeout" version))
13479 "1l3kg062m02mph6rf9rdv8r5c5n356clxa6b6mrn0i77vk9g9kq0"))))
13480 (build-system python-build-system)
13481 (home-page "https://github.com/aio-libs/async_timeout/")
13482 (synopsis "Timeout context manager for asyncio programs")
13483 (description "@code{async-timeout} provides a timeout timeout context
13484 manager compatible with @code{asyncio}.")
13485 (license license:asl2.0)))
13487 (define-public python-glob2
13489 (name "python-glob2")
13493 (uri (string-append
13494 "https://github.com/miracle2k/python-glob2/archive/"
13499 "0ja168f0dz4kbz4m06dm0rd3acaypk6hjx2km541pw22y9s40mag"))
13500 (file-name (string-append name "-" version ".tar.gz"))))
13501 (build-system python-build-system)
13502 (home-page "https://github.com/miracle2k/python-glob2/")
13503 (synopsis "Extended Version of the python buildin glob module")
13504 (description "This is an extended version of the Python
13505 @url{http://docs.python.org/library/glob.html, built-in glob module} which
13509 @item The ability to capture the text matched by glob patterns, and return
13510 those matches alongside the file names.
13511 @item A recursive @code{**} globbing syntax, akin for example to the
13512 @code{globstar} option of Bash.
13513 @item The ability to replace the file system functions used, in order to glob
13514 on virtual file systems.
13515 @item Compatible with Python 2 and Python 3 (tested with 3.3).
13518 Glob2 currently based on the glob code from Python 3.3.1.")
13519 (license license:bsd-2)))
13521 (define-public python2-glob2
13522 (package-with-python2 python-glob2))
13524 (define-public python-gipc
13526 (name "python-gipc")
13531 (uri (pypi-uri "gipc" version ".zip"))
13534 "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
13535 (build-system python-build-system)
13537 `(("unzip" ,unzip)))
13539 `(("python-gevent" ,python-gevent)))
13540 (home-page "http://gehrcke.de/gipc")
13541 (synopsis "Child process management in the context of gevent")
13542 (description "Usage of Python's multiprocessing package in a
13543 gevent-powered application may raise problems. With @code{gipc},
13544 process-based child processes can safely be created anywhere within a
13545 gevent-powered application.")
13546 (license license:expat)))
13548 (define-public python2-gipc
13549 (package-with-python2 python-gipc))
13551 (define-public python-fusepy
13553 (name "python-fusepy")
13558 (uri (pypi-uri "fusepy" version))
13561 "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
13562 (build-system python-build-system)
13565 (modify-phases %standard-phases
13566 (add-before 'build 'set-library-file-name
13567 (lambda* (#:key inputs #:allow-other-keys)
13568 (let ((fuse (assoc-ref inputs "fuse")))
13569 (substitute* "fuse.py"
13570 (("find_library\\('fuse'\\)")
13571 (string-append "'" fuse "/lib/libfuse.so'")))
13575 (home-page "https://github.com/fusepy/fusepy")
13576 (synopsis "Simple ctypes bindings for FUSE")
13577 (description "Python module that provides a simple interface to FUSE and
13578 MacFUSE. The binding is created using the standard @code{ctypes} library.")
13579 (license license:isc)))
13581 (define-public python2-fusepy
13582 (package-with-python2 python-fusepy))
13584 (define-public python2-gdrivefs
13586 (name "python2-gdrivefs")
13591 (uri (pypi-uri "gdrivefs" version))
13594 "0v9sp2cfg4ki3wagkwf3rnfpjhvgf845anz3757il9z95yvvcvb7"))))
13595 (build-system python-build-system)
13597 `(#:python ,python-2
13599 (modify-phases %standard-phases
13600 (add-before 'build 'patch-setup-py
13602 ;; Update requirements from dependency==version
13603 ;; to dependency>=version
13604 (substitute* "gdrivefs/resources/requirements.txt"
13608 `(("python2-gipc" ,python2-gipc)
13609 ("python2-gevent" ,python2-gevent)
13610 ("python2-greenlet" ,python2-greenlet)
13611 ("python2-httplib2" ,python2-httplib2)
13612 ("python2-uritemplate" ,python2-uritemplate)
13613 ("python2-oauth2client" ,python2-oauth2client)
13614 ("python2-six" ,python2-six)))
13616 `(("python2-dateutil" ,python2-dateutil)
13617 ("python2-fusepy" ,python2-fusepy)
13618 ("python2-google-api-client" ,python2-google-api-client)))
13619 (home-page "https://github.com/dsoprea/GDriveFS")
13620 (synopsis "Mount Google Drive as a local file system")
13621 (description "@code{gdrivefs} provides a FUSE wrapper for Google Drive
13622 under Python 2.7.")
13623 (license license:gpl2)))
13625 (define-public pybind11
13631 (uri (string-append
13632 "https://github.com/pybind/pybind11/archive/v"
13633 version ".tar.gz"))
13636 "1sj0x4fwsbnwdai5sxpw1l1vh8m5hpbkfk3zanxcbcgs39jpnfrs"))
13637 (file-name (string-append name "-" version ".tar.gz"))))
13638 (build-system cmake-build-system)
13640 `(("python" ,python)
13641 ("python-pytest" ,python-pytest)))
13643 `(#:test-target "check"))
13644 (home-page "https://github.com/pybind/pybind11/")
13645 (synopsis "Seamless operability between C++11 and Python")
13646 (description "pybind11 is a lightweight header-only library that exposes
13647 C++ types in Python and vice versa, mainly to create Python bindings of
13648 existing C++ code. Its goals and syntax are similar to the excellent
13649 Boost.Python library by David Abrahams: to minimize boilerplate code in
13650 traditional extension modules by inferring type information using compile-time
13652 (license license:expat)))
13654 (define-public python-fasteners
13656 (name "python-fasteners")
13661 (uri (pypi-uri "fasteners" version))
13664 "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22"))))
13665 (build-system python-build-system)
13667 `(("python-monotonic" ,python-monotonic)
13668 ("python-six" ,python-six)
13669 ("python-testtools" ,python-testtools)))
13670 (home-page "https://github.com/harlowja/fasteners")
13671 (synopsis "Python package that provides useful locks")
13673 "This package provides a Python program that provides following locks:
13676 @item Locking decorator
13677 @item Reader-writer locks
13678 @item Inter-process locks
13679 @item Generic helpers
13681 (license license:asl2.0)))
13683 (define-public python2-fasteners
13684 (package-with-python2 python-fasteners))
13686 (define-public python-requests-file
13688 (name "python-requests-file")
13693 (uri (pypi-uri "requests-file" version))
13696 "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
13697 (build-system python-build-system)
13699 `(("python-requests" ,python-requests)
13700 ("python-six" ,python-six)))
13702 "https://github.com/dashea/requests-file")
13703 (synopsis "File transport adapter for Requests")
13705 "Requests-File is a transport adapter for use with the Requests Python
13706 library to allow local filesystem access via file:// URLs.")
13707 (license license:asl2.0)))
13709 (define-public python2-requests-file
13710 (package-with-python2 python-requests-file))
13712 (define-public python-tldextract
13714 (name "python-tldextract")
13719 (uri (pypi-uri "tldextract" version))
13722 "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"))))
13723 (build-system python-build-system)
13725 `(("python-pytest" ,python-pytest)
13726 ("python-responses" ,python-responses)))
13728 `(("python-idna" ,python-idna)
13729 ("python-requests" ,python-requests)
13730 ("python-requests-file" ,python-requests-file)))
13732 "https://github.com/john-kurkowski/tldextract")
13734 "Separate the TLD from the registered domain and subdomains of a URL")
13736 "TLDExtract accurately separates the TLD from the registered domain and
13737 subdomains of a URL, using the Public Suffix List. By default, this includes
13738 the public ICANN TLDs and their exceptions. It can optionally support the
13739 Public Suffix List's private domains as well.")
13740 (license license:bsd-3)))
13742 (define-public python2-tldextract
13743 (package-with-python2 python-tldextract))
13745 (define-public python-pynamecheap
13747 (name "python-pynamecheap")
13752 (uri (pypi-uri "PyNamecheap" version))
13755 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
13756 (build-system python-build-system)
13758 `(("python-requests" ,python-requests)))
13760 "https://github.com/Bemmu/PyNamecheap")
13762 "Namecheap API client in Python")
13764 "PyNamecheap is a Namecheap API client in Python.")
13765 (license license:expat)))
13767 (define-public python2-pynamecheap
13768 (package-with-python2 python-pynamecheap))
13770 (define-public python-dns-lexicon
13772 (name "python-dns-lexicon")
13777 (uri (pypi-uri "dns-lexicon" version))
13780 "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
13781 (build-system python-build-system)
13783 `(#:tests? #f)) ;requires internet access
13785 `(("python-future" ,python-future)
13786 ("python-pynamecheap" ,python-pynamecheap)
13787 ("python-requests" ,python-requests)
13788 ("python-tldextract" ,python-tldextract)
13789 ("python-urllib3" ,python-urllib3)))
13790 (home-page "https://github.com/AnalogJ/lexicon")
13792 "Manipulate DNS records on various DNS providers")
13794 "Lexicon provides a way to manipulate DNS records on multiple DNS
13795 providers in a standardized way. It has a CLI but it can also be used as a
13796 Python library. It was designed to be used in automation, specifically with
13798 (license license:expat)))
13800 (define-public python2-dns-lexicon
13801 (package-with-python2 python-dns-lexicon))
13803 (define-public python-commandlines
13805 (name "python-commandlines")
13810 (uri (pypi-uri "commandlines" version))
13813 "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
13814 (build-system python-build-system)
13815 (home-page "https://github.com/chrissimpkins/commandlines")
13816 (synopsis "Command line argument to object parsing library")
13818 "@code{Commandlines} is a Python library for command line application
13819 development that supports command line argument parsing, command string
13820 validation testing and application logic.")
13821 (license license:expat)))