1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2013, 2014, 2015, 2016, 2019 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, 2019, 2020 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, 2019 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, 2019, 2020 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, 2019 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 ng0 <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, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
30 ;;; Copyright © 2016, 2017 Stefan Reichör <stefan@xsteve.at>
31 ;;; Copyright © 2016, 2017, 2019 Alex Vong <alexvong1995@gmail.com>
32 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
33 ;;; Copyright © 2016, 2017, 2018, 2020 Julien Lepiller <julien@lepiller.eu>
34 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
35 ;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
36 ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
37 ;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
38 ;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com>
39 ;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
40 ;;; Copyright © 2017, 2018, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
41 ;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
42 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
43 ;;; Copyright © 2017, 2018, 2019 Kei Kebreau <kkebreau@posteo.net>
44 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
45 ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
46 ;;; Copyright © 2017, 2019 Brendan Tildesley <mail@brendan.scot>
47 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
48 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
49 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
50 ;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
51 ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
52 ;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
53 ;;; Copyright © 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
54 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
55 ;;; Copyright © 2018, 2019 Clément Lassieur <clement@lassieur.org>
56 ;;; Copyright © 2018, 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
57 ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
58 ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
59 ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
60 ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
61 ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
62 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
63 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
64 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
65 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
66 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
67 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
68 ;;; Copyright © 2019, 2020 Tanguy Le Carrour <tanguy@bioneland.org>
69 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
70 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
71 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
72 ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
73 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
74 ;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
75 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
76 ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
77 ;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
79 ;;; This file is part of GNU Guix.
81 ;;; GNU Guix is free software; you can redistribute it and/or modify it
82 ;;; under the terms of the GNU General Public License as published by
83 ;;; the Free Software Foundation; either version 3 of the License, or (at
84 ;;; your option) any later version.
86 ;;; GNU Guix is distributed in the hope that it will be useful, but
87 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
88 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
89 ;;; GNU General Public License for more details.
91 ;;; You should have received a copy of the GNU General Public License
92 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
94 (define-module (gnu packages python-xyz)
95 #:use-module ((guix licenses) #:prefix license:)
96 #:use-module (gnu packages)
97 #:use-module (gnu packages algebra)
98 #:use-module (gnu packages adns)
99 #:use-module (gnu packages attr)
100 #:use-module (gnu packages backup)
101 #:use-module (gnu packages bash)
102 #:use-module (gnu packages check)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages crypto)
105 #:use-module (gnu packages databases)
106 #:use-module (gnu packages dbm)
107 #:use-module (gnu packages enchant)
108 #:use-module (gnu packages file)
109 #:use-module (gnu packages fontutils)
110 #:use-module (gnu packages gcc)
111 #:use-module (gnu packages geo)
112 #:use-module (gnu packages ghostscript)
113 #:use-module (gnu packages gl)
114 #:use-module (gnu packages glib)
115 #:use-module (gnu packages gnome)
116 #:use-module (gnu packages graphviz)
117 #:use-module (gnu packages graphics)
118 #:use-module (gnu packages gsasl)
119 #:use-module (gnu packages gstreamer)
120 #:use-module (gnu packages gtk)
121 #:use-module (gnu packages icu4c)
122 #:use-module (gnu packages image)
123 #:use-module (gnu packages imagemagick)
124 #:use-module (gnu packages kerberos)
125 #:use-module (gnu packages libevent)
126 #:use-module (gnu packages libffi)
127 #:use-module (gnu packages linux)
128 #:use-module (gnu packages llvm)
129 #:use-module (gnu packages man)
130 #:use-module (gnu packages maths)
131 #:use-module (gnu packages monitoring)
132 #:use-module (gnu packages multiprecision)
133 #:use-module (gnu packages networking)
134 #:use-module (gnu packages ncurses)
135 #:use-module (gnu packages openstack)
136 #:use-module (gnu packages pcre)
137 #:use-module (gnu packages perl)
138 #:use-module (gnu packages photo)
139 #:use-module (gnu packages pkg-config)
140 #:use-module (gnu packages python)
141 #:use-module (gnu packages python-check)
142 #:use-module (gnu packages python-compression)
143 #:use-module (gnu packages python-crypto)
144 #:use-module (gnu packages python-science)
145 #:use-module (gnu packages python-web)
146 #:use-module (gnu packages qt)
147 #:use-module (gnu packages readline)
148 #:use-module (gnu packages sdl)
149 #:use-module (gnu packages search)
150 #:use-module (gnu packages shells)
151 #:use-module (gnu packages sphinx)
152 #:use-module (gnu packages ssh)
153 #:use-module (gnu packages terminals)
154 #:use-module (gnu packages tex)
155 #:use-module (gnu packages texinfo)
156 #:use-module (gnu packages time)
157 #:use-module (gnu packages tls)
158 #:use-module (gnu packages version-control)
159 #:use-module (gnu packages video)
160 #:use-module (gnu packages web)
161 #:use-module (gnu packages base)
162 #:use-module (gnu packages xml)
163 #:use-module (gnu packages xorg)
164 #:use-module (gnu packages xdisorg)
165 #:use-module (gnu packages tcl)
166 #:use-module (gnu packages bdw-gc)
167 #:use-module (gnu packages serialization)
168 #:use-module (guix packages)
169 #:use-module (guix download)
170 #:use-module (guix git-download)
171 #:use-module (guix hg-download)
172 #:use-module (guix utils)
173 #:use-module (guix build-system gnu)
174 #:use-module (guix build-system cmake)
175 #:use-module (guix build-system python)
176 #:use-module (guix build-system trivial)
177 #:use-module (srfi srfi-1)
178 #:use-module (srfi srfi-26))
180 (define-public python-tenacity
182 (name "python-tenacity")
186 (uri (pypi-uri "tenacity" version))
189 "1j36v9fcpmmd4985ix0cwnvcq71rkrn5cjiiv0id9vkl4kpxh0gv"))))
190 (build-system python-build-system)
192 `(("python-setuptools-scm" ,python-setuptools-scm)
193 ("python-sphinx" ,python-sphinx)
194 ("python-tornado" ,python-tornado)
195 ("python-pytest" ,python-pytest)))
197 `(("python-six" ,python-six)))
199 `(#:phases (modify-phases %standard-phases
204 (home-page "https://github.com/jd/tenacity")
205 (synopsis "Retrying library for python")
206 (description "Tenacity is a general-purpose python library to simplify the
207 task of adding retry behavior to just about anything.")
208 (license license:asl2.0)))
210 (define-public python-colorlog
212 (name "python-colorlog")
216 (uri (pypi-uri "colorlog" version))
219 "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
220 (build-system python-build-system)
222 `(("python-pytest" ,python-pytest)))
224 `(#:phases (modify-phases %standard-phases
227 ;; Extend PYTHONPATH so the built package will be found.
229 (string-append (getcwd) "/build/lib:"
230 (getenv "PYTHONPATH")))
231 (invoke "pytest" "-p" "no:logging")
233 (home-page "https://github.com/borntyping/python-colorlog")
234 (synopsis "Log formatting with colors for python")
235 (description "The @code{colorlog.ColoredFormatter} is a formatter for use
236 with Python's logging module that outputs records using terminal colors.")
237 (license license:expat)))
239 (define-public python-pyprind
241 (name "python-pyprind")
245 (uri (pypi-uri "PyPrind" version))
248 "0xg6m5hr33h9bdlrr42kc58jm2m87a9zsagy7n2m4n407d2snv64"))))
249 (build-system python-build-system)
251 `(("python-psutil" ,python-psutil)))
252 (home-page "https://github.com/rasbt/pyprind")
253 (synopsis "Python Progress Bar and Percent Indicator Utility")
254 (description "The PyPrind (Python Progress Indicator) module provides a
255 progress bar and a percentage indicator object that let you track the progress
256 of a loop structure or other iterative computation.")
257 (license license:bsd-3)))
259 (define-public python-gphoto2
261 (name "python-gphoto2")
265 (uri (pypi-uri "gphoto2" version))
268 "118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
269 (build-system python-build-system)
271 `(("pkg-config" ,pkg-config)))
273 `(("libgphoto2" ,libgphoto2)))
274 (home-page "https://github.com/jim-easterbrook/python-gphoto2")
275 (synopsis "Python interface to libgphoto2")
276 (description "@code{python-gphoto2} is a comprehensive Python interface
277 (or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
278 automatically generate the interface code.")
279 (license license:gpl3+)))
281 (define-public python-colour
283 (name "python-colour")
287 (uri (pypi-uri "colour" version))
290 "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
291 (build-system python-build-system)
293 `(("python-d2to1" ,python-d2to1)))
294 (home-page "https://github.com/vaab/colour")
295 (synopsis "Convert and manipulate various color representations")
296 (description "Pythonic way to manipulate color representations (HSL, RVB,
298 (license license:expat)))
300 (define-public python-d2to1
302 (name "python-d2to1")
303 (version "0.2.12.post1")
306 (uri (pypi-uri "d2to1" version))
309 "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
310 (build-system python-build-system)
312 `(("python-nose" ,python-nose)))
313 (home-page "https://github.com/embray/d2to1")
314 (synopsis "Allows for distutils2-like setup.cfg files as package metadata
316 (description "The python package d2to1 (the d is for distutils) allows
317 using distutils2-like setup.cfg files for a package's metadata with a
318 distribute/setuptools setup.py script.")
319 (license license:bsd-2)))
321 (define-public python-rawkit
323 (name "python-rawkit")
327 (uri (pypi-uri "rawkit" version))
330 "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
331 (build-system python-build-system)
333 `(("python-pytest" ,python-pytest)
334 ("python-mock" ,python-mock)))
336 `(("libraw" ,libraw)))
337 (home-page "https://rawkit.readthedocs.io")
338 (synopsis "Ctypes-based LibRaw binding for Python")
339 (description "The rawkit package provides two modules: rawkit and libraw.
340 The rawkit module provides a high-level Pythonic interface for developing raw
341 photos, while the libraw module provides a CTypes based interface for
342 interacting with the low-level LibRaw C APIs.")
343 (license license:expat)))
345 (define-public python-easygui
347 (name "python-easygui")
351 (uri (pypi-uri "easygui" version))
354 "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
355 (build-system python-build-system)
357 `(("python-tkinter" ,python "tk")))
358 (home-page "https://github.com/robertlugg/easygui")
359 (synopsis "GUI programming module for Python")
360 (description "EasyGUI is a module for very simple, very easy GUI
361 programming in Python. EasyGUI is different from other GUI generators in that
362 EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
363 simple function calls.")
364 (license license:bsd-3)))
366 (define-public python-pymediainfo
368 (name "python-pymediainfo")
373 (uri (pypi-uri "pymediainfo" version))
376 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
377 (build-system python-build-system)
379 `(("python-setuptools-scm" ,python-setuptools-scm)
380 ("python-pytest" ,python-pytest)))
382 `(("libmediainfo" ,libmediainfo)))
385 (modify-phases %standard-phases
386 (add-after 'unpack 'patch-libmediainfo
388 (substitute* "pymediainfo/__init__.py"
389 (("libmediainfo.so.0")
390 (string-append (assoc-ref %build-inputs "libmediainfo")
391 "/lib/libmediainfo.so.0")))
395 ;; Extend PYTHONPATH so the built package will be found.
397 (string-append (getcwd) "/build/lib:"
398 (getenv "PYTHONPATH")))
399 ;; Skip the only failing test "test_parse_url"
400 (invoke "pytest" "-vv" "-k" "not test_parse_url")
403 "https://github.com/sbraz/pymediainfo")
405 "Python wrapper for the mediainfo library")
407 "Python wrapper for the mediainfo library to access the technical and tag
408 data for video and audio files.")
409 (license license:expat)))
411 (define-public python-psutil
413 (name "python-psutil")
418 (uri (pypi-uri "psutil" version))
420 (base32 "0isil5jxwwd8awz54qk28rpgjg43i5l6yl70g40vxwa4r4m56lfh"))))
421 (build-system python-build-system)
423 ;; FIXME: some tests does not return and times out.
425 (home-page "https://www.github.com/giampaolo/psutil")
426 (synopsis "Library for retrieving information on running processes")
428 "psutil (Python system and process utilities) is a library for retrieving
429 information on running processes and system utilization (CPU, memory, disks,
430 network) in Python. It is useful mainly for system monitoring, profiling and
431 limiting process resources and management of running processes. It implements
432 many functionalities offered by command line tools such as: ps, top, lsof,
433 netstat, ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
434 pidof, tty, taskset, pmap.")
435 (properties `((python2-variant . ,(delay python2-psutil))))
436 (license license:bsd-3)))
438 (define-public python2-psutil
439 (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
443 `(("python2-enum34" ,python2-enum34) ;optional
444 ,@(package-propagated-inputs base))))))
446 (define-public python-shapely
448 (name "python-shapely")
449 (version "1.6.4.post2")
453 (uri (pypi-uri "Shapely" version))
456 "03r42fmd9alp6r3q95ad6rldq2f7n1wimrw53zy5kpn33yv7pf64"))))
457 (build-system python-build-system)
459 `(("python-cython" ,python-cython)
460 ("python-matplotlib" ,python-matplotlib)
461 ("python-pytest" ,python-pytest)
462 ("python-pytest-cov" ,python-pytest-cov)))
466 `(("python-numpy" ,python-numpy)))
469 (modify-phases %standard-phases
470 (add-after 'unpack 'patch-geos-path
471 (lambda* (#:key inputs #:allow-other-keys)
472 (let ((geos (assoc-ref inputs "geos"))
473 (glibc (assoc-ref inputs ,(if (%current-target-system)
474 "cross-libc" "libc"))))
475 (substitute* "shapely/geos.py"
476 (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
477 (string-append "_lgeos = load_dll('geos_c', fallbacks=['"
478 geos "/lib/libgeos_c.so'])"))
479 (("free = load_dll\\('c'\\)\\.free")
480 (string-append "free = load_dll('c', fallbacks=['"
481 glibc "/lib/libc.so.6']).free"))))
483 (home-page "https://github.com/Toblerity/Shapely")
484 (synopsis "Library for the manipulation and analysis of geometric objects")
485 (description "Shapely is a Python package for manipulation and analysis of
486 planar geometric objects. It is based on the @code{GEOS} library.")
487 (license license:bsd-3)))
489 (define-public python-shortuuid
491 (name "python-shortuuid")
496 (uri (pypi-uri "shortuuid" version))
499 "1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh"))))
500 (build-system python-build-system)
502 `(("python-pep8" ,python-pep8)))
503 (home-page "https://github.com/skorokithakis/shortuuid")
504 (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
506 "@code{shortuuid} is a Python library for generating concise, unambiguous
507 and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
508 module and then similar looking characters are removed.")
509 (license license:bsd-3)))
511 (define-public python-logwrap
513 (name "python-logwrap")
518 (uri (pypi-uri "logwrap" version ".zip"))
521 "1d2k0hvpbi51vl410y8fbs5m0nxnlh2k7gr2nrh3k81ibhzscsra"))))
522 (build-system python-build-system)
524 `(("python-six" ,python-six)
525 ("python-typing" ,python-typing)))
528 ("python-cython" ,python-cython)
529 ("python-pytest" ,python-pytest)
530 ("python-pytest-cov" ,python-pytest-cov)
531 ("python-pytest-runner" ,python-pytest-runner)))
532 (home-page "https://github.com/penguinolog/logwrap")
533 (synopsis "Decorator for logging function arguments")
534 (description "This package provides a decorator to log function arguments
535 and function call return values in a human-readable way.")
536 (license license:asl2.0)))
538 (define-public python2-shapely
539 (package-with-python2 python-shapely))
541 (define-public python-clyent
543 (name "python-clyent")
548 (uri (pypi-uri "clyent" version))
551 "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
552 (build-system python-build-system)
554 `(("python-mock" ,python-mock)))
555 (home-page "https://github.com/binstar/clyent")
556 (synopsis "Command line client library")
557 (description "Clyent is a Python command line utiliy library. It is used
558 by @code{binstar}, @code{binstar-build} and @code{chalmers}.")
559 (license license:bsd-3)))
561 (define-public python2-clyent
562 (package-with-python2 python-clyent))
564 (define-public python-babel
566 (name "python-babel")
571 (uri (pypi-uri "Babel" version))
574 "0f0f2vvs1mpdpz2c0mg1mnc3sih8bizmc1h9m67kdsnqs3i2mb0s"))))
575 (build-system python-build-system)
577 `(("python-freezegun" ,python-freezegun)
578 ("python-pytest" ,python-pytest)))
580 `(("python-pytz" ,python-pytz)))
582 `(#:phases (modify-phases %standard-phases
585 (invoke "pytest" "-vv" "-k"
587 ;; XXX: These tests fail when using Pytest 4.x and
588 ;; Babel 2.6.0. Try removing this for later versions.
589 "not test_no_inherit_metazone_marker_never_in_output"
590 " and not test_smoke_dates"
591 " and not test_smoke_numbers")))))))
592 (home-page "http://babel.pocoo.org/")
594 "Tools for internationalizing Python applications")
596 "Babel is composed of two major parts:
597 - tools to build and work with gettext message catalogs
598 - a Python interface to the CLDR (Common Locale Data Repository), providing
599 access to various locale display names, localized number and date formatting,
601 (license license:bsd-3)))
603 (define-public python2-babel
604 (package-with-python2 python-babel))
606 ;; Sphinx < 2.0 requires this version. Remove once no longer needed.
607 (define-public python2-babel-2.6
609 (inherit python2-babel)
613 (uri (pypi-uri "Babel" version))
616 "08rxmbx2s4irp0w0gmn498vns5xy0fagm0fg33xa772jiks51flc"))))))
618 (define-public python2-backport-ssl-match-hostname
620 (name "python2-backport-ssl-match-hostname")
625 (uri (pypi-uri "backports.ssl_match_hostname" version))
628 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
629 (build-system python-build-system)
632 #:tests? #f)) ; no test target
633 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
634 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
636 "This backport brings the ssl.match_hostname() function to users of
637 earlier versions of Python. The function checks the hostname in the
638 certificate returned by the server to which a connection has been established,
639 and verifies that it matches the intended target hostname.")
640 (license license:psfl)))
642 (define-public python-boolean.py
644 (name "python-boolean.py")
648 ;; There's no source tarball on PyPI.
651 (url "https://github.com/bastikr/boolean.py")
652 (commit (string-append "v" version))))
653 (file-name (git-file-name name version))
655 (base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
656 (build-system python-build-system)
657 (home-page "https://github.com/bastikr/boolean.py")
658 (synopsis "Boolean algebra in one Python module")
660 "This is a small Python library that implements boolean algebra.
661 It defines two base elements, @code{TRUE} and @code{FALSE}, and a
662 @code{Symbol} class that can take on one of these two values. Calculations
663 are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
664 compositions like @code{XOR} and @code{NAND} are emulated on top of them.
665 Expressions are constructed from parsed strings or directly in Python.")
666 (license license:bsd-2)))
668 (define-public python-hdf4
675 (uri (pypi-uri name version))
678 "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
679 (build-system python-build-system)
680 (native-inputs `(("nose" ,python-nose)))
681 (propagated-inputs `(("numpy" ,python-numpy)))
688 (modify-phases %standard-phases
691 ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
692 ;; on to import numpy. Somehow this works on their CI system.
693 ;; Let's just manage PYTHONPATH here instead.
694 (substitute* "runexamples.sh"
695 (("export PYTHONPATH=.*") ""))
697 (string-append (getcwd) ":"
698 (getenv "PYTHONPATH")))
699 (invoke "./runexamples.sh")
700 (invoke "nosetests" "-v"))))))
701 (home-page "https://github.com/fhs/python-hdf4")
702 (synopsis "Python interface to the NCSA HDF4 library")
704 "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
705 which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
706 NetCDF files can also be read and modified. Python-HDF4 is a fork of
707 @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
708 (license license:expat)))
710 (define-public python2-hdf4
711 (package-with-python2 python-hdf4))
713 (define-public python-h5py
720 (uri (pypi-uri "h5py" version))
723 "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4"))))
724 (build-system python-build-system)
726 `(#:tests? #f ; no test target
728 (modify-phases %standard-phases
729 (add-after 'unpack 'fix-hdf5-paths
730 (lambda* (#:key inputs #:allow-other-keys)
731 (let ((prefix (assoc-ref inputs "hdf5")))
732 (substitute* "setup_build.py"
733 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
734 (string-append "['" prefix "/lib" "']"))
735 (("'/opt/local/include', '/usr/local/include'")
736 (string-append "'" prefix "/include" "'")))
737 (substitute* "setup_configure.py"
738 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
739 (string-append "['" prefix "/lib" "']")))
742 `(("python-six" ,python-six)
743 ("python-numpy" ,python-numpy)))
745 `(("hdf5" ,hdf5-1.10)))
747 `(("python-cython" ,python-cython)
748 ("python-pkgconfig" ,python-pkgconfig)
749 ("pkg-config" ,pkg-config)))
750 (home-page "https://www.h5py.org/")
751 (synopsis "Read and write HDF5 files from Python")
753 "The h5py package provides both a high- and low-level interface to the
754 HDF5 library from Python. The low-level interface is intended to be a
755 complete wrapping of the HDF5 API, while the high-level component supports
756 access to HDF5 files, datasets and groups using established Python and NumPy
758 (license license:bsd-3)))
760 (define-public python2-h5py
761 (package-with-python2 python-h5py))
763 (define-public python-sh
770 (uri (pypi-uri "sh" version))
773 "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
774 (build-system python-build-system)
777 (modify-phases %standard-phases
780 ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
781 (setenv "HOME" "/tmp")
782 (invoke "python" "sh.py" "test"))))))
784 `(("python-coverage" ,python-coverage)))
785 (home-page "https://github.com/amoffat/sh")
786 (synopsis "Python subprocess replacement")
787 (description "This package provides a replacement for Python's
788 @code{subprocess} feature.")
789 (license license:expat)))
791 (define-public python2-sh
792 (package-with-python2 python-sh))
794 (define-public python-cftime
796 (name "python-cftime")
801 (uri (pypi-uri "cftime" version))
803 (base32 "0w0gi6jnch38hiygl62j4xkcirv4y3dcwrvxl9p7bsk6j27lzihs"))))
804 (build-system python-build-system)
806 `(("python-numpy" ,python-numpy)))
808 `(("python-coveralls" ,python-coveralls)
809 ("python-cython" ,python-cython)
810 ("python-pytest-cov" ,python-pytest-cov)))
811 (home-page "https://github.com/Unidata/cftime")
812 (synopsis "Library for time handling")
814 "This package provides time-handling functionality that used to be part
815 of the netcdf4 package before.")
816 ;; This package claims to include code under the GPLv3 but is released
818 (license (list license:isc license:gpl3+))))
820 (define-public python-netcdf4
822 (name "python-netcdf4")
827 (uri (pypi-uri "netCDF4" version))
830 "0c0sklgrmv15ygliin8qq0hp7vanmbi74m6zpi0r1ksr0hssyd5r"))))
831 (build-system python-build-system)
834 (modify-phases %standard-phases
835 (add-after 'unpack 'configure-locations
836 (lambda* (#:key inputs #:allow-other-keys)
837 (setenv "HDF5_DIR" (assoc-ref inputs "hdf5"))
840 `(("python-cython" ,python-cython)))
842 `(("python-numpy" ,python-numpy)
843 ("python-cftime" ,python-cftime)))
848 (home-page "https://github.com/Unidata/netcdf4-python")
849 (synopsis "Python/numpy interface to the netCDF library")
850 (description "Netcdf4-python is a Python interface to the netCDF C
851 library. netCDF version 4 has many features not found in earlier
852 versions of the library and is implemented on top of HDF5. This module
853 can read and write files in both the new netCDF 4 and the old netCDF 3
854 format, and can create files that are readable by HDF5 clients. The
855 API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
856 to users of that module.")
857 ;; The software is mainly ISC, but includes some files covered
858 ;; by the Expat license.
859 (license (list license:isc license:expat))))
861 (define-public python2-netcdf4
862 (package-with-python2 python-netcdf4))
864 (define-public python-license-expression
866 (name "python-license-expression")
871 (uri (pypi-uri "license-expression" version))
873 (base32 "08ppb0bxbrsxazy88sgpl9yffvdsabw6dkk1nc332wcz2mphwwyf"))))
874 (build-system python-build-system)
876 `(("python-boolean.py" ,python-boolean.py)))
877 (home-page "https://github.com/nexB/license-expression")
878 (synopsis "Apply boolean logic to license expressions")
880 "This Python module defines a tiny language to evaluate and compare
881 license expressions using boolean logic. Logical combinations of licenses can
882 be tested for equality, containment, and equivalence. They can be normalised
883 and simplified. It supports SPDX license expressions as well as other naming
884 conventions and aliases in the same expression.")
885 (license license:gpl2+)))
887 (define-public python-lockfile
889 (name "python-lockfile")
894 (uri (pypi-uri "lockfile" version))
897 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
898 (build-system python-build-system)
899 (arguments '(#:test-target "check"))
901 `(("python-pbr" ,python-pbr)))
902 (home-page "https://launchpad.net/pylockfile")
903 (synopsis "Platform-independent file locking module")
905 "The lockfile package exports a LockFile class which provides a simple
906 API for locking files.")
907 (license license:expat)))
909 (define-public python2-lockfile
910 (package-with-python2 python-lockfile))
912 (define-public python-filelock
914 (name "python-filelock")
919 (uri (pypi-uri "filelock" version))
922 "0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
923 (build-system python-build-system)
925 "https://github.com/benediktschmitt/py-filelock")
926 (synopsis "Platform independent file lock")
927 (description "@code{filelock} contains a single module implementing
928 a platform independent file lock in Python, which provides a simple way of
929 inter-process communication.")
930 (license license:unlicense)))
932 (define-public python-semantic-version
934 (name "python-semantic-version")
939 (uri (pypi-uri "semantic_version" version))
942 "1h2l9xyg1zzsda6kjcmfcgycbvrafwci283vcr1v5sbk01l2hhra"))))
943 (build-system python-build-system)
945 `(#:tests? #f)) ; PyPI tarball lacks tests
946 (home-page "https://github.com/rbarrois/python-semanticversion")
947 (synopsis "Semantic versioning module for Python")
949 "The @code{semantic_version} class is a small library for handling
950 @uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
952 It can compare versions, generate a new version that represents a bump in one of
953 the version levels, and check whether any given string is a proper semantic
954 version identifier.")
955 (license license:bsd-3)))
957 (define-public python2-semantic-version
958 (package-with-python2 python-semantic-version))
960 (define-public python-serpent
962 (name "python-serpent")
967 (uri (pypi-uri "serpent" version))
969 (base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk"))))
970 (build-system python-build-system)
972 `(("python-attrs" ,python-attrs)
973 ("python-pytz" ,python-pytz)))
974 (home-page "https://github.com/irmen/Serpent")
975 (synopsis "Serializer for literal Python expressions")
977 "Serpent provides @code{ast.literal_eval()}-compatible object tree
978 serialization. It serializes an object tree into bytes (an utf-8 encoded
979 string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
980 to rebuild the original object tree.
982 Because only safe literals are encoded, it is safe to send serpent data to
983 other machines, such as over the network.")
984 (license license:expat)))
986 (define-public python-setuptools
988 (name "python-setuptools")
993 (uri (pypi-uri "setuptools" version ".zip"))
996 "04sns22y2hhsrwfy1mha2lgslvpjsjsz8xws7h2rh5a7ylkd28m2"))
997 (modules '((guix build utils)))
1000 ;; Remove included binaries which are used to build self-extracting
1001 ;; installers for Windows.
1002 ;; TODO: Find some way to build them ourself so we can include them.
1003 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1005 (build-system python-build-system)
1006 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1007 ;; One could bootstrap with an internal untested setuptools.
1010 (home-page "https://pypi.org/project/setuptools/")
1012 "Library designed to facilitate packaging Python projects")
1014 "Setuptools is a fully-featured, stable library designed to facilitate
1015 packaging Python projects, where packaging includes:
1016 Python package and module definitions,
1017 distribution package metadata,
1019 project installation,
1020 platform-specific details,
1022 ;; TODO: setuptools now bundles the following libraries:
1023 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1024 (license (list license:psfl ; setuptools itself
1025 license:expat ; six, appdirs, pyparsing
1026 license:asl2.0 ; packaging is dual ASL2/BSD-2
1029 (define-public python2-setuptools
1030 (package-with-python2 python-setuptools))
1032 ;; The setuptools provided by Python 3.7.4 is too new for Tensorflow.
1033 (define-public python-setuptools-for-tensorflow
1036 (inherit python-setuptools)
1039 (inherit (package-source python-setuptools))
1040 (uri (pypi-uri "setuptools" version ".zip"))
1043 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65")))))))
1045 (define-public python-uniseg
1047 (name "python-uniseg")
1052 (uri (pypi-uri "uniseg" version ".zip"))
1055 "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
1056 (build-system python-build-system)
1058 '(#:tests? #f)) ; The test suite requires network access.
1060 `(("unzip" ,unzip)))
1062 "https://bitbucket.org/emptypage/uniseg-python")
1064 "Python library to determine Unicode text segmentations")
1066 "Uniseg is a Python package used to determine Unicode text segmentations.
1067 Supported segmentations include:
1069 @item @dfn{Code point} (any value in the Unicode codespace)
1070 @item @dfn{Grapheme cluster} (user-perceived character made of a single or
1071 multiple Unicode code points, e.g. \"G\" + acute-accent)
1073 @item Sentence break
1076 (license license:expat)))
1078 (define-public python2-uniseg
1079 (package-with-python2 python-uniseg))
1081 (define-public python-humanfriendly
1083 (name "python-humanfriendly")
1088 (uri (pypi-uri "humanfriendly" version))
1091 "0pisgizjql86785jchfjv217g0lsgk114g2lja5j4y3lsc3b9szi"))))
1092 (build-system python-build-system)
1094 `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
1097 `(("python-monotonic" ,python-monotonic)))
1098 (home-page "https://humanfriendly.readthedocs.io")
1099 (synopsis "Human-friendly input and output in Python")
1101 "The functions and classes in @code{humanfriendly} can be used to make
1102 text interfaces more user-friendly. It includes tools to parse and format
1103 numbers, file sizes, and timespans, timers for long-running operations, menus
1104 to allow the user to choose from a list of options, and terminal interaction
1106 (license license:expat)))
1108 (define-public python2-humanfriendly
1109 (package-with-python2 python-humanfriendly))
1111 (define-public python-capturer
1113 (name "python-capturer")
1118 (uri (pypi-uri "capturer" version))
1121 "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
1122 (build-system python-build-system)
1126 `(("python-humanfriendly" ,python-humanfriendly)))
1127 (home-page "https://capturer.readthedocs.io")
1128 (synopsis "Capture stdout and stderr streams of the current process")
1130 "The capturer package makes it easy to capture the stdout and stderr
1131 streams of the current process and subprocesses. Output can be relayed
1132 to the terminal in real time but is also available to the Python program
1133 for additional processing.")
1134 (license license:expat)))
1136 (define-public python2-capturer
1137 (package-with-python2 python-capturer))
1139 (define-public python-case
1141 (name "python-case")
1146 (uri (pypi-uri "case" version))
1149 "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
1150 (build-system python-build-system)
1152 `(("python-mock" ,python-mock)
1153 ("python-nose" ,python-nose)
1154 ("python-six" ,python-six)
1155 ("python-unittest2" ,python-unittest2)))
1157 `(("python-coverage" ,python-coverage)))
1158 (home-page "https://github.com/celery/case")
1159 (synopsis "Unittest utilities and convenience methods")
1161 "The @code{case} package provides utilities on top of unittest, including
1162 some helpful Python 2 compatibility convenience methods.")
1163 (license license:bsd-3)))
1165 (define-public python-verboselogs
1167 (name "python-verboselogs")
1172 (uri (pypi-uri "verboselogs" version))
1175 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
1176 (build-system python-build-system)
1179 (modify-phases %standard-phases
1182 ;; Do not run pylint plugin test, as astroid is an old
1183 ;; unsupported version.
1184 (invoke "pytest" "-v" "-k" "not test_pylint_plugin"
1185 "verboselogs/tests.py"))))))
1187 `(("python-mock" ,python-mock)
1188 ("python-pytest" ,python-pytest)))
1189 (home-page "https://verboselogs.readthedocs.io")
1190 (synopsis "Verbose logging level for Python's logging module")
1192 "The @code{verboselogs} package extends Python's @code{logging} module to
1193 add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
1194 (license license:expat)))
1196 (define-public python2-verboselogs
1197 (package-with-python2 python-verboselogs))
1199 (define-public python-coloredlogs
1201 (name "python-coloredlogs")
1206 (uri (pypi-uri "coloredlogs" version))
1209 "0dkw6xp0r1dwgz4s2f58npx5nxfq51wf4l6qkm5ib27slgfs4sdq"))))
1210 (build-system python-build-system)
1212 `(;Tests require some updated modules
1215 `(("python-capturer" ,python-capturer)))
1216 (home-page "https://coloredlogs.readthedocs.io")
1217 (synopsis "Colored stream handler for Python's logging module")
1219 "The @code{coloredlogs} package enables colored terminal output for
1220 Python's logging module. The @code{ColoredFormatter} class inherits from
1221 @code{logging.Formatter} and uses ANSI escape sequences to render your logging
1222 messages in color.")
1223 (license license:expat)))
1225 (define-public python2-coloredlogs
1226 (package-with-python2 python-coloredlogs))
1228 (define-public python-editorconfig
1230 (name "python-editorconfig")
1235 (uri (pypi-uri "EditorConfig" version))
1238 "0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv"))))
1239 (build-system python-build-system)
1240 (home-page "https://editorconfig.org/")
1241 (synopsis "EditorConfig bindings for python")
1242 (description "The EditorConfig project consists of a file format for
1243 defining coding styles and a collection of text editor plugins that enable
1244 editors to read the file format and adhere to defined styles. EditorConfig
1245 files are easily readable and they work nicely with version control systems.")
1246 ;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
1247 (license (list license:bsd-2 license:psfl))))
1249 (define-public python-et-xmlfile
1251 (name "python-et-xmlfile")
1256 (uri (pypi-uri "et_xmlfile" version))
1259 "0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1"))))
1260 (build-system python-build-system)
1262 `(#:phases (modify-phases %standard-phases
1265 (invoke "pytest"))))))
1267 `(("python-pytest" ,python-pytest)
1268 ("python-lxml" ,python-lxml))) ;used for the tests
1269 (home-page "https://bitbucket.org/openpyxl/et_xmlfile")
1270 (synopsis "Low memory implementation of @code{lxml.xmlfile}")
1271 (description "This Python library is based upon the @code{xmlfile} module
1272 from @code{lxml}. It aims to provide a low memory, compatible implementation
1273 of @code{xmlfile}.")
1274 (license license:expat)))
1276 (define-public python2-et-xmlfile
1277 (package-with-python2 python-et-xmlfile))
1279 (define-public python-openpyxl
1281 (name "python-openpyxl")
1285 ;; We use the upstream repository, as the tests are not included in the
1289 (url "https://bitbucket.org/openpyxl/openpyxl")
1290 (changeset version)))
1291 (file-name (string-append name "-" version "-checkout"))
1293 (base32 "1qhij6kcvdxqjy4g6193nsv4q7fy8n4fwyd3c2z047idlm6s3j4w"))))
1294 (build-system python-build-system)
1296 `(#:phases (modify-phases %standard-phases
1299 (invoke "pytest"))))))
1301 ;; For the test suite.
1302 `(("python-lxml" ,python-lxml)
1303 ("python-pillow" ,python-pillow)
1304 ("python-pytest" ,python-pytest)))
1306 `(("python-et-xmlfile" ,python-et-xmlfile)
1307 ("python-jdcal" ,python-jdcal)))
1308 (home-page "https://openpyxl.readthedocs.io")
1309 (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
1310 (description "This Python library allows reading and writing to the Excel XLSX, XLSM,
1311 XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
1313 (license license:expat)))
1315 (define-public python-eventlet
1317 (name "python-eventlet")
1322 (uri (pypi-uri "eventlet" version))
1325 "1hgz8jq19wlz8vwqj900ry8cjv578nz4scc91mlc8944yid6573c"))))
1326 (build-system python-build-system)
1328 `(("python-greenlet" ,python-greenlet)))
1330 ;; TODO: Requires unpackaged 'enum-compat'.
1332 (home-page "https://eventlet.net")
1333 (synopsis "Concurrent networking library for Python")
1335 "Eventlet is a concurrent networking library for Python that
1336 allows you to change how you run your code, not how you write it.
1337 It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
1338 Coroutines ensure that the developer uses a blocking style of programming
1339 that is similar to threading, but provide the benefits of non-blocking I/O.
1340 The event dispatch is implicit, which means you can easily use @code{Eventlet}
1341 from the Python interpreter, or as a small part of a larger application.")
1342 (license license:expat)))
1344 (define-public python2-eventlet
1345 (let ((base (package-with-python2
1346 (strip-python2-variant python-eventlet))))
1347 (package (inherit base)
1349 `(("python2-enum34" ,python2-enum34)
1350 ,@(package-propagated-inputs base))))))
1352 (define-public python-six
1359 (uri (pypi-uri "six" version))
1362 "0wxs1q74v07ssjywbbm7x6h5v9qx209ld2yfsif4060sxi0h2sni"))))
1363 (build-system python-build-system)
1366 (modify-phases %standard-phases
1369 (invoke "py.test" "-v"))))))
1371 `(("python-py" ,python-py)
1372 ("python-pytest" ,python-pytest-bootstrap)))
1373 (home-page "https://pypi.org/project/six/")
1374 (synopsis "Python 2 and 3 compatibility utilities")
1376 "Six is a Python 2 and 3 compatibility library. It provides utility
1377 functions for smoothing over the differences between the Python versions with
1378 the goal of writing Python code that is compatible on both Python versions.
1379 Six supports every Python version since 2.5. It is contained in only one
1380 Python file, so it can be easily copied into your project.")
1381 (license license:x11)))
1383 (define-public python2-six
1384 (package-with-python2 python-six))
1386 (define-public python-six-bootstrap
1388 (inherit python-six)
1389 (name "python-six-bootstrap")
1391 (arguments `(#:tests? #f))))
1393 (define-public python2-six-bootstrap
1394 (package-with-python2 python-six-bootstrap))
1396 (define-public python-schedule
1398 (name "python-schedule")
1403 (uri (pypi-uri "schedule" version))
1406 "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
1407 (build-system python-build-system)
1409 `(("python-pytest" ,python-pytest)
1410 ("python-mock" ,python-mock)))
1411 (home-page "https://github.com/dbader/schedule")
1412 (synopsis "Schedule periodic function calls in Python")
1414 "Schedule is an in-process scheduler for periodic jobs that uses the
1415 builder pattern for configuration. Schedule lets you run Python functions (or
1416 any other callable) periodically at pre-determined intervals using a simple,
1417 human-friendly syntax.")
1418 (license license:expat)))
1420 (define-public python2-schedule
1421 (package-with-python2 python-schedule))
1423 (define-public python2-mechanize
1425 (name "python2-mechanize")
1430 (uri (pypi-uri "mechanize" version))
1433 "0rj7r166i1dyrq0ihm5rijfmvhs8a04im28lv05c0c3v206v4rrf"))))
1434 (build-system python-build-system)
1436 `(#:python ,python-2 ; apparently incompatible with Python 3
1438 ;; test fails with message
1439 ;; AttributeError: 'module' object has no attribute 'test_pullparser'
1440 ;; (python-3.3.2) or
1441 ;; AttributeError: 'module' object has no attribute 'test_urllib2_localnet'
1443 ;; The source code is from March 2011 and probably not up-to-date
1444 ;; with respect to python unit tests.
1445 (home-page "http://wwwsearch.sourceforge.net/mechanize/")
1447 "Stateful programmatic web browsing in Python")
1449 "Mechanize implements stateful programmatic web browsing in Python,
1450 after Andy Lester’s Perl module WWW::Mechanize.")
1451 (license (license:non-copyleft
1453 "See COPYING in the distribution."))))
1456 (define-public python-simplejson
1458 (name "python-simplejson")
1463 (uri (pypi-uri "simplejson" version))
1466 "1lkv3xlf7ryzi69zqfdbkvpxdfy1rg1rq2yzcnxgf4km5m6difqy"))))
1467 (build-system python-build-system)
1468 (home-page "http://simplejson.readthedocs.org/en/latest/")
1470 "Json library for Python")
1472 "JSON (JavaScript Object Notation) is a subset of JavaScript
1473 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
1476 Simplejson exposes an API familiar to users of the standard library marshal
1477 and pickle modules. It is the externally maintained version of the json
1478 library contained in Python 2.6, but maintains compatibility with Python 2.5
1479 and (currently) has significant performance advantages, even without using
1480 the optional C extension for speedups. Simplejson is also supported on
1482 (license license:x11)))
1484 (define-public python2-simplejson
1485 (package-with-python2 python-simplejson))
1488 (define-public python-pyicu
1490 (name "python-pyicu")
1495 (uri (pypi-uri "PyICU" version))
1498 "1x4w8m7ifki9z2a187pgjr33z6z0rp2fii9b73djak1vhm9v9cnx"))))
1499 (build-system python-build-system)
1501 `(("icu4c" ,icu4c)))
1503 `(("python-pytest" ,python-pytest)
1504 ("python-six" ,python-six)))
1505 (home-page "https://github.com/ovalhub/pyicu")
1506 (synopsis "Python extension wrapping the ICU C++ API")
1508 "PyICU is a python extension wrapping the ICU C++ API.")
1509 (properties `((python2-variant . ,(delay python2-pyicu))))
1510 (license license:x11)))
1512 (define-public python2-pyicu
1513 (let ((base (package-with-python2
1514 (strip-python2-variant python-pyicu))))
1518 `(,@(package-arguments base)
1520 (modify-phases %standard-phases
1521 (add-before 'check 'delete-failing-test
1523 ;; XXX: This fails due to Unicode issues unique to Python 2,
1524 ;; it seems: <https://github.com/ovalhub/pyicu/issues/61>.
1525 (delete-file "test/test_Script.py")
1528 (define-public python2-dogtail
1529 ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
1530 ;; spaces in indentation" with Python 3.
1532 (name "python2-dogtail")
1536 (uri (pypi-uri "dogtail" version))
1539 "0p5wfssvzr9w0bvhllzbbd8fnp4cca2qxcpcsc33dchrmh5n552x"))))
1540 (build-system python-build-system)
1541 (arguments `(#:python ,python-2
1542 #:tests? #f)) ; invalid command "test"
1543 ;; Currently no offical homepage.
1544 (home-page "https://pypi.org/project/dogtail/")
1545 (synopsis "GUI test tool and automation framework written in Python")
1547 "Dogtail is a GUI test tool and automation framework written in Python.
1548 It uses Accessibility (a11y) technologies to communicate with desktop
1549 applications. dogtail scripts are written in Python and executed like any
1550 other Python program.")
1551 (license license:gpl2+)))
1553 (define-public python-empy
1555 (name "python-empy")
1559 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
1563 "1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq"))))
1564 (build-system python-build-system)
1566 `(#:tests? #f)) ; python2 only
1567 (home-page "http://www.alcyone.com/software/empy/")
1568 (synopsis "Templating system for Python")
1570 "EmPy is a system for embedding Python expressions and statements in
1571 template text; it takes an EmPy source file, processes it, and produces
1572 output. This is accomplished via expansions, which are special signals to the
1573 EmPy system and are set off by a special prefix (by default the at sign, @@).
1574 EmPy can expand arbitrary Python expressions and statements in this way, as
1575 well as a variety of special forms. Textual data not explicitly delimited in
1576 this way is sent unaffected to the output, allowing Python to be used in
1577 effect as a markup language. Also supported are callbacks via hooks,
1578 recording and playback via diversions, and dynamic, chainable filters. The
1579 system is highly configurable via command line options and embedded
1581 (license license:lgpl2.1+)))
1583 (define-public python2-empy
1584 (let ((base (package-with-python2 (strip-python2-variant python-empy))))
1587 (arguments `(,@(package-arguments base)
1590 (define-public python2-element-tree
1592 (name "python2-element-tree")
1597 "http://effbot.org/media/downloads/elementtree-"
1598 version "-20050316.tar.gz"))
1601 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
1602 (build-system python-build-system)
1604 `(#:python ,python-2 ; seems to be part of Python 3
1605 #:tests? #f)) ; no 'test' sub-command
1606 (synopsis "Toolkit for XML processing in Python")
1608 "ElementTree is a Python library supporting lightweight XML processing.")
1609 (home-page "https://effbot.org/zone/element-index.htm")
1610 (license (license:x11-style
1611 "http://docs.python.org/2/license.html"
1612 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
1614 (define-public python2-pybugz
1616 (name "python2-pybugz")
1621 "http://bits.liquidx.net/projects/pybugz/pybugz-"
1625 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
1626 (patches (search-patches "pybugz-stty.patch"
1627 "pybugz-encode-error.patch"))))
1628 (build-system python-build-system)
1630 `(#:python ,python-2 ; SyntaxError with Python 3
1631 #:tests? #f)) ; no 'test' sub-command
1633 `(("element-tree" ,python2-element-tree)))
1634 (synopsis "Python and command-line interface to Bugzilla")
1636 "PyBugz is a Python library and command-line tool to query the Bugzilla
1637 bug tracking system. It is meant as an aid to speed up interaction with the
1639 (home-page "http://www.liquidx.net/pybugz/")
1640 (license license:gpl2)))
1642 (define-public python2-enum
1644 (name "python2-enum")
1648 (uri (pypi-uri "enum" version))
1651 "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl"))))
1652 (build-system python-build-system)
1654 `(#:python ,python-2))
1655 (home-page "https://pypi.org/project/enum/")
1656 (synopsis "Robust enumerated type support in Python")
1658 "This provides a module for robust enumerations in Python. It has
1659 been superseded by the Python standard library and is provided only for
1661 ;; Choice of either license.
1662 (license (list license:gpl3+ license:psfl))))
1664 (define-public python-enum34
1666 (name "python-enum34")
1671 (uri (pypi-uri "enum34" version))
1674 "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a"))))
1675 (build-system python-build-system)
1676 (home-page "https://pypi.org/project/enum34/")
1677 (synopsis "Backported Python 3.4 Enum")
1679 "Enum34 is the new Python stdlib enum module available in Python 3.4
1680 backported for previous versions of Python from 2.4 to 3.3.")
1681 (license license:bsd-3)))
1683 (define-public python2-enum34
1684 (package-with-python2 python-enum34))
1686 (define-public python-parse-type
1688 (name "python-parse-type")
1693 (uri (pypi-uri "parse_type" version))
1696 "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"))))
1697 (build-system python-build-system)
1699 `(("python-six" ,python-six)
1700 ("python-parse" ,python-parse)))
1702 `(("python-pytest" ,python-pytest)
1703 ("python-pytest-runner" ,python-pytest-runner)))
1704 (home-page "https://github.com/jenisys/parse_type")
1705 (synopsis "Extended parse module")
1707 "Parse_type extends the python parse module.")
1709 `((python2-variant . ,(delay python2-parse-type))))
1710 (license license:bsd-3)))
1712 (define-public python2-parse-type
1713 (let ((base (package-with-python2
1714 (strip-python2-variant python-parse-type))))
1715 (package (inherit base)
1717 `(("python2-enum34" ,python2-enum34)
1718 ,@(package-propagated-inputs base))))))
1720 (define-public python-parse
1722 (name "python-parse")
1727 (uri (pypi-uri "parse" version))
1730 "0f8997xr8nq2nq35iiviq8ningd1zvy59fg503xfpbi2dwhgdkf3"))))
1731 (build-system python-build-system)
1734 (modify-phases %standard-phases
1736 (lambda _ (invoke "python" "test_parse.py"))))))
1737 (home-page "https://github.com/r1chardj0n3s/parse")
1738 (synopsis "Parse strings")
1740 "Parse strings using a specification based on the Python @code{format()}
1742 (license license:x11)))
1744 (define-public python-polib
1746 (name "python-polib")
1750 (uri (pypi-uri "polib" version))
1753 "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss"))))
1754 (build-system python-build-system)
1755 (home-page "https://bitbucket.org/izi/polib/wiki/Home")
1756 (synopsis "Manipulate, create and modify gettext files")
1757 (description "Polib can manipulate any gettext format (po, pot and mo)
1758 files. It can be used to create po files from scratch or to modify
1760 (license license:expat)))
1762 (define-public python2-polib
1763 (let ((base (package-with-python2 (strip-python2-variant python-polib))))
1766 (arguments `(,@(package-arguments base)
1767 ;; Tests don't work with python2.
1770 (define-public python-poyo
1772 (name "python-poyo")
1777 (uri (pypi-uri "poyo" version))
1780 "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
1781 (build-system python-build-system)
1782 (home-page "https://github.com/hackebrot/poyo")
1783 (synopsis "Lightweight YAML Parser for Python")
1785 "This package provides a lightweight YAML Parser for Python. It supports
1786 only a chosen subset of the YAML format that is required to parse cookiecutter
1787 user configuration files. It does not have support for serializing into YAML
1788 and is not compatible with JSON.")
1789 (license license:expat)))
1791 (define-public scons
1798 (url "https://github.com/SCons/scons.git")
1800 (file-name (git-file-name name version))
1803 "1xy8jrwz87y589ihcld4hv7wn122sjbz914xn8h50ww77wbhk8hn"))))
1804 (build-system python-build-system)
1806 `(#:use-setuptools? #f ; still relies on distutils
1807 #:tests? #f ; no 'python setup.py test' command
1809 (modify-phases %standard-phases
1810 (add-before 'build 'bootstrap
1812 (substitute* "src/engine/SCons/compat/__init__.py"
1813 (("sys.modules\\[new\\] = imp.load_module\\(old, \\*imp.find_module\\(old\\)\\)")
1814 "sys.modules[new] = __import__(old)"))
1815 (substitute* "src/engine/SCons/Platform/__init__.py"
1816 (("mod = imp.load_module\\(full_name, file, path, desc\\)")
1817 "mod = __import__(full_name)"))
1818 (invoke "python" "bootstrap.py" "build/scons" "DEVELOPER=guix")
1819 (chdir "build/scons")
1821 (home-page "https://scons.org/")
1822 (synopsis "Software construction tool written in Python")
1824 "SCons is a software construction tool. Think of SCons as an improved,
1825 cross-platform substitute for the classic Make utility with integrated
1826 functionality similar to autoconf/automake and compiler caches such as ccache.
1827 In short, SCons is an easier, more reliable and faster way to build
1829 (license license:x11)))
1831 (define-public scons-python2
1833 (inherit (package-with-python2 scons))
1834 (name "scons-python2")))
1836 (define-public python-extras
1838 (name "python-extras")
1843 (uri (pypi-uri "extras" version))
1846 "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
1847 (build-system python-build-system)
1849 ;; FIXME: Circular dependency on testtools.
1851 (home-page "https://github.com/testing-cabal/extras")
1852 (synopsis "Useful extensions to the Python standard library")
1854 "Extras is a set of extensions to the Python standard library.")
1855 (license license:expat)))
1857 (define-public python2-extras
1858 (package-with-python2 python-extras))
1860 (define-public python-mimeparse
1862 (name "python-mimeparse")
1867 (uri (pypi-uri "python-mimeparse" version))
1870 "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
1871 (build-system python-build-system)
1874 (modify-phases %standard-phases
1877 (invoke "./mimeparse_test.py"))))))
1879 "https://github.com/dbtsai/python-mimeparse")
1880 (synopsis "Python library for parsing MIME types")
1882 "Mimeparse provides basic functions for parsing MIME type names and
1883 matching them against a list of media-ranges.")
1884 (license license:expat)))
1886 (define-public python2-mimeparse
1887 (package-with-python2 python-mimeparse))
1889 (define-public python-miniboa
1891 (name "python-miniboa")
1896 (uri (pypi-uri "miniboa" version))
1899 "09jh3pn4rh7kh7jayanf8jzy6gp03791b5a193w6148cf3i6k9m3"))))
1900 (build-system python-build-system)
1901 (home-page "https://github.com/shmup/miniboa")
1902 (synopsis "Simple, single-threaded Telnet server")
1904 "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
1906 (license license:asl2.0)))
1908 (define-public python2-miniboa
1909 (package-with-python2 python-miniboa))
1911 (define-public python-pafy
1913 (name "python-pafy")
1918 (uri (pypi-uri "pafy" version))
1921 "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
1922 (build-system python-build-system)
1924 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
1926 ;; Youtube-dl is a python package which is imported in the file
1927 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
1928 `(("youtube-dl" ,youtube-dl)))
1929 (home-page "https://np1.github.io/pafy/")
1930 (synopsis "Retrieve YouTube content and metadata")
1932 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
1933 (license license:lgpl3+)))
1935 (define-public python2-funcsigs
1937 (name "python2-funcsigs")
1941 (uri (pypi-uri "funcsigs" version))
1944 "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"))))
1945 (build-system python-build-system)
1947 `(#:python ,python-2))
1949 `(("python2-unittest2" ,python2-unittest2)))
1950 (home-page "http://funcsigs.readthedocs.org")
1951 (synopsis "Python function signatures from PEP362")
1953 "Backport of @code{funcsigs} which was introduced in Python 3.3.")
1954 (license license:asl2.0)))
1956 (define-public python2-funcsigs-bootstrap
1958 (inherit python2-funcsigs)
1959 (name "python2-funcsigs-bootstrap")
1963 ,@(package-arguments python2-funcsigs)))))
1965 (define-public python-py
1972 (uri (pypi-uri "py" version))
1975 "0lsy1gajva083pzc7csj1cvbmminb7b4l6a0prdzyb3fd829nqyw"))))
1976 (build-system python-build-system)
1978 ;; FIXME: "ImportError: 'test' module incorrectly imported from
1979 ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
1980 ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
1981 ;; Is this module globally installed?"
1984 `(("python-setuptools-scm" ,python-setuptools-scm)))
1985 (home-page "https://github.com/pytest-dev/py")
1986 (synopsis "Python library for parsing, I/O, instrospection, and logging")
1988 "Py is a Python library for file name parsing, .ini file parsing, I/O,
1989 code introspection, and logging.")
1990 (license license:expat)))
1992 (define-public python2-py
1993 (package-with-python2 python-py))
1995 ;; Recent versions of python-fixtures and python-testrepository need
1996 ;; python-pbr for packaging, which itself needs these two packages for
1998 ;; To fix this circular dependency, we use a build of python-pbr, based on the
1999 ;; same source, just without any test dependencies and with tests disabled.
2000 ;; python-pbr-minmal is then used to package python-fixtures and
2001 ;; python-testrepository.
2002 ;; Strictly speaking we currently could remove the test-requirements from the
2003 ;; normal python-pbr package (and save this package) since test are disabled
2004 ;; there anyway. But this may change in future.
2005 (define-public python-pbr-minimal
2007 (name "python-pbr-minimal")
2012 (uri (pypi-uri "pbr" version))
2015 "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p"))))
2016 (build-system python-build-system)
2019 (home-page "https://docs.openstack.org/pbr/latest/")
2020 (synopsis "Minimal build of python-pbr used for bootstrapping")
2022 "Used only for bootstrapping python2-pbr, you should not need this.")
2023 (license license:asl2.0)))
2025 (define-public python2-pbr-minimal
2026 (package-with-python2 python-pbr-minimal))
2028 (define-public python-pbr
2030 (inherit python-pbr-minimal)
2033 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2035 `(("git" ,git))) ;; pbr actually uses the "git" binary.
2037 `(("python-fixtures" ,python-fixtures-bootstrap)
2038 ;; discover, coverage, hacking, subunit
2039 ("python-mock" ,python-mock)
2040 ("python-six" ,python-six)
2041 ("python-sphinx" ,python-sphinx)
2042 ("python-testrepository" ,python-testrepository-bootstrap)
2043 ("python-testresources" ,python-testresources-bootstrap)
2044 ("python-testscenarios" ,python-testscenarios-bootstrap)
2045 ("python-testtools" ,python-testtools-bootstrap)
2046 ("python-virtualenv" ,python-virtualenv)))
2047 (synopsis "Enhance the default behavior of Python’s setuptools")
2049 "Python Build Reasonableness (PBR) is a library that injects some useful
2050 and sensible default behaviors into your setuptools run. It will set
2051 versions, process requirements files and generate AUTHORS and ChangeLog file
2052 from git information.
2055 (define-public python2-pbr
2056 (package-with-python2 python-pbr))
2058 (define-public python-pyrsistent
2060 (name "python-pyrsistent")
2062 (home-page "https://github.com/tobgu/pyrsistent")
2065 (uri (pypi-uri "pyrsistent" version))
2068 "103j63g6lb5dfspph96zxjdpnq9h991kazd4f09ddgkpxpivbiyd"))))
2069 (build-system python-build-system)
2071 `(("python-hypothesis" ,python-hypothesis)
2072 ("python-pytest" ,python-pytest)
2073 ("python-pytest-runner" ,python-pytest-runner)))
2075 `(("python-six" ,python-six)))
2076 (synopsis "Persistent data structures for Python")
2078 "Pyrsistent is a number of persistent collections (by some referred to as
2079 functional data structures). Persistent in the sense that they are immutable.
2081 All methods on a data structure that would normally mutate it instead return a
2082 new copy of the structure containing the requested updates. The original
2083 structure is left untouched.")
2084 (license license:expat)))
2086 (define-public python2-pyrsistent
2087 (package-with-python2 python-pyrsistent))
2089 (define-public python-exif-read
2091 (name "python-exif-read")
2095 (uri (pypi-uri "ExifRead" version))
2098 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2099 (build-system python-build-system)
2100 (arguments `(#:tests? #f)) ; no tests
2101 (home-page "https://github.com/ianare/exif-py")
2102 (synopsis "Python library to extract EXIF data from image files")
2104 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2106 (license license:bsd-3)))
2108 (define-public python2-exif-read
2109 (package-with-python2 python-exif-read))
2111 (define-public python-pyld
2113 (name "python-pyld")
2117 (uri (pypi-uri "PyLD" version))
2120 "1ywbdbsrkg533qh8xn9ifjh2mvam6v5msrjyqq73jfpvcp89qvff"))))
2121 (build-system python-build-system)
2122 (home-page "https://github.com/digitalbazaar/pyld")
2123 (synopsis "Python implementation of the JSON-LD specification")
2125 "PyLD is an implementation of the JSON-LD specification.")
2126 (license license:bsd-3)))
2128 (define-public python2-pyld
2129 (package-with-python2 python-pyld))
2131 (define-public python-click
2133 (name "python-click")
2138 (uri (pypi-uri "click" version))
2141 "1mzjixd4vjbjvzb6vylki9w1556a9qmdh35kzmq6cign46av952v"))))
2142 (build-system python-build-system)
2145 (modify-phases %standard-phases
2146 (add-after 'unpack 'fix-paths
2147 (lambda* (#:key inputs #:allow-other-keys)
2148 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
2149 "cross-libc" "libc"))))
2150 (substitute* "click/_unicodefun.py"
2152 (string-append "'" glibc "/bin/locale'"))))
2156 (invoke "python" "-m" "pytest"))))))
2158 `(("python-pytest" ,python-pytest)))
2159 (home-page "https://palletsprojects.com/p/click/")
2160 (synopsis "Command line library for Python")
2162 "Click is a Python package for creating command line interfaces in a
2163 composable way with as little code as necessary. Its name stands for
2164 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2165 with sensible defaults out of the box.")
2166 (license license:bsd-3)))
2168 (define-public python2-click
2169 (package-with-python2 python-click))
2171 (define-public python-wheel
2173 (name "python-wheel")
2178 (uri (pypi-uri "wheel" version))
2181 "0ii6f34rvpjg3nmw4bc2h7fhdsy38y1h93hghncfs5akfrldmj8h"))))
2182 (build-system python-build-system)
2184 ;; FIXME: The test suite runs "python setup.py bdist_wheel", which in turn
2185 ;; fails to find the newly-built bdist_wheel library, even though it is
2186 ;; available on PYTHONPATH. What search path is consulted by setup.py?
2188 (home-page "https://bitbucket.org/pypa/wheel/")
2189 (synopsis "Format for built Python packages")
2191 "A wheel is a ZIP-format archive with a specially formatted filename and
2192 the @code{.whl} extension. It is designed to contain all the files for a PEP
2193 376 compatible install in a way that is very close to the on-disk format. Many
2194 packages will be properly installed with only the @code{Unpack} step and the
2195 unpacked archive preserves enough information to @code{Spread} (copy data and
2196 scripts to their final locations) at any later time. Wheel files can be
2197 installed with a newer @code{pip} or with wheel's own command line utility.")
2198 (license license:expat)))
2200 (define-public python2-wheel
2201 (package-with-python2 python-wheel))
2203 (define-public python-vcversioner
2205 (name "python-vcversioner")
2206 (version "2.16.0.0")
2210 (uri (pypi-uri "vcversioner" version))
2213 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
2214 (build-system python-build-system)
2215 (synopsis "Python library for version number discovery")
2216 (description "Vcversioner is a Python library that inspects tagging
2217 information in a variety of version control systems in order to discover
2219 (home-page "https://github.com/habnabit/vcversioner")
2220 (license license:isc)))
2222 (define-public python2-vcversioner
2223 (package-with-python2 python-vcversioner))
2225 (define-public python-jdcal
2227 (name "python-jdcal")
2232 (uri (pypi-uri "jdcal" version))
2235 "1ja6j2xq97bsl6rv09mhdx7n0xnrsfx0mj5xqza0mxghqmkm02pa"))))
2236 (build-system python-build-system)
2238 `(#:phases (modify-phases %standard-phases
2241 (invoke "pytest"))))))
2243 `(("python-pytest" ,python-pytest)))
2244 (home-page "https://github.com/phn/jdcal")
2245 (synopsis "Functions to convert between Julian dates Gregorian dates")
2246 (description "This Python library provides functions for converting
2247 between Julian dates and Gregorian dates.")
2248 (license license:bsd-2)))
2250 (define-public python2-jdcal
2251 (package-with-python2 python-jdcal))
2253 (define-public python-jsondiff
2255 (name "python-jsondiff")
2260 (uri (pypi-uri "jsondiff" version))
2263 "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l"))))
2264 (build-system python-build-system)
2266 `(("python-nose" ,python-nose)
2267 ("python-nose-random" ,python-nose-random)))
2269 "https://github.com/fzumstein/jsondiff")
2270 (synopsis "Compare JSON and JSON-like structures in Python")
2271 (description "@code{jsondiff} is a Python library which lets you
2272 compare, diff, and patch JSON and JSON-like structures in Python.")
2273 (license license:expat)))
2275 (define-public python-jsonschema
2277 (name "python-jsonschema")
2281 (uri (pypi-uri "jsonschema" version))
2284 "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
2285 (build-system python-build-system)
2288 (modify-phases %standard-phases
2290 (lambda* (#:key inputs outputs #:allow-other-keys)
2291 (add-installed-pythonpath inputs outputs)
2292 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
2293 (invoke "trial" "jsonschema"))))))
2295 `(("python-setuptools_scm" ,python-setuptools-scm)
2296 ("python-twisted" ,python-twisted)))
2298 `(("python-attrs" ,python-attrs)
2299 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
2300 ("python-pyrsistent" ,python-pyrsistent)
2301 ("python-six" ,python-six)))
2302 (home-page "https://github.com/Julian/jsonschema")
2303 (synopsis "Implementation of JSON Schema for Python")
2305 "Jsonschema is an implementation of JSON Schema for Python.")
2306 (license license:expat)
2307 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2309 (define-public python2-jsonschema
2310 (let ((jsonschema (package-with-python2
2311 (strip-python2-variant python-jsonschema))))
2312 (package (inherit jsonschema)
2314 `(("python2-functools32" ,python2-functools32)
2315 ,@(package-propagated-inputs jsonschema))))))
2317 (define-public python-schema
2319 (name "python-schema")
2324 (uri (pypi-uri "schema" version))
2327 "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
2328 (build-system python-build-system)
2330 `(("python-pytest" ,python-pytest)))
2331 (home-page "https://github.com/keleshev/schema")
2332 (synopsis "Simple data validation library")
2334 "@code{python-schema} is a library for validating Python data
2335 structures, such as those obtained from config-files, forms, external
2336 services or command-line parsing, converted from JSON/YAML (or
2337 something else) to Python data-types.")
2338 (license license:psfl)))
2340 (define-public python2-schema
2341 (package-with-python2 python-schema))
2343 (define-public python-schema-0.5
2344 (package (inherit python-schema)
2349 (uri (pypi-uri "schema" version))
2352 "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
2354 (define-public python2-schema-0.5
2355 (package-with-python2 python-schema-0.5))
2357 (define-public python-kitchen
2359 (name "python-kitchen")
2364 (uri (pypi-uri "kitchen" version))
2367 "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
2368 (build-system python-build-system)
2370 `(("python-chardet" ,python-chardet)))
2371 (home-page "https://github.com/fedora-infra/kitchen")
2372 (synopsis "Python API for snippets")
2373 (description "@code{kitchen} module provides a python API for all sorts of
2374 little useful snippets of code that everybody ends up writing for their projects
2375 but never seem big enough to build an independent release. Use kitchen and stop
2376 cutting and pasting that code over and over.")
2377 (license (list license:lgpl2.1+
2378 ;; subprocess.py, test_subprocess.py,
2379 ;; kitchen/pycompat25/defaultdict.py:
2382 (define-public python2-kitchen
2383 (package-with-python2 python-kitchen))
2385 (define-public python-unidecode
2387 (name "python-unidecode")
2391 (uri (pypi-uri "Unidecode" version))
2394 "1s6cp2lv4m0f00hjckjz8p6m7d3n3v16jvg353llf5ia1iqsnsib"))))
2395 (build-system python-build-system)
2396 (home-page "https://pypi.org/project/Unidecode/")
2397 (synopsis "ASCII transliterations of Unicode text")
2399 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
2400 useful when integrating with legacy code that doesn't support Unicode, or for
2401 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
2402 machine identifiers from human-readable Unicode strings that should still be
2403 somewhat intelligible.")
2404 (license license:gpl2+)))
2406 (define-public python2-unidecode
2407 (package-with-python2 python-unidecode))
2409 (define-public python-text-unidecode
2411 (name "python-text-unidecode")
2415 (uri (pypi-uri "text-unidecode" version))
2418 "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
2419 (build-system python-build-system)
2421 '(#:phases (modify-phases %standard-phases
2424 (setenv "PYTHONPATH"
2425 (string-append "./build/lib:"
2426 (getenv "PYTHONPATH")))
2427 (invoke "pytest" "-vv"))))))
2429 `(("python-pytest" ,python-pytest)))
2430 (home-page "https://github.com/kmike/text-unidecode/")
2431 (synopsis "Decode Unicode data")
2433 "@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
2434 Perl library. It can create ASCII representations of Unicode data. In general
2435 users should prefer the @code{python-unidecode} package which offers better
2436 memory usage and transliteration quality.")
2437 ;; The user can choose either license.
2438 (license (list license:clarified-artistic license:gpl2+))))
2440 (define-public python2-text-unidecode
2441 (package-with-python2 python-text-unidecode))
2443 (define-public python-pyjwt
2445 (name "python-pyjwt")
2450 (uri (pypi-uri "PyJWT" version))
2453 "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"))
2454 (modules '((guix build utils)))
2457 (for-each delete-file-recursively
2458 (find-files "." "\\.pyc$"))
2460 (build-system python-build-system)
2462 `(("python-pytest" ,python-pytest)
2463 ("python-pytest-cov" ,python-pytest-cov)
2464 ("python-pytest-runner" ,python-pytest-runner)))
2465 (home-page "https://github.com/progrium/pyjwt")
2466 (synopsis "JSON Web Token implementation in Python")
2468 "PyJWT is a JSON Web Token implementation written in Python.")
2469 (license license:expat)))
2471 (define-public python2-pyjwt
2472 (package-with-python2 python-pyjwt))
2474 (define-public python-pykka
2476 (name "python-pykka")
2481 (uri (pypi-uri "Pykka" version))
2484 "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8"))))
2485 (build-system python-build-system)
2487 `(("python-mock" ,python-mock)
2488 ("python-nose" ,python-nose)
2489 ("python-gevent" ,python-gevent)
2490 ("python-eventlet" ,python-eventlet)))
2491 (home-page "https://www.pykka.org/")
2492 (synopsis "Pykka is a Python implementation of the actor model")
2494 "Pykka is a Python implementation of the actor model.
2495 The actor model introduces some simple rules to control the sharing
2496 of state and cooperation between execution units, which makes it
2497 easier to build concurrent applications.")
2498 (license license:asl2.0)))
2500 (define-public python2-pykka
2501 (package-with-python2 python-pykka))
2503 (define-public python-pymsgbox
2505 (name "python-pymsgbox")
2511 ;; LICENSE.txt is not present on pypi
2512 (url "https://github.com/asweigart/PyMsgBox")
2513 (commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
2514 (file-name (git-file-name name version))
2517 "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
2519 ;; Circular dependency to run tests:
2520 ;; Tests need pyautogui, which depends on pymsgbox.
2522 (build-system python-build-system)
2523 (home-page "https://github.com/asweigart/PyMsgBox")
2524 (synopsis "Python module for JavaScript-like message boxes")
2526 "PyMsgBox is a simple, cross-platform, pure Python module for
2527 JavaScript-like message boxes. Types of dialog boxes include:
2535 (license license:bsd-3)))
2537 (define-public python-pympler
2539 (name "python-pympler")
2540 (home-page "https://pythonhosted.org/Pympler/")
2544 (uri (pypi-uri "Pympler" version))
2547 "08mrpnb6cv2nvfncvr8a9a8bpwhnasa924anapnjvnaw5jcd4k7p"))))
2548 (build-system python-build-system)
2550 `(#:phases (modify-phases %standard-phases
2552 (add-after 'install 'check
2553 (lambda* (#:key inputs outputs #:allow-other-keys)
2554 (add-installed-pythonpath inputs outputs)
2555 (invoke "python" "setup.py" "test"))))))
2556 (synopsis "Measure, monitor and analyze memory behavior")
2558 "Pympler is a development tool to measure, monitor and analyze
2559 the memory behavior of Python objects in a running Python application.
2561 By pympling a Python application, detailed insight in the size and the
2562 lifetime of Python objects can be obtained. Undesirable or unexpected
2563 runtime behavior like memory bloat and other @samp{pymples} can easily
2566 A web profiling frontend exposes process statistics, garbage
2567 visualisation and class tracker statistics.")
2568 (license license:asl2.0)))
2570 (define-public python2-pympler
2571 (package-with-python2 python-pympler))
2573 (define-public python-itsdangerous
2575 (name "python-itsdangerous")
2580 (uri (pypi-uri "itsdangerous" version))
2583 "068zpbksq5q2z4dckh2k1zbcq43ay74ylqn77rni797j0wyh66rj"))))
2584 (build-system python-build-system)
2585 (home-page "https://palletsprojects.com/p/itsdangerous/")
2586 (synopsis "Python library for passing data to/from untrusted environments")
2588 "Itsdangerous provides various helpers to pass trusted data to untrusted
2589 environments and back.")
2590 (license license:bsd-3)))
2592 (define-public python2-itsdangerous
2593 (package-with-python2 python-itsdangerous))
2595 (define-public python-pyyaml
2597 (name "python-pyyaml")
2602 (uri (pypi-uri "PyYAML" version))
2605 "0pb4zvkfxfijkpgd1b86xjsqql97ssf1knbd1v53wkg1qm9cgsmq"))))
2606 (build-system python-build-system)
2608 `(("libyaml" ,libyaml)))
2609 (home-page "https://pyyaml.org")
2610 (synopsis "YAML parser and emitter for Python")
2612 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
2613 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
2614 API, and sensible error messages. PyYAML supports standard YAML tags and
2615 provides Python-specific tags that allow to represent an arbitrary Python
2617 (license license:expat)))
2619 (define-public python2-pyyaml
2620 (package-with-python2 python-pyyaml))
2622 (define-public python-vine
2624 (name "python-vine")
2629 (uri (pypi-uri "vine" version))
2632 "0wkskb2hb494v9gixqnf4bl972p4ibcmxdykzpwjlfa5picns4aj"))))
2633 (build-system python-build-system)
2635 `(("python-pytest" ,python-pytest)
2636 ("python-case" ,python-case)))
2637 (home-page "https://github.com/celery/vine")
2638 (synopsis "Promises for Python")
2640 "@code{vine} provides a special implementation of promises in that it can
2641 be used both for \"promise of a value\" and lazy evaluation. The biggest
2642 upside for this is that everything in a promise can also be a promise,
2643 e.g. filters, callbacks and errbacks can all be promises.")
2644 (license license:bsd-3)))
2646 (define-public python-virtualenv
2648 (name "python-virtualenv")
2653 (uri (pypi-uri "virtualenv" version))
2656 "0y6x41l3ja891993i4adylbbyly0r4m52n2d0a0y9y4h3lzyh4l5"))))
2657 (build-system python-build-system)
2659 `(("python-mock" ,python-mock)
2660 ("python-pytest" ,python-pytest)
2661 ;; NOTE: guix lint remarks that "python-setuptools should probably not
2662 ;; be an input at all". However, removing the input makes the build error:
2663 ;; File "setup.py", line 4, in <module>
2664 ;; raise RuntimeError("setuptools >= 41 required to build")
2665 ("python-setuptools" ,python-setuptools)
2666 ("python-setuptools-scm" ,python-setuptools-scm)))
2668 `(("python-appdirs" ,python-appdirs)
2669 ("python-distlib" ,python-distlib)
2670 ("python-filelock" ,python-filelock)
2671 ("python-six" ,python-six)
2672 ("python-importlib-metadata" ,python-importlib-metadata)))
2673 (home-page "https://virtualenv.pypa.io/")
2674 (synopsis "Virtual Python environment builder")
2676 "Virtualenv is a tool to create isolated Python environments.")
2677 (properties `((python2-variant . ,(delay python2-virtualenv))))
2678 (license license:expat)))
2680 (define-public python2-virtualenv
2681 (let ((base (package-with-python2 (strip-python2-variant python-virtualenv))))
2685 `(#:python ,python-2
2687 (modify-phases %standard-phases
2688 (add-after 'set-paths 'adjust-PYTHONPATH
2689 (lambda* (#:key inputs #:allow-other-keys)
2690 (let* ((python (assoc-ref inputs "python"))
2691 (python-sitedir (string-append python "/lib/python2.7"
2693 ;; XXX: 'python2' always comes first on PYTHONPATH
2694 ;; and shadows the 'setuptools' input. Move python2
2695 ;; last: this should be fixed in python-build-system
2696 ;; in a future rebuild cycle.
2697 (setenv "PYTHONPATH"
2698 (string-append (string-join (delete python-sitedir
2700 (getenv "PYTHONPATH")
2703 ":" python-sitedir))
2704 (format #t "environment variable `PYTHONPATH' changed to `~a'~%"
2705 (getenv "PYTHONPATH"))
2708 `(("python-contextlib2" ,python2-contextlib2)
2709 ,@(package-propagated-inputs base))))))
2711 (define-public python-markupsafe
2713 (name "python-markupsafe")
2718 (uri (pypi-uri "MarkupSafe" version))
2721 "0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
2722 (build-system python-build-system)
2724 `(#:modules ((ice-9 ftw)
2728 (guix build python-build-system))
2729 #:phases (modify-phases %standard-phases
2732 (let ((cwd (getcwd))
2733 (libdir (find (cut string-prefix? "lib." <>)
2734 (scandir "build"))))
2735 (setenv "PYTHONPATH"
2736 (string-append cwd "/build/" libdir ":"
2737 (getenv "PYTHONPATH")))
2738 (invoke "pytest" "-vv")))))))
2740 `(("python-pytest" ,python-pytest)))
2741 (home-page "https://github.com/mitsuhiko/markupsafe")
2742 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
2744 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
2746 (license license:bsd-3)))
2748 (define-public python2-markupsafe
2749 (package-with-python2 python-markupsafe))
2751 (define-public python-jinja2
2753 (name "python-jinja2")
2758 (uri (pypi-uri "Jinja2" version))
2761 "0l72c11n959yzb8d3ankckb6yhjhm6x729zm7rkpk040qzxpy64k"))))
2762 (build-system python-build-system)
2764 '(#:phases (modify-phases %standard-phases
2766 (lambda* (#:key tests? #:allow-other-keys)
2769 (setenv "PYTHONPATH"
2770 (string-append "./build/lib:"
2771 (getenv "PYTHONPATH")))
2772 (invoke "pytest" "-vv"))
2773 (format #t "test suite not run~%"))
2776 `(("python-pytest" ,python-pytest)))
2778 `(("python-markupsafe" ,python-markupsafe)))
2779 (home-page "http://jinja.pocoo.org/")
2780 (synopsis "Python template engine")
2782 "Jinja2 is a small but fast and easy to use stand-alone template engine
2783 written in pure Python.")
2784 (license license:bsd-3)))
2786 (define-public python2-jinja2
2787 (package-with-python2 python-jinja2))
2789 (define-public python-jinja2-time
2791 (name "python-jinja2-time")
2796 (uri (pypi-uri "jinja2-time" version))
2799 "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
2800 (build-system python-build-system)
2802 `(("python-arrow" ,python-arrow)
2803 ("python-jinja2" ,python-jinja2)))
2805 "https://github.com/hackebrot/jinja2-time")
2806 (synopsis "Jinja2 Extension for Dates and Times")
2808 "This package provides an extension for the template engine Jinja2. It
2809 adds a 'now' tag providing a convenient access to the arrow.now() API from
2810 templates. A format string can be provided to control the output.")
2811 (license license:expat)))
2813 (define-public python-pystache
2815 (name "python-pystache")
2819 (uri (pypi-uri "pystache" version))
2822 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
2823 (build-system python-build-system)
2825 '(#:tests? #f)) ; FIXME: Python 3 tests are failing.
2826 (home-page "http://defunkt.io/pystache/")
2827 (synopsis "Python logic-less template engine")
2829 "Pystache is a Python implementation of the framework agnostic,
2830 logic-free templating system Mustache.")
2831 (license license:expat)
2832 (properties `((python2-variant . ,(delay python2-pystache))))))
2834 (define-public python2-pystache
2835 (package (inherit (package-with-python2
2836 (strip-python2-variant python-pystache)))
2838 `(#:python ,python-2
2840 (modify-phases %standard-phases
2843 (invoke "python" "test_pystache.py"))))))))
2845 (define-public python-joblib
2847 (name "python-joblib")
2851 (uri (pypi-uri "joblib" version))
2854 "1j464w137w6s367gl697j1l63g52akydrxgv4czlck36ynjfwc06"))))
2855 (build-system python-build-system)
2858 (modify-phases %standard-phases
2860 (lambda _ (invoke "pytest" "-v" "joblib"))))))
2862 `(("python-pytest" ,python-pytest)))
2863 (home-page "https://joblib.readthedocs.io/")
2864 (synopsis "Using Python functions as pipeline jobs")
2866 "Joblib is a set of tools to provide lightweight pipelining in Python.
2867 In particular, joblib offers: transparent disk-caching of the output values
2868 and lazy re-evaluation (memoize pattern), easy simple parallel computing
2869 logging and tracing of the execution.")
2870 (license license:bsd-3)))
2872 (define-public python2-joblib
2873 (package-with-python2 python-joblib))
2875 (define-public python-daemon
2877 (name "python-daemon")
2882 (uri (pypi-uri "python-daemon" version))
2885 "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg"))))
2886 (build-system python-build-system)
2889 (modify-phases %standard-phases
2890 (add-before 'check 'disable-tests
2892 ;; FIXME: Determine why test fails
2893 (substitute* "test/test_daemon.py"
2894 (("test_detaches_process_context")
2895 "skip_test_detaches_process_context"))
2898 `(("python-lockfile" ,python-lockfile)))
2900 `(("python-unittest2" ,python-unittest2)
2901 ("python-testtools" ,python-testtools)
2902 ("python-testscenarios" ,python-testscenarios)
2903 ("python-mock" ,python-mock)
2904 ("python-docutils" ,python-docutils)))
2905 (home-page "https://pagure.io/python-daemon/")
2906 (synopsis "Python library for making a Unix daemon process")
2907 (description "Python-daemon is a library that assists a Python program to
2908 turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
2910 This library provides a @code{DaemonContext} class that manages the following
2911 important tasks for becoming a daemon process:
2913 @item Detach the process into its own process group.
2914 @item Set process environment appropriate for running inside a chroot.
2915 @item Renounce suid and sgid privileges.
2916 @item Close all open file descriptors.
2917 @item Change the working directory, uid, gid, and umask.
2918 @item Set appropriate signal handlers.
2919 @item Open new file descriptors for stdin, stdout, and stderr.
2920 @item Manage a specified PID lock file.
2921 @item Register cleanup functions for at-exit processing.
2923 ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
2924 (license (list license:asl2.0 license:gpl3+))))
2926 (define-public python-anytree
2928 (name "python-anytree")
2932 (uri (pypi-uri "anytree" version))
2935 "1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
2936 (build-system python-build-system)
2938 `(("python-six" ,python-six)))
2941 ("graphviz" ,graphviz) ;for 'dot'
2942 ("python-nose" ,python-nose)))
2943 (home-page "https://github.com/c0fec0de/anytree")
2944 (synopsis "Lightweight tree data library")
2946 "@code{anytree} is a simple, lightweight, and extensible tree data
2947 structure for Python.")
2948 (license license:asl2.0)))
2950 (define-public python-docutils
2952 (name "python-docutils")
2957 (uri (pypi-uri "docutils" version))
2960 "1z3qliszqca9m719q3qhdkh0ghh90g500avzdgi7pl77x5h3mpn2"))))
2961 (build-system python-build-system)
2963 '(#:phases (modify-phases %standard-phases
2965 (lambda* (#:key tests? #:allow-other-keys)
2967 (invoke "python" "test/alltests.py")
2968 (format #t "test suite not run~%"))
2970 (home-page "http://docutils.sourceforge.net/")
2971 (synopsis "Python Documentation Utilities")
2973 "Docutils is a modular system for processing documentation into useful
2974 formats, such as HTML, XML, and LaTeX. For input Docutils supports
2976 ;; Most of the source code is public domain, but some source files are
2977 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
2978 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
2980 (define-public python2-docutils
2981 (package-with-python2 python-docutils))
2983 ;; python2-sphinx fails its test suite with newer versions.
2984 (define-public python2-docutils-0.14
2986 (inherit python2-docutils)
2990 (uri (pypi-uri "docutils" version))
2993 "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"))))))
2995 (define-public python-pygments
2997 (name "python-pygments")
3002 (uri (pypi-uri "Pygments" version))
3005 "1zmhnswy0wxfn0xprs9aqsvx2c3kmzfn2wx14q8cv3vpkxdamj4q"))))
3006 (build-system python-build-system)
3008 ;; FIXME: Tests require sphinx, which depends on this.
3010 (home-page "https://pygments.org/")
3011 (synopsis "Syntax highlighting")
3013 "Pygments is a syntax highlighting package written in Python.")
3014 (license license:bsd-2)))
3016 (define-public python2-pygments
3017 (package-with-python2 python-pygments))
3019 (define-public python-bumpversion
3021 (name "python-bumpversion")
3026 (uri (pypi-uri "bumpversion" version))
3029 "0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37"))))
3030 (build-system python-build-system)
3031 (home-page "https://github.com/peritus/bumpversion")
3032 (synopsis "Tool to bump software version")
3033 (description "This tool provides a command-line interface (CLI) to bump a
3034 software version simply.")
3035 (license license:expat)))
3037 (define-public python-deprecated
3039 (name "python-deprecated")
3045 (url "https://github.com/tantale/deprecated.git")
3046 (commit (string-append "v" version))))
3047 (file-name (git-file-name name version))
3050 "14909glxxwwc4b9qpz2b9jdriwzi5n65ichw85xqppap5f79wcwz"))))
3051 (build-system python-build-system)
3053 `(#:phases (modify-phases %standard-phases
3056 (invoke "pytest"))))))
3058 `(("python-wrapt" ,python-wrapt)))
3060 `(("python-bumpversion" ,python-bumpversion)
3061 ("python-pytest" ,python-pytest)
3062 ("python-pytest-cov" ,python-pytest-cov)
3063 ("python-sphinx" ,python-sphinx)
3064 ("python-tox" ,python-tox)))
3065 (home-page "https://github.com/tantale/deprecated")
3066 (synopsis "Python decorator to deprecate classes, functions or methods")
3067 (description "The @code{deprecated} decorator provides a convenient way to deprecate
3068 to deprecate classes, functions or methods.")
3069 (license license:expat)))
3071 (define-public python-pygithub
3073 (name "python-pygithub")
3076 ;; We fetch from the Git repo because there are no tests in the PyPI
3081 (url "https://github.com/PyGithub/PyGithub.git")
3082 (commit (string-append "v" version))))
3083 (file-name (git-file-name name version))
3085 (base32 "1625v558xga5mwhl9jqmibywy5qafmg1vqrirqz6zfq1la1d22mw"))))
3086 (build-system python-build-system)
3088 `(#:phases (modify-phases %standard-phases
3089 ;; Some tests rely on the network.
3090 (add-after 'unpack 'disable-failing-tests
3092 (substitute* "tests/Issue142.py"
3093 (("testDecodeJson") "disabled_testDecodeJson"))
3095 (add-before 'check 'prepare-for-tests
3097 (for-each (lambda (f)
3099 (find-files "./tests"))
3100 (system* "python" "-m" "lib2to3" "-w" "-n" "tests")
3101 (setenv "PYTHONPATH"
3102 (string-append "./tests:" (getenv "PYTHONPATH")))
3105 `(("python-deprecated" ,python-deprecated)
3106 ("python-pyjwt" ,python-pyjwt)
3107 ("python-requests" ,python-requests)))
3108 (native-inputs `(("python-httpretty" ,python-httpretty)))
3109 (home-page "https://pygithub.readthedocs.io/en/latest/")
3110 (synopsis "Python library for the GitHub API")
3111 (description "This library allows managing GitHub resources such as
3112 repositories, user profiles, and organizations in your Python applications,
3113 using version 3 of the GitHub application programming interface (API).")
3114 (license license:lgpl3+)))
3116 (define-public python-rellu
3118 (name "python-rellu")
3123 (uri (pypi-uri "rellu" version))
3126 "1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x"))))
3127 (build-system python-build-system)
3129 `(("python-invoke" ,python-invoke)
3130 ("python-pygithub" ,python-pygithub)))
3131 (home-page "https://github.com/robotframework/rellu")
3132 (synopsis "Utilities to create PyPI releases")
3133 (description "This collection of utilities contains tooling and templates
3134 to assist in creating releases on GitHub and publishing them on PyPI. It is
3135 designed to be used by Robot Framework and tools and libraries in its
3136 ecosystem, but can naturally be used also by other projects.")
3137 (license license:asl2.0)))
3139 (define-public python-robotframework
3141 (name "python-robotframework")
3143 ;; There are no tests in the PyPI archive.
3148 (url "https://github.com/robotframework/robotframework.git")
3149 (commit (string-append "v" version))))
3150 (file-name (git-file-name name version))
3152 (base32 "16gnxy0qinh8fhs0qvhff5z2xh49c3cqgm0d7bfjw120df6x7fym"))
3153 (patches (search-patches
3154 "python-robotframework-honor-source-date-epoch.patch"))))
3155 (build-system python-build-system)
3157 `(#:phases (modify-phases %standard-phases
3158 (add-before 'build 'build-and-install-doc
3159 (lambda* (#:key outputs #:allow-other-keys)
3160 (let* ((doc-output (assoc-ref outputs "doc"))
3161 (doc (string-append doc-output "/share/"
3162 ,name "-" ,version "/")))
3163 (invoke "invoke" "library-docs" "all")
3165 (copy-recursively "doc/libraries"
3166 (string-append doc "/libraries"))
3170 (invoke "python" "utest/run.py"))))))
3172 `(("python-invoke" ,python-invoke)
3173 ("python-rellu" ,python-rellu)
3174 ("python:tk" ,python "tk"))) ;used when building the HTML doc
3175 (outputs '("out" "doc"))
3176 (home-page "https://robotframework.org")
3177 (synopsis "Generic automation framework")
3178 (description "Robot Framework is a generic automation framework for
3179 acceptance testing, acceptance test driven development (ATDD), and robotic
3180 process automation (RPA).")
3181 (license license:asl2.0)))
3183 (define-public python-robotframework-lint
3184 ;; There is no properly tagged release; the commit below seems to correspond
3185 ;; to the 0.9 stable release available from PyPI. The tests are not
3186 ;; included in the PyPI archive, so we fetch the sources from the upstream
3188 (let ((commit "e851879bab1f63e4e53b34a4dc8a67ed95102830")
3191 (name "python-robotframework-lint")
3192 (version (git-version "0.9.0" revision commit))
3197 (url "https://github.com/boakley/robotframework-lint.git")
3199 (file-name (git-file-name name version))
3202 "1p6fknqg5sb9qz5857ji4a877657vgfjm5v3zn45994parx6ml1m"))))
3203 (build-system python-build-system)
3206 (modify-phases %standard-phases
3209 (invoke "python" "-m" "robot" "-A"
3210 "tests/conf/default.args" "tests"))))))
3212 `(("python-robotframework" ,python-robotframework)))
3213 (home-page "https://github.com/boakley/robotframework-lint/")
3214 (synopsis "Static analysis tool (linter) for Robot Framework")
3215 (description "This package provides the @code{rflint} command-line
3216 utility, a static analysis tool (linter) for Robot Framework source files.")
3217 (license license:asl2.0))))
3219 (define-public python-robotframework-sshlibrary
3221 (name "python-robotframework-sshlibrary")
3223 ;; There are no tests in the PyPI archive.
3228 (url "https://github.com/robotframework/SSHLibrary.git")
3229 (commit (string-append "v" version))))
3230 (file-name (git-file-name name version))
3233 "1mk6dz2jqqndbx4yji09012q6rmadnqdywi7czvj62b0s07dr3r2"))))
3234 (build-system python-build-system)
3237 (modify-phases %standard-phases
3238 (add-before 'build 'build-and-install-doc
3239 (lambda* (#:key outputs #:allow-other-keys)
3240 (let* ((doc-output (assoc-ref outputs "doc"))
3241 (doc (string-append doc-output "/share/"
3242 ,name "-" ,version "/")))
3243 (invoke "chmod" "-R" "+w" "docs")
3244 (invoke "invoke" "kw-docs" "project-docs")
3246 (for-each delete-file (find-files "docs" "\\.rst"))
3247 (copy-recursively "docs" doc)
3251 ;; Some tests require an SSH server; we remove them.
3252 (delete-file "utest/test_client_api.py")
3253 (delete-file "utest/test_scp.py")
3254 (invoke "python" "utest/run.py"))))))
3256 `(("python-robotframework" ,python-robotframework)
3257 ("python-paramiko" ,python-paramiko)
3258 ("python-scp" ,python-scp)))
3260 `(("openssh" ,openssh)
3262 ;; To generate the documentation
3263 ("python-docutils" ,python-docutils)
3264 ("python-invoke" ,python-invoke)
3265 ("python-pygments" ,python-pygments)
3266 ("python-rellu" ,python-rellu)))
3267 (outputs '("out" "doc"))
3268 (home-page "https://github.com/robotframework/SSHLibrary")
3269 (synopsis "Robot Framework library for SSH and SFTP")
3270 (description "SSHLibrary is a Robot Framework library providing support
3271 for SSH and SFTP. It has the following main usages:
3273 @item Executing commands on the remote machine, either blocking or non-blocking.
3274 @item Writing and reading in an interactive shell.
3275 @item Transferring files and directories over SFTP.
3276 @item Ensuring that files and directories exist on the remote machine.
3278 (license license:asl2.0)))
3280 (define-public python-rstr
3282 (name "python-rstr")
3287 (uri (pypi-uri "rstr" version))
3290 "197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx"))))
3291 (build-system python-build-system)
3293 "http://bitbucket.org/leapfrogdevelopment/rstr/overview")
3294 (synopsis "Generate random strings in Python")
3295 (description "This package provides a python module for generating
3296 random strings of various types. It could be useful for fuzz testing,
3297 generating dummy data, or other applications. It has no dependencies
3298 outside the standard library.")
3299 (license license:bsd-3)))
3301 (define-public python-scp
3308 (uri (pypi-uri "scp" version))
3311 "1crlpw9lnn58fs1c1rmh7s7s9y5gkgpgjsqlvg9qa51kq1knx7gg"))))
3312 (build-system python-build-system)
3314 '(#:tests? #f)) ;tests require an SSH server
3316 `(("python-paramiko" ,python-paramiko)))
3317 (home-page "https://github.com/jbardin/scp.py")
3318 (synopsis "SCP protocol module for Python and Paramiko")
3319 (description "The scp module extends the Paramiko library to send and
3320 receive files via the SCP1 protocol, as implemented by the OpenSSH
3321 @command{scp} program.")
3322 (license license:gpl2+)))
3324 (define-public python-rst.linker
3326 (name "python-rst.linker")
3331 (uri (pypi-uri "rst.linker" version))
3333 (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
3334 (build-system python-build-system)
3336 `(("python-dateutil" ,python-dateutil)
3337 ("python-six" ,python-six)))
3339 `(("python-setuptools-scm" ,python-setuptools-scm)))
3340 ;; Test would require path.py, which would introduce a cyclic dependence.
3341 (arguments `(#:tests? #f))
3342 ;; Note: As of version 1.7 the documentation is not worth building.
3343 (home-page "https://github.com/jaraco/rst.linker")
3344 (synopsis "Sphinx plugin to add links and timestamps")
3345 (description "rst.linker allows to automatically replace text by a
3346 reStructuredText external reference or timestamps. It's primary purpose is to
3347 augment the changelog, but it can be used for other documents, too.")
3348 (license license:expat)))
3350 (define-public python2-rst.linker
3351 (package-with-python2 python-rst.linker))
3353 (define-public python-feedgenerator
3355 (name "python-feedgenerator")
3360 (uri (pypi-uri "feedgenerator" version))
3363 "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
3364 (modules '((guix build utils)))
3367 ;; Remove pre-compiled .pyc files from source.
3368 (for-each delete-file-recursively
3369 (find-files "." "__pycache__" #:directories? #t))
3370 (for-each delete-file (find-files "." "\\.pyc$"))
3372 (build-system python-build-system)
3374 `(("python-pytz" ,python-pytz)
3375 ("python-six" ,python-six)))
3376 (home-page "https://github.com/getpelican/feedgenerator")
3378 "Standalone version of Django's Atom/RSS feed generator")
3380 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
3381 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
3382 (license license:bsd-3)))
3384 (define-public python2-feedgenerator
3385 (package-with-python2 python-feedgenerator))
3387 (define-public python-toml
3389 (name "python-toml")
3394 (uri (pypi-uri "toml" version))
3397 "0bdbpbip67wdm6c7xwc6mmbmskyradj4cdxn1iibj4fcx1nbv1lf"))))
3398 (build-system python-build-system)
3400 `(#:tests? #f)) ;no tests suite in release
3401 (home-page "https://github.com/uiri/toml")
3402 (synopsis "Library for TOML")
3404 "@code{toml} is a library for parsing and creating Tom's Obvious, Minimal
3405 Language (TOML) configuration files.")
3406 (license license:expat)))
3408 (define-public python-jsonrpc-server
3410 (name "python-jsonrpc-server")
3415 (uri (pypi-uri "python-jsonrpc-server" version))
3418 "0ddgdp26dfxaz6isjbb12974b3rxavgsqrn2zrmck62cmipg5g05"))))
3419 (build-system python-build-system)
3421 `(("python-future" ,python-future)
3422 ("python-mock" ,python-mock)
3423 ("python-pytest" ,python-pytest)
3424 ("python-ujson" ,python-ujson)))
3426 "https://github.com/palantir/python-jsonrpc-server")
3427 (synopsis "JSON RPC 2.0 server library")
3429 "This package provides a JSON RPC 2.0 server library for Python.")
3430 (license license:expat)))
3432 (define-public python-pydocstyle
3434 (name "python-pydocstyle")
3439 (uri (pypi-uri "pydocstyle" version))
3442 "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap"))))
3443 (build-system python-build-system)
3445 `(("python-six" ,python-six)
3446 ("python-snowballstemmer" ,python-snowballstemmer)))
3448 "https://github.com/PyCQA/pydocstyle/")
3449 (synopsis "Python docstring style checker")
3451 "This package provides a style checker for the Python Language
3453 (license license:expat)))
3455 (define-public python-language-server
3457 (name "python-language-server")
3462 (uri (pypi-uri "python-language-server" version))
3465 "0f8rljff4h2ay9m2n9ang7axai37nzd39zd7m6c90rci5wh8cmxh"))))
3466 (build-system python-build-system)
3468 `(("python-pluggy" ,python-pluggy)
3469 ("python-jsonrpc-server" ,python-jsonrpc-server)
3470 ;; Note: Remove the special versions of Jedi and Parso when updating
3472 ("python-jedi" ,python-jedi-0.15)
3473 ("python-yapf" ,python-yapf)
3474 ("python-pyflakes" ,python-pyflakes)
3475 ("python-pydocstyle" ,python-pydocstyle)
3476 ("python-pycodestyle" ,python-pycodestyle)
3477 ("python-mccabe" ,python-mccabe)
3478 ("python-rope" ,python-rope)
3479 ("python-autopep8" ,python-autopep8)
3480 ("python-flake8" ,python-flake8)
3481 ("python-pylint" ,python-pylint)))
3482 (home-page "https://github.com/palantir/python-language-server")
3483 (synopsis "Python implementation of the Language Server Protocol")
3485 "The Python Language Server (pyls) is an implementation of the Python 3
3486 language specification for the Language Server Protocol (LSP). This tool is
3487 used in text editing environments to provide a complete and integrated
3488 feature-set for programming Python effectively.")
3489 (license license:expat)))
3491 (define-public python-pathspec
3493 (name "python-pathspec")
3498 (uri (pypi-uri "pathspec" version))
3501 "15lvs4awlg8xzl0l4gk9y53xx4yqmqvsv44pglv39m70y85afajn"))))
3502 (build-system python-build-system)
3503 (home-page "https://github.com/cpburnz/python-path-specification")
3504 (synopsis "Utility library for gitignore style pattern matching of file paths")
3506 "This package provides a utility library for gitignore style pattern
3507 matching of file paths.")
3508 (license license:mpl2.0)))
3510 (define-public python-black
3512 (name "python-black")
3517 (uri (pypi-uri "black" version))
3520 "0f8mr0yzj78q1dx7v6ggbgfir2wv0n5z2shfbbvfdq7910xbgvf2"))))
3521 (build-system python-build-system)
3524 (modify-phases %standard-phases
3525 (add-after 'patch-source-shebangs 'patch-extra-shebangs
3527 (let ((python3 (which "python3")))
3528 (substitute* '("tests/data/fmtonoff.py"
3529 "tests/data/string_prefixes.py"
3530 "tests/data/function.py"
3531 "tests/data/python37.py")
3532 (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
3533 (string-append "#!" python3 (if (string? minor-version)
3537 (add-after 'unpack 'disable-broken-tests
3539 ;; These tests are supposed to be skipped when the blackd
3540 ;; dependencies are missing, but this doesn't quite work.
3541 (substitute* "tests/test_black.py"
3542 (("( *)class BlackDTestCase.*" match indent)
3543 (string-append indent "@unittest.skip(\"no blackd deps\")\n"
3544 indent "class BlackDTestCase(unittest.TestCase):\n"))
3545 (("web.Application") "False")
3546 (("@unittest_run_loop") ""))
3548 ;; Patching the above file breaks the self test
3549 (substitute* "tests/test_black.py"
3550 (("( *)def test_self" match indent)
3551 (string-append indent "@unittest.skip(\"guix\")\n" match)))
3554 `(("python-click" ,python-click)
3555 ("python-attrs" ,python-attrs)
3556 ("python-appdirs" ,python-appdirs)
3557 ("python-pathspec" ,python-pathspec)
3558 ("python-regex" ,python-regex)
3559 ("python-toml" ,python-toml)
3560 ("python-typed-ast" ,python-typed-ast)))
3562 `(("python-setuptools-scm" ,python-setuptools-scm)))
3563 (home-page "https://github.com/ambv/black")
3564 (synopsis "The uncompromising code formatter")
3565 (description "Black is the uncompromising Python code formatter.")
3566 (license license:expat)))
3568 (define-public python-blinker
3570 (name "python-blinker")
3575 (uri (pypi-uri "blinker" version))
3578 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
3579 (build-system python-build-system)
3580 (home-page "https://pythonhosted.org/blinker/")
3581 (synopsis "Fast, simple object-to-object and broadcast signaling")
3583 "Blinker provides a fast dispatching system that allows any number of
3584 interested parties to subscribe to events, or \"signals\".")
3585 (license license:expat)))
3587 (define-public python2-blinker
3588 (package-with-python2 python-blinker))
3590 (define-public pelican
3597 (uri (pypi-uri "pelican" version))
3600 "0mp7hjyhs38ag1hyfcy882g400z0babqi72pnli46dqijfhajzmy"))))
3601 (build-system python-build-system)
3603 `(("python-blinker" ,python-blinker)
3604 ("python-dateutil" ,python-dateutil)
3605 ("python-docutils" ,python-docutils)
3606 ("python-feedgenerator" ,python-feedgenerator)
3607 ("python-jinja2" ,python-jinja2)
3608 ("python-markdown" ,python-markdown)
3609 ("python-pygments" ,python-pygments)
3610 ("python-pytz" ,python-pytz)
3611 ("python-six" ,python-six)
3612 ("python-unidecode" ,python-unidecode)))
3613 (home-page "https://getpelican.com/")
3615 `(;; XXX Requires a lot more packages to do unit tests :P
3617 (synopsis "Python-based static site publishing system")
3619 "Pelican is a tool to generate a static blog from reStructuredText,
3620 Markdown input files, and more. Pelican uses Jinja2 for templating
3621 and is very extensible.")
3622 (license license:agpl3+)))
3624 (define-public mallard-ducktype
3626 (name "mallard-ducktype")
3631 ;; git-reference because tests are not included in pypi source tarball
3632 ;; https://issues.guix.gnu.org/issue/36755#2
3634 (url "https://github.com/projectmallard/mallard-ducktype.git")
3636 (file-name (git-file-name name version))
3639 "1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
3640 (build-system python-build-system)
3643 (modify-phases %standard-phases
3646 (with-directory-excursion "tests"
3647 (invoke "sh" "runtests")))))))
3648 (home-page "http://projectmallard.org")
3649 (synopsis "Convert Ducktype to Mallard documentation markup")
3651 "Ducktype is a lightweight syntax that can represent all the semantics
3652 of the Mallard XML documentation system. Ducktype files can be converted to
3653 Mallard using the @command{ducktype} tool. The yelp-tools package
3654 provides additional functionality on the produced Mallard documents.")
3655 (license license:expat)))
3657 (define-public python-cython
3659 (name "python-cython")
3664 (uri (pypi-uri "Cython" version))
3667 "0c5cjyxfvba6c0vih1fvhywp8bpz30vwvbjqdm1q1k55xzhmkn30"))))
3668 (build-system python-build-system)
3669 ;; we need the full python package and not just the python-wrapper
3670 ;; because we need libpython3.3m.so
3672 `(("python" ,python)))
3675 (modify-phases %standard-phases
3676 (add-before 'check 'set-HOME
3677 ;; some tests require access to "$HOME/.cython"
3678 (lambda _ (setenv "HOME" "/tmp") #t))
3681 ;; Disable compiler optimizations to greatly reduce the running
3682 ;; time of the test suite.
3683 (setenv "CFLAGS" "-O0")
3685 (invoke "python" "runtests.py" "-vv"
3686 "-j" (number->string (parallel-job-count))))))))
3687 (home-page "https://cython.org/")
3688 (synopsis "C extensions for Python")
3689 (description "Cython is an optimising static compiler for both the Python
3690 programming language and the extended Cython programming language. It makes
3691 writing C extensions for Python as easy as Python itself.")
3692 (license license:asl2.0)
3693 (properties `((python2-variant . ,(delay python2-cython))))))
3695 (define-public python2-cython
3696 (let ((base (package-with-python2 (strip-python2-variant python-cython))))
3699 (name "python2-cython")
3701 `(("python-2" ,python-2))) ;this is not automatically changed
3703 (substitute-keyword-arguments (package-arguments base)
3705 `(modify-phases ,phases
3706 ;; XXX: On i686-linux, running the parallel tests fails on many-core
3707 ;; systems, see <https://github.com/cython/cython/issues/2807>.
3708 ;; TODO: Move this logic to the regular check phase in a future
3710 ,@(if (string-prefix? "i686" (%current-system))
3713 (setenv "CFLAGS" "-O0")
3714 (invoke "python" "runtests.py" "-vv"
3715 "-j" (number->string (parallel-job-count))
3716 "-x" "run.parallel"))))
3718 (add-before 'check 'adjust-test_embed
3720 (substitute* "runtests.py"
3721 ;; test_embed goes great lengths to find the static libpythonX.Y.a
3722 ;; so it can give the right -L flag to GCC when embedding static
3723 ;; builds of Python. It is unaware that the Python "config"
3724 ;; directory (where the static library lives) was renamed in
3725 ;; Python 3, and falls back to sysconfig.get_config_var('LIBDIR'),
3726 ;; which works fine, because that is where the shared library is.
3728 ;; It also appears to be unaware that the Makefile in Demos/embed
3729 ;; already unconditionally pass the static library location to GCC,
3730 ;; after checking sysconfig.get_config_var('LIBPL).
3732 ;; The effect is that the linker is unable to resolve libexpat
3733 ;; symbols when building for Python 2, because neither the Python 2
3734 ;; shared library nor Expat is available. To fix it, we can either
3735 ;; add Expat as an input and make it visible to the linker, or just
3736 ;; prevent it from overriding the Python shared library location.
3737 ;; The end result is identical, so we take the easy route.
3738 ((" or libname not in os\\.listdir\\(libdir\\)")
3742 ;; The RPython toolchain currently does not support Python 3.
3743 (define-public python2-rpython
3745 (name "python2-rpython")
3750 (uri (pypi-uri "rpython" version))
3753 "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0"))))
3754 (build-system python-build-system)
3755 (arguments `(#:python ,python-2))
3757 `(("python2-pytest" ,python2-pytest))) ; needed for running tests
3758 (home-page "https://rpython.readthedocs.org")
3759 (synopsis "Framework for implementing interpreters and virtual machines")
3760 (description "RPython is a translation and support framework for
3761 producing implementations of dynamic languages, emphasizing a clean separation
3762 between language specification and implementation aspects.")
3763 (license license:expat)))
3765 ;; NOTE: when upgrading numpy please make sure that python-pandas and
3766 ;; python-scipy still build, as these three packages are often used together.
3767 (define-public python-numpy
3769 (name "python-numpy")
3775 "https://github.com/numpy/numpy/releases/download/v"
3776 version "/numpy-" version ".tar.gz"))
3779 "1ak9dmjja0q90a7fsxli51ypcwssh8c4pb6f8wkrsnf2xgdk6dy9"))))
3780 (build-system python-build-system)
3782 `(("openblas" ,openblas)
3783 ("lapack" ,lapack)))
3785 `(("python-cython" ,python-cython)
3786 ("python-pytest" ,python-pytest)
3787 ("gfortran" ,gfortran)))
3790 (modify-phases %standard-phases
3791 (add-before 'build 'configure-blas-lapack
3792 (lambda* (#:key inputs #:allow-other-keys)
3793 (call-with-output-file "site.cfg"
3797 libraries = openblas
3798 library_dirs = ~a/lib
3799 include_dirs = ~a/include
3801 # backslash-n to make emacs happy
3803 lapack_libs = lapack
3804 library_dirs = ~a/lib
3805 include_dirs = ~a/include
3807 (assoc-ref inputs "openblas")
3808 (assoc-ref inputs "openblas")
3809 (assoc-ref inputs "lapack")
3810 (assoc-ref inputs "lapack"))))
3812 (add-before 'build 'fix-executable-paths
3813 (lambda* (#:key inputs #:allow-other-keys)
3814 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
3815 ;; instead of /bin/sh.
3816 (substitute* "numpy/distutils/exec_command.py"
3817 (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end)
3818 (string-append match-start (assoc-ref inputs "bash") match-end)))
3819 ;; Use "gcc" executable, not "cc".
3820 (substitute* "numpy/distutils/system_info.py"
3821 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
3822 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
3824 ;; Tests can only be run after the library has been installed and not
3825 ;; within the source directory.
3827 (add-after 'install 'check
3828 (lambda* (#:key outputs inputs #:allow-other-keys)
3829 ;; Make installed package available for running the tests
3830 (add-installed-pythonpath inputs outputs)
3831 ;; Make sure "f2py" etc is found.
3832 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
3833 ":" (getenv "PATH")))
3834 (with-directory-excursion "/tmp"
3835 (invoke "python" "-c"
3836 "import numpy; numpy.test(verbose=2)")))))))
3837 (home-page "https://numpy.org")
3838 (synopsis "Fundamental package for scientific computing with Python")
3839 (description "NumPy is the fundamental package for scientific computing
3840 with Python. It contains among other things: a powerful N-dimensional array
3841 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3842 and Fortran code, useful linear algebra, Fourier transform, and random number
3844 (properties `((python2-variant . ,(delay python2-numpy))))
3845 (license license:bsd-3)))
3847 ;; Numpy 1.16.x are the last versions that support Python 2.
3848 (define-public python2-numpy
3849 (let ((numpy (package-with-python2
3850 (strip-python2-variant python-numpy))))
3857 "https://github.com/numpy/numpy/releases/download/v"
3858 version "/numpy-" version ".tar.gz"))
3861 "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb")))))))
3863 ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
3864 ;; interest only for legacy code going back to NumPy's predecessor
3866 (define-public python2-numpy-1.8
3867 (package (inherit python2-numpy)
3873 (url "https://github.com/numpy/numpy")
3874 (commit (string-append "v" version))))
3875 (file-name (git-file-name "numpy" version))
3878 "0ikgi15rsqwbkfsjjxrwh40lqyal2wvyp3923y6w6ch3dcr82sfk"))))
3880 (substitute-keyword-arguments (package-arguments python2-numpy)
3882 `(modify-phases ,phases
3883 (replace 'configure-blas-lapack
3884 (lambda* (#:key inputs #:allow-other-keys)
3885 (call-with-output-file "site.cfg"
3889 libraries = openblas,lapack
3890 library_dirs = ~a/lib:~a/lib
3891 include_dirs = ~a/include:~a/include
3893 (assoc-ref inputs "openblas")
3894 (assoc-ref inputs "lapack")
3895 (assoc-ref inputs "openblas")
3896 (assoc-ref inputs "lapack"))))
3899 `(("python2-nose" ,python2-nose)))
3900 (description "NumPy is the fundamental package for scientific computing
3901 with Python. It contains among other things: a powerful N-dimensional array
3902 object, sophisticated (broadcasting) functions, tools for integrating C/C++
3903 and Fortran code, useful linear algebra, Fourier transform, and random number
3904 capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API
3905 that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
3907 (license license:bsd-3)))
3909 (define-public python-munch
3911 (name "python-munch")
3916 (uri (pypi-uri "munch" version))
3919 "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l"))))
3920 (build-system python-build-system)
3921 (home-page "https://github.com/Infinidat/munch")
3922 (synopsis "Dot-accessible dictionary")
3923 (description "Munch is a dot-accessible dictionary similar to JavaScript
3925 (license license:expat)))
3927 (define-public python2-munch
3928 (package-with-python2 python-munch))
3930 (define-public python-colormath
3932 (name "python-colormath")
3937 (uri (pypi-uri "colormath" version))
3940 "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
3941 (build-system python-build-system)
3943 `(("python-networkx" ,python-networkx)
3944 ("python-numpy" ,python-numpy)))
3945 (home-page "https://github.com/gtaylor/python-colormath")
3946 (synopsis "Color math and conversion library")
3948 "This is a Python library for color math and conversions.")
3949 (license license:bsd-3)))
3951 (define-public python2-colormath
3952 (package-with-python2 python-colormath))
3954 (define-public python-spectra
3956 (name "python-spectra")
3961 (uri (pypi-uri "spectra" version))
3964 "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
3965 (build-system python-build-system)
3968 (modify-phases %standard-phases
3970 (lambda _ (invoke "nosetests" "-v"))))))
3972 `(("python-colormath" ,python-colormath)))
3974 `(("python-nose" ,python-nose)))
3975 (home-page "https://github.com/jsvine/spectra")
3976 (synopsis "Color scales and color conversion")
3978 "This package provides a Python library intended to make color math,
3979 color scales, and color space conversion easy. It has support for:
3984 @item Color blending
3985 @item Brightening/darkening colors
3986 @item Saturating/desaturating colors
3987 @item Conversion to/from multiple color spaces.
3989 (license license:expat)))
3991 (define-public python2-spectra
3992 (package-with-python2 python-spectra))
3994 (define-public python-numpy-documentation
3996 (name "python-numpy-documentation")
3997 (version (package-version python-numpy))
3998 (source (package-source python-numpy))
3999 (build-system python-build-system)
4001 `(("python-matplotlib" ,python-matplotlib)
4002 ("python-numpy" ,python-numpy)
4003 ("pkg-config" ,pkg-config)
4004 ("python-sphinx" ,python-sphinx)
4005 ("python-numpydoc" ,python-numpydoc)
4006 ("texlive" ,(texlive-union (list texlive-fonts-cm-super
4008 texlive-generic-ifxetex
4009 texlive-generic-pdftex
4011 texlive-latex-capt-of
4013 texlive-latex-environ
4014 texlive-latex-eqparbox
4015 texlive-latex-etoolbox
4016 texlive-latex-expdlist
4017 texlive-latex-fancyhdr
4018 texlive-latex-fancyvrb
4019 texlive-latex-fncychap
4021 texlive-latex-framed
4022 texlive-latex-geometry
4023 texlive-latex-graphics
4024 texlive-latex-hyperref
4025 texlive-latex-mdwtools
4026 texlive-latex-multirow
4027 texlive-latex-needspace
4028 texlive-latex-oberdiek
4029 texlive-latex-parskip
4030 texlive-latex-preview
4031 texlive-latex-tabulary
4032 texlive-latex-threeparttable
4033 texlive-latex-titlesec
4034 texlive-latex-trimspaces
4036 texlive-latex-upquote
4038 texlive-latex-varwidth
4039 texlive-latex-wrapfig)))
4040 ("texinfo" ,texinfo)
4042 ("scipy-sphinx-theme"
4043 ,(origin ; The build script expects scipy-sphinx-theme as a git submodule
4046 (url "https://github.com/scipy/scipy-sphinx-theme.git")
4047 (commit "c466764e2231ba132c09826b5b138fffa1cfcec3")))
4050 "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl"))))
4051 ,@(package-native-inputs python-numpy)))
4053 `(#:tests? #f ; we're only generating the documentation
4055 (modify-phases %standard-phases
4058 (lambda* (#:key inputs outputs #:allow-other-keys)
4059 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
4061 data "/doc/" ,name "-"
4062 ,(package-version python-numpy)))
4063 (info-reader (string-append data "/info"))
4064 (html (string-append doc "/html"))
4065 (scipy-sphinx-theme "scipy-sphinx-theme")
4066 (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme))
4067 (pyver ,(string-append "PYVER=")))
4069 ;; FIXME: this is needed to for texlive-union to generate
4070 ;; fonts, which are not found.
4071 (setenv "HOME" "/tmp")
4073 (with-directory-excursion "doc"
4074 (copy-recursively sphinx-theme-checkout scipy-sphinx-theme)
4076 (invoke "make" "html" pyver)
4077 (invoke "make" "latex" "PAPER=a4" pyver)
4078 (invoke "make" "-C" "build/latex"
4079 "all-pdf" "PAPER=a4" pyver)
4080 ;; FIXME: Generation of the info file fails.
4081 ;; (invoke "make" "info" pyver)
4083 ;; (copy-file "build/texinfo/numpy.info"
4084 ;; (string-append info "/numpy.info"))
4085 (for-each (lambda (file)
4086 (copy-file (string-append "build/latex" file)
4087 (string-append doc file)))
4088 '("/numpy-ref.pdf" "/numpy-user.pdf"))
4089 (with-directory-excursion "build/html"
4090 (for-each (lambda (file)
4091 (let* ((dir (dirname file))
4092 (tgt-dir (string-append html "/" dir)))
4093 (unless (equal? "." dir)
4095 (install-file file html)))
4096 (find-files "." ".*")))))
4098 (home-page (package-home-page python-numpy))
4099 (synopsis "Documentation for the python-numpy package")
4100 (description (package-description python-numpy))
4101 (license (package-license python-numpy))))
4103 (define-public python2-numpy-documentation
4104 (let ((numpy-documentation (package-with-python2 python-numpy-documentation)))
4106 (inherit numpy-documentation)
4107 (native-inputs `(("python2-functools32" ,python2-functools32)
4108 ,@(package-native-inputs numpy-documentation))))))
4110 (define-public python-pygit2
4112 (name "python-pygit2")
4117 (uri (pypi-uri "pygit2" version))
4119 (base32 "1hs0pqqzn1yjxqk86nq7p0lvsklwnlyi5xwyzr7d5nrs19dmsjbg"))))
4120 (build-system python-build-system)
4122 '(#:tests? #f)) ; tests don't run correctly in our environment
4124 `(("python-cached-property" ,python-cached-property)
4125 ("python-cffi" ,python-cffi)
4126 ("libgit2" ,libgit2)))
4128 `(("python-pytest" ,python-pytest)))
4129 (home-page "https://github.com/libgit2/pygit2")
4130 (synopsis "Python bindings for libgit2")
4131 (description "Pygit2 is a set of Python bindings to the libgit2 shared
4132 library, libgit2 implements Git plumbing.")
4133 ;; GPL2.0 only, with linking exception.
4134 (license license:gpl2)))
4136 (define-public python-pyparsing
4138 (name "python-pyparsing")
4143 (uri (pypi-uri "pyparsing" version))
4145 (base32 "0yk6xl885b91dmlhlsap7x78hk2rdr879fln9anbq6k4ca42djb6"))))
4146 (build-system python-build-system)
4147 (outputs '("out" "doc"))
4149 `(#:tests? #f ; no test target
4151 (modify-phases %standard-phases
4152 (add-after 'install 'install-doc
4153 (lambda* (#:key outputs #:allow-other-keys)
4154 (let* ((doc (string-append (assoc-ref outputs "doc")
4155 "/share/doc/" ,name "-" ,version))
4156 (html-doc (string-append doc "/html"))
4157 (examples (string-append doc "/examples")))
4163 (install-file file tgt))
4164 (find-files dir ".*")))
4165 (list "docs" "htmldoc" "examples")
4166 (list doc html-doc examples))
4168 (home-page "https://github.com/pyparsing/pyparsing")
4169 (synopsis "Python parsing class library")
4171 "The pyparsing module is an alternative approach to creating and
4172 executing simple grammars, vs. the traditional lex/yacc approach, or the use
4173 of regular expressions. The pyparsing module provides a library of classes
4174 that client code uses to construct the grammar directly in Python code.")
4175 (license license:expat)))
4177 (define-public python2-pyparsing
4178 (package-with-python2 python-pyparsing))
4180 (define-public python-numpydoc
4182 (name "python-numpydoc")
4187 (uri (pypi-uri "numpydoc" version))
4190 "1zazxg3m8j4fksv3f7v7vpf4bj9qb1vj3r326am0vdip141vzx31"))))
4191 (build-system python-build-system)
4193 `(("python-sphinx" ,python-sphinx)))
4195 `(("python-nose" ,python-nose)))
4196 (home-page "https://pypi.org/project/numpydoc/")
4198 "Numpy's Sphinx extensions")
4200 "Sphinx extension to support docstrings in Numpy format.")
4201 (license license:bsd-2)))
4203 (define-public python2-numpydoc
4204 (package-with-python2 python-numpydoc))
4206 (define-public python-numexpr
4208 (name "python-numexpr")
4213 (uri (pypi-uri "numexpr" version))
4216 "1frnbcwmsi312154x274xl28xazr1k8vjby83fwyla2n10a81bgq"))))
4217 (build-system python-build-system)
4218 (arguments `(#:tests? #f)) ; no tests included
4220 `(("python-numpy" ,python-numpy)))
4221 (home-page "https://github.com/pydata/numexpr")
4222 (synopsis "Fast numerical expression evaluator for NumPy")
4224 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
4225 expressions that operate on arrays are accelerated and use less memory than
4226 doing the same calculation in Python. In addition, its multi-threaded
4227 capabilities can make use of all your cores, which may accelerate
4228 computations, most specially if they are not memory-bounded (e.g. those using
4229 transcendental functions).")
4230 (license license:expat)))
4232 (define-public python2-numexpr
4233 (package-with-python2 python-numexpr))
4235 (define-public python-cycler
4237 (name "python-cycler")
4241 (uri (pypi-uri "cycler" version))
4244 "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
4245 (build-system python-build-system)
4247 ;; XXX: The current version requires 'coveralls' which we don't have.
4248 ;; Enable this for the next release which uses 'python-pytest'.
4251 `(("python-six" ,python-six)))
4252 (home-page "http://matplotlib.org/cycler/")
4253 (synopsis "Composable keyword argument iterator")
4255 "When using @code{matplotlib} and plotting more than one line, it is
4256 common to want to be able to want to be able to cycle over one or more artist
4257 styles; but the plotting logic can quickly become involved.
4258 To address this and enable easy cycling over arbitrary @code{kwargs}, the
4259 @code{Cycler} class was developed.")
4260 (license license:bsd-3)))
4262 (define-public python2-cycler
4263 (package-with-python2 python-cycler))
4265 (define-public python-colorspacious
4267 (name "python-colorspacious")
4273 (url "https://github.com/njsmith/colorspacious.git")
4274 (commit (string-append "v" version))))
4275 (file-name (git-file-name name version))
4277 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
4278 (build-system python-build-system)
4280 `(("python-numpy" ,python-numpy)))
4282 `(("python-nose" ,python-nose)))
4285 (modify-phases %standard-phases
4288 (invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
4289 (home-page "https://github.com/njsmith/colorspacious")
4290 (synopsis "Python library for colorspace conversions")
4291 (description "@code{colorspacious} is a Python library that lets you
4292 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
4293 (license license:expat)))
4295 (define-public python2-colorspacious
4296 (package-with-python2 python-colorspacious))
4298 (define-public python-matplotlib
4300 (name "python-matplotlib")
4305 (uri (pypi-uri "matplotlib" version))
4308 "1nmshfqh7wyg15i16hx1yiylcvzkws29ivn66n3i0wyqwcpjr3lf"))))
4309 (build-system python-build-system)
4310 (propagated-inputs ; the following packages are all needed at run time
4311 `(("python-cycler" ,python-cycler)
4312 ("python-kiwisolver" ,python-kiwisolver)
4313 ("python-pyparsing" ,python-pyparsing)
4314 ("python-pygobject" ,python-pygobject)
4315 ("gobject-introspection" ,gobject-introspection)
4316 ("python-tkinter" ,python "tk")
4317 ("python-dateutil" ,python-dateutil)
4318 ("python-numpy" ,python-numpy)
4319 ("python-pillow" ,python-pillow)
4320 ("python-pytz" ,python-pytz)
4321 ("python-six" ,python-six)
4322 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
4323 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
4324 ;; object. For this reason we need to import both libraries.
4325 ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
4326 ("python-pycairo" ,python-pycairo)
4327 ("python-cairocffi" ,python-cairocffi)))
4329 `(("libpng" ,libpng)
4330 ("imagemagick" ,imagemagick)
4331 ("freetype" ,freetype)
4334 ;; FIXME: Add backends when available.
4335 ;("python-wxpython" ,python-wxpython)
4339 `(("pkg-config" ,pkg-config)
4340 ("python-pytest" ,python-pytest)
4341 ("python-mock" ,python-mock)
4346 (uri "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip")
4349 "0kb21xf38diqgxcdi1z3s9ssq36pldvyqxy56hn6pcva6rs3c8zq"))))))
4352 (modify-phases %standard-phases
4353 ;; XXX We disable all image comparison tests because we're using a
4354 ;; newer version of FreeType than matplotlib expects. This leads to
4355 ;; minor differences throughout the tests.
4356 (add-after 'unpack 'fix-and-disable-failing-tests
4358 (substitute* (append (find-files "lib/matplotlib/tests/"
4360 (find-files "lib/mpl_toolkits/tests"
4362 (("^from matplotlib" match)
4363 (string-append "import pytest\n" match))
4364 (("( *)@image_comparison" match indent)
4365 (string-append indent
4366 "@pytest.mark.skip(reason=\"unknown minor image differences\")\n"
4368 (substitute* "lib/matplotlib/tests/test_animation.py"
4369 (("/bin/sh") (which "sh")))
4370 (for-each delete-file
4371 ;; test_normal_axes, test_get_tightbbox_polar
4372 '("lib/matplotlib/tests/test_axes.py"
4373 ;; We don't use the webagg backend and this test forces it.
4374 "lib/matplotlib/tests/test_backend_webagg.py"
4375 ;; test_outward_ticks
4376 "lib/matplotlib/tests/test_tightlayout.py"
4377 ;; test_hidden_axes fails with minor extent
4378 ;; differences, possibly due to the use of a
4379 ;; different version of FreeType.
4380 "lib/matplotlib/tests/test_constrainedlayout.py"
4381 ;; Fontconfig returns no fonts.
4382 "lib/matplotlib/tests/test_font_manager.py"))
4384 (add-before 'install 'install-jquery-ui
4385 (lambda* (#:key outputs inputs #:allow-other-keys)
4386 (let ((dir (string-append (assoc-ref outputs "out")
4387 "/lib/python3.7/site-packages/matplotlib/backends/web_backend/")))
4390 (assoc-ref inputs "jquery-ui")
4394 (lambda* (#:key outputs inputs #:allow-other-keys)
4395 (add-installed-pythonpath inputs outputs)
4396 (invoke "python" "tests.py" "-v"
4397 "-m" "not network and not webagg")))
4398 (add-before 'build 'configure-environment
4399 (lambda* (#:key outputs inputs #:allow-other-keys)
4400 (let ((cairo (assoc-ref inputs "cairo")))
4401 ;; Setting this directory in the 'basedirlist' of 'setup.cfg'
4403 (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib"))
4404 (setenv "HOME" (getcwd))
4405 (call-with-output-file "setup.cfg"
4407 (format port "[directories]~%
4408 basedirlist = ~a,~a~%
4411 (assoc-ref inputs "tcl")
4412 (assoc-ref inputs "tk")))))
4414 (home-page "https://matplotlib.org/")
4415 (synopsis "2D plotting library for Python")
4417 "Matplotlib is a Python 2D plotting library which produces publication
4418 quality figures in a variety of hardcopy formats and interactive environments
4419 across platforms. Matplotlib can be used in Python scripts, the python and
4420 ipython shell, web application servers, and six graphical user interface
4422 (license license:psfl)
4423 (properties `((python2-variant . ,(delay python2-matplotlib))))))
4425 (define-public python2-matplotlib
4426 (let ((matplotlib (package-with-python2
4427 (strip-python2-variant python-matplotlib))))
4428 (package (inherit matplotlib)
4433 (uri (pypi-uri "matplotlib" version))
4436 "09i1gnrra1590brc1f8d5rh2zvnknmfgzp613ab0462qkrwj15h2"))))
4438 (substitute-keyword-arguments (package-arguments matplotlib)
4440 `(modify-phases ,phases
4441 (replace 'install-jquery-ui
4442 (lambda* (#:key outputs inputs #:allow-other-keys)
4443 (let ((dir (string-append (assoc-ref outputs "out")
4444 "/lib/python2.7/site-packages/"
4445 "matplotlib/backends/web_backend/")))
4448 (assoc-ref inputs "jquery-ui")
4451 (delete 'fix-and-disable-failing-tests)
4452 (delete 'check))))) ; These tests weren't run the the past.
4453 ;; Make sure to use special packages for Python 2 instead
4454 ;; of those automatically rewritten by package-with-python2.
4456 `(("python2-pycairo" ,python2-pycairo)
4457 ("python2-backports-functools-lru-cache"
4458 ,python2-backports-functools-lru-cache)
4459 ("python2-functools32" ,python2-functools32)
4460 ("python2-pygobject-2" ,python2-pygobject-2)
4461 ("python2-subprocess32" ,python2-subprocess32)
4462 ("python2-tkinter" ,python-2 "tk")
4463 ,@(fold alist-delete (package-propagated-inputs matplotlib)
4464 '("python-pycairo" "python-pygobject" "python-tkinter")))))))
4466 (define-public python-matplotlib-documentation
4468 (name "python-matplotlib-documentation")
4469 (version (package-version python-matplotlib))
4470 (source (package-source python-matplotlib))
4471 (build-system python-build-system)
4473 `(("python-matplotlib" ,python-matplotlib)
4474 ("python-colorspacious" ,python-colorspacious)
4475 ("python-sphinx" ,python-sphinx)
4476 ("python-sphinx-copybutton" ,python-sphinx-copybutton)
4477 ("python-sphinx-gallery" ,python-sphinx-gallery)
4478 ("python-numpydoc" ,python-numpydoc)
4479 ("python-ipython" ,python-ipython)
4480 ("python-ipykernel" ,python-ipykernel)
4481 ("python-mock" ,python-mock)
4482 ("graphviz" ,graphviz)
4483 ("texlive" ,(texlive-union (list texlive-amsfonts
4484 texlive-latex-amsmath
4485 texlive-latex-enumitem
4486 texlive-latex-expdlist
4487 texlive-latex-geometry
4488 texlive-latex-preview
4489 texlive-latex-type1cm
4492 texlive-generic-pdftex
4495 texlive-fonts-adobe-times
4496 texlive-fonts-txfonts)))
4497 ("texinfo" ,texinfo)
4498 ,@(package-native-inputs python-matplotlib)))
4500 `(#:tests? #f ; we're only generating documentation
4502 (modify-phases %standard-phases
4503 ;; The tests in python-matplotlib are run after the install phase, so
4504 ;; we need to delete the extra phase here.
4509 (setenv "PYTHONPATH"
4510 (string-append (getenv "PYTHONPATH")
4511 ":" (getcwd) "/../examples/units"))
4512 (substitute* "conf.py"
4514 (("^SHA = check_output.*")
4515 (string-append "SHA = \"" ,version "\"\n"))
4516 ;; Don't fetch intersphinx files from the Internet
4517 (("^explicit_order_folders" m)
4518 (string-append "intersphinx_mapping = {}\n" m))
4519 (("'sphinx.ext.intersphinx',") "")
4520 ;; Disable URL embedding which requires internet access.
4521 (("'https://docs.scipy.org/doc/numpy'") "None")
4522 (("'https://docs.scipy.org/doc/scipy/reference'") "None"))
4524 "SPHINXBUILD=sphinx-build"
4525 "SPHINXOPTS=" ; don't abort on warnings
4528 (lambda* (#:key inputs outputs #:allow-other-keys)
4529 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
4530 (doc (string-append data "/doc/python-matplotlib-" ,version))
4531 (info (string-append data "/info"))
4532 (html (string-append doc "/html")))
4535 (copy-recursively "build/html" html)
4536 (symlink (string-append html "/_images")
4537 (string-append info "/matplotlib-figures"))
4538 (with-directory-excursion "build/texinfo"
4539 (substitute* "matplotlib.texi"
4540 (("@image\\{([^,]*)" all file)
4541 (string-append "@image{matplotlib-figures/" file)))
4542 (symlink (string-append html "/_images")
4543 "./matplotlib-figures")
4544 (invoke "makeinfo" "--no-split"
4545 "-o" "matplotlib.info" "matplotlib.texi"))
4546 (install-file "build/texinfo/matplotlib.info" info))
4548 (home-page (package-home-page python-matplotlib))
4549 (synopsis "Documentation for the python-matplotlib package")
4550 (description (package-description python-matplotlib))
4551 (license (package-license python-matplotlib))))
4553 (define-public python2-matplotlib-documentation
4554 (let ((parent (package-with-python2 python-matplotlib-documentation)))
4558 (alist-delete "python-sphinx-copybutton"
4559 (package-native-inputs parent))))))
4561 (define-public python-matplotlib-venn
4563 (name "python-matplotlib-venn")
4568 (uri (pypi-uri "matplotlib-venn" version ".zip"))
4571 "13w3i1wih0mij08hrgppzg0g9z50y54rc28l6gdi1r5w45l7l0dy"))))
4572 (build-system python-build-system)
4573 (arguments '(#:tests? #f)) ; tests are not included
4575 `(("python-matplotlib" ,python-matplotlib)
4576 ("python-numpy" ,python-numpy)
4577 ("python-scipy" ,python-scipy)))
4579 `(("unzip" ,unzip)))
4580 (home-page "https://github.com/konstantint/matplotlib-venn")
4581 (synopsis "Plot area-proportional Venn diagrams")
4583 "This package provides tools for plotting area-proportional two- and
4584 three-way Venn diagrams in @code{matplotlib}.")
4585 (license license:expat)))
4587 (define-public python2-pysnptools
4589 (name "python2-pysnptools")
4594 (uri (pypi-uri "pysnptools" version))
4597 "0lnis5xsl7bi0hz4f7gbicahzi5zlxkc21nk3g374xv8fb5hb3qm"))))
4598 (build-system python-build-system)
4600 `(#:python ,python-2 ; only Python 2.7 is supported
4601 #:tests? #f)) ; test files (e.g. examples/toydata.bim) not included
4603 `(("python2-numpy" ,python2-numpy)
4604 ("python2-scipy" ,python2-scipy)
4605 ("python2-pandas" ,python2-pandas)))
4607 `(("python2-cython" ,python2-cython)))
4608 (home-page "http://microsoftgenomics.github.io/PySnpTools/")
4609 (synopsis "Library for reading and manipulating genetic data")
4611 "PySnpTools is a library for reading and manipulating genetic data. It
4612 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
4613 those files. It can also efficiently manipulate ranges of integers using set
4614 operators such as union, intersection, and difference.")
4615 (license license:asl2.0)))
4617 (define-public python-socksipy-branch
4619 (name "python-socksipy-branch")
4624 (uri (pypi-uri "SocksiPy-branch" version))
4627 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
4628 (build-system python-build-system)
4630 `(#:tests? #f)) ; There are no tests
4631 (home-page "https://code.google.com/archive/p/socksipy-branch/")
4632 (synopsis "Python SOCKS module")
4634 "SocksiPy - A Python SOCKS client module. It provides a
4635 socket-like interface that supports connections to any TCP
4636 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
4637 The original version was developed by Dan Haim, this is a
4638 branch created by Mario Vilas to address some open issues,
4639 as the original project seems to have been abandoned circa 2007.")
4640 (license license:bsd-3)))
4642 (define-public python2-socksipy-branch
4643 (package-with-python2 python-socksipy-branch))
4645 (define-public python-socksipychain
4646 (let ((commit "eb5ee8741ce006ac0c5c3e2e83204062c348c155")
4650 (name "python-socksipychain")
4651 (version (git-version version revision commit))
4656 (url "https://github.com/pagekite/PySocksipyChain.git")
4658 (file-name (git-file-name name version))
4661 "0fpphn6xnpm7qk8a914s4abycsbq9w6qkci07my632v0fylnm5n7"))))
4662 (build-system python-build-system)
4664 `(#:tests? #f)) ; Tests try to access the network.
4665 (home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
4666 (synopsis "Python SOCKS module with chained proxies support")
4668 "SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
4669 adds support for arbitrary chaining of proxy servers and various modes of
4670 TLS/SSL encryption. It was developed for use in PageKite, and also includes
4671 a simple netcat replacement with chaining support.")
4672 (license license:bsd-3))))
4674 (define-public python-pycodestyle
4676 (name "python-pycodestyle")
4681 (uri (pypi-uri "pycodestyle" version))
4684 "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4"))))
4685 (build-system python-build-system)
4686 (home-page "https://pycodestyle.readthedocs.io/")
4687 (synopsis "Python style guide checker")
4688 (description "@code{pycodestyle} (formerly pep8) is a tool to check
4689 Python code against some of the style conventions in
4690 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
4691 (license license:expat)))
4693 (define-public python2-pycodestyle
4694 (package-with-python2 python-pycodestyle))
4696 (define-public python-multidict
4698 (name "python-multidict")
4703 (uri (pypi-uri "multidict" version))
4706 "07ikq2c72kd263hpldw55y0px2l3g34hjk66ml9lryh1jv287qmf"))))
4707 (build-system python-build-system)
4709 '(#:modules ((ice-9 ftw)
4713 (guix build python-build-system))
4714 #:phases (modify-phases %standard-phases
4716 (lambda* (#:key tests? #:allow-other-keys)
4719 (let ((libdir (find (cut string-prefix? "lib." <>)
4720 (scandir "build"))))
4721 (setenv "PYTHONPATH"
4722 (string-append "./build/" libdir ":"
4723 (getenv "PYTHONPATH")))
4724 (invoke "pytest" "-vv")))
4725 (format #t "test suite not run~%"))
4728 `(("python-pytest" ,python-pytest)
4729 ("python-pytest-cov" ,python-pytest-cov)))
4730 (home-page "https://github.com/aio-libs/multidict/")
4731 (synopsis "Multidict implementation")
4732 (description "Multidict is dict-like collection of key-value pairs
4733 where key might be occurred more than once in the container.")
4734 (license license:asl2.0)))
4736 (define-public python-orderedmultidict
4738 (name "python-orderedmultidict")
4743 (uri (pypi-uri "orderedmultidict" version))
4746 "0dls862ibm7qbq4fnvwx0xn1v9hwyzywbff8xjjdr42dd75208yw"))))
4747 (build-system python-build-system)
4750 (modify-phases %standard-phases
4751 (add-after 'unpack 'fix-tests
4753 ;; The package uses nosetest for running the tests.
4754 ;; Adding this initfile allows to run the test suite
4755 ;; without requiring nosetest.
4756 (with-output-to-file "tests/__init__.py" newline)
4759 `(("python-six" ,python-six)))
4761 `(("python-pycodestyle" ,python-pycodestyle)))
4762 (home-page "https://github.com/gruns/orderedmultidict")
4763 (synopsis "Python Ordered Multivalue Dictionary - omdict")
4764 (description "This package contains a library for ordered multivalue
4765 dictionaries. A multivalue dictionary is a dictionary that can store
4766 multiple values for the same key. An ordered multivalue dictionary is a
4767 multivalue dictionary that retains the order of insertions and deletions.")
4768 (license license:unlicense)))
4770 (define-public python2-orderedmultidict
4771 (package-with-python2 python-orderedmultidict))
4773 (define-public python-autopep8
4775 (name "python-autopep8")
4780 (uri (pypi-uri "autopep8" version))
4783 "192bvhzi4d0claqxgzymvv7k3qnj627742bc8sgxpzjj42pd9112"))))
4784 (build-system python-build-system)
4786 `(("python-pycodestyle" ,python-pycodestyle)))
4787 (home-page "https://github.com/hhatto/autopep8")
4788 (synopsis "Format Python code according to the PEP 8 style guide")
4790 "@code{autopep8} automatically formats Python code to conform to
4791 the PEP 8 style guide. It uses the pycodestyle utility to determine
4792 what parts of the code needs to be formatted. @code{autopep8} is
4793 capable of fixing most of the formatting issues that can be reported
4795 (license (license:non-copyleft
4796 "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
4798 (define-public python2-autopep8
4799 (package-with-python2 python-autopep8))
4801 (define-public python-distlib
4803 (name "python-distlib")
4808 (uri (pypi-uri "distlib" version ".zip"))
4811 "08fyi2r246733vharl2yckw20rilci28r91mzrnnvcr638inw5if"))))
4812 (build-system python-build-system)
4815 (modify-phases %standard-phases
4816 (add-before 'build 'no-/bin/sh
4818 (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
4819 (("/bin/sh") (which "sh")))
4821 (add-before 'check 'prepare-test-env
4823 (setenv "HOME" "/tmp")
4824 ;; NOTE: Any value works, the variable just has to be present.
4825 (setenv "SKIP_ONLINE" "1")
4827 (native-inputs `(("unzip" ,unzip)))
4828 (home-page "https://bitbucket.org/pypa/distlib")
4829 (synopsis "Distribution utilities")
4830 (description "Distlib is a library which implements low-level functions that
4831 relate to packaging and distribution of Python software. It is intended to be
4832 used as the basis for third-party packaging tools.")
4833 (license license:psfl)))
4835 (define-public python-distutils-extra
4837 (name "python-distutils-extra")
4842 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
4843 version "/+download/python-distutils-extra-"
4847 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
4848 (build-system python-build-system)
4849 (home-page "https://launchpad.net/python-distutils-extra/")
4850 (synopsis "Enhancements to Python's distutils")
4852 "The python-distutils-extra module enables you to easily integrate
4853 gettext support, themed icons, and scrollkeeper-based documentation into
4854 Python's distutils.")
4855 (license license:gpl2)))
4857 (define-public python2-distutils-extra
4858 (package-with-python2 python-distutils-extra))
4860 (define-public python2-elib.intl
4862 (name "python2-elib.intl")
4866 ;; This project doesn't tag releases or publish tarballs, so we take
4867 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
4870 (url "https://github.com/dieterv/elib.intl.git")
4871 (commit "d09997cfef")))
4872 (file-name (string-append name "-" version "-checkout"))
4875 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
4876 (build-system python-build-system)
4878 ;; incompatible with Python 3 (exception syntax)
4879 `(#:python ,python-2
4881 (home-page "https://github.com/dieterv/elib.intl")
4882 (synopsis "Enhanced internationalization for Python")
4884 "The elib.intl module provides enhanced internationalization (I18N)
4885 services for your Python modules and applications.")
4886 (license license:lgpl3+)))
4888 (define-public python-olefile
4890 (name "python-olefile")
4895 (uri (string-append "https://github.com/decalage2/olefile/releases/"
4896 "download/v" version "/olefile-" version ".tar.gz"))
4897 (file-name (string-append name "-" version ".tar.gz"))
4900 "1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
4901 (build-system python-build-system)
4902 (home-page "https://www.decalage.info/python/olefileio")
4903 (synopsis "Read and write Microsoft OLE2 files.")
4905 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
4906 Storage or Compound Document, Microsoft Office). It is an improved version of
4907 the OleFileIO module from PIL, the Python Image Library.")
4908 (license license:bsd-3)))
4910 (define-public python2-olefile
4911 (package-with-python2 python-olefile))
4913 (define-public python-pillow
4915 (name "python-pillow")
4920 (uri (pypi-uri "Pillow" version))
4923 "1c8wkzc58f5wdh006jvmwdk3wxld1xgagcbdvj7iv17qi0m9fkmz"))))
4924 (build-system python-build-system)
4926 `(("python-pytest" ,python-pytest)))
4928 `(("freetype" ,freetype)
4930 ("libjpeg" ,libjpeg)
4931 ("libtiff" ,libtiff)
4932 ("libwebp" ,libwebp)
4933 ("openjpeg" ,openjpeg)
4936 `(("python-olefile" ,python-olefile)))
4939 (modify-phases %standard-phases
4940 (add-after 'unpack 'patch-ldconfig
4942 (substitute* "setup.py"
4943 (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
4945 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
4948 (setenv "HOME" (getcwd))
4949 ;; Make installed package available for running the tests.
4950 (add-installed-pythonpath inputs outputs)
4951 (invoke "python" "selftest.py" "--installed")
4952 (invoke "python" "-m" "pytest" "-vv"))
4954 (home-page "https://python-pillow.org")
4955 (synopsis "Fork of the Python Imaging Library")
4957 "The Python Imaging Library adds image processing capabilities to your
4958 Python interpreter. This library provides extensive file format support, an
4959 efficient internal representation, and fairly powerful image processing
4960 capabilities. The core image library is designed for fast access to data
4961 stored in a few basic pixel formats. It should provide a solid foundation for
4962 a general image processing tool.")
4963 (license (license:x11-style
4964 "http://www.pythonware.com/products/pil/license.htm"
4965 "The PIL Software License"))))
4967 (define-public python2-pillow
4968 (package-with-python2 python-pillow))
4970 (define-public python-pycparser
4972 (name "python-pycparser")
4977 (uri (pypi-uri "pycparser" version))
4980 "1cr5dcj9628lkz1qlwq3fv97c25363qppkmcayqvd05dpy573259"))))
4981 (outputs '("out" "doc"))
4982 (build-system python-build-system)
4984 `(("pkg-config" ,pkg-config)))
4987 (modify-phases %standard-phases
4990 (with-directory-excursion "tests"
4991 (invoke "python" "all_tests.py"))
4993 (add-after 'install 'install-doc
4994 (lambda* (#:key outputs #:allow-other-keys)
4995 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
4996 (doc (string-append data "/doc/" ,name "-" ,version))
4997 (examples (string-append doc "/examples")))
4999 (for-each (lambda (file)
5000 (copy-file (string-append "." file)
5001 (string-append doc file)))
5002 '("/README.rst" "/CHANGES" "/LICENSE"))
5003 (copy-recursively "examples" examples)
5005 (home-page "https://github.com/eliben/pycparser")
5006 (synopsis "C parser in Python")
5008 "Pycparser is a complete parser of the C language, written in pure Python
5009 using the PLY parsing library. It parses C code into an AST and can serve as
5010 a front-end for C compilers or analysis tools.")
5011 (license license:bsd-3)))
5013 (define-public python2-pycparser
5014 (package-with-python2 python-pycparser))
5016 (define-public python-pywavelets
5018 (name "python-pywavelets")
5020 (home-page "https://github.com/PyWavelets/pywt")
5023 (uri (pypi-uri "PyWavelets" version))
5026 "1p3qv2v66ghnqrb1f98wyyhp9dz71jwcd6kfpsax65sfdpiyqp1w"))))
5027 (build-system python-build-system)
5029 '(#:modules ((ice-9 ftw)
5033 (guix build python-build-system))
5034 #:phases (modify-phases %standard-phases
5037 (let ((cwd (getcwd))
5038 (libdir (find (cut string-prefix? "lib." <>)
5039 (scandir "build"))))
5040 (with-directory-excursion (string-append cwd "/build/" libdir)
5041 (invoke "nosetests" "-v" "."))))))))
5043 `(("python-matplotlib" ,python-matplotlib) ;for tests
5044 ("python-nose" ,python-nose)))
5046 `(("python-numpy" ,python-numpy)))
5047 (synopsis "Wavelet transforms in Python")
5049 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
5050 mathematical basis functions that are localized in both time and frequency.
5051 Wavelet transforms are time-frequency transforms employing wavelets. They are
5052 similar to Fourier transforms, the difference being that Fourier transforms are
5053 localized only in frequency instead of in time and frequency.")
5054 (license license:expat)))
5056 (define-public python2-pywavelets
5057 (package-with-python2 python-pywavelets))
5059 (define-public python-pywinrm
5061 (name "python-pywinrm")
5066 (uri (pypi-uri "pywinrm" version))
5069 "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
5070 (build-system python-build-system)
5072 `(("python-six" ,python-six)
5073 ("python-requests_ntlm" ,python-requests_ntlm)
5074 ("python-xmltodict" ,python-xmltodict)
5075 ("python-kerberos" ,python-kerberos)))
5077 `(("python-mock" ,python-mock)
5078 ("python-pytest" ,python-pytest)))
5079 (home-page "https://github.com/diyan/pywinrm/")
5081 "Python library for Windows Remote Management (WinRM)")
5083 "pywinrm is a Python client for the Windows Remote Management (WinRM)
5084 service. It allows you to invoke commands on target Windows machines from
5085 any machine that can run Python.")
5086 (license license:expat)))
5088 (define-public python-xcffib
5090 (name "python-xcffib")
5095 (uri (pypi-uri "xcffib" version))
5098 "04k91yxyb3pgc5lvxmivh8w71yjrap2g57yk3s73x4rm4nvjq51n"))))
5099 (build-system python-build-system)
5101 `(("libxcb" ,libxcb)))
5103 `(("python-cffi" ,python-cffi) ; used at run time
5104 ("python-six" ,python-six)))
5106 `(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
5109 (modify-phases %standard-phases
5110 (add-after 'unpack 'fix-libxcb-path
5111 (lambda* (#:key inputs #:allow-other-keys)
5112 (let ((libxcb (assoc-ref inputs "libxcb")))
5113 (substitute* '("xcffib/__init__.py")
5114 (("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
5116 (add-after 'install 'install-doc
5117 (lambda* (#:key outputs #:allow-other-keys)
5118 (let ((doc (string-append (assoc-ref outputs "out") "/share"
5119 "/doc/" ,name "-" ,version)))
5121 (copy-file "README.md"
5122 (string-append doc "/README.md"))
5124 (home-page "https://github.com/tych0/xcffib")
5125 (synopsis "XCB Python bindings")
5127 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
5128 support for Python 3 and PyPy. It is based on cffi.")
5129 (license license:expat)))
5131 (define-public python2-xcffib
5132 (package-with-python2 python-xcffib))
5134 (define-public python-cairocffi
5136 (name "python-cairocffi")
5141 (uri (pypi-uri "cairocffi" version))
5144 "0dq3k4zhqd8cwsf3nyjqvjqm8wkvrjn1wjf44rl3v0h8kqx6qf0m"))
5145 (patches (search-patches "python-cairocffi-dlopen-path.patch"))))
5146 (build-system python-build-system)
5147 (outputs '("out" "doc"))
5151 ("gdk-pixbuf" ,gdk-pixbuf)
5155 `(("pkg-config" ,pkg-config)
5156 ("python-pytest" ,python-pytest)
5157 ("python-pytest-cov" ,python-pytest-cov)
5158 ("python-pytest-runner" ,python-pytest-runner)
5159 ("python-sphinx" ,python-sphinx)
5160 ("python-docutils" ,python-docutils)))
5162 `(("python-xcffib" ,python-xcffib))) ; used at run time
5165 (modify-phases %standard-phases
5166 (add-after 'unpack 'patch-paths
5167 (lambda* (#:key inputs outputs #:allow-other-keys)
5168 (substitute* (find-files "." "\\.py$")
5169 (("dlopen\\(ffi, 'cairo'")
5170 (string-append "dlopen(ffi, '" (assoc-ref inputs "cairo")
5171 "/lib/libcairo.so.2'"))
5172 (("dlopen\\(ffi, 'gdk-3'")
5173 (string-append "dlopen(ffi, '" (assoc-ref inputs "gtk+")
5174 "/lib/libgtk-3.so.0'"))
5175 (("dlopen\\(ffi, 'gdk_pixbuf-2.0'")
5176 (string-append "dlopen(ffi, '" (assoc-ref inputs "gdk-pixbuf")
5177 "/lib/libgdk_pixbuf-2.0.so.0'"))
5178 (("dlopen\\(ffi, 'glib-2.0'")
5179 (string-append "dlopen(ffi, '" (assoc-ref inputs "glib")
5180 "/lib/libglib-2.0.so.0'"))
5181 (("dlopen\\(ffi, 'gobject-2.0'")
5182 (string-append "dlopen(ffi, '" (assoc-ref inputs "glib")
5183 "/lib/libgobject-2.0.so.0'"))
5184 (("dlopen\\(ffi, 'pangocairo-1.0'")
5185 (string-append "dlopen(ffi, '" (assoc-ref inputs "pango")
5186 "/lib/libpangocairo-1.0.so.0'"))
5187 (("dlopen\\(ffi, 'pango-1.0'")
5188 (string-append "dlopen(ffi, '" (assoc-ref inputs "pango")
5189 "/lib/libpango-1.0.so.0'")))
5191 (add-after 'install 'install-doc
5192 (lambda* (#:key inputs outputs #:allow-other-keys)
5193 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
5194 (doc (string-append data "/doc/" ,name "-" ,version))
5195 (html (string-append doc "/html")))
5196 (setenv "LD_LIBRARY_PATH"
5197 (string-append (assoc-ref inputs "cairo") "/lib" ":"
5198 (assoc-ref inputs "gdk-pixbuf") "/lib"))
5199 (setenv "LANG" "en_US.UTF-8")
5201 (for-each (lambda (file)
5202 (copy-file (string-append "." file)
5203 (string-append doc file)))
5204 '("/README.rst" "/CHANGES" "/LICENSE"))
5205 (system* "python" "setup.py" "build_sphinx")
5206 (copy-recursively "docs/_build/html" html)
5208 (home-page "https://github.com/Kozea/cairocffi")
5209 (synopsis "Python bindings and object-oriented API for Cairo")
5211 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
5212 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
5213 graphics library with support for multiple backends including image buffers,
5214 PNG, PostScript, PDF, and SVG file output.")
5215 (license license:bsd-3)))
5217 (define-public python2-cairocffi
5218 (package-with-python2 python-cairocffi))
5220 (define-public python-decorator
5222 (name "python-decorator")
5227 (uri (pypi-uri "decorator" version))
5229 (base32 "0308djallnh00v112y5b7nadl657ysmkp6vc8xn51d6yzc9zm7n3"))))
5230 (build-system python-build-system)
5231 (home-page "https://pypi.org/project/decorator/")
5232 (synopsis "Python module to simplify usage of decorators")
5234 "The aim of the decorator module is to simplify the usage of decorators
5235 for the average programmer, and to popularize decorators usage giving examples
5236 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
5237 etc. The core of this module is a decorator factory.")
5238 (license license:expat)))
5240 (define-public python2-decorator
5241 (package-with-python2 python-decorator))
5243 (define-public python-drmaa
5245 (name "python-drmaa")
5250 (uri (pypi-uri "drmaa" version))
5252 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
5253 (build-system python-build-system)
5254 ;; The test suite requires libdrmaa which is provided by the cluster
5255 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
5256 ;; should be set to the path of the libdrmaa library.
5257 (arguments '(#:tests? #f))
5259 `(("python-nose" ,python-nose)))
5260 (home-page "https://pypi.org/project/drmaa/")
5261 (synopsis "Python bindings for the DRMAA library")
5263 "A Python package for Distributed Resource Management (DRM) job
5264 submission and control. This package is an implementation of the DRMAA 1.0
5265 Python language binding specification.")
5266 (license license:bsd-3)))
5268 (define-public python2-drmaa
5269 (package-with-python2 python-drmaa))
5271 (define-public python-grako
5273 (name "python-grako")
5279 (pypi-uri "grako" version ".zip"))
5282 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
5283 (build-system python-build-system)
5284 (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
5287 ("python-pytest" ,python-pytest)
5288 ("python-pytest-runner" ,python-pytest-runner)))
5289 (home-page "https://bitbucket.org/neogeny/grako")
5290 (synopsis "EBNF parser generator")
5292 "Grako takes a grammar in a variation of EBNF as input, and outputs a
5293 memoizing PEG/Packrat parser in Python.")
5294 (license license:bsd-3)))
5296 (define-public python2-grako
5297 (package-with-python2 python-grako))
5299 (define-public python-gridmap
5301 (name "python-gridmap")
5307 (url "https://github.com/pygridtools/gridmap.git")
5308 (commit (string-append "v" version))))
5309 (file-name (git-file-name name version))
5311 (base32 "1478lbwsr1w24cii2x01m2910fvh8r43ghnb78nc972a96hqiknm"))))
5312 (build-system python-build-system)
5314 '(#:tests? #f)) ; FIXME: Requires python-cherrypy.
5316 `(("python-psutil" ,python-psutil)
5317 ("python-drmaa" ,python-drmaa)
5318 ("python-pyzmq" ,python-pyzmq)))
5319 (home-page "https://github.com/pygridtools/gridmap")
5320 (synopsis "Create jobs on a cluster directly from Python")
5322 "Gridmap is a Python package to allow you to easily create jobs on the
5323 cluster directly from Python. You can directly map Python functions onto the
5324 cluster without needing to write any wrapper code yourself.")
5325 (license license:gpl3+)))
5327 (define-public python2-gridmap
5328 (package-with-python2 python-gridmap))
5330 (define-public python-honcho
5332 (name "python-honcho")
5338 (url "https://github.com/nickstenning/honcho.git")
5339 (commit (string-append "v" version))))
5340 (file-name (git-file-name name version))
5342 (base32 "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b"))))
5343 (build-system python-build-system)
5345 `(("python-pytest" ,python-pytest)
5346 ("python-mock" ,python-mock)
5347 ("python-tox" ,python-tox)
5348 ("which" ,which))) ;for tests
5350 `(("python-jinja2" ,python-jinja2)))
5353 (modify-phases %standard-phases
5355 (add-after 'install 'check
5356 (lambda* (#:key outputs inputs #:allow-other-keys)
5357 ;; fix honcho path in testsuite
5358 (substitute* "tests/conftest.py"
5359 (("'honcho'") (string-append "'" (assoc-ref outputs "out")
5360 "/bin/honcho" "'")))
5361 ;; It's easier to run tests after install.
5362 ;; Make installed package available for running the tests
5363 (add-installed-pythonpath inputs outputs)
5364 (invoke "py.test" "-v"))))))
5365 (home-page "https://github.com/nickstenning/honcho")
5366 (synopsis "Manage Procfile-based applications")
5368 "A Procfile is a file which describes how to run an application
5369 consisting of several processes. honcho starts all listed processes.
5370 The output of all running processes is collected by honcho and
5372 (license license:expat)))
5374 (define-public python2-honcho
5375 (package-with-python2 python-honcho))
5377 (define-public python-pexpect
5379 (name "python-pexpect")
5384 (uri (pypi-uri "pexpect" version))
5386 (base32 "032cg337h8awydgypz6f4wx848lw8dyrj4zy988x0lyib4ws8rgw"))))
5387 (build-system python-build-system)
5390 (modify-phases %standard-phases
5391 (add-before 'check 'prepare-tests
5393 (substitute* (find-files "tests")
5394 (("/bin/ls") (which "ls"))
5395 (("/bin/echo") (which "echo"))
5396 (("/bin/which") (which "which"))
5397 ;; Many tests try to use the /bin directory which
5398 ;; is not present in the build environment.
5399 ;; Use one that's non-empty and unlikely to change.
5401 ;; Disable failing test. See upstream bug report
5402 ;; https://github.com/pexpect/pexpect/issues/568
5403 (("def test_bash") "def _test_bash"))
5404 ;; XXX: Socket connection test gets "Connection reset by peer".
5405 ;; Why does it not work? Delete for now.
5406 (delete-file "tests/test_socket.py")
5408 (replace 'check (lambda _ (invoke "nosetests" "-v"))))))
5410 `(("python-nose" ,python-nose)
5411 ("python-pytest" ,python-pytest)
5414 ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
5416 `(("python-ptyprocess" ,python-ptyprocess)))
5417 (home-page "http://pexpect.readthedocs.org/")
5418 (synopsis "Controlling interactive console applications")
5420 "Pexpect is a pure Python module for spawning child applications;
5421 controlling them; and responding to expected patterns in their output.
5422 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
5423 child application and control it as if a human were typing commands.")
5424 (license license:isc)))
5426 (define-public python2-pexpect
5427 (package-with-python2 python-pexpect))
5429 (define-public python-setuptools-scm
5431 (name "python-setuptools-scm")
5435 (uri (pypi-uri "setuptools_scm" version))
5438 "0n3knn3p1sqlx31k2lahn7z9bacvlv8nhlfidj77vz50bxqlgasj"))))
5439 (build-system python-build-system)
5440 (home-page "https://github.com/pypa/setuptools_scm/")
5441 (synopsis "Manage Python package versions in SCM metadata")
5443 "Setuptools_scm handles managing your Python package versions in
5444 @dfn{software configuration management} (SCM) metadata instead of declaring
5445 them as the version argument or in a SCM managed file.")
5446 (license license:expat)))
5448 ;; Needed by python-lazy-object-proxy, remove on next update cycle.
5449 (define-public python-setuptools-scm-3.3
5451 (inherit python-setuptools-scm)
5455 (uri (pypi-uri "setuptools_scm" version))
5458 "19cyndx23xmpbhz4qrwmfwsmnnaczd0dw7qg977ksq2dbvxy29dx"))))))
5460 (define-public python2-setuptools-scm
5461 (package-with-python2 python-setuptools-scm))
5463 (define-public python-pathlib2
5465 (name "python-pathlib2")
5470 (uri (pypi-uri "pathlib2" version))
5473 "0hpp92vqqgcd8h92msm9slv161b1q160igjwnkf2ag6cx0c96695"))))
5474 (build-system python-build-system)
5476 `(("python-scandir" ,python-scandir)
5477 ("python-six" ,python-six)))
5478 (home-page "https://pypi.org/project/pathlib2/")
5479 (synopsis "Object-oriented file system paths")
5480 (description "The goal of pathlib2 is to provide a backport of the
5481 standard @code{pathlib} module which tracks the standard library module, so
5482 all the newest features of the standard @code{pathlib} can be used also on
5483 older Python versions.")
5484 (license license:expat)))
5486 (define-public python2-importlib-resources
5488 (name "python2-importlib-resources")
5492 (uri (pypi-uri "importlib_resources" version))
5495 "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
5496 (build-system python-build-system)
5498 `(#:python ,python-2))
5500 `(("python-wheel" ,python2-wheel)))
5502 `(("python-pathlib2" ,python2-pathlib2)
5503 ("python-typing" ,python2-typing)))
5504 (home-page "https://gitlab.com/python-devs/importlib_resources")
5505 (synopsis "Backport of @code{importlib.resources} from Python 3.7")
5507 "This package provides an implementation of @code{importlib.resources}
5508 for older versions of Python.")
5509 (license license:asl2.0)))
5511 (define-public python-importlib-metadata
5513 (name "python-importlib-metadata")
5518 (uri (pypi-uri "importlib_metadata" version))
5520 (base32 "1n76444v7zn910xrhh8954jdn4byxbn9f1jck6b85a716mbh2z7i"))))
5521 (build-system python-build-system)
5523 `(("python-zipp" ,python-zipp)))
5525 `(("python-setuptools-scm" ,python-setuptools-scm)
5526 ("python-packaging" ,python-packaging)))
5527 (home-page "https://importlib-metadata.readthedocs.io/")
5528 (synopsis "Read metadata from Python packages")
5530 "@code{importlib_metadata} is a library which provides an API for
5531 accessing an installed Python package's metadata, such as its entry points or
5532 its top-level name. This functionality intends to replace most uses of
5533 @code{pkg_resources} entry point API and metadata API. Along with
5534 @code{importlib.resources} in Python 3.7 and newer, this can eliminate the
5535 need to use the older and less efficient @code{pkg_resources} package.")
5536 (properties `((python2-variant . ,(delay python2-importlib-metadata))))
5537 (license license:asl2.0)))
5539 (define-public python2-importlib-metadata
5540 (let ((base (package-with-python2 (strip-python2-variant
5541 python-importlib-metadata))))
5544 (name "python2-importlib-metadata")
5546 `(("python-configparser" ,python2-configparser)
5547 ("python-contextlib2" ,python2-contextlib2)
5548 ("python-importlib-resources" ,python2-importlib-resources)
5549 ("python-pathlib2" ,python2-pathlib2)
5550 ,@(package-propagated-inputs base))))))
5552 (define-public python-jaraco-packaging
5554 (name "python-jaraco-packaging")
5559 (uri (pypi-uri "jaraco.packaging" version))
5562 "0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
5563 (build-system python-build-system)
5565 `(("python-pytest" ,python-pytest)
5566 ("python-pytest-checkdocs" ,python-pytest-checkdocs)
5567 ("python-pytest-flake8" ,python-pytest-flake8)
5568 ("python-rst.linker" ,python-rst.linker)
5569 ("python-setuptools" ,python-setuptools)
5570 ("python-setuptools-scm" ,python-setuptools-scm)
5571 ("python-six" ,python-six)
5572 ("python-sphinx" ,python-sphinx)))
5573 (home-page "https://github.com/jaraco/jaraco.packaging")
5574 (synopsis "Tools to supplement packaging Python releases")
5576 "This package provides various tools to supplement packaging Python
5578 (license license:expat)))
5580 (define-public python-pathpy
5582 (name "python-pathpy")
5587 (uri (pypi-uri "path.py" version))
5589 (base32 "0ir9j1haq2jbi7aip6k2fa9l7q1l03k4hp1awxhjhcwzsnwp3ll8"))))
5590 (outputs '("out" "doc"))
5591 (build-system python-build-system)
5593 `(("python-appdirs" ,python-appdirs)
5594 ("python-importlib-metadata" ,python-importlib-metadata)))
5596 `(("python-setuptools-scm" ,python-setuptools-scm)
5597 ("python-sphinx" ,python-sphinx)
5598 ("python-rst.linker" ,python-rst.linker)
5599 ("python-pytest" ,python-pytest)
5600 ("python-pytest-runner" ,python-pytest-runner)
5601 ("python-jaraco-packaging" ,python-jaraco-packaging)))
5604 (modify-phases %standard-phases
5605 (add-after 'build 'build-doc
5607 (setenv "LANG" "en_US.UTF-8")
5608 (invoke "python" "setup.py" "build_sphinx")))
5609 (add-after 'install 'install-doc
5610 (lambda* (#:key outputs #:allow-other-keys)
5611 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
5612 (doc (string-append data "/doc/" ,name "-" ,version))
5613 (html (string-append doc "/html")))
5615 (for-each (lambda (file)
5616 (copy-file file (string-append doc "/" file)))
5617 '("README.rst" "CHANGES.rst"))
5618 (copy-recursively "build/sphinx/html" html)
5622 ;; The import time test aborts if an import takes longer than
5623 ;; 100ms. It may very well take a little longer than that.
5624 (invoke "pytest" "-v" "-k" "not test_import_time"))))))
5625 (home-page "https://github.com/jaraco/path.py")
5626 (synopsis "Python module wrapper for built-in os.path")
5628 "@code{path.py} implements path objects as first-class entities, allowing
5629 common operations on files to be invoked on those path objects directly.")
5630 (license license:expat)))
5632 (define-public python2-pathpy
5633 (package-with-python2 python-pathpy))
5635 (define-public python-simplegeneric
5637 (name "python-simplegeneric")
5642 (uri (pypi-uri "simplegeneric" version ".zip"))
5644 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
5645 (build-system python-build-system)
5647 `(("unzip" ,unzip)))
5648 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
5649 (synopsis "Python module for simple generic functions")
5651 "The simplegeneric module lets you define simple single-dispatch generic
5652 functions, akin to Python’s built-in generic functions like @code{len()},
5653 @code{iter()} and so on. However, instead of using specially-named methods,
5654 these generic functions use simple lookup tables, akin to those used by
5655 e.g. @code{pickle.dump()} and other generic functions found in the Python
5657 (license license:zpl2.1)))
5659 (define-public python2-simplegeneric
5660 (package-with-python2 python-simplegeneric))
5662 (define-public python-ipython-genutils
5663 ;; TODO: This package is retired, check if can be removed, see description.
5665 (name "python-ipython-genutils")
5670 (uri (pypi-uri "ipython_genutils" version))
5672 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
5673 (build-system python-build-system)
5674 (arguments `(#:tests? #f)) ; no tests
5675 (home-page "https://ipython.org")
5676 (synopsis "Vestigial utilities from IPython")
5678 "This package provides retired utilities from IPython. No packages
5679 outside IPython/Jupyter should depend on it.
5681 This package shouldn't exist. It contains some common utilities shared by
5682 Jupyter and IPython projects during The Big Split. As soon as possible, those
5683 packages will remove their dependency on this, and this package will go
5685 (license license:bsd-3)))
5687 (define-public python2-ipython-genutils
5688 (package-with-python2 python-ipython-genutils))
5690 (define-public python-traitlets
5692 (name "python-traitlets")
5697 (uri (pypi-uri "traitlets" version))
5700 "1xsrwgivpkxlbr4dfndfsi098s29yqgswgjc1qqn69yxklvfw8yh"))))
5701 (build-system python-build-system)
5704 (modify-phases %standard-phases
5705 (replace 'check (lambda _ (invoke "pytest" "-vv" "traitlets"))))))
5707 `(("python-ipython-genutils" ,python-ipython-genutils)
5708 ("python-decorator" ,python-decorator)))
5710 `(("python-pytest" ,python-pytest)))
5711 (properties `((python2-variant . ,(delay python2-traitlets))))
5712 (home-page "https://ipython.org")
5713 (synopsis "Configuration system for Python applications")
5715 "Traitlets is a framework that lets Python classes have attributes with
5716 type checking, dynamically calculated default values, and ‘on change’
5717 callbacks. The package also includes a mechanism to use traitlets for
5718 configuration, loading values from files or from command line arguments. This
5719 is a distinct layer on top of traitlets, so you can use traitlets in your code
5720 without using the configuration machinery.")
5721 (license license:bsd-3)))
5723 (define-public python2-traitlets
5724 (let ((traitlets (package-with-python2 (strip-python2-variant python-traitlets))))
5728 `(("python2-enum34" ,python2-enum34)
5729 ,@(package-propagated-inputs traitlets))))))
5731 (define-public python-jupyter-core
5733 (name "python-jupyter-core")
5738 (uri (string-append (pypi-uri "jupyter_core" version)))
5741 "1dy083rarba8prn9f9srxq3c7n7vyql02ycrqq306c40lr57aw5s"))))
5742 (build-system python-build-system)
5743 ;; FIXME: not sure how to run the tests
5744 (arguments `(#:tests? #f))
5746 `(("python-traitlets" ,python-traitlets)))
5747 (home-page "http://jupyter.org/")
5748 (synopsis "Jupyter base package")
5750 "Jupyter core is the base package on which Jupyter projects rely.")
5751 (license license:bsd-3)))
5753 (define-public python2-jupyter-core
5754 (package-with-python2 python-jupyter-core))
5756 (define-public python-jupyter-client
5758 (name "python-jupyter-client")
5763 (uri (pypi-uri "jupyter_client" version))
5766 "0l9mh7ccrpl3lppym3dnky8n1nk7xarzzdcxf4q2s7aw203cpydm"))))
5767 (build-system python-build-system)
5768 ;; Tests fail because of missing native python kernel which I assume is
5769 ;; provided by the ipython package, which we cannot use because it would
5770 ;; cause a dependency cycle.
5774 #:phases (modify-phases %standard-phases
5775 (add-after 'unpack 'set-tool-file-names
5776 (lambda* (#:key inputs #:allow-other-keys)
5777 (let ((iproute (assoc-ref inputs "iproute")))
5778 (substitute* "jupyter_client/localinterfaces.py"
5780 (string-append "'" iproute "/sbin/ip'")))
5783 `(("iproute" ,iproute)))
5785 `(("python-pyzmq" ,python-pyzmq)
5786 ("python-traitlets" ,python-traitlets)
5787 ("python-jupyter-core" ,python-jupyter-core)))
5788 (home-page "http://jupyter.org/")
5789 (synopsis "Jupyter protocol implementation and client libraries")
5791 "The @code{jupyter_client} package contains the reference implementation
5792 of the Jupyter protocol. It also provides client and kernel management APIs
5793 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
5794 installing @code{kernelspec}s for use with Jupyter frontends.")
5795 (license license:bsd-3)))
5797 (define-public python2-jupyter-client
5798 (package-with-python2 python-jupyter-client))
5800 (define-public python-ipykernel
5802 (name "python-ipykernel")
5807 (uri (pypi-uri "ipykernel" version))
5809 (base32 "1a08y677lpn80qzvv7z0smgggmr5m5ayf0bs6vds47xpxl9sss5k"))))
5810 (build-system python-build-system)
5813 (modify-phases %standard-phases
5816 (setenv "HOME" "/tmp")
5817 (invoke "pytest" "-v")
5819 (add-after 'install 'set-python-file-name
5820 (lambda* (#:key outputs #:allow-other-keys)
5821 ;; Record the absolute file name of the 'python' executable in
5823 (let ((out (assoc-ref outputs "out")))
5824 (substitute* (string-append out "/share/jupyter"
5825 "/kernels/python3/kernel.json")
5827 (string-append "\"" (which "python") "\"")))
5830 `(("python-ipython" ,python-ipython)
5831 ;; imported at runtime during connect
5832 ("python-jupyter-client" ,python-jupyter-client)))
5834 `(("python-flaky" ,python-flaky)
5835 ("python-nose" ,python-nose)
5836 ("python-pytest" ,python-pytest)))
5837 (home-page "https://ipython.org")
5838 (synopsis "IPython Kernel for Jupyter")
5840 "This package provides the IPython kernel for Jupyter.")
5841 (properties `((python2-variant . ,(delay python2-ipykernel))))
5842 (license license:bsd-3)))
5844 ;; Version 5.x and above no longer support Python 2.
5845 (define-public python2-ipykernel
5847 (name "python2-ipykernel")
5852 (uri (pypi-uri "ipykernel" version))
5854 (base32 "1yzmdiy1djsszqp54jzd8ym8h4hpl67zjq83j2kxbkp0rwmlpdzf"))))
5855 (build-system python-build-system)
5857 `(#:python ,python-2))
5859 `(("python2-ipython" ,python2-ipython)
5860 ;; imported at runtime during connect
5861 ("python2-jupyter-client" ,python2-jupyter-client)
5862 ("python2-tornado" ,python2-tornado)
5863 ("python2-traitlets" ,python2-traitlets)))
5865 `(("python2-mock" ,python2-mock)
5866 ("python2-nose" ,python2-nose)
5867 ("python2-pytest" ,python2-pytest)
5868 ("python2-pytest-cov" ,python2-pytest-cov)))
5869 (home-page "https://ipython.org")
5870 (synopsis "IPython Kernel for Jupyter")
5872 "This package provides the IPython kernel for Jupyter.")
5873 (license license:bsd-3)))
5875 (define-public python-pari-jupyter
5877 (name "python-pari-jupyter")
5882 (uri (pypi-uri "pari_jupyter" version))
5885 "1yash0p422nnin7z58b99d0p23nx79f5m0mainc9hsjg72jhdhr6"))))
5886 (build-system python-build-system)
5888 `(("python-ipykernel" ,python-ipykernel)))
5890 `(("pari-gp" ,pari-gp)
5891 ("readline" ,readline)))
5893 `(#:tests? #f)) ; no test suite
5895 "https://github.com/jdemeyer/pari_jupyter")
5896 (synopsis "A Jupyter kernel for PARI/GP")
5897 (description "The package provides a PARI/GP kernel for Jupyter.")
5898 (license license:gpl3+)))
5900 (define-public python-backcall
5902 (name "python-backcall")
5907 (uri (pypi-uri "backcall" version))
5910 "1r01dqch3f8fdj3n6fviw8hxqrs6w5v0qw4izmvqzry1w9dxiv1q"))))
5911 (build-system python-build-system)
5912 (home-page "https://github.com/takluyver/backcall/")
5913 (synopsis "Specifications for callback functions passed in to an API")
5915 "If your code lets other people supply callback functions, it's important
5916 to specify the function signature you expect, and check that functions support
5917 that. Adding extra parameters later would break other peoples code unless
5918 you're careful. The @code{backcall} package provides a way of specifying the
5919 callback signature using a prototype function.")
5920 (license license:bsd-3)))
5922 (define-public python-ipython
5924 (name "python-ipython")
5929 (uri (pypi-uri "ipython" version ".tar.gz"))
5931 (base32 "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz"))))
5932 (build-system python-build-system)
5934 `(("python-backcall" ,python-backcall)
5935 ("python-pyzmq" ,python-pyzmq)
5936 ("python-prompt-toolkit" ,python-prompt-toolkit)
5937 ("python-terminado" ,python-terminado)
5938 ("python-matplotlib" ,python-matplotlib)
5939 ("python-numpy" ,python-numpy)
5940 ("python-numpydoc" ,python-numpydoc)
5941 ("python-jedi" ,python-jedi)
5942 ("python-jinja2" ,python-jinja2)
5943 ("python-mistune" ,python-mistune)
5944 ("python-pexpect" ,python-pexpect)
5945 ("python-pickleshare" ,python-pickleshare)
5946 ("python-simplegeneric" ,python-simplegeneric)
5947 ("python-jsonschema" ,python-jsonschema)
5948 ("python-traitlets" ,python-traitlets)
5949 ("python-nbformat" ,python-nbformat)
5950 ("python-pygments" ,python-pygments)))
5952 `(("readline" ,readline)
5955 `(("graphviz" ,graphviz)
5956 ("pkg-config" ,pkg-config)
5957 ("python-requests" ,python-requests) ;; for tests
5958 ("python-testpath" ,python-testpath)
5959 ("python-nose" ,python-nose)))
5962 (modify-phases %standard-phases
5963 (add-after 'unpack 'make-docs-reproducible
5965 (substitute* "IPython/sphinxext/ipython_directive.py"
5966 ((".*import datetime") "")
5967 ((".*datetime.datetime.now\\(\\)") "")
5968 (("%timeit") "# %timeit"))
5970 ;; Tests can only be run after the library has been installed and not
5971 ;; within the source directory.
5973 (add-after 'install 'check
5974 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5977 ;; Make installed package available for running the tests
5978 (add-installed-pythonpath inputs outputs)
5979 (setenv "HOME" "/tmp/") ;; required by a test
5980 ;; We only test the core because one of the other tests
5981 ;; tries to import ipykernel.
5982 (invoke "python" "IPython/testing/iptest.py"
5983 "-v" "IPython/core/tests"))
5985 (add-before 'check 'fix-tests
5986 (lambda* (#:key inputs #:allow-other-keys)
5987 (substitute* "./IPython/utils/_process_posix.py"
5988 (("/usr/bin/env', 'which") (which "which")))
5989 (substitute* "./IPython/core/tests/test_inputtransformer.py"
5990 (("#!/usr/bin/env python")
5991 (string-append "#!" (which "python"))))
5992 ;; This test introduces a circular dependency on ipykernel
5993 ;; (which depends on ipython).
5994 (delete-file "IPython/core/tests/test_display.py")
5995 ;; AttributeError: module 'IPython.core' has no attribute 'formatters'
5996 (delete-file "IPython/core/tests/test_interactiveshell.py")
5998 (home-page "https://ipython.org")
5999 (synopsis "IPython is a tool for interactive computing in Python")
6001 "IPython provides a rich architecture for interactive computing with:
6002 Powerful interactive shells, a browser-based notebook, support for interactive
6003 data visualization, embeddable interpreters and tools for parallel
6005 (properties `((python2-variant . ,(delay python2-ipython))))
6006 (license license:bsd-3)))
6008 ;; This is the latest release of the LTS version of ipython with support for
6009 ;; Python 2.7 and Python 3.x. Later non-LTS versions starting from 6.0 have
6010 ;; dropped support for Python 2.7.
6011 (define-public python2-ipython
6013 (name "python2-ipython")
6018 (uri (pypi-uri "ipython" version ".tar.gz"))
6020 (base32 "01l93i4hspf0lvhmycvc8j378bslm9rw30mwfspsl6v1ayc69b2b"))))
6021 (build-system python-build-system)
6023 `(("python2-backports-shutil-get-terminal-size"
6024 ,python2-backports-shutil-get-terminal-size)
6025 ("python2-pathlib2" ,python2-pathlib2)
6026 ("python2-pyzmq" ,python2-pyzmq)
6027 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
6028 ("python2-terminado" ,python2-terminado)
6029 ("python2-matplotlib" ,python2-matplotlib)
6030 ("python2-numpy" ,python2-numpy)
6031 ("python2-numpydoc" ,python2-numpydoc)
6032 ("python2-jinja2" ,python2-jinja2)
6033 ("python2-mistune" ,python2-mistune)
6034 ("python2-pexpect" ,python2-pexpect)
6035 ("python2-pickleshare" ,python2-pickleshare)
6036 ("python2-simplegeneric" ,python2-simplegeneric)
6037 ("python2-jsonschema" ,python2-jsonschema)
6038 ("python2-traitlets" ,python2-traitlets)
6039 ("python2-nbformat" ,python2-nbformat)
6040 ("python2-pygments" ,python2-pygments)))
6042 `(("readline" ,readline)
6045 `(("graphviz" ,graphviz)
6046 ("pkg-config" ,pkg-config)
6047 ("python2-requests" ,python2-requests) ;; for tests
6048 ("python2-testpath" ,python2-testpath)
6049 ("python2-mock" ,python2-mock)
6050 ("python2-nose" ,python2-nose)))
6052 `(#:python ,python-2
6054 (modify-phases %standard-phases
6055 (add-before 'check 'delete-broken-tests
6056 (lambda* (#:key inputs #:allow-other-keys)
6057 ;; These tests throw errors for unknown reasons.
6058 (delete-file "IPython/core/tests/test_displayhook.py")
6059 (delete-file "IPython/core/tests/test_magic_terminal.py")
6060 (delete-file "IPython/core/tests/test_profile.py")
6062 (home-page "https://ipython.org")
6063 (synopsis "IPython is a tool for interactive computing in Python")
6065 "IPython provides a rich architecture for interactive computing with:
6066 Powerful interactive shells, a browser-based notebook, support for interactive
6067 data visualization, embeddable interpreters and tools for parallel
6069 (license license:bsd-3)))
6071 (define-public python-ipython-documentation
6073 (inherit python-ipython)
6074 (name "python-ipython-documentation")
6075 (version (package-version python-ipython))
6078 (modify-phases %standard-phases
6082 (lambda* (#:key outputs #:allow-other-keys)
6083 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
6084 (doc (string-append data "/doc/" ,name "-" ,version))
6085 (html (string-append doc "/html"))
6086 (man1 (string-append data "/man/man1"))
6087 (info (string-append data "/info"))
6088 (examples (string-append doc "/examples"))
6089 (python-arg (string-append "PYTHON=" (which "python"))))
6090 (setenv "LANG" "en_US.utf8")
6091 (with-directory-excursion "docs"
6092 ;; FIXME: pdf fails to build
6093 ;;(system* "make" "pdf" "PAPER=a4")
6094 (system* "make" python-arg "html")
6095 ;; FIXME: the generated texi file contains ^@^@, which trips
6097 ;; (system* "make" python-arg "info")
6099 (copy-recursively "docs/man" man1)
6100 (copy-recursively "examples" examples)
6101 (copy-recursively "docs/build/html" html)
6102 ;; (copy-file "docs/build/latex/ipython.pdf"
6103 ;; (string-append doc "/ipython.pdf"))
6105 ;; (copy-file "docs/build/texinfo/ipython.info"
6106 ;; (string-append info "/ipython.info"))
6107 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))
6110 `(("python-ipython" ,python-ipython)
6111 ("python-ipykernel" ,python-ipykernel)))
6113 `(("python-sphinx" ,python-sphinx)
6114 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
6115 ;; FIXME: It's possible that a smaller union would work just as well.
6116 ("texlive" ,(texlive-union (list texlive-amsfonts
6118 texlive-generic-ifxetex
6119 texlive-generic-pdftex
6120 texlive-latex-capt-of
6122 texlive-latex-environ
6123 texlive-latex-eqparbox
6124 texlive-latex-etoolbox
6125 texlive-latex-expdlist
6126 texlive-latex-fancyhdr
6127 texlive-latex-fancyvrb
6128 texlive-latex-fncychap
6130 texlive-latex-framed
6131 texlive-latex-geometry
6132 texlive-latex-graphics
6133 texlive-latex-hyperref
6134 texlive-latex-mdwtools
6135 texlive-latex-multirow
6136 texlive-latex-needspace
6137 texlive-latex-oberdiek
6138 texlive-latex-parskip
6139 texlive-latex-preview
6140 texlive-latex-tabulary
6141 texlive-latex-threeparttable
6142 texlive-latex-titlesec
6143 texlive-latex-trimspaces
6145 texlive-latex-upquote
6147 texlive-latex-varwidth
6148 texlive-latex-wrapfig)))
6149 ("texinfo" ,texinfo)))))
6151 (define-public python-urwid
6153 (name "python-urwid")
6158 (uri (pypi-uri "urwid" version))
6161 "1g6cpicybvbananpjikmjk8npmjk4xvak1wjzji62wc600wkwkb4"))))
6162 (build-system python-build-system)
6163 (home-page "http://urwid.org")
6164 (synopsis "Console user interface library for Python")
6166 "Urwid is a curses-based UI/widget library for Python. It includes many
6167 features useful for text console applications.")
6168 (license license:lgpl2.1+)))
6170 (define-public python2-urwid
6171 (package-with-python2 python-urwid))
6173 (define-public python-urwidtrees
6175 (name "python-urwidtrees")
6180 ;; package author intends on distributing via github rather than pypi:
6181 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
6183 (url "https://github.com/pazz/urwidtrees")
6185 (file-name (git-file-name name version))
6188 "1n1kpidvkdnsqyb82vlvk78gmly96kh8351lqxn2pzgwwns6fml2"))))
6189 (build-system python-build-system)
6191 '(#:use-setuptools? #f
6192 #:tests? #f)) ; no tests
6193 (propagated-inputs `(("python-urwid" ,python-urwid)))
6194 (home-page "https://github.com/pazz/urwidtrees")
6195 (synopsis "Tree widgets for urwid")
6196 (description "Urwidtrees is a Widget Container API for the @code{urwid}
6197 toolkit. Use it to build trees of widgets.")
6198 (license license:gpl3+)))
6200 (define-public python2-urwidtrees
6201 (package-with-python2 python-urwidtrees))
6203 (define-public python-ua-parser
6205 (name "python-ua-parser")
6210 (uri (pypi-uri "ua-parser" version))
6213 "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp"))))
6214 (build-system python-build-system)
6216 `(#:tests? #f)) ;no test suite in release
6218 `(("python-pyyaml" ,python-pyyaml)))
6219 (home-page "https://github.com/ua-parser/uap-python")
6220 (synopsis "User agent parser")
6222 "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
6223 (license license:asl2.0)))
6225 (define-public python2-ua-parser
6226 (package-with-python2 python-ua-parser))
6228 (define-public python-user-agents
6230 (name "python-user-agents")
6235 (uri (pypi-uri "user-agents" version))
6238 "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4"))))
6239 (build-system python-build-system)
6241 `(#:tests? #f)) ;missing devices.json test file in release
6243 `(("python-ua-parser" ,python-ua-parser)))
6244 (home-page "https://github.com/selwin/python-user-agents")
6245 (synopsis "User Agent strings parsing library")
6247 "A library to identify devices (phones, tablets) and their capabilities by
6248 parsing (browser/HTTP) user agent strings.")
6249 (license license:expat)))
6251 (define-public python2-user-agents
6252 (package-with-python2 python-user-agents))
6254 (define-public python-dbus
6256 (name "python-dbus")
6261 (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
6262 "dbus-python-" version ".tar.gz"))
6264 (base32 "0cdchkgnivlka4lf8q4qfk0yxq483i3r3aqickjf8hfn7nx0c0mi"))))
6265 (build-system gnu-build-system)
6267 `(("pkg-config" ,pkg-config)))
6269 `(("python" ,python-wrapper)
6270 ("dbus-glib" ,dbus-glib)))
6271 (synopsis "Python bindings for D-bus")
6272 (description "python-dbus provides bindings for libdbus, the reference
6273 implementation of D-Bus.")
6274 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
6275 (license license:expat)))
6277 (define-public python2-dbus
6278 (package (inherit python-dbus)
6279 (name "python2-dbus")
6280 (inputs `(("python" ,python-2)
6281 ,@(alist-delete "python"
6282 (package-inputs python-dbus)
6285 (define-public python-notify2
6287 (name "python-notify2")
6292 (uri (pypi-uri "notify2" version))
6295 "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
6296 (build-system python-build-system)
6297 (arguments `(#:tests? #f)) ; tests depend on system state
6299 `(("python-dbus" ,python-dbus)))
6300 (home-page "https://bitbucket.org/takluyver/pynotify2")
6301 (synopsis "Python interface to D-Bus notifications")
6303 "Pynotify2 provides a Python interface for sending D-Bus notifications.
6304 It is a reimplementation of pynotify in pure Python, and an alternative to
6305 the GObject Introspection bindings to libnotify for non-GTK applications.")
6306 (license (list license:bsd-2
6307 license:lgpl2.1+))))
6309 (define-public python2-notify2
6310 (package-with-python2 python-notify2))
6312 ;; beautifulsoup4 has a totally different namespace than 3.x,
6313 ;; and pypi seems to put it under its own name, so I guess we should too
6314 (define-public python-beautifulsoup4
6316 (name "python-beautifulsoup4")
6321 (uri (pypi-uri "beautifulsoup4" version))
6324 "0j2kycz2dxgx68xzjm7rxg5xn6v61gq5ifvxyg99slmqkybnal4l"))))
6325 (build-system python-build-system)
6328 (modify-phases %standard-phases
6329 ;; The Python 2 source is the definitive source of beautifulsoup4. We
6330 ;; must use this conversion script when building with Python 3. The
6331 ;; conversion script also runs the tests.
6332 ;; For more information, see the file 'convert-py3k' in the source
6335 (lambda _ (invoke "./convert-py3k"))))))
6337 `(("python-soupsieve" ,python-soupsieve)))
6339 "https://www.crummy.com/software/BeautifulSoup/bs4/")
6341 "Python screen-scraping library")
6343 "Beautiful Soup is a Python library designed for rapidly setting up
6344 screen-scraping projects. It offers Pythonic idioms for navigating,
6345 searching, and modifying a parse tree, providing a toolkit for
6346 dissecting a document and extracting what you need. It automatically
6347 converts incoming documents to Unicode and outgoing documents to UTF-8.")
6348 (license license:expat)
6349 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
6351 (define-public python2-beautifulsoup4
6353 (inherit (package-with-python2
6354 (strip-python2-variant python-beautifulsoup4)))
6355 (arguments `(#:python ,python-2))))
6357 (define-public python-soupsieve
6359 (name "python-soupsieve")
6364 (uri (pypi-uri "soupsieve" version))
6367 "1nhd0q0ifwva9wn645s6pn74p1rd97asn3qfg75nphx1wkgcbhg2"))))
6368 (build-system python-build-system)
6369 (arguments `(#:tests? #f))
6370 ;;XXX: 2 tests fail currently despite claming they were to be
6371 ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
6372 ;;don't want to create a circular dependency.
6373 (home-page "https://github.com/facelessuser/soupsieve")
6374 (synopsis "CSS selector library")
6376 "Soup Sieve is a CSS selector library designed to be used with Beautiful
6377 Soup 4. It aims to provide selecting, matching, and filtering using modern
6378 CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
6379 specifications up through the latest CSS level 4 drafts and beyond (though
6380 some are not yet implemented).")
6381 (properties `((python2-variant . ,(delay python2-soupsieve))))
6382 (license license:expat)))
6384 (define-public python2-soupsieve
6385 (let ((base (package-with-python2 (strip-python2-variant python-soupsieve))))
6389 `(("python2-backports-functools-lru-cache"
6390 ,python2-backports-functools-lru-cache)
6391 ,@(package-propagated-inputs base))))))
6393 (define-public python-netifaces
6395 (name "python-netifaces")
6400 (uri (pypi-uri "netifaces" version))
6403 "1gccklrcplbbqh81g1mdgpa5y8na7kkf29cq2ka3f5a2fp5hyndx"))))
6404 (build-system python-build-system)
6405 (home-page "https://github.com/al45tair/netifaces")
6407 "Python module for portable network interface information")
6409 "Netifaces is a Python module providing information on network
6410 interfaces in an easy and portable manner.")
6411 (license license:expat)))
6413 (define-public python2-netifaces
6414 (package-with-python2 python-netifaces))
6416 (define-public python-networkx
6418 (name "python-networkx")
6423 (uri (pypi-uri "networkx" version))
6425 (base32 "0r2wr7aqay9fwjrgk35fkjzk8lvvb4i4df7ndaqzkr4ndw5zzx7q"))))
6426 (build-system python-build-system)
6428 '(#:phases (modify-phases %standard-phases
6430 (lambda* (#:key tests? #:allow-other-keys)
6432 (invoke "pytest" "-vv" "--pyargs" "networkx")
6433 (format #t "test suite not run~%"))
6435 ;; python-decorator is needed at runtime.
6437 `(("python-decorator" ,python-decorator)))
6439 `(("python-pytest" ,python-pytest)))
6440 (home-page "https://networkx.github.io/")
6441 (synopsis "Python module for creating and manipulating graphs and networks")
6443 "NetworkX is a Python package for the creation, manipulation, and study
6444 of the structure, dynamics, and functions of complex networks.")
6445 (properties `((python2-variant . ,(delay python2-networkx))))
6446 (license license:bsd-3)))
6448 ;; NetworkX 2.2 is the last version with support for Python 2.
6449 (define-public python2-networkx
6450 (let ((base (package-with-python2 (strip-python2-variant python-networkx))))
6456 (uri (pypi-uri "networkx" version ".zip"))
6459 "12swxb15299v9vqjsq4z8rgh5sdhvpx497xwnhpnb0gynrx6zra5"))))
6461 `(#:python ,python-2))
6463 `(("python-nose" ,python2-nose)
6464 ("unzip" ,unzip))))))
6466 (define-public python-datrie
6468 (name "python-datrie")
6473 (uri (pypi-uri "datrie" version))
6476 "0338r8xgmpy78556jhms0h6qkvyjr10p8bpgdvcpqzm9lrmxmmdx"))))
6477 (build-system python-build-system)
6479 `(("python-cython" ,python-cython)
6480 ("python-hypothesis" ,python-hypothesis)
6481 ("python-pytest" ,python-pytest)
6482 ("python-pytest-runner" ,python-pytest-runner)))
6483 (home-page "https://github.com/kmike/datrie")
6484 (synopsis "Fast, efficiently stored trie for Python")
6486 "This package provides a fast, efficiently stored trie implementation for
6488 (license license:lgpl2.1+)))
6490 (define-public snakemake
6497 (uri (pypi-uri "snakemake" version))
6499 (base32 "1pnpvvn8n2a78cg360wz3ldmpqrsm2wzi0c0dmvki9fnsw6fxdas"))))
6500 (build-system python-build-system)
6502 ;; TODO: Package missing test dependencies.
6505 (modify-phases %standard-phases
6506 ;; For cluster execution Snakemake will call Python. Since there is
6507 ;; no suitable PYTHONPATH set, cluster execution will fail. We fix
6508 ;; this by calling the snakemake wrapper instead.
6509 (add-after 'unpack 'call-wrapper-not-wrapped-snakemake
6510 (lambda* (#:key outputs #:allow-other-keys)
6511 (substitute* "snakemake/executors.py"
6512 (("\\{sys.executable\\} -m snakemake")
6513 (string-append (assoc-ref outputs "out")
6517 `(("python-appdirs" ,python-appdirs)
6518 ("python-configargparse" ,python-configargparse)
6519 ("python-datrie" ,python-datrie)
6520 ("python-docutils" ,python-docutils)
6521 ("python-gitpython" ,python-gitpython)
6522 ("python-jinja2" ,python-jinja2)
6523 ("python-jsonschema" ,python-jsonschema)
6524 ("python-networkx" ,python-networkx)
6525 ("python-psutil" ,python-psutil)
6526 ("python-pyyaml" ,python-pyyaml)
6527 ("python-ratelimiter" ,python-ratelimiter)
6528 ("python-requests" ,python-requests)
6529 ("python-wrapt" ,python-wrapt)))
6530 (home-page "https://snakemake.readthedocs.io")
6531 (synopsis "Python-based execution environment for make-like workflows")
6533 "Snakemake aims to reduce the complexity of creating workflows by
6534 providing a clean and modern domain specific specification language (DSL) in
6535 Python style, together with a fast and comfortable execution environment.")
6536 (license license:expat)))
6538 (define-public python-pyqrcode
6540 (name "python-pyqrcode")
6545 (uri (pypi-uri "PyQRCode" version))
6548 "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
6549 (build-system python-build-system)
6551 "https://github.com/mnooner256/pyqrcode")
6552 (synopsis "QR code generator")
6554 "Pyqrcode is a QR code generator written purely in Python with
6555 SVG, EPS, PNG and terminal output.")
6556 (license license:bsd-3)))
6558 (define-public python-seaborn
6560 (name "python-seaborn")
6565 (uri (pypi-uri "seaborn" version))
6567 (base32 "1ffbms4kllihfycf6j57dziq4imgdjw03sqgifh5wzcd2d743zjr"))))
6568 (build-system python-build-system)
6571 (modify-phases %standard-phases
6572 (add-before 'check 'start-xserver
6573 (lambda* (#:key inputs #:allow-other-keys)
6574 (let ((xorg-server (assoc-ref inputs "xorg-server")))
6575 ;; There must be a running X server and make check doesn't
6576 ;; start one. Therefore we must do it.
6577 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
6578 (setenv "DISPLAY" ":1")
6580 (replace 'check (lambda _ (invoke "pytest" "seaborn") #t)))))
6582 `(("python-pandas" ,python-pandas)
6583 ("python-matplotlib" ,python-matplotlib)
6584 ("python-numpy" ,python-numpy)
6585 ("python-scipy" ,python-scipy)))
6587 `(("python-pytest" ,python-pytest)
6588 ("xorg-server" ,xorg-server-for-tests)))
6589 (home-page "https://seaborn.pydata.org/")
6590 (synopsis "Statistical data visualization")
6592 "Seaborn is a library for making attractive and informative statistical
6593 graphics in Python. It is built on top of matplotlib and tightly integrated
6594 with the PyData stack, including support for numpy and pandas data structures
6595 and statistical routines from scipy and statsmodels.")
6596 (properties `((python2-variant . ,(delay python2-seaborn))))
6597 (license license:bsd-3)))
6599 ;; 0.9.1 is the last release with support for Python 2.
6600 (define-public python2-seaborn
6601 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
6607 (uri (pypi-uri "seaborn" version))
6610 "1bjnshjz4d6z3vrwfwall1a3yh8h3a1h47c3fg7458x9426alcys")))))))
6612 (define-public python-mpmath
6614 (name "python-mpmath")
6618 (uri (string-append "http://mpmath.org/files/mpmath-"
6622 "08ijsr4ifrqv3cjc26mkw0dbvyygsa99in376hr4b96ddm1gdpb8"))))
6623 (build-system python-build-system)
6626 (modify-phases %standard-phases
6629 (invoke "python" "mpmath/tests/runtests.py" "-local"))))))
6630 (home-page "http://mpmath.org")
6631 (synopsis "Arbitrary-precision floating-point arithmetic in python")
6633 "@code{mpmath} can be used as an arbitrary-precision substitute for
6634 Python's float/complex types and math/cmath modules, but also does much
6635 more advanced mathematics.")
6636 (license license:bsd-3)))
6638 (define-public python2-mpmath
6639 (package-with-python2 python-mpmath))
6641 (define-public python-bigfloat
6643 (name "python-bigfloat")
6648 (uri (pypi-uri "bigfloat" version))
6650 (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6"))))
6651 (build-system python-build-system)
6654 (home-page "https://github.com/mdickinson/bigfloat")
6655 (synopsis "Arbitrary precision floating-point arithmetic for Python")
6657 "This package provides a Python interface to the MPFR library for
6658 multiprecision arithmetic.")
6659 (license license:lgpl3+)))
6661 (define-public python2-bigfloat
6662 (package-with-python2 python-bigfloat))
6664 (define-public python-sympy
6666 (name "python-sympy")
6672 "https://github.com/sympy/sympy/releases/download/sympy-"
6673 version "/sympy-" version ".tar.gz"))
6675 (base32 "190n29sppw7g8ihilc5451y7jlfcaw56crqiqbf1jff43dlmfnxc"))))
6676 (build-system python-build-system)
6679 (modify-phases %standard-phases
6680 ;; Run the core tests after installation. By default it would run
6681 ;; *all* tests, which take a very long time to complete and are known
6684 (add-after 'install 'check
6685 (lambda* (#:key outputs #:allow-other-keys)
6686 (invoke "python3" "-c" "import sympy; sympy.test(\"/core\")")
6689 `(("python-mpmath" ,python-mpmath)))
6690 (home-page "https://www.sympy.org/")
6691 (synopsis "Python library for symbolic mathematics")
6693 "SymPy is a Python library for symbolic mathematics. It aims to become a
6694 full-featured computer algebra system (CAS) while keeping the code as simple
6695 as possible in order to be comprehensible and easily extensible.")
6696 (license license:bsd-3)))
6698 (define-public python2-sympy
6700 (inherit (package-with-python2 python-sympy))
6703 (modify-phases %standard-phases
6704 ;; Run the core tests after installation. By default it would run
6705 ;; *all* tests, which take a very long time to complete and are known
6708 (add-after 'install 'check
6709 (lambda* (#:key outputs #:allow-other-keys)
6710 (invoke "python" "-c" "import sympy; sympy.test(\"/core\")")
6713 (define-public python-q
6720 (uri (pypi-uri "q" version))
6723 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
6724 (build-system python-build-system)
6725 (home-page "https://github.com/zestyping/q")
6726 (synopsis "Quick-and-dirty debugging output for tired programmers")
6728 "q is a Python module for \"print\" style of debugging Python code. It
6729 provides convenient short API for print out of values, tracebacks, and
6730 falling into the Python interpreter.")
6731 (license license:asl2.0)))
6733 (define-public python2-q
6734 (package-with-python2 python-q))
6736 (define-public python2-xlib
6738 (name "python2-xlib")
6742 (uri (string-append "mirror://sourceforge/python-xlib/python-xlib"
6744 "python-xlib-" version ".tar.gz"))
6747 "1sv0447j0rx8cgs3jhjl695p5pv13ihglcjlrrz1kq05lsvb0wa7"))))
6748 (build-system python-build-system)
6750 `(#:python ,python-2 ;Python 2 only
6751 #:tests? #f)) ;no tests
6752 (home-page "http://python-xlib.sourceforge.net/")
6753 (synopsis "Python X11 client library")
6755 "The Python X Library is intended to be a fully functional X client
6756 library for Python programs. It is useful to implement low-level X clients.
6757 It is written entirely in Python.")
6758 (license license:gpl2+)))
6760 (define-public python-singledispatch
6762 (name "python-singledispatch")
6767 (uri (pypi-uri "singledispatch" version))
6770 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
6771 (build-system python-build-system)
6773 `(("python-six" ,python-six))) ; required for conversion, not at run-time
6775 "https://docs.python.org/3/library/functools.html#functools.singledispatch")
6776 (synopsis "Backport of singledispatch feature from Python 3.4")
6778 "This library brings functools.singledispatch from Python 3.4 to Python
6780 (license license:expat)))
6782 (define-public python2-singledispatch
6783 (package-with-python2 python-singledispatch))
6785 ;; the python- version can be removed with python-3.5
6786 (define-public python-backports-abc
6788 (name "python-backports-abc")
6793 (uri (pypi-uri "backports_abc" version))
6796 "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
6797 (build-system python-build-system)
6798 (home-page "https://github.com/cython/backports_abc")
6799 (synopsis "Backport of additions to the 'collections.abc' module")
6801 "Python-backports-abc provides a backport of additions to the
6802 @code{collections.abc} module in Python-3.5.")
6803 (license license:psfl)))
6805 (define-public python2-backports-abc
6806 (package-with-python2 python-backports-abc))
6808 (define-public python-backports-csv
6810 (name "python-backports-csv")
6815 (uri (pypi-uri "backports.csv" version))
6818 "1imzbrradkfn8s2m1qcimyn74dn1mz2p3j381jljn166rf2i6hlc"))))
6819 (build-system python-build-system)
6820 (home-page "https://github.com/ryanhiebert/backports.csv")
6821 (synopsis "Backport of Python 3's csv module for Python 2")
6823 "Provides a backport of Python 3's @code{csv} module for parsing
6824 comma separated values. The API of the @code{csv} module in Python 2
6825 is drastically different from the @code{csv} module in Python 3.
6826 This is due, for the most part, to the difference between str in
6827 Python 2 and Python 3.")
6828 (license license:psfl)))
6830 (define-public python2-backports-csv
6831 (package-with-python2 python-backports-csv))
6833 (define-public python2-backports-shutil-get-terminal-size
6835 (name "python2-backports-shutil-get-terminal-size")
6840 (uri (pypi-uri "backports.shutil_get_terminal_size" version))
6843 "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
6844 (build-system python-build-system)
6846 `(#:python ,python-2
6848 (modify-phases %standard-phases
6851 (invoke "py.test" "-v"))))))
6853 `(("python2-pytest" ,python2-pytest)))
6854 (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
6855 (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
6857 "This package provides a backport of the @code{get_terminal_size
6858 function} from Python 3.3's @code{shutil}.
6859 Unlike the original version it is written in pure Python rather than C,
6860 so it might be a tiny bit slower.")
6861 (license license:expat)))
6863 (define-public python-waf
6869 (uri (string-append "https://waf.io/"
6870 "waf-" version ".tar.bz2"))
6873 "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
6874 (build-system python-build-system)
6877 (modify-phases %standard-phases
6880 ;; XXX: Find a way to add all extra tools.
6881 (let ((tools '("gccdeps"
6882 "clang_compilation_database")))
6883 (invoke "python" "waf-light" "configure" "build"
6884 (string-append "--tools="
6885 (string-join tools ","))))))
6888 (invoke "python" "waf" "--version")))
6890 (lambda* (#:key outputs #:allow-other-keys)
6891 (let ((out (assoc-ref outputs "out")))
6892 (install-file "waf" (string-append out "/bin")))
6894 ;; waf breaks when it is wrapped.
6896 (home-page "https://waf.io/")
6897 (synopsis "Python-based build system")
6899 "Waf is a Python-based framework for configuring, compiling and installing
6901 (license license:bsd-3)))
6903 (define-public python2-waf
6904 (package-with-python2 python-waf))
6906 (define-public python-pyzmq
6908 (name "python-pyzmq")
6913 (uri (pypi-uri "pyzmq" version))
6915 (base32 "1pyxxrz60f88ffm0y6vpbx3q8jcr9ybz8fcilihwzwhh36n84ax7"))))
6916 (build-system python-build-system)
6919 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
6920 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
6921 ;; --inplace' for 'python setup.py test' to work.
6924 `(("zeromq" ,zeromq)))
6926 `(("pkg-config" ,pkg-config)
6927 ("python-nose" ,python-nose)))
6928 (home-page "https://github.com/zeromq/pyzmq")
6929 (synopsis "Python bindings for 0MQ")
6931 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
6932 (license license:bsd-4)))
6934 (define-public python2-pyzmq
6935 (package-with-python2 python-pyzmq))
6937 (define-public python-pep8
6938 ;; This package has been renamed to ‘pycodestyle’ and is no longer updated.
6939 ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking
6940 ;; some dependents' test suites, and nothing more.
6942 (name "python-pep8")
6947 (uri (pypi-uri "pep8" version))
6950 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))
6951 (patches (search-patches "python-pep8-stdlib-tokenize-compat.patch"))))
6952 (build-system python-build-system)
6953 (home-page "https://pep8.readthedocs.org/")
6954 (synopsis "Python style guide checker")
6956 "This tools checks Python code against some of the style conventions in
6958 (license license:expat)))
6960 (define-public python2-pep8
6961 (package-with-python2 python-pep8))
6963 (define-public python-pyflakes
6965 (name "python-pyflakes")
6970 (uri (pypi-uri "pyflakes" version))
6973 "18pq95a1xj2dgdd0m85gyfsn40jajj4xc3lp8wfv7igqhrc86xnr"))))
6974 (build-system python-build-system)
6976 "https://github.com/pyflakes/pyflakes")
6977 (synopsis "Passive checker of Python programs")
6979 "Pyflakes statically checks Python source code for common errors.")
6980 (license license:expat)))
6982 (define-public python2-pyflakes
6983 (package-with-python2 python-pyflakes))
6985 (define-public python-mccabe
6987 (name "python-mccabe")
6992 (uri (pypi-uri "mccabe" version))
6995 "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
6996 (build-system python-build-system)
6998 `(("python-pytest" ,python-pytest-bootstrap)
6999 ("python-pytest-runner" ,python-pytest-runner)))
7000 (home-page "https://github.com/flintwork/mccabe")
7001 (synopsis "McCabe checker, plugin for flake8")
7003 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
7004 complexity of Python source code.")
7005 (license license:expat)))
7007 (define-public python2-mccabe
7008 (package-with-python2 python-mccabe))
7010 (define-public python-mccabe-0.2.1
7011 (package (inherit python-mccabe)
7016 (uri (pypi-uri "mccabe" version))
7019 "0fi4a81kr5bcv5p4xgibqr595hyj5dafkqgsmfk96mfy8w71fajs"))))))
7021 (define-public python2-mccabe-0.2.1
7022 (package-with-python2 python-mccabe-0.2.1))
7024 ;; Flake8 2.4.1 requires an older version of pep8.
7025 ;; This should be removed ASAP.
7026 (define-public python-pep8-1.5.7
7027 (package (inherit python-pep8)
7032 (uri (pypi-uri "pep8" version))
7035 "12b9bbdbwnspxgak14xg58c130x2n0blxzlms5jn2dszn8qj3d0m"))))
7037 ;; XXX Tests not compatible with Python 3.5.
7040 (define-public python2-pep8-1.5.7
7041 (package-with-python2 python-pep8-1.5.7))
7043 ;; Flake8 2.4.1 requires an older version of pyflakes.
7044 ;; This should be removed ASAP.
7045 (define-public python-pyflakes-0.8.1
7046 (package (inherit python-pyflakes)
7051 (uri (pypi-uri "pyflakes" version))
7054 "0sbpq6pqm1i9wqi41mlfrsc5rk92jv4mskvlyxmnhlbdnc80ma1z"))))
7056 ;; XXX Tests not compatible with Python 3.5.
7059 (define-public python2-pyflakes-0.8.1
7060 (package-with-python2 python-pyflakes-0.8.1))
7062 (define-public python-flake8
7064 (name "python-flake8")
7068 (uri (pypi-uri "flake8" version))
7071 "0qg6zggqigrd4k3gv88shd1a27d0cwgfql8vfiq2c7rl7w3rd6c5"))))
7072 (build-system python-build-system)
7075 (modify-phases %standard-phases
7077 (add-after 'install 'check
7078 (lambda* (#:key inputs outputs #:allow-other-keys)
7079 (add-installed-pythonpath inputs outputs)
7080 (invoke "pytest" "-v")
7083 `(("python-pycodestyle" ,python-pycodestyle)
7084 ("python-entrypoints" ,python-entrypoints)
7085 ("python-pyflakes" ,python-pyflakes)
7086 ("python-mccabe" ,python-mccabe)))
7088 `(("python-mock" ,python-mock)
7089 ("python-pytest" ,python-pytest-bootstrap)
7090 ("python-pytest-runner" ,python-pytest-runner)))
7091 (home-page "https://gitlab.com/pycqa/flake8")
7093 "The modular source code checker: pep8, pyflakes and co")
7095 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
7096 (properties `((python2-variant . ,(delay python2-flake8))))
7097 (license license:expat)))
7099 (define-public python2-flake8
7100 (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
7101 (package (inherit base)
7103 `(("python2-configparser" ,python2-configparser)
7104 ("python2-enum34" ,python2-enum34)
7105 ("python2-functools32" ,python2-functools32)
7106 ("python2-typing" ,python2-typing)
7107 ,@(package-propagated-inputs base))))))
7109 ;; python-hacking requires flake8 <2.6.0.
7110 (define-public python-flake8-2.5
7112 (inherit python-flake8)
7116 (uri (pypi-uri "flake8" version))
7119 "1snylqwbmrylbx3r1wpz8ggk98f6bcag4441ag8mm2l7wyn58sij"))))
7121 `(("python-pep8" ,python-pep8)
7122 ,@(package-propagated-inputs python-flake8)))
7123 (properties `((python2-variant . ,(delay python2-flake8-2.5))))))
7125 (define-public python2-flake8-2.5
7127 (inherit python2-flake8)
7128 (version (package-version python-flake8-2.5))
7130 (inherit (package-source python-flake8-2.5))))
7132 `(("python2-pep8" ,python2-pep8)
7133 ,@(package-propagated-inputs python2-flake8)))))
7135 (define-public python-flake8-polyfill
7137 (name "python-flake8-polyfill")
7142 (uri (pypi-uri "flake8-polyfill" version))
7145 "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"))))
7146 (build-system python-build-system)
7149 (modify-phases %standard-phases
7152 ;; Be compatible with Pytest 4:
7153 ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
7154 (substitute* "setup.cfg"
7158 (setenv "PYTHONPATH"
7159 (string-append (getcwd) "/build/lib:"
7160 (getenv "PYTHONPATH")))
7161 (invoke "py.test" "-v"))))))
7163 `(("python-flake8" ,python-flake8)
7164 ("python-mock" ,python-mock)
7165 ("python-pep8" ,python-pep8)
7166 ("python-pycodestyle" ,python-pycodestyle)
7167 ("python-pytest" ,python-pytest)))
7168 (home-page "https://gitlab.com/pycqa/flake8-polyfill")
7169 (synopsis "Polyfill package for Flake8 plugins")
7171 "This package that provides some compatibility helpers for Flake8
7172 plugins that intend to support Flake8 2.x and 3.x simultaneously.")
7173 (license license:expat)))
7175 (define-public python2-flake8-polyfill
7176 (package-with-python2 python-flake8-polyfill))
7178 (define-public python-mistune
7180 (name "python-mistune")
7185 (uri (pypi-uri "mistune" version))
7188 "0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr"))))
7189 (build-system python-build-system)
7191 `(("python-nose" ,python-nose)
7192 ("python-cython" ,python-cython)))
7193 (home-page "https://github.com/lepture/mistune")
7194 (synopsis "Markdown parser in pure Python")
7195 (description "This package provides a fast markdown parser in pure
7197 (license license:bsd-3)))
7199 (define-public python2-mistune
7200 (package-with-python2 python-mistune))
7202 (define-public python-markdown
7204 (name "python-markdown")
7209 (uri (pypi-uri "Markdown" version))
7212 "00k91gwhxnm8jdnm2v5xjz9irj6dbi7afywz2hpakqdbxs1ydzlh"))))
7213 (build-system python-build-system)
7215 `(("python-nose" ,python-nose)
7216 ("python-pyyaml" ,python-pyyaml)))
7217 (home-page "https://python-markdown.github.io/")
7218 (synopsis "Python implementation of Markdown")
7220 "This package provides a Python implementation of John Gruber's
7221 Markdown. The library features international input, various Markdown
7222 extensions, and several HTML output formats. A command line wrapper
7223 markdown_py is also provided to convert Markdown files to HTML.")
7224 (properties `((python2-variant . ,(delay python2-markdown))))
7225 (license license:bsd-3)))
7227 ;; Markdown 3.2 dropped support for Python 2.
7228 (define-public python2-markdown
7229 (let ((base (package-with-python2 (strip-python2-variant python-markdown))))
7235 (uri (pypi-uri "Markdown" version))
7238 "0yhylk4ffqqs7x086fav4pnfsl1021v7lghznzkififprmmqfl1f")))))))
7240 (define-public python-ptyprocess
7242 (name "python-ptyprocess")
7247 (uri (pypi-uri "ptyprocess" version))
7250 "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
7251 (build-system python-build-system)
7253 `(("python-nose" ,python-nose)))
7256 (modify-phases %standard-phases
7258 (lambda _ (invoke "nosetests"))))))
7259 (home-page "https://github.com/pexpect/ptyprocess")
7260 (synopsis "Run a subprocess in a pseudo terminal")
7262 "This package provides a Python library used to launch a subprocess in a
7263 pseudo terminal (pty), and interact with both the process and its pty.")
7264 (license license:isc)))
7266 (define-public python2-ptyprocess
7267 (package-with-python2 python-ptyprocess))
7269 (define-public python-cram
7271 (name "python-cram")
7273 (home-page "https://bitheap.org/cram/")
7276 (uri (list (string-append home-page "cram-"
7278 (pypi-uri "cram" version)))
7281 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
7284 (modify-phases %standard-phases
7285 (add-after 'unpack 'patch-source
7287 (substitute* (find-files "cram" ".*\\.py$")
7288 ;; Replace default shell path.
7289 (("/bin/sh") (which "sh")))
7290 (substitute* (find-files "tests" ".*\\.t$")
7292 (("/bin/bash") (which "bash"))
7293 (("/bin/sh") (which "sh")))
7294 (substitute* "cram/_test.py"
7295 ;; This hack works around a bug triggered by substituting
7296 ;; the /bin/sh paths. "tests/usage.t" compares the output of
7297 ;; "cram -h", which breaks the output at 80 characters. This
7298 ;; causes the line showing the default shell to break into two
7299 ;; lines, but the test expects a single line...
7300 (("env\\['COLUMNS'\\] = '80'")
7301 "env['COLUMNS'] = '160'"))
7303 (substitute* "Makefile"
7304 ;; Recent versions of python-coverage have caused the test
7305 ;; coverage to decrease (as of version 0.7). Allow that.
7306 (("--fail-under=100")
7311 ;; The test phase uses the built library and executable.
7312 (lambda* (#:key inputs outputs #:allow-other-keys)
7313 (add-installed-pythonpath inputs outputs)
7314 (setenv "PATH" (string-append (getenv "PATH") ":"
7315 (assoc-ref outputs "out") "/bin"))
7316 (invoke "make" "test"))))))
7317 (build-system python-build-system)
7319 `(("python-coverage" ,python-coverage)
7321 (synopsis "Simple testing framework for command line applications")
7323 "Cram is a functional testing framework for command line applications.
7324 Cram tests look like snippets of interactive shell sessions. Cram runs each
7325 command and compares the command output in the test with the command’s actual
7327 (license license:gpl2+)))
7329 (define-public python2-cram
7330 (package-with-python2 python-cram))
7332 (define-public python-straight-plugin
7334 (name "python-straight-plugin")
7339 (uri (pypi-uri "straight.plugin" version))
7342 "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
7343 (build-system python-build-system)
7344 (home-page "https://github.com/ironfroggy/straight.plugin")
7345 (synopsis "Simple namespaced plugin facility")
7346 (description "Straight Plugin provides a type of plugin you can create from
7347 almost any existing Python modules, and an easy way for outside developers to
7348 add functionality and customization to your projects with their own plugins.")
7349 (license license:expat)))
7351 (define-public python2-straight-plugin
7352 (package-with-python2 python-straight-plugin))
7354 (define-public python-fonttools
7356 (name "python-fonttools")
7360 (uri (pypi-uri "fonttools" version ".zip"))
7363 "12ripk3s7skgxr1bs9r8n13r94ym3s8iir7ivfixls9fa4dabmlh"))))
7364 (build-system python-build-system)
7367 ("python-pytest" ,python-pytest)
7368 ("python-pytest-runner" ,python-pytest-runner)))
7369 (home-page "https://github.com/fonttools/fonttools")
7370 (synopsis "Tools to manipulate font files")
7372 "FontTools/TTX is a library to manipulate font files from Python. It
7373 supports reading and writing of TrueType/OpenType fonts, reading and writing
7374 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
7375 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
7376 from an XML-based format.")
7377 (license license:expat)))
7379 (define-public python2-fonttools
7380 (package-with-python2 python-fonttools))
7382 (define-public python-ly
7389 (uri (pypi-uri name version))
7392 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
7393 (build-system python-build-system)
7395 ;; FIXME: Some tests need network access.
7397 (synopsis "Tool and library for manipulating LilyPond files")
7398 (description "This package provides a Python library to parse, manipulate
7399 or create documents in LilyPond format. A command line program ly is also
7400 provided that can be used to do various manipulations with LilyPond files.")
7401 (home-page "https://pypi.org/project/python-ly/")
7402 (license license:gpl2+)))
7404 (define-public python-appdirs
7406 (name "python-appdirs")
7411 (uri (pypi-uri "appdirs" version))
7414 "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
7415 (build-system python-build-system)
7416 (home-page "https://github.com/ActiveState/appdirs")
7418 "Determine platform-specific dirs, e.g. a \"user data dir\"")
7420 "This module provides a portable way of finding out where user data
7421 should be stored on various operating systems.")
7422 (license license:expat)))
7424 (define-public python2-appdirs
7425 (package-with-python2 python-appdirs))
7427 (define-public python-llfuse
7429 (name "python-llfuse")
7433 (uri (pypi-uri "llfuse" version ".tar.bz2"))
7436 "1n7a90jww3ly49fm7x27m3xw3la3qfrnykcakga654g6kcyjlhbf"))))
7437 (build-system python-build-system)
7442 `(("pkg-config" ,pkg-config)))
7443 (synopsis "Python bindings for FUSE")
7445 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
7446 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
7447 (license license:lgpl2.0+)
7448 (properties `((python2-variant . ,(delay python2-llfuse))))))
7450 (define-public python2-llfuse
7451 (package (inherit (package-with-python2
7452 (strip-python2-variant python-llfuse)))
7453 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2)))))
7456 (define-public python-llfuse-0.41
7457 (package (inherit python-llfuse)
7462 "https://bitbucket.org/nikratio/python-llfuse/downloads/"
7463 "llfuse-" version ".tar.bz2"))
7466 "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa"))))
7467 ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat)
7468 ;; licensed. The rest of the package is licensed under LGPL2.0 or later.
7469 (license (list license:expat license:lgpl2.0+))))
7471 (define-public python-msgpack
7473 (name "python-msgpack")
7477 (uri (pypi-uri "msgpack" version))
7480 "1h5mxh84rcw04dvxy1qbfn2hisavfqgilh9k09rgyjhd936dad4m"))))
7481 (build-system python-build-system)
7483 `(#:modules ((guix build utils)
7484 (guix build python-build-system)
7489 (modify-phases %standard-phases
7492 (let ((cwd (getcwd)))
7493 (setenv "PYTHONPATH"
7494 (string-append cwd "/build/"
7495 (find (cut string-prefix? "lib" <>)
7496 (scandir (string-append cwd "/build")))
7498 (getenv "PYTHONPATH")))
7499 (invoke "pytest" "-v" "test")))))))
7501 `(("python-pytest" ,python-pytest)))
7502 (synopsis "MessagePack (de)serializer")
7503 (description "MessagePack is a fast, compact binary serialization format,
7504 suitable for similar data to JSON. This package provides CPython bindings for
7505 reading and writing MessagePack data.")
7506 (home-page "https://pypi.org/project/msgpack/")
7507 (license license:asl2.0)))
7509 ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
7510 ;; release 0.5. Some packages like borg still call it by the old name for now.
7511 ;; <https://bugs.gnu.org/30662>
7512 (define-public python-msgpack-transitional
7514 (inherit python-msgpack)
7515 (name "python-msgpack-transitional")
7519 (uri (pypi-uri "msgpack" version))
7522 "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
7524 (substitute-keyword-arguments (package-arguments python-msgpack)
7526 `(modify-phases ,phases
7527 (add-after 'unpack 'configure-transitional
7529 ;; Keep using the old name.
7530 (substitute* "setup.py"
7531 (("TRANSITIONAL = False")
7532 "TRANSITIONAL = 1"))
7535 (define-public python2-msgpack
7536 (package-with-python2 python-msgpack))
7538 (define-public python-netaddr
7540 (name "python-netaddr")
7545 (uri (pypi-uri "netaddr" version))
7548 "1zdfadvpq4lmcqzr383gywxn4xyn355kj1n3lk9q2l03vmyfrbiq"))))
7549 (build-system python-build-system)
7550 (arguments `(#:tests? #f)) ;; No tests.
7551 (home-page "https://github.com/drkjam/netaddr/")
7552 (synopsis "Pythonic manipulation of network addresses")
7554 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
7555 and MAC network addresses.")
7556 (license license:bsd-3)))
7558 (define-public python2-netaddr
7559 (package-with-python2 python-netaddr))
7561 (define-public python2-pyroute2
7563 (name "python2-pyroute2")
7568 (uri (pypi-uri "pyroute2" version))
7571 "1gmz4r1w0yzj6fjjypnalmfyy0lnfznydyn62gi3wk50j5hhxbny"))))
7572 (build-system python-build-system)
7574 `(#:python ,python-2)) ;Python 3.x is not supported
7575 (home-page "https://github.com/svinota/pyroute2")
7576 (synopsis "Python netlink library")
7578 "Pyroute2 is a pure Python netlink library with minimal dependencies.
7579 Supported netlink families and protocols include:
7581 @item rtnl, network settings - addresses, routes, traffic controls
7582 @item nfnetlink - netfilter API: ipset, nftables, ...
7583 @item ipq - simplest userspace packet filtering, iptables QUEUE target
7584 @item devlink - manage and monitor devlink-enabled hardware
7585 @item generic - generic netlink families
7587 @item nl80211 - wireless functions API (basic support)
7588 @item taskstats - extended process statistics
7589 @item acpi_events - ACPI events monitoring
7590 @item thermal_events - thermal events monitoring
7591 @item VFS_DQUOT - disk quota events monitoring
7594 (license license:gpl2+)))
7596 (define-public python-wrapt
7598 (name "python-wrapt")
7603 (uri (pypi-uri "wrapt" version))
7606 "1q81762dgsgrd12f8qc39zk8s5wll3m5xc32jdmlf6cls4gh4njn"))))
7607 (build-system python-build-system)
7609 ;; Tests are not included in the tarball, they are only available in the
7612 (home-page "https://github.com/GrahamDumpleton/wrapt")
7613 (synopsis "Module for decorators, wrappers and monkey patching")
7615 "The aim of the wrapt module is to provide a transparent object proxy for
7616 Python, which can be used as the basis for the construction of function
7617 wrappers and decorator functions.")
7618 (license license:bsd-2)))
7620 (define-public python2-wrapt
7621 (package-with-python2 python-wrapt))
7623 (define-public python-xlrd
7625 (name "python-xlrd")
7629 (uri (pypi-uri "xlrd" version))
7632 "1ci93fda4n67qhdvfl16zasyxrpygzk53hs6m8z0rd4dxrnb6vjl"))))
7633 (build-system python-build-system)
7636 (modify-phases %standard-phases
7637 ;; Some tests depend on writing a temporary file to the user's home
7639 (add-after 'unpack 'fix-tests
7641 (delete-file "tests/test_open_workbook.py")
7643 (home-page "http://www.python-excel.org/")
7644 (synopsis "Library for extracting data from Excel files")
7645 (description "This package provides a library to extract data from
7646 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
7647 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
7648 Unicode-aware. It is not intended as an end-user tool.")
7649 (license license:bsd-3)))
7651 (define-public python2-xlrd
7652 (package-with-python2 python-xlrd))
7654 (define-public python-prettytable
7656 (name "python-prettytable")
7661 (uri (pypi-uri "prettytable" version ".tar.bz2"))
7664 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
7665 (build-system python-build-system)
7666 (home-page "https://code.google.com/archive/p/prettytable/")
7667 (synopsis "Display tabular data in an ASCII table format")
7669 "A library designed to represent tabular data in visually appealing ASCII
7670 tables. PrettyTable allows for selection of which columns are to be printed,
7671 independent alignment of columns (left or right justified or centred) and
7672 printing of sub-tables by specifying a row range.")
7673 (license license:bsd-3)))
7675 (define-public python2-prettytable
7676 (package-with-python2 python-prettytable))
7678 (define-public python-tables
7680 (name "python-tables")
7685 (uri (pypi-uri "tables" version))
7688 "0affz7k8babh8wdmsgrz5jxrd569by2w8ffimcxs9wiaf5rw1idx"))
7689 (modules '((guix build utils)))
7692 ;; Remove pre-compiled .pyc files from source.
7693 (for-each delete-file-recursively
7694 (find-files "." "__pycache__" #:directories? #t))
7695 (for-each delete-file (find-files "." "\\.pyc$"))
7697 (build-system python-build-system)
7699 `(;; FIXME: python-build-system does not pass configure-flags to "build"
7700 ;; or "check", so we must override the build and check phases.
7702 (modify-phases %standard-phases
7703 (add-after 'unpack 'use-gcc
7705 (substitute* "setup.py"
7706 (("compiler = new_compiler\\(\\)" line)
7708 "\ncompiler.set_executables(compiler='gcc',"
7709 "compiler_so='gcc',"
7711 "linker_so='gcc -shared')")))
7713 (add-after 'unpack 'disable-tuning
7715 (substitute* "setup.py"
7717 "cpu_flags = ['sse2']\n"))
7720 (lambda* (#:key inputs #:allow-other-keys)
7721 (invoke "python" "setup.py" "build"
7722 (string-append "--hdf5="
7723 (assoc-ref inputs "hdf5")))))
7725 (lambda* (#:key inputs #:allow-other-keys)
7726 (invoke "python" "setup.py" "check"
7727 (string-append "--hdf5="
7728 (assoc-ref inputs "hdf5"))))))))
7730 `(("python-numexpr" ,python-numexpr)
7731 ("python-numpy" ,python-numpy)))
7733 `(("python-cython" ,python-cython)
7734 ("pkg-config" ,pkg-config)))
7736 `(("hdf5" ,hdf5-1.10)
7739 (home-page "https://www.pytables.org/")
7740 (synopsis "Hierarchical datasets for Python")
7741 (description "PyTables is a package for managing hierarchical datasets and
7742 designed to efficiently cope with extremely large amounts of data.")
7743 (license license:bsd-3)))
7745 (define-public python2-tables
7746 (package-with-python2 python-tables))
7748 (define-public python-pytest-black
7750 (name "python-pytest-black")
7755 (uri (pypi-uri "pytest-black" version))
7758 "04lppqydxm0f3f3x0l8hj7v0j6d8syj34jc37yzqwqcyqsnaga81"))))
7759 (build-system python-build-system)
7761 `(("python-pytest" ,python-pytest)
7762 ("python-black" ,python-black)
7763 ("python-toml" ,python-toml)))
7765 `(("python-setuptools-scm" ,python-setuptools-scm)))
7766 (home-page "https://github.com/shopkeep/pytest-black")
7767 (synopsis "Pytest plugin to enable format checking with black")
7769 "This package provides a pytest plugin to enable format checking with the
7770 Python code formatter \"black\".")
7771 (license license:expat)))
7773 (define-public python-get-version
7775 (name "python-get-version")
7780 (uri (pypi-uri "get_version" version))
7783 "1g15jyx33vkxavv9hwv275cs4g9bp2i1y942raw3fxamq8kbaml1"))))
7784 (build-system python-build-system)
7786 `(("python-pygments" ,python-pygments)
7787 ("python-pytest" ,python-pytest)
7788 ("python-pytest-black" ,python-pytest-black)
7789 ("python-pytest-cov" ,python-pytest-cov)
7790 ("python-setuptools" ,python-setuptools)
7791 ("python-testpath" ,python-testpath)))
7792 (home-page "https://github.com/flying-sheep/get_version")
7793 (synopsis "Version helper in the spirit of versioneer")
7795 "This package provides a version helper that lets you automatically use
7796 the latest @code{vX.X.X} Git tag as the version in your Python package. It
7797 also supports getting the version from Python source distributions or, once
7798 your package is installed, via @code{pkg_resources} (part of
7799 @code{setuptools}).")
7800 (license license:gpl3+)))
7802 (define-public python-legacy-api-wrap
7804 (name "python-legacy-api-wrap")
7809 (uri (pypi-uri "legacy-api-wrap" version))
7812 "06qhp0g543dy98vpa41hwdalvdbsjfc3ldk474yr9sd75mhl8jh3"))))
7813 (build-system python-build-system)
7815 `(("python-get-version" ,python-get-version)
7816 ("python-pytest" ,python-pytest)
7817 ("python-pytest-black" ,python-pytest-black)
7818 ("python-pytest-cov" ,python-pytest-cov)
7819 ("python-setuptools" ,python-setuptools)))
7820 (home-page "https://github.com/flying-sheep/legacy-api-wrap")
7821 (synopsis "Legacy API wrapper")
7822 (description "This module defines a decorator to wrap legacy APIs. The
7823 primary use case is APIs defined before keyword-only parameters existed.")
7824 (license license:gpl3+)))
7826 (define-public python-pyasn1
7828 (name "python-pyasn1")
7833 (uri (pypi-uri "pyasn1" version))
7836 "1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
7837 (build-system python-build-system)
7838 (home-page "http://pyasn1.sourceforge.net/")
7839 (synopsis "ASN.1 types and codecs")
7841 "This is an implementation of ASN.1 types and codecs in Python. It is
7842 suitable for a wide range of protocols based on the ASN.1 specification.")
7843 (license license:bsd-2)))
7845 (define-public python2-pyasn1
7846 (package-with-python2 python-pyasn1))
7848 (define-public python-pyasn1-modules
7850 (name "python-pyasn1-modules")
7855 (uri (pypi-uri "pyasn1-modules" version))
7858 "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0"))))
7859 (build-system python-build-system)
7861 `(("python-pyasn1" ,python-pyasn1)))
7862 (home-page "https://sourceforge.net/projects/pyasn1/")
7863 (synopsis "ASN.1 codec implementations")
7865 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
7866 implementations of ASN.1-based codecs and protocols.")
7867 (license license:bsd-3)))
7869 (define-public python2-pyasn1-modules
7870 (package-with-python2 python-pyasn1-modules))
7872 (define-public python-ipaddress
7874 (name "python-ipaddress")
7878 (uri (pypi-uri "ipaddress" version))
7881 "0b570bm6xqpjwqis15pvdy6lyvvzfndjvkynilcddjj5x98wfimi"))))
7882 (build-system python-build-system)
7883 (home-page "https://github.com/phihag/ipaddress")
7884 (synopsis "IP address manipulation library")
7886 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
7887 in Python. This library is used to create, poke at, and manipulate IPv4 and
7888 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
7889 module to older versions of Python.")
7890 (license license:psfl)))
7892 (define-public python2-ipaddress
7893 (package-with-python2 python-ipaddress))
7895 (define-public python2-ipaddr
7897 (name "python2-ipaddr")
7902 (uri (pypi-uri "ipaddr" version))
7904 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
7905 (build-system python-build-system)
7907 `(#:python ,python-2 ;version 2 only
7909 (modify-phases %standard-phases
7911 (lambda _ (invoke "python" "ipaddr_test.py"))))))
7912 (home-page "https://github.com/google/ipaddr-py")
7913 (synopsis "IP address manipulation library")
7915 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
7916 IPv6 addresses and networks.
7918 For new implementations you may prefer to use the standard module
7919 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
7920 versions of Python.")
7921 (license license:asl2.0)))
7923 (define-public python-idna
7925 (name "python-idna")
7930 (uri (pypi-uri "idna" version))
7933 "01rlkigdxg17sf9yar1jl8n18ls59367wqh59hnawlyg53vb6my3"))))
7934 (build-system python-build-system)
7935 (home-page "https://github.com/kjd/idna")
7936 (synopsis "Internationalized domain names in applications")
7938 "This is a library to support the Internationalised Domain Names in
7939 Applications (IDNA) protocol as specified in RFC 5891. This version of the
7940 protocol is often referred to as “IDNA2008” and can produce different results
7941 from the earlier standard from 2003. The library is also intended to act as a
7942 suitable drop-in replacement for the “encodings.idna” module that comes with
7943 the Python standard library but currently only supports the older 2003
7945 (license license:bsd-4)))
7947 (define-public python-idna-2.7
7948 (package (inherit python-idna)
7952 (uri (pypi-uri "idna" version))
7955 "05jam7d31767dr12x0rbvvs8lxnpb1mhdb2zdlfxgh83z6k3hjk8"))))))
7958 (define-public python2-idna
7959 (package-with-python2 python-idna))
7961 (define-public python-idna-ssl
7963 (name "python-idna-ssl")
7968 (uri (pypi-uri "idna-ssl" version))
7971 "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
7972 (build-system python-build-system)
7974 `(#:tests? #f)) ;circular dependency with python-aiohttp
7975 (home-page "https://github.com/aio-libs/idna-ssl")
7976 (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
7977 (description "Patch @code{ssl.match_hostname} for Unicode(idna)
7979 (license license:expat)))
7981 (define-public python-pretend
7983 (name "python-pretend")
7988 (uri (pypi-uri "pretend" version))
7991 "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
7992 (build-system python-build-system)
7993 (home-page "https://github.com/alex/pretend")
7994 (synopsis "Library for stubbing in Python")
7996 "Pretend is a library to make stubbing with Python easier. Stubbing is a
7997 technique for writing tests. You may hear the term mixed up with mocks,
7998 fakes, or doubles. Basically, a stub is an object that returns pre-canned
7999 responses, rather than doing any computation.")
8000 (license license:bsd-3)))
8002 (define-public python2-pretend
8003 (package-with-python2 python-pretend))
8005 (define-public python-pip
8012 (uri (pypi-uri "pip" version))
8015 "0zwnlsjn6mb742cr995zfbk9v56ygxp8w3k49601r9by9kmcic3x"))))
8016 (build-system python-build-system)
8018 '(#:tests? #f)) ; there are no tests in the pypi archive.
8019 (home-page "https://pip.pypa.io/")
8020 (synopsis "Package manager for Python software")
8022 "Pip is a package manager for Python software, that finds packages on the
8023 Python Package Index (PyPI).")
8024 (license license:expat)))
8026 (define-public python2-pip
8027 (package-with-python2 python-pip))
8029 (define-public python-tlsh
8031 (name "python-tlsh")
8033 (home-page "https://github.com/trendmicro/tlsh")
8038 (url "https://github.com/trendmicro/tlsh.git")
8039 (commit (string-append "v" version))))
8040 (file-name (git-file-name name version))
8042 (base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"))))
8043 (build-system cmake-build-system)
8045 '(#:out-of-source? #f
8046 #:phases (modify-phases %standard-phases
8049 (lambda* (#:key outputs #:allow-other-keys)
8050 ;; Build and install the Python bindings. The underlying
8051 ;; C++ library is apparently not meant to be installed.
8052 (let ((out (assoc-ref outputs "out")))
8053 (with-directory-excursion "py_ext"
8054 (and (system* "python" "setup.py" "build")
8055 (system* "python" "setup.py" "install"
8056 (string-append "--prefix=" out))))))))))
8057 (inputs `(("python" ,python-wrapper))) ;for the bindings
8058 (synopsis "Fuzzy matching library for Python")
8060 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
8061 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
8062 value which can be used for similarity comparisons. Similar objects have
8063 similar hash values, which allows for the detection of similar objects by
8064 comparing their hash values. The byte stream should have a sufficient amount
8065 of complexity; for example, a byte stream of identical bytes will not generate
8067 (license license:asl2.0)))
8069 (define-public python2-tlsh
8071 (inherit python-tlsh)
8072 (name "python2-tlsh")
8073 (inputs `(("python" ,python-2)))))
8075 (define-public python-termcolor
8077 (name "python-termcolor")
8082 (uri (pypi-uri "termcolor" version))
8085 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
8086 (build-system python-build-system)
8088 ;; There are no tests.
8090 (home-page "https://pypi.org/project/termcolor/")
8091 (synopsis "ANSII Color formatting for terminal output")
8093 "This package provides ANSII Color formatting for output in terminals.")
8094 (license license:expat)))
8096 (define-public python2-termcolor
8097 (package-with-python2 python-termcolor))
8099 (define-public python-libarchive-c
8101 (name "python-libarchive-c")
8105 (uri (pypi-uri "libarchive-c" version))
8108 "0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
8109 (build-system python-build-system)
8111 '(#:phases (modify-phases %standard-phases
8113 'build 'reference-libarchive
8114 (lambda* (#:key inputs #:allow-other-keys)
8115 ;; Retain the absolute file name of libarchive.so.
8116 (let ((libarchive (assoc-ref inputs "libarchive")))
8117 (substitute* "libarchive/ffi.py"
8118 (("find_library\\('archive'\\)")
8119 (string-append "'" libarchive
8120 "/lib/libarchive.so'"))))))
8122 (lambda _ (invoke "pytest" "-vv"))))))
8124 `(("python-mock" ,python-mock)
8125 ("python-pytest" ,python-pytest)))
8127 `(("libarchive" ,libarchive)))
8128 (home-page "https://github.com/Changaco/python-libarchive-c")
8129 (synopsis "Python interface to libarchive")
8131 "This package provides Python bindings to libarchive, a C library to
8132 access possibly compressed archives in many different formats. It uses
8133 Python's @code{ctypes} foreign function interface (FFI).")
8134 (license license:lgpl2.0+)))
8136 (define-public python2-libarchive-c
8137 (package-with-python2 python-libarchive-c))
8139 (define-public python-file
8142 (name "python-file")
8143 (build-system python-build-system)
8145 '(#:tests? #f ;no tests
8146 #:configure-flags '("--single-version-externally-managed" "--root=/")
8147 #:phases (modify-phases %standard-phases
8148 (add-before 'build 'change-directory
8152 (add-before 'build 'set-library-file-name
8153 (lambda* (#:key inputs #:allow-other-keys)
8154 (let ((file (assoc-ref inputs "file")))
8155 (substitute* "magic.py"
8156 (("find_library\\('magic'\\)")
8157 (string-append "'" file "/lib/libmagic.so'")))
8159 (inputs `(("file" ,file)))
8160 (native-inputs (if (%current-target-system)
8161 `(("self" ,this-package))
8163 (synopsis "Python bindings to the libmagic file type guesser. Note that
8164 this module and the python-magic module both provide a \"magic.py\" file;
8165 these two modules, which are different and were developed separately, both
8166 serve the same purpose: provide Python bindings for libmagic.")))
8168 (define-public python2-file
8169 (package-with-python2 python-file))
8171 (define-public python-debian
8173 (name "python-debian")
8174 (home-page "https://salsa.debian.org/python-debian-team/python-debian")
8178 ;; Use git-fetch, as pypi doesn't include test suite.
8183 (file-name (git-file-name name version))
8186 "0qy6x28bj6yfikhjww932v5xq4mf5bm1iczl7acy4c7zm6mwhqfa"))))
8187 (build-system python-build-system)
8189 `(#:phases (modify-phases %standard-phases
8190 (add-after 'unpack 'remove-debian-specific-tests
8191 ;; python-apt, apt and dpkg are not yet available in guix,
8192 ;; and these tests heavily depend on them.
8194 (delete-file "lib/debian/tests/test_deb822.py")
8195 (delete-file "lib/debian/tests/test_debfile.py")
8198 `(("python-six" ,python-six)
8199 ("python-chardet" ,python-chardet)))
8200 (synopsis "Debian package related modules")
8202 ;; XXX: Use @enumerate instead of @itemize to work around
8203 ;; <http://bugs.gnu.org/21772>.
8204 "This package provides Python modules that abstract many formats of
8205 Debian-related files, such as:
8208 @item Debtags information;
8209 @item @file{debian/changelog} files;
8210 @item packages files, pdiffs;
8211 @item control files of single or multiple RFC822-style paragraphs---e.g.
8212 @file{debian/control}, @file{.changes}, @file{.dsc};
8213 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
8214 contained files and meta-information.
8217 ;; Modules are either GPLv2+ or GPLv3+.
8218 (license license:gpl3+)))
8220 (define-public python-nbformat
8222 (name "python-nbformat")
8227 (uri (pypi-uri "nbformat" version))
8230 "00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp"))))
8231 (build-system python-build-system)
8232 (arguments `(#:tests? #f)) ; no test target
8234 `(("python-ipython-genutils" ,python-ipython-genutils)
8235 ("python-jsonschema" ,python-jsonschema)
8236 ("python-jupyter-core" ,python-jupyter-core)
8237 ("python-traitlets" ,python-traitlets)))
8238 (home-page "http://jupyter.org")
8239 (synopsis "Jupyter Notebook format")
8240 (description "This package provides the reference implementation of the
8241 Jupyter Notebook format and Python APIs for working with notebooks.")
8242 (license license:bsd-3)))
8244 (define-public python2-nbformat
8245 (package-with-python2 python-nbformat))
8247 (define-public python-bleach
8249 (name "python-bleach")
8254 (uri (pypi-uri "bleach" version))
8257 "0al437aw4p2xp83az5hhlrp913nsf0cg6kg4qj3fjhv4wakxipzq"))))
8258 (build-system python-build-system)
8260 `(("python-webencodings" ,python-webencodings)
8261 ("python-six" ,python-six)))
8263 `(("python-datrie" ,python-datrie)
8264 ("python-genshi" ,python-genshi)
8265 ("python-lxml" ,python-lxml)
8266 ("python-pytest" ,python-pytest)))
8267 (home-page "https://github.com/mozilla/bleach")
8268 (synopsis "Whitelist-based HTML-sanitizing tool")
8269 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
8270 (license license:asl2.0)))
8272 (define-public python2-bleach
8273 (package-with-python2 python-bleach))
8275 (define-public python-entrypoints
8277 (name "python-entrypoints")
8282 (uri (pypi-uri "entrypoints" version))
8285 "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
8286 (build-system python-build-system)
8287 ;; The package does not come with a setup.py file, so we have to generate
8292 (modify-phases %standard-phases
8293 (add-after 'unpack 'create-setup.py
8295 (call-with-output-file "setup.py"
8298 from setuptools import setup
8299 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
8301 (home-page "https://github.com/takluyver/entrypoints")
8302 (synopsis "Discover and load entry points from installed Python packages")
8303 (description "Entry points are a way for Python packages to advertise
8304 objects with some common interface. The most common examples are
8305 @code{console_scripts} entry points, which define shell commands by
8306 identifying a Python function to run. The @code{entrypoints} module contains
8307 functions to find and load entry points.")
8308 (license license:expat)))
8310 (define-public python2-entrypoints
8311 (package-with-python2 python-entrypoints))
8313 (define-public python-nbconvert
8315 (name "python-nbconvert")
8320 (uri (pypi-uri "nbconvert" version))
8323 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
8324 (build-system python-build-system)
8326 `(;; The "bdist_egg" target is disabled by default, causing the installation
8328 #:configure-flags (list "bdist_egg")
8329 ;; FIXME: 5 failures, 40 errors.
8332 ;; (modify-phases %standard-phases
8335 ;; (zero? (system* "py.test" "-v")))))
8337 `(("python-pytest" ,python-pytest)))
8339 `(("python-bleach" ,python-bleach)
8340 ("python-entrypoints" ,python-entrypoints)
8341 ("python-jinja2" ,python-jinja2)
8342 ("python-jupyter-core" ,python-jupyter-core)
8343 ("python-mistune" ,python-mistune)
8344 ("python-nbformat" ,python-nbformat)
8345 ("python-pygments" ,python-pygments)
8346 ("python-traitlets" ,python-traitlets)))
8347 (home-page "http://jupyter.org")
8348 (synopsis "Converting Jupyter Notebooks")
8349 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
8350 notebooks to various other formats via Jinja templates. It allows you to
8351 convert an @code{.ipynb} notebook file into various static formats including:
8359 @item ReStructured Text (rst)
8360 @item executable script
8362 (license license:bsd-3)))
8364 (define-public python2-nbconvert
8365 (package-with-python2 python-nbconvert))
8367 (define-public python-notebook
8369 (name "python-notebook")
8373 (uri (pypi-uri "notebook" version))
8376 "0jm7324mbxljmn9hgapj66q7swyz5ai92blmr0jpcy0h80x6f26r"))))
8377 (build-system python-build-system)
8380 (modify-phases %standard-phases
8383 ;; These tests require a browser
8384 (delete-file-recursively "notebook/tests/selenium")
8385 ;; Some tests need HOME
8386 (setenv "HOME" "/tmp")
8387 ;; This file contains "warningfilters", which are not supported
8388 ;; by this version of nose.
8389 (delete-file "setup.cfg")
8390 (with-directory-excursion "/tmp"
8391 (invoke "nosetests" "-v"))
8394 `(("python-jupyter-core" ,python-jupyter-core)
8395 ("python-nbformat" ,python-nbformat)
8396 ("python-nbconvert" ,python-nbconvert)
8397 ("python-prometheus-client" ,python-prometheus-client)
8398 ("python-send2trash" ,python-send2trash)
8399 ("python-terminado" ,python-terminado)))
8401 `(("python-nose" ,python-nose)
8402 ("python-sphinx" ,python-sphinx)
8403 ("python-requests" ,python-requests)))
8404 (home-page "http://jupyter.org/")
8405 (synopsis "Web-based notebook environment for interactive computing")
8407 "The Jupyter HTML notebook is a web-based notebook environment for
8408 interactive computing.")
8409 (properties `((python2-variant . ,(delay python2-notebook))))
8410 (license license:bsd-3)))
8412 (define-public python2-notebook
8413 (let ((base (package-with-python2
8414 (strip-python2-variant python-notebook))))
8415 (package (inherit base)
8417 `(("python2-mock" ,python2-mock)
8418 ,@(package-native-inputs base)))
8420 (substitute-keyword-arguments (package-arguments base)
8422 `(modify-phases ,phases
8423 (add-before 'check 'disable-test-case
8424 ;; The test requires network access to localhost. Curiously it
8425 ;; fails with Python 2 only. Simply make the test-case return
8429 "notebook/services/nbconvert/tests/test_nbconvert_api.py"
8430 (("formats = self.nbconvert_api") "return #")))))))))))
8432 (define-public python-widgetsnbextension
8434 (name "python-widgetsnbextension")
8439 (uri (pypi-uri "widgetsnbextension" version))
8442 "0rc2nivdy7k4m3vljx7wdh2jh11djapcgwhvzlbs0isl8gl8nqgs"))))
8443 (build-system python-build-system)
8445 `(("python-ipykernel" ,python-ipykernel)
8446 ("python-notebook" ,python-notebook)))
8448 `(("python-certifi" ,python-certifi)
8449 ("python-nose" ,python-nose)))
8450 (home-page "https://ipython.org")
8451 (synopsis "IPython HTML widgets for Jupyter")
8452 (description "This package provides interactive HTML widgets for Jupyter
8454 (license license:bsd-3)))
8456 (define-public python2-widgetsnbextension
8457 (package-with-python2 python-widgetsnbextension))
8459 (define-public python-ipywidgets
8461 (name "python-ipywidgets")
8466 (uri (pypi-uri "ipywidgets" version))
8469 "1lk0qrr5l9a0z7qkkn30hv5832whxwxymf1l576fmmad0n7hkxms"))))
8470 (build-system python-build-system)
8472 `(("python-ipython" ,python-ipython)
8473 ("python-traitlets" ,python-traitlets)
8474 ("python-widgetsnbextension" ,python-widgetsnbextension)))
8476 `(("python-nose" ,python-nose)
8477 ("python-pytest" ,python-pytest)))
8478 (home-page "https://ipython.org")
8479 (synopsis "IPython HTML widgets for Jupyter")
8480 (description "Ipywidgets are interactive HTML widgets for Jupyter
8481 notebooks and the IPython kernel. Notebooks come alive when interactive
8482 widgets are used. Users gain control of their data and can visualize changes
8484 (license license:bsd-3)))
8486 (define-public python2-ipywidgets
8487 (package-with-python2 python-ipywidgets))
8489 (define-public python-jupyter-console
8491 (name "python-jupyter-console")
8496 (uri (pypi-uri "jupyter_console" version))
8499 "1xdjw11cppf1fxvwkw2bk13ckkwas3bdah8baingn9296mvfi31h"))))
8500 (build-system python-build-system)
8502 `(("python-ipykernel" ,python-ipykernel)
8503 ("python-jupyter-client" ,python-jupyter-client)
8504 ("python-prompt-toolkit" ,python-prompt-toolkit)
8505 ("python-pygments" ,python-pygments)))
8507 `(("python-nose" ,python-nose)))
8508 (home-page "https://jupyter.org")
8509 (synopsis "Jupyter terminal console")
8510 (description "This package provides a terminal-based console frontend for
8511 Jupyter kernels. It also allows for console-based interaction with non-Python
8512 Jupyter kernels such as IJulia and IRKernel.")
8513 (properties `((python2-variant . ,(delay python2-jupyter-console))))
8514 (license license:bsd-3)))
8516 (define-public python2-jupyter-console
8518 (name "python2-jupyter-console")
8523 (uri (pypi-uri "jupyter_console" version))
8526 "1kam1qzgwr7srhm5r6aj90di5sws4bq0jmiw15452ddamb9yspal"))))
8527 (build-system python-build-system)
8529 `(#:python ,python-2
8530 #:tests? #f)) ; Tests only run in a TTY.
8532 `(("python2-ipykernel" ,python2-ipykernel)
8533 ("python2-jupyter-client" ,python2-jupyter-client)
8534 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
8535 ("python2-pygments" ,python2-pygments)))
8537 `(("python2-nose" ,python2-nose)))
8538 (home-page "https://jupyter.org")
8539 (synopsis "Jupyter terminal console")
8540 (description "This package provides a terminal-based console frontend for
8541 Jupyter kernels. It also allows for console-based interaction with non-Python
8542 Jupyter kernels such as IJulia and IRKernel.")
8543 (license license:bsd-3)))
8545 ;; The python-ipython and python-jupyter-console require each other. To get
8546 ;; the functionality in both packages working, strip down the
8547 ;; python-jupyter-console package when using it as an input to python-ipython.
8548 (define python-jupyter-console-minimal
8550 (inherit python-jupyter-console)
8551 (name "python-jupyter-console-minimal")
8553 (substitute-keyword-arguments
8554 (package-arguments python-jupyter-console)
8556 `(modify-phases ,phases
8557 (add-after 'install 'delete-bin
8558 (lambda* (#:key outputs #:allow-other-keys)
8559 ;; Delete the bin files, to avoid conflicts in profiles
8560 ;; where python-ipython and python-jupyter-console are
8562 (delete-file-recursively
8564 (assoc-ref outputs "out") "/bin"))))))))
8565 ;; Remove the python-ipython propagated input, to avoid the cycle
8569 (package-propagated-inputs python-jupyter-console)))))
8571 (define-public python-qtconsole
8573 (name "python-qtconsole")
8578 (uri (pypi-uri "qtconsole" version))
8581 "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw"))))
8582 (build-system python-build-system)
8584 ;; XXX: Tests are disabled, because this package needs python-ipython 7,
8585 ;; but we only have the LTS version 5.x. This means that there might be
8586 ;; runtime errors, but since this is a dependency of the Jupyter package,
8587 ;; and Jupyter can be used without the qtconsole we can overlook this for
8591 (modify-phases %standard-phases
8592 (add-before 'check 'pre-check
8594 (setenv "QT_QPA_PLATFORM" "offscreen")
8597 `(("python-ipykernel" ,python-ipykernel)
8598 ("python-ipython" ,python-ipython)))
8600 `(("python-pytest" ,python-pytest)))
8601 (home-page "http://jupyter.org")
8602 (synopsis "Jupyter Qt console")
8603 (description "This package provides a Qt-based console for Jupyter with
8604 support for rich media output.")
8605 (license license:bsd-3)))
8607 (define-public python-jsbeautifier
8609 (name "python-jsbeautifier")
8611 (home-page "https://github.com/beautify-web/js-beautify")
8616 (commit (string-append "v" version))))
8617 (file-name (git-file-name name version))
8620 "0wawb070ki1axb3jc9xvsrgpji52vcfif3zmjzc3z4g98m5xw4kg"))))
8621 (build-system python-build-system)
8623 `(#:phases (modify-phases %standard-phases
8624 (add-after 'unpack 'chdir
8626 ;; The upstream Git repository contains all the code,
8627 ;; but this package only builds the python code.
8630 (add-after 'unpack 'patch-python-six-requirements
8632 (substitute* "python/setup.py"
8637 `(("python-editorconfig" ,python-editorconfig)
8638 ("python-six" ,python-six)))
8640 `(("python-pytest" ,python-pytest)))
8641 (synopsis "JavaScript unobfuscator and beautifier")
8642 (description "Beautify, unpack or deobfuscate JavaScript, leveraging
8643 popular online obfuscators.")
8644 (license license:expat)))
8646 (define-public jupyter
8653 (uri (pypi-uri "jupyter" version))
8656 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
8657 (build-system python-build-system)
8658 (arguments '(#:tests? #f)) ; there are none.
8660 `(("python-ipykernel" ,python-ipykernel)
8661 ("python-ipywidgets" ,python-ipywidgets)
8662 ("python-jupyter-console" ,python-jupyter-console)
8663 ("python-nbconvert" ,python-nbconvert)
8664 ("python-notebook" ,python-notebook)
8665 ("python-qtconsole" ,python-qtconsole)))
8666 (native-search-paths
8667 (list (search-path-specification
8668 (variable "JUPYTER_PATH")
8669 (files '("share/jupyter")))))
8670 (home-page "https://jupyter.org")
8671 (synopsis "Web application for interactive documents")
8673 "The Jupyter Notebook is a web application that allows you to create and
8674 share documents that contain live code, equations, visualizations and
8675 explanatory text. Uses include: data cleaning and transformation, numerical
8676 simulation, statistical modeling, machine learning and much more.")
8677 (license license:bsd-3)))
8679 (define-public python-chardet
8681 (name "python-chardet")
8686 (uri (pypi-uri "chardet" version))
8689 "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"))))
8691 `(("python-hypothesis" ,python-hypothesis)
8692 ("python-pytest" ,python-pytest)
8693 ("python-pytest-runner" ,python-pytest-runner)))
8694 (build-system python-build-system)
8695 ;; XXX: Incompatible with Pytest 4: <https://github.com/chardet/chardet/issues/173>.
8696 (arguments `(#:tests? #f))
8697 (home-page "https://github.com/chardet/chardet")
8698 (synopsis "Universal encoding detector for Python 2 and 3")
8700 "This package provides @code{chardet}, a Python module that can
8701 automatically detect a wide range of file encodings.")
8702 (license license:lgpl2.1+)))
8704 (define-public python2-chardet
8705 (package-with-python2 python-chardet))
8707 (define-public python-docopt
8709 (name "python-docopt")
8714 ;; The release on PyPI does not include tests.
8716 (url "https://github.com/docopt/docopt")
8718 (file-name (git-file-name name version))
8721 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))))
8722 (build-system python-build-system)
8724 `(("python-pytest" ,python-pytest)))
8727 (modify-phases %standard-phases
8729 (lambda _ (invoke "py.test"))))))
8730 (home-page "http://docopt.org")
8731 (synopsis "Command-line interface description language for Python")
8732 (description "This library allows the user to define a command-line
8733 interface from a program's help message rather than specifying it
8734 programmatically with command-line parsers like @code{getopt} and
8736 (license license:expat)))
8738 (define-public python2-docopt
8739 (package-with-python2 python-docopt))
8741 (define-public python-pythondialog
8743 (name "python-pythondialog")
8748 (uri (pypi-uri "pythondialog" version))
8751 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
8752 (build-system python-build-system)
8755 (modify-phases %standard-phases
8756 (add-after 'unpack 'patch-path
8757 (lambda* (#:key inputs #:allow-other-keys)
8758 (let* ((dialog (assoc-ref inputs "dialog")))
8759 ;; Since this library really wants to grovel the search path, we
8760 ;; must hardcode dialog's store path into it.
8761 (substitute* "dialog.py"
8762 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
8763 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
8765 #:tests? #f)) ; no test suite
8767 `(("dialog" ,dialog)))
8768 (home-page "http://pythondialog.sourceforge.net/")
8769 (synopsis "Python interface to the UNIX dialog utility")
8770 (description "A Python wrapper for the dialog utility. Its purpose is to
8771 provide an easy to use, pythonic and comprehensive Python interface to dialog.
8772 This allows one to make simple text-mode user interfaces on Unix-like systems")
8773 (license license:lgpl2.1)
8774 (properties `((python2-variant . ,(delay python2-pythondialog))))))
8776 (define-public python2-pythondialog
8777 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
8780 (version (package-version python-pythondialog))
8783 (uri (pypi-uri "python2-pythondialog" version))
8786 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
8788 (define-public python-configobj
8790 (name "python-configobj")
8794 (uri (pypi-uri "configobj" version))
8797 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
8798 ;; Patch setup.py so it looks for python-setuptools, which is
8799 ;; required to parse the keyword 'install_requires' in setup.py.
8800 (patches (search-patches "python-configobj-setuptools.patch"))))
8801 (build-system python-build-system)
8803 `(("python-six" ,python-six)))
8804 (synopsis "Config file reading, writing and validation")
8805 (description "ConfigObj is a simple but powerful config file reader and
8806 writer: an ini file round tripper. Its main feature is that it is very easy to
8807 use, with a straightforward programmer’s interface and a simple syntax for
8809 (home-page "https://github.com/DiffSK/configobj")
8810 (license license:bsd-3)))
8812 (define-public python2-configobj
8813 (package-with-python2 python-configobj))
8815 (define-public python-configargparse
8817 (name "python-configargparse")
8821 (uri (pypi-uri "ConfigArgParse" version))
8824 "149fy4zya0rsnlkvxbbq43cyr8lscb5k4pj1m6n7f1grwcmzwbif"))))
8825 (build-system python-build-system)
8827 `(("python-pyyaml" ,python-pyyaml)))
8830 (modify-phases %standard-phases
8833 ;; Bypass setuptools-shim because one test relies on "setup.py"
8834 ;; being the first argument passed to the python call.
8836 ;; NOTE: Many tests do not run because they rely on Python's
8837 ;; built-in test.test_argparse, but we remove the unit tests from
8838 ;; our Python installation.
8839 (invoke "python" "setup.py" "test"))))))
8840 (synopsis "Replacement for argparse")
8841 (description "A drop-in replacement for argparse that allows options to also
8842 be set via config files and/or environment variables.")
8843 (home-page "https://github.com/bw2/ConfigArgParse")
8844 (license license:expat)))
8846 (define-public python2-configargparse
8847 (package-with-python2 python-configargparse))
8849 (define-public python-argparse-manpage
8851 (name "python-argparse-manpage")
8856 (uri (pypi-uri "argparse-manpage" version))
8859 "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p"))))
8860 (build-system python-build-system)
8861 (home-page "https://github.com/praiskup/argparse-manpage")
8862 (synopsis "Build manual page from Python's ArgumentParser object")
8864 "This package provides tools to build manual pages from Python's
8865 @code{ArgumentParser} object.")
8866 (license license:asl2.0)))
8868 (define-public python-contextlib2
8870 (name "python-contextlib2")
8871 (version "0.6.0.post1")
8875 (uri (pypi-uri "contextlib2" version))
8878 "0bhnr2ac7wy5l85ji909gyljyk85n92w8pdvslmrvc8qih4r1x01"))))
8879 (build-system python-build-system)
8880 (home-page "https://contextlib2.readthedocs.org/")
8881 (synopsis "Tools for decorators and context managers")
8882 (description "This module is primarily a backport of the Python
8883 3.2 contextlib to earlier Python versions. Like contextlib, it
8884 provides utilities for common tasks involving decorators and context
8885 managers. It also contains additional features that are not part of
8886 the standard library.")
8887 (properties `((python2-variant . ,(delay python2-contextlib2))))
8888 (license license:psfl)))
8890 (define-public python2-contextlib2
8891 (let ((base (package-with-python2
8892 (strip-python2-variant python-contextlib2))))
8896 (substitute-keyword-arguments (package-arguments base)
8898 `(modify-phases ,phases
8900 (lambda _ (invoke "python" "test_contextlib2.py" "-v")))))))
8902 `(("python2-unittest2" ,python2-unittest2))))))
8904 (define-public python-texttable
8906 (name "python-texttable")
8911 (uri (pypi-uri "texttable" version))
8914 "1x5l77akfc20x52jma9573qp8l8r07q103pm4l0pbizvh4vp1wzg"))))
8915 (build-system python-build-system)
8918 (modify-phases %standard-phases
8920 (lambda _ (invoke "pytest" "tests.py"))))))
8922 `(("python-pytest" ,python-pytest)))
8923 (home-page "https://github.com/foutaise/texttable/")
8924 (synopsis "Python module for creating simple ASCII tables")
8925 (description "Texttable is a Python module for creating simple ASCII
8927 (license license:expat)))
8929 (define-public python2-texttable
8930 (package-with-python2 python-texttable))
8932 (define-public python-atomicwrites
8934 (name "python-atomicwrites")
8938 (uri (pypi-uri "atomicwrites" version))
8941 "19ngcscdf3jsqmpcxn6zl5b6anmsajb6izp1smcd1n02midl9abm"))))
8942 (build-system python-build-system)
8943 (synopsis "Atomic file writes in Python")
8944 (description "Library for atomic file writes using platform dependent tools
8945 for atomic file system operations.")
8946 (home-page "https://github.com/untitaker/python-atomicwrites")
8947 (license license:expat)))
8949 (define-public python2-atomicwrites
8950 (package-with-python2 python-atomicwrites))
8952 (define-public python-click-threading
8954 (name "python-click-threading")
8958 (uri (pypi-uri "click-threading" version))
8961 "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j"))))
8962 (build-system python-build-system)
8964 `(("python-click" ,python-click)))
8965 (synopsis "Utilities for multithreading in Click")
8966 (description "This package provides utilities for multithreading in Click
8968 (home-page "https://github.com/click-contrib/click-threading")
8969 (license license:expat)))
8971 (define-public python-click-log
8973 (name "python-click-log")
8977 (uri (pypi-uri "click-log" version))
8980 "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
8981 (build-system python-build-system)
8983 `(("python-click" ,python-click)))
8984 (synopsis "Logging for click applications")
8985 (description "This package provides a Python library for logging Click
8987 (home-page "https://github.com/click-contrib/click-log")
8988 (license license:expat)))
8990 (define-public python-apipkg
8992 (name "python-apipkg")
8996 (uri (pypi-uri "apipkg" version))
8999 "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f"))))
9000 (build-system python-build-system)
9002 `(("python-pytest" ,python-pytest)))
9003 (synopsis "Namespace control and lazy-import mechanism")
9004 (description "With apipkg you can control the exported namespace of a Python
9005 package and greatly reduce the number of imports for your users. It is a small
9006 pure Python module that works on virtually all Python versions.")
9007 (home-page "https://github.com/pytest-dev/apipkg")
9008 (license license:expat)))
9010 (define-public python2-apipkg
9011 (package-with-python2 python-apipkg))
9013 (define-public python-execnet
9015 (name "python-execnet")
9019 (uri (pypi-uri "execnet" version))
9022 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
9023 (build-system python-build-system)
9025 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
9026 ;; The two test failures are caused by the lack of an `ssh` executable.
9027 ;; The test suite can be run with pytest after the 'install' phase.
9030 `(("python-pytest" ,python-pytest)
9031 ("python-setuptools-scm" ,python-setuptools-scm)))
9033 `(("python-apipkg" ,python-apipkg)))
9034 (synopsis "Rapid multi-Python deployment")
9035 (description "Execnet provides a share-nothing model with
9036 channel-send/receive communication for distributing execution across many
9037 Python interpreters across version, platform and network barriers. It has a
9038 minimal and fast API targeting the following uses:
9040 @item distribute tasks to (many) local or remote CPUs
9041 @item write and deploy hybrid multi-process applications
9042 @item write scripts to administer multiple environments
9044 (home-page "https://codespeak.net/execnet/")
9045 (license license:expat)))
9047 (define-public python2-execnet
9048 (package-with-python2 python-execnet))
9050 (define-public python-icalendar
9052 (name "python-icalendar")
9056 (uri (pypi-uri "icalendar" version))
9059 "16gjvqv0n05jrb9g228pdjgzd3amz2pdhvcgsn1jypszjg5m2w9l"))))
9060 (build-system python-build-system)
9062 `(("python-dateutil" ,python-dateutil)
9063 ("python-pytz" ,python-pytz)))
9064 (synopsis "Python library for parsing iCalendar files")
9065 (description "The icalendar package is a parser/generator of iCalendar
9066 files for use with Python.")
9067 (home-page "https://github.com/collective/icalendar")
9068 (license license:bsd-2)))
9070 (define-public python-args
9072 (name "python-args")
9076 (uri (pypi-uri "args" version))
9079 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
9080 (build-system python-build-system)
9081 (home-page "https://github.com/kennethreitz/args")
9082 (synopsis "Command-line argument parser")
9084 "This library provides a Python module to parse command-line arguments.")
9085 (license license:bsd-3)))
9087 (define-public python2-args
9088 (package-with-python2 python-args))
9090 (define-public python-clint
9092 (name "python-clint")
9096 (uri (pypi-uri "clint" version))
9099 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
9100 (build-system python-build-system)
9103 (modify-phases %standard-phases
9105 (lambda _ (invoke "py.test" "-v"))))))
9107 `(("python-pytest" ,python-pytest)))
9109 `(("python-args" ,python-args)))
9110 (home-page "https://github.com/kennethreitz/clint")
9111 (synopsis "Command-line interface tools")
9113 "Clint is a Python module filled with a set of tools for developing
9114 command-line applications, including tools for colored and indented
9115 output, progress bar display, and pipes.")
9116 (license license:isc)))
9118 (define-public python2-clint
9119 (package-with-python2 python-clint))
9121 (define-public python-rply
9123 (name "python-rply")
9127 (uri (pypi-uri "rply" version))
9130 "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"))))
9131 (build-system python-build-system)
9133 `(("python-appdirs" ,python-appdirs)))
9134 (home-page "https://github.com/alex/rply")
9135 (synopsis "Parser generator for Python")
9137 "This package provides a pure Python based parser generator, that also
9138 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
9139 with a new public API, and RPython support.")
9140 (license license:bsd-3)))
9142 (define-public python2-rply
9143 (package-with-python2 python-rply))
9145 (define-public python-hy
9151 (uri (pypi-uri "hy" version))
9154 "1gdbqsirsdxj320wnp7my5awzs1kfs6m4fqmkzbd1zd47qzj0zfi"))))
9155 (build-system python-build-system)
9158 (modify-phases %standard-phases
9159 (add-before 'install 'set-HOME
9161 (setenv "HOME" "/tmp")))
9164 ;; Tests require write access to HOME.
9165 (setenv "HOME" "/tmp")
9166 (invoke "nosetests"))))))
9168 `(("python-coverage" ,python-coverage)
9169 ("python-nose" ,python-nose)))
9171 `(("python-astor" ,python-astor)
9172 ("python-clint" ,python-clint)
9173 ("python-rply" ,python-rply)
9174 ("python-fastentrypoints"
9175 ,python-fastentrypoints)
9176 ("python-funcparserlib"
9177 ,python-funcparserlib)))
9178 (home-page "http://hylang.org/")
9179 (synopsis "Lisp frontend to Python")
9181 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
9182 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
9183 Python at your fingertips, in Lisp form.")
9184 (license license:expat)))
9186 (define-public python2-hy
9187 (package-with-python2 python-hy))
9189 (define-public python2-functools32
9191 (name "python2-functools32")
9196 (uri (pypi-uri "functools32" version))
9199 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
9200 (build-system python-build-system)
9202 `(#:python ,python-2
9203 #:tests? #f)) ; no test target
9204 (home-page "https://github.com/MiCHiLU/python-functools32")
9206 "Backport of the functools module from Python 3.2.3")
9208 "This package is a backport of the @code{functools} module from Python
9209 3.2.3 for use with older versions of Python and PyPy.")
9210 (license license:expat)))
9212 (define-public python2-subprocess32
9214 (name "python2-subprocess32")
9218 (uri (pypi-uri "subprocess32" version))
9221 "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y"))
9223 (search-patches "python2-subprocess32-disable-input-test.patch"))))
9224 (build-system python-build-system)
9226 `(#:python ,python-2
9227 ;; The test suite fails with Python > 2.7.13:
9228 ;; import test.support
9229 ;; ImportError: No module named support
9232 (modify-phases %standard-phases
9233 (add-after 'unpack 'patch-/bin/sh
9235 (substitute* '("subprocess32.py"
9236 "test_subprocess32.py")
9237 (("/bin/sh") (which "sh")))
9239 (home-page "https://github.com/google/python-subprocess32")
9240 (synopsis "Backport of the subprocess module from Python 3.2")
9242 "This is a backport of the @code{subprocess} standard library module
9243 from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some
9244 new features. On POSIX systems it is guaranteed to be reliable when used
9245 in threaded applications. It includes timeout support from Python 3.3 but
9246 otherwise matches 3.2’s API.")
9247 (license license:psfl)))
9249 (define-public python2-futures
9251 (name "python2-futures")
9256 (uri (pypi-uri "futures" version))
9259 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y"))))
9260 (build-system python-build-system)
9262 `(#:python ,python-2
9264 (modify-phases %standard-phases
9267 (invoke "python" "test_futures.py")
9269 (home-page "https://github.com/agronholm/pythonfutures")
9271 "Backport of the concurrent.futures package from Python 3.2")
9273 "The concurrent.futures module provides a high-level interface for
9274 asynchronously executing callables. This package backports the
9275 concurrent.futures package from Python 3.2")
9276 (license license:bsd-3)))
9278 (define-public python-promise
9280 (name "python-promise")
9285 (uri (pypi-uri "promise" version))
9288 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
9289 (build-system python-build-system)
9290 ;; Tests wants python-futures, which is a python2 only program, and
9291 ;; can't be found by python-promise at test time.
9292 (arguments `(#:tests? #f))
9293 (home-page "https://github.com/syrusakbary/promise")
9294 (synopsis "Promises/A+ implementation for Python")
9296 "Promises/A+ implementation for Python")
9297 (properties `((python2-variant . ,(delay python2-promise))))
9298 (license license:expat)))
9300 (define-public python2-promise
9301 (let ((promise (package-with-python2
9302 (strip-python2-variant python-promise))))
9303 (package (inherit promise)
9304 (arguments (substitute-keyword-arguments (package-arguments promise)
9307 `(("python2-futures" ,python2-futures)
9308 ("python2-pytest" ,python2-pytest)
9309 ,@(package-native-inputs promise))))))
9311 (define-public python-progressbar33
9313 (name "python-progressbar33")
9318 (uri (pypi-uri "progressbar33" version))
9321 "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji"))))
9322 (build-system python-build-system)
9323 (home-page "http://github.com/germangh/python-progressbar")
9324 (synopsis "Text progress bar library for Python")
9326 "This package provides a text progress bar library for Python. This
9327 version only differs from the original @code{progressbar} package in that it
9328 uses relative package imports instead of absolute imports, which is necessary
9329 for the module to work under Python 3.3.")
9330 ;; Either or both of these licenses may be selected.
9331 (license (list license:lgpl2.1+ license:bsd-3))))
9333 (define-public python-colorama
9335 (name "python-colorama")
9340 (uri (pypi-uri "colorama" version))
9343 "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9"))))
9344 (build-system python-build-system)
9345 (synopsis "Colored terminal text rendering for Python")
9346 (description "Colorama is a Python library for rendering colored terminal
9348 (home-page "https://pypi.org/project/colorama/")
9349 (license license:bsd-3)))
9351 (define-public python2-colorama
9352 (package-with-python2 python-colorama))
9354 (define-public python-rsa
9361 (uri (pypi-uri "rsa" version))
9364 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
9365 (build-system python-build-system)
9367 `(("python-pyasn1" ,python-pyasn1)))
9368 (synopsis "Pure-Python RSA implementation")
9369 (description "Python-RSA is a pure-Python RSA implementation. It supports
9370 encryption and decryption, signing and verifying signatures, and key
9371 generation according to PKCS#1 version 1.5. It can be used as a Python
9372 library as well as on the command line.")
9373 (home-page "https://stuvel.eu/rsa")
9374 (license license:asl2.0)))
9376 (define-public python2-rsa
9377 (package-with-python2 python-rsa))
9379 (define-public python-pluggy
9381 (name "python-pluggy")
9386 (uri (pypi-uri "pluggy" version))
9389 "10511a54dvafw1jrk75mrhml53c7b7w4yaw7241696lc2hfvr895"))))
9390 (build-system python-build-system)
9392 `(("python-setuptools-scm" ,python-setuptools-scm)))
9393 (synopsis "Plugin and hook calling mechanism for Python")
9394 (description "Pluggy is an extraction of the plugin manager as used by
9395 Pytest but stripped of Pytest specific details.")
9396 (home-page "https://pypi.org/project/pluggy/")
9397 (license license:expat)))
9399 (define-public python2-pluggy
9400 (package-with-python2 python-pluggy))
9402 (define-public python-tox
9409 (uri (pypi-uri "tox" version))
9412 "1drp6mwm8wdypjym15ia8lwjxbhcksb9vzxg4ay5dh4ji57by2ny"))))
9413 (build-system python-build-system)
9415 ;; FIXME: Tests require pytest-timeout, which itself requires
9416 ;; pytest>=2.8.0 for installation.
9419 `(("python-pluggy" ,python-pluggy) ; >=0.3.0,<0.4.0
9420 ("python-py" ,python-py)
9421 ("python-virtualenv" ,python-virtualenv)))
9423 `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
9424 ("python-pytest" ,python-pytest) ; >= 2.3.5
9425 ("python-setuptools-scm" ,python-setuptools-scm)))
9426 (home-page "https://tox.readthedocs.io")
9427 (synopsis "Virtualenv-based automation of test activities")
9428 (description "Tox is a generic virtualenv management and test command line
9429 tool. It can be used to check that a package installs correctly with
9430 different Python versions and interpreters, or run tests in each type of
9431 supported environment, or act as a frontend to continuous integration
9433 (license license:expat)))
9435 (define-public python2-tox
9436 (package-with-python2 python-tox))
9438 (define-public python-jmespath
9440 (name "python-jmespath")
9445 (uri (pypi-uri "jmespath" version))
9448 "0k0765x1mybcrzajh3hiqkl8sy9hs0bmn4900frxy0j3ykvaxqmx"))))
9449 (build-system python-build-system)
9451 `(("python-nose" ,python-nose)))
9452 (synopsis "JSON Matching Expressions")
9453 (description "JMESPath (pronounced “james path”) is a Python library that
9454 allows one to declaratively specify how to extract elements from a JSON
9456 (home-page "https://github.com/jmespath/jmespath.py")
9457 (license license:expat)))
9459 (define-public python2-jmespath
9460 (package-with-python2 python-jmespath))
9462 (define-public python-botocore
9464 (name "python-botocore")
9469 (uri (pypi-uri "botocore" version))
9472 "1a87pbwkk5vlwz92hy1wizfnpiwn11bhaicr6bmji1i5ybwdhnr8"))))
9473 (build-system python-build-system)
9475 ;; FIXME: Many tests are failing.
9478 `(("python-dateutil" ,python-dateutil)
9479 ("python-docutils" ,python-docutils)
9480 ("python-jmespath" ,python-jmespath)))
9482 `(("python-mock" ,python-mock)
9483 ("python-nose" ,python-nose)
9485 ("python-tox" ,python-tox)
9486 ("python-urllib3" ,python-urllib3)
9487 ("python-wheel" ,python-wheel)))
9488 (home-page "https://github.com/boto/botocore")
9489 (synopsis "Low-level interface to AWS")
9490 (description "Botocore is a Python library that provides a low-level
9491 interface to the Amazon Web Services (AWS) API.")
9492 (license license:asl2.0)))
9494 (define-public python2-botocore
9495 (package-with-python2 python-botocore))
9497 (define-public python-xdo
9504 "http://http.debian.net/debian/pool/main/p/python-xdo/"
9505 "python-xdo_" version ".orig.tar.gz"))
9508 "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
9509 (build-system python-build-system)
9512 (modify-phases %standard-phases
9513 (add-before 'install 'patch-libxdo-path
9514 ;; Hardcode the path of dynamically loaded libxdo library.
9515 (lambda* (#:key inputs #:allow-other-keys)
9516 (let ((libxdo (string-append
9517 (assoc-ref inputs "xdotool")
9519 (substitute* "xdo/_xdo.py"
9520 (("find_library\\(\"xdo\"\\)")
9521 (simple-format #f "\"~a\"" libxdo)))
9523 #:tests? #f)) ; no tests provided
9525 `(("python-six" ,python-six)))
9527 `(("xdotool" ,xdotool)
9528 ("libX11" ,libx11)))
9529 (home-page "https://tracker.debian.org/pkg/python-xdo")
9530 (synopsis "Python library for simulating X11 keyboard/mouse input")
9531 (description "Provides bindings to libxdo for manipulating X11 via simulated
9532 input. (Note that this is mostly a legacy library; you may wish to look at
9533 python-xdo for newer bindings.)")
9534 (license license:bsd-3)))
9536 (define-public python2-xdo
9537 (package-with-python2 python-xdo))
9539 (define-public python-mako
9541 (name "python-mako")
9546 (uri (pypi-uri "Mako" version))
9549 "193mds7lv91pphnvn6c1n55rhjkgq94asdzgrsb2fiqx7rrsd119"))))
9550 (build-system python-build-system)
9552 `(#:phases (modify-phases %standard-phases
9555 (invoke "pytest" "-vv"))))))
9557 `(("python-markupsafe" ,python-markupsafe)))
9559 `(("python-mock" ,python-mock)
9560 ("python-pytest" ,python-pytest)))
9561 (home-page "https://www.makotemplates.org/")
9562 (synopsis "Templating language for Python")
9563 (description "Mako is a templating language for Python that compiles
9564 templates into Python modules.")
9565 (license license:expat)))
9567 (define-public python2-mako
9568 (package-with-python2 python-mako))
9570 (define-public python-waitress
9572 (name "python-waitress")
9577 (uri (pypi-uri "waitress" version))
9578 (patches (search-patches "python-waitress-fix-tests.patch"))
9581 "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
9582 (build-system python-build-system)
9583 (home-page "https://github.com/Pylons/waitress")
9584 (synopsis "Waitress WSGI server")
9585 (description "Waitress is meant to be a production-quality pure-Python WSGI
9586 server with very acceptable performance.")
9587 (license license:zpl2.1)))
9589 (define-public python2-waitress
9590 (package-with-python2 python-waitress))
9592 (define-public python-whichcraft
9594 (name "python-whichcraft")
9599 (uri (pypi-uri "whichcraft" version))
9602 "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
9603 (build-system python-build-system)
9605 `(("python-pytest" ,python-pytest)))
9606 (home-page "https://github.com/pydanny/whichcraft")
9607 (synopsis "Cross-platform cross-python shutil.which functionality")
9609 "This package provides a shim of the shutil.which function that's
9610 designed to work across multiple versions of Python.")
9611 (license license:bsd-3)))
9613 (define-public python-cookiecutter
9615 (name "python-cookiecutter")
9620 (uri (pypi-uri "cookiecutter" version))
9623 "0glsvaz8igi2wy1hsnhm9fkn6560vdvdixzvkq6dn20z3hpaa5hk"))))
9624 (build-system python-build-system)
9626 `(("python-freezegun" ,python-freezegun)
9627 ("python-pytest" ,python-pytest)
9628 ("python-pytest-catchlog" ,python-pytest-catchlog)
9629 ("python-pytest-cov" ,python-pytest-cov)
9630 ("python-pytest-mock" ,python-pytest-mock)))
9632 `(("python-binaryornot" ,python-binaryornot)
9633 ("python-click" ,python-click)
9634 ("python-future" ,python-future)
9635 ("python-jinja2" ,python-jinja2)
9636 ("python-jinja2-time" ,python-jinja2-time)
9637 ("python-poyo" ,python-poyo)
9638 ("python-requests" ,python-requests)
9639 ("python-whichcraft" ,python-whichcraft)))
9640 (home-page "https://github.com/audreyr/cookiecutter")
9642 "Command-line utility that creates projects from project templates")
9644 "This package provides a command-line utility that creates projects from
9645 project templates, e.g. creating a Python package project from a Python package
9647 (license license:bsd-3)))
9649 (define-public python-pyquery
9651 (name "python-pyquery")
9656 (uri (pypi-uri "pyquery" version))
9659 "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
9660 (build-system python-build-system)
9662 `(("python-webob" ,python-webob)
9663 ("python-webtest" ,python-webtest)))
9665 `(("python-lxml" ,python-lxml)
9666 ("python-cssselect" ,python-cssselect)))
9667 (home-page "https://github.com/gawel/pyquery")
9668 (synopsis "Make jQuery-like queries on xml documents")
9669 (description "pyquery allows you to make jQuery queries on xml documents.
9670 The API is as much as possible the similar to jQuery. pyquery uses lxml for
9671 fast xml and html manipulation.")
9672 (license license:bsd-3)))
9674 (define-public python-anyjson
9676 (name "python-anyjson")
9681 (uri (pypi-uri "anyjson" version))
9684 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
9685 (build-system python-build-system)
9687 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
9688 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
9689 ;; whatever) so this transformation needs to be done before the tests
9690 ;; can be run. Maybe we could add a build step to transform beforehand
9691 ;; but it could be annoying/difficult.
9692 ;; We can enable tests for the Python 2 version, though, and do below.
9694 (home-page "https://bitbucket.org/runeh/anyjson/")
9696 "Wraps best available JSON implementation in a common interface")
9698 "Anyjson loads whichever is the fastest JSON module installed
9699 and provides a uniform API regardless of which JSON implementation is used.")
9700 (license license:bsd-3)
9701 (properties `((python2-variant . ,(delay python2-anyjson))))))
9703 (define-public python2-anyjson
9704 (let ((anyjson (package-with-python2
9705 (strip-python2-variant python-anyjson))))
9708 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
9710 ,@(package-arguments anyjson)))
9711 (native-inputs `(("python2-nose" ,python2-nose))))))
9713 (define-public python-amqp
9715 (name "python-amqp")
9720 (uri (pypi-uri "amqp" version))
9723 "1sv600dgqwpimr6i1g59y9hpn50mc236gdqkr7zin13kvlpx0g87"))))
9724 (build-system python-build-system)
9726 `(("python-case" ,python-case)
9727 ("python-pytest-sugar" ,python-pytest-sugar)
9728 ("python-mock" ,python-mock)))
9730 `(("python-vine" ,python-vine)))
9731 (home-page "https://github.com/celery/py-amqp")
9733 "Low-level AMQP client for Python (fork of amqplib)")
9735 "This is a fork of amqplib which was originally written by Barry Pederson.
9736 It is maintained by the Celery project, and used by kombu as a pure python
9737 alternative when librabbitmq is not available.")
9738 (license license:lgpl2.1+)
9739 (properties `((python2-variant . ,(delay python2-amqp))))))
9741 (define-public python2-amqp
9742 (let ((amqp (package-with-python2
9743 (strip-python2-variant python-amqp))))
9746 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
9747 ;; unmaintained. Weirdly, does not do this on the python 3
9750 ,@(package-arguments amqp))))))
9752 (define-public python-txamqp
9754 (name "python-txamqp")
9759 (uri (pypi-uri "txAMQP" version))
9762 "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4"))))
9763 (build-system python-build-system)
9765 `(("python-six" ,python-six)
9766 ("python-twisted" ,python-twisted)))
9767 (home-page "https://github.com/txamqp/txamqp")
9768 (synopsis "Communicate with AMQP peers and brokers using Twisted")
9770 "This package provides a Python library for communicating with AMQP peers
9771 and brokers using the asynchronous networking framework Twisted. It contains
9772 all the necessary code to connect, send and receive messages to/from an
9773 AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
9774 also includes support for using Thrift RPC over AMQP in Twisted
9776 (license license:asl2.0)))
9778 (define-public python2-txamqp
9779 (package-with-python2 python-txamqp))
9781 (define-public python-kombu
9783 (name "python-kombu")
9788 (uri (pypi-uri "kombu" version))
9791 "15k8f7mzqr049sg9vi48m19vjykviafk3f0p5xzgw9by0x0kyxjj"))))
9792 (build-system python-build-system)
9794 `(("python-mock" ,python-mock)
9795 ("python-case" ,python-case)
9796 ("python-pyro4" ,python-pyro4)
9797 ("python-pytest-sugar" ,python-pytest-sugar)
9798 ("python-pytz" ,python-pytz)))
9800 `(("python-anyjson" ,python-anyjson)
9801 ("python-amqp" ,python-amqp)
9802 ("python-redis" ,python-redis)))
9803 (home-page "https://kombu.readthedocs.io")
9804 (synopsis "Message passing library for Python")
9805 (description "The aim of Kombu is to make messaging in Python as easy as
9806 possible by providing an idiomatic high-level interface for the AMQ protocol,
9807 and also provide proven and tested solutions to common messaging problems.
9808 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
9809 message orientation, queuing, routing, reliability and security, for which the
9810 RabbitMQ messaging server is the most popular implementation.")
9811 (license license:bsd-3)
9812 (properties `((python2-variant . ,(delay python2-kombu))))))
9814 (define-public python2-kombu
9815 (let ((kombu (package-with-python2
9816 (strip-python2-variant python-kombu))))
9819 (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2.
9820 ;; It works fine on the python3 variant.
9822 ,@(package-arguments kombu)))
9823 (native-inputs `(("python2-unittest2" ,python2-unittest2)
9824 ,@(package-native-inputs kombu))))))
9826 (define-public python-billiard
9828 (name "python-billiard")
9833 (uri (pypi-uri "billiard" version))
9836 "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2"))))
9837 (build-system python-build-system)
9839 `(("python-case" ,python-case)
9840 ("python-pytest" ,python-pytest)))
9841 (home-page "https://github.com/celery/billiard")
9843 "Python multiprocessing fork with improvements and bugfixes")
9845 "Billiard is a fork of the Python 2.7 multiprocessing package. The
9846 multiprocessing package itself is a renamed and updated version of R Oudkerk's
9847 pyprocessing package. This standalone variant is intended to be compatible with
9848 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
9849 (license license:bsd-3)
9850 (properties `((python2-variant . ,(delay python2-billiard))))))
9852 (define-public python2-billiard
9853 (let ((billiard (package-with-python2
9854 (strip-python2-variant python-billiard))))
9857 (native-inputs `(("python2-unittest2" ,python2-unittest2)
9858 ("python2-mock" ,python2-mock)
9859 ,@(package-native-inputs billiard))))))
9861 (define-public python-celery
9863 (name "python-celery")
9868 (uri (pypi-uri "celery" version))
9871 "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp"))))
9872 (build-system python-build-system)
9874 '(;; TODO The tests fail with Python 3.7
9875 ;; https://github.com/celery/celery/issues/4849
9878 (modify-phases %standard-phases
9879 (add-after 'unpack 'patch-requirements
9881 (substitute* "requirements/test.txt"
9882 (("pytest>=3\\.0,<3\\.3")
9886 `(("python-case" ,python-case)
9887 ("python-pytest" ,python-pytest)))
9889 `(("python-pytz" ,python-pytz)
9890 ("python-billiard" ,python-billiard)
9891 ("python-kombu" ,python-kombu)))
9892 (home-page "https://celeryproject.org")
9893 (synopsis "Distributed Task Queue")
9894 (description "Celery is an asynchronous task queue/job queue based on
9895 distributed message passing. It is focused on real-time operation, but
9896 supports scheduling as well. The execution units, called tasks, are executed
9897 concurrently on a single or more worker servers using multiprocessing,
9898 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
9899 synchronously (wait until ready).")
9900 (license license:bsd-3)
9901 (properties `((python2-variant . ,(delay python2-celery))))))
9903 (define-public python2-celery
9904 (let ((celery (package-with-python2
9905 (strip-python2-variant python-celery))))
9908 (native-inputs `(("python2-unittest2" ,python2-unittest2)
9909 ("python2-mock" ,python2-mock)
9910 ,@(package-native-inputs celery))))))
9912 (define-public python-translitcodec
9914 (name "python-translitcodec")
9919 (uri (pypi-uri "translitcodec" version))
9922 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
9923 (build-system python-build-system)
9925 `(#:tests? #f)) ; no tests provided
9927 "https://github.com/claudep/translitcodec")
9929 "Unicode to 8-bit charset transliteration codec")
9931 "This package contains codecs for transliterating ISO 10646 texts into
9932 best-effort representations using smaller coded character sets (ASCII,
9934 (license license:expat)))
9936 (define-public python2-translitcodec
9937 (package-with-python2 python-translitcodec))
9939 (define-public python-editor
9941 (name "python-editor")
9946 (uri (pypi-uri "python-editor" version))
9949 "0yrjh8w72ivqxi4i7xsg5b1vz15x8fg51xra7c3bgfyxqnyadzai"))))
9950 (build-system python-build-system)
9952 '(#:tests? #f)) ;XXX: needs a TTY and an editor
9953 (home-page "https://github.com/fmoo/python-editor")
9954 (synopsis "Programmatically open an editor, capture the result")
9956 "python-editor is a library that provides the editor module for
9957 programmatically interfacing with your system's $EDITOR.")
9958 (license license:asl2.0)))
9960 (define-public python2-editor
9961 (package-with-python2 python-editor))
9963 (define-public python-vobject
9965 (name "python-vobject")
9969 (uri (pypi-uri "vobject" version))
9972 "0hqjgf3ay1m5w1c0k00g5yfpdz1zni5qnr5rh9b8fg9hjvhwlmhg"))))
9973 (build-system python-build-system)
9975 '(;; The test suite relies on some non-portable Windows interfaces.
9978 `(("python-dateutil" ,python-dateutil)
9979 ("python-pyicu" ,python-pyicu)))
9980 (synopsis "Parse and generate vCard and vCalendar files")
9981 (description "Vobject is intended to be a full featured Python package for
9982 parsing and generating vCard and vCalendar files. Currently, iCalendar files
9983 are supported and well tested. vCard 3.0 files are supported, and all data
9984 should be imported, but only a few components are understood in a sophisticated
9986 (home-page "https://eventable.github.io/vobject/")
9987 (license license:asl2.0)))
9989 (define-public python2-vobject
9990 (package-with-python2 python-vobject))
9992 (define-public python-munkres
9994 (name "python-munkres")
9998 (uri (pypi-uri "munkres" version))
10001 "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq"))))
10002 (build-system python-build-system)
10004 '(#:tests? #f)) ; no test suite
10005 (home-page "https://software.clapper.org/munkres/")
10006 (synopsis "Implementation of the Munkres algorithm")
10007 (description "The Munkres module provides an implementation of the Munkres
10008 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
10009 useful for solving the Assignment Problem.")
10010 (license license:bsd-3)))
10012 (define-public python2-munkres
10013 (package-with-python2 python-munkres))
10015 (define-public python-whoosh
10017 (name "python-whoosh")
10022 (uri (pypi-uri "Whoosh" version))
10025 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
10026 (build-system python-build-system)
10027 (arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
10029 `(("python-pytest" ,python-pytest)))
10030 (home-page "https://bitbucket.org/mchaput/whoosh")
10031 (synopsis "Full text indexing, search, and spell checking library")
10033 "Whoosh is a fast, pure-Python full text indexing, search, and spell
10034 checking library.")
10035 (license license:bsd-2)))
10037 (define-public python2-whoosh
10038 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
10039 (package (inherit whoosh)
10041 `(("python2-backport-ssl-match-hostname"
10042 ,python2-backport-ssl-match-hostname)
10043 ,@(package-propagated-inputs whoosh))))))
10045 (define-public python-pathlib
10047 (name "python-pathlib")
10051 (uri (pypi-uri "pathlib" version))
10054 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
10055 (build-system python-build-system)
10056 ;; The tests depend on the internal "test" module, which does not provide
10057 ;; a stable interface.
10058 (arguments `(#:tests? #f))
10059 (home-page "https://pathlib.readthedocs.org/")
10060 (synopsis "Object-oriented file system paths")
10061 (description "Pathlib offers a set of classes to handle file system paths.
10062 It offers the following advantages over using string objects:
10065 @item No more cumbersome use of os and os.path functions. Everything can
10066 be done easily through operators, attribute accesses, and method calls.
10067 @item Embodies the semantics of different path types. For example,
10068 comparing Windows paths ignores casing.
10069 @item Well-defined semantics, eliminating any inconsistencies or
10070 ambiguities (forward vs. backward slashes, etc.).
10073 Note: In Python 3.4, pathlib is now part of the standard library. For other
10074 Python versions please consider python-pathlib2 instead, which tracks the
10075 standard library module. This module (python-pathlib) isn't maintained
10077 (license license:expat)))
10079 (define-public python2-pathlib
10080 (package-with-python2 python-pathlib))
10082 (define-public python2-pathlib2
10084 (name "python2-pathlib2")
10088 (uri (pypi-uri "pathlib2" version))
10091 "0hpp92vqqgcd8h92msm9slv161b1q160igjwnkf2ag6cx0c96695"))))
10092 (build-system python-build-system)
10093 ;; We only need the the Python 2 variant, since for Python 3 our minimum
10094 ;; version is 3.4 which already includes this package as part of the
10095 ;; standard library.
10097 `(#:python ,python-2))
10099 `(("python2-scandir" ,python2-scandir)
10100 ("python2-six" ,python2-six)))
10101 (home-page "https://pypi.org/project/pathlib2/")
10102 (synopsis "Object-oriented file system paths - backport of standard
10104 (description "The goal of pathlib2 is to provide a backport of standard
10105 pathlib module which tracks the standard library module, so all the newest
10106 features of the standard pathlib can be used also on older Python versions.
10108 Pathlib offers a set of classes to handle file system paths. It offers the
10109 following advantages over using string objects:
10112 @item No more cumbersome use of os and os.path functions. Everything can
10113 be done easily through operators, attribute accesses, and method calls.
10114 @item Embodies the semantics of different path types. For example,
10115 comparing Windows paths ignores casing.
10116 @item Well-defined semantics, eliminating any inconsistencies or
10117 ambiguities (forward vs. backward slashes, etc.).
10119 (license license:expat)))
10121 (define-public python2-pathlib2-bootstrap
10124 (inherit python2-pathlib2)
10125 (name "python2-pathlib2-bootstrap")
10127 `(("python2-scandir" ,python2-scandir)
10128 ("python2-six" ,python2-six-bootstrap))))))
10130 (define-public python-jellyfish
10132 (name "python-jellyfish")
10136 (uri (pypi-uri "jellyfish" version))
10139 "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8"))))
10140 (build-system python-build-system)
10142 `(("python-pytest" ,python-pytest)))
10143 (home-page "https://github.com/jamesturk/jellyfish")
10144 (synopsis "Approximate and phonetic matching of strings")
10145 (description "Jellyfish uses a variety of string comparison and phonetic
10146 encoding algorithms to do fuzzy string matching.")
10147 (license license:bsd-2)
10148 (properties `((python2-variant . ,(delay python2-jellyfish))))))
10150 (define-public python2-jellyfish
10151 (let ((jellyfish (package-with-python2
10152 (strip-python2-variant python-jellyfish))))
10153 (package (inherit jellyfish)
10154 (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv)
10155 ,@(package-native-inputs jellyfish))))))
10157 (define-public python2-unicodecsv
10159 (name "python2-unicodecsv")
10163 ;; The test suite is not included in the PyPi release.
10164 ;; https://github.com/jdunck/python-unicodecsv/issues/19
10165 (uri (git-reference
10166 (url "https://github.com/jdunck/python-unicodecsv")
10168 (file-name (git-file-name name version))
10171 "15hx2k41a2lpv4hcml9zp4cvlx1171mnb5s4s13xc1pxkq3vgdjy"))))
10172 (build-system python-build-system)
10174 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
10175 #:python ,python-2))
10177 `(("python2-unittest2" ,python2-unittest2)))
10178 (home-page "https://github.com/jdunck/python-unicodecsv")
10179 (synopsis "Unicode CSV module for Python 2")
10180 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
10181 module, adding support for Unicode strings.")
10182 (license license:bsd-2)))
10184 (define-public python-rarfile
10186 (name "python-rarfile")
10190 (uri (pypi-uri "rarfile" version))
10193 "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra"))))
10194 (build-system python-build-system)
10197 (modify-phases %standard-phases
10199 ;; Many tests fail, but the installation proceeds.
10200 (lambda _ (invoke "make" "-C" "test" "test"))))))
10202 `(("which" ,which))) ; required for tests
10204 `(("libarchive" ,libarchive)))
10205 (home-page "https://github.com/markokr/rarfile")
10206 (synopsis "RAR archive reader for Python")
10207 (description "This is Python module for RAR archive reading. The interface
10208 is made as zipfile like as possible.")
10209 (license license:isc)))
10211 (define-public python2-rarfile
10212 (package-with-python2 python-rarfile))
10214 (define-public python-magic
10216 (name "python-magic")
10221 (uri (pypi-uri "python-magic" version))
10224 "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
10225 (file-name (string-append name "-" version "-checkout"))))
10226 (build-system python-build-system)
10228 ;; The tests are unreliable, so don't run them. The tests fail
10229 ;; under Python3 because they were written for Python2 and
10230 ;; contain import statements that do not work in Python3. One of
10231 ;; the tests fails under Python2 because its assertions are
10232 ;; overly stringent; it relies on comparing output strings which
10233 ;; are brittle and can change depending on the version of
10234 ;; libmagic being used and the system on which the test is
10235 ;; running. In my case, under GuixSD 0.10.0, only one test
10236 ;; failed, and it seems to have failed only because the version
10237 ;; of libmagic that is packaged in Guix outputs a slightly
10238 ;; different (but not wrong) string than the one that the test
10241 #:phases (modify-phases %standard-phases
10242 ;; Replace a specific method call with a hard-coded
10243 ;; path to the necessary libmagic.so file in the
10244 ;; store. If we don't do this, then the method call
10245 ;; will fail to find the libmagic.so file, which in
10246 ;; turn will cause any application using
10247 ;; python-magic to fail.
10248 (add-before 'build 'hard-code-path-to-libmagic
10249 (lambda* (#:key inputs #:allow-other-keys)
10250 (let ((file (assoc-ref inputs "file")))
10251 (substitute* "magic.py"
10252 (("ctypes.util.find_library\\('magic'\\)")
10253 (string-append "'" file "/lib/libmagic.so'")))
10255 (add-before 'install 'disable-egg-compression
10257 (let ((port (open-file "setup.cfg" "a")))
10258 (display "\n[easy_install]\nzip_ok = 0\n"
10263 ;; python-magic needs to be able to find libmagic.so.
10266 "https://github.com/ahupp/python-magic")
10268 "File type identification using libmagic")
10270 "This module uses ctypes to access the libmagic file type
10271 identification library. It makes use of the local magic database and
10272 supports both textual and MIME-type output. Note that this module and
10273 the python-file module both provide a \"magic.py\" file; these two
10274 modules, which are different and were developed separately, both serve
10275 the same purpose: to provide Python bindings for libmagic.")
10276 (license license:expat)))
10278 (define-public python2-magic
10279 (package-with-python2 python-magic))
10281 (define-public python2-s3cmd
10283 (name "python2-s3cmd")
10288 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
10289 "s3cmd-" version ".tar.gz"))
10292 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
10293 (build-system python-build-system)
10295 ;; s3cmd is written for python2 only and contains no tests.
10296 `(#:python ,python-2
10299 `(("python2-dateutil" ,python2-dateutil)
10300 ;; The python-file package also provides a magic.py module.
10301 ;; This is an unfortunate state of affairs; however, s3cmd
10302 ;; fails to install if it cannot find specifically the
10303 ;; python-magic package. Thus we include it, instead of using
10304 ;; python-file. Ironically, s3cmd sometimes works better
10305 ;; without libmagic bindings at all:
10306 ;; https://github.com/s3tools/s3cmd/issues/198
10307 ("python2-magic" ,python2-magic)))
10308 (home-page "https://s3tools.org/s3cmd")
10309 (synopsis "Command line tool for S3-compatible storage services")
10311 "S3cmd is a command line tool for uploading, retrieving and managing data
10312 in storage services that are compatible with the Amazon Simple Storage
10313 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
10314 GnuPG encryption, and more. It also supports management of Amazon's
10315 CloudFront content delivery network.")
10316 (license license:gpl2+)))
10318 (define-public python-pkgconfig
10320 (name "python-pkgconfig")
10325 (uri (pypi-uri "pkgconfig" version))
10328 "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb"))))
10329 (build-system python-build-system)
10331 `(("python-nose" ,python-nose)))
10333 `(("pkg-config" ,pkg-config)))
10336 (modify-phases %standard-phases
10337 (add-before 'build 'patch
10338 ;; Hard-code the path to pkg-config.
10340 (substitute* "pkgconfig/pkgconfig.py"
10341 (("cmd = 'pkg-config")
10342 (string-append "cmd = '" (which "pkg-config"))))
10346 (invoke "nosetests" "test.py"))))))
10347 (home-page "https://github.com/matze/pkgconfig")
10348 (synopsis "Python interface for pkg-config")
10349 (description "This module provides a Python interface to pkg-config. It
10350 can be used to find all pkg-config packages, check if a package exists,
10351 check if a package meets certain version requirements, query CFLAGS and
10352 LDFLAGS and parse the output to build extensions with setup.py.")
10353 (license license:expat)))
10355 (define-public python2-pkgconfig
10356 (package-with-python2 python-pkgconfig))
10358 (define-public python-bz2file
10360 (name "python-bz2file")
10365 (uri (pypi-uri "bz2file" version))
10368 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
10369 (build-system python-build-system)
10371 `(#:tests? #f)) ; Tests use deprecated python modules.
10372 (home-page "https://github.com/nvawda/bz2file")
10373 (synopsis "Read and write bzip2-compressed files")
10375 "Bz2file is a Python library for reading and writing bzip2-compressed
10376 files. It contains a drop-in replacement for the I/O interface in the
10377 standard library's @code{bz2} module, including features from the latest
10378 development version of CPython that are not available in older releases.")
10379 (license license:asl2.0)))
10381 (define-public python2-bz2file
10382 (package-with-python2 python-bz2file))
10384 (define-public python-future
10386 (name "python-future")
10391 (uri (pypi-uri "future" version))
10394 "1f2rlqn9rh7adgir52dlbqz69gsab44x0mlm8gf1cs7xvhv54137"))))
10395 (build-system python-build-system)
10396 ;; Many tests connect to the network or are otherwise flawed.
10397 ;; https://github.com/PythonCharmers/python-future/issues/210
10400 (home-page "https://python-future.org")
10401 (synopsis "Single-source support for Python 3 and 2")
10403 "@code{python-future} is the missing compatibility layer between Python 2 and
10404 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
10405 to support both Python 2 and Python 3 with minimal overhead.")
10406 (license license:expat)))
10408 (define-public python2-future
10409 (package-with-python2 python-future))
10411 (define-public python-cysignals
10413 (name "python-cysignals")
10418 (uri (pypi-uri "cysignals" version))
10421 "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
10422 (build-system python-build-system)
10424 `(("python-cython" ,python-cython)
10425 ("python-sphinx" ,python-sphinx)))
10427 `(("pari-gp" ,pari-gp)))
10429 `(#:modules ((guix build python-build-system)
10430 ((guix build gnu-build-system) #:prefix gnu:)
10431 (guix build utils))
10432 ;; FIXME: Tests are executed after installation and currently fail
10433 ;; when not installing into standard locations; the author is working
10437 (modify-phases %standard-phases
10440 (assoc-ref gnu:%standard-phases 'configure)))))
10442 "https://github.com/sagemath/cysignals")
10444 "Handling of interrupts and signals for Cython")
10446 "The cysignals package provides mechanisms to handle interrupts (and
10447 other signals and errors) in Cython code, using two related approaches,
10448 for mixed Cython/Python code or external C libraries and pure Cython code,
10450 (license license:lgpl3+)))
10452 (define-public python2-cysignals
10453 (package-with-python2 python-cysignals))
10455 (define-public python2-shedskin
10457 (name "python2-shedskin")
10462 (uri (string-append "https://github.com/shedskin/shedskin/"
10463 "releases/download/v" version
10464 "/shedskin-" version ".tgz"))
10467 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
10468 (build-system python-build-system)
10470 `(#:python ,python-2
10471 #:phases (modify-phases %standard-phases
10472 (add-after 'unpack 'fix-resulting-include-libs
10473 (lambda* (#:key inputs #:allow-other-keys)
10474 (let ((libgc (assoc-ref inputs "libgc"))
10475 (pcre (assoc-ref inputs "pcre")))
10476 (substitute* "shedskin/makefile.py"
10477 (("variable == 'CCFLAGS':[ ]*")
10478 (string-append "variable == 'CCFLAGS':\n"
10479 " line += ' -I " pcre "/include"
10480 " -I " libgc "/include'"))
10481 (("variable == 'LFLAGS':[ ]*")
10482 (string-append "variable == 'LFLAGS':\n"
10483 " line += ' -L" pcre "/lib"
10484 " -L " libgc "/lib'")))
10486 (inputs `(("pcre" ,pcre)
10488 (home-page "https://shedskin.github.io/")
10489 (synopsis "Experimental Python-2 to C++ Compiler")
10490 (description (string-append "This is an experimental compiler for a subset of
10491 Python. It generates C++ code and a Makefile."))
10492 (license (list license:gpl3 license:bsd-3 license:expat))))
10494 (define-public python2-rope
10496 (name "python2-rope")
10501 (uri (pypi-uri "rope" version))
10504 "1cppm0pa9aqgsbkq130lskrzmrvjs5vpiavjjbhpz2fdw52w8251"))))
10506 ;; Rope has only partial python3 support, see `python-rope'
10507 `(#:python ,python-2))
10508 (build-system python-build-system)
10510 `(("python2-unittest2" ,python2-unittest2)))
10511 (home-page "https://github.com/python-rope/rope")
10512 (synopsis "Refactoring library for Python")
10513 (description "Rope is a refactoring library for Python. It facilitates
10514 the renaming, moving and extracting of attributes, functions, modules, fields
10515 and parameters in Python 2 source code. These refactorings can also be applied
10516 to occurrences in strings and comments.")
10517 (license license:gpl2)))
10519 (define-public python-rope
10521 (inherit python2-rope)
10522 (name "python-rope")
10523 (arguments `(#:python ,python-wrapper
10524 ;; XXX: Only partial python3 support, results in some failing
10525 ;; tests: <https://github.com/python-rope/rope/issues/247>.
10527 (properties `((python2-variant . ,(delay python2-rope))))))
10529 (define-public python-py3status
10531 (name "python-py3status")
10536 (uri (pypi-uri "py3status" version))
10538 (base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262"))))
10539 (build-system python-build-system)
10544 (modify-phases %standard-phases
10545 ;; 'file' is used for detection of configuration file encoding
10546 ;; let's make link the dependency to particular input
10547 (add-before 'build 'patch-file-path
10548 (lambda* (#:key inputs #:allow-other-keys)
10549 (let ((file-path (assoc-ref inputs "file")))
10550 (substitute* "py3status/parse_config.py"
10551 (("\\[\"file\", \"-b\"")
10552 (string-append "['" file-path "/bin/file', '-b'")))
10554 #:tests? #f)) ; TODO: Requires many libraries not in Guix.
10555 (home-page "https://github.com/ultrabug/py3status")
10556 (synopsis "Extensible i3status wrapper written in Python")
10557 (description "py3status is an i3status wrapper which extends i3status
10558 functionality in a modular way, allowing you to extend your panel with your
10559 own code, responding to click events and updating clock every second.")
10560 (license license:bsd-3)))
10562 (define-public python-tblib
10564 (name "python-tblib")
10568 (uri (pypi-uri "tblib" version))
10571 "0i136n5pydmd202254wzrdbspkw0br0c9mbxhfs9hpfbahvyx6r2"))))
10572 (build-system python-build-system)
10575 (modify-phases %standard-phases
10578 ;; Upstream runs tests after installation and the package itself
10579 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
10581 (setenv "PYTHONPATH"
10582 (string-append (getcwd) "/build/lib:"
10583 (getenv "PYTHONPATH")))
10584 (invoke "py.test" "-vv" "tests" "README.rst"))))))
10586 `(("python-pytest" ,python-pytest)
10587 ("python-six" ,python-six)))
10588 (home-page "https://github.com/ionelmc/python-tblib")
10589 (synopsis "Traceback serialization library")
10591 "Traceback serialization allows you to:
10594 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
10595 different processes. This allows better error handling when running code over
10596 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
10598 @item Parse traceback strings and raise with the parsed tracebacks.
10600 (license license:bsd-3)))
10602 (define-public python2-tblib
10603 (package-with-python2 python-tblib))
10605 (define-public python-greenlet
10607 (name "python-greenlet")
10611 (uri (pypi-uri "greenlet" version))
10614 "1g4g1wwc472ds89zmqlpyan3fbnzpa8qm48z3z1y6mlk44z485ll"))))
10615 (build-system python-build-system)
10616 (home-page "https://greenlet.readthedocs.io/")
10617 (synopsis "Lightweight in-process concurrent programming")
10619 "Greenlet package is a spin-off of Stackless, a version of CPython
10620 that supports micro-threads called \"tasklets\". Tasklets run
10621 pseudo-concurrently (typically in a single or a few OS-level threads) and
10622 are synchronized with data exchanges on \"channels\".")
10623 (license (list license:psfl license:expat))))
10625 (define-public python2-greenlet
10626 (package-with-python2 python-greenlet))
10628 (define-public python-objgraph
10630 (name "python-objgraph")
10635 (uri (pypi-uri "objgraph" version))
10638 "19qmqsh984zq1rzzjy4vqnmviaqnymcyl8h7z99pnicbgwnm2adz"))))
10639 (build-system python-build-system)
10641 `(("python-graphviz" ,python-graphviz)))
10643 `(("python-mock" ,python-mock)
10644 ("graphviz" ,graphviz)))
10645 (home-page "https://mg.pov.lt/objgraph/")
10646 (synopsis "Draw Python object reference graphs with graphviz")
10648 "This package provides tools to draw Python object reference graphs with
10650 (license license:expat)))
10652 (define-public python2-objgraph
10653 (package-with-python2 python-objgraph))
10655 (define-public python-gevent
10657 (name "python-gevent")
10661 (uri (pypi-uri "gevent" version))
10664 "1lchr4akw2jkm5v4kz7bdm4wv3knkfhbfn9vkkz4s5yrkcxzmdqy"))
10665 (modules '((guix build utils)))
10668 ;; unbunding libev and c-ares
10669 (delete-file-recursively "deps")
10671 (build-system python-build-system)
10673 `(#:modules ((ice-9 ftw)
10677 (guix build python-build-system))
10678 #:phases (modify-phases %standard-phases
10679 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
10681 (substitute* "src/gevent/subprocess.py"
10682 (("/bin/sh") (which "sh")))
10683 (for-each (lambda (file)
10685 (("/bin/sh") (which "sh"))
10686 (("/bin/true") (which "true"))))
10687 (find-files "src/greentest" "\\.py$"))
10689 (add-before 'build 'do-not-use-bundled-sources
10690 (lambda* (#:key inputs #:allow-other-keys)
10691 (setenv "GEVENTSETUP_EMBED" "0")
10693 ;; Prevent building bundled libev.
10694 (substitute* "setup.py"
10695 (("run_make=_BUILDING")
10698 (let ((greenlet (string-append
10699 (assoc-ref inputs "python-greenlet")
10701 (match (scandir greenlet
10703 (string-prefix? "python" item)))
10705 (setenv "C_INCLUDE_PATH"
10706 (string-append greenlet "/" python ":"
10707 (or (getenv "C_INCLUDE_PATH")
10710 (add-before 'check 'pretend-to-be-CI
10712 ;; A few tests are skipped due to network constraints or
10713 ;; get longer timeouts when running in a CI environment.
10714 ;; Piggy-back on that, as we need the same adjustments.
10715 (setenv "TRAVIS" "1")
10716 (setenv "APPVEYOR" "1")
10718 (add-before 'check 'adjust-tests
10720 (let ((disabled-tests
10721 '(;; These tests rely on networking which is not
10722 ;; available in the build container.
10723 "test_urllib2net.py"
10725 "test__server_pywsgi.py"
10728 "test__socket_ssl.py"
10729 "test__socket_dns.py"
10730 "test__socket_dns6.py"
10731 "test___example_servers.py"
10732 "test__getaddrinfo_import.py"
10733 "test__examples.py"
10736 "test_urllib2_localnet.py"
10739 ;; XXX: These tests borrow functionality from the
10740 ;; Python builtin 'test' module, but it is not
10741 ;; installed with the Guix Python distribution.
10746 "test_threading.py"
10747 "test__threading_2.py"
10748 ;; FIXME: test_patch_twice_warning_events fails for
10749 ;; no apparent reason. Needs more investigation!
10751 ;; These tests rely on KeyboardInterrupts which do not
10752 ;; work inside the build container for some reason
10753 ;; (lack of controlling terminal?).
10754 "test_subprocess.py"
10755 "test__issues461_471.py"
10756 ;; TODO: Patch out the tests that use getprotobyname, etc
10757 ;; instead of disabling all the tests from these files.
10760 "test__execmodules.py")))
10761 (call-with-output-file "skipped_tests.txt"
10763 (display (string-join disabled-tests "\n") port)))
10767 ;; Make sure the build directory is on PYTHONPATH.
10768 (setenv "PYTHONPATH"
10770 (getenv "PYTHONPATH") ":"
10772 (car (scandir "build" (cut string-prefix? "lib." <>)))))
10774 ;; Use the build daemons configured number of workers.
10775 (setenv "NWORKERS" (number->string (parallel-job-count)))
10777 (invoke "python" "-m" "gevent.tests" "--config"
10778 "known_failures.py" "--ignore" "skipped_tests.txt"))))))
10780 `(("python-greenlet" ,python-greenlet)
10781 ("python-objgraph" ,python-objgraph)))
10783 `(("python-six" ,python-six)
10786 ("python-dnspython" ,python-dnspython)
10787 ("python-psutil" ,python-psutil)
10788 ("python-zope.event" ,python-zope-event)
10789 ("python-zope.interface" ,python-zope-interface)))
10791 `(("c-ares" ,c-ares)
10793 (home-page "http://www.gevent.org/")
10794 (synopsis "Coroutine-based network library")
10796 "gevent is a coroutine-based Python networking library that uses greenlet
10797 to provide a high-level synchronous API on top of the libev event loop.")
10798 (license license:expat)
10799 (properties `((python2-variant . ,(delay python2-gevent))))))
10801 (define-public python2-gevent
10802 (let ((base (package-with-python2
10803 (strip-python2-variant python-gevent))))
10806 (native-inputs `(,@(package-native-inputs base)
10807 ("python-mock" ,python2-mock))))))
10809 (define-public python-fastimport
10811 (name "python-fastimport")
10816 (uri (pypi-uri "fastimport" version))
10818 (base32 "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43"))))
10819 (build-system python-build-system)
10820 (home-page "https://github.com/jelmer/python-fastimport")
10821 (synopsis "VCS fastimport parser and generator in Python")
10822 (description "This package provides a parser for and generator of the Git
10823 @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
10825 (license license:gpl2+)))
10827 (define-public python2-fastimport
10828 (package-with-python2 python-fastimport))
10830 (define-public python-twisted
10832 (name "python-twisted")
10836 (uri (pypi-uri "Twisted" version ".tar.bz2"))
10839 "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
10840 (build-system python-build-system)
10842 '(#:tests? #f)) ; FIXME: some tests fail
10844 `(("python-zope-interface" ,python-zope-interface)
10845 ("python-pyhamcrest" ,python-pyhamcrest)
10846 ("python-incremental" ,python-incremental)
10847 ("python-hyperlink" ,python-hyperlink)
10848 ("python-constantly" ,python-constantly)
10849 ("python-automat" ,python-automat)))
10850 (home-page "https://twistedmatrix.com/")
10851 (synopsis "Asynchronous networking framework written in Python")
10853 "Twisted is an extensible framework for Python programming, with special
10854 focus on event-based network programming and multiprotocol integration.")
10855 (license license:expat)))
10857 (define-public python2-twisted
10858 (package-with-python2 python-twisted))
10860 (define-public python-pika
10862 (name "python-pika")
10867 (uri (pypi-uri "pika" version))
10870 "0ld7akgm93s8pfa4dsx9qlzlhj76zspbr5m9ms0ns09yd2w4aq9h"))))
10871 (build-system python-build-system)
10873 `(("python-pyev" ,python-pyev)
10874 ("python-tornado" ,python-tornado)
10875 ("python-twisted" ,python-twisted)))
10876 (home-page "https://pika.readthedocs.org")
10877 (synopsis "Pure Python AMQP Client Library")
10879 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
10880 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
10881 network support library.")
10882 (license license:bsd-3)))
10884 (define-public python2-pika
10885 (package-with-python2 python-pika))
10887 (define-public python-ply
10889 (name "python-ply")
10894 (uri (pypi-uri "ply" version))
10897 "1jxsr1d2f732r6ljhvm827113dckwl6qwakfvpbdhcbhvpvlmscn"))))
10898 (build-system python-build-system)
10899 (home-page "http://www.dabeaz.com/ply/")
10900 (synopsis "Python Lex & Yacc")
10901 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
10902 It uses LR parsing and does extensive error checking.")
10903 (license license:bsd-3)))
10905 (define-public python2-ply
10906 (package-with-python2 python-ply))
10908 (define-public python-tabulate
10910 (name "python-tabulate")
10914 (uri (pypi-uri "tabulate" version))
10917 "1inqhspd4frxnp08c32yndr0lc4px1xfkqah184i5w09gkhvi843"))))
10918 (build-system python-build-system)
10920 ;; FIXME: The pypi release tarball is missing a 'test/common.py'
10921 ;; and the latest release is not tagged in the upstream repository.
10923 (home-page "https://bitbucket.org/astanin/python-tabulate")
10924 (synopsis "Pretty-print tabular data")
10926 "Tabulate is a library and command-line utility to pretty-print tabular
10928 (license license:expat)))
10930 (define-public python2-tabulate
10931 (package-with-python2 python-tabulate))
10933 (define-public python-kazoo
10935 (name "python-kazoo")
10940 (uri (pypi-uri "kazoo" version))
10943 "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7"))))
10944 (build-system python-build-system)
10945 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
10947 `(("python-six" ,python-six)))
10948 (home-page "https://kazoo.readthedocs.org")
10949 (synopsis "High-level Zookeeper client library")
10951 "Kazoo is a Python client library for the Apache Zookeeper distributed
10952 application service. It is designed to be easy to use and to avoid common
10953 programming errors.")
10954 (license license:asl2.0)))
10956 (define-public python2-kazoo
10957 (package-with-python2 python-kazoo))
10959 (define-public python-pykafka
10961 (name "python-pykafka")
10965 (uri (pypi-uri "pykafka" version))
10968 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
10969 (build-system python-build-system)
10970 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
10972 `(("python-gevent" ,python-gevent)
10973 ("python-kazoo" ,python-kazoo)
10974 ("python-tabulate" ,python-tabulate)))
10976 `(("librdkafka" ,librdkafka)))
10977 (home-page "https://pykafka.readthedocs.io/")
10978 (synopsis "Apache Kafka client for Python")
10980 "PyKafka is a client for the Apache Kafka distributed messaging system.
10981 It includes Python implementations of Kafka producers and consumers, which
10982 are optionally backed by a C extension built on librdkafka.")
10983 (license license:asl2.0)))
10985 (define-public python2-pykafka
10986 (package-with-python2 python-pykafka))
10988 (define-public python-wcwidth
10990 (name "python-wcwidth")
10994 (uri (pypi-uri "wcwidth" version))
10997 "1a1pzds3xzfylm5mnc5f6c1p8kiig0daqjc9gygd9rc3cj53x2zj"))))
10998 (build-system python-build-system)
10999 (home-page "https://github.com/jquast/wcwidth")
11000 (synopsis "Measure number of terminal column cells of wide-character codes")
11001 (description "Wcwidth measures the number of terminal column cells of
11002 wide-character codes. It is useful for those implementing a terminal emulator,
11003 or programs that carefully produce output to be interpreted by one. It is a
11004 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
11005 specified in POSIX.1-2001 and POSIX.1-2008.")
11006 (license license:expat)))
11008 (define-public python2-wcwidth
11009 (package-with-python2 python-wcwidth))
11011 (define-public python2-jsonrpclib
11013 (name "python2-jsonrpclib")
11017 (uri (pypi-uri "jsonrpclib" version))
11020 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
11021 (build-system python-build-system)
11024 #:python ,python-2))
11025 (home-page "https://github.com/joshmarshall/jsonrpclib/")
11026 (synopsis "Implementation of JSON-RPC specification for Python")
11028 "This library is an implementation of the JSON-RPC specification.
11029 It supports both the original 1.0 specification, as well as the
11030 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
11032 (license license:asl2.0)))
11034 (define-public python-chai
11036 (name "python-chai")
11040 (uri (pypi-uri "chai" version))
11043 "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))))
11044 (build-system python-build-system)
11045 (home-page "https://github.com/agoragames/chai")
11046 (synopsis "Mocking framework for Python")
11048 "Chai provides an api for mocking, stubbing and spying your python
11049 objects, patterned after the Mocha library for Ruby.")
11050 (license license:bsd-3)))
11052 (define-public python2-chai
11053 (package-with-python2 python-chai))
11055 (define-public python-inflection
11057 (name "python-inflection")
11060 (origin (method url-fetch)
11061 (uri (pypi-uri "inflection" version))
11064 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
11065 (build-system python-build-system)
11067 `(("python-pytest" ,python-pytest)))
11068 (home-page "https://github.com/jpvanhal/inflection")
11069 (synopsis "Python string transformation library")
11071 "Inflection is a string transformation library. It singularizes
11072 and pluralizes English words, and transforms strings from CamelCase to
11073 underscored string.")
11074 (license license:expat)))
11076 (define-public python2-inflection
11077 (package-with-python2 python-inflection))
11079 (define-public python-pylev
11081 (name "python-pylev")
11085 (uri (pypi-uri "pylev" version))
11088 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
11089 (build-system python-build-system)
11090 (home-page "https://github.com/toastdriven/pylev")
11091 (synopsis "Levenshtein distance implementation in Python")
11092 (description "Pure Python Levenshtein implementation, based off the
11093 Wikipedia code samples at
11094 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
11095 (license license:bsd-3)))
11097 (define-public python2-pylev
11098 (package-with-python2 python-pylev))
11100 (define-public python-cleo
11102 (name "python-cleo")
11106 (uri (pypi-uri "cleo" version))
11109 "02dlc0rn43zgvw0s5v4j80bca9n1jfpwy3r78gn9qjgk0qj39kwr"))))
11110 (build-system python-build-system)
11113 ("python-mock" ,python-mock)
11114 ("python-pytest-mock" ,python-pytest-mock)
11115 ("python-pytest" ,python-pytest)))
11117 `(("python-backpack" ,python-backpack)
11118 ("python-clikit" ,python-clikit)
11119 ("python-pastel" ,python-pastel)
11120 ("python-pylev" ,python-pylev)))
11121 (home-page "https://github.com/sdispater/cleo")
11122 (synopsis "Command-line arguments library for Python")
11124 "Cleo allows you to create command-line commands with signature in
11125 docstring and colored output.")
11126 (license license:expat)))
11128 (define-public python2-cleo
11129 (package-with-python2 python-cleo))
11131 (define-public python-tomlkit
11133 (name "python-tomlkit")
11138 (uri (pypi-uri "tomlkit" version))
11140 (base32 "1kq1663iqxgwrmb883n55ypi5axnixla2hrby9g2x227asifsi7h"))))
11141 (build-system python-build-system)
11143 `(("python-pytest" ,python-pytest)))
11144 (home-page "https://github.com/sdispater/tomlkit")
11145 (synopsis "Style-preserving TOML library")
11147 "TOML Kit is a 0.5.0-compliant TOML library. It includes a parser that
11148 preserves all comments, indentations, whitespace and internal element ordering,
11149 and makes them accessible and editable via an intuitive API. It can also
11150 create new TOML documents from scratch using the provided helpers. Part of the
11151 implementation has been adapted, improved, and fixed from Molten.")
11152 (license license:expat)))
11154 (define-public python-shellingham
11156 (name "python-shellingham")
11161 (uri (pypi-uri "shellingham" version))
11164 "1q7kws7w4x2hji3g7y0ni9ddk4sd676ylrb3db54gbpys6xj6nwq"))))
11165 (build-system python-build-system)
11167 "https://github.com/sarugaku/shellingham")
11168 (synopsis "Tool to detect surrounding shell")
11170 "Shellingham detects what shell the current Python executable is
11172 (license license:isc)))
11174 (define-public python-memcached
11176 (name "python-memcached")
11181 (uri (pypi-uri "python-memcached" version))
11184 "0kvyapavbirk2x3n1jx4yb9nyigrj1s3x15nm3qhpvhkpqvqdqm2"))))
11185 (build-system python-build-system)
11186 (propagated-inputs `(("python-six" ,python-six)))
11188 "https://github.com/linsomniac/python-memcached")
11189 (synopsis "Pure python memcached client")
11191 "This software is a pure Python interface to the memcached memory cache
11192 daemon. It is the client side software which allows storing values in one or
11193 more, possibly remote, memcached servers.")
11194 (license license:psfl)))
11196 (define-public python-clikit
11198 (name "python-clikit")
11203 (uri (pypi-uri "clikit" version))
11206 "1jnnr21hvzx4i29nbph1z96ympv0njiwyvngjq48w1q05133cwzn"))))
11207 (build-system python-build-system)
11209 `(("python-pastel" ,python-pastel)
11210 ("python-pylev" ,python-pylev)))
11211 (home-page "https://github.com/sdispater/clikit")
11212 (synopsis "Group of utilities to build command line interfaces")
11214 "CliKit is a group of utilities to build testable command line
11216 (properties `((python2-variant . ,(delay python2-clikit))))
11217 (license license:expat)))
11219 (define-public python2-clikit
11220 (let ((base (package-with-python2 (strip-python2-variant python-clikit))))
11224 `(("python-enum34" ,python2-enum34)
11225 ("python-typing" ,python2-typing)
11226 ,@(package-propagated-inputs base))))))
11228 (define-public python-msgpack-python
11230 (name "python-msgpack-python")
11235 (uri (pypi-uri "msgpack-python" version))
11238 "16wh8qgybmfh4pjp8vfv78mdlkxfmcasg78lzlnm6nslsfkci31p"))))
11239 (build-system python-build-system)
11240 (home-page "http://msgpack.org/")
11241 (synopsis "Package to deserialize messages in MessagePack binary format")
11243 "MessagePack is an efficient binary serialization format. It lets you
11244 exchange data among multiple languages like JSON. But it's faster and
11245 smaller. Small integers are encoded into a single byte, and typical short
11246 strings require only one extra byte in addition to the strings themselves.")
11247 (license license:asl2.0)))
11249 (define-public python-cachy
11251 (name "python-cachy")
11256 (uri (pypi-uri "cachy" version))
11259 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
11260 (build-system python-build-system)
11263 (modify-phases %standard-phases
11265 (lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
11268 `(("memcached" ,memcached)
11269 ("python-fakeredis" ,python-fakeredis)
11270 ("python-flexmock" ,python-flexmock)
11271 ("python-pifpaf" ,python-pifpaf)
11272 ("python-pytest" ,python-pytest)))
11274 `(("python-memcached" ,python-memcached)
11275 ("python-msgpack-python" ,python-msgpack-python)
11276 ("python-redis" ,python-redis)))
11277 (home-page "https://github.com/sdispater/cachy")
11278 (synopsis "Simple yet effective caching library")
11280 "Cachy provides a simple yet effective caching library. A simple but
11281 powerful API: thread-safety; decorator syntax; support for memcached, redis,
11282 database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
11283 (license license:expat)))
11285 (define-public poetry
11289 ;; Poetry can only be built from source with Poetry.
11293 (uri (pypi-uri "poetry" version))
11296 "02h387k0xssvv78yy82pcpknpq4w5ym2in1zl8cg9r5wljl5w6cf"))))
11297 (build-system python-build-system)
11299 `(#:tests? #f ;; Pypi does not have tests.
11301 (modify-phases %standard-phases
11302 (add-before 'build 'patch-setup-py
11304 (substitute* "setup.py"
11305 ;; poetry won't update version as 21.0.0 relies on python > 3.6
11306 (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
11307 (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.16.0")
11308 (("importlib-metadata>=1.1.3,<1.2.0") "importlib-metadata>=1.1.3,<1.5.0"))
11311 `(("python-cachecontrol" ,python-cachecontrol)
11312 ("python-cachy" ,python-cachy)
11313 ("python-cleo" ,python-cleo)
11314 ("python-clikit" ,python-clikit)
11315 ("python-html5lib" ,python-html5lib)
11316 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
11317 ("python-jsonschema" ,python-jsonschema)
11318 ("python-keyring" ,python-keyring)
11319 ("python-pexpect" ,python-pexpect)
11320 ("python-pkginfo" ,python-pkginfo)
11321 ("python-pyparsing" ,python-pyparsing)
11322 ("python-pyrsistent" ,python-pyrsistent)
11323 ("python-requests" ,python-requests)
11324 ("python-requests-toolbelt" ,python-requests-toolbelt)
11325 ("python-shellingham" ,python-shellingham)
11326 ("python-tomlkit" ,python-tomlkit)
11327 ("python-virtualenv" ,python-virtualenv)))
11328 (home-page "https://python-poetry.org")
11329 (synopsis "Python dependency management and packaging made easy")
11330 (description "Poetry is a tool for dependency management and packaging
11331 in Python. It allows you to declare the libraries your project depends on and
11332 it will manage (install/update) them for you.")
11333 (license license:expat)))
11335 (define-public python-lazy-object-proxy
11337 (name "python-lazy-object-proxy")
11341 (uri (pypi-uri "lazy-object-proxy" version))
11344 "1w1aaay424ciz8fz3fkzxb0pxzfxn184f2whpyn4fx72bn50x47k"))))
11346 `(("python-setuptools-scm" ,python-setuptools-scm-3.3)))
11347 (build-system python-build-system)
11348 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
11349 (synopsis "Lazy object proxy for python")
11351 "Lazy object proxy is an object that wraps a callable but defers the call
11352 until the object is actually required, and caches the result of said call.")
11353 (license license:bsd-2)))
11355 (define-public python2-lazy-object-proxy
11356 (package-with-python2 python-lazy-object-proxy))
11358 (define-public python-dnspython
11360 (name "python-dnspython")
11364 (uri (string-append "http://www.dnspython.org/kits/"
11365 version "/dnspython-" version ".tar.gz"))
11368 "0jr4v2pd90i6l1xxbss2m05psbjaxvyvvvpq44wycijpfgjqln8i"))))
11369 (build-system python-build-system)
11370 (arguments '(#:tests? #f)) ; XXX: requires internet access
11371 (home-page "http://www.dnspython.org")
11372 (synopsis "DNS toolkit for Python")
11374 "dnspython is a DNS toolkit for Python. It supports almost all record
11375 types. It can be used for queries, zone transfers, and dynamic updates.
11376 It supports TSIG authenticated messages and EDNS0.")
11377 (license license:expat)))
11379 (define-public python2-dnspython
11380 (package-with-python2 python-dnspython))
11382 (define-public python-email-validator
11384 (name "python-email-validator")
11387 (origin (method url-fetch)
11388 (uri (pypi-uri "email_validator" version))
11391 "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
11392 (build-system python-build-system)
11395 (modify-phases %standard-phases
11396 (add-before 'build 'use-dnspython
11398 (substitute* "setup.py"
11399 (("dnspython3") "dnspython"))
11402 `(("python-dnspython" ,python-dnspython)
11403 ("python-idna" ,python-idna)))
11404 (home-page "https://github.com/JoshData/python-email-validator")
11405 (synopsis "Email address validation library for Python")
11407 "This library validates email address syntax and deliverability.")
11408 (license license:cc0)))
11410 (define-public python2-email-validator
11411 (package-with-python2 python-email-validator))
11413 (define-public python-ukpostcodeparser
11415 (name "python-ukpostcodeparser")
11419 (uri (pypi-uri "UkPostcodeParser" version))
11422 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
11423 (build-system python-build-system)
11424 (home-page "https://github.com/hamstah/ukpostcodeparser")
11425 (synopsis "UK Postcode parser for Python")
11427 "This library provides the @code{parse_uk_postcode} function for
11428 parsing UK postcodes.")
11429 (license license:expat)))
11431 (define-public python2-ukpostcodeparser
11432 (package-with-python2 python-ukpostcodeparser))
11434 (define-public python-faker
11436 (name "python-faker")
11440 (uri (pypi-uri "Faker" version))
11443 "13qq485ydxmdnqn3xbfv1xfyqbf9qfnfw33v1vw5l6jyy9p8cgrd"))))
11444 (build-system python-build-system)
11447 (modify-phases %standard-phases
11449 (lambda _ (invoke "python" "-m" "pytest" "-v"))))))
11452 ("python-freezegun" ,python-freezegun)
11453 ("python-pytest" ,python-pytest)
11454 ("python-random2" ,python-random2)
11455 ("python-ukpostcodeparser" ,python-ukpostcodeparser)
11456 ("python-validators" ,python-validators)))
11458 `(("python-dateutil" ,python-dateutil)
11459 ("python-text-unidecode" ,python-text-unidecode)))
11460 (home-page "https://github.com/joke2k/faker")
11461 (synopsis "Python package that generates fake data")
11463 "Faker is a Python package that generates fake data such as names,
11464 addresses, and phone numbers.")
11465 (license license:expat)
11466 (properties `((python2-variant . ,(delay python2-faker))))))
11468 ;; Faker 4.0 dropped Python 2 support, so we stick with this older version here.
11469 (define-public python2-faker
11470 (let ((base (package-with-python2 (strip-python2-variant
11477 (uri (pypi-uri "Faker" version))
11480 "11cr0qvspkdh6198rqy56qildk7bnp6llj8kyy1dan5sp5n4dxy7"))))
11482 `(("python-mock" ,python2-mock)
11483 ,@(package-native-inputs base)))
11485 `(("python2-ipaddress" ,python2-ipaddress)
11486 ("python2-six" ,python2-six)
11487 ,@(package-propagated-inputs base))))))
11489 (define-public python-pyaml
11491 (name "python-pyaml")
11492 (version "18.11.0")
11495 (uri (pypi-uri "pyaml" version))
11498 "0fi604ix8lbpj1266q7js6szm771saprdzzcdwmj43wy83694qmr"))))
11499 (build-system python-build-system)
11501 `(("python-unidecode" ,python-unidecode)))
11503 `(("python-pyyaml" ,python-pyyaml)))
11504 (home-page "https://github.com/mk-fg/pretty-yaml")
11505 (synopsis "YAML pretty-print library for Python")
11507 "pyaml is a PyYAML based python module to produce pretty and readable
11508 YAML-serialized data.")
11509 (license license:wtfpl2)))
11511 (define-public python2-pyaml
11512 (package-with-python2 python-pyaml))
11514 (define-public python-backpack
11516 (name "python-backpack")
11521 (uri (pypi-uri "backpack" version))
11524 "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
11525 (build-system python-build-system)
11527 `(("python-pytest" ,python-pytest)
11528 ("python-nose" ,python-nose)))
11530 `(("python-simplejson" ,python-simplejson)))
11531 (home-page "https://github.com/sdispater/backpack")
11532 (synopsis "Utilities for working with Python collections")
11533 (description "Backpack provides some useful utilities for working with
11534 collections of data.")
11535 (license license:expat)))
11537 (define-public python2-backpack
11538 (package-with-python2 python-backpack))
11540 (define-public python-prompt-toolkit
11542 (name "python-prompt-toolkit")
11547 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
11550 "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
11551 (build-system python-build-system)
11554 (modify-phases %standard-phases
11556 (add-after 'install 'post-install-check
11557 (lambda* (#:key inputs outputs #:allow-other-keys)
11558 ;; HOME is needed for the test
11559 ;; "test_pathcompleter_can_expanduser".
11560 (setenv "HOME" "/tmp")
11561 (add-installed-pythonpath inputs outputs)
11562 (invoke "py.test"))))))
11564 `(("python-wcwidth" ,python-wcwidth)
11565 ("python-six" ,python-six)
11566 ("python-pygments" ,python-pygments)))
11568 `(("python-pytest" ,python-pytest)))
11569 (home-page "https://github.com/jonathanslenders/python-prompt-toolkit")
11570 (synopsis "Library for building command line interfaces in Python")
11572 "Prompt-Toolkit is a library for building interactive command line
11573 interfaces in Python. It's like GNU Readline but it also features syntax
11574 highlighting while typing, out-of-the-box multi-line input editing, advanced
11575 code completion, incremental search, support for Chinese double-width
11576 characters, mouse support, and auto suggestions.")
11577 (license license:bsd-3)))
11579 (define-public python2-prompt-toolkit
11580 (package-with-python2 python-prompt-toolkit))
11582 (define-public python-prompt-toolkit-1
11583 (package (inherit python-prompt-toolkit)
11588 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
11591 "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))))
11593 (define-public python2-prompt-toolkit-1
11594 (package-with-python2 python-prompt-toolkit-1))
11596 (define-public python-jedi
11598 (name "python-jedi")
11603 (uri (pypi-uri "jedi" version))
11604 (patches (search-patches "python-jedi-deleted-variables.patch"))
11607 "1mb5kmrk9bkc3kwzx02j62cdan1jqd92q1z7h7wi9d30jg5p3j6m"))))
11608 (build-system python-build-system)
11611 (modify-phases %standard-phases
11614 (setenv "HOME" "/tmp")
11615 (invoke "python" "-m" "pytest"))))))
11617 `(("python-pytest" ,python-pytest)
11618 ("python-docopt" ,python-docopt)))
11620 `(("python-parso" ,python-parso)))
11621 (home-page "https://github.com/davidhalter/jedi")
11622 (synopsis "Autocompletion and static analysis library for Python")
11624 "Jedi is a static analysis tool for Python that can be used in Integrated
11625 Development Environments (@dfn{IDE}s) and text editors. It understands Python
11626 on a deeper level than many other static analysis frameworks for Python.
11628 Jedi understands docstrings and you can use Jedi autocompletion in your REPL as
11630 (license license:expat)))
11632 (define-public python2-jedi
11633 (package-with-python2 python-jedi))
11635 ;; python-language-server requires 0.15 specifically. Remove once unused.
11636 (define-public python-jedi-0.15
11638 (inherit python-jedi)
11642 (uri (pypi-uri "jedi" version))
11645 "01zqasl690x1i6dq4mvh13pz0cw8i276xsivsrnn00x90iqm42g9"))))
11647 `(("python-parso" ,python-parso-0.5)))))
11649 (define-public ptpython
11655 (uri (pypi-uri "ptpython" version))
11658 "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
11659 (build-system python-build-system)
11661 '(#:tests? #f)) ; FIXME: No tests in pypi tarball.
11663 `(("python-docopt" ,python-docopt)
11664 ("python-jedi" ,python-jedi)
11665 ("python-prompt-toolkit" ,python-prompt-toolkit)
11666 ("python-pygments" ,python-pygments)))
11667 (home-page "https://github.com/jonathanslenders/ptpython")
11668 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
11670 "ptpython is a Python read-eval-print loop with IDE-like features.
11671 It supports syntax highlighting, multiline editing, autocompletion, mouse,
11672 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
11674 (license license:bsd-3)
11675 (properties `((python2-variant . ,(delay ptpython-2))))))
11677 (define-public ptpython-2
11678 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
11681 (name "ptpython2"))))
11683 (define-public python-stem
11685 (name "python-stem")
11690 (uri (pypi-uri "stem" version))
11693 "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"))))
11694 (build-system python-build-system)
11697 (modify-phases %standard-phases
11700 (invoke "./run_tests.py" "--unit")
11703 `(("python-mock" ,python-mock)
11704 ("python-pycodestyle" ,python-pycodestyle)
11705 ("python-pyflakes" ,python-pyflakes)))
11706 (home-page "https://stem.torproject.org/")
11708 "Python controller library that allows applications to interact with Tor")
11710 "Stem is a Python controller library for Tor. With it you can use Tor's
11711 control protocol to script against the Tor process and read descriptor data
11712 relays publish about themselves.")
11713 (license license:lgpl3)))
11715 (define-public python2-stem
11716 (package-with-python2 python-stem))
11718 (define-public python-pyserial
11720 (name "python-pyserial")
11725 (uri (pypi-uri "pyserial" version))
11728 "09y68bczw324a4jb9a1cfwrbjhq179vnfkkkrybbksp0vqgl0bbf"))))
11729 (build-system python-build-system)
11731 '(#:tests? #f)) ; FIXME: 3/49 tests are failing.
11733 ;; (modify-phases %standard-phases
11736 ;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
11738 "https://github.com/pyserial/pyserial")
11739 (synopsis "Python Serial Port Bindings")
11740 (description "@code{pyserial} provide serial port bindings for Python. It
11741 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
11742 and/or Xon/Xoff. The port is accessed in RAW mode.")
11743 (license license:bsd-3)))
11745 (define-public python2-pyserial
11746 (package-with-python2 python-pyserial))
11748 (define-public python-kivy
11750 (name "python-kivy")
11755 (uri (pypi-uri "Kivy" version))
11756 (file-name (string-append name "-" version ".tar.gz"))
11759 "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw"))))
11760 (build-system python-build-system)
11762 `(#:tests? #f ; Tests require many optional packages
11764 (modify-phases %standard-phases
11765 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
11766 (lambda* (#:key inputs #:allow-other-keys)
11767 (setenv "KIVY_SDL2_PATH"
11768 (string-append (assoc-ref inputs "sdl-union")
11772 `(("pkg-config" ,pkg-config)
11773 ("python-cython" ,python-cython)))
11775 `(("gstreamer" ,gstreamer)
11778 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
11779 (home-page "https://kivy.org")
11781 "Multitouch application framework")
11783 "A software library for rapid development of
11784 hardware-accelerated multitouch applications.")
11785 (license license:expat)))
11787 (define-public python2-kivy
11788 (package-with-python2 python-kivy))
11790 (define-public python-binaryornot
11792 (name "python-binaryornot")
11796 (uri (pypi-uri "binaryornot" version))
11799 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
11800 (build-system python-build-system)
11803 (modify-phases %standard-phases
11804 (add-after 'unpack 'patch-tests
11806 ;; TypeError: binary() got an unexpected keyword argument
11808 (substitute* "tests/test_check.py"
11809 (("average_size=512") ""))
11812 `(("python-chardet" ,python-chardet)
11813 ("python-hypothesis" ,python-hypothesis)))
11814 (home-page "https://github.com/audreyr/binaryornot")
11815 (synopsis "Package to check if a file is binary or text")
11816 (description "Ultra-lightweight pure Python package to check if a file is
11818 (license license:bsd-3)
11819 (properties `((python2-variant . ,(delay python2-binaryornot))))))
11821 (define-public python2-binaryornot
11822 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
11823 (package (inherit base)
11825 `(("python2-enum34" ,python2-enum34)
11826 ,@(package-propagated-inputs base))))))
11828 (define-public python-binwalk
11830 (name "python-binwalk")
11835 (uri (git-reference
11836 (url "https://github.com/ReFirmLabs/binwalk")
11837 (commit (string-append "v" version))))
11838 (file-name (git-file-name name version))
11841 "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc"))))
11842 (build-system python-build-system)
11845 (modify-phases %standard-phases
11846 (add-before 'check 'set-pythonpath
11848 (setenv "PYTHONPATH"
11851 ":" (getenv "PYTHONPATH")))
11855 `(("python-coverage" ,python-coverage)
11856 ("python-nose" ,python-nose)))
11857 (home-page "https://github.com/ReFirmLabs/binwalk")
11858 (synopsis "Firmware analysis tool")
11859 (description "Binwalk is a tool for analyzing, reverse engineering, and
11860 extracting firmware images")
11861 (license license:expat)))
11863 (define-public python-nltk
11865 (name "python-nltk")
11869 (uri (pypi-uri "nltk" version))
11872 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
11873 (build-system python-build-system)
11875 '(;; The tests require some extra resources to be downloaded.
11876 ;; TODO Try packaging these resources.
11878 (home-page "http://nltk.org/")
11879 (synopsis "Natural Language Toolkit")
11880 (description "It provides interfaces to over 50 corpora and lexical
11881 resources such as WordNet, along with a suite of text processing libraries
11882 for classification, tokenization, stemming, tagging, parsing, and semantic
11883 reasoning, wrappers for natural language processing libraries.")
11884 (license license:asl2.0)))
11886 (define-public python2-nltk
11887 (package-with-python2 python-nltk))
11889 (define-public python-pymongo
11891 (name "python-pymongo")
11895 (uri (pypi-uri "pymongo" version))
11898 "0zis4707r9hdg5qgkhp3wss9camr9h56ixyfc8n9dxwlnnly4x4c"))))
11899 (build-system python-build-system)
11901 `(("python-certifi" ,python-certifi)))
11902 (home-page "https://github.com/mongodb/mongo-python-driver")
11903 (synopsis "Python driver for MongoDB")
11904 (description "Python driver for MongoDB.")
11905 (license license:asl2.0)))
11907 (define-public python2-pymongo
11908 (package-with-python2 python-pymongo))
11910 (define-public python-consul
11912 (name "python-consul")
11917 (uri (pypi-uri "python-consul" version))
11920 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
11921 (build-system python-build-system)
11923 '(#:tests? #f)) ; The tests are not distributed
11925 `(("python-requests" ,python-requests)
11926 ("python-six" ,python-six)))
11927 (home-page "https://github.com/cablehead/python-consul")
11928 (synopsis "Python client for Consul")
11930 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
11931 discovery, monitoring and configuration.")
11932 (license license:expat)))
11934 (define-public python2-consul
11935 (package-with-python2 python-consul))
11937 (define-public python-schematics
11939 (name "python-schematics")
11944 (uri (git-reference
11945 (url "https://github.com/schematics/schematics.git")
11946 (commit (string-append "v" version))))
11947 (file-name (git-file-name name version))
11949 (base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd"))))
11950 (build-system python-build-system)
11952 `(("python-six" ,python-six)))
11954 ;; The tests require a bunch of not very nice packages with fixed
11955 ;; version requirements (e.g. python-coveralls).
11957 (home-page "https://github.com/schematics/schematics")
11958 (synopsis "Python Data Structures for Humans")
11959 (description "Python Data Structures for Humans.")
11960 (license license:bsd-3)))
11962 (define-public python2-schematics
11963 (package-with-python2 python-schematics))
11965 (define-public python-odfpy
11967 (name "python-odfpy")
11971 (uri (pypi-uri "odfpy" version))
11974 "1a6ms0w9zfhhkqhvrnynwwbxrivw6hgjc0s5k7j06npc7rq0blxw"))))
11976 `(#:modules ((srfi srfi-1)
11977 (guix build python-build-system)
11978 (guix build utils))
11980 (modify-phases %standard-phases
11982 ;; The test runner invokes python2 and python3 for test*.py.
11983 ;; To avoid having both in inputs, we replicate it here.
11985 (for-each (lambda (test-file) (invoke "python" test-file))
11986 (find-files "tests" "^test.*\\.py$"))
11988 (build-system python-build-system)
11989 (home-page "https://github.com/eea/odfpy")
11990 (synopsis "Python API and tools to manipulate OpenDocument files")
11991 (description "Collection of libraries and utility programs written in
11992 Python to manipulate OpenDocument 1.2 files.")
11994 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
11995 ;; number of files with other licenses.
11996 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
11998 (define-public python2-odfpy
11999 (package-with-python2 python-odfpy))
12001 (define-public python-natsort
12003 (name "python-natsort")
12007 (uri (pypi-uri "natsort" version))
12010 "1ksqfai72dbcfbwx43pxl658j59mx2rvqypjy1fk0ax2qd6lccx6"))))
12011 (build-system python-build-system)
12013 `(#:modules ((guix build utils)
12014 (guix build python-build-system)
12019 (modify-phases %standard-phases
12020 (add-before 'check 'set-cachedir
12021 ;; Tests require write access to $HOME by default
12022 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))
12025 (let ((cwd (getcwd)))
12026 (setenv "PYTHONPATH"
12029 (find (cut string-prefix? "lib" <>)
12030 (scandir (string-append cwd "/build")))
12032 (getenv "PYTHONPATH")))
12033 (invoke "pytest" "-v")))))))
12035 `(("python-hypothesis" ,python-hypothesis)
12036 ("python-pytest-cov" ,python-pytest-cov)
12037 ("python-pytest-mock" ,python-pytest-mock)
12038 ("python-pytest" ,python-pytest)))
12039 (propagated-inputs ; TODO: Add python-fastnumbers.
12040 `(("python-pyicu" ,python-pyicu)))
12041 (home-page "https://github.com/SethMMorton/natsort")
12042 (synopsis "Natural sorting for python and shell")
12044 "Natsort lets you apply natural sorting on lists instead of
12045 lexicographical. If you use the built-in @code{sorted} method in python
12046 on a list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4},
12047 @code{a10}]}, it would be returned as @code{[@code{a1}, @code{a10}, @code{a20},
12048 @code{a4}, @code{a9}]}. Natsort provides a function @code{natsorted} that
12049 identifies numbers and sorts them separately from strings. It can also sort
12050 version numbers, real numbers, mixed types and more, and comes with a shell
12051 command @command{natsort} that exposes this functionality in the command line.")
12052 (license license:expat)
12053 (properties `((python2-variant . ,(delay python2-natsort))))))
12055 ;; Natsort 6.x are the last versions with support for Python 2.
12056 (define-public python2-natsort
12057 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
12058 (package (inherit base)
12062 (uri (pypi-uri "natsort" version))
12065 "1mc9hbh6fv76xyz13frm7dgi05cf74f9j5wvcyjiy5234gylz565"))))
12067 `(("python2-pathlib" ,python2-pathlib)
12068 ,@(package-native-inputs base))))))
12070 (define-public glances
12077 (uri (pypi-uri "Glances" version))
12079 (base32 "0dc47gbvp9a3wxppdqihxpglxxaxbj3hcvzgcxxq8zcsciah3plq"))
12080 (modules '((guix build utils)))
12083 ;; Glances phones PyPI for weekly update checks by default.
12084 ;; Disable these. The user can re-enable them if desired.
12085 (substitute* "glances/outdated.py"
12086 (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
12087 (string-append indentation
12088 "self.args.disable_check_update = True\n"
12091 (build-system python-build-system)
12093 `(("python-future" ,python-future)
12094 ("python-psutil" ,python-psutil)))
12095 (home-page "https://github.com/nicolargo/glances")
12096 (synopsis "Cross-platform curses-based monitoring tool")
12098 "Glances is a curses-based monitoring tool for a wide variety of platforms.
12099 Glances uses the PsUtil library to get information from your system. It
12100 monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
12101 (license license:lgpl3+)))
12103 (define-public python-glances
12104 (deprecated-package "python-glances" glances))
12106 (define-public python-graphql-core
12108 (name "python-graphql-core")
12113 (uri (pypi-uri "graphql-core" version))
12116 "0rsaarx2sj4xnw9966rhh4haiqaapm4lm2mfqm48ywd51j5vh1a0"))))
12117 (build-system python-build-system)
12119 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
12121 (modify-phases %standard-phases
12122 (add-after 'unpack 'patch-hardcoded-version
12123 (lambda _ (substitute*
12125 (("'gevent==1.1rc1'") "'gevent'"))
12128 `(("python-gevent" ,python-gevent)
12129 ("python-mock" ,python-mock)
12130 ("python-pytest-mock" ,python-pytest-mock)))
12132 `(("python-promise" ,python-promise)
12133 ("python-six" ,python-six)))
12134 (home-page "https://github.com/graphql-python/graphql-core")
12135 (synopsis "GraphQL implementation for Python")
12137 "GraphQL implementation for Python. GraphQL is a data query language and
12138 runtime designed and used to request and deliver data to mobile and web apps.
12139 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
12141 (license license:expat)))
12143 (define-public python2-graphql-core
12144 (package-with-python2 python-graphql-core))
12146 (define-public python-graphql-relay
12148 (name "python-graphql-relay")
12153 (uri (pypi-uri "graphql-relay" version))
12156 "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7"))))
12157 (build-system python-build-system)
12159 '(#:tests? #f)) ; The tests are not distributed
12161 `(("python-graphql-core" ,python-graphql-core)
12162 ("python-promise" ,python-promise)
12163 ("python-six" ,python-six)))
12164 (home-page "https://github.com/graphql-python/graphql-relay-py")
12165 (synopsis "Relay implementation for Python")
12167 "This is a library to allow the easy creation of Relay-compliant servers
12168 using the GraphQL Python reference implementation of a GraphQL server. It
12169 should be noted that the code is a exact port of the original
12170 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
12172 (license license:expat)))
12174 (define-public python2-graphql-relay
12175 (package-with-python2 python-graphql-relay))
12177 (define-public python-graphene
12179 (name "python-graphene")
12184 (uri (pypi-uri "graphene" version))
12187 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
12188 (build-system python-build-system)
12190 `(("python-graphql-core" ,python-graphql-core)
12191 ("python-graphql-relay" ,python-graphql-relay)
12192 ("python-iso8601" ,python-iso8601)
12193 ("python-promise" ,python-promise)
12194 ("python-six" ,python-six)))
12196 `(#:tests? #f)) ; no tests/ in the PyPI tarball
12197 (home-page "https://graphene-python.org/")
12198 (synopsis "GraphQL Framework for Python")
12200 "Graphene is a Python library for building GraphQL schemas/types.
12201 A GraphQL schema describes your data model, and provides a GraphQL server
12202 with an associated set of resolve methods that know how to fetch data.")
12203 (properties `((python2-variant . ,(delay python2-graphene))))
12204 (license license:expat)))
12206 (define-public python2-graphene
12207 (let ((base (package-with-python2
12208 (strip-python2-variant python-graphene))))
12209 (package (inherit base)
12211 `(("python2-sqlalchemy" ,python2-sqlalchemy)
12212 ,@(package-native-inputs base))))))
12214 (define-public python-nautilus
12216 (name "python-nautilus")
12221 (uri (pypi-uri "nautilus" version))
12224 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
12225 (build-system python-build-system)
12226 (arguments `(#:tests? #f)) ; fails to import test modules
12228 `(("python-bcrypt" ,python-bcrypt)
12229 ("python-click" ,python-click)
12230 ("python-consul" ,python-consul)
12231 ("python-graphene" ,python-graphene)
12232 ("python-jinja2" ,python-jinja2)
12233 ("python-peewee" ,python-peewee)
12234 ("python-pika" ,python-pika)
12235 ("python-tornado" ,python-tornado)
12236 ("python-wtforms" ,python-wtforms)))
12238 `(("python-nose2" ,python-nose2)))
12239 (home-page "https://github.com/AlecAivazis/nautilus")
12240 (synopsis "Library for creating microservice applications")
12242 "Nautilus is a framework for flux based microservices that looks to
12243 provide extendible implementations of common aspects of a cloud so that you can
12244 focus on building massively scalable web applications.")
12245 (license license:expat)))
12247 (define-public python-random2
12249 (name "python-random2")
12253 (uri (pypi-uri "random2" version ".zip"))
12256 "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))))
12257 (build-system python-build-system)
12258 (native-inputs `(("unzip" ,unzip)))
12259 (home-page "http://pypi.python.org/pypi/random2")
12260 (synopsis "Python 3 version of the Python 2 @code{random} module")
12262 "This package provides a Python 3 ported version of Python 2.7’s
12263 @code{random} module. It has also been back-ported to work in Python 2.6.
12265 In Python 3, the implementation of @code{randrange()} was changed, so that
12266 even with the same seed you get different sequences in Python 2 and 3.
12268 This package closes that gap, allowing stable random number generation
12269 between the different Python versions.")
12270 (license license:psfl)))
12272 (define-public python2-random2
12273 (package-with-python2 python-random2))
12275 (define-public python-snowballstemmer
12277 (name "python-snowballstemmer")
12281 (uri (pypi-uri "snowballstemmer" version))
12284 "0ligk61idlz8kkgd5hpip5whm172riwglb6xydii7h62yhysqfyz"))))
12285 (build-system python-build-system)
12287 `(;; No tests exist
12289 (home-page "https://github.com/shibukawa/snowball_py")
12290 (synopsis "Snowball stemming library collection for Python")
12291 (description "This package provides 16 word stemmer algorithms generated
12292 from Snowball algorithms. It includes the 15 original ones plus the Poerter
12294 (license license:bsd-3)))
12296 (define-public python2-snowballstemmer
12297 (package-with-python2 python-snowballstemmer))
12299 (define-public python-setproctitle
12301 (name "python-setproctitle")
12306 (uri (pypi-uri "setproctitle" version))
12309 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
12310 (build-system python-build-system)
12313 (modify-phases %standard-phases
12314 (add-before 'check 'patch-Makefile
12315 ;; Stricly this is only required for the python2 variant.
12316 ;; But adding a phase in an inherited package seems to be
12317 ;; cumbersum. So we patch even for python3.
12319 (let ((nose (assoc-ref %build-inputs "python2-nose")))
12321 (substitute* "Makefile"
12322 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
12323 (string-append nose "/bin/nosetests "))))
12327 (setenv "PYTHON" (or (which "python3") (which "python")))
12328 (setenv "PYCONFIG" (or (which "python3-config")
12329 (which "python-config")))
12330 (setenv "CC" "gcc")
12331 ;; No need to extend PYTHONPATH to find the built package, since
12332 ;; the Makefile will build anyway
12333 (invoke "make" "check"))))))
12335 `(("procps" ,procps))) ; required for tests
12337 "https://github.com/dvarrazzo/py-setproctitle")
12339 "Setproctitle implementation for Python to customize the process title")
12340 (description "The library allows a process to change its title (as displayed
12341 by system tools such as ps and top).
12343 Changing the title is mostly useful in multi-process systems, for
12344 example when a master process is forked: changing the children's title
12345 allows to identify the task each process is busy with. The technique
12346 is used by PostgreSQL and the OpenSSH Server for example.")
12347 (license license:bsd-3)
12348 (properties `((python2-variant . ,(delay python2-setproctitle))))))
12350 (define-public python2-setproctitle
12351 (let ((base (package-with-python2
12352 (strip-python2-variant python-setproctitle))))
12355 (native-inputs `(("python2-nose" ,python2-nose)
12356 ,@(package-native-inputs base))))))
12358 (define-public python-validictory
12360 (name "python-validictory")
12365 (uri (pypi-uri "validictory" version))
12368 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
12369 (build-system python-build-system)
12372 (modify-phases %standard-phases
12373 (add-after 'unpack 'bootstrap
12374 ;; Move the tests out of the package directory to avoid
12377 (rename-file "validictory/tests" "tests")
12378 (delete-file "tests/__init__.py")))
12381 ;; Extend PYTHONPATH so the built package will be found.
12382 (setenv "PYTHONPATH"
12383 (string-append (getcwd) "/build/lib:"
12384 (getenv "PYTHONPATH")))
12385 (invoke "py.test" "-vv" ))))))
12387 `(("python-pytest" ,python-pytest)))
12389 "https://github.com/jamesturk/validictory")
12390 (synopsis "General purpose Python data validator")
12391 (description "It allows validation of arbitrary Python data structures.
12393 The schema format is based on the JSON Schema
12394 proposal (http://json-schema.org), so combined with json the library is also
12395 useful as a validator for JSON data.")
12396 (license license:expat)))
12398 (define-public python2-validictory
12399 (package-with-python2 python-validictory))
12401 (define-public python-pyelftools
12403 (name "python-pyelftools")
12408 (uri (pypi-uri "pyelftools" version))
12411 "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9"))))
12412 (build-system python-build-system)
12415 (modify-phases %standard-phases
12416 (add-before 'check 'set-pythonpath
12418 (setenv "PYTHONPATH"
12421 ":" (getenv "PYTHONPATH")))
12424 "https://github.com/eliben/pyelftools")
12426 "Analyze binary and library file information")
12427 (description "This Python library provides interfaces for parsing and
12428 analyzing two binary and library file formats; the Executable and Linking
12429 Format (ELF), and debugging information in the Debugging With Attributed
12430 Record Format (DWARF).")
12431 (license license:public-domain)))
12433 (define-public python-pyev
12435 (name "python-pyev")
12440 (uri (pypi-uri "pyev" version))
12443 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
12444 (build-system python-build-system)
12446 `(#:tests? #f ; no test suite
12448 (modify-phases %standard-phases
12449 (add-after 'unpack 'patch
12450 (lambda* (#:key inputs #:allow-other-keys)
12451 (let ((libev (string-append (assoc-ref inputs "libev")
12452 "/lib/libev.so.4")))
12453 (substitute* "setup.py"
12454 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
12455 (string-append "libev_dll_name = \"" libev "\"")))))))))
12457 `(("libev" ,libev)))
12458 (home-page "http://pythonhosted.org/pyev/")
12459 (synopsis "Python libev interface")
12460 (description "Pyev provides a Python interface to libev.")
12461 (license license:gpl3)))
12463 (define-public python2-pyev
12464 (package-with-python2 python-pyev))
12466 (define-public python-imagesize
12468 (name "python-imagesize")
12473 (uri (pypi-uri "imagesize" version))
12476 "1cd24x0vqbd6c8ym1n21qc0aj54mfb7rzdqglmwk9xxixajbbxmi"))))
12477 (build-system python-build-system)
12478 (home-page "https://github.com/shibukawa/imagesize_py")
12479 (synopsis "Gets image size of files in various formats in Python")
12481 "This package allows determination of image size from
12482 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
12483 (license license:expat)))
12485 (define-public python2-imagesize
12486 (package-with-python2 python-imagesize))
12488 (define-public python-termstyle
12490 (name "python-termstyle")
12495 (uri (pypi-uri "termstyle" version))
12498 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
12499 (build-system python-build-system)
12502 (modify-phases %standard-phases
12505 (invoke "python" "test3.py"))))))
12506 (home-page "https://github.com/gfxmonk/termstyle")
12507 (synopsis "Console text coloring for Python")
12508 (description "This package provides console text coloring for Python.")
12509 (license license:bsd-3)))
12511 (define-public python-argcomplete
12513 (name "python-argcomplete")
12518 (uri (pypi-uri "argcomplete" version))
12521 "02jkc44drb0yjz6x28lvg6rj607n8r2irdpdvyylm8xnycn54zx3"))))
12522 (build-system python-build-system)
12525 (modify-phases %standard-phases
12526 (add-after 'unpack 'embed-tool-references
12528 (substitute* "argcomplete/bash_completion.d/python-argcomplete.sh"
12530 (string-append " " (which "grep")))
12532 (string-append " " (which "egrep")))
12534 (string-append "elif " (which "which")))
12536 (string-append "$(" (which "which"))))
12542 `(("python-coverage" ,python-coverage)
12543 ("python-flake8" ,python-flake8)
12544 ("python-pexpect" ,python-pexpect)
12545 ("python-wheel" ,python-wheel)
12548 ("bash-full" ,bash))) ;full Bash for 'test_file_completion'
12549 (home-page "https://github.com/kislyuk/argcomplete")
12550 (synopsis "Shell tab completion for Python argparse")
12551 (description "argcomplete provides extensible command line tab completion
12552 of arguments and options for Python scripts using @code{argparse}. It's
12553 particularly useful for programs with many options or sub-parsers that can
12554 dynamically suggest completions; for example, when browsing resources over the
12556 (license license:asl2.0)))
12558 (define-public python2-argcomplete
12559 (package-with-python2 python-argcomplete))
12561 (define-public python-xopen
12563 (name "python-xopen")
12568 (uri (pypi-uri "xopen" version))
12571 "17xbrgi23l87yg6h0qcknssp2q812miiy33qw6v45v5gx0jwv5xh"))))
12572 (build-system python-build-system)
12574 `(("python-setuptools-scm" ,python-setuptools-scm)))
12575 (home-page "https://github.com/marcelm/xopen/")
12576 (synopsis "Open compressed files transparently")
12577 (description "This module provides an @code{xopen} function that works like
12578 Python's built-in @code{open} function, but can also deal with compressed files.
12579 Supported compression formats are gzip, bzip2 and, xz, and are automatically
12580 recognized by their file extensions. The focus is on being as efficient as
12581 possible on all supported Python versions.")
12582 (license license:expat)))
12584 (define-public python2-xopen
12585 (let ((base (package-with-python2
12586 (strip-python2-variant python-xopen))))
12589 (propagated-inputs `(("python2-bz2file" ,python2-bz2file)
12590 ,@(package-propagated-inputs base))))))
12592 (define-public python-cheetah
12594 (name "python-cheetah")
12599 (uri (pypi-uri "Cheetah3" version))
12602 "1ihag9cxll6b86fc8v5lkhmr3brdbi4yiz16zpgw79yylmv8fgr9"))))
12603 (build-system python-build-system)
12605 `(#:modules ((guix build utils)
12606 (guix build python-build-system)
12610 #:phases (modify-phases %standard-phases
12611 (add-after 'unpack 'use-absolute-python
12613 (substitute* "Cheetah/CheetahWrapper.py"
12614 (("#!/usr/bin/env python")
12615 (string-append "#!" (which "python"))))
12619 (let ((cwd (getcwd)))
12620 (setenv "PYTHONPATH"
12623 (find (cut string-prefix? "lib" <>)
12624 (scandir (string-append cwd "/build")))
12625 ":" (getenv "PYTHONPATH")))
12627 (string-append (getenv "PATH")
12629 (setenv "TMPDIR" "/tmp")
12631 (substitute* "Cheetah/Tests/Test.py"
12632 (("unittest.TextTestRunner\\(\\)")
12633 "unittest.TextTestRunner(verbosity=2)"))
12635 (invoke "python" "Cheetah/Tests/Test.py")))))))
12637 `(("python-markdown" ,python-markdown))) ;optional
12638 (home-page "https://cheetahtemplate.org/")
12639 (synopsis "Template engine")
12640 (description "Cheetah is a text-based template engine and Python code
12643 Cheetah can be used as a standalone templating utility or referenced as
12644 a library from other Python applications. It has many potential uses,
12645 but web developers looking for a viable alternative to ASP, JSP, PHP and
12646 PSP are expected to be its principle user group.
12650 @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
12652 @item Cleanly separates content, graphic design, and program code.
12653 @item Blends the power and flexibility of Python with a simple template language
12654 that non-programmers can understand.
12655 @item Gives template writers full access to any Python data structure, module,
12656 function, object, or method in their templates.
12657 @item Makes code reuse easy by providing an object-orientated interface to
12658 templates that is accessible from Python code or other Cheetah templates.
12659 One template can subclass another and selectively reimplement sections of it.
12660 @item Provides a simple, yet powerful, caching mechanism that can dramatically
12661 improve the performance of a dynamic website.
12662 @item Compiles templates into optimized, yet readable, Python code.
12664 (license (license:x11-style "file://LICENSE"))))
12666 (define-public python2-cheetah
12667 (package-with-python2 python-cheetah))
12669 (define-public python-dulwich
12671 (name "python-dulwich")
12676 (uri (list (string-append "https://www.dulwich.io/releases/"
12677 "dulwich-" version ".tar.gz")
12678 (pypi-uri "dulwich" version)))
12681 "1aa1xfrxkc3j9s4xi0llhf5gndyi9ryprcxsqfa5fcb8ph34981q"))))
12682 (build-system python-build-system)
12685 (modify-phases %standard-phases
12686 (add-before 'check 'fix-tests
12687 (lambda* (#:key inputs #:allow-other-keys)
12688 ;; The tests use Popen with a custom environment which doesn't
12690 (substitute* "dulwich/tests/compat/utils.py"
12691 (("'git'") (string-append "'"
12694 (substitute* '("dulwich/tests/test_repository.py"
12695 "dulwich/tests/test_hooks.py")
12696 (("#!/bin/sh") (string-append "#!" (which "sh"))))
12697 (setenv "TEST_RUNNER" "unittest")
12698 (setenv "PYTHONHASHSEED" "random")
12701 `(("python-fastimport" ,python-fastimport)))
12703 `(("python-mock" ,python-mock)
12704 ("python-geventhttpclient" ,python-geventhttpclient)
12706 (home-page "https://www.dulwich.io/")
12707 (synopsis "Git implementation in Python")
12708 (description "Dulwich is an implementation of the Git file formats and
12709 protocols written in pure Python.")
12710 ;; Can be used with either license.
12711 (license (list license:asl2.0 license:gpl2+))))
12713 (define-public python2-dulwich
12714 (package-with-python2 python-dulwich))
12716 (define-public python-pbkdf2
12718 (name "python-pbkdf2")
12723 (uri (pypi-uri "pbkdf2" version))
12726 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
12727 (build-system python-build-system)
12730 (modify-phases %standard-phases
12733 (setenv "PYTHONPATH"
12734 (string-append (getcwd) "/build/lib:"
12735 (getenv "PYTHONPATH")))
12736 (invoke "python" "test/test_pbkdf2.py"))))))
12738 `(("python-pycrypto" ,python-pycrypto))) ; optional
12739 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
12740 (synopsis "Password-based key derivation")
12741 (description "This module implements the password-based key derivation
12742 function, PBKDF2, specified in RSA PKCS#5 v2.0.
12744 PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
12745 is part of the RSA Public Key Cryptography Standards series. The provided
12746 implementation takes a password or a passphrase and a salt value (and
12747 optionally a iteration count, a digest module, and a MAC module) and provides
12748 a file-like object from which an arbitrarly-sized key can be read.")
12749 (license license:expat)))
12751 (define-public python2-pbkdf2
12752 (package-with-python2 python-pbkdf2))
12754 (define-public python-qrcode
12756 (name "python-qrcode")
12761 (uri (pypi-uri "qrcode" version))
12763 (base32 "0sa3n298b9jpz6zn0birnjii3mg9sihjq28n9nzjlzv09y2m6ljh"))))
12764 (build-system python-build-system)
12766 ;; FIXME: Tests require packaging 'pymaging'.
12769 `(("python-lxml" ,python-lxml) ; for SVG output
12770 ("python-pillow" ,python-pillow) ; for PNG output
12771 ("python-six" ,python-six)))
12772 (home-page "https://github.com/lincolnloop/python-qrcode")
12773 (synopsis "QR Code image generator")
12774 (description "This package provides a pure Python QR Code generator
12775 module. It uses the Python Imaging Library (PIL) to allow for the generation
12778 In addition this package provides a command line tool to generate QR codes and
12779 either write these QR codes to a file or do the output as ascii art at the
12781 (license license:bsd-3)))
12783 (define-public python2-qrcode
12784 (package-with-python2 python-qrcode))
12786 (define-public python-rst2ansi
12788 (name "python-rst2ansi")
12793 (uri (pypi-uri "rst2ansi" version))
12796 "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
12797 (build-system python-build-system)
12799 `(("python-docutils" ,python-docutils)))
12800 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
12801 (synopsis "Convert RST to ANSI-decorated console output")
12803 "Python module dedicated to rendering RST (reStructuredText) documents
12804 to ansi-escaped strings suitable for display in a terminal.")
12805 (license license:expat)))
12807 (define-public python-ansi2html
12809 (name "python-ansi2html")
12814 (uri (pypi-uri "ansi2html" version))
12817 "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
12818 (build-system python-build-system)
12820 `(("python-mock" ,python-mock)
12821 ("python-nose" ,python-nose)))
12823 `(("python-six" ,python-six)))
12824 (home-page "https://github.com/ralphbean/ansi2html")
12825 (synopsis "Convert ANSI-decorated console output to HTML")
12827 "@command{ansi2html} is a Python library and command line utility for
12828 convering text with ANSI color codes to HTML or LaTeX.")
12829 (license license:gpl3+)))
12831 (define-public python2-ansi2html
12832 (package-with-python2 python-ansi2html))
12834 (define-public python-ddt
12836 (name "python-ddt")
12841 (uri (pypi-uri "ddt" version))
12844 "1lw17420iimhghkgzgax85nn8d1an2d6k2cfvb7j5kwn2dqlr1vk"))))
12845 (build-system python-build-system)
12847 `(("python-mock" ,python-mock)
12848 ("python-nose" ,python-nose)))
12850 `(("python-six" ,python-six)
12851 ("python-pyyaml" ,python-pyyaml)))
12852 (home-page "https://github.com/txels/ddt")
12853 (synopsis "Data-Driven Tests")
12855 "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
12856 running it with different test data, and make it appear as multiple test
12858 (license license:expat)))
12860 (define-public python2-ddt
12861 (package-with-python2 python-ddt))
12863 (define-public python-pycountry
12865 (name "python-pycountry")
12866 (version "18.5.26")
12870 (uri (pypi-uri "pycountry" version))
12873 "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz"))))
12874 (build-system python-build-system)
12875 (home-page "https://bitbucket.org/flyingcircus/pycountry")
12876 (synopsis "ISO databases for languages, countries, currencies, etc.")
12878 "@code{pycountry} provides the ISO databases for the standards:
12880 @item 639-3 (Languages)
12881 @item 3166 (Countries)
12882 @item 3166-3 (Deleted Countries)
12883 @item 3166-2 (Subdivisions of countries)
12884 @item 4217 (Currencies)
12885 @item 15924 (Scripts)
12887 It includes a copy from Debian’s pkg-isocodes and makes the data accessible
12888 through a Python API.")
12889 (license license:lgpl2.1+)))
12891 (define-public python2-pycountry
12892 (package-with-python2 python-pycountry))
12894 (define-public python-pycosat
12896 (name "python-pycosat")
12901 (uri (pypi-uri "pycosat" version))
12904 "1kl3wh1f47rc712n4bmwplbx3fqz3x9i1b587jrbpmvdva4c8f6l"))))
12905 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
12906 (build-system python-build-system)
12907 (home-page "https://github.com/ContinuumIO/pycosat")
12908 (synopsis "Bindings to picosat (a SAT solver)")
12910 "This package provides efficient Python bindings to @code{picosat} on
12911 the C level. When importing pycosat, the @code{picosat} solver becomes part
12912 of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
12913 Problem} (SAT) solver.")
12914 (license license:expat)))
12916 (define-public python2-pycosat
12917 (package-with-python2 python-pycosat))
12919 (define-public python2-ruamel.ordereddict
12921 (name "python2-ruamel.ordereddict")
12926 (uri (pypi-uri "ruamel.ordereddict" version))
12929 "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
12930 (build-system python-build-system)
12932 `(#:python ,python-2
12934 (modify-phases %standard-phases
12936 (add-after 'install 'check
12937 (lambda* (#:key inputs outputs #:allow-other-keys)
12938 (add-installed-pythonpath inputs outputs)
12939 (invoke "python" "test/testordereddict.py"))))))
12940 (home-page "https://bitbucket.org/ruamel/ordereddict")
12941 (synopsis "Version of dict that keeps keys in insertion order")
12943 "This is an implementation of an ordered dictionary with @dfn{Key
12944 Insertion Order} (KIO: updates of values do not affect the position of the
12945 key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
12946 removed and put at the back). The standard library module @code{OrderedDict},
12947 implemented later, implements a subset of @code{ordereddict} functionality.
12948 Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
12949 Order} (KSO, no sorting function can be specified, but a transform can be
12950 specified to apply on the key before comparison (e.g. @code{string.lower})).")
12951 (license license:expat)))
12953 (define-public python-pypeg2
12955 (name "python-pypeg2")
12960 (uri (pypi-uri "pyPEG2" version))
12963 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
12964 (build-system python-build-system)
12965 (propagated-inputs `(("python-lxml" ,python-lxml)))
12967 ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
12969 (home-page "https://fdik.org/pyPEG/")
12970 (synopsis "Parsering Expression Grammars in Python")
12971 (description "PyPEG is an intrinsic parser interpreter framework for
12972 Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
12973 parse many formal languages.")
12974 (license license:gpl2)))
12976 (define-public python-incremental
12978 (name "python-incremental")
12983 (uri (pypi-uri "incremental" version))
12986 "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
12987 (build-system python-build-system)
12988 (home-page "https://github.com/hawkowl/incremental")
12989 (synopsis "Library for versioning Python projects")
12990 (description "Incremental is a small library that versions your Python
12992 (license license:expat)))
12994 (define-public python2-incremental
12995 (package-with-python2 python-incremental))
12997 (define-public python-invoke
12999 (name "python-invoke")
13000 (home-page "https://www.pyinvoke.org/")
13004 (uri (pypi-uri "invoke" version))
13007 "1nn7gad0rvy492acpyhkrp01zsk86acf34qhsvq4xmm6x39788n5"))))
13008 (build-system python-build-system)
13010 ;; XXX: Requires many dependencies that are not yet in Guix.
13012 (synopsis "Pythonic task execution")
13014 "Invoke is a Python task execution tool and library, drawing inspiration
13015 from various sources to arrive at a powerful and clean feature set. It is
13016 evolved from the Fabric project, but focuses on local and abstract concerns
13017 instead of servers and network commands.")
13018 (license license:bsd-3)))
13020 (define-public python2-invoke
13021 (package-with-python2 python-invoke))
13023 (define-public python-automat
13025 (name "python-automat")
13029 (uri (pypi-uri "Automat" version))
13032 "03ivg70n3b1cbcd2zvjhk8y4kmqxcvhmili39lmgx09dza1qpmyb"))))
13033 (build-system python-build-system)
13034 ;; We disable the tests because they require python-twisted, while
13035 ;; python-twisted depends on python-automat. Twisted is optional, but the
13036 ;; tests fail if it is not available. Also see
13037 ;; <https://github.com/glyph/automat/issues/71>.
13038 (arguments '(#:tests? #f))
13040 `(("python-m2r" ,python-m2r)
13041 ("python-setuptools-scm" ,python-setuptools-scm)
13042 ("python-graphviz" ,python-graphviz)))
13044 `(("python-six" ,python-six)
13045 ("python-attrs" ,python-attrs)))
13046 (home-page "https://github.com/glyph/Automat")
13047 (synopsis "Self-service finite-state machines")
13048 (description "Automat is a library for concise, idiomatic Python
13049 expression of finite-state automata (particularly deterministic finite-state
13051 (license license:expat)))
13053 (define-public python2-automat
13054 (package-with-python2 python-automat))
13056 (define-public python-m2r
13058 (name "python-m2r")
13062 (uri (pypi-uri "m2r" version))
13065 "16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))))
13066 (build-system python-build-system)
13068 `(("python-docutils" ,python-docutils)
13069 ("python-mistune" ,python-mistune)))
13071 `(("python-pygments" ,python-pygments)
13072 ("python-mock" ,python-mock)))
13073 (home-page "https://github.com/miyakogi/m2r")
13074 (synopsis "Markdown to reStructuredText converter")
13075 (description "M2R converts a markdown file including reST markups to valid
13077 (license license:expat)))
13079 (define-public python2-m2r
13080 (package-with-python2 python-m2r))
13082 (define-public python-constantly
13084 (name "python-constantly")
13088 (uri (pypi-uri "constantly" version))
13091 "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
13092 (build-system python-build-system)
13093 (home-page "https://github.com/twisted/constantly")
13094 (synopsis "Symbolic constants in Python")
13095 (description "Constantly is a Python library that provides symbolic
13096 constant support. It includes collections and constants with text, numeric,
13097 and bit flag values.")
13098 (license license:expat)))
13100 (define-public python2-constantly
13101 (package-with-python2 python-constantly))
13103 (define-public python-attrs
13105 (name "python-attrs")
13109 (uri (pypi-uri "attrs" version))
13112 "16g33zr5f449lqc5wgvzpknxryfzrfsxcr6kpgxwn7l5fkv71f7h"))))
13113 (build-system python-build-system)
13115 `(#:modules ((guix build utils)
13116 (guix build python-build-system)
13120 #:phases (modify-phases %standard-phases
13123 (let ((cwd (getcwd)))
13124 (setenv "PYTHONPATH"
13127 (find (cut string-prefix? "lib" <>)
13128 (scandir (string-append cwd "/build")))
13130 (getenv "PYTHONPATH")))
13131 (invoke "python" "-m" "pytest")))))))
13133 `(("python-coverage" ,python-coverage)
13134 ("python-hypothesis" ,python-hypothesis)
13135 ("python-pympler" ,python-pympler)
13136 ("python-pytest" ,python-pytest)
13137 ("python-six" ,python-six)
13138 ("python-sphinx" ,python-sphinx)
13139 ("python-zope-interface" ,python-zope-interface)))
13140 (home-page "https://github.com/python-attrs/attrs/")
13141 (synopsis "Attributes without boilerplate")
13142 (description "@code{attrs} is a Python package with class decorators that
13143 ease the chores of implementing the most common attribute-related object
13145 (license license:expat)))
13147 (define-public python2-attrs
13148 (package-with-python2 python-attrs))
13150 (define-public python-attrs-bootstrap
13152 (inherit python-attrs)
13153 (name "python-attrs-bootstrap")
13154 (native-inputs `())
13155 (arguments `(#:tests? #f))))
13157 (define-public python2-attrs-bootstrap
13158 (package-with-python2 python-attrs-bootstrap))
13160 (define-public python2-cliapp
13162 (name "python2-cliapp")
13163 (version "1.20180812.1")
13167 (uri (string-append
13168 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
13169 version ".tar.gz"))
13172 "1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
13173 (build-system python-build-system)
13175 `(#:python ,python-2
13177 (modify-phases %standard-phases
13178 ;; check phase needs to be run before the build phase. If not,
13179 ;; coverage-test-runner looks for tests for the built source files,
13182 (add-before 'build 'check
13184 ;; Disable python3 tests
13185 (substitute* "check"
13186 (("python3") "# python3"))
13187 (invoke "./check"))))))
13189 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
13190 ("python2-pep8" ,python2-pep8)))
13192 `(("python2-pyaml" ,python2-pyaml)))
13193 (home-page "https://liw.fi/cliapp/")
13194 (synopsis "Python framework for command line programs")
13195 (description "@code{python2-cliapp} is a python framework for
13196 command line programs. It contains the typical stuff such programs
13197 need to do, such as parsing the command line for options, and
13198 iterating over input files.")
13199 (license license:gpl2+)))
13201 (define-public python2-ttystatus
13203 (name "python2-ttystatus")
13208 (uri (string-append
13209 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/ttystatus/snapshot/ttystatus-"
13210 version ".tar.gz"))
13213 "06mdk4d19zw2j3is54gndhzl396g3xc8k52m7i86z69s9hcz71by"))))
13214 (build-system python-build-system)
13216 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
13217 ("python2-pep8" ,python2-pep8)))
13219 `(#:python ,python-2
13221 (modify-phases %standard-phases
13222 ;; check phase needs to be run before the build phase. If not,
13223 ;; coverage-test-runner looks for tests for the built source files,
13226 (add-before 'build 'check
13227 (lambda _ (invoke "make" "check"))))))
13228 (home-page "https://liw.fi/ttystatus/")
13229 (synopsis "Python library for showing progress reporting and
13230 status updates on terminals")
13231 (description "@code{python2-ttystatus} is a python library for
13232 showing progress reporting and status updates on terminals, for
13233 command line programs. Output is automatically adapted to the width
13234 of the terminal: truncated if it does not fit, and resized if the
13235 terminal size changes.")
13236 (license license:gpl3+)))
13238 (define-public python2-tracing
13240 (name "python2-tracing")
13245 (uri (string-append
13246 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-"
13247 version ".tar.gz"))
13250 "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw"))))
13251 (build-system python-build-system)
13253 `(#:python ,python-2))
13254 (home-page "https://liw.fi/tracing/")
13255 (synopsis "Python debug logging helper")
13256 (description "@code{python2-tracing} is a python library for
13257 logging debug messages. It provides a way to turn debugging messages
13258 on and off, based on the filename they occur in. It is much faster
13259 than using @code{logging.Filter} to accomplish the same thing, which
13260 matters when code is run in production mode. The actual logging still
13261 happens using the @code{logging} library.")
13262 (license license:gpl3+)))
13264 (define-public python2-larch
13266 (name "python2-larch")
13267 (version "1.20151025")
13271 (uri (string-append
13272 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-"
13273 version ".tar.gz"))
13274 (patches (search-patches
13275 "python2-larch-coverage-4.0a6-compatibility.patch"))
13278 "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663"))))
13279 (build-system python-build-system)
13281 `(#:python ,python-2
13283 (modify-phases %standard-phases
13284 ;; check phase needs to be run before the build phase. If not,
13285 ;; coverage-test-runner looks for tests for the built source files,
13288 (add-before 'build 'check
13289 (lambda _ (invoke "make" "check"))))))
13291 `(("cmdtest" ,cmdtest)
13292 ("python2-coverage-test-runner" ,python2-coverage-test-runner)))
13294 `(("python2-tracing" ,python2-tracing)))
13295 (home-page "https://liw.fi/larch/")
13296 (synopsis "Python copy-on-write B-tree library")
13297 (description "@code{python2-larch} is an implementation of
13298 particular kind of B-tree, based on research by Ohad Rodeh. See
13299 @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details
13300 on the data structure.
13302 The distinctive feature of this B-tree is that a node is never
13303 (conceptually) modified. Instead, all updates are done by
13304 copy-on-write. This makes it easy to clone a tree, and modify only the
13305 clone, while other processes access the original tree.")
13306 (license license:gpl3+)))
13308 (define-public python-astroid
13310 (name "python-astroid")
13315 (uri (pypi-uri "astroid" version))
13317 (base32 "0fnibsl2cb5mvzbfm7sycj85smx48f8w8m7ks1sqlmpr9ps0gski"))))
13318 (build-system python-build-system)
13320 `(("python-lazy-object-proxy" ,python-lazy-object-proxy)
13321 ("python-six" ,python-six)
13322 ("python-typed-ast" ,python-typed-ast)
13323 ("python-wrapt" ,python-wrapt)))
13325 `(("python-dateutil" ,python-dateutil)
13326 ("python-nose" ,python-nose)
13327 ("python-pytest" ,python-pytest)
13328 ("python-pytest-runner" ,python-pytest-runner)))
13331 (modify-phases %standard-phases
13332 (add-after 'unpack 'remove-spurious-test
13334 ;; This can be removed after upgrading from python-3.7
13335 ;; https://github.com/PyCQA/astroid/issues/593
13336 ;; https://bugs.python.org/issue34056
13337 (delete-file "astroid/tests/unittest_modutils.py")
13341 (invoke "pytest" "astroid"))))))
13342 (home-page "https://github.com/PyCQA/astroid")
13343 (synopsis "Common base representation of python source code for pylint and
13345 (description "@code{python-astroid} provides a common base representation
13346 of python source code for projects such as pychecker, pyreverse, pylint, etc.
13348 It provides a compatible representation which comes from the _ast module. It
13349 rebuilds the tree generated by the builtin _ast module by recursively walking
13350 down the AST and building an extended ast. The new node classes have
13351 additional methods and attributes for different usages. They include some
13352 support for static inference and local name scopes. Furthermore, astroid
13353 builds partial trees by inspecting living objects.")
13354 (license license:lgpl2.1+)
13355 (properties `((python2-variant . ,(delay python2-astroid))))))
13357 (define-public python2-astroid
13358 (let ((base (package-with-python2
13359 (strip-python2-variant python-astroid))))
13360 (package (inherit base)
13361 ;; Version 2.x removes python2 support.
13366 (uri (pypi-uri "astroid" version))
13369 "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
13371 (substitute-keyword-arguments (package-arguments base)
13373 `(modify-phases ,phases
13374 (add-after 'unpack 'remove-spurious-test
13376 ;; https://github.com/PyCQA/astroid/issues/276
13377 (delete-file "astroid/tests/unittest_brain.py")
13381 (invoke"python" "-m" "unittest" "discover"
13382 "-p" "unittest*.py")))))))
13383 (native-inputs `())
13385 `(("python2-backports-functools-lru-cache"
13386 ,python2-backports-functools-lru-cache)
13387 ("python2-enum34" ,python2-enum34)
13388 ("python2-singledispatch" ,python2-singledispatch)
13389 ,@(alist-delete "python-typed-ast"
13390 (package-propagated-inputs base)))))))
13392 (define-public python-isort
13394 (name "python-isort")
13399 (uri (git-reference
13400 ;; Tests pass only from the Github sources
13401 (url "https://github.com/timothycrosley/isort")
13403 (file-name (git-file-name name version))
13406 "1q0mlrpki5vjbgwxag5rghljjcfg7mvb0pbkwid80p0sqrxlm2p6"))))
13407 (build-system python-build-system)
13409 `(("python-mock" ,python-mock)
13410 ("python-pytest" ,python-pytest)))
13411 (home-page "https://github.com/timothycrosley/isort")
13412 (synopsis "Python utility/library to sort python imports")
13413 (description "@code{python-isort} is a python utility/library to sort
13414 imports alphabetically, and automatically separated into sections. It
13415 provides a command line utility, a python library and plugins for various
13417 (license license:expat)
13418 (properties `((python2-variant . ,(delay python2-isort))))))
13420 (define-public python2-isort
13421 (let ((base (package-with-python2
13422 (strip-python2-variant python-isort))))
13423 (package (inherit base)
13425 `(("python2-futures" ,python2-futures)
13426 ,@(package-native-inputs base))))))
13428 (define-public python2-backports-functools-lru-cache
13430 (name "python2-backports-functools-lru-cache")
13435 ;; only the pypi tarballs contain the necessary metadata
13436 (uri (pypi-uri "backports.functools_lru_cache" version))
13439 "06jgv8gib4fhky0p5cmxdghvsgjyzcdgk48k8pxb1ccf11znk64x"))))
13440 (build-system python-build-system)
13442 `(("python2-setuptools-scm" ,python2-setuptools-scm)))
13444 `(#:python ,python-2))
13445 (home-page "https://github.com/jaraco/backports.functools_lru_cache")
13446 (synopsis "Backport of functools.lru_cache from Python 3.3")
13447 (description "@code{python2-backports-functools-lru-cache} is a backport
13448 of @code{functools.lru_cache} from python 3.3.")
13449 (license license:expat)))
13451 (define-public python-configparser
13453 (name "python-configparser")
13458 (uri (pypi-uri "configparser" version))
13461 "0cnz213il9lhgda6x70fw7mfqr8da43s3wm343lwzhqx94mgmmav"))))
13462 (build-system python-build-system)
13463 (home-page "https://github.com/jaraco/configparser/")
13464 (synopsis "Backport of configparser from python 3.5")
13465 (description "@code{python-configparser} is a backport of
13466 @code{configparser} from Python 3.5 so that it can be used directly
13467 in other versions.")
13468 (license license:expat)))
13470 (define-public python2-configparser
13471 (package-with-python2 python-configparser))
13473 (define-public python-mando
13475 (name "python-mando")
13479 (uri (pypi-uri "mando" version))
13482 "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr"))))
13483 (build-system python-build-system)
13485 `(("python-rst2ansi" ,python-rst2ansi)
13486 ("python-six" ,python-six)))
13488 `(("python-pytest" ,python-pytest)))
13489 (home-page "https://mando.readthedocs.org/")
13491 "Wrapper around argparse, allowing creation of complete CLI applications")
13493 "This package is a wrapper around argparse, allowing you to write complete CLI
13494 applications in seconds while maintaining all the flexibility.")
13495 (license license:expat)))
13497 (define-public python2-mando
13498 (package-with-python2 python-mando))
13500 (define-public python2-argparse
13502 (name "python2-argparse")
13507 (uri (pypi-uri "argparse" version))
13510 "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32"))))
13511 (build-system python-build-system)
13513 `(#:python ,python-2))
13514 (home-page "https://github.com/ThomasWaldmann/argparse/")
13515 (synopsis "Python command-line parsing library")
13517 "This package is mostly for people who want to have @code{argparse} on
13518 older Pythons because it was not part of the standard library back then.")
13519 (license license:psfl)))
13521 (define-public python-fudge
13523 (name "python-fudge")
13524 ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2
13525 ;; package, which is currently the only use of this package.
13530 (uri (pypi-uri "fudge" version))
13533 "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l"))))
13534 (build-system python-build-system)
13536 `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package.
13537 (home-page "https://github.com/fudge-py/fudge")
13538 (synopsis "Replace real objects with fakes/mocks/stubs while testing")
13540 "Fudge is a Python module for using fake objects (mocks and stubs) to
13543 In readable Python code, you declare the methods available on your fake object
13544 and how they should be called. Then you inject that into your application and
13545 start testing. This declarative approach means you don’t have to record and
13546 playback actions and you don’t have to inspect your fakes after running code.
13547 If the fake object was used incorrectly then you’ll see an informative
13548 exception message with a traceback that points to the culprit.")
13549 (license license:expat)))
13551 (define-public python2-fudge
13552 (package-with-python2 python-fudge))
13554 (define-public python-mwclient
13556 (name "python-mwclient")
13561 ;; The PyPI version wouldn't contain tests.
13562 (uri (git-reference
13563 (url "https://github.com/mwclient/mwclient")
13564 (commit (string-append "v" version))))
13565 (file-name (git-file-name name version))
13568 "1c3q6lwmb05yqywc4ya98ca7hsl15niili8rccl4n1yqp77c103v"))))
13569 (build-system python-build-system)
13571 `(("python-requests-oauthlib" ,python-requests-oauthlib)
13572 ("python-six" ,python-six)))
13574 `(("python-mock" ,python-mock)
13575 ("python-pytest" ,python-pytest)
13576 ("python-pytest-cov" ,python-pytest-cov)
13577 ("python-pytest-runner" ,python-pytest-runner)
13578 ("python-responses" ,python-responses)))
13579 (home-page "https://github.com/btongminh/mwclient")
13580 (synopsis "MediaWiki API client")
13581 (description "This package provides a MediaWiki API client.")
13582 (license license:expat)))
13584 (define-public python2-mwclient
13585 (package-with-python2 python-mwclient))
13587 (define-public python-utils
13589 (name "python-utils")
13593 (uri (pypi-uri "python-utils" version))
13596 "1mcsy6q5am4ya72rgkpb6kax6vv7c93cfkkas89xnpa4sj9zf28p"))))
13597 (build-system python-build-system)
13599 `(("pytest-runner" ,python-pytest-runner)
13600 ("pytest" ,python-pytest)
13601 ("six" ,python-six)))
13602 (home-page "https://github.com/WoLpH/python-utils")
13603 (synopsis "Convenient utilities not included with the standard Python install")
13605 "Python Utils is a collection of small Python functions and classes which
13606 make common patterns shorter and easier.")
13607 (license license:bsd-2)))
13609 (define-public python2-utils
13610 (package-with-python2 python-utils))
13612 (define-public python-diff-match-patch
13614 (name "python-diff-match-patch")
13615 (version "20121119")
13619 (uri (pypi-uri "diff-match-patch" version))
13622 "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
13623 (build-system python-build-system)
13624 (home-page "https://code.google.com/p/google-diff-match-patch")
13625 (synopsis "Synchronize plain text")
13626 (description "Diff Match and Patch libraries offer robust algorithms to
13627 perform the operations required for synchronizing plain text.")
13628 (license license:asl2.0)))
13630 (define-public python2-diff-match-patch
13631 (package-with-python2 python-diff-match-patch))
13633 (define-public python-dirsync
13635 (name "python-dirsync")
13640 (uri (pypi-uri "dirsync" version))
13643 "1r40fkanksagcszf1ag85mdr8w7rgc7196n6s1qlsk2abw6i7v0z"))))
13644 (build-system python-build-system)
13646 `(("six" ,python-six)))
13647 (home-page "https://bitbucket.org/tkhyn/dirsync")
13648 (synopsis "Advanced directory tree synchronisation tool")
13649 (description "Advanced directory tree synchronisation tool.")
13650 (license license:expat)))
13652 (define-public python2-dirsync
13653 (package-with-python2 python-dirsync))
13655 (define-public python-levenshtein
13657 (name "python-levenshtein")
13662 (uri (pypi-uri "python-Levenshtein" version))
13665 "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"))))
13666 (build-system python-build-system)
13667 (home-page "https://github.com/ztane/python-Levenshtein")
13668 (synopsis "Fast computation of Levenshtein distance and string similarity")
13670 "The Levenshtein Python C extension module contains functions for fast computation of
13672 @item Levenshtein (edit) distance, and edit operations
13673 @item string similarity
13674 @item approximate median strings, and generally string averaging
13675 @item string sequence and set similarity
13677 It supports both normal and Unicode strings.")
13678 (license license:gpl2+)))
13680 (define-public python2-levenshtein
13681 (package-with-python2 python-levenshtein))
13683 (define-public python-scandir
13685 (name "python-scandir")
13690 (uri (pypi-uri "scandir" version))
13692 (base32 "0r3hvf1a9jm1rkqgx40gxkmccknkaiqjavs8lccgq9s8khh5x5s4"))))
13693 (build-system python-build-system)
13695 `(#:phases (modify-phases %standard-phases
13698 (invoke "python" "test/run_tests.py"))))))
13699 (home-page "https://github.com/benhoyt/scandir")
13700 (synopsis "Directory iteration function")
13702 "Directory iteration function like os.listdir(), except that instead of
13703 returning a list of bare filenames, it yields DirEntry objects that include
13704 file type and stat information along with the name. Using scandir() increases
13705 the speed of os.walk() by 2-20 times (depending on the platform and file
13706 system) by avoiding unnecessary calls to os.stat() in most cases.
13708 This package is part of the Python standard library since version 3.5.")
13709 (license license:bsd-3)))
13711 (define-public python2-scandir
13712 (package-with-python2 python-scandir))
13714 (define-public python2-stemming
13716 (name "python2-stemming")
13721 (uri (pypi-uri "stemming" version))
13723 (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr"))))
13724 (build-system python-build-system)
13726 `(#:python ,python-2))
13727 (home-page "https://bitbucket.org/mchaput/stemming/overview")
13728 (synopsis "Python implementations of various stemming algorithms")
13730 "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins
13731 stemming algorithms for English. These implementations are straightforward and
13732 efficient, unlike some Python versions of the same algorithms available on the
13733 Web. This package is an extraction of the stemming code included in the Whoosh
13735 (license license:public-domain)))
13737 (define-public python-factory-boy
13739 (name "python-factory-boy")
13744 (uri (pypi-uri "factory_boy" version))
13746 (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56"))))
13747 (build-system python-build-system)
13749 ;; Tests are not included in the tarball.
13752 `(("faker" ,python-faker)))
13753 (home-page "https://github.com/benhoyt/scandir")
13754 (synopsis "Versatile test fixtures replacement")
13756 "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl.
13758 As a fixtures replacement tool, it aims to replace static, hard to maintain
13759 fixtures with easy-to-use factories for complex object.
13761 Instead of building an exhaustive test setup with every possible combination
13762 of corner cases, factory_boy allows you to use objects customized for the
13763 current test, while only declaring the test-specific fields")
13764 (license license:expat)))
13766 (define-public python2-factory-boy
13767 (package-with-python2 python-factory-boy))
13769 (define-public python-translate-toolkit
13771 (name "python-translate-toolkit")
13776 (uri (pypi-uri "translate-toolkit" version ".tar.bz2"))
13778 (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq"))))
13779 (build-system python-build-system)
13781 `(("python-pytest" ,python-pytest)
13782 ("python-sphinx" ,python-sphinx)))
13784 `(("python-babel" ,python-babel)
13785 ("python-beautifulsoup4" ,python-beautifulsoup4)
13786 ("python-chardet" ,python-chardet)
13787 ("python-diff-match-patch" ,python-diff-match-patch)
13788 ("python-levenshtein" ,python-levenshtein)
13789 ("python-lxml" ,python-lxml)
13790 ("python-six" ,python-six)
13791 ("python-vobject" ,python-vobject)
13792 ("python-pyyaml" ,python-pyyaml)))
13794 ;; TODO: tests are not run, because they end with
13795 ;; TypeError: parse() missing 2 required positional arguments: 'tree' and
13797 ;; during test setup.
13799 (home-page "https://toolkit.translatehouse.org")
13800 (synopsis "Tools and API for translation and localization engineering")
13802 "Tools and API for translation and localization engineering. It contains
13803 several utilities, as well as an API for building localization tools.")
13804 (license license:gpl2+)))
13806 (define-public python2-translate-toolkit
13807 (package-with-python2 python-translate-toolkit))
13809 (define-public python-packaging
13811 (name "python-packaging")
13816 (uri (pypi-uri "packaging" version))
13817 ;; XXX: The URL in the patch file is wrong, it should be
13818 ;; <https://github.com/pypa/packaging/pull/256>.
13819 (patches (search-patches "python-packaging-test-arch.patch"))
13822 "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
13823 (build-system python-build-system)
13825 `(#:phases (modify-phases %standard-phases
13827 (lambda _ (invoke "py.test" "-vv"))))))
13829 `(("python-pretend" ,python-pretend)
13830 ("python-pytest" ,python-pytest)))
13832 `(("python-pyparsing" ,python-pyparsing)
13833 ("python-six" ,python-six)))
13834 (home-page "https://github.com/pypa/packaging")
13835 (synopsis "Core utilities for Python packages")
13836 (description "Packaging is a Python module for dealing with Python packages.
13837 It offers an interface for working with package versions, names, and dependency
13839 ;; From 'LICENSE': This software is made available under the terms of
13840 ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
13841 ;; Contributions to this software is made under the terms of *both* these
13843 (license (list license:asl2.0 license:bsd-2))))
13845 (define-public python2-packaging
13846 (package-with-python2 python-packaging))
13848 (define-public python-relatorio
13850 (name "python-relatorio")
13855 (uri (pypi-uri "relatorio" version))
13858 "1na6hlhz1awi1hbjg1gyclq0khz42iz90wvdjw7mmj655788bpxx"))))
13859 (build-system python-build-system)
13861 `(("python-lxml" ,python-lxml)
13862 ("python-genshi" ,python-genshi)))
13864 `(("python-magic" ,python-magic)))
13865 (home-page "https://relatorio.tryton.org/")
13866 (synopsis "Templating library able to output ODT and PDF files")
13867 (description "Relatorio is a templating library which provides a way to
13868 easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
13869 for more filetypes can be easily added by creating plugins for them.")
13870 (license license:gpl3+)))
13872 (define-public python2-relatorio
13873 (package-with-python2 python-relatorio))
13875 (define-public python-radon
13877 (name "python-radon")
13882 (uri (pypi-uri "radon" version))
13885 "0vfxxzbnz5lxfvp0yxp35g6c8qqnnbhi4dm7shkm1d3d4192q22n"))))
13886 (build-system python-build-system)
13888 `(#:phases (modify-phases %standard-phases
13891 (invoke "python" "radon/tests/run.py"))))))
13893 `(("python-colorama" ,python-colorama)
13894 ("python-flake8-polyfill" ,python-flake8-polyfill)
13895 ("python-mando" ,python-mando)))
13897 `(("python-pytest" ,python-pytest)
13898 ("python-pytest-mock" ,python-pytest-mock)))
13899 (home-page "https://radon.readthedocs.org/")
13900 (synopsis "Code Metrics in Python")
13901 (description "Radon is a Python tool which computes various code metrics.
13902 Supported metrics are:
13904 @item raw metrics: SLOC, comment lines, blank lines, &c.
13905 @item Cyclomatic Complexity (i.e. McCabe’s Complexity)
13906 @item Halstead metrics (all of them)
13907 @item the Maintainability Index (a Visual Studio metric)
13909 (properties `((python2-variant . ,(delay python2-radon))))
13910 (license license:expat)))
13912 (define-public python2-radon
13913 (let ((base (package-with-python2 (strip-python2-variant python-radon))))
13917 `(("python-configparser" ,python2-configparser)
13918 ("python-future" ,python2-future)
13919 ,@(package-propagated-inputs base))))))
13921 (define-public python-sure
13923 (name "python-sure")
13928 (uri (pypi-uri "sure" version))
13931 "1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w"))))
13932 (build-system python-build-system)
13934 `(("python-mock" ,python-mock)
13935 ("python-six" ,python-six)))
13937 `(("python-nose" ,python-nose)))
13938 (home-page "https://github.com/gabrielfalcao/sure")
13939 (synopsis "Automated testing library in python for python")
13941 "Sure is a python library that leverages a DSL for writing assertions.
13942 Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
13943 (license license:gpl3+)))
13945 (define-public python2-sure
13946 (package-with-python2 python-sure))
13948 (define-public python2-couleur
13949 ;; This package does not seem to support python3 at all, hence,
13950 ;; only the python2 variant definition is provided.
13952 (name "python2-couleur")
13957 (uri (pypi-uri "couleur" version))
13960 "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
13961 (build-system python-build-system)
13963 `(#:python ,python-2))
13964 (home-page "https://github.com/gabrielfalcao/couleur")
13966 "ANSI terminal tool for python, colored shell and other handy fancy features")
13968 "@code{Couleur} provides python programs a way to use the ANSI features in a unix
13969 terminal such as coloured output in the shell, overwriting output, indentation, etc.")
13970 ;; README.md says ASL2.0, but all source code headers are LGPL3+.
13971 ;; https://github.com/gabrielfalcao/couleur/issues/11
13972 (license license:lgpl3+)))
13974 (define-public python-misaka
13976 (name "python-misaka")
13981 (uri (pypi-uri "misaka" version))
13984 "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"))))
13985 (build-system python-build-system)
13987 `(;; Line 37 of setup.py calls self.run_command('develop')
13988 ;; in the 'check' phase. This command seems to be trying
13990 ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
13991 ;; for which it does not have the permission to write.
13994 `(("python-cffi" ,python-cffi)))
13995 (home-page "https://github.com/FSX/misaka")
13996 (synopsis "Python binding for Hoedown")
13998 "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
13999 library written in C. It features a fast HTML renderer and functionality to make custom
14000 renderers (e.g. man pages or LaTeX).")
14001 (license license:expat)))
14003 (define-public python2-misaka
14004 (package-with-python2 python-misaka))
14006 (define-public python2-steadymark
14007 ;; This is forced into being a python2 only variant
14008 ;; due to its dependence on couleur that has no support
14011 (name "python2-steadymark")
14016 (uri (pypi-uri "steadymark" version))
14019 "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
14020 (build-system python-build-system)
14022 `(("python-couleur" ,python2-couleur)
14023 ("python-sure" ,python2-sure)
14024 ("python-misaka" ,python2-misaka)))
14026 `(#:python ,python-2
14028 (modify-phases %standard-phases
14029 (add-before 'build 'patch-setup-py
14031 ;; Update requirements from dependency==version
14032 ;; to dependency>=version
14033 (substitute* "setup.py"
14036 (home-page "https://github.com/gabrielfalcao/steadymark")
14037 (synopsis "Markdown-based test runner for python")
14039 "@code{Steadymark} allows documentation to be written in github-flavoured
14040 markdown. The documentation may contain snippets of code surrounded by python
14041 code blocks and @code{Steadymark} will find these snippets and run them, making
14042 sure that there are no old malfunctional examples in the documentation examples.")
14043 (license license:expat)))
14045 (define-public python-jsonpointer
14047 (name "python-jsonpointer")
14052 (uri (pypi-uri "jsonpointer" version))
14055 "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
14056 (build-system python-build-system)
14057 (home-page "https://github.com/stefankoegl/python-json-pointer")
14058 (synopsis "Identify specific nodes in a JSON document")
14059 (description "@code{jsonpointer} allows you to access specific nodes
14060 by path in a JSON document (see RFC 6901).")
14061 (license license:bsd-3)))
14063 (define-public python2-jsonpointer
14064 (package-with-python2 python-jsonpointer))
14066 (define-public python-jsonpatch
14068 (name "python-jsonpatch")
14073 ;; pypi version lacks tests.js
14074 (uri (git-reference
14075 (url "https://github.com/stefankoegl/python-json-patch")
14076 (commit (string-append "v" version))))
14077 (file-name (git-file-name name version))
14080 "0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
14081 (build-system python-build-system)
14083 `(("python-jsonpointer" ,python-jsonpointer)))
14084 (home-page "https://github.com/stefankoegl/python-json-patch")
14085 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
14086 (description "@code{jsonpatch} is a library and program that allows
14087 applying JSON Patches according to RFC 6902.")
14088 (license license:bsd-3)))
14090 (define-public python2-jsonpatch
14091 (package-with-python2 python-jsonpatch))
14093 (define-public python-jsonpatch-0.4
14094 (package (inherit python-jsonpatch)
14095 (name "python-jsonpatch")
14100 (uri (git-reference
14101 (url "https://github.com/stefankoegl/python-json-patch")
14102 (commit (string-append "v" version))))
14103 (file-name (git-file-name name version))
14106 "1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
14108 (define-public python2-jsonpatch-0.4
14109 (package-with-python2 python-jsonpatch-0.4))
14111 (define-public python-rfc3986
14113 (name "python-rfc3986")
14117 (uri (pypi-uri "rfc3986" version))
14120 "06wlmysw83f75ff84zr1yr6n0shvc2xn1n1sb4iwzqap9hf5fn44"))))
14121 (build-system python-build-system)
14123 `(#:modules ((guix build utils)
14124 (guix build python-build-system)
14129 (modify-phases %standard-phases
14132 (let ((cwd (getcwd)))
14133 (setenv "PYTHONPATH"
14134 (string-append cwd "/build/"
14135 (find (cut string-prefix? "lib" <>)
14136 (scandir (string-append cwd "/build")))
14138 (getenv "PYTHONPATH")))
14139 (invoke "pytest" "-v")))))))
14141 `(("python-pytest" ,python-pytest)))
14142 (home-page "https://rfc3986.readthedocs.io/")
14143 (synopsis "Parse and validate URI references")
14145 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
14146 validation and authority parsing. This module also supports RFC@tie{}6874
14147 which adds support for zone identifiers to IPv6 addresses.")
14148 (license license:asl2.0)))
14150 (define-public python2-rfc3986
14151 (package-with-python2 python-rfc3986))
14153 (define-public python-rfc3987
14155 (name "python-rfc3987")
14160 (uri (pypi-uri "rfc3987" version))
14163 "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
14164 (build-system python-build-system)
14165 (home-page "https://pypi.org/project/rfc3987/")
14166 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
14167 (description "@code{rfc3987} provides routines for parsing and
14168 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
14169 (license license:gpl3+)))
14171 (define-public python2-rfc3987
14172 (package-with-python2 python-rfc3987))
14174 (define-public python-validators
14176 (name "python-validators")
14180 (uri (pypi-uri "validators" version))
14183 "024m15j33szd0v8k5l4ccish6n0b4knq81gmb4fq25ynwyyyd4mi"))))
14184 (build-system python-build-system)
14186 '(#:phases (modify-phases %standard-phases
14189 (invoke "pytest" "-vv"))))))
14191 `(("python-decorator" ,python-decorator)
14192 ("python-six" ,python-six)))
14194 `(("python-flake8" ,python-flake8)
14195 ("python-isort" ,python-isort)
14196 ("python-pytest" ,python-pytest)))
14197 (home-page "https://github.com/kvesteri/validators")
14198 (synopsis "Data validation library")
14200 "This package contains validators for different things such as email
14201 addresses, IP addresses, URLs, hashes and more. It has been designed to
14202 be easy to use and not require defining a schema or form just to validate
14204 (license license:expat)))
14206 (define-public python2-validators
14207 (package-with-python2 python-validators))
14209 (define-public python-validate-email
14211 (name "python-validate-email")
14216 (uri (pypi-uri "validate_email" version))
14219 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
14220 (build-system python-build-system)
14221 (home-page "https://github.com/syrusakbary/validate_email")
14222 (synopsis "Verifies if an email address is valid and really exists")
14223 (description "@code{validate_email} can be used to verify if an email
14224 address is valid and really exists.")
14225 (license license:lgpl3+)))
14227 (define-public python2-validate-email
14228 (package-with-python2 python-validate-email))
14230 (define-public python-flex
14232 (name "python-flex")
14237 (uri (pypi-uri "flex" version))
14240 "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
14241 (build-system python-build-system)
14243 `(("python-click" ,python-click)
14244 ("python-iso8601" ,python-iso8601)
14245 ("python-jsonpointer" ,python-jsonpointer)
14246 ("python-pyyaml" ,python-pyyaml)
14247 ("python-requests" ,python-requests)
14248 ("python-rfc3987" ,python-rfc3987)
14249 ("python-six" ,python-six)
14250 ("python-validate-email" ,python-validate-email)))
14251 (home-page "https://github.com/pipermerriam/flex")
14252 (synopsis "Validates Swagger schemata")
14253 (description "@code{flex} can be used to validate Swagger schemata.")
14254 (license license:bsd-3)))
14256 (define-public python2-flex
14257 (package-with-python2 python-flex))
14259 (define-public python-marshmallow
14261 (name "python-marshmallow")
14262 (version "3.0.0b14")
14266 (uri (pypi-uri "marshmallow" version))
14269 "1digk3f5cfk7wmlka65mc7bzsd96pbsgcsvp6pimd5b4ff9zb5p3"))))
14270 (build-system python-build-system)
14272 `(("python-dateutil" ,python-dateutil)
14273 ("python-simplejson" ,python-simplejson)))
14275 `(("python-pytest" ,python-pytest)
14276 ("python-pytz" ,python-pytz)))
14277 (home-page "https://github.com/marshmallow-code/marshmallow")
14278 (synopsis "Convert complex datatypes to and from native
14279 Python datatypes.")
14280 (description "@code{marshmallow} provides a library for converting
14281 complex datatypes to and from native Python datatypes.")
14282 (license license:expat)))
14284 (define-public python2-marshmallow
14285 (package-with-python2 python-marshmallow))
14287 (define-public python-apispec
14289 (name "python-apispec")
14294 (uri (pypi-uri "apispec" version))
14297 "0kxa8723zbisx10363yh4mmmn4higxrspymbjfz5zq8f644zagm9"))))
14298 (build-system python-build-system)
14300 `(("python-pyyaml" ,python-pyyaml)))
14302 `(("python-pytest" ,python-pytest)
14303 ("python-flask" ,python-flask)
14304 ("python-marshmallow" ,python-marshmallow)
14305 ("python-tornado" ,python-tornado)
14306 ("python-bottle" ,python-bottle)
14307 ("python-mock" ,python-mock)))
14308 (home-page "https://github.com/marshmallow-code/apispec")
14309 (synopsis "Swagger 2.0 API specification generator")
14310 (description "@code{python-apispec} is a pluggable API specification
14311 generator. Currently supports the OpenAPI specification (f.k.a.
14313 (license license:expat)))
14315 (define-public python2-apispec
14316 (package-with-python2 python-apispec))
14318 (define-public python-flasgger
14320 (name "python-flasgger")
14325 (uri (git-reference
14326 (url "https://github.com/rochacbruno/flasgger.git")
14328 (file-name (git-file-name name version))
14330 (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn"))))
14331 (build-system python-build-system)
14334 (modify-phases %standard-phases
14336 (lambda* (#:key inputs outputs #:allow-other-keys)
14337 (substitute* "Makefile"
14338 (("flake8 flasgger --ignore=F403")
14339 "flake8 flasgger --ignore=E731,F403"))
14340 (setenv "PYTHONPATH" (string-append (getcwd)
14342 (getenv "PYTHONPATH")))
14343 (invoke "py.test"))))))
14345 `(("python-flask" ,python-flask)
14346 ("python-pyyaml" ,python-pyyaml)
14347 ("python-jsonschema" ,python-jsonschema)
14348 ("python-mistune" ,python-mistune)
14349 ("python-six" ,python-six)))
14351 `(("python-decorator" ,python-decorator)
14352 ("python-flake8" ,python-flake8)
14353 ("python-flask-restful" ,python-flask-restful)
14354 ("python-flex" ,python-flex)
14355 ("python-pytest" ,python-pytest)
14356 ("python-pytest-cov" ,python-pytest-cov)
14357 ("python-marshmallow" ,python-marshmallow)
14358 ("python-apispec" ,python-apispec)))
14359 (home-page "https://github.com/rochacbruno/flasgger/")
14360 (synopsis "Extract Swagger specs from your Flask project")
14361 (description "@code{python-flasgger} allows extracting Swagger specs
14362 from your Flask project. It is a fork of Flask-Swagger.")
14363 (license license:expat)))
14365 (define-public python2-flasgger
14366 (package-with-python2 python-flasgger))
14368 (define-public python-swagger-spec-validator
14370 (name "python-swagger-spec-validator")
14375 (uri (pypi-uri "swagger-spec-validator" version))
14378 "11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp"))))
14379 (build-system python-build-system)
14381 `(("python-jsonschema" ,python-jsonschema)
14382 ("python-pyyaml" ,python-pyyaml)
14383 ("python-six" ,python-six)))
14385 "https://github.com/Yelp/swagger_spec_validator")
14386 (synopsis "Validation of Swagger specifications")
14387 (description "@code{swagger_spec_validator} provides a library for
14388 validating Swagger API specifications.")
14389 (license license:asl2.0)))
14391 (define-public python2-swagger-spec-validator
14392 (package-with-python2 python-swagger-spec-validator))
14394 (define-public python-apache-libcloud
14396 (name "python-apache-libcloud")
14401 (uri (pypi-uri "apache-libcloud" version))
14404 "0daj3mkzw79v5zin2r1s2wkrz1hplfc16bwj4ss68i5qjq4l2p0j"))))
14405 (build-system python-build-system)
14408 (modify-phases %standard-phases
14409 (add-after 'unpack 'patch-ssh
14410 (lambda* (#:key inputs #:allow-other-keys)
14411 (substitute* "libcloud/compute/ssh.py"
14412 (("'ssh'") (string-append "'" (assoc-ref inputs "openssh")
14415 (add-after 'unpack 'patch-tests
14417 (substitute* "./libcloud/test/test_file_fixtures.py"
14418 ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-923>.
14419 (("def _ascii") "def _raw_data(self, method, url, body, headers):
14420 return (httplib.OK,
14422 {\"test\": \"value\"},
14423 httplib.responses[httplib.OK])
14425 (substitute* "libcloud/test/compute/test_ssh_client.py"
14426 (("class ShellOutSSHClientTests")
14427 "@unittest.skip(\"Guix container doesn't have ssh service\")
14428 class ShellOutSSHClientTests")
14429 ;; See <https://issues.apache.org/jira/browse/LIBCLOUD-924>.
14430 (("'.xf0.x90.x8d.x88'") "b'\\xF0\\x90\\x8D\\x88'")
14431 (("'.xF0', '.x90', '.x8D', '.x88'")
14432 "b'\\xF0', b'\\x90', b'\\x8D', b'\\x88'"))
14434 (add-before 'check 'copy-secret
14436 (copy-file "libcloud/test/secrets.py-dist"
14437 "libcloud/test/secrets.py")
14440 `(("openssh" ,openssh)))
14442 `(("python-paramiko" ,python-paramiko)
14443 ("python-requests" ,python-requests)))
14445 `(("python-lockfile" ,python-lockfile)
14446 ("python-mock" ,python-mock)
14447 ("python-pytest" ,python-pytest)
14448 ("python-pytest-runner" ,python-pytest-runner)
14449 ("python-requests-mock" ,python-requests-mock)))
14450 (home-page "https://libcloud.apache.org/")
14451 (synopsis "Unified Cloud API")
14452 (description "@code{libcloud} is a Python library for interacting with
14453 many of the popular cloud service providers using a unified API.")
14454 (license license:asl2.0)))
14456 (define-public python2-apache-libcloud
14457 (package-with-python2 python-apache-libcloud))
14459 (define-public python-smmap
14461 (name "python-smmap")
14466 (uri (pypi-uri "smmap" version))
14468 (base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
14469 (build-system python-build-system)
14471 `(("python-nosexcover" ,python-nosexcover)))
14472 (home-page "https://github.com/Byron/smmap")
14473 (synopsis "Python sliding window memory map manager")
14474 (description "@code{smmap} is a pure Python implementation of a sliding
14475 window memory map manager.")
14476 (license license:bsd-3)))
14478 (define-public python-smmap2
14479 (deprecated-package "python-smmap2" python-smmap))
14481 (define-public python2-smmap
14482 (package-with-python2 python-smmap))
14484 (define-public python2-smmap2
14485 (deprecated-package "python2-smmap2" python2-smmap))
14487 (define-public python-regex
14489 (name "python-regex")
14490 (version "2019.04.14")
14493 (uri (pypi-uri "regex" version))
14496 "1a6hhfs6l6snr1z654ay6wzbmwdkmv282fzfkd5hk2d1n73y8v6m"))))
14497 ;; TODO: Fix and enable regex_test.py tests that complain about the
14498 ;; test.support module not existing.
14499 (build-system python-build-system)
14500 (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
14501 (synopsis "Alternative regular expression module")
14502 (description "This regular expression implementation is backwards-
14503 compatible with the standard @code{re} module, but offers additional
14504 functionality like full case-folding for case-insensitive matches in Unicode.")
14505 (license license:psfl)))
14507 (define-public python2-regex
14508 (package-with-python2 python-regex))
14510 (define-public python2-pyopengl
14512 (name "python2-pyopengl")
14517 (uri (pypi-uri "PyOpenGL" version))
14520 "1byxjj6a8rwzhxhjqlc588zdad2qwxdd7vlam2653ylll31waiwv"))))
14522 `(#:python ,python-2))
14523 (build-system python-build-system)
14524 (home-page "http://pyopengl.sourceforge.net")
14525 (synopsis "Standard OpenGL bindings for Python")
14527 "PyOpenGL is the most common cross platform Python binding to OpenGL and
14528 related APIs. The binding is created using the standard @code{ctypes}
14530 (license license:bsd-3)))
14532 (define-public python2-pyopengl-accelerate
14534 (inherit python2-pyopengl)
14535 (name "python2-pyopengl-accelerate")
14540 (uri (pypi-uri "PyOpenGL-accelerate" version))
14543 "0464c1ifzk0k92lyndikmvzjgnx1y25r7bkkc8pnxm4kp1q4czwj"))))
14544 (synopsis "Acceleration code for PyOpenGL")
14546 "This is the Cython-coded accelerator module for PyOpenGL.")))
14548 (define-public python-rencode
14550 (name "python-rencode")
14555 (uri (pypi-uri "rencode" version))
14558 "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
14559 (build-system python-build-system)
14562 (modify-phases %standard-phases
14563 (add-before 'check 'delete-bogus-test
14564 ;; This test requires /home/aresch/Downloads, which is not provided by
14565 ;; the build environment.
14567 (delete-file "rencode/t.py")
14569 (native-inputs `(("pkg-config" ,pkg-config)
14570 ("python-cython" ,python-cython)))
14571 (home-page "https://github.com/aresch/rencode")
14572 (synopsis "Serialization of heterogeneous data structures")
14574 "The @code{rencode} module is a data structure serialization library,
14575 similar to @code{bencode} from the BitTorrent project. For complex,
14576 heterogeneous data structures with many small elements, r-encoding stake up
14577 significantly less space than b-encodings. This version of rencode is a
14578 complete rewrite in Cython to attempt to increase the performance over the
14579 pure Python module.")
14580 (license license:bsd-3)))
14582 (define-public python2-rencode
14583 (package-with-python2 python-rencode))
14585 (define-public python-xenon
14587 (name "python-xenon")
14592 (uri (pypi-uri "xenon" version))
14595 "0nv207ql2wmh9q62503np056c4vf1c1hlsi5cvv5p5kx574k6r2y"))))
14596 (build-system python-build-system)
14598 `(("python-pyyaml" ,python-pyyaml)
14599 ("python-radon" ,python-radon)
14600 ("python-requests" ,python-requests)
14601 ("python-flake8" ,python-flake8)
14602 ("python-tox" ,python-tox)))
14604 `(#:tests? #f ;test suite not shipped with the PyPI archive
14606 (modify-phases %standard-phases
14607 (add-before 'build 'patch-test-requirements
14609 ;; Remove httpretty dependency for tests.
14610 (substitute* "setup.py"
14611 (("httpretty") ""))
14613 (home-page "https://xenon.readthedocs.org/")
14614 (synopsis "Monitor code metrics for Python on your CI server")
14616 "Xenon is a monitoring tool based on Radon. It monitors code complexity.
14617 Ideally, @code{xenon} is run every time code is committed. Through command
14618 line options, various thresholds can be set for the complexity of code. It
14619 will fail (i.e. it will exit with a non-zero exit code) when any of these
14620 requirements is not met.")
14621 (license license:expat)))
14623 (define-public python2-xenon
14624 (package-with-python2 python-xenon))
14626 (define-public python-pysocks
14628 (name "python-pysocks")
14633 (uri (pypi-uri "PySocks" version))
14636 "0z4p31bpqm893cf87qqgb30k7nwd8kqfjwwjm5cvxb6zbyj1w0yr"))))
14637 (build-system python-build-system)
14638 (arguments `(#:tests? #f))
14639 (home-page "https://github.com/Anorov/PySocks")
14640 (synopsis "SOCKS client module")
14641 (description "@code{pysocks} is an updated and semi-actively maintained
14642 version of @code{SocksiPy} with bug fixes and extra features.")
14643 (license license:bsd-3)))
14645 (define-public python2-pysocks
14646 (package-with-python2 python-pysocks))
14648 (define-public python-pydiff
14650 (name "python-pydiff")
14655 (uri (pypi-uri "pydiff" version))
14658 "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
14659 (build-system python-build-system)
14660 (home-page "https://github.com/myint/pydiff")
14661 (synopsis "Library to diff two Python files at the bytecode level")
14663 "@code{pydiff} makes it easy to look for actual code changes while
14664 ignoring formatting changes.")
14665 (license license:expat)))
14667 (define-public python2-pydiff
14668 (package-with-python2 python-pydiff))
14670 (define-public python-tqdm
14672 (name "python-tqdm")
14677 (uri (pypi-uri "tqdm" version))
14680 "093v4c2x5hpigv47zvyxl8wh10y2yd2gvz3l9vchn0zsp8hv2pzk"))))
14681 (build-system python-build-system)
14683 '(#:phases (modify-phases %standard-phases
14685 (lambda* (#:key inputs outputs #:allow-other-keys)
14686 (add-installed-pythonpath inputs outputs)
14687 ;; This invokation is taken from tox.ini.
14688 (invoke "nosetests" "--ignore-files=\"test_perf.py\""
14689 "-d" "-v" "tqdm/"))))))
14691 `(("python-nose" ,python-nose)))
14692 (home-page "https://github.com/tqdm/tqdm")
14693 (synopsis "Fast, extensible progress meter")
14695 "Make loops show a progress bar on the console by just wrapping any
14696 iterable with @code{|tqdm(iterable)|}. Offers many options to define
14697 design and layout.")
14698 (license (list license:mpl2.0 license:expat))))
14700 (define-public python2-tqdm
14701 (package-with-python2 python-tqdm))
14703 (define-public python-pkginfo
14705 (name "python-pkginfo")
14710 (uri (pypi-uri "pkginfo" version))
14713 "0x6lm17p1ks031mj6pajyp4rkq74vpqq8qwjb7ikgwmkli1day2q"))))
14714 (build-system python-build-system)
14716 ;; The tests are broken upstream.
14719 "https://code.launchpad.net/~tseaver/pkginfo/trunk")
14721 "Query metadatdata from sdists, bdists, and installed packages")
14723 "API to query the distutils metadata written in @file{PKG-INFO} inside a
14724 source distriubtion (an sdist) or a binary distribution (e.g., created by
14725 running bdist_egg). It can also query the EGG-INFO directory of an installed
14726 distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
14727 created by running @code{python setup.py develop}).")
14728 (license license:expat)))
14730 (define-public python2-pkginfo
14731 (package-with-python2 python-pkginfo))
14733 (define-public python-twine
14735 (name "python-twine")
14740 (uri (pypi-uri "twine" version))
14743 "1ay1b6kdq6k4bfbjsvf6ymj41wrgpvinhxndb09355pwhxwmp96a"))))
14744 (build-system python-build-system)
14746 `(("python-tqdm" ,python-tqdm)
14747 ("python-pkginfo" ,python-pkginfo)
14748 ("python-requests" ,python-requests)
14749 ("python-requests-toolbelt" ,python-requests-toolbelt)))
14750 (home-page "https://github.com/pypa/twine")
14751 (synopsis "Collection of utilities for interacting with PyPI")
14753 "@code{twine} currently supports registering projects and uploading
14754 distributions. It authenticates the user over HTTPS, allows them to pre-sign
14755 their files and supports any packaging format (including wheels).")
14756 (license license:asl2.0)))
14758 (define-public python2-twine
14759 (package-with-python2 python-twine))
14761 (define-public python-linecache2
14763 (name "python-linecache2")
14768 (uri (pypi-uri "linecache2" version))
14771 "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
14772 (build-system python-build-system)
14774 `(;; The tests depend on unittest2, and our version is a bit too old.
14777 `(("python-pbr" ,python-pbr-minimal)))
14779 "https://github.com/testing-cabal/linecache2")
14780 (synopsis "Backports of the linecache module")
14782 "The linecache module allows one to get any line from any file, while
14783 attempting to optimize internally, using a cache, the common case where many
14784 lines are read from a single file.")
14785 (license license:psfl)))
14787 (define-public python2-linecache2
14788 (package-with-python2 python-linecache2))
14790 (define-public python-traceback2
14792 (name "python-traceback2")
14797 (uri (pypi-uri "traceback2" version))
14800 "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
14801 (build-system python-build-system)
14803 `(;; python-traceback2 and python-unittest2 depend on one another.
14806 `(("python-pbr" ,python-pbr-minimal)))
14808 `(("python-linecache2" ,python-linecache2)))
14810 "https://github.com/testing-cabal/traceback2")
14811 (synopsis "Backports of the traceback module")
14813 "This module provides a standard interface to extract, format and print
14814 stack traces of Python programs. It exactly mimics the behavior of the Python
14815 interpreter when it prints a stack trace.")
14816 (license license:psfl)))
14818 (define-public python2-traceback2
14819 (package-with-python2 python-traceback2))
14821 (define-public python-ratelimiter
14823 (name "python-ratelimiter")
14828 (uri (pypi-uri "ratelimiter" version))
14831 "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
14832 (build-system python-build-system)
14834 '(#:tests? #f)) ; There are no tests in the pypi archive.
14835 (home-page "https://github.com/RazerM/ratelimiter")
14836 (synopsis "Simple rate limiting object")
14838 "The @code{ratelimiter} module ensures that an operation will not be
14839 executed more than a given number of times during a given period.")
14840 (license license:asl2.0)))
14842 (define-public python2-ratelimiter
14843 (package-with-python2 python-ratelimiter))
14845 (define-public python-dukpy
14847 (name "python-dukpy")
14852 (uri (git-reference
14853 (url "https://github.com/kovidgoyal/dukpy.git")
14854 (commit (string-append "v" version))))
14855 (file-name (git-file-name name version))
14857 (base32 "13h21nqzasv4zj32xs61brmc106pr2cx243672crcmwxxnjgaxls"))))
14858 (build-system python-build-system)
14859 (home-page "https://github.com/kovidgoyal/dukpy")
14860 (synopsis "Run JavaScript in python")
14862 "dukpy is a JavaScript runtime environment for Python using the duktape
14863 embeddable JavaScript engine.")
14864 ;; Dukpy is licensed under MIT like the embedded duktape library,
14865 ;; with 'errors.c' as GPL3.
14866 (license (list license:expat license:gpl3))))
14868 (define-public python2-dukpy
14869 (package-with-python2 python-dukpy))
14871 (define-public python-jsonrpclib-pelix
14873 (name "python-jsonrpclib-pelix")
14878 (uri (pypi-uri "jsonrpclib-pelix" version))
14881 "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
14882 (build-system python-build-system)
14884 `(#:tests? #f)) ; no tests in PyPI tarball
14885 (home-page "https://github.com/tcalmant/jsonrpclib/")
14886 (synopsis "JSON-RPC 2.0 client library for Python")
14888 "This library implements the JSON-RPC v2.0
14889 specification (backwards-compatible) as a client library for Python. This
14890 version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
14892 (license license:asl2.0)))
14894 (define-public python2-jsonrpclib-pelix
14895 (package-with-python2 python-jsonrpclib-pelix))
14897 (define-public python-setuptools-scm-git-archive
14899 (name "python-setuptools-scm-git-archive")
14904 (uri (pypi-uri "setuptools_scm_git_archive" version))
14907 "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
14908 (build-system python-build-system)
14910 `(("python-pytest" ,python-pytest)))
14912 `(("python-setuptools-scm" ,python-setuptools-scm)))
14913 (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
14914 (synopsis "Setuptools_scm plugin for git archives")
14916 "The setuptools_scm_git_archive package is a plugin to
14917 setuptools_scm, which supports obtaining versions from git archives that
14918 belong to tagged versions.")
14919 (license license:expat)))
14921 (define-public python2-setuptools-scm-git-archive
14922 (package-with-python2 python-setuptools-scm-git-archive))
14924 (define-public python-setuptools-git
14926 (name "python-setuptools-git")
14931 (uri (pypi-uri "setuptools-git" version))
14934 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
14935 (build-system python-build-system)
14938 (modify-phases %standard-phases
14939 ;; This is needed for tests.
14940 (add-after 'unpack 'configure-git
14942 (setenv "HOME" "/tmp")
14943 (invoke "git" "config" "--global" "user.email" "guix")
14944 (invoke "git" "config" "--global" "user.name" "guix")
14947 `(("git" ,git-minimal)))
14948 (home-page "https://github.com/msabramo/setuptools-git")
14949 (synopsis "Setuptools revision control system plugin for Git")
14951 "This package provides a plugin for Setuptools for revision control with
14953 (license license:bsd-3)))
14955 (define-public python-pyclipper
14957 (name "python-pyclipper")
14958 (version "1.1.0.post3")
14962 (uri (pypi-uri "pyclipper" version ".zip"))
14964 (base32 "164yksvqwqvwzh8f8lq92asg87hd8rvcy2xb5vm4y4ccvd5xgb7i"))
14965 (modules '((guix build utils)))
14968 ;; This file is generated by Cython.
14969 (delete-file "pyclipper/pyclipper.cpp") #t))))
14970 (build-system python-build-system)
14973 (modify-phases %standard-phases
14974 (add-before 'build 'cythonize-sources
14976 (with-directory-excursion "pyclipper"
14977 (invoke "cython" "--cplus" "pyclipper.pyx")))))))
14979 `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
14981 `(("python-cython" ,python-cython)
14982 ("python-pytest" ,python-pytest)
14983 ("python-pytest-runner" ,python-pytest-runner)
14984 ("python-unittest2" ,python-unittest2)
14986 (home-page "https://github.com/greginvm/pyclipper")
14987 (synopsis "Wrapper for Angus Johnson's Clipper library")
14989 "Pyclipper is a Cython wrapper for the C++ translation of the
14990 Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
14991 (license license:expat)))
14993 (define-public python2-pyclipper
14994 (package-with-python2 python-pyclipper))
14996 (define-public python2-booleanoperations
14998 (name "python2-booleanoperations")
15003 (uri (pypi-uri "booleanOperations" version ".zip"))
15006 "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn"))))
15007 (build-system python-build-system)
15009 `(#:python ,python-2))
15012 ("python2-pytest" ,python2-pytest)
15013 ("python2-pytest-runner" ,python2-pytest-runner)))
15015 `(("python-fonttools" ,python2-fonttools)
15016 ("python-pyclipper" ,python2-pyclipper)
15017 ("python-ufolib" ,python2-ufolib)))
15018 (home-page "https://github.com/typemytype/booleanOperations")
15019 (synopsis "Boolean operations on paths")
15021 "BooleanOperations provides a Python library that enables
15022 boolean operations on paths.")
15023 (license license:expat)))
15025 (define-public python-tempdir
15027 (name "python-tempdir")
15032 (uri (pypi-uri "tempdir" version))
15035 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
15036 (build-system python-build-system)
15037 (home-page "https://pypi.org/project/tempdir/")
15039 ;; the package has no tests
15041 (synopsis "Python library for managing temporary directories")
15043 "This library manages temporary directories that are automatically
15044 deleted with all their contents when they are no longer needed. It is
15045 particularly convenient for use in tests.")
15046 (license license:expat)))
15048 (define-public python2-tempdir
15049 (package-with-python2 python-tempdir))
15051 (define-public python-activepapers
15053 (name "python-activepapers")
15058 (uri (pypi-uri "ActivePapers.Py" version))
15061 "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
15062 (build-system python-build-system)
15064 `(#:modules ((ice-9 ftw)
15067 (guix build python-build-system))
15070 (modify-phases %standard-phases
15071 (add-after 'unpack 'delete-python2-code
15073 (for-each delete-file
15074 '("lib/activepapers/builtins2.py"
15075 "lib/activepapers/standardlib2.py"
15076 "lib/activepapers/utility2.py"))))
15079 ;; Deactivate the test cases that download files
15080 (setenv "NO_NETWORK_ACCESS" "1")
15081 ;; For some strange reason, some tests fail if nosetests runs all
15082 ;; test modules in a single execution. They pass if each test
15083 ;; module is run individually.
15084 (for-each (lambda (filename)
15085 (invoke "nosetests"
15086 (string-append "tests/" filename)))
15089 (string-suffix? ".py" filename)))))))))
15091 `(("python-tempdir" ,python-tempdir)
15092 ("python-nose" ,python-nose)))
15094 `(("python-h5py" ,python-h5py)))
15095 (home-page "https://www.activepapers.org/")
15096 (synopsis "Executable papers for scientific computing")
15098 "ActivePapers is a tool for working with executable papers, which
15099 combine data, code, and documentation in single-file packages,
15100 suitable for publication as supplementary material or on repositories
15101 such as figshare or Zenodo.")
15102 (properties `((python2-variant . ,(delay python2-activepapers))))
15103 (license license:bsd-3)))
15105 (define-public python2-activepapers
15106 (let ((base (package-with-python2
15107 (strip-python2-variant python-activepapers))))
15111 (substitute-keyword-arguments (package-arguments base)
15113 `(modify-phases ,phases
15114 (delete 'delete-python2-code)
15115 (add-after 'unpack 'delete-python3-code
15117 (for-each delete-file
15118 '("lib/activepapers/builtins3.py"
15119 "lib/activepapers/standardlib3.py"
15120 "lib/activepapers/utility3.py")))))))))))
15122 (define-public python-semver
15124 (name "python-semver")
15129 (uri (pypi-uri "semver" version))
15132 "183kg1rhzz3hqizvphkd8hlbf1zxfx8737zhfkmqzxi71jmdw7pd"))))
15133 (build-system python-build-system)
15135 `(("python-appdirs" ,python-appdirs)
15136 ("python-distlib" ,python-distlib)
15137 ("python-importlib-metadata" ,python-importlib-metadata)
15138 ("python-filelock" ,python-filelock)
15139 ("python-six" ,python-six)
15140 ("python-tox" ,python-tox)
15141 ("python-virtualenv" ,python-virtualenv)))
15142 (home-page "https://github.com/k-bx/python-semver")
15143 (synopsis "Python helper for Semantic Versioning")
15144 (description "This package provides a Python library for
15145 @url{Semantic Versioning, http://semver.org/}.")
15146 (license license:bsd-3)))
15148 (define-public python2-semver
15149 (package-with-python2 python-semver))
15151 (define-public python-pyro4
15153 (name "python-pyro4")
15158 (uri (pypi-uri "Pyro4" version))
15160 (base32 "0gsjg869y4gpy265s1gj1f2qy6jn5iz8r2bwwnq78r1r5yi15zib"))))
15161 (build-system python-build-system)
15163 '(#:tests? #f)) ;FIXME: Some tests require network access.
15165 `(("python-cloudpickle" ,python-cloudpickle)
15166 ("python-dill" ,python-dill)
15167 ("python-msgpack" ,python-msgpack)))
15169 `(("python-serpent" ,python-serpent)))
15170 (home-page "https://pyro4.readthedocs.io")
15171 (synopsis "Distributed object middleware for Python")
15173 "Pyro enables you to build applications in which objects can talk to each
15174 other over the network. You can just use normal Python method calls to call
15175 objects on other machines, also known as remote procedure calls (RPC).")
15176 (license license:expat)))
15178 (define-public python2-pyro
15180 (name "python2-pyro")
15185 (uri (pypi-uri "Pyro" version))
15186 (file-name (string-append "Pyro-" version ".tar.gz"))
15189 "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v"))))
15190 (build-system python-build-system)
15192 ;; Pyro is not compatible with Python 3
15193 `(#:python ,python-2
15194 ;; Pyro has no test cases for automatic execution
15196 (home-page "https://pythonhosted.org/Pyro/")
15197 (synopsis "Distributed object manager for Python")
15198 (description "Pyro is a Distributed Object Technology system
15199 written in Python that is designed to be easy to use. It resembles
15200 Java's Remote Method Invocation (RMI). It has less similarity to CORBA,
15201 which is a system and language independent Distributed Object Technology
15202 and has much more to offer than Pyro or RMI. Pyro 3.x is no
15203 longer maintained. New projects should use Pyro4 instead, which
15204 is the new Pyro version that is actively developed.")
15205 (license license:expat)))
15207 (define-public python2-scientific
15209 (name "python2-scientific")
15214 (uri (git-reference
15215 (url "https://github.com/khinsen/ScientificPython")
15216 (commit (string-append "rel" version))))
15217 (file-name (git-file-name name version))
15220 "16l48aj9fps9r7jyk8gpxppwrv0fqvlc13sayxskz28r5s6sjwbl"))))
15221 (build-system python-build-system)
15223 `(("netcdf" ,netcdf)))
15225 `(("python-numpy" ,python2-numpy-1.8)
15226 ("python-pyro" ,python2-pyro)))
15228 ;; ScientificPython is not compatible with Python 3
15229 `(#:python ,python-2
15230 #:tests? #f ; No test suite
15232 (modify-phases %standard-phases
15234 (lambda* (#:key inputs #:allow-other-keys)
15235 (invoke "python" "setup.py" "build"
15236 (string-append "--netcdf_prefix="
15237 (assoc-ref inputs "netcdf"))))))))
15238 (home-page "http://dirac.cnrs-orleans.fr/ScientificPython")
15239 (synopsis "Python modules for scientific computing")
15240 (description "ScientificPython is a collection of Python modules that are
15241 useful for scientific computing. Most modules are rather general (Geometry,
15242 physical units, automatic derivatives, ...) whereas others are more
15243 domain-specific (e.g. netCDF and PDB support). The library is currently
15244 not actively maintained and works only with Python 2 and NumPy < 1.9.")
15245 (license license:cecill-c)))
15247 (define-public python2-mmtk
15249 (name "python2-mmtk")
15254 (uri (git-reference
15255 (url "https://github.com/khinsen/MMTK")
15256 (commit (string-append "rel" version))))
15257 (file-name (git-file-name name version))
15260 "1fqwh3ba9jd42nigvn5shndgwb1zy7kh9520ncvqci7n8ffjr6p1"))))
15261 (build-system python-build-system)
15263 `(("netcdf" ,netcdf)))
15265 `(("python-scientific" ,python2-scientific)
15266 ("python-tkinter" ,python-2 "tk")))
15268 `(#:python ,python-2
15271 (modify-phases %standard-phases
15272 (add-before 'build 'includes-from-scientific
15273 (lambda* (#:key inputs #:allow-other-keys)
15274 (mkdir-p "Include/Scientific")
15277 (assoc-ref inputs "python-scientific")
15278 "/include/python2.7/Scientific")
15279 "Include/Scientific"))))))
15280 (home-page "http://dirac.cnrs-orleans.fr/MMTK")
15281 (synopsis "Python library for molecular simulation")
15282 (description "MMTK is a library for molecular simulations with an emphasis
15283 on biomolecules. It provides widely used methods such as Molecular Dynamics
15284 and normal mode analysis, but also basic routines for implementing new methods
15285 for simulation and analysis. The library is currently not actively maintained
15286 and works only with Python 2 and NumPy < 1.9.")
15287 (license license:cecill-c)))
15289 (define-public python-phonenumbers
15291 (name "python-phonenumbers")
15296 (uri (pypi-uri "phonenumbers" version))
15299 "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
15300 (build-system python-build-system)
15302 "https://github.com/daviddrysdale/python-phonenumbers")
15304 "Python library for dealing with international phone numbers")
15306 "This package provides a Python port of Google's libphonenumber library.")
15307 (license license:asl2.0)))
15309 (define-public python2-phonenumbers
15310 (package-with-python2 python-phonenumbers))
15312 (define-public python-send2trash
15314 (name "python-send2trash")
15317 (origin (method git-fetch)
15318 ;; Source tarball on PyPI doesn't include tests.
15319 (uri (git-reference
15320 (url "https://github.com/hsoft/send2trash.git")
15322 (file-name (git-file-name name version))
15325 "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v"))))
15326 (build-system python-build-system)
15329 (modify-phases %standard-phases
15330 (add-before 'check 'pre-check
15332 (mkdir-p "/tmp/foo")
15333 (setenv "HOME" "/tmp/foo")
15335 (home-page "https://github.com/hsoft/send2trash")
15336 (synopsis "Send files to the user's @file{~/Trash} directory")
15337 (description "This package provides a Python library to send files to the
15338 user's @file{~/Trash} directory.")
15339 (properties `((python2-variant . ,(delay python2-send2trash))))
15340 (license license:bsd-3)))
15342 (define-public python2-send2trash
15344 (inherit (package-with-python2 (strip-python2-variant python-send2trash)))
15346 (substitute-keyword-arguments (package-arguments python-send2trash)
15348 `(modify-phases ,phases
15349 (add-before 'check 'setenv
15351 (setenv "PYTHONPATH"
15352 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
15355 (define-public python-yapf
15357 (name "python-yapf")
15362 (uri (pypi-uri "yapf" version))
15365 "1pj3xzblmbssshi889b6n9hwqbjpabw6j0fimlng2sshd3226bki"))))
15366 (build-system python-build-system)
15367 (home-page "https://github.com/google/yapf")
15368 (synopsis "Formatter for Python code")
15369 (description "YAPF is a formatter for Python code. It's based off of
15370 @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
15371 takes the code and reformats it to the best formatting that conforms to the
15372 style guide, even if the original code didn't violate the style guide.")
15373 (license license:asl2.0)))
15375 (define-public python2-yapf
15376 (package-with-python2 python-yapf))
15378 (define-public python-gyp
15379 (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
15382 (name "python-gyp")
15383 ;; Google does not release versions,
15384 ;; based on second most recent commit date.
15385 (version (git-version "0.0.0" revision commit))
15388 ;; Google does not release tarballs,
15389 ;; git checkout is needed.
15391 (uri (git-reference
15392 (url "https://chromium.googlesource.com/external/gyp")
15394 (file-name (git-file-name name version))
15397 "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
15398 (build-system python-build-system)
15399 (home-page "https://gyp.gsrc.io/")
15400 (synopsis "GYP is a Meta-Build system")
15402 "GYP builds build systems for large, cross platform applications.
15403 It can be used to generate XCode projects, Visual Studio projects, Ninja build
15404 files, and Makefiles.")
15405 (license license:bsd-3))))
15407 (define-public python2-gyp
15408 (package-with-python2 python-gyp))
15410 (define-public python-whatever
15412 (name "python-whatever")
15417 (uri (git-reference
15418 (url "https://github.com/Suor/whatever")
15420 (file-name (git-file-name name version))
15422 (base32 "1q7ajgqjfivxqsqgnhp4lc4p6jxyh4zprcsdbpd6dw54inaf0av5"))))
15423 (build-system python-build-system)
15426 (modify-phases %standard-phases
15429 (invoke "py.test"))))))
15431 `(("python-pytest" ,python-pytest)))
15432 (home-page "http://github.com/Suor/whatever")
15433 (synopsis "Make anonymous functions by partial application of operators")
15434 (description "@code{whatever} provides an easy way to make anonymous
15435 functions by partial application of operators.")
15436 (license license:bsd-3)))
15438 (define-public python2-whatever
15439 (package-with-python2 python-whatever))
15441 (define-public python-funcy
15443 (name "python-funcy")
15448 (uri (git-reference
15449 (url "https://github.com/Suor/funcy.git")
15452 (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
15453 (file-name (git-file-name name version))))
15454 (build-system python-build-system)
15457 (modify-phases %standard-phases
15460 (invoke "py.test"))))))
15462 `(("python-pytest" ,python-pytest)
15463 ("python-whatever" ,python-whatever)))
15464 (home-page "http://github.com/Suor/funcy")
15465 (synopsis "Functional tools")
15466 (description "@code{funcy} is a library that provides functional tools.
15469 @item merge - Merges collections of the same type
15470 @item walk - Type-preserving map
15471 @item select - Selects a part of a collection
15472 @item take - Takes the first n items of a collection
15473 @item first - Takes the first item of a collection
15474 @item remove - Predicated-removes items of a collection
15475 @item concat - Concatenates two collections
15476 @item flatten - Flattens a collection with subcollections
15477 @item distinct - Returns only distinct items
15478 @item split - Predicated-splits a collection
15479 @item split_at - Splits a collection at a given item
15480 @item group_by - Groups items by group
15481 @item pairwise - Pairs off adjacent items
15482 @item partial - Partially-applies a function
15483 @item curry - Curries a function
15484 @item compose - Composes functions
15485 @item complement - Complements a predicate
15486 @item all_fn - \"all\" with predicate
15488 (license license:bsd-3)))
15490 (define-public python2-funcy
15491 (package-with-python2 python-funcy))
15493 (define-public python-isoweek
15495 (name "python-isoweek")
15500 (uri (pypi-uri "isoweek" version))
15503 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
15504 (build-system python-build-system)
15505 (home-page "https://github.com/gisle/isoweek")
15506 (synopsis "Objects representing a week")
15507 (description "The @code{isoweek} module provide the class Week that
15508 implements the week definition of ISO 8601. This standard also defines
15509 a notation for identifying weeks; yyyyWww (where the W is a literal).
15510 Week instances stringify to this form.")
15511 (license license:bsd-3)))
15513 (define-public python2-isoweek
15514 (package-with-python2 python-isoweek))
15516 (define-public python-tokenize-rt
15518 (name "python-tokenize-rt")
15523 (uri (pypi-uri "tokenize-rt" version))
15526 "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
15527 (build-system python-build-system)
15528 (home-page "https://github.com/asottile/tokenize-rt")
15529 (synopsis "Wrapper around the stdlib tokenize which roundtrips.")
15531 "This Python library is a wrapper around @code{tokenize} from the Python
15532 standard library. It provides two additional tokens @code{ESCAPED_NL} and
15533 @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
15534 and @code{tokens_to_src} to roundtrip.")
15535 (license license:expat)))
15537 (define-public python-future-fstrings
15539 (name "python-future-fstrings")
15544 (uri (pypi-uri "future_fstrings" version))
15547 "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
15548 (build-system python-build-system)
15550 `(("python-tokenize-rt" ,python-tokenize-rt)))
15551 (home-page "https://github.com/asottile/future-fstrings")
15552 (synopsis "Backport of fstrings to Python < 3.6")
15554 "This package provides a UTF-8 compatible encoding
15555 @code{future_fstrings}, which performs source manipulation. It decodes the
15556 source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
15557 @code{f} strings.")
15558 (license license:expat)))
15560 (define-public python-typed-ast
15562 (name "python-typed-ast")
15567 (uri (git-reference
15568 (url "https://github.com/python/typed_ast.git")
15571 (base32 "0l0hz809f7i356kmqkvfsaswiidb98j9hs9rrjnfawzqcbffzgyb"))
15572 (file-name (git-file-name name version))))
15573 (build-system python-build-system)
15575 `(#:modules ((guix build utils)
15576 (guix build python-build-system)
15581 (modify-phases %standard-phases
15584 (let ((cwd (getcwd)))
15585 (setenv "PYTHONPATH"
15586 (string-append cwd "/build/"
15587 (find (cut string-prefix? "lib" <>)
15588 (scandir (string-append cwd "/build")))
15590 (getenv "PYTHONPATH"))))
15593 (native-inputs `(("python-pytest" ,python-pytest)))
15594 (home-page "https://github.com/python/typed_ast")
15595 (synopsis "Fork of Python @code{ast} modules with type comment support")
15596 (description "This package provides a parser similar to the standard
15597 @code{ast} library. Unlike @code{ast}, the parsers in @code{typed_ast}
15598 include PEP 484 type comments and are independent of the version of Python
15599 under which they are run. The @code{typed_ast} parsers produce the standard
15600 Python AST (plus type comments), and are both fast and correct, as they are
15601 based on the CPython 2.7 and 3.7 parsers.")
15602 ;; See the file "LICENSE" for the details.
15603 (license (list license:psfl
15605 license:expat)))) ;ast27/Parser/spark.py
15607 (define-public python-typing
15609 (name "python-typing")
15614 (uri (pypi-uri "typing" version))
15617 "0ba9acs4awx15bf9v3nrs781msbd2nx826906nj6fqks2bvca9s0"))))
15618 (build-system python-build-system)
15619 (home-page "https://docs.python.org/3/library/typing.html")
15620 (synopsis "Type hints for Python")
15621 (description "This is a backport of the standard library @code{typing}
15622 module to Python versions older than 3.5. Typing defines a standard notation
15623 for Python function and variable type annotations. The notation can be used
15624 for documenting code in a concise, standard format, and it has been designed
15625 to also be used by static and runtime type checkers, static analyzers, IDEs
15627 (license license:psfl)))
15629 (define-public python2-typing
15630 (package-with-python2 python-typing))
15632 (define-public python-typing-extensions
15634 (name "python-typing-extensions")
15635 (version "3.7.4.1")
15639 (uri (pypi-uri "typing_extensions" version))
15642 "1wj1vcgbnm20aiinmphyxfrbv3qi9xdhvw89ab3qm42y9n4wq7h9"))))
15643 (build-system python-build-system)
15645 "https://github.com/python/typing/blob/master/typing_extensions/README.rst")
15646 (synopsis "Experimental type hints for Python")
15648 "The typing_extensions module contains additional @code{typing} hints not
15649 yet present in the of the @code{typing} standard library.
15650 Included are implementations of:
15653 @item ContextManager
15664 @item TYPE_CHECKING
15665 @item AsyncGenerator
15667 (license license:psfl)))
15669 (define-public bpython
15676 (uri (pypi-uri "bpython" version))
15678 (base32 "1hl6frgvr2lqaxqczl8amg9xih32b3gzv429vs0qrjb8wpdj1k2n"))))
15679 (build-system python-build-system)
15682 (modify-phases %standard-phases
15683 (add-after 'unpack 'remove-failing-test
15685 ;; Remove failing test. FIXME: make it pass
15686 (delete-file "bpython/test/test_args.py")
15688 (add-after 'wrap 'add-aliases
15689 ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
15690 (lambda* (#:key outputs #:allow-other-keys)
15691 (let ((out (assoc-ref outputs "out")))
15694 (symlink old (string-append out "/bin/" new)))
15695 '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
15696 '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
15699 `(("python-pygments" ,python-pygments)
15700 ("python-requests" ,python-requests)
15701 ("python-babel" ,python-babel) ; optional, for internationalization
15702 ("python-curtsies" ,python-curtsies) ; >= 0.1.18
15703 ("python-greenlet" ,python-greenlet)
15704 ("python-urwid" ,python-urwid) ; for bpython-urwid only
15705 ("python-six" ,python-six)))
15707 `(("python-sphinx" ,python-sphinx)
15708 ("python-mock" ,python-mock)))
15709 (home-page "https://bpython-interpreter.org/")
15710 (synopsis "Fancy interface to the Python interpreter")
15711 (description "Bpython is a fancy interface to the Python
15712 interpreter. bpython's main features are
15715 @item in-line syntax highlighting,
15716 @item readline-like autocomplete with suggestions displayed as you type,
15717 @item expected parameter list for any Python function,
15718 @item \"rewind\" function to pop the last line of code from memory and
15720 @item send the code you've entered off to a pastebin,
15721 @item save the code you've entered to a file, and
15722 @item auto-indentation.
15724 (license license:expat)))
15726 (define-public bpython2
15727 (let ((base (package-with-python2
15728 (strip-python2-variant bpython))))
15729 (package (inherit base)
15732 `(#:python ,python-2
15734 (modify-phases %standard-phases
15735 (add-after 'unpack 'remove-failing-test
15737 ;; Remove failing test. FIXME: make it pass
15738 (delete-file "bpython/test/test_args.py")
15739 ;; Disable failing test-cases (renaming inhibits they are
15741 (substitute* "bpython/test/test_curtsies_repl.py"
15742 (("^(\\s*def )(test_get_last_word_with_prev_line\\W)" _ a b)
15743 (string-append a "xxx_off_" b))
15744 (("^(\\s*def )(test_complex\\W)" _ a b)
15745 (string-append a "xxx_off_" b)))
15747 (add-before 'build 'rename-scripts
15748 ;; rename the scripts to bypthon2, bpdb2, etc.
15750 (substitute* "setup.py"
15751 (("^(\\s+'bpdb)(\\s+=.*',?)\\s*?$" _ name rest)
15752 (string-append name "2" rest "\n"))
15753 (("^(\\s+'bpython)(-\\S+)?(\\s+=.*',?)\\s*?$" _ name sub rest)
15754 (string-append name "2" (or sub "") rest "\n")))
15757 (define-public python-pyinotify
15759 (name "python-pyinotify")
15763 (uri (pypi-uri "pyinotify" version))
15766 "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
15767 (build-system python-build-system)
15768 (arguments `(#:tests? #f)) ;no tests
15769 (home-page "https://github.com/seb-m/pyinotify")
15770 (synopsis "Python library for monitoring inotify events")
15772 "@code{pyinotify} provides a Python interface for monitoring
15773 file system events on Linux.")
15774 (license license:expat)))
15776 (define-public python2-pyinotify
15777 (package-with-python2 python-pyinotify))
15779 ;; Ada parser uses this version.
15780 (define-public python2-quex-0.67.3
15782 (name "python2-quex")
15787 (uri (string-append "mirror://sourceforge/quex/HISTORY/"
15788 (version-major+minor version)
15789 "/quex-" version ".zip"))
15792 "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw"))))
15793 (build-system python-build-system)
15795 `(("unzip" ,unzip)))
15797 `(#:python ,python-2
15800 (modify-phases %standard-phases
15801 (delete 'configure)
15804 (lambda* (#:key outputs #:allow-other-keys)
15805 (let* ((out (assoc-ref outputs "out"))
15806 (share/quex (string-append out "/share/quex"))
15807 (bin (string-append out "/bin")))
15808 (copy-recursively "." share/quex)
15810 (symlink (string-append share/quex "/quex-exe.py")
15811 (string-append bin "/quex"))
15813 (native-search-paths
15814 (list (search-path-specification
15815 (variable "QUEX_PATH")
15816 (files '("share/quex")))))
15817 (home-page "http://quex.sourceforge.net/")
15818 (synopsis "Lexical analyzer generator in Python")
15819 (description "@code{quex} is a lexical analyzer generator in Python.")
15820 (license license:lgpl2.1+))) ; Non-military
15822 (define-public python2-quex
15823 (package (inherit python2-quex-0.67.3)
15824 (name "python2-quex")
15829 (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz"))
15832 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j"))
15833 (file-name (string-append name "-" version ".tar.gz"))))))
15835 (define-public python-more-itertools
15837 (name "python-more-itertools")
15842 (uri (pypi-uri "more-itertools" version))
15845 "16phg2f2dvm6ci5wr49ncha5lmc0m2in3bsl33c61vzca4gkvd4b"))))
15846 (build-system python-build-system)
15847 (home-page "https://github.com/erikrose/more-itertools")
15848 (synopsis "More routines for operating on iterables, beyond itertools")
15849 (description "Python's built-in @code{itertools} module implements a
15850 number of iterator building blocks inspired by constructs from APL, Haskell,
15851 and SML. @code{more-itertools} includes additional building blocks for
15852 working with iterables.")
15853 (properties `((python2-variant . ,(delay python2-more-itertools))))
15854 (license license:expat)))
15856 ;; The 5.x series are the last versions supporting Python 2.7.
15857 (define-public python2-more-itertools
15859 (inherit python-more-itertools)
15860 (name "python2-more-itertools")
15864 (uri (pypi-uri "more-itertools" version))
15867 "1r12cm6mcdwdzz7d47a6g4l437xsvapdlgyhqay3i2nrlv03da9q"))))
15869 `(#:python ,python2-minimal))
15871 `(("python2-six" ,python2-six-bootstrap)))))
15873 (define-public python-latexcodec
15875 (name "python-latexcodec")
15880 (uri (pypi-uri "latexcodec" version))
15882 (base32 "0wnp3yqcgx0rpy8dz51vh75lbp2qif67da19zi7m3ca98n887hgb"))))
15883 (build-system python-build-system)
15885 `(("python-six" ,python-six)))
15886 (home-page "https://readthedocs.org/projects/latexcodec/")
15887 (synopsis "Work with LaTeX code in Python")
15888 (description "Lexer and codec to work with LaTeX code in Python.")
15889 (license license:expat)))
15891 (define-public python-pybtex
15893 (name "python-pybtex")
15898 (uri (pypi-uri "pybtex" version))
15900 (base32 "070wfcmxrd7xg1si421mi9150gmx2qwx431nwf69sq3hhmgnx080"))))
15901 (build-system python-build-system)
15903 `(("python-nose" ,python-nose)))
15905 `(("python-latexcodec" ,python-latexcodec)
15906 ("python-pyyaml" ,python-pyyaml)
15907 ("python-six" ,python-six)))
15909 `(#:test-target "nosetests"))
15910 (home-page "https://pybtex.org/")
15911 (synopsis "BibTeX-compatible bibliography processor")
15912 (description "Pybtex is a BibTeX-compatible bibliography processor written
15913 in Python. You can simply type pybtex instead of bibtex.")
15914 (license license:expat)))
15916 (define-public python-onetimepass
15918 (name "python-onetimepass")
15923 (uri (pypi-uri "onetimepass" version))
15925 (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
15926 (build-system python-build-system)
15927 (propagated-inputs `(("python-six" ,python-six)))
15928 (home-page "https://github.com/tadeck/onetimepass/")
15929 (synopsis "One-time password library")
15930 (description "Python one-time password library for HMAC-based (HOTP) and
15931 time-based (TOTP) passwords.")
15932 (license license:expat)))
15934 (define-public python-parso
15936 (name "python-parso")
15941 (uri (pypi-uri "parso" version))
15944 "0mr1j4ijqnrihz1yap34g6i8vjldg5lz814sz4v0d8pbqvh5jmhc"))))
15946 `(("python-pytest" ,python-pytest)))
15947 (build-system python-build-system)
15949 `(#:phases (modify-phases %standard-phases
15951 (lambda _ (invoke "pytest" "-vv"))))))
15952 (home-page "https://github.com/davidhalter/parso")
15953 (synopsis "Python Parser")
15954 (description "Parso is a Python parser that supports error recovery and
15955 round-trip parsing for different Python versions (in multiple Python versions).
15956 Parso is also able to list multiple syntax errors in your Python file.")
15957 (license license:expat)))
15959 (define-public python2-parso
15960 (package-with-python2 python-parso))
15962 ;; This version is required for Jedi@0.15, which in turn is needed for
15963 ;; python-language-server.
15964 (define-public python-parso-0.5
15966 (inherit python-parso)
15970 (uri (pypi-uri "parso" version))
15973 "1qgvrkpma7vylrk047mxxvqd66nwqk978n3ig2w8iz9m3bgjbksm"))))))
15975 (define-public python-async-generator
15977 (name "python-async-generator")
15982 (uri (pypi-uri "async_generator" version))
15985 "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
15986 (build-system python-build-system)
15988 `(("python-pytest" ,python-pytest)))
15989 (home-page "https://github.com/python-trio/async_generator")
15990 (synopsis "Async generators and context managers for Python 3.5+")
15991 (description "@code{async_generator} back-ports Python 3.6's native async
15992 generators and Python 3.7's context managers into Python 3.5.")
15994 (license (list license:expat license:asl2.0))))
15996 (define-public python-async-timeout
15998 (name "python-async-timeout")
16003 (uri (pypi-uri "async-timeout" version))
16006 "0pscbyr840m7fyfc3r8zv9kgkwdcn9f78p7zsrczciwd09m82g0c"))))
16007 (build-system python-build-system)
16008 (home-page "https://github.com/aio-libs/async_timeout/")
16009 (synopsis "Timeout context manager for asyncio programs")
16010 (description "@code{async-timeout} provides a timeout timeout context
16011 manager compatible with @code{asyncio}.")
16012 (license license:asl2.0)))
16014 (define-public python-glob2
16016 (name "python-glob2")
16021 (uri (git-reference
16022 (url "https://github.com/miracle2k/python-glob2.git")
16023 (commit (string-append "v" version))))
16024 (file-name (git-file-name name version))
16026 (base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
16027 (build-system python-build-system)
16028 (home-page "https://github.com/miracle2k/python-glob2/")
16029 (synopsis "Extended Version of the python buildin glob module")
16030 (description "This is an extended version of the Python
16031 @url{http://docs.python.org/library/glob.html, built-in glob module} which
16035 @item The ability to capture the text matched by glob patterns, and return
16036 those matches alongside the file names.
16037 @item A recursive @code{**} globbing syntax, akin for example to the
16038 @code{globstar} option of Bash.
16039 @item The ability to replace the file system functions used, in order to glob
16040 on virtual file systems.
16041 @item Compatible with Python 2 and Python 3 (tested with 3.3).
16044 Glob2 currently based on the glob code from Python 3.3.1.")
16045 (license license:bsd-2)))
16047 (define-public python2-glob2
16048 (package-with-python2 python-glob2))
16050 (define-public python-gipc
16052 (name "python-gipc")
16057 (uri (pypi-uri "gipc" version ".zip"))
16060 "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
16061 (build-system python-build-system)
16063 `(("unzip" ,unzip)))
16065 `(("python-gevent" ,python-gevent)))
16066 (home-page "https://gehrcke.de/gipc/")
16067 (synopsis "Child process management in the context of gevent")
16068 (description "Usage of Python's multiprocessing package in a
16069 gevent-powered application may raise problems. With @code{gipc},
16070 process-based child processes can safely be created anywhere within a
16071 gevent-powered application.")
16072 (license license:expat)))
16074 (define-public python2-gipc
16075 (package-with-python2 python-gipc))
16077 (define-public python-fusepy
16079 (name "python-fusepy")
16084 (uri (pypi-uri "fusepy" version))
16087 "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
16088 (build-system python-build-system)
16091 (modify-phases %standard-phases
16092 (add-before 'build 'set-library-file-name
16093 (lambda* (#:key inputs #:allow-other-keys)
16094 (let ((fuse (assoc-ref inputs "fuse")))
16095 (substitute* "fuse.py"
16096 (("find_library\\('fuse'\\)")
16097 (string-append "'" fuse "/lib/libfuse.so'")))
16101 (home-page "https://github.com/fusepy/fusepy")
16102 (synopsis "Simple ctypes bindings for FUSE")
16103 (description "Python module that provides a simple interface to FUSE and
16104 MacFUSE. The binding is created using the standard @code{ctypes} library.")
16105 (license license:isc)))
16107 (define-public python2-fusepy
16108 (package-with-python2 python-fusepy))
16110 (define-public python-fusepyng
16112 (name "python-fusepyng")
16117 (uri (pypi-uri "fusepyng" version))
16120 "17w9iw6m6zjbmnhs4ikd27pq4mb1nan6k4ahlwyz40463vw6wkwb"))))
16121 (build-system python-build-system)
16124 (modify-phases %standard-phases
16125 (add-after 'unpack 'set-libfuse-path
16126 (lambda* (#:key inputs #:allow-other-keys)
16127 (let ((fuse (assoc-ref inputs "fuse")))
16128 (substitute* "fusepyng.py"
16129 (("os.environ.get\\('FUSE_LIBRARY_PATH'\\)")
16130 (string-append "\"" fuse "/lib/libfuse.so\""))))
16135 `(("python-paramiko" ,python-paramiko)))
16136 (home-page "https://github.com/rianhunter/fusepyng")
16137 (synopsis "Simple ctypes bindings for FUSE")
16138 (description "@code{fusepyng} is a Python module that provides a simple
16139 interface to FUSE on various operating systems. It's just one file and is
16140 implemented using @code{ctypes}.")
16141 (license license:isc)))
16143 (define-public python2-gdrivefs
16145 (name "python2-gdrivefs")
16150 (uri (pypi-uri "gdrivefs" version))
16153 "0v9sp2cfg4ki3wagkwf3rnfpjhvgf845anz3757il9z95yvvcvb7"))))
16154 (build-system python-build-system)
16156 `(#:python ,python-2
16158 (modify-phases %standard-phases
16159 (add-before 'build 'patch-setup-py
16161 ;; Update requirements from dependency==version
16162 ;; to dependency>=version
16163 (substitute* "gdrivefs/resources/requirements.txt"
16167 `(("python2-gipc" ,python2-gipc)
16168 ("python2-gevent" ,python2-gevent)
16169 ("python2-greenlet" ,python2-greenlet)
16170 ("python2-httplib2" ,python2-httplib2)
16171 ("python2-uritemplate" ,python2-uritemplate)
16172 ("python2-oauth2client" ,python2-oauth2client)
16173 ("python2-six" ,python2-six)))
16175 `(("python2-dateutil" ,python2-dateutil)
16176 ("python2-fusepy" ,python2-fusepy)
16177 ("python2-google-api-client" ,python2-google-api-client)))
16178 (home-page "https://github.com/dsoprea/GDriveFS")
16179 (synopsis "Mount Google Drive as a local file system")
16180 (description "@code{gdrivefs} provides a FUSE wrapper for Google Drive
16181 under Python 2.7.")
16182 (license license:gpl2)))
16184 (define-public python-userspacefs
16186 (name "python-userspacefs")
16191 (uri (pypi-uri "userspacefs" version))
16194 "0kyz52jyxw3m7hqvn5g6z0sx9cq6k0nq1wj44lvdrghdljjgyk2z"))))
16195 (build-system python-build-system)
16197 `(("python-fusepyng" ,python-fusepyng)))
16198 (home-page "https://github.com/rianhunter/userspacefs")
16199 (synopsis "User-space file systems for Python")
16201 "@code{userspacefs} is a library that allows you to easily write
16202 user-space file systems in Python.")
16203 (license license:gpl3+)))
16205 (define-public pybind11
16211 (uri (git-reference
16212 (url "https://github.com/pybind/pybind11.git")
16213 (commit (string-append "v" version))))
16216 "0k89w4bsfbpzw963ykg1cyszi3h3nk393qd31m6y46pcfxkqh4rd"))
16217 (file-name (git-file-name name version))))
16218 (build-system cmake-build-system)
16220 `(("python" ,python-wrapper)
16222 ;; The following dependencies are used for tests.
16223 ("python-pytest" ,python-pytest)
16224 ("catch" ,catch-framework2-1)
16227 `(#:configure-flags
16228 (list (string-append "-DCATCH_INCLUDE_DIR="
16229 (assoc-ref %build-inputs "catch")
16232 #:phases (modify-phases %standard-phases
16233 (add-after 'install 'install-python
16234 (lambda* (#:key outputs #:allow-other-keys)
16235 (let ((out (assoc-ref outputs "out")))
16236 (with-directory-excursion "../source"
16237 (setenv "PYBIND11_USE_CMAKE" "yes")
16238 (invoke "python" "setup.py" "install"
16239 "--single-version-externally-managed"
16241 (string-append "--prefix=" out)))))))
16243 #:test-target "check"))
16244 (home-page "https://github.com/pybind/pybind11/")
16245 (synopsis "Seamless operability between C++11 and Python")
16247 "@code{pybind11} is a lightweight header-only library that exposes C++
16248 types in Python and vice versa, mainly to create Python bindings of existing
16249 C++ code. Its goals and syntax are similar to the @code{Boost.Python}
16250 library: to minimize boilerplate code in traditional extension modules by
16251 inferring type information using compile-time introspection.")
16252 (license license:bsd-3)))
16254 (define-public python-fasteners
16256 (name "python-fasteners")
16261 (uri (pypi-uri "fasteners" version))
16264 "063y20kx01ihbz2mziapmjxi2cd0dq48jzg587xdsdp07xvpcz22"))))
16265 (build-system python-build-system)
16267 `(("python-monotonic" ,python-monotonic)
16268 ("python-six" ,python-six)
16269 ("python-testtools" ,python-testtools)))
16270 (home-page "https://github.com/harlowja/fasteners")
16271 (synopsis "Python package that provides useful locks")
16273 "This package provides a Python program that provides following locks:
16276 @item Locking decorator
16277 @item Reader-writer locks
16278 @item Inter-process locks
16279 @item Generic helpers
16281 (properties `((python2-variant . ,(delay python2-fasteners))))
16282 (license license:asl2.0)))
16284 (define-public python2-fasteners
16285 (let ((base (package-with-python2 (strip-python2-variant python-fasteners))))
16289 `(("python2-futures" ,python2-futures)
16290 ,@(package-propagated-inputs base))))))
16292 (define-public python-requests-file
16294 (name "python-requests-file")
16299 (uri (pypi-uri "requests-file" version))
16302 "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
16303 (build-system python-build-system)
16305 `(("python-requests" ,python-requests)
16306 ("python-six" ,python-six)))
16308 "https://github.com/dashea/requests-file")
16309 (synopsis "File transport adapter for Requests")
16311 "Requests-File is a transport adapter for use with the Requests Python
16312 library to allow local file system access via @code{file://} URLs.")
16313 (license license:asl2.0)))
16315 (define-public python2-requests-file
16316 (package-with-python2 python-requests-file))
16318 (define-public python-tldextract
16320 (name "python-tldextract")
16325 (uri (pypi-uri "tldextract" version))
16328 "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"))))
16329 (build-system python-build-system)
16331 `(("python-pytest" ,python-pytest)
16332 ("python-responses" ,python-responses)))
16334 `(("python-idna" ,python-idna)
16335 ("python-requests" ,python-requests)
16336 ("python-requests-file" ,python-requests-file)))
16338 "https://github.com/john-kurkowski/tldextract")
16340 "Separate the TLD from the registered domain and subdomains of a URL")
16342 "TLDExtract accurately separates the TLD from the registered domain and
16343 subdomains of a URL, using the Public Suffix List. By default, this includes
16344 the public ICANN TLDs and their exceptions. It can optionally support the
16345 Public Suffix List's private domains as well.")
16346 (license license:bsd-3)))
16348 (define-public python2-tldextract
16349 (package-with-python2 python-tldextract))
16351 (define-public python-pynamecheap
16353 (name "python-pynamecheap")
16358 (uri (pypi-uri "PyNamecheap" version))
16361 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
16362 (build-system python-build-system)
16364 `(("python-requests" ,python-requests)))
16366 "https://github.com/Bemmu/PyNamecheap")
16368 "Namecheap API client in Python")
16370 "PyNamecheap is a Namecheap API client in Python.")
16371 (license license:expat)))
16373 (define-public python2-pynamecheap
16374 (package-with-python2 python-pynamecheap))
16376 (define-public python-dns-lexicon
16378 (name "python-dns-lexicon")
16383 (uri (pypi-uri "dns-lexicon" version))
16386 "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
16387 (build-system python-build-system)
16389 `(#:tests? #f)) ;requires internet access
16391 `(("python-future" ,python-future)
16392 ("python-pynamecheap" ,python-pynamecheap)
16393 ("python-requests" ,python-requests)
16394 ("python-tldextract" ,python-tldextract)
16395 ("python-urllib3" ,python-urllib3)))
16396 (home-page "https://github.com/AnalogJ/lexicon")
16398 "Manipulate DNS records on various DNS providers")
16400 "Lexicon provides a way to manipulate DNS records on multiple DNS
16401 providers in a standardized way. It has a CLI but it can also be used as a
16402 Python library. It was designed to be used in automation, specifically with
16404 (license license:expat)))
16406 (define-public python2-dns-lexicon
16407 (package-with-python2 python-dns-lexicon))
16409 (define-public python-commandlines
16411 (name "python-commandlines")
16416 (uri (pypi-uri "commandlines" version))
16419 "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
16420 (build-system python-build-system)
16421 (home-page "https://github.com/chrissimpkins/commandlines")
16422 (synopsis "Command line argument to object parsing library")
16424 "@code{Commandlines} is a Python library for command line application
16425 development that supports command line argument parsing, command string
16426 validation testing and application logic.")
16427 (license license:expat)))
16429 ;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
16430 ;; python-numba. They have a very unflexible relationship.
16431 (define-public python-numba
16433 (name "python-numba")
16438 (uri (pypi-uri "numba" version))
16441 "1vnfzcq6fcnkmdms6114d49awvvj5181fl7z1wlha27qc2paxjy2"))))
16442 (build-system python-build-system)
16444 `(#:modules ((guix build utils)
16445 (guix build python-build-system)
16450 (modify-phases %standard-phases
16451 (add-after 'unpack 'disable-proprietary-features
16453 (setenv "NUMBA_DISABLE_HSA" "1")
16454 (setenv "NUMBA_DISABLE_CUDA" "1")
16456 (add-after 'unpack 'remove-failing-tests
16458 ;; FIXME: These tests fail for unknown reasons:
16459 ;; test_non_writable_pycache, test_non_creatable_pycache, and
16460 ;; test_frozen (all in numba.tests.test_dispatcher.TestCache).
16461 (substitute* "numba/tests/test_dispatcher.py"
16462 (("def test(_non_writable_pycache)" _ m)
16463 (string-append "def guix_skip" m))
16464 (("def test(_non_creatable_pycache)" _ m)
16465 (string-append "def guix_skip" m))
16466 (("def test(_frozen)" _ m)
16467 (string-append "def guix_skip" m)))
16469 ;; These tests fail because we don't run the tests from the build
16470 ;; directory: test_setup_py_distutils, test_setup_py_setuptools
16471 ;; They are in numba.tests.test_pycc.TestDistutilsSupport.
16472 (substitute* "numba/tests/test_pycc.py"
16473 (("def test(_setup_py_distutils|_setup_py_setuptools)" _ m)
16474 (string-append "def guix_skip" m)))
16476 ;; These tests fail because our version of Python does not have
16477 ;; a recognizable front-end for the Numba distribution to use
16478 ;; to check against.
16479 (substitute* "numba/tests/test_entrypoints.py"
16480 (("def test(_init_entrypoint)" _ m)
16481 (string-append "def guix_skip" m)))
16482 (substitute* "numba/tests/test_jitclasses.py"
16483 (("def test(_jitclass_longlabel_not_truncated)" _ m)
16484 (string-append "def guix_skip" m)))
16488 (let ((cwd (getcwd)))
16489 (setenv "PYTHONPATH"
16490 (string-append cwd "/build/"
16491 (find (cut string-prefix? "lib" <>)
16492 (scandir (string-append cwd "/build")))
16494 (getenv "PYTHONPATH")))
16495 ;; Something is wrong with the PYTHONPATH when running the
16496 ;; tests from the build directory, as it complains about not being
16497 ;; able to import certain modules.
16498 (with-directory-excursion "/tmp"
16499 (invoke "python3" "-m" "numba.runtests" "-v" "-m")))
16502 `(("python-llvmlite" ,python-llvmlite)
16503 ("python-numpy" ,python-numpy)
16504 ("python-singledispatch" ,python-singledispatch)))
16505 ;; Needed for tests.
16507 `(("python-jinja2" ,python-jinja2)
16508 ("python-pygments" ,python-pygments)))
16509 (home-page "https://numba.pydata.org")
16510 (synopsis "Compile Python code using LLVM")
16511 (description "Numba gives you the power to speed up your applications with
16512 high performance functions written directly in Python. With a few
16513 annotations, array-oriented and math-heavy Python code can be just-in-time
16514 compiled to native machine instructions, similar in performance to C, C++ and
16515 Fortran, without having to switch languages or Python interpreters.
16517 Numba works by generating optimized machine code using the LLVM compiler
16518 infrastructure at import time, runtime, or statically (using the included pycc
16520 (license license:bsd-3)))
16522 (define-public python-numcodecs
16524 (name "python-numcodecs")
16529 (uri (pypi-uri "numcodecs" version))
16532 "0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))))
16533 (build-system python-build-system)
16535 `(("python-numpy" ,python-numpy)
16536 ("python-msgpack" ,python-msgpack)))
16538 `(("python-pytest" ,python-pytest)
16539 ("python-setuptools-scm" ,python-setuptools-scm)))
16540 (home-page "https://github.com/zarr-developers/numcodecs")
16541 (synopsis "Buffer compression and transformation codecs")
16543 "This Python package provides buffer compression and transformation
16544 codecs for use in data storage and communication applications.")
16545 (license license:expat)))
16547 (define-public python-asciitree
16549 (name "python-asciitree")
16554 (uri (pypi-uri "asciitree" version))
16557 "0vhgri2m2xlnibhz4xwn4hpbc7xacisxjqrk6k5kyppq96vbk92a"))))
16558 (build-system python-build-system)
16559 (home-page "https://github.com/mbr/asciitree")
16560 (synopsis "Draws ASCII trees")
16561 (description "This package draws tree structures using characters.")
16562 (license license:expat)))
16564 (define-public python-zarr
16566 (name "python-zarr")
16571 (uri (pypi-uri "zarr" version))
16574 "026n3sjzjv2gmwx6y72b8ij0hk42bc8zdbvfj5gdqzd4i6wj3ajk"))))
16575 (build-system python-build-system)
16578 (modify-phases %standard-phases
16579 (add-after 'unpack 'disable-service-tests
16581 (setenv "ZARR_TEST_ABS" "0")
16582 (setenv "ZARR_TEST_MONGO" "0")
16583 (setenv "ZARR_TEST_REDIS" "0")
16587 (invoke "pytest" "-vv" "-k" "not lmdb")
16590 `(("python-asciitree" ,python-asciitree)
16591 ("python-fasteners" ,python-fasteners)
16592 ("python-numcodecs" ,python-numcodecs)
16593 ("python-numpy" ,python-numpy)))
16595 `(("python-pytest" ,python-pytest)
16596 ("python-setuptools-scm" ,python-setuptools-scm)))
16597 (home-page "https://github.com/zarr-developers/zarr-python")
16598 (synopsis "Chunked, compressed, N-dimensional arrays for Python")
16600 "This package provides an implementation of chunked, compressed,
16601 N-dimensional arrays for Python.")
16602 (license license:expat)))
16604 (define-public python-anndata
16606 (name "python-anndata")
16611 (uri (pypi-uri "anndata" version))
16614 "0rnfbpr55j1a1bi2kd4mz444741hrn74kz90h5rnjr59jmpfnh09"))))
16615 (build-system python-build-system)
16618 (modify-phases %standard-phases
16619 (add-after 'unpack 'delete-inconvenient-tests
16621 ;; This test depends on python-scikit-learn.
16622 (delete-file "anndata/tests/test_inplace_subset.py")
16625 (add-after 'install 'check
16626 (lambda* (#:key inputs outputs #:allow-other-keys)
16627 (add-installed-pythonpath inputs outputs)
16628 (invoke "pytest" "-vv"))))))
16630 `(("python-h5py" ,python-h5py)
16631 ("python-importlib-metadata" ,python-importlib-metadata)
16632 ("python-natsort" ,python-natsort)
16633 ("python-numcodecs" ,python-numcodecs)
16634 ("python-packaging" ,python-packaging)
16635 ("python-pandas" ,python-pandas)
16636 ("python-scipy" ,python-scipy)
16637 ("python-zarr" ,python-zarr)))
16639 `(("python-joblib" ,python-joblib)
16640 ("python-pytest" ,python-pytest)
16641 ("python-setuptools-scm" ,python-setuptools-scm)))
16642 (home-page "https://github.com/theislab/anndata")
16643 (synopsis "Annotated data for data analysis pipelines")
16644 (description "Anndata is a package for simple (functional) high-level APIs
16645 for data analysis pipelines. In this context, it provides an efficient,
16646 scalable way of keeping track of data together with learned annotations and
16647 reduces the code overhead typically encountered when using a mostly
16648 object-oriented library such as @code{scikit-learn}.")
16649 (license license:bsd-3)))
16651 (define-public python-dill
16653 (name "python-dill")
16654 (version "0.3.1.1")
16658 (uri (pypi-uri "dill" version))
16660 (base32 "1704g8z70d210ksgbccs2v545v9w0wc6lx15m296alb7jf0yzn22"))))
16661 (build-system python-build-system)
16664 (modify-phases %standard-phases
16667 (with-directory-excursion "/tmp"
16668 (invoke "nosetests" "-v"))
16671 `(("python-nose" ,python-nose)))
16672 (home-page "https://pypi.org/project/dill/")
16673 (synopsis "Serialize all of Python")
16674 (description "Dill extends Python's @code{pickle} module for serializing
16675 and de-serializing Python objects to the majority of the built-in Python
16676 types. Dill provides the user the same interface as the @code{pickle} module,
16677 and also includes some additional features. In addition to pickling Python
16678 objects, @code{dill} provides the ability to save the state of an interpreter
16679 session in a single command. Hence, it would be feasible to save a
16680 interpreter session, close the interpreter, ship the pickled file to another
16681 computer, open a new interpreter, unpickle the session and thus continue from
16682 the saved state of the original interpreter session.")
16683 (license license:bsd-3)))
16685 (define-public python-multiprocess
16687 (name "python-multiprocess")
16692 (uri (pypi-uri "multiprocess" version))
16695 "1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
16696 (build-system python-build-system)
16699 (modify-phases %standard-phases
16700 (add-after 'unpack 'disable-broken-tests
16702 ;; This test is broken as there is no keyboard interrupt.
16703 (substitute* "py3.7/multiprocess/tests/__init__.py"
16704 (("^(.*)def test_wait_result"
16706 (string-append indent
16707 "@unittest.skip(\"Disabled by Guix\")\n"
16710 ;; Tests must be run after installation.
16712 (add-after 'install 'check
16713 (lambda* (#:key inputs outputs #:allow-other-keys)
16714 (add-installed-pythonpath inputs outputs)
16715 (invoke "python" "-m" "multiprocess.tests")
16718 `(("python-dill" ,python-dill)))
16719 (home-page "https://pypi.org/project/multiprocess/")
16720 (synopsis "Multiprocessing and multithreading in Python")
16722 "This package is a fork of the multiprocessing Python package, a package
16723 which supports the spawning of processes using the API of the standard
16724 library's @code{threading} module.")
16725 (license license:bsd-3)))
16727 (define-public python-toolz
16729 (name "python-toolz")
16734 (uri (pypi-uri "toolz" version))
16737 "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
16738 (build-system python-build-system)
16739 ;; FIXME: tests cannot be computed: "Can't perform this operation for
16740 ;; unregistered loader type"
16741 (arguments '(#:tests? #f))
16742 (home-page "https://github.com/pytoolz/toolz/")
16743 (synopsis "List processing tools and functional utilities")
16745 "This package provides a set of utility functions for iterators,
16746 functions, and dictionaries.")
16747 (license license:bsd-3)))
16749 (define-public python2-toolz
16750 (package-with-python2 python-toolz))
16752 (define-public python-cytoolz
16754 (name "python-cytoolz")
16755 (version "0.9.0.1")
16759 (uri (pypi-uri "cytoolz" version))
16762 "1r80p88hm3f3r4zpixzr047y5hw4bzy41m4xywnhycda83x0dk44"))))
16763 (build-system python-build-system)
16764 ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
16766 (arguments '(#:tests? #f))
16768 `(("python-toolz" ,python-toolz)))
16770 `(("python-cython" ,python-cython)))
16771 (home-page "https://github.com/pytoolz/cytoolz")
16772 (synopsis "High performance functional utilities")
16774 "The cytoolz package implements the same API as provided by toolz. The
16775 main differences are that @code{cytoolz} is faster and cytoolz offers a C API
16776 that is accessible to other projects developed in Cython.")
16777 (license license:bsd-3)))
16779 (define-public python-sortedcontainers
16781 (name "python-sortedcontainers")
16786 (uri (pypi-uri "sortedcontainers" version))
16789 "0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
16790 (build-system python-build-system)
16792 `(("python-tox" ,python-tox)))
16794 `(("python-appdirs" ,python-appdirs)
16795 ("python-distlib" ,python-distlib)
16796 ("python-filelock" ,python-filelock)
16797 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
16798 ("python-six" ,python-six)))
16799 (home-page "http://www.grantjenks.com/docs/sortedcontainers/")
16800 (synopsis "Sorted List, Sorted Dict, Sorted Set")
16802 "This package provides a sorted collections library, written in
16804 (license license:asl2.0)))
16806 (define-public python-cloudpickle
16808 (name "python-cloudpickle")
16813 (uri (pypi-uri "cloudpickle" version))
16816 "1wdw89mlm7fqa3fm3ymskx05jrys66n8m1z1a8s0mss0799ahsgi"))))
16817 (build-system python-build-system)
16818 ;; FIXME: there are 5 errors in 122 tests:
16819 ;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.CloudPickleTest)
16820 ;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.CloudPickleTest)
16821 ;; ERROR: test_function_pickle_compat_0_4_0 (tests.cloudpickle_test.Protocol2CloudPickleTest)
16822 ;; ERROR: test_function_pickle_compat_0_4_1 (tests.cloudpickle_test.Protocol2CloudPickleTest)
16823 ;; ERROR: test_temp_file (tests.cloudpickle_file_test.CloudPickleFileTests)
16824 ;; TypeError: cannot serialize '_io.BufferedRandom' object
16825 (arguments '(#:tests? #f))
16827 `(("python-pytest" ,python-pytest)
16828 ("python-mock" ,python-mock)
16829 ("python-tornado" ,python-tornado)))
16830 (home-page "https://github.com/cloudpipe/cloudpickle")
16831 (synopsis "Extended pickling support for Python objects")
16833 "Cloudpickle makes it possible to serialize Python constructs not
16834 supported by the default pickle module from the Python standard library. It
16835 is especially useful for cluster computing where Python expressions are
16836 shipped over the network to execute on remote hosts, possibly close to the
16838 (license license:bsd-3)))
16840 (define-public python2-cloudpickle
16841 (package-with-python2 python-cloudpickle))
16843 (define-public python-locket
16845 (name "python-locket")
16850 (uri (pypi-uri "locket" version))
16853 "1d4z2zngrpqkrfhnd4yhysh66kjn4mblys2l06sh5dix2p0n7vhz"))))
16854 (build-system python-build-system)
16855 (home-page "https://github.com/mwilliamson/locket.py")
16856 (synopsis "File-based locks for Python")
16858 "Locket implements a lock that can be used by multiple processes provided
16859 they use the same path.")
16860 (license license:bsd-2)))
16862 (define-public python2-locket
16863 (package-with-python2 python-locket))
16865 (define-public python-blosc
16867 (name "python-blosc")
16872 (uri (pypi-uri "blosc" version))
16875 "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
16876 (build-system python-build-system)
16877 ;; FIXME: all tests pass, but then this error is printed:
16878 ;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
16879 (arguments '(#:tests? #f))
16881 `(("python-numpy" ,python-numpy)))
16882 (home-page "https://github.com/blosc/python-blosc")
16883 (synopsis "Python wrapper for the Blosc data compressor library")
16884 (description "Blosc is a high performance compressor optimized for binary
16885 data. It has been designed to transmit data to the processor cache faster
16886 than the traditional, non-compressed, direct memory fetch approach via a
16887 @code{memcpy()} system call.
16889 Blosc works well for compressing numerical arrays that contains data with
16890 relatively low entropy, like sparse data, time series, grids with
16891 regular-spaced values, etc.
16893 This Python package wraps the Blosc library.")
16894 (license license:bsd-3)))
16896 (define-public python2-blosc
16897 (package-with-python2 python-blosc))
16899 (define-public python-partd
16901 (name "python-partd")
16906 (uri (pypi-uri "partd" version))
16909 "0sz6rwlnl4fqq220pyz863cnv0gjdxl4m7lscl71ishl5z0xkmhz"))))
16910 (build-system python-build-system)
16912 `(("python-blosc" ,python-blosc)
16913 ("python-locket" ,python-locket)
16914 ("python-numpy" ,python-numpy)
16915 ("python-pandas" ,python-pandas)
16916 ("python-pyzmq" ,python-pyzmq)
16917 ("python-toolz" ,python-toolz)))
16918 (home-page "https://github.com/dask/partd/")
16919 (synopsis "Appendable key-value storage")
16920 (description "Partd stores key-value pairs. Values are raw bytes. We
16921 append on old values. Partd excels at shuffling operations.")
16922 (license license:bsd-3)))
16924 (define-public python2-partd
16925 (package-with-python2 python-partd))
16927 (define-public python-fsspec
16929 (name "python-fsspec")
16934 (uri (pypi-uri "fsspec" version))
16937 "1g9ba8v04s1nrh7pvzfm2md7ivl2mrz3hcq3y9d1a44gd62h17zj"))))
16938 (build-system python-build-system)
16939 (arguments '(#:tests? #f)) ; there are none
16940 (home-page "https://github.com/intake/filesystem_spec")
16941 (synopsis "File-system specification")
16942 (description "The purpose of this package is to produce a template or
16943 specification for a file-system interface, that specific implementations
16944 should follow, so that applications making use of them can rely on a common
16945 behavior and not have to worry about the specific internal implementation
16946 decisions with any given backend.")
16947 (license license:bsd-3)))
16949 (define-public python-dask
16951 (name "python-dask")
16956 (uri (pypi-uri "dask" version))
16958 (base32 "1w1hqr8vyx6ygwflj2737dcy0mmgvrc0s602gnny8pzlcbs9m76b"))))
16959 (build-system python-build-system)
16962 (modify-phases %standard-phases
16963 (add-after 'unpack 'disable-broken-tests
16965 ;; This test is marked as xfail when pytest-xdist is used.
16966 (substitute* "dask/tests/test_threaded.py"
16967 (("def test_interrupt\\(\\)" m)
16968 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
16970 ;; This one fails with a type error:
16971 ;; TypeError: Already tz-aware, use tz_convert to convert.
16972 (substitute* "dask/dataframe/tests/test_shuffle.py"
16973 (("def test_set_index_timestamp\\(\\)" m)
16974 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
16978 (lambda _ (invoke "pytest" "-vv"))))))
16980 `(("python-cloudpickle" ,python-cloudpickle)
16981 ("python-fsspec" ,python-fsspec)
16982 ("python-numpy" ,python-numpy)
16983 ("python-packaging" ,python-packaging)
16984 ("python-pandas" ,python-pandas)
16985 ("python-partd" ,python-partd)
16986 ("python-toolz" ,python-toolz)
16987 ("python-pyyaml" ,python-pyyaml)))
16989 `(("python-pytest" ,python-pytest)
16990 ("python-pytest-runner" ,python-pytest-runner)))
16991 (home-page "https://github.com/dask/dask/")
16992 (synopsis "Parallel computing with task scheduling")
16994 "Dask is a flexible parallel computing library for analytics. It
16995 consists of two components: dynamic task scheduling optimized for computation,
16996 and large data collections like parallel arrays, dataframes, and lists that
16997 extend common interfaces like NumPy, Pandas, or Python iterators to
16998 larger-than-memory or distributed environments. These parallel collections
16999 run on top of the dynamic task schedulers. ")
17000 (license license:bsd-3)))
17002 (define-public python-ilinkedlist
17004 (name "python-ilinkedlist")
17009 (uri (pypi-uri "ilinkedlist" version))
17012 "0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l"))))
17013 (build-system python-build-system)
17014 (native-inputs `(("python-pytest" ,python-pytest)))
17015 (inputs `(("python" ,python)))
17016 (home-page "https://github.com/luther9/ilinkedlist-py")
17017 (synopsis "Immutable linked list library")
17019 "This is a implementation of immutable linked lists for Python. It
17020 contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
17021 Since a linked list is treated as immutable, it is hashable, and its length
17022 can be retrieved in constant time. Some of the terminology is inspired by
17023 LISP. It is possible to create an improper list by creating a @code{Pair}
17024 with a non-list @code{cdr}.")
17025 (license license:gpl3+)))
17027 (define-public python-readlike
17029 (name "python-readlike")
17034 (uri (pypi-uri "readlike" version))
17036 (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
17037 (build-system python-build-system)
17038 (home-page "https://github.com/jangler/readlike")
17039 (synopsis "GNU Readline-like line editing module")
17041 "This Python module provides line editing functions similar to the default
17042 Emacs-style ones of GNU Readline. Unlike the Python standard library's
17043 @code{readline} package, this one allows access to those capabilties in settings
17044 outside of a standard command-line interface. It is especially well-suited to
17045 interfacing with Urwid, due to a shared syntax for describing key inputs.
17047 Currently, all stateless Readline commands are implemented. Yanking and history
17048 are not supported.")
17049 (license license:expat)))
17051 (define-public python2-readlike
17052 (package-with-python2 python-readlike))
17054 (define-public python-reparser
17056 (name "python-reparser")
17061 (uri (pypi-uri "ReParser" version))
17063 (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
17064 (build-system python-build-system)
17065 (home-page "https://github.com/xmikos/reparser")
17066 (synopsis "Simple lexer/parser for inline markup based on regular expressions")
17068 "This Python library provides a simple lexer/parser for inline markup based
17069 on regular expressions.")
17070 (license license:expat)))
17072 (define-public python2-reparser
17073 (let ((reparser (package-with-python2
17074 (strip-python2-variant python-reparser))))
17075 (package (inherit reparser)
17077 `(("python2-enum34" ,python2-enum34)
17078 ,@(package-propagated-inputs reparser))))))
17080 (define-public python-precis-i18n
17082 (name "python-precis-i18n")
17087 (uri (pypi-uri "precis_i18n" version))
17090 "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2"))))
17091 (build-system python-build-system)
17092 (home-page "https://github.com/byllyfish/precis_i18n")
17093 (synopsis "Implementation of the PRECIS framework")
17095 "This module implements the PRECIS Framework as described in RFC 8264,
17096 RFC 8265 and RFC 8266.")
17097 (license license:expat)))
17099 (define-public python-absl-py
17101 (name "python-absl-py")
17106 (uri (pypi-uri "absl-py" version))
17109 "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
17110 (build-system python-build-system)
17112 `(("python-six" ,python-six)))
17113 (home-page "https://github.com/abseil/abseil-py")
17114 (synopsis "Abseil Python common libraries")
17116 "This package provides the Abseil Python Common Libraries, a collection
17117 of Python libraries for building Python applications.")
17118 (license license:asl2.0)))
17120 (define-public python-astor
17122 (name "python-astor")
17127 (uri (pypi-uri "astor" version))
17130 "13gv6f2xz9i564byp21gcpc0l3w4cs23k1wbcam8kky2ls3hvhwm"))))
17131 (build-system python-build-system)
17132 ;; FIXME: There are two errors and two test failures.
17133 (arguments `(#:tests? #f))
17134 (home-page "https://github.com/berkerpeksag/astor")
17135 (synopsis "Read and write Python ASTs")
17136 (description "Astor is designed to allow easy manipulation of Python
17137 source via the Abstract Syntax Tree.")
17138 (license license:bsd-3)))
17140 (define-public python2-astor
17141 (package-with-python2 python-astor))
17143 (define-public python-astunparse
17145 (name "python-astunparse")
17150 (uri (pypi-uri "astunparse" version))
17152 (base32 "0rzbc44xcvzjhhiy7wac96mgal5mcjz1mfq8rmvgswskf4kf9cys"))))
17153 (build-system python-build-system)
17154 (arguments '(#:tests? #f)) ; there are none
17156 `(("python-six" ,python-six)
17157 ("python-wheel" ,python-wheel)))
17158 (home-page "https://github.com/simonpercivall/astunparse")
17159 (synopsis "AST unparser for Python")
17160 (description "This package provides an AST unparser for Python. It is a
17161 factored out version of @code{unparse} found in the Python source
17163 (license license:bsd-3)))
17165 (define-public python-gast
17167 (name "python-gast")
17172 (uri (pypi-uri "gast" version))
17174 (base32 "0mrvvfzqafj1wzd0xxfmjf4vphnlxypbhpic1m283aj9i8lfz0dq"))))
17175 (build-system python-build-system)
17177 `(("python-astunparse" ,python-astunparse)))
17178 (home-page "https://pypi.org/project/gast/")
17179 (synopsis "Generic Python AST that abstracts the underlying Python version")
17181 "GAST provides a compatibility layer between the AST of various Python
17182 versions, as produced by @code{ast.parse} from the standard @code{ast}
17184 (license license:bsd-3)))
17186 (define-public python-wikidata
17188 (name "python-wikidata")
17193 (uri (pypi-uri "Wikidata" version))
17196 "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
17197 (build-system python-build-system)
17199 `(("python-babel" ,python-babel)))
17200 (home-page "https://github.com/dahlia/wikidata")
17201 (synopsis "Wikidata client library")
17203 "This package provides a Python interface to
17204 @url{https://www.wikidata.org/, Wikidata}.")
17205 (properties '((upstream-name . "Wikidata")))
17206 (license license:gpl3+)))
17208 (define-public python-doctest-ignore-unicode
17210 (name "python-doctest-ignore-unicode")
17215 (uri (pypi-uri "doctest-ignore-unicode" version))
17218 "1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w"))))
17219 (build-system python-build-system)
17221 `(("python-nose" ,python-nose)))
17222 (home-page "https://github.com/gnublade/doctest-ignore-unicode")
17223 (synopsis "Ignore Unicode literal prefixes in doctests")
17225 "This package adds support for a flag to ignore Unicode literal prefixes
17227 (license license:asl2.0)))
17229 (define-public python-attr
17231 (name "python-attr")
17236 (uri (pypi-uri "attr" version))
17239 "0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch"))))
17240 (build-system python-build-system)
17241 (home-page "https://github.com/denis-ryzhkov/attr")
17242 (synopsis "Decorator for attributes of target function or class")
17243 (description "Simple decorator to set attributes of target function or
17244 class in a @acronym{DRY, Don't Repeat Yourself} way.")
17245 (license license:expat)))
17247 (define-public python-construct
17249 (name "python-construct")
17250 (version "2.10.56")
17254 (uri (pypi-uri "construct" version))
17257 "0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp"))))
17258 (build-system python-build-system)
17260 `(#:tests? #f)) ; No tests exist.
17262 `(("python-extras" ,python-extras)
17263 ("python-arrow" ,python-arrow)
17264 ("python-numpy" ,python-numpy)
17265 ("python-ruamel.yaml" ,python-ruamel.yaml)))
17266 (home-page "https://construct.readthedocs.io")
17267 (synopsis "Declarative and symmetrical parser and builder for binary data")
17269 "This package provides both simple, atomic constructs (such as
17270 integers of various sizes), as well as composite ones which allow you
17271 form hierarchical and sequential structures of increasing complexity.
17272 It features bit and byte granularity, easy debugging and testing, an
17273 easy-to-extend subclass system, and lots of primitive constructs to
17274 make your work easier.")
17275 (license license:expat)))
17277 (define-public python-humanize
17279 (name "python-humanize")
17284 (uri (pypi-uri "humanize" version))
17287 "06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4"))))
17289 '(#:tests? #f)) ; tests not in pypi archive
17290 (build-system python-build-system)
17291 (home-page "https://github.com/jmoiron/humanize")
17292 (synopsis "Print numerical information in a human-readable form")
17293 (description "This package provides a Python module that displays numbers
17294 and dates in \"human readable\" forms. For example, it would display
17295 \"12345591313\" as \"12.3 billion\".")
17296 (license license:expat)))
17298 (define-public python-txaio
17300 (name "python-txaio")
17305 (uri (pypi-uri "txaio" version))
17308 "1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7"))))
17309 (build-system python-build-system)
17311 `(("python-twisted" ,python-twisted)
17312 ("python-six" ,python-six)))
17313 (home-page "https://github.com/crossbario/txaio")
17314 (synopsis "Compatibility layer between Python asyncio and Twisted")
17315 (description "Txaio provides a compatibility layer between the Python
17316 @code{asyncio} module and @code{Twisted}.")
17317 (license license:expat)))
17319 (define-public python-toolshed
17321 (name "python-toolshed")
17326 (uri (pypi-uri "toolshed" version))
17329 "14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3"))))
17330 (build-system python-build-system)
17332 `(("python-nose" ,python-nose)))
17333 (home-page "https://github.com/brentp/toolshed/")
17334 (synopsis "Collection of modules and functions for working with data")
17335 (description "This is a collection of well-tested, simple modules and
17336 functions that aim to reduce boilerplate when working with data.")
17337 (license license:bsd-2)))
17339 (define-public python-annoy
17341 (name "python-annoy")
17346 (uri (pypi-uri "annoy" version))
17349 "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
17350 (build-system python-build-system)
17352 `(("python-nose" ,python-nose)))
17353 (home-page "https://github.com/spotify/annoy/")
17354 (synopsis "Approximate nearest neighbors library")
17356 "Annoy is a C++ library with Python bindings to search for points in
17357 space that are close to a given query point. It also creates large read-only
17358 file-based data structures that are @code{mmap}ped into memory so that many
17359 processes may share the same data.")
17360 (license license:asl2.0)))
17362 (define-public python-pylzma
17364 (name "python-pylzma")
17369 (uri (pypi-uri "pylzma" version))
17372 "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
17373 (build-system python-build-system)
17374 (home-page "http://www.joachim-bauch.de/projects/pylzma/")
17375 (synopsis "Python bindings for the LZMA library by Igor Pavlov.")
17376 (description "This package provides Python bindings for the LZMA library
17378 (license license:lgpl2.1+)))
17380 (define-public python2-pylzma
17381 (package-with-python2 python-pylzma))
17383 (define-public python2-zeroconf
17385 (name "python2-zeroconf")
17387 ;; This is the last version that supports Python 2.x.
17392 (uri (pypi-uri "zeroconf" version))
17395 "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3"))))
17396 (build-system python-build-system)
17398 `(#:python ,python-2
17400 (modify-phases %standard-phases
17401 (add-after 'unpack 'patch-requires
17402 (lambda* (#:key inputs #:allow-other-keys)
17403 (substitute* "setup.py"
17408 `(("python2-six" ,python2-six)
17409 ("python2-enum32" ,python2-enum34)
17410 ("python2-netifaces" ,python2-netifaces)
17411 ("python2-typing" ,python2-typing)))
17412 (home-page "https://github.com/jstasiak/python-zeroconf")
17413 (synopsis "Pure Python mDNS service discovery")
17415 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
17417 (license license:lgpl2.1+)))
17419 (define-public python-bsddb3
17421 (name "python-bsddb3")
17426 (uri (pypi-uri "bsddb3" version))
17429 "019db2y6bfmiqbrgg9x9f6h72qjmqh05czdn2v5sy9bl0gs23mj2"))))
17430 (build-system python-build-system)
17435 (modify-phases %standard-phases
17436 (add-after 'unpack 'configure-locations
17437 (lambda* (#:key inputs #:allow-other-keys)
17438 (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
17439 (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")
17443 (invoke "python3" "test3.py" "-v"))))))
17444 (home-page "https://www.jcea.es/programacion/pybsddb.htm")
17445 (synopsis "Python bindings for Oracle Berkeley DB")
17447 "This module provides a nearly complete wrapping of the Oracle/Sleepycat
17448 C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
17449 Transaction objects, and each of these is exposed as a Python type in the
17450 bsddb3.db module. The database objects can use various access methods: btree,
17451 hash, recno, and queue. Complete support of Berkeley DB distributed
17452 transactions. Complete support for Berkeley DB Replication Manager.
17453 Complete support for Berkeley DB Base Replication. Support for RPC.")
17454 (license license:bsd-3)))
17456 (define-public python-dbfread
17458 (name "python-dbfread")
17462 (uri (pypi-uri "dbfread" version))
17465 "0gdpwdzf1fngsi6jrdyj4qdf6cr7gnnr3zp80dpkzbgz0spskj07"))))
17466 (build-system python-build-system)
17468 `(("python-pytest" ,python-pytest)))
17469 (home-page "https://dbfread.readthedocs.io")
17470 (synopsis "Read DBF Files with Python")
17472 "This library reads DBF files and returns the data as native Python data
17473 types for further processing. It is primarily intended for batch jobs and
17475 (license license:expat)))
17477 (define-public python-cached-property
17479 (name "python-cached-property")
17484 (uri (pypi-uri "cached-property" version))
17487 "010m1bl380l2r3vwq24r5v14l6gwvgm9v0mqqjkjss552jgsa5wj"))))
17488 (build-system python-build-system)
17491 (modify-phases %standard-phases
17492 ;; https://github.com/pydanny/cached-property/issues/131
17493 ;; recent versions of freezegun break one test
17494 (add-after 'unpack 'disable-broken-test
17496 (substitute* "tests/test_cached_property.py"
17497 (("def test_threads_ttl_expiry\\(self\\)" m)
17498 (string-append "@unittest.skip(\"Disabled by Guix\")\n"
17502 `(("python-freezegun" ,python-freezegun)))
17504 "https://github.com/pydanny/cached-property")
17506 "Decorator for caching properties in classes")
17508 "This package provides a decorator which makes caching
17509 time-or-computationally-expensive properties quick and easy and works in Python
17511 (license license:bsd-3)))
17513 (define-public python-folium
17515 (name "python-folium")
17520 (uri (pypi-uri "folium" version))
17523 "0gcc267wxwxr57ry86pqpbiyfvl0g48hfvgy0f2mz9s58g87kgzd"))))
17524 (build-system python-build-system)
17526 `(("python-branca" ,python-branca)
17527 ("python-jinja2" ,python-jinja2)
17528 ("python-numpy" ,python-numpy)
17529 ("python-requests" ,python-requests)))
17531 `(("python-pytest" ,python-pytest)))
17532 (home-page "https://github.com/python-visualization/folium")
17533 (synopsis "Make beautiful maps with Leaflet.js & Python")
17534 (description "@code{folium} makes it easy to visualize data that’s been
17535 manipulated in Python on an interactive leaflet map. It enables both the
17536 binding of data to a map for @code{choropleth} visualizations as well as
17537 passing rich vector/raster/HTML visualizations as markers on the map.
17539 The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
17540 Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
17541 supports Image, Video, GeoJSON and TopoJSON overlays.")
17542 (license license:expat)))
17544 (define-public jube
17546 ;; This is a command-line tool, so no "python-" prefix.
17551 (uri (string-append
17552 "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
17556 "0xq4k1q63s1p6swgyp61vahlrd1fqmgbm0gm5kpj8ikwy0yc0nqk"))
17557 (file-name (string-append "jube-" version ".tar.gz"))))
17558 (build-system python-build-system)
17559 (home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
17560 (synopsis "Benchmarking environment")
17562 "JUBE helps perform and analyze benchmarks in a systematic way. For each
17563 benchmarked application, benchmark data is stored in a format that allows JUBE
17564 to deduct the desired information. This data can be parsed by automatic pre-
17565 and post-processing scripts that draw information and store it more densely
17566 for manual interpretation.")
17567 (license license:gpl3+)))
17569 (define-public python-pyroutelib3
17571 (name "python-pyroutelib3")
17572 (version "1.3.post1")
17576 (uri (pypi-uri "pyroutelib3" version))
17579 "1hpbydpn2alyswiajfbvhzq4c7f36vdmvxy91hgv8l1lb2g2vfrj"))))
17580 (build-system python-build-system)
17582 `(("python-dateutil" ,python-dateutil)))
17583 (home-page "https://github.com/MKuranowski/pyroutelib3")
17584 (synopsis "Library for simple routing on OSM data")
17585 (description "Library for simple routing on OSM data")
17586 (license license:gpl3+)))
17588 (define-public python-bibtexparser
17590 (name "python-bibtexparser")
17595 (uri (pypi-uri "bibtexparser" version))
17598 "0zwhfkrzf3n5847dbnfng92k7ak199l9v6x6ax3dgdidfpm6d2fz"))))
17599 (build-system python-build-system)
17601 `(("python-pyparsing" ,python-pyparsing)))
17603 `(("python-future" ,python-future)))
17604 (home-page "https://github.com/sciunto-org/python-bibtexparser")
17605 (synopsis "Python library to parse BibTeX files")
17606 (description "BibtexParser is a Python library to parse BibTeX files.")
17607 (license (list license:bsd-3 license:lgpl3))))
17609 (define-public python-distro
17611 (name "python-distro")
17616 (uri (pypi-uri "distro" version))
17619 "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n"))))
17620 (build-system python-build-system)
17622 `(("python-pytest" ,python-pytest)))
17623 (home-page "https://github.com/nir0s/distro")
17625 "OS platform information API")
17627 "@code{distro} provides information about the OS distribution it runs on,
17628 such as a reliable machine-readable ID, or version information.
17630 It is the recommended replacement for Python's original
17631 `platform.linux_distribution` function (which will be removed in Python 3.8).
17632 @code{distro} also provides a command-line interface to output the platform
17633 information in various formats.")
17634 (license license:asl2.0)))
17636 (define-public python-cairosvg
17638 (name "python-cairosvg")
17643 (uri (pypi-uri "CairoSVG" version))
17645 (base32 "1bb7irxbaxxb9ahm3z5wsx1q96mm5gzskc7b6q07h9ikcnb8yrjf"))))
17646 (build-system python-build-system)
17649 (modify-phases %standard-phases
17651 (lambda _ (invoke "pytest"))))))
17653 `(("python-cairocffi" ,python-cairocffi)
17654 ("python-cssselect2" ,python-cssselect2)
17655 ("python-defusedxml" ,python-defusedxml)
17656 ("python-pillow" ,python-pillow)
17657 ("python-tinycss2" ,python-tinycss2)))
17659 `(("python-pytest-flake8" ,python-pytest-flake8)
17660 ("python-pytest-isort" ,python-pytest-isort)
17661 ("python-pytest-runner" ,python-pytest-runner)))
17662 (home-page "https://cairosvg.org/")
17663 (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
17664 (description "CairoSVG is a SVG converter based on Cairo. It can export
17665 SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
17666 SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
17667 parsed, the result is drawn to a Cairo surface that can be exported to
17668 qvarious formats: PDF, PostScript, PNG and even SVG.")
17669 (license license:lgpl3+)))
17671 (define-public python-pyphen
17673 (name "python-pyphen")
17678 (uri (pypi-uri "Pyphen" version))
17680 (base32 "08c9y69ry9d6m4zalhnalg86lsp9v2j5n1ziw5vxfmiihx83lqrv"))))
17681 (build-system python-build-system)
17682 ;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
17683 ;; embedded set provided by upstream - like Debian does.
17684 (home-page "https://github.com/Kozea/Pyphen")
17685 (synopsis "Pure Python module to hyphenate text")
17686 (description "Pyphen is a pure Python module to hyphenate text using
17687 existing Hunspell hyphenation dictionaries.")
17688 (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
17690 (define-public python-intelhex
17692 (name "python-intelhex")
17697 (uri (pypi-uri "intelhex" version))
17700 "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780"))))
17701 (build-system python-build-system)
17702 (arguments '(#:tests? #f)) ;issue with version
17703 (home-page "https://pypi.org/project/IntelHex/")
17704 (synopsis "Python library for Intel HEX files manipulations")
17705 (description "The Intel HEX file format is widely used in microprocessors
17706 and microcontrollers area (embedded systems etc.) as the de facto standard for
17707 representation of code to be programmed into microelectronic devices. This
17708 package provides an intelhex Python library to read, write, create from
17709 scratch and manipulate data from Intel HEX file format. It also includes
17710 several convenience Python scripts, including \"classic\" hex2bin and bin2hex
17711 converters and more, those based on the library itself.")
17712 (license license:bsd-3)))
17714 (define-public python-pykwalify
17716 (name "python-pykwalify")
17721 (uri (pypi-uri "pykwalify" version))
17724 "1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"))))
17725 (build-system python-build-system)
17726 (arguments '(#:tests? #f)) ;missing dependencies
17728 `(("python-dateutil" ,python-dateutil)
17729 ("python-docopt" ,python-docopt)
17730 ("python-pyyaml" ,python-pyyaml)))
17731 (home-page "https://github.com/grokzen/pykwalify")
17733 "Python lib/cli for JSON/YAML schema validation")
17735 "This package provides a parser, schema validator, and data binding tool
17736 for YAML and JSON.")
17737 (license license:expat)))
17739 (define-public python-dbusmock
17741 (name "python-dbusmock")
17746 (uri (pypi-uri "python-dbusmock" version))
17749 "0hp2kyac88nh9iv6l8hlmv7s1sa1s5f1a3wc2pmlmmxnd211fjlr"))))
17750 (build-system python-build-system)
17753 (modify-phases %standard-phases
17754 (add-after 'unpack 'patch-shell-path
17756 (substitute* "tests/test_code.py"
17757 (("/bin/bash") (which "bash")))
17761 ("dbus" ,dbus) ; for dbus-daemon
17762 ("python-nose" ,python-nose)
17765 `(("python-dbus" ,python-dbus)
17766 ("python-pygobject" ,python-pygobject)))
17767 (home-page "https://github.com/martinpitt/python-dbusmock")
17768 (synopsis "Python library for mock D-Bus objects")
17769 (description "python-dbusmock allows for the easy creation of mock objects on
17770 D-Bus. This is useful for writing tests for software which talks to D-Bus
17771 services such as upower, systemd, logind, gnome-session or others, and it is
17772 hard (or impossible without root privileges) to set the state of the real
17773 services to what you expect in your tests.")
17774 (license license:lgpl3+)))
17776 (define-public python-ujson
17778 (name "python-ujson")
17783 (uri (pypi-uri "ujson" version))
17786 "11jz5wi7mbgqcsz52iqhpyykiaasila4lq8cmc2d54bfa3jp6q7n"))))
17787 (build-system python-build-system)
17788 (home-page "http://www.esn.me")
17790 "Ultra fast JSON encoder and decoder for Python")
17792 "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
17793 bindings for Python 2.5+ and 3.")
17794 (license license:bsd-3)))
17796 (define-public python2-ujson
17797 (package-with-python2 python-ujson))
17799 (define-public python-iocapture
17800 ;; The latest release is more than a year older than this commit.
17801 (let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
17804 (name "python-iocapture")
17809 (uri (git-reference
17810 (url "https://github.com/oinume/iocapture.git")
17812 (file-name (git-file-name name version))
17815 "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
17816 (build-system python-build-system)
17819 (modify-phases %standard-phases
17821 (add-after 'install 'check
17822 (lambda* (#:key inputs outputs #:allow-other-keys)
17823 (add-installed-pythonpath inputs outputs)
17824 (invoke "py.test" "-v" "tests")
17827 `(("python-flexmock" ,python-flexmock)
17828 ("python-pytest" ,python-pytest)
17829 ("python-pytest-cov" ,python-pytest-cov)
17830 ("python-six" ,python-six)))
17831 (home-page "https://github.com/oinume/iocapture")
17832 (synopsis "Python capturing tool for stdout and stderr")
17834 "This package helps you to capture the standard out (stdout) and the
17835 standard error channel (stderr) in your program.")
17836 (license license:expat))))
17838 (define-public python-argh
17839 ;; There are 21 commits since the latest release containing important
17841 (let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4")
17844 (name "python-argh")
17845 (version (git-version "0.26.2" revision commit))
17849 (uri (git-reference
17850 (url "https://github.com/neithere/argh.git")
17852 (file-name (git-file-name name version))
17855 "1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
17856 (build-system python-build-system)
17858 `(("python-iocapture" ,python-iocapture)
17859 ("python-mock" ,python-mock)
17860 ("python-pytest" ,python-pytest)
17861 ("python-pytest-cov" ,python-pytest-cov)
17862 ("python-pytest-xdist" ,python-pytest-xdist)
17863 ("python-tox" ,python-tox)))
17864 (home-page "https://github.com/neithere/argh/")
17865 (synopsis "Argparse wrapper with natural syntax")
17867 "python-argh is a small library that provides several layers of
17868 abstraction on top of @code{python-argparse}. The layers can be mixed. It is
17869 always possible to declare a command with the highest possible (and least
17870 flexible) layer and then tune the behaviour with any of the lower layers
17871 including the native API of @code{python-argparse}.")
17872 (license license:lgpl3+))))
17874 (define-public python-ppft
17876 (name "python-ppft")
17877 (version "1.6.6.1")
17881 (uri (pypi-uri "ppft" version))
17884 "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
17885 (build-system python-build-system)
17886 (arguments '(#:tests? #f)) ; there are none
17888 `(("python-six" ,python-six)))
17889 (home-page "https://pypi.org/project/ppft/")
17890 (synopsis "Fork of Parallel Python")
17892 "This package is a fork of Parallel Python. The Parallel Python
17893 module (@code{pp}) provides an easy and efficient way to create
17894 parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
17895 computers and clusters. It features cross-platform portability and dynamic
17897 (license license:bsd-3)))
17899 (define-public python-pox
17901 (name "python-pox")
17906 (uri (pypi-uri "pox" version))
17909 "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
17910 (build-system python-build-system)
17913 (modify-phases %standard-phases
17916 (mkdir-p "/tmp/guix")
17917 (setenv "SHELL" "bash")
17918 (setenv "USERNAME" "guix")
17919 (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
17920 (invoke "py.test" "-vv")
17923 `(("python-pytest" ,python-pytest)
17925 (home-page "https://pypi.org/project/pox/")
17926 (synopsis "Python utilities for filesystem exploration and automated builds")
17928 "Pox provides a collection of utilities for navigating and manipulating
17929 filesystems. This module is designed to facilitate some of the low level
17930 operating system interactions that are useful when exploring a filesystem on a
17931 remote host. Pox provides Python equivalents of several shell commands such
17932 as @command{which} and @command{find}. These commands allow automated
17933 discovery of what has been installed on an operating system, and where the
17934 essential tools are located.")
17935 (license license:bsd-3)))
17937 (define-public python-pathos
17939 (name "python-pathos")
17944 (uri (pypi-uri "pathos" version))
17947 "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
17948 (build-system python-build-system)
17951 (modify-phases %standard-phases
17954 (setenv "PYTHONPATH"
17955 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
17956 (invoke "python" "./tests/__main__.py"))))))
17958 `(("python-dill" ,python-dill)
17959 ("python-multiprocess" ,python-multiprocess)
17960 ("python-pox" ,python-pox)
17961 ("python-ppft" ,python-ppft)))
17963 `(("python-pytest" ,python-pytest)))
17964 (home-page "https://pypi.org/project/pathos/")
17966 "Parallel graph management and execution in heterogeneous computing")
17968 "Python-pathos is a framework for heterogenous computing. It provides a
17969 consistent high-level interface for configuring and launching parallel
17970 computations across heterogenous resources. Python-pathos provides configurable
17971 launchers for parallel and distributed computing, where each launcher contains
17972 the syntactic logic to configure and launch jobs in an execution environment.")
17973 (license license:bsd-3)))
17975 (define-public python-flit
17977 (name "python-flit")
17982 (uri (pypi-uri "flit" version))
17985 "0h5vvmqinqzn97mr3ix7zx53af9ad4fimjjwqpx88yp8qhz4r5bc"))))
17986 (build-system python-build-system)
17988 `(#:tests? #f)) ; XXX: Check requires network access.
17989 (home-page "https://flit.readthedocs.io/")
17991 "Simple packaging tool for simple packages")
17993 "Flit is a simple way to put Python packages and modules on PyPI. Flit
17994 packages a single importable module or package at a time, using the import
17995 name as the name on PyPI. All subpackages and data files within a package
17996 are included automatically.")
17997 (license license:bsd-3)))
17999 (define-public python-pathtools
18001 (name "python-pathtools")
18006 (uri (pypi-uri "pathtools" version))
18009 "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
18010 (build-system python-build-system)
18012 "https://github.com/gorakhargosh/pathtools")
18013 (synopsis "Path utilities for Python")
18014 (description "Pattern matching and various utilities for file systems
18016 (license license:expat)))
18018 (define-public python-fastentrypoints
18020 (name "python-fastentrypoints")
18025 (uri (pypi-uri "fastentrypoints" version))
18028 "02s1j8i2dzbpbwgq2a3fiqwm3cnmhii2qzc0k42l0rdxd4a4ya7z"))))
18029 (build-system python-build-system)
18031 "https://github.com/ninjaaron/fast-entry_points")
18033 "Makes entry_points specified in setup.py load more quickly")
18035 "Using entry_points in your setup.py makes scripts that start really
18036 slowly because it imports pkg_resources. This package allows such setup
18037 scripts to load entry points more quickly.")
18038 (license license:bsd-3)))
18040 (define-public python-funcparserlib
18042 (name "python-funcparserlib")
18047 (uri (pypi-uri "funcparserlib" version))
18050 "07f9cgjr3h4j2m67fhwapn8fja87vazl58zsj4yppf9y3an2x6dp"))))
18052 `(("python-tox" ,python-tox)))
18055 (modify-phases %standard-phases
18058 (invoke "tox"))))))
18059 (build-system python-build-system)
18061 "https://github.com/vlasovskikh/funcparserlib")
18063 "Recursive descent parsing library based on functional combinators")
18065 "This package is a recursive descent parsing library for Python based on
18066 functional combinators. Parser combinators are just higher-order functions
18067 that take parsers as their arguments and return them as result values.")
18068 (license license:expat)))
18070 (define-public python-speg
18072 (name "python-speg")
18077 (uri (pypi-uri "speg" version ".zip"))
18079 (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
18081 `(#:tests? #f)) ;FIXME: tests fail, not sure why
18083 `(("unzip" ,unzip)))
18084 (build-system python-build-system)
18085 (home-page "https://github.com/avakar/speg")
18086 (synopsis "PEG-based parser interpreter with memoization")
18087 (description "This package is a PEG-based parser and interpreter with
18089 (license license:expat)))
18091 (define-public python-cson
18093 (name "python-cson")
18098 (uri (pypi-uri "cson" version))
18100 (base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
18101 (build-system python-build-system)
18103 `(("python-speg" ,python-speg)))
18104 (home-page "https://github.com/avakar/pycson")
18105 (synopsis "Parser for Coffeescript Object Notation (CSON)")
18106 (description "This package is a parser for Coffeescript Object
18108 (license license:expat)))
18110 (define-public python-asynctest
18112 (name "python-asynctest")
18117 (uri (pypi-uri "asynctest" version))
18120 "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
18121 (build-system python-build-system)
18124 (modify-phases %standard-phases
18127 (invoke "python" "-X" "dev" "-m" "unittest" "-v" "test")))
18128 (add-after 'unpack 'disable-tests
18130 (substitute* "test/test_selector.py"
18131 ;; XXX: This test fails for unknown reason inside the build
18133 (("def test_events_watched_outside_test_are_ignored")
18134 "@unittest.skip('disabled by guix')
18135 def test_events_watched_outside_test_are_ignored")))))))
18136 (home-page "https://github.com/Martiusweb/asynctest")
18137 (synopsis "Extension of unittest for testing asyncio libraries")
18139 "The package asynctest is built on top of the standard unittest module
18140 and cuts down boilerplate code when testing libraries for asyncio.")
18141 (license license:asl2.0)))
18143 (define-public python-aionotify
18145 (name "python-aionotify")
18149 ;; Source tarball on PyPi lacks tests
18151 (uri (git-reference
18152 (url "https://github.com/rbarrois/aionotify")
18153 (commit (string-append "v" version))))
18154 (file-name (git-file-name name version))
18156 (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))))
18157 (build-system python-build-system)
18158 (native-inputs `(("python-asynctest" ,python-asynctest)))
18159 (home-page "https://github.com/rbarrois/aionotify")
18160 (synopsis "Asyncio-powered inotify library")
18162 "@code{aionotify} is a simple, asyncio-based inotify library.")
18163 (license license:bsd-3)))
18165 (define-public python-forbiddenfruit
18167 (name "python-forbiddenfruit")
18171 ;; Source tarball on PyPi lacks Makefile that builds and runs tests
18173 (uri (git-reference
18174 (url "https://github.com/clarete/forbiddenfruit")
18176 (file-name (git-file-name name version))
18178 (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
18179 (build-system python-build-system)
18182 (modify-phases %standard-phases
18185 (invoke "make" "SKIP_DEPS=1"))))))
18187 `(("python-nose" ,python-nose)
18188 ("python-coverage" ,python-coverage)))
18189 (home-page "https://github.com/clarete/forbiddenfruit")
18190 (synopsis "Patch python built-in objects")
18191 (description "This project allows Python code to extend built-in types.")
18192 (license (list license:gpl3+ license:expat))))
18194 (define-public python-shouldbe
18196 (name "python-shouldbe")
18201 (uri (pypi-uri "shouldbe" version))
18204 "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj"))))
18205 (build-system python-build-system)
18207 `(("python-forbiddenfruit" ,python-forbiddenfruit)))
18209 `(("python-nose" ,python-nose)))
18210 (home-page "https://github.com/directxman12/should_be")
18211 (synopsis "Python Assertion Helpers inspired by Shouldly")
18213 "Python Assertion Helpers inspired by Shouldly.")
18214 (license license:isc)))
18216 (define-public python-k5test
18218 (name "python-k5test")
18223 (uri (pypi-uri "k5test" version))
18226 "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
18227 (build-system python-build-system)
18229 `(("python-six" ,python-six)
18230 ;; `which`, `kadmin.local` binaries called inside library
18232 ("mit-krb5" ,mit-krb5)))
18233 (native-inputs `(("mit-krb5" ,mit-krb5)))
18236 (modify-phases %standard-phases
18237 (add-after 'unpack 'patch-paths
18239 (substitute* "k5test/realm.py"
18240 (("'kadmin_local'") "'kadmin.local'")))))))
18241 (home-page "https://github.com/pythongssapi/k5test")
18242 (synopsis "Library for setting up self-contained Kerberos 5 environments")
18244 "@code{k5test} is a library for setting up self-contained Kerberos 5
18245 environments, and running Python unit tests inside those environments. It is
18246 based on the file of the same name found alongside the MIT Kerberos 5 unit
18248 (license license:isc)))
18250 (define-public python-gssapi
18252 (name "python-gssapi")
18257 (uri (pypi-uri "gssapi" version))
18260 "1gymg4asvwrz7y13qpwp2s5g8qwq179d72gkj09q6bfcgs82l5wr"))))
18261 (build-system python-build-system)
18263 `(("python-decorator" ,python-decorator)
18264 ("python-six" ,python-six)))
18266 `(("mit-krb5" ,mit-krb5)))
18269 `(("python-shouldbe" ,python-shouldbe)
18270 ("python-parameterized" ,python-parameterized)
18271 ("python-k5test" ,python-k5test)
18272 ("python-nose" ,python-nose)))
18273 (home-page "https://github.com/pythongssapi/python-gssapi")
18274 (synopsis "Python GSSAPI Wrapper")
18276 "Python-GSSAPI provides both low-level and high level wrappers around the
18277 GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
18278 also be useable with other GSSAPI mechanisms.")
18279 (license license:isc)))
18281 (define-public python-check-manifest
18283 (name "python-check-manifest")
18288 (uri (pypi-uri "check-manifest" version))
18291 "0lk45ifdv2cpkl6ayfyix7jwmnxa1rha7xvb0ih5999k115wzqs4"))))
18292 (build-system python-build-system)
18294 `(("python-mock" ,python-mock)
18296 (home-page "https://github.com/mgedmin/check-manifest")
18297 (synopsis "Check MANIFEST.in in a Python source package for completeness")
18298 (description "Python package can include a MANIFEST.in file to help with
18299 sending package files to the Python Package Index. This package checks that
18300 file to ensure it completely and accurately describes your project.")
18301 (license license:expat)))
18303 (define-public python-android-stringslib
18305 (name "python-android-stringslib")
18310 (uri (git-reference
18311 (url "https://framagit.org/tyreunom/python-android-strings-lib")
18312 (commit (string-append "v" version))))
18313 (file-name (git-file-name name version))
18316 "0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
18317 (build-system python-build-system)
18320 (home-page "https://framagit.org/tyreunom/python-android-strings-lib")
18321 (synopsis "Android strings.xml support")
18322 (description "Android Strings Lib provides support for android's strings.xml
18323 files. These files are used to translate strings in android apps.")
18324 (license license:expat)))
18326 (define-public python-watchdog
18328 (name "python-watchdog")
18333 (uri (pypi-uri "watchdog" version))
18336 "07cnvvlpif7a6cg4rav39zq8fxa5pfqawchr46433pij0y6napwn"))))
18337 (build-system python-build-system)
18340 (modify-phases %standard-phases
18341 (add-before 'check 'remove-failing
18343 (delete-file "tests/test_inotify_buffer.py")
18344 (delete-file "tests/test_snapshot_diff.py")
18347 `(("python-argh" ,python-argh)
18348 ("python-pathtools" ,python-pathtools)
18349 ("python-pyyaml" ,python-pyyaml)))
18351 `(("python-pytest-cov" ,python-pytest-cov)
18352 ("python-pytest-timeout" ,python-pytest-timeout)))
18353 (home-page "https://github.com/gorakhargosh/watchdog")
18354 (synopsis "Filesystem events monitoring")
18355 (description "This package provides a way to monitor filesystem events
18356 such as a file modification and trigger an action. This is similar to inotify,
18358 (license license:asl2.0)))
18360 (define-public python-wget
18362 (name "python-wget")
18367 (uri (pypi-uri "wget" version ".zip"))
18370 "0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
18371 (build-system python-build-system)
18372 (native-inputs `(("unzip" ,unzip)))
18373 (home-page "https://bitbucket.org/techtonik/python-wget/")
18374 (synopsis "Pure Python download utility")
18375 (description "The python-wget library provides an API to download files
18376 with features similar to the @command{wget} utility.")
18377 (license license:unlicense)))
18379 (define-public offlate
18386 (uri (git-reference
18387 (url "https://framagit.org/tyreunom/offlate")
18389 (file-name (git-file-name name version))
18392 "13pqnbl05wcyldfvl75fp89vjgwsvxyc69vhnb17kkha2rc2k1h7"))))
18393 (build-system python-build-system)
18398 `(("python-android-stringslib" ,python-android-stringslib)
18399 ("python-dateutil" ,python-dateutil)
18400 ("python-gitlab" ,python-gitlab)
18401 ("python-lxml" ,python-lxml)
18402 ("python-polib" ,python-polib)
18403 ("python-pyenchant" ,python-pyenchant)
18404 ("python-pygit2" ,python-pygit2)
18405 ("python-pygithub" ,python-pygithub)
18406 ("python-pyqt" ,python-pyqt)
18407 ("python-requests" ,python-requests)
18408 ("python-ruamel.yaml" ,python-ruamel.yaml)
18409 ("python-translation-finder" ,python-translation-finder)
18410 ("python-watchdog" ,python-watchdog)))
18412 `(("qttools" ,qttools)))
18413 (home-page "https://framagit.org/tyreunom/offlate")
18414 (synopsis "Offline translation interface for online translation tools")
18415 (description "Offlate offers a unified interface for different translation
18416 file formats, as well as many different online translation platforms. You can
18417 use it to get work from online platforms, specialized such as the Translation
18418 Project, or not such a gitlab instance when your upstream doesn't use any
18419 dedicated platform. The tool proposes a unified interface for any format and
18420 an upload option to send your work back to the platform.")
18421 (license license:gpl3+)))
18423 (define-public python-pypng
18425 (name "python-pypng")
18430 (uri (pypi-uri "pypng" version))
18432 (base32 "02qpa22ls41vwsrzw9r9qhj1nhq05p03hb5473pay6y980s86chh"))))
18433 (build-system python-build-system)
18434 (home-page "https://github.com/drj11/pypng")
18435 (synopsis "Pure Python PNG image encoder/decoder")
18437 "The PyPNG module implements support for PNG images. It reads and writes
18438 PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
18439 pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
18440 LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
18441 images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
18442 A number of optional chunks can be specified (when writing) and
18443 understood (when reading): tRNS, bKGD, gAMA.
18445 PyPNG is not a high level toolkit for image processing (like PIL) and does not
18446 aim at being a replacement or competitor. Its strength lies in fine-grained
18447 extensive support of PNG features. It can also read and write Netpbm PAM
18448 files, with a focus on its use as an intermediate format for implementing
18449 custom PNG processing.")
18450 (license license:expat)))
18452 (define-public python-fuzzywuzzy
18454 (name "python-fuzzywuzzy")
18459 (uri (pypi-uri "fuzzywuzzy" version))
18462 "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"))))
18463 (build-system python-build-system)
18465 `(("python-hypothesis" ,python-hypothesis)
18466 ("python-pycodestyle" ,python-pycodestyle)
18467 ("python-pytest" ,python-pytest)))
18469 `(("python-levenshtein" ,python-levenshtein)))
18470 (home-page "https://github.com/seatgeek/fuzzywuzzy")
18471 (synopsis "Fuzzy string matching in Python")
18472 (description "Approximate string matching using
18473 @emph{Levenshtein Distance} to calculate the differences between
18475 (license license:gpl2)))
18477 (define-public python2-fuzzywuzzy
18478 (package-with-python2 python-fuzzywuzzy))
18480 (define-public python-block-tracing
18482 (name "python-block-tracing")
18487 (uri (pypi-uri "block_tracing" version))
18490 "0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
18491 (build-system python-build-system)
18492 (arguments '(#:tests? #f)) ; no tests
18493 (home-page "https://github.com/rianhunter/block_tracing")
18494 (synopsis "Protect process memory")
18496 "@code{block_tracing} is a tiny Python library that can be used to
18497 prevent debuggers and other applications from inspecting the memory within
18499 (license license:expat)))
18501 (define-public python-gcovr
18503 (name "python-gcovr")
18508 (uri (pypi-uri "gcovr" version))
18511 "0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs"))))
18512 (build-system python-build-system)
18514 `(("python-lxml" ,python-lxml)
18515 ("python-jinja2" ,python-jinja2)))
18516 (home-page "https://gcovr.com/")
18517 (synopsis "Utility for generating code coverage results")
18519 "Gcovr provides a utility for managing the use of the GNU gcov
18520 utility and generating summarized code coverage results. It is inspired
18521 by the Python coverage.py package, which provides a similar utility for
18523 (license license:bsd-3)))
18525 (define-public python-owslib
18527 (name "python-owslib")
18532 (uri (pypi-uri "OWSLib" version))
18534 (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
18535 (build-system python-build-system)
18537 '(#:tests? #f)) ; TODO: package dependencies required for tests.
18538 (synopsis "Interface for Open Geospatial Consortium web service")
18540 "OWSLib is a Python package for client programming with Open Geospatial
18541 Consortium (OGC) web service (hence OWS) interface standards, and their related
18543 (home-page "https://geopython.github.io/OWSLib/")
18544 (license license:bsd-3)))
18546 (define-public python-docusign-esign
18548 (name "python-docusign-esign")
18552 (uri (pypi-uri "docusign_esign" version))
18555 "01f3h03vc97syjlmqyl7xa5j90pzgmwpspc5a0gra9saynnbkx37"))))
18556 (build-system python-build-system)
18557 ;; Testing requires undocumented setup changes, and so testing is disabled here.
18558 (arguments `(#:tests? #f))
18560 `(("python-certifi", python-certifi)
18561 ("python-six", python-six)
18562 ("python-dateutil", python-dateutil)
18563 ("python-urllib3", python-urllib3)
18564 ("python-pyjwt", python-pyjwt)
18565 ("python-cryptography", python-cryptography)
18566 ("python-nose", python-nose)))
18567 (synopsis "DocuSign Python Client")
18568 (description "The Official DocuSign Python Client Library used to interact
18569 with the eSign REST API. Send, sign, and approve documents using this client.")
18570 (home-page "https://www.docusign.com/devcenter")
18571 (license license:expat)))
18573 (define-public python-xattr
18575 (name "python-xattr")
18580 (uri (pypi-uri "xattr" version))
18583 "0i4xyiqbhjz2g16zbim17zjdbjkw79xsw8k59942vvq4is1cmfxh"))))
18584 (build-system python-build-system)
18586 `(("python-cffi" ,python-cffi)))
18587 (home-page "https://github.com/xattr/xattr")
18589 "Python wrapper for extended filesystem attributes")
18590 (description "This package provides a Python wrapper for using extended
18591 filesystem attributes. Extended attributes extend the basic attributes of files
18592 and directories in the file system. They are stored as name:data pairs
18593 associated with file system objects (files, directories, symlinks, etc).")
18594 (license license:expat)))
18596 (define-public python-json-logger
18598 (name "python-json-logger")
18603 (uri (pypi-uri "python-json-logger" version))
18606 "10g2ya6nsvn5vxzvq2wb8q4d43i3d7756i5rxyjna6d0y9i138xp"))))
18607 (build-system python-build-system)
18609 "https://github.com/madzak/python-json-logger")
18610 (synopsis "JSON log formatter in Python")
18611 (description "This library allows standard Python logging to output log data
18612 as JSON objects. With JSON we can make our logs more readable by machines and
18613 we can stop writing custom parsers for syslog-type records.")
18614 (license license:bsd-3)))
18616 (define-public python-daiquiri
18618 (name "python-daiquiri")
18623 (uri (pypi-uri "daiquiri" version))
18626 "1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
18627 (build-system python-build-system)
18629 `(("python-json-logger" ,python-json-logger)))
18631 `(("python-mock" ,python-mock)
18632 ("python-pytest" ,python-pytest)
18633 ("python-setuptools-scm" ,python-setuptools-scm)
18634 ("python-six" ,python-six)))
18635 (home-page "https://github.com/jd/daiquiri")
18637 "Library to configure Python logging easily")
18638 (description "The daiquiri library provides an easy way to configure
18639 logging in Python. It also provides some custom formatters and handlers.")
18640 (license license:asl2.0)))
18642 (define-public python-pifpaf
18644 (name "python-pifpaf")
18649 (uri (pypi-uri "pifpaf" version))
18652 "150av2pylsjy8ykrpyi0vzy2q24s9rhh2ya01zvwnvj9j5dspviz"))))
18653 (build-system python-build-system)
18657 `(("python-click" ,python-click)
18658 ("python-daiquiri" ,python-daiquiri)
18659 ("python-fixtures" ,python-fixtures)
18660 ("python-jinja2" ,python-jinja2)
18661 ("python-pbr" ,python-pbr)
18662 ("python-psutil" ,python-psutil)
18663 ("python-six" ,python-six)
18664 ("python-xattr" ,python-xattr)))
18666 `(("python-mock" ,python-mock)
18667 ("python-os-testr" ,python-os-testr)
18668 ("python-requests" ,python-requests)
18669 ("python-testrepository" ,python-testrepository)
18670 ("python-testtools" ,python-testtools)))
18671 (home-page "https://github.com/jd/pifpaf")
18672 (synopsis "Tools and fixtures to manage daemons for testing in Python")
18673 (description "Pifpaf is a suite of fixtures and a command-line tool that
18674 allows to start and stop daemons for a quick throw-away usage. This is typically
18675 useful when needing these daemons to run integration testing. It originally
18676 evolved from its precursor @code{overtest}.")
18677 (license license:asl2.0)))
18679 (define-public python-pytest-check-links
18681 (name "python-pytest-check-links")
18686 ;; URI uses underscores
18687 (uri (pypi-uri "pytest_check_links" version))
18690 "12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
18691 (build-system python-build-system)
18693 `(("python-docutils" ,python-docutils)
18694 ("python-html5lib" ,python-html5lib)
18695 ("python-nbconvert" ,python-nbconvert)
18696 ("python-nbformat" ,python-nbformat)
18697 ("python-pytest" ,python-pytest)
18698 ("python-six" ,python-six)))
18700 `(("python-pbr-minimal" ,python-pbr-minimal)))
18701 (home-page "https://github.com/minrk/pytest-check-links")
18702 (synopsis "Check links in files")
18703 (description "This package provides a pytest plugin that checks URLs for
18704 HTML-containing files.")
18705 (license license:bsd-3)))
18707 (define-public python-json5
18709 (name "python-json5")
18713 ;; sample.json5 is missing from PyPi source tarball
18715 (uri (git-reference
18716 (url "https://github.com/dpranke/pyjson5.git")
18717 (commit (string-append "v" version))))
18718 (file-name (git-file-name name version))
18720 (base32 "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn"))))
18721 (build-system python-build-system)
18722 (home-page "https://github.com/dpranke/pyjson5")
18724 "Python implementation of the JSON5 data format")
18726 "JSON5 extends the JSON data interchange format to make it slightly more
18727 usable as a configuration language. This Python package implements parsing and
18728 dumping of JSON5 data structures.")
18729 (license license:asl2.0)))
18731 (define-public python-frozendict
18733 (name "python-frozendict")
18738 (uri (pypi-uri "frozendict" version))
18740 (base32 "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"))))
18741 (build-system python-build-system)
18742 (home-page "https://github.com/slezica/python-frozendict")
18743 (synopsis "Simple immutable mapping for Python")
18745 "@dfn{frozendict} is an immutable wrapper around dictionaries that
18746 implements the complete mapping interface. It can be used as a drop-in
18747 replacement for dictionaries where immutability is desired.")
18748 (license license:expat)))
18750 (define-public python-unpaddedbase64
18752 (name "python-unpaddedbase64")
18757 (uri (git-reference
18758 (url "https://github.com/matrix-org/python-unpaddedbase64.git")
18759 (commit (string-append "v" version))))
18760 (file-name (git-file-name name version))
18763 "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd"))))
18764 (build-system python-build-system)
18765 (home-page "https://pypi.org/project/unpaddedbase64/")
18766 (synopsis "Encode and decode Base64 without “=” padding")
18768 "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
18769 using “=” characters. However this conveys no benefit so many protocols
18770 choose to use Base64 without the “=” padding.")
18771 (license license:asl2.0)))
18773 (define-public python-canonicaljson
18775 (name "python-canonicaljson")
18780 (uri (pypi-uri "canonicaljson" version))
18782 (base32 "09cpacc8yvcc74i63pdmlfaahh77dnvbyw9zf29wml2zzwqfbg25"))))
18783 (build-system python-build-system)
18785 `(("python-six" ,python-six)
18786 ("python-frozendict" ,python-frozendict)
18787 ("python-simplejson" ,python-simplejson)))
18788 (home-page "https://github.com/matrix-org/python-canonicaljson")
18789 (synopsis "Canonical JSON")
18791 "Deterministically encode JSON.
18794 @item Encodes objects and arrays as RFC 7159 JSON.
18795 @item Sorts object keys so that you get the same result each time.
18796 @item Has no insignificant whitespace to make the output as small as possible.
18797 @item Escapes only the characters that must be escaped, U+0000 to
18798 U+0019 / U+0022 / U+0056, to keep the output as small as possible.
18799 @item Uses the shortest escape sequence for each escaped character.
18800 @item Encodes the JSON as UTF-8.
18801 @item Can encode frozendict immutable dictionaries.
18803 (license license:asl2.0)))
18805 (define-public python-signedjson
18807 (name "python-signedjson")
18812 (uri (pypi-uri "signedjson" version))
18814 (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
18815 (build-system python-build-system)
18817 `(("python-canonicaljson" ,python-canonicaljson)
18818 ("python-importlib-metadata" ,python-importlib-metadata)
18819 ("python-pynacl" ,python-pynacl)
18820 ("python-typing-extensions" ,python-typing-extensions)
18821 ("python-unpaddedbase64" ,python-unpaddedbase64)))
18823 `(("python-setuptools-scm" ,python-setuptools-scm)))
18824 (home-page "https://github.com/matrix-org/python-signedjson")
18825 (synopsis "Sign JSON objects with ED25519 signatures")
18827 "Sign JSON objects with ED25519 signatures.
18830 @item More than one entity can sign the same object.
18831 @item Each entity can sign the object with more than one key making it easier to
18833 @item ED25519 can be replaced with a different algorithm.
18834 @item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
18837 (license license:asl2.0)))
18839 (define-public python-daemonize
18841 (name "python-daemonize")
18846 (uri (pypi-uri "daemonize" version))
18848 (base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
18849 (build-system python-build-system)
18850 (home-page "https://github.com/thesharp/daemonize")
18851 (synopsis "Library for writing system daemons in Python")
18852 (description "Daemonize is a library for writing system daemons in Python.")
18853 (license license:expat)))
18855 (define-public python-pymacaroons
18857 (name "python-pymacaroons")
18862 (uri (pypi-uri "pymacaroons" version))
18864 (base32 "1f0357a6g1h96sk6wy030xmc1p4rd80a999qvxd28v7nlm1blsqy"))))
18865 (build-system python-build-system)
18867 `(("python-six" ,python-six)
18868 ("python-pynacl" ,python-pynacl)))
18869 (home-page "https://github.com/ecordell/pymacaroons")
18870 (synopsis "Python Macaroon Library")
18872 "Macaroons, like cookies, are a form of bearer credential. Unlike opaque
18873 tokens, macaroons embed caveats that define specific authorization
18874 requirements for the target service, the service that issued the root macaroon
18875 and which is capable of verifying the integrity of macaroons it receives.
18877 Macaroons allow for delegation and attenuation of authorization. They are
18878 simple and fast to verify, and decouple authorization policy from the
18879 enforcement of that policy.")
18880 (license license:expat)))
18882 (define-public python-prometheus-client
18884 (name "python-prometheus-client")
18889 (uri (pypi-uri "prometheus_client" version))
18891 (base32 "1ni2yv4ixwz32nz39ckia76lvggi7m19y5f702w5qczbnfi29kbi"))))
18892 (build-system python-build-system)
18894 ;; TODO: No tests in the PyPI distribution.
18897 `(("python-twisted" ,python-twisted)))
18898 (home-page "https://github.com/prometheus/client_python")
18899 (synopsis "Prometheus instrumentation library")
18901 "This is the official Python client for the Prometheus monitoring server.")
18902 (license license:asl2.0)))
18904 (define-public python-ldap3
18906 (name "python-ldap3")
18908 (home-page "https://github.com/cannatag/ldap3")
18912 (uri (git-reference (url home-page)
18913 (commit (string-append "v" version))))
18914 (file-name (git-file-name name version))
18916 (base32 "0xw9fkqld21xsvdpaqir8ccc2l805xnn9gxahsnl70xzp3mwl0xv"))))
18917 (build-system python-build-system)
18919 '(#:tests? #f ;TODO: Tests need a real LDAP server to run
18920 #:phases (modify-phases %standard-phases
18922 (lambda* (#:key tests? #:allow-other-keys)
18924 (invoke "nosetests" "-s" "test"))
18927 `(("python-nose" ,python-nose)))
18929 `(("python-gssapi" ,python-gssapi)
18930 ("python-pyasn1" ,python-pyasn1)))
18931 (synopsis "Python LDAP client")
18933 "LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
18935 (license license:lgpl3+)))
18937 (define-public python-boltons
18939 (name "python-boltons")
18944 (uri (pypi-uri "boltons" version))
18947 "0lrr40qqj3ch8xarvyzbnbjs79pz5aywklllq53l347h1b8xnkg4"))))
18948 (build-system python-build-system)
18949 (home-page "https://github.com/mahmoud/boltons")
18950 (synopsis "Extensions to the Python standard library")
18952 "Boltons is a set of over 230 pure-Python utilities in the same spirit
18953 as — and yet conspicuously missing from — the standard library, including:
18956 @item Atomic file saving, bolted on with fileutils
18957 @item A highly-optimized OrderedMultiDict, in dictutils
18958 @item Two types of PriorityQueue, in queueutils
18959 @item Chunked and windowed iteration, in iterutils
18960 @item Recursive data structure iteration and merging, with iterutils.remap
18961 @item Exponential backoff functionality, including jitter, through
18963 @item A full-featured TracebackInfo type, for representing stack traces, in
18966 (license license:bsd-3)))
18968 (define-public python-eliot
18970 (name "python-eliot")
18975 (uri (pypi-uri "eliot" version))
18977 (base32 "0wabv7hk63l12881f4zw02mmj06583qsx2im0yywdjlj8f56vqdn"))))
18978 (build-system python-build-system)
18981 (modify-phases %standard-phases
18982 (add-after 'unpack 'remove-journald-support
18984 (for-each delete-file
18985 '("eliot/tests/test_journald.py"
18986 "eliot/journald.py"))
18988 (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
18989 ;; remove command-line tool's tests. TODO eliot-prettyprint should
18990 ;; be installed and these tests should pass.
18992 (delete-file "eliot/tests/test_prettyprint.py")
18995 `(("python-boltons" ,python-boltons)
18996 ("python-pyrsistent" ,python-pyrsistent)
18997 ("python-six" ,python-six)
18998 ("python-zope-interface" ,python-zope-interface)))
19000 `(("python-black" ,python-black)
19001 ("python-coverage" ,python-coverage)
19002 ("python-dask" ,python-dask)
19003 ("python-flake8" ,python-flake8)
19004 ("python-hypothesis" ,python-hypothesis)
19005 ("python-pytest" ,python-pytest)
19006 ("python-setuptools" ,python-setuptools)
19007 ("python-sphinx" ,python-sphinx)
19008 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
19009 ("python-testtools" ,python-testtools)
19010 ("python-twine" ,python-twine)
19011 ("python-twisted" ,python-twisted)))
19012 (home-page "https://github.com/itamarst/eliot/")
19013 (synopsis "Eliot: the logging system that tells you why it happened")
19015 "@dfn{eliot} is a Python logging system that outputs causal chains of
19016 actions: actions can spawn other actions, and eventually they either succeed
19017 or fail. The resulting logs tell you the story of what your software did: what
19018 happened, and what caused it.")
19019 (license license:asl2.0)))
19021 (define-public python-pem
19023 (name "python-pem")
19028 (uri (pypi-uri "pem" version))
19031 "1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7"))))
19032 (build-system python-build-system)
19034 `(("python-certifi" ,python-certifi)
19035 ("python-coverage" ,python-coverage)
19036 ("python-pretend" ,python-pretend)
19037 ("python-pyopenssl" ,python-pyopenssl)
19038 ("python-pytest" ,python-pytest)
19039 ("python-sphinx" ,python-sphinx)
19040 ("python-twisted" ,python-twisted)))
19041 (home-page "https://pem.readthedocs.io/")
19042 (synopsis "Easy PEM file parsing in Python")
19044 "This package provides a Python module for parsing and splitting PEM files.")
19045 (license license:expat)))
19047 (define-public python-txsni
19048 ;; We need a few commits on top of 0.1.9 for compatibility with newer
19049 ;; Python and OpenSSL.
19050 (let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
19053 (name "python-txsni")
19054 (version (git-version "0.1.9" revision commit))
19055 (home-page "https://github.com/glyph/txsni")
19059 (uri (git-reference (url home-page) (commit commit)))
19060 (file-name (git-file-name name version))
19063 "0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
19064 (build-system python-build-system)
19066 `(("python-pyopenssl" ,python-pyopenssl)
19067 ("python-service-identity" ,python-service-identity)
19068 ("python-twisted" ,python-twisted)))
19069 (synopsis "Run TLS servers with Twisted")
19071 "This package provides an easy-to-use SNI endpoint for use
19072 with the Twisted web framework.")
19073 (license license:expat))))
19075 (define-public python-txacme
19077 (name "python-txacme")
19082 (uri (pypi-uri "txacme" version))
19084 (base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
19085 (build-system python-build-system)
19087 `(("python-acme" ,python-acme)
19088 ("python-attrs" ,python-attrs)
19089 ("python-eliot" ,python-eliot)
19090 ("python-josepy" ,python-josepy)
19091 ("python-pem" ,python-pem)
19092 ("python-treq" ,python-treq)
19093 ("python-twisted" ,python-twisted)
19094 ("python-txsni" ,python-txsni)))
19096 `(("python-fixtures" ,python-fixtures)
19097 ("python-hypothesis" ,python-hypothesis)
19098 ("python-mock" ,python-mock)
19099 ("python-service-identity"
19100 ,python-service-identity)
19101 ("python-testrepository" ,python-testrepository)
19102 ("python-testscenarios" ,python-testscenarios)
19103 ("python-testtools" ,python-testtools)))
19104 (home-page "https://github.com/twisted/txacme")
19105 (synopsis "Twisted implexmentation of the ACME protocol")
19107 "ACME is Automatic Certificate Management Environment, a protocol that
19108 allows clients and certificate authorities to automate verification and
19109 certificate issuance. The ACME protocol is used by the free Let's Encrypt
19110 Certificate Authority.
19112 txacme is an implementation of the protocol for Twisted, the event-driven
19113 networking engine for Python.")
19114 (license license:expat)))
19116 (define-public python-pysaml2
19118 (name "python-pysaml2")
19123 (uri (pypi-uri "pysaml2" version))
19126 "1h8cmxh9cvxhrdfmkh92wg6zpxmhi2fixq1cy4hxismmaar7bsny"))))
19127 (build-system python-build-system)
19129 `(("python-cryptography" ,python-cryptography)
19130 ("python-dateutil" ,python-dateutil)
19131 ("python-defusedxml" ,python-defusedxml)
19132 ("python-pyopenssl" ,python-pyopenssl)
19133 ("python-pytz" ,python-pytz)
19134 ("python-requests" ,python-requests)
19135 ("python-six" ,python-six)))
19136 (home-page "https://idpy.org")
19137 (synopsis "Python implementation of SAML Version 2 Standard")
19139 "PySAML2 is a pure python implementation of SAML Version 2 Standard.
19140 It contains all necessary pieces for building a SAML2 service provider or
19141 an identity provider. The distribution contains examples of both.
19143 This package was originally written to work in a WSGI environment, but
19144 there are extensions that allow you to use it with other frameworks.")
19145 (license license:asl2.0)))