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, 2021 Eric Bavier <bavier@posteo.net>
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, 2021 Ricardo Wurmus <rekado@elephly.net>
11 ;;; Copyright © 2015, 2016, 2020 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, 2021 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2015, 2017, 2020 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 Nikita <nikita@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, 2021 Marius Bakke <marius@gnu.org>
30 ;;; Copyright © 2016, 2017, 2021 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, 2021 Julien Lepiller <julien@lepiller.eu>
34 ;;; Copyright © 2016–2021 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, 2020 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, 2021 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 © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
60 ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
61 ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
62 ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
63 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
64 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
65 ;;; Copyright © 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
66 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
67 ;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
68 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
69 ;;; Copyright © 2019, 2020 Tanguy Le Carrour <tanguy@bioneland.org>
70 ;;; Copyright © 2019 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
71 ;;; Copyright © 2020 Riku Viitanen <riku.viitanen@protonmail.com>
72 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
73 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
74 ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
75 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
76 ;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
77 ;;; Copyright © 2020, 2021 Alexandros Theodotou <alex@zrythm.org>
78 ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
79 ;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
80 ;;; Copyright © 2020 Matthew Kraai <kraai@ftbfs.org>
81 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
82 ;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
83 ;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
84 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
85 ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
86 ;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
87 ;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
88 ;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
89 ;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
90 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
91 ;;; Copyright © 2020 Bonface Munyoki Kilyungi <bonfacemunyoki@gmail.com>
92 ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
93 ;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
94 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
95 ;;; Copyright © 2019 Kristian Trandem <kristian@devup.no>
96 ;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
97 ;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
98 ;;; Copyright © 2020 EuAndreh <eu@euandre.org>
99 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
100 ;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
101 ;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
103 ;;; This file is part of GNU Guix.
105 ;;; GNU Guix is free software; you can redistribute it and/or modify it
106 ;;; under the terms of the GNU General Public License as published by
107 ;;; the Free Software Foundation; either version 3 of the License, or (at
108 ;;; your option) any later version.
110 ;;; GNU Guix is distributed in the hope that it will be useful, but
111 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
112 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
113 ;;; GNU General Public License for more details.
115 ;;; You should have received a copy of the GNU General Public License
116 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
118 (define-module (gnu packages python-xyz)
119 #:use-module ((guix licenses) #:prefix license:)
120 #:use-module (gnu packages)
121 #:use-module (gnu packages algebra)
122 #:use-module (gnu packages adns)
123 #:use-module (gnu packages aidc)
124 #:use-module (gnu packages attr)
125 #:use-module (gnu packages backup)
126 #:use-module (gnu packages bash)
127 #:use-module (gnu packages check)
128 #:use-module (gnu packages cmake)
129 #:use-module (gnu packages compression)
130 #:use-module (gnu packages crypto)
131 #:use-module (gnu packages databases)
132 #:use-module (gnu packages dbm)
133 #:use-module (gnu packages djvu)
134 #:use-module (gnu packages docker)
135 #:use-module (gnu packages enchant)
136 #:use-module (gnu packages file)
137 #:use-module (gnu packages fontutils)
138 #:use-module (gnu packages gcc)
139 #:use-module (gnu packages geo)
140 #:use-module (gnu packages ghostscript)
141 #:use-module (gnu packages gl)
142 #:use-module (gnu packages glib)
143 #:use-module (gnu packages gnome)
144 #:use-module (gnu packages gnupg)
145 #:use-module (gnu packages graphviz)
146 #:use-module (gnu packages graphics)
147 #:use-module (gnu packages gsasl)
148 #:use-module (gnu packages gstreamer)
149 #:use-module (gnu packages gtk)
150 #:use-module (gnu packages haskell-xyz)
151 #:use-module (gnu packages icu4c)
152 #:use-module (gnu packages image)
153 #:use-module (gnu packages imagemagick)
154 #:use-module (gnu packages kerberos)
155 #:use-module (gnu packages libevent)
156 #:use-module (gnu packages libffi)
157 #:use-module (gnu packages libidn)
158 #:use-module (gnu packages linux)
159 #:use-module (gnu packages llvm)
160 #:use-module (gnu packages man)
161 #:use-module (gnu packages markup)
162 #:use-module (gnu packages maths)
163 #:use-module (gnu packages monitoring)
164 #:use-module (gnu packages multiprecision)
165 #:use-module (gnu packages networking)
166 #:use-module (gnu packages ncurses)
167 #:use-module (gnu packages openstack)
168 #:use-module (gnu packages pcre)
169 #:use-module (gnu packages pdf)
170 #:use-module (gnu packages perl)
171 #:use-module (gnu packages photo)
172 #:use-module (gnu packages pkg-config)
173 #:use-module (gnu packages python)
174 #:use-module (gnu packages python-build)
175 #:use-module (gnu packages python-check)
176 #:use-module (gnu packages python-compression)
177 #:use-module (gnu packages python-crypto)
178 #:use-module (gnu packages python-science)
179 #:use-module (gnu packages python-web)
180 #:use-module (gnu packages qt)
181 #:use-module (gnu packages rdf)
182 #:use-module (gnu packages readline)
183 #:use-module (gnu packages sdl)
184 #:use-module (gnu packages search)
185 #:use-module (gnu packages scanner)
186 #:use-module (gnu packages shells)
187 #:use-module (gnu packages sphinx)
188 #:use-module (gnu packages ssh)
189 #:use-module (gnu packages swig)
190 #:use-module (gnu packages terminals)
191 #:use-module (gnu packages tex)
192 #:use-module (gnu packages texinfo)
193 #:use-module (gnu packages textutils)
194 #:use-module (gnu packages time)
195 #:use-module (gnu packages tls)
196 #:use-module (gnu packages version-control)
197 #:use-module (gnu packages video)
198 #:use-module (gnu packages web)
199 #:use-module (gnu packages wxwidgets)
200 #:use-module (gnu packages base)
201 #:use-module (gnu packages xml)
202 #:use-module (gnu packages xorg)
203 #:use-module (gnu packages xdisorg)
204 #:use-module (gnu packages tcl)
205 #:use-module (gnu packages bdw-gc)
206 #:use-module (gnu packages serialization)
207 #:use-module (guix packages)
208 #:use-module (guix download)
209 #:use-module (guix git-download)
210 #:use-module (guix hg-download)
211 #:use-module (guix utils)
212 #:use-module (guix build-system gnu)
213 #:use-module (guix build-system cmake)
214 #:use-module (guix build-system python)
215 #:use-module (guix build-system trivial)
216 #:use-module (srfi srfi-1)
217 #:use-module (srfi srfi-26))
219 (define-public python-slixmpp
221 (name "python-slixmpp")
228 (url "https://lab.louiz.org/poezio/slixmpp.git")
230 (string-append "slix-" version))))
232 (git-file-name name version))
234 (base32 "15mqxcws14bjvh5jcfwl86zsvrymkdw3ya07vb44md7vfnsnclwx"))))
235 (build-system python-build-system)
238 (modify-phases %standard-phases
239 (add-after 'unpack 'patch
241 (substitute* "setup.py"
246 `(("cython" ,python-cython)
248 ("pkg-config" ,pkg-config)))
250 `(("python-aiodns" ,python-aiodns)
251 ("python-aiohttp" ,python-aiohttp)
252 ("python-pyasn1" ,python-pyasn1)
253 ("python-pyasn1-modules" ,python-pyasn1-modules)))
256 ("python" ,python))) ; We are building a Python extension.
257 (synopsis "XMPP library without threads")
258 (description "Slixmpp is a XMPP library for Python 3.7+. It is a fork of
259 SleekXMPP. Its goal is to only rewrite the core of the library (the low level
260 socket handling, the timers, the events dispatching) in order to remove all
262 (home-page "https://lab.louiz.org/poezio/slixmpp")
263 (license license:expat)))
265 (define-public python-tenacity
267 (name "python-tenacity")
271 (uri (pypi-uri "tenacity" version))
274 "1j36v9fcpmmd4985ix0cwnvcq71rkrn5cjiiv0id9vkl4kpxh0gv"))))
275 (build-system python-build-system)
277 `(("python-setuptools-scm" ,python-setuptools-scm)
278 ("python-sphinx" ,python-sphinx)
279 ("python-tornado" ,python-tornado)
280 ("python-pytest" ,python-pytest)))
282 `(("python-six" ,python-six)))
284 `(#:phases (modify-phases %standard-phases
289 (home-page "https://github.com/jd/tenacity")
290 (synopsis "Retrying library for python")
291 (description "Tenacity is a general-purpose python library to simplify the
292 task of adding retry behavior to just about anything.")
293 (license license:asl2.0)))
295 (define-public python-pytelegrambotapi
297 (name "python-pytelegrambotapi")
303 (url "https://github.com/eternnoir/pyTelegramBotAPI")
305 (file-name (git-file-name name version))
307 (base32 "0r7g5zs0fk3g2dxvbpl0pi730x7r2kalrhn30fs0pvc15a59fmxz"))))
308 (build-system python-build-system)
311 (modify-phases %standard-phases
313 (lambda* (#:key tests? #:allow-other-keys)
315 (with-directory-excursion "tests"
319 `(("python-requests" ,python-requests)))
321 `(("python-pytest" ,python-pytest)))
322 (home-page "https://github.com/eternnoir/pyTelegramBotAPI")
323 (synopsis "Python Telegram bot api")
324 (description "This package provides a simple, but extensible Python
325 implementation for the Telegram Bot API.")
326 (license license:gpl2)))
328 (define-public python-colorlog
330 (name "python-colorlog")
334 (uri (pypi-uri "colorlog" version))
337 "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
338 (build-system python-build-system)
340 `(("python-pytest" ,python-pytest)))
342 `(#:phases (modify-phases %standard-phases
345 ;; Extend PYTHONPATH so the built package will be found.
347 (string-append (getcwd) "/build/lib:"
348 (getenv "PYTHONPATH")))
349 (invoke "pytest" "-p" "no:logging")
351 (home-page "https://github.com/borntyping/python-colorlog")
352 (synopsis "Log formatting with colors for python")
353 (description "The @code{colorlog.ColoredFormatter} is a formatter for use
354 with Python's logging module that outputs records using terminal colors.")
355 (license license:expat)))
357 (define-public python-pyprind
359 (name "python-pyprind")
363 (uri (pypi-uri "PyPrind" version))
366 "0xg6m5hr33h9bdlrr42kc58jm2m87a9zsagy7n2m4n407d2snv64"))))
367 (build-system python-build-system)
369 `(("python-psutil" ,python-psutil)))
370 (home-page "https://github.com/rasbt/pyprind")
371 (synopsis "Python Progress Bar and Percent Indicator Utility")
372 (description "The PyPrind (Python Progress Indicator) module provides a
373 progress bar and a percentage indicator object that let you track the progress
374 of a loop structure or other iterative computation.")
375 (license license:bsd-3)))
377 (define-public python-gphoto2
379 (name "python-gphoto2")
383 (uri (pypi-uri "gphoto2" version))
386 "118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
387 (build-system python-build-system)
389 `(("pkg-config" ,pkg-config)))
391 `(("libgphoto2" ,libgphoto2)))
392 (home-page "https://github.com/jim-easterbrook/python-gphoto2")
393 (synopsis "Python interface to libgphoto2")
394 (description "@code{python-gphoto2} is a comprehensive Python interface
395 (or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
396 automatically generate the interface code.")
397 (license license:gpl3+)))
399 (define-public python-colour
401 (name "python-colour")
405 (uri (pypi-uri "colour" version))
408 "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
409 (build-system python-build-system)
411 `(("python-d2to1" ,python-d2to1)))
412 (home-page "https://github.com/vaab/colour")
413 (synopsis "Convert and manipulate various color representations")
414 (description "Pythonic way to manipulate color representations (HSL, RVB,
416 (license license:expat)))
418 (define-public python-d2to1
420 (name "python-d2to1")
421 (version "0.2.12.post1")
424 (uri (pypi-uri "d2to1" version))
427 "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
428 (build-system python-build-system)
430 `(("python-nose" ,python-nose)))
431 (home-page "https://github.com/embray/d2to1")
432 (synopsis "Allows for distutils2-like setup.cfg files as package metadata
434 (description "The python package d2to1 (the d is for distutils) allows
435 using distutils2-like setup.cfg files for a package's metadata with a
436 distribute/setuptools setup.py script.")
437 (license license:bsd-2)))
439 (define-public python-rawkit
441 (name "python-rawkit")
445 (uri (pypi-uri "rawkit" version))
448 "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
449 (build-system python-build-system)
451 `(("python-pytest" ,python-pytest)
452 ("python-mock" ,python-mock)))
454 `(("libraw" ,libraw)))
455 (home-page "https://rawkit.readthedocs.io")
456 (synopsis "Ctypes-based LibRaw binding for Python")
457 (description "The rawkit package provides two modules: rawkit and libraw.
458 The rawkit module provides a high-level Pythonic interface for developing raw
459 photos, while the libraw module provides a CTypes based interface for
460 interacting with the low-level LibRaw C APIs.")
461 (license license:expat)))
463 (define-public python-easygui
465 (name "python-easygui")
469 (uri (pypi-uri "easygui" version))
472 "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
473 (build-system python-build-system)
475 `(("python-tkinter" ,python "tk")))
476 (home-page "https://github.com/robertlugg/easygui")
477 (synopsis "GUI programming module for Python")
478 (description "EasyGUI is a module for very simple, very easy GUI
479 programming in Python. EasyGUI is different from other GUI generators in that
480 EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
481 simple function calls.")
482 (license license:bsd-3)))
484 (define-public python-pymd4c
486 (name "python-pymd4c")
487 (version "0.4.6.0b1")
491 (uri (pypi-uri "pymd4c" version))
493 (base32 "07s3arn85ri92im6x3ipljdmrxmpik7irs06i6lm17j1x6j9841d"))))
494 (build-system python-build-system)
498 `(("python-flake8" ,python-flake8)
499 ("python-pkgconfig" ,python-pkgconfig)
500 ("pkg-config" ,pkg-config)))
501 (home-page "https://github.com/dominickpastore/pymd4c")
502 (synopsis "Python bindings for MD4C")
504 "PyMD4C provides Python bindings for MD4c, a C Markdown parser, compliant
506 (license license:expat)))
508 (define-public python-pymediainfo
510 (name "python-pymediainfo")
515 (uri (pypi-uri "pymediainfo" version))
518 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
519 (build-system python-build-system)
521 `(("python-setuptools-scm" ,python-setuptools-scm)
522 ("python-pytest" ,python-pytest)))
524 `(("libmediainfo" ,libmediainfo)))
527 (modify-phases %standard-phases
528 (add-after 'unpack 'patch-libmediainfo
530 (substitute* "pymediainfo/__init__.py"
531 (("libmediainfo.so.0")
532 (string-append (assoc-ref %build-inputs "libmediainfo")
533 "/lib/libmediainfo.so.0")))
537 ;; Extend PYTHONPATH so the built package will be found.
539 (string-append (getcwd) "/build/lib:"
540 (getenv "PYTHONPATH")))
541 ;; Skip the only failing test "test_parse_url"
542 (invoke "pytest" "-vv" "-k" "not test_parse_url")
545 "https://github.com/sbraz/pymediainfo")
547 "Python wrapper for the mediainfo library")
549 "Python wrapper for the mediainfo library to access the technical and tag
550 data for video and audio files.")
551 (license license:expat)))
553 (define-public python-psutil
555 (name "python-psutil")
560 (uri (pypi-uri "psutil" version))
562 (base32 "1immnj532bnnrh1qmk5q3lsw3san8qfk9kxy1cpmy0knmfcwp70c"))))
563 (build-system python-build-system)
565 ;; FIXME: some tests do not return and time out. Some tests fail because
566 ;; some processes survive kill().
568 (home-page "https://github.com/giampaolo/psutil")
569 (synopsis "Library for retrieving information on running processes")
571 "@code{psutil} (Python system and process utilities) is a library for
572 retrieving information on running processes and system utilization (CPU,
573 memory, disks, network) in Python. It is useful mainly for system monitoring,
574 profiling and limiting process resources and management of running processes.
575 It implements many functionalities offered by command line tools such as: ps,
576 top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
577 iotop, uptime, pidof, tty, taskset, pmap.")
578 (properties `((python2-variant . ,(delay python2-psutil))))
579 (license license:bsd-3)))
581 (define-public python2-psutil
582 (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
583 (package/inherit base
585 `(("python2-enum34" ,python2-enum34) ;optional
586 ,@(package-propagated-inputs base))))))
588 (define-public python-shapely
590 (name "python-shapely")
595 (uri (pypi-uri "Shapely" version))
598 "0adiz4jwmwxk7k1awqifb1a9bj5x4nx4gglb5dz9liam21674h8n"))
599 (modules '((guix build utils)))
602 (delete-file "shapely/speedups/_speedups.c")
603 (delete-file "shapely/vectorized/_vectorized.c")
605 (build-system python-build-system)
607 `(("python-cython" ,python-cython)
608 ("python-matplotlib" ,python-matplotlib)
609 ("python-pytest" ,python-pytest)
610 ("python-pytest-cov" ,python-pytest-cov)))
614 `(("python-numpy" ,python-numpy)))
617 (modify-phases %standard-phases
618 (add-after 'unpack 'patch-geos-path
619 (lambda* (#:key inputs #:allow-other-keys)
620 (let ((geos (assoc-ref inputs "geos"))
621 (glibc (assoc-ref inputs ,(if (%current-target-system)
622 "cross-libc" "libc"))))
623 (substitute* '("shapely/geos.py" "shapely/_buildcfg.py")
624 (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
625 (string-append "_lgeos = load_dll('geos_c', fallbacks=['"
626 geos "/lib/libgeos_c.so'])"))
627 (("free = load_dll\\('c'\\)\\.free")
628 (string-append "free = load_dll('c', fallbacks=['"
629 glibc "/lib/libc.so.6']).free"))
630 (("free = load_dll\\('c', fallbacks=.*\\)\\.free")
631 (string-append "free = load_dll('c', fallbacks=['"
632 glibc "/lib/libc.so.6']).free"))))
634 (home-page "https://github.com/Toblerity/Shapely")
635 (synopsis "Library for the manipulation and analysis of geometric objects")
636 (description "Shapely is a Python package for manipulation and analysis of
637 planar geometric objects. It is based on the @code{GEOS} library.")
638 (license license:bsd-3)))
640 (define-public python-shortuuid
642 (name "python-shortuuid")
647 (uri (pypi-uri "shortuuid" version))
650 "1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh"))))
651 (build-system python-build-system)
653 `(("python-pep8" ,python-pep8)))
654 (home-page "https://github.com/skorokithakis/shortuuid")
655 (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
657 "@code{shortuuid} is a Python library for generating concise, unambiguous
658 and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
659 module and then similar looking characters are removed.")
660 (license license:bsd-3)))
662 (define-public python-logwrap
664 (name "python-logwrap")
665 (version "8.2.0.post0")
669 (uri (pypi-uri "logwrap" version))
672 "1dv7gny3rfci5cal2ipr6d0pcz3yhka7af96dfsd3ir1mxy8p1j9"))))
673 (build-system python-build-system)
675 `(#:tests? #f ; Tests not included in pypi release.
677 (modify-phases %standard-phases
679 (lambda* (#:key tests? #:allow-other-keys)
684 `(("python-cython" ,python-cython)
685 ("python-pytest" ,python-pytest)
686 ("python-setuptools-scm" ,python-setuptools-scm)
687 ("python-toml" ,python-toml)
688 ("python-wheel" ,python-wheel)))
689 (home-page "https://github.com/python-useful-helpers/logwrap")
690 (synopsis "Decorator for logging function arguments")
691 (description "This package provides a decorator to log function arguments
692 and function call return values in a human-readable way.")
693 (license license:asl2.0)))
695 (define-public python2-shapely
696 (package-with-python2 python-shapely))
698 (define-public python-clyent
700 (name "python-clyent")
705 (uri (pypi-uri "clyent" version))
708 "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
709 (build-system python-build-system)
711 `(("python-mock" ,python-mock)))
712 (home-page "https://github.com/Anaconda-Platform/clyent")
713 (synopsis "Command line client library")
714 (description "Clyent is a Python command line utility library. It is used
715 by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
716 (license license:bsd-3)))
718 (define-public python2-clyent
719 (package-with-python2 python-clyent))
721 (define-public python-babel
723 (name "python-babel")
728 (uri (pypi-uri "Babel" version))
731 "018yg7g2pa6vjixx1nx41cfispgfi0azzp0a1chlycbj8jsil0ys"))))
732 (build-system python-build-system)
734 `(("python-freezegun" ,python-freezegun)
735 ("python-pytest" ,python-pytest)))
737 `(("python-pytz" ,python-pytz)))
739 `(#:phases (modify-phases %standard-phases
742 (invoke "pytest" "-vv"))))))
743 (home-page "http://babel.pocoo.org/")
745 "Tools for internationalizing Python applications")
747 "Babel is composed of two major parts:
748 - tools to build and work with gettext message catalogs
749 - a Python interface to the CLDR (Common Locale Data Repository), providing
750 access to various locale display names, localized number and date formatting,
752 (license license:bsd-3)))
754 (define-public python2-babel
755 (package-with-python2 python-babel))
757 (define-public python2-backport-ssl-match-hostname
759 (name "python2-backport-ssl-match-hostname")
764 (uri (pypi-uri "backports.ssl_match_hostname" version))
767 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
768 (build-system python-build-system)
771 #:tests? #f)) ; no test target
772 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
773 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
775 "This backport brings the ssl.match_hostname() function to users of
776 earlier versions of Python. The function checks the hostname in the
777 certificate returned by the server to which a connection has been established,
778 and verifies that it matches the intended target hostname.")
779 (license license:psfl)))
781 (define-public python-bidict
783 (name "python-bidict")
788 (uri (pypi-uri "bidict" version))
791 "02dy0b1k7qlhn7ajyzkrvxhyhjj0hzcq6ws3zjml9hkdz5znz92g"))))
792 (build-system python-build-system)
794 `(("python-coverage" ,python-coverage)
795 ("python-hypothesis" ,python-hypothesis-5.23) ; use_true_random=... from >=5.19.0
796 ("python-pre-commit" ,python-pre-commit)
797 ("python-py" ,python-py)
798 ("python-pytest" ,python-pytest)
799 ("python-pytest-benchmark" ,python-pytest-benchmark)
800 ("python-pytest-cov" ,python-pytest-cov)
801 ("python-setuptools-scm" ,python-setuptools-scm)
802 ("python-sortedcollections" ,python-sortedcollections)
803 ("python-sortedcontainers" ,python-sortedcontainers)
804 ("python-sphinx" ,python-sphinx)
805 ("python-sphinx-autodoc-typehints" ,python-sphinx-autodoc-typehints)
806 ("python-tox" ,python-tox)))
808 `(#:phases (modify-phases %standard-phases
809 (add-after 'unpack 'relax-reqs
811 (substitute* "setup.py"
812 (("sortedcollections < 2") "sortedcollections"))
815 (lambda _ (invoke "./run_tests.py"))))))
816 (home-page "https://bidict.readthedocs.io")
817 (synopsis "Bidirectional mapping library")
818 (description "The @code{bidict} library provides several data structures
819 for working with bidirectional mappings in Python.")
820 (license license:mpl2.0)))
822 (define-public python-bitarray
824 (name "python-bitarray")
828 (uri (pypi-uri "bitarray" version))
831 "177fj6wbw5jln54wpp6plcqy2329wjkwqwvgz7022rrg3xfrq49g"))))
832 (build-system python-build-system)
833 (home-page "https://github.com/ilanschnell/bitarray")
834 (synopsis "Efficient arrays of booleans")
835 (description "This package provides an object type which efficiently
836 represents an array of booleans. Bitarrays are sequence types and behave very
837 much like usual lists. Eight bits are represented by one byte in a contiguous
838 block of memory. The user can select between two representations:
839 little-endian and big-endian. All of the functionality is implemented in C.
840 Methods for accessing the machine representation are provided. This can be
841 useful when bit level access to binary files is required, such as portable
842 bitmap image files. Also, when dealing with compressed data which uses
843 variable bit length encoding, you may find this module useful.")
844 (license license:psfl)))
846 (define-public python-boolean.py
848 (name "python-boolean.py")
852 ;; There's no source tarball on PyPI.
855 (url "https://github.com/bastikr/boolean.py")
856 (commit (string-append "v" version))))
857 (file-name (git-file-name name version))
859 (base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
860 (build-system python-build-system)
861 (home-page "https://github.com/bastikr/boolean.py")
862 (synopsis "Boolean algebra in one Python module")
864 "This is a small Python library that implements boolean algebra.
865 It defines two base elements, @code{TRUE} and @code{FALSE}, and a
866 @code{Symbol} class that can take on one of these two values. Calculations
867 are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
868 compositions like @code{XOR} and @code{NAND} are emulated on top of them.
869 Expressions are constructed from parsed strings or directly in Python.")
870 (license license:bsd-2)))
872 (define-public python-hdf4
879 (uri (pypi-uri name version))
882 "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
883 (build-system python-build-system)
884 (native-inputs `(("nose" ,python-nose)))
885 (propagated-inputs `(("numpy" ,python-numpy)))
888 ("libjpeg" ,libjpeg-turbo)
892 (modify-phases %standard-phases
895 ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
896 ;; on to import numpy. Somehow this works on their CI system.
897 ;; Let's just manage PYTHONPATH here instead.
898 (substitute* "runexamples.sh"
899 (("export PYTHONPATH=.*") ""))
901 (string-append (getcwd) ":"
902 (getenv "PYTHONPATH")))
903 (invoke "./runexamples.sh")
904 (invoke "nosetests" "-v"))))))
905 (home-page "https://github.com/fhs/python-hdf4")
906 (synopsis "Python interface to the NCSA HDF4 library")
908 "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
909 which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
910 NetCDF files can also be read and modified. Python-HDF4 is a fork of
911 @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
912 (license license:expat)))
914 (define-public python2-hdf4
915 (package-with-python2 python-hdf4))
917 (define-public python-h5py
924 (uri (pypi-uri "h5py" version))
927 "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4"))))
928 (build-system python-build-system)
930 `(#:tests? #f ; no test target
932 (modify-phases %standard-phases
933 (add-after 'unpack 'fix-hdf5-paths
934 (lambda* (#:key inputs #:allow-other-keys)
935 (let ((prefix (assoc-ref inputs "hdf5")))
936 (substitute* "setup_build.py"
937 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
938 (string-append "['" prefix "/lib" "']"))
939 (("'/opt/local/include', '/usr/local/include'")
940 (string-append "'" prefix "/include" "'")))
941 (substitute* "setup_configure.py"
942 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
943 (string-append "['" prefix "/lib" "']")))
946 `(("python-six" ,python-six)
947 ("python-numpy" ,python-numpy)))
949 `(("hdf5" ,hdf5-1.10)))
951 `(("python-cython" ,python-cython)
952 ("python-pkgconfig" ,python-pkgconfig)
953 ("pkg-config" ,pkg-config)))
954 (home-page "https://www.h5py.org/")
955 (synopsis "Read and write HDF5 files from Python")
957 "The h5py package provides both a high- and low-level interface to the
958 HDF5 library from Python. The low-level interface is intended to be a
959 complete wrapping of the HDF5 API, while the high-level component supports
960 access to HDF5 files, datasets and groups using established Python and NumPy
962 (license license:bsd-3)))
964 (define-public python2-h5py
965 (package-with-python2 python-h5py))
967 (define-public python-sh
974 (uri (pypi-uri "sh" version))
977 "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
978 (build-system python-build-system)
981 (modify-phases %standard-phases
984 ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
985 (setenv "HOME" "/tmp")
986 (invoke "python" "sh.py" "test"))))))
988 `(("python-coverage" ,python-coverage)))
989 (home-page "https://github.com/amoffat/sh")
990 (synopsis "Python subprocess replacement")
991 (description "This package provides a replacement for Python's
992 @code{subprocess} feature.")
993 (license license:expat)))
995 (define-public python-cftime
997 (name "python-cftime")
1002 (uri (pypi-uri "cftime" version))
1004 (base32 "0w0gi6jnch38hiygl62j4xkcirv4y3dcwrvxl9p7bsk6j27lzihs"))))
1005 (build-system python-build-system)
1007 `(("python-numpy" ,python-numpy)))
1009 `(("python-coveralls" ,python-coveralls)
1010 ("python-cython" ,python-cython)
1011 ("python-pytest-cov" ,python-pytest-cov)))
1012 (home-page "https://github.com/Unidata/cftime")
1013 (synopsis "Library for time handling")
1015 "This package provides time-handling functionality that used to be part
1016 of the netcdf4 package before.")
1017 ;; This package claims to include code under the GPLv3 but is released
1019 (license (list license:isc license:gpl3+))))
1021 (define-public python-netcdf4
1023 (name "python-netcdf4")
1028 (uri (pypi-uri "netCDF4" version))
1031 "1gn35mb2yc263pci720aik8ymz41lrvxlrn3z83vyjwghiashg1a"))))
1032 (build-system python-build-system)
1035 (modify-phases %standard-phases
1036 (add-after 'unpack 'configure-locations
1037 (lambda* (#:key inputs #:allow-other-keys)
1038 (setenv "HDF5_DIR" (assoc-ref inputs "hdf5"))
1041 `(("python-cython" ,python-cython)))
1043 `(("python-numpy" ,python-numpy)
1044 ("python-cftime" ,python-cftime)))
1046 `(("netcdf" ,netcdf)
1049 (home-page "https://github.com/Unidata/netcdf4-python")
1050 (synopsis "Python/numpy interface to the netCDF library")
1051 (description "Netcdf4-python is a Python interface to the netCDF C
1052 library. netCDF version 4 has many features not found in earlier
1053 versions of the library and is implemented on top of HDF5. This module
1054 can read and write files in both the new netCDF 4 and the old netCDF 3
1055 format, and can create files that are readable by HDF5 clients. The
1056 API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
1057 to users of that module.")
1058 ;; The software is mainly ISC, but includes some files covered
1059 ;; by the Expat license.
1060 (license (list license:isc license:expat))))
1062 (define-public python-license-expression
1064 (name "python-license-expression")
1069 (uri (pypi-uri "license-expression" version))
1071 (base32 "1g0sgphss8hbi1rpl4avy1nmbixmy9v194xdbvkjgl90vzgy2q3r"))))
1072 (build-system python-build-system)
1074 `(("python-boolean.py" ,python-boolean.py)))
1075 (home-page "https://github.com/nexB/license-expression")
1076 (synopsis "Apply boolean logic to license expressions")
1078 "This Python module defines a tiny language to evaluate and compare
1079 license expressions using boolean logic. Logical combinations of licenses can
1080 be tested for equality, containment, and equivalence. They can be normalised
1081 and simplified. It supports SPDX license expressions as well as other naming
1082 conventions and aliases in the same expression.")
1083 (license license:gpl2+)))
1085 (define-public python-lockfile
1087 (name "python-lockfile")
1092 (uri (pypi-uri "lockfile" version))
1095 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
1096 (build-system python-build-system)
1097 (arguments '(#:test-target "check"))
1099 `(("python-pbr" ,python-pbr)))
1100 (home-page "https://launchpad.net/pylockfile")
1101 (synopsis "Platform-independent file locking module")
1103 "The lockfile package exports a LockFile class which provides a simple
1104 API for locking files.")
1105 (license license:expat)))
1107 (define-public python-filelock
1109 (name "python-filelock")
1114 (uri (pypi-uri "filelock" version))
1117 "0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
1118 (build-system python-build-system)
1120 "https://github.com/benediktschmitt/py-filelock")
1121 (synopsis "Platform independent file lock")
1122 (description "@code{filelock} contains a single module implementing
1123 a platform independent file lock in Python, which provides a simple way of
1124 inter-process communication.")
1125 (license license:unlicense)))
1127 (define-public python-semantic-version
1129 (name "python-semantic-version")
1134 (uri (pypi-uri "semantic_version" version))
1137 "0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
1138 (build-system python-build-system)
1139 (home-page "https://github.com/rbarrois/python-semanticversion")
1140 (synopsis "Semantic versioning module for Python")
1142 "The @code{semantic_version} class is a small library for handling
1143 @uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
1145 It can compare versions, generate a new version that represents a bump in one of
1146 the version levels, and check whether any given string is a proper semantic
1147 version identifier.")
1148 (license license:bsd-3)))
1150 (define-public python2-semantic-version
1151 (package-with-python2 python-semantic-version))
1153 (define-public python-serpent
1155 (name "python-serpent")
1160 (uri (pypi-uri "serpent" version))
1162 (base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk"))))
1163 (build-system python-build-system)
1165 `(("python-attrs" ,python-attrs)
1166 ("python-pytz" ,python-pytz)))
1167 (home-page "https://github.com/irmen/Serpent")
1168 (synopsis "Serializer for literal Python expressions")
1170 "Serpent provides @code{ast.literal_eval()}-compatible object tree
1171 serialization. It serializes an object tree into bytes (an utf-8 encoded
1172 string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
1173 to rebuild the original object tree.
1175 Because only safe literals are encoded, it is safe to send serpent data to
1176 other machines, such as over the network.")
1177 (properties `((python2-variant . ,(delay python2-serpent))))
1178 (license license:expat)))
1180 (define-public python2-serpent
1181 (let ((base (package-with-python2 (strip-python2-variant python-serpent))))
1182 (package/inherit base
1184 `(("python-enum34" ,python2-enum34)
1185 ,@(package-propagated-inputs base))))))
1187 (define-public python-setuptools
1189 (name "python-setuptools")
1194 (uri (pypi-uri "setuptools" version))
1197 "15ibjdjhkwgj6qbmpsxikkqdfsb1550z46fly7dm15ah4bk1wfpv"))
1198 (modules '((guix build utils)))
1201 ;; Remove included binaries which are used to build self-extracting
1202 ;; installers for Windows.
1203 ;; TODO: Find some way to build them ourself so we can include them.
1204 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1206 (build-system python-build-system)
1207 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1208 ;; One could bootstrap with an internal untested setuptools.
1211 (home-page "https://pypi.org/project/setuptools/")
1213 "Library designed to facilitate packaging Python projects")
1215 "Setuptools is a fully-featured, stable library designed to facilitate
1216 packaging Python projects, where packaging includes:
1217 Python package and module definitions,
1218 distribution package metadata,
1220 project installation,
1221 platform-specific details,
1223 ;; TODO: setuptools now bundles the following libraries:
1224 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1225 (license (list license:psfl ; setuptools itself
1226 license:expat ; six, appdirs, pyparsing
1227 license:asl2.0 ; packaging is dual ASL2/BSD-2
1229 (properties `((python2-variant . ,(delay python2-setuptools))))))
1231 ;; Newer versions of setuptools no longer support Python 2.
1232 (define-public python2-setuptools
1234 (name "python2-setuptools")
1239 (uri (pypi-uri "setuptools" version ".zip"))
1242 "04sns22y2hhsrwfy1mha2lgslvpjsjsz8xws7h2rh5a7ylkd28m2"))
1243 (modules '((guix build utils)))
1246 ;; Remove included binaries which are used to build self-extracting
1247 ;; installers for Windows.
1248 ;; TODO: Find some way to build them ourself so we can include them.
1249 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1251 (build-system python-build-system)
1252 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1253 ;; One could bootstrap with an internal untested setuptools.
1257 `(("unzip" ,unzip)))
1258 (home-page "https://pypi.org/project/setuptools/")
1260 "Library designed to facilitate packaging Python projects")
1262 "Setuptools is a fully-featured, stable library designed to facilitate
1263 packaging Python projects, where packaging includes:
1264 Python package and module definitions,
1265 distribution package metadata,
1267 project installation,
1268 platform-specific details,
1270 ;; TODO: setuptools now bundles the following libraries:
1271 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1272 (license (list license:psfl ; setuptools itself
1273 license:expat ; six, appdirs, pyparsing
1274 license:asl2.0 ; packaging is dual ASL2/BSD-2
1277 ;; The setuptools provided by Python 3.7.4 is too new for Tensorflow.
1278 (define-public python-setuptools-for-tensorflow
1281 (inherit python-setuptools)
1284 (inherit (package-source python-setuptools))
1285 (uri (pypi-uri "setuptools" version ".zip"))
1288 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65")))))))
1290 (define-public python-uniseg
1292 (name "python-uniseg")
1297 (uri (pypi-uri "uniseg" version ".zip"))
1300 "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
1301 (build-system python-build-system)
1303 '(#:tests? #f)) ; The test suite requires network access.
1305 `(("unzip" ,unzip)))
1307 "https://bitbucket.org/emptypage/uniseg-python")
1309 "Python library to determine Unicode text segmentations")
1311 "Uniseg is a Python package used to determine Unicode text segmentations.
1312 Supported segmentations include:
1314 @item @dfn{Code point} (any value in the Unicode codespace)
1315 @item @dfn{Grapheme cluster} (user-perceived character made of a single or
1316 multiple Unicode code points, e.g. \"G\" + acute-accent)
1318 @item Sentence break
1321 (license license:expat)))
1323 (define-public python2-uniseg
1324 (package-with-python2 python-uniseg))
1326 (define-public python-humanfriendly
1328 (name "python-humanfriendly")
1333 (uri (pypi-uri "humanfriendly" version))
1336 "04ixg8b7p6xc8x8lffhi7wfl77xhszakhd0s6j0cf6a84j8yqlmz"))))
1337 (build-system python-build-system)
1339 `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
1341 (home-page "https://humanfriendly.readthedocs.io")
1342 (synopsis "Human-friendly input and output in Python")
1344 "The functions and classes in @code{humanfriendly} can be used to make
1345 text interfaces more user-friendly. It includes tools to parse and format
1346 numbers, file sizes, and timespans, timers for long-running operations, menus
1347 to allow the user to choose from a list of options, and terminal interaction
1349 (properties `((python2-variant . ,(delay python2-humanfriendly))))
1350 (license license:expat)))
1352 (define-public python2-humanfriendly
1353 (let ((base (package-with-python2
1354 (strip-python2-variant python-humanfriendly))))
1355 (package/inherit base
1357 `(("python2-monotonic" ,python2-monotonic)
1358 ,@(package-propagated-inputs base))))))
1360 (define-public python-textparser
1362 (name "python-textparser")
1367 (uri (pypi-uri "textparser" version))
1370 "0w5lyhrsvzs5a9q1l3sjgxgljrvd3ybf796w93kc39wayzvd02gh"))))
1371 (build-system python-build-system)
1372 (home-page "https://github.com/eerimoq/textparser")
1373 (synopsis "Fast text parser for Python")
1374 (description "This library provides a text parser written in the Python
1375 language. It aims to be fast.")
1376 (license license:expat)))
1378 (define-public python-aenum
1380 (name "python-aenum")
1385 (uri (pypi-uri "aenum" version))
1387 (base32 "0r1812bjm72x73pl7y4yhffr4zbdjgxa08avsy4b3di0pqgqv0l1"))))
1388 (build-system python-build-system)
1390 `(#:phases (modify-phases %standard-phases
1393 (format #t "current working dir ~s~%" (getcwd))
1394 (setenv "PYTHONPATH"
1395 (string-append ".:" (getenv "PYTHONPATH")))
1396 ;; We must run the test suite module directly, as it
1397 ;; fails to define the 'tempdir' variable in scope for
1398 ;; the tests otherwise
1399 ;; (see:https://bitbucket.org/stoneleaf/aenum/\
1400 ;; issues/32/running-tests-with-python-setuppy-test).
1401 (invoke "python3" "aenum/test.py")
1402 ;; This one fails with "NameError: name
1403 ;; 'test_pickle_dump_load' is not defined" (see:
1404 ;; https://bitbucket.org/stoneleaf/aenum/issues/33
1405 ;; /error-running-the-test_v3py-test-suite).
1406 ;; (invoke "python3" "aenum/test_v3.py")
1408 (home-page "https://bitbucket.org/stoneleaf/aenum")
1409 (synopsis "Advanced enumerations, namedtuples and constants for Python")
1410 (description "The aenum library includes an @code{Enum} base class, a
1411 metaclass-based @code{NamedTuple} implementation and a @code{NamedConstant}
1413 (license license:bsd-3)))
1415 (define-public python-can
1422 (uri (pypi-uri "python-can" version))
1425 "123lz1bl6xf3d0fvxzr4bg4884yg4m9s21z6xd2m68zhnbv9rmpc"))))
1426 (build-system python-build-system)
1428 `(#:phases (modify-phases %standard-phases
1429 (add-after 'unpack 'relax-version-requirements
1431 (substitute* "setup.py"
1432 (("mock~=2\\.0") "mock")
1433 (("coverage<5") "coverage")
1434 (("pytest~=4\\.3") "pytest")
1435 (("hypothesis~=4\\.56") "hypothesis"))
1437 (add-after 'unpack 'fix-broken-tests
1438 ;; The tests try to run two scripts it expects should be
1439 ;; in PATH, but they aren't at this time (see:
1440 ;; https://github.com/hardbyte/python-can/issues/805).
1442 (substitute* "test/test_scripts.py"
1443 (("\"can_logger\\.py --help\"") "")
1444 (("\"can_player\\.py --help\"") ""))
1447 `(("python-aenum" ,python-aenum)
1448 ("python-wrapt" ,python-wrapt)))
1450 `(("python-codecov" ,python-codecov)
1451 ("python-coverage" ,python-coverage)
1452 ("python-future" ,python-future)
1453 ("python-hypothesis" ,python-hypothesis)
1454 ("python-mock" ,python-mock)
1455 ("python-pyserial" ,python-pyserial)
1456 ("python-pytest" ,python-pytest)
1457 ("python-pytest-cov" ,python-pytest-cov)
1458 ("python-pytest-runner" ,python-pytest-runner)
1459 ("python-pytest-timeout" ,python-pytest-timeout)))
1460 (home-page "https://github.com/hardbyte/python-can")
1461 (synopsis "Controller Area Network (CAN) interface module for Python")
1462 (description "This package defines the @code{can} module, which provides
1463 controller area network (CAN) support for Python developers; providing common
1464 abstractions to different hardware devices, and a suite of utilities for
1465 sending and receiving messages on a CAN bus.")
1466 (license license:lgpl3+)))
1468 (define-public python-caniusepython3
1470 (name "python-caniusepython3")
1475 (uri (pypi-uri "caniusepython3" version))
1478 "0a755444ln38j8d7xb3yw0wzpd0mjrzfn6zqvsh06nw1vdaq4l28"))))
1479 (build-system python-build-system)
1481 `(#:phases (modify-phases %standard-phases
1482 (add-after 'unpack 'relax-requirements
1484 (substitute* "setup.py"
1485 ;; These are for compatibility with Python 2.
1486 ((".*'argparse', 'backports.functools_lru_cache',.*")
1488 (substitute* "dev_requirements.txt"
1489 ((".*pylint.*") "")) ;not actually required
1493 (invoke "py.test" "-k" "not NetworkTests"))))))
1495 `(("python-distlib" ,python-distlib)
1496 ("python-packaging" ,python-packaging)
1497 ("python-requests" ,python-requests)))
1499 `(("python-mock" ,python-mock)
1500 ("python-pytest" ,python-pytest)))
1501 (home-page "https://github.com/brettcannon/caniusepython3")
1502 (synopsis "Check for Python 3-incompatible Python libraries")
1503 (description "The @command{caniusepython3} command scans your project and
1504 reports the Python 3-incompatible libraries it found. It can also be used as
1506 (license license:asl2.0)))
1508 (define-public python-diskcache
1510 (name "python-diskcache")
1515 (uri (pypi-uri "diskcache" version))
1518 "1q2wz5sj16zgyy1zpq516qgbnfwsavk1pl2qks0f4r62z5cmmvmw"))))
1519 (build-system python-build-system)
1521 `(#:tests? #f)) ;test suite not included in the release
1522 (home-page "http://www.grantjenks.com/docs/diskcache/")
1523 (synopsis "Disk and file backed cache library")
1524 (description "DiskCache is a disk and file backed persistent cache.")
1525 (license license:asl2.0)))
1527 (define-public python-bitstruct
1529 (name "python-bitstruct")
1534 (uri (pypi-uri "bitstruct" version))
1537 "1fpc1qh1vss05ap29xvhjp200fm0q4pvgcjl0qpryh7ay6xgr5vx"))))
1538 (build-system python-build-system)
1539 (home-page "https://github.com/eerimoq/bitstruct")
1540 (synopsis "Python values to and C bit field structs converter")
1541 (description "This module performs conversions between Python values and C
1542 bit field structs represented as Python byte strings. It is intended to have
1543 a similar interface as the @code{struct} module from Python, but working on
1544 bits instead of primitive data types like @code{char}, @code{int}, etc.")
1545 (license license:expat)))
1547 (define-public python-cantools
1549 (name "python-cantools")
1553 ;; We take the sources from the Git repository as the documentation is
1554 ;; not included with the PyPI archive.
1557 (url "https://github.com/eerimoq/cantools")
1559 (file-name (git-file-name name version))
1562 "1aad137yd8b4jkfvlv812qsxmxcgra7g1p4wbxfsjy1cbf8fbq9q"))))
1563 (build-system python-build-system)
1566 (modify-phases %standard-phases
1567 (add-after 'build 'build-doc
1569 ;; See: https://github.com/eerimoq/cantools/issues/190.
1570 (substitute* "README.rst"
1571 (("https://github.com/eerimoq/cantools/raw/master\
1574 (with-directory-excursion "docs"
1575 (invoke "make" "man" "info"))))
1576 (add-after 'install 'install-doc
1577 (lambda* (#:key outputs #:allow-other-keys)
1578 (let* ((out (assoc-ref outputs "out"))
1579 (info (string-append out "/share/info"))
1580 (man1 (string-append out "/share/man/man1")))
1581 (format #t "CWD: ~s~%" (getcwd))
1582 (install-file "docs/_build/texinfo/cantools.info" info)
1583 (install-file "docs/_build/man/cantools.1" man1)
1586 `(("sphinx" ,python-sphinx)
1587 ("texinfo" ,texinfo)))
1589 `(("python-bitstruct" ,python-bitstruct)
1590 ("python-can" ,python-can)
1591 ("python-diskcache" ,python-diskcache)
1592 ("python-textparser" ,python-textparser)))
1593 (home-page "https://github.com/eerimoq/cantools")
1594 (synopsis "Tools for the Controller Area Network (CAN) bus protocol")
1595 (description "This package includes Controller Area Network (CAN) related
1596 tools that can be used to:
1598 @item parse DBC, KCD, SYM, ARXML 4 and CDD files
1599 @item encode and decode CAN messages
1600 @item multiplex simple and extended signals
1601 @item diagnose DID encoding and decoding
1602 @item dump the CAN decoder output
1603 @item test CAN nodes
1604 @item generate C source code
1605 @item monitor the CAN bus
1607 (license license:expat)))
1609 (define-public python-capturer
1611 (name "python-capturer")
1616 (uri (pypi-uri "capturer" version))
1619 "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
1620 (build-system python-build-system)
1624 `(("python-humanfriendly" ,python-humanfriendly)))
1625 (home-page "https://capturer.readthedocs.io")
1626 (synopsis "Capture stdout and stderr streams of the current process")
1628 "The capturer package makes it easy to capture the stdout and stderr
1629 streams of the current process and subprocesses. Output can be relayed
1630 to the terminal in real time but is also available to the Python program
1631 for additional processing.")
1632 (license license:expat)))
1634 (define-public python2-capturer
1635 (package-with-python2 python-capturer))
1637 (define-public python-case
1639 (name "python-case")
1644 (uri (pypi-uri "case" version))
1647 "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
1648 (build-system python-build-system)
1650 `(("python-mock" ,python-mock)
1651 ("python-nose" ,python-nose)
1652 ("python-six" ,python-six)
1653 ("python-unittest2" ,python-unittest2)))
1655 `(("python-coverage" ,python-coverage)))
1656 (home-page "https://github.com/celery/case")
1657 (synopsis "Unittest utilities and convenience methods")
1659 "The @code{case} package provides utilities on top of unittest, including
1660 some helpful Python 2 compatibility convenience methods.")
1661 (license license:bsd-3)))
1663 (define-public python-verboselogs
1665 (name "python-verboselogs")
1670 (uri (pypi-uri "verboselogs" version))
1673 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
1674 (build-system python-build-system)
1677 (modify-phases %standard-phases
1680 ;; Do not run pylint plugin test, as astroid is an old
1681 ;; unsupported version.
1682 (invoke "pytest" "-v" "-k" "not test_pylint_plugin"
1683 "verboselogs/tests.py"))))))
1685 `(("python-mock" ,python-mock)
1686 ("python-pytest" ,python-pytest)))
1687 (home-page "https://verboselogs.readthedocs.io")
1688 (synopsis "Verbose logging level for Python's logging module")
1690 "The @code{verboselogs} package extends Python's @code{logging} module to
1691 add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
1692 (license license:expat)))
1694 (define-public python2-verboselogs
1695 (package-with-python2 python-verboselogs))
1697 (define-public python-coloredlogs
1699 (name "python-coloredlogs")
1704 (uri (pypi-uri "coloredlogs" version))
1707 "0dkw6xp0r1dwgz4s2f58npx5nxfq51wf4l6qkm5ib27slgfs4sdq"))))
1708 (build-system python-build-system)
1710 `(;Tests require some updated modules
1713 `(("python-capturer" ,python-capturer)))
1714 (home-page "https://coloredlogs.readthedocs.io")
1715 (synopsis "Colored stream handler for Python's logging module")
1717 "The @code{coloredlogs} package enables colored terminal output for
1718 Python's logging module. The @code{ColoredFormatter} class inherits from
1719 @code{logging.Formatter} and uses ANSI escape sequences to render your logging
1720 messages in color.")
1721 (license license:expat)))
1723 (define-public python2-coloredlogs
1724 (package-with-python2 python-coloredlogs))
1726 (define-public python-editorconfig
1728 (name "python-editorconfig")
1733 (uri (pypi-uri "EditorConfig" version))
1736 "0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv"))))
1737 (build-system python-build-system)
1738 (home-page "https://editorconfig.org/")
1739 (synopsis "EditorConfig bindings for python")
1740 (description "The EditorConfig project consists of a file format for
1741 defining coding styles and a collection of text editor plugins that enable
1742 editors to read the file format and adhere to defined styles. EditorConfig
1743 files are easily readable and they work nicely with version control systems.")
1744 ;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
1745 (license (list license:bsd-2 license:psfl))))
1747 (define-public dosage
1754 (uri (pypi-uri "dosage" version))
1757 "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"))))
1758 (build-system python-build-system)
1760 `(("python2-backports-functools-lru-cache"
1761 ,python2-backports-functools-lru-cache)
1762 ("python2-backports-shutil-get-terminal-size"
1763 ,python2-backports-shutil-get-terminal-size)
1764 ("python-cached-property" ,python-cached-property)
1765 ("python-colorama" ,python-colorama)
1766 ("python-imagesize" ,python-imagesize)
1767 ("python-importlib-metadata" ,python-importlib-metadata)
1768 ("python-lxml" ,python-lxml)
1769 ("python-requests" ,python-requests)
1770 ("python-six" ,python-six)))
1772 `(("python-pytest-cov" ,python-pytest-cov)
1773 ("python-pytest-xdist" ,python-pytest-xdist)
1774 ("python-responses" ,python-responses)
1775 ("python-setuptools-scm" ,python-setuptools-scm)))
1776 (home-page "https://github.com/webcomics/dosage")
1777 (synopsis "Comic strip downloader and archiver")
1778 (description "Dosage is designed to keep a local copy of specific webcomics and other
1779 picture-based content such as Picture of the Day sites. With the @command{dosage}
1780 command-line script you can get the latest strip of a webcomic, catch-up to the last strip
1781 downloaded, or download a strip for a particular date or index, if possible.")
1782 (license license:expat)))
1784 (define-public python-et-xmlfile
1786 (name "python-et-xmlfile")
1791 (uri (pypi-uri "et_xmlfile" version))
1794 "0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1"))))
1795 (build-system python-build-system)
1797 `(#:phases (modify-phases %standard-phases
1800 (invoke "pytest"))))))
1802 `(("python-pytest" ,python-pytest)
1803 ("python-lxml" ,python-lxml))) ;used for the tests
1804 (home-page "https://bitbucket.org/openpyxl/et_xmlfile")
1805 (synopsis "Low memory implementation of @code{lxml.xmlfile}")
1806 (description "This Python library is based upon the @code{xmlfile} module
1807 from @code{lxml}. It aims to provide a low memory, compatible implementation
1808 of @code{xmlfile}.")
1809 (license license:expat)))
1811 (define-public python2-et-xmlfile
1812 (package-with-python2 python-et-xmlfile))
1814 (define-public python-openpyxl
1816 (name "python-openpyxl")
1820 ;; We use the upstream repository, as the tests are not included in the
1824 (url "https://foss.heptapod.net/openpyxl/openpyxl")
1825 (changeset version)))
1826 (file-name (string-append name "-" version "-checkout"))
1828 (base32 "0s6fgwwkcfz1bnrp5gjd4g2lcbl4a76147ylkrmkbabi2nf4xlli"))))
1829 (build-system python-build-system)
1831 `(#:phases (modify-phases %standard-phases
1834 (invoke "pytest"))))))
1836 ;; For the test suite.
1837 `(("python-lxml" ,python-lxml)
1838 ("python-pillow" ,python-pillow)
1839 ("python-pytest" ,python-pytest)))
1841 `(("python-et-xmlfile" ,python-et-xmlfile)
1842 ("python-jdcal" ,python-jdcal)))
1843 (home-page "https://openpyxl.readthedocs.io")
1844 (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
1845 (description "This Python library allows reading and writing to the Excel XLSX, XLSM,
1846 XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
1848 (properties `((python2-variant . ,(delay python2-openpyxl))))
1849 (license license:expat)))
1851 (define-public python2-openpyxl
1852 (let ((base (package-with-python2
1853 (strip-python2-variant python-openpyxl))))
1856 ;; This is the latest version that has python2 support
1861 (uri (pypi-uri "openpyxl" version))
1864 "1qzjj8nwj4dn0mhq1j64f136afiqqb81lvqiikipz3g1g0b80lqx"))))
1865 (arguments '(#:tests? #f))))) ; No test suite.
1867 (define-public python-eventlet
1869 (name "python-eventlet")
1874 (uri (pypi-uri "eventlet" version))
1877 "1hgz8jq19wlz8vwqj900ry8cjv578nz4scc91mlc8944yid6573c"))))
1878 (build-system python-build-system)
1880 `(("python-dnspython" ,python-dnspython)
1881 ("python-greenlet" ,python-greenlet)
1882 ("python-monotonic" ,python-monotonic)))
1884 ;; TODO: Requires unpackaged 'enum-compat'.
1886 (home-page "https://eventlet.net")
1887 (synopsis "Concurrent networking library for Python")
1889 "Eventlet is a concurrent networking library for Python that
1890 allows you to change how you run your code, not how you write it.
1891 It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
1892 Coroutines ensure that the developer uses a blocking style of programming
1893 that is similar to threading, but provide the benefits of non-blocking I/O.
1894 The event dispatch is implicit, which means you can easily use @code{Eventlet}
1895 from the Python interpreter, or as a small part of a larger application.")
1896 (license license:expat)))
1898 (define-public python-six
1905 (uri (pypi-uri "six" version))
1908 "02lw67hprv57hyg3cfy02y3ixjk3nzwc0dx3c4ynlvkfwkfdnsr3"))))
1909 (build-system python-build-system)
1912 (modify-phases %standard-phases
1915 (invoke "py.test" "-v"))))))
1917 `(("python-pytest" ,python-pytest-bootstrap)))
1918 (home-page "https://pypi.org/project/six/")
1919 (synopsis "Python 2 and 3 compatibility utilities")
1921 "Six is a Python 2 and 3 compatibility library. It provides utility
1922 functions for smoothing over the differences between the Python versions with
1923 the goal of writing Python code that is compatible on both Python versions.
1924 Six supports every Python version since 2.5. It is contained in only one
1925 Python file, so it can be easily copied into your project.")
1926 (license license:x11)))
1928 (define-public python2-six
1929 (package-with-python2 python-six))
1931 (define-public python-six-bootstrap
1933 (inherit python-six)
1934 (name "python-six-bootstrap")
1936 (arguments `(#:tests? #f))))
1938 (define-public python2-six-bootstrap
1939 (package-with-python2 python-six-bootstrap))
1941 (define-public python-schedule
1943 (name "python-schedule")
1948 (uri (pypi-uri "schedule" version))
1951 "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
1952 (build-system python-build-system)
1954 `(("python-pytest" ,python-pytest)
1955 ("python-mock" ,python-mock)))
1956 (home-page "https://github.com/dbader/schedule")
1957 (synopsis "Schedule periodic function calls in Python")
1959 "Schedule is an in-process scheduler for periodic jobs that uses the
1960 builder pattern for configuration. Schedule lets you run Python functions (or
1961 any other callable) periodically at pre-determined intervals using a simple,
1962 human-friendly syntax.")
1963 (license license:expat)))
1965 (define-public python2-schedule
1966 (package-with-python2 python-schedule))
1968 (define-public python-scour
1970 (name "python-scour")
1977 (url "https://github.com/scour-project/scour")
1979 (string-append "v" version))))
1980 (file-name (git-file-name name version))
1982 (base32 "0rgiypb9ig8x4rl3hfzpy7kwnx1q3064nvlrv4fk0dnp84girn0v"))))
1984 `(("python-six" ,python-six)))
1985 (build-system python-build-system)
1986 (home-page "https://github.com/scour-project/scour")
1987 (synopsis "Scour is an SVG optimizer/cleaner written in Python")
1988 (description "The goal of Scour is to output a file that renderes
1989 identically at a fraction of the size by removing a lot of redundant
1990 information created by most SVG editors. Optimization options are typically
1991 lossless but can be tweaked for more aggressive cleaning.")
1992 (license license:asl2.0)))
1994 (define-public python-mechanize
1996 (name "python-mechanize")
2001 (uri (pypi-uri "mechanize" version))
2004 "1z9kqcwb8gfq2l6i42z624kxpd8692a0c8gw2x5bbm7n848w2mb3"))))
2005 (build-system python-build-system)
2007 `(("python-html5lib" ,python-html5lib)))
2008 (home-page "https://github.com/python-mechanize/mechanize")
2010 "Stateful programmatic web browsing in Python")
2012 "Mechanize implements stateful programmatic web browsing in Python,
2013 after Andy Lester’s Perl module WWW::Mechanize.")
2014 (license license:bsd-3)))
2016 (define-public python2-mechanize
2017 (package-with-python2 python-mechanize))
2019 (define-public python-simpleaudio
2021 (name "python-simpleaudio")
2026 (uri (pypi-uri "simpleaudio" version))
2029 "07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739"))))
2030 (build-system python-build-system)
2034 `(("alsa-lib" ,alsa-lib)))
2036 "https://github.com/hamiltron/py-simple-audio")
2037 (synopsis "Simple, asynchronous audio playback for Python 3")
2039 "The @code{simplaudio} package provides cross-platform, dependency-free
2040 audio playback capability for Python 3 on OSX, Windows, and Linux.")
2041 (license license:expat))) ; MIT license
2043 (define-public python-simplejson
2045 (name "python-simplejson")
2050 (uri (pypi-uri "simplejson" version))
2053 "108yf3252fy4ndqab7h46raksxfhcn113bzy2yd8369vidrjnjrb"))))
2054 (build-system python-build-system)
2055 (home-page "http://simplejson.readthedocs.org/en/latest/")
2057 "Json library for Python")
2059 "JSON (JavaScript Object Notation) is a subset of JavaScript
2060 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
2063 Simplejson exposes an API familiar to users of the standard library marshal
2064 and pickle modules. It is the externally maintained version of the json
2065 library contained in Python 2.6, but maintains compatibility with Python 2.5
2066 and (currently) has significant performance advantages, even without using
2067 the optional C extension for speedups. Simplejson is also supported on
2069 (license license:x11)))
2071 (define-public python2-simplejson
2072 (package-with-python2 python-simplejson))
2075 (define-public python-pyicu
2077 (name "python-pyicu")
2082 (uri (pypi-uri "PyICU" version))
2085 "075bw66b3w0nw6mc5k32fwmrhyrmq3d7da3q2mw212qfmm0pgjn0"))))
2086 (build-system python-build-system)
2088 `(("icu4c" ,icu4c)))
2090 `(("python-pytest" ,python-pytest)
2091 ("python-six" ,python-six)))
2092 (home-page "https://github.com/ovalhub/pyicu")
2093 (synopsis "Python extension wrapping the ICU C++ API")
2095 "PyICU is a python extension wrapping the ICU C++ API.")
2096 (license license:x11)))
2098 (define-public python2-pyicu
2099 (package-with-python2 python-pyicu))
2101 (define-public python-dogtail
2103 (name "python-dogtail")
2109 "https://gitlab.com/dogtail/dogtail/-/raw/released/"
2110 "dogtail-" version ".tar.gz"))
2113 "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0"))))
2114 (build-system python-build-system)
2116 `(#:tests? #f ; TODO Launching dbus for the tests
2119 (modify-phases %standard-phases
2121 (lambda* (#:key tests? #:allow-other-keys)
2123 (system "Xvfb :1 &")
2124 (setenv "DISPLAY" ":1")
2125 (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/"))
2128 `(("python-pygobject" ,python-pygobject)
2129 ("python-pycairo" ,python-pycairo)
2130 ("python-pyatspi" ,python-pyatspi)))
2132 `(("python-nose" ,python-nose)
2134 ("xvfb" ,xorg-server)
2136 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2137 ("gobject-introspection" ,gobject-introspection)))
2138 (home-page "https://gitlab.com/dogtail/dogtail/")
2139 (synopsis "GUI test tool and automation framework written in Python")
2141 "Dogtail is a GUI test tool and automation framework written in Python.
2142 It uses Accessibility (a11y) technologies to communicate with desktop
2143 applications. dogtail scripts are written in Python and executed like any
2144 other Python program.")
2145 (license license:gpl2+)))
2147 (define-public python2-dogtail
2148 (package-with-python2 python-dogtail))
2150 (define-public python-empy
2152 (name "python-empy")
2156 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
2160 "1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq"))))
2161 (build-system python-build-system)
2163 `(#:tests? #f)) ; python2 only
2164 (home-page "http://www.alcyone.com/software/empy/")
2165 (synopsis "Templating system for Python")
2167 "EmPy is a system for embedding Python expressions and statements in
2168 template text; it takes an EmPy source file, processes it, and produces
2169 output. This is accomplished via expansions, which are special signals to the
2170 EmPy system and are set off by a special prefix (by default the at sign, @@).
2171 EmPy can expand arbitrary Python expressions and statements in this way, as
2172 well as a variety of special forms. Textual data not explicitly delimited in
2173 this way is sent unaffected to the output, allowing Python to be used in
2174 effect as a markup language. Also supported are callbacks via hooks,
2175 recording and playback via diversions, and dynamic, chainable filters. The
2176 system is highly configurable via command line options and embedded
2178 (license license:lgpl2.1+)))
2180 (define-public python2-empy
2181 (let ((base (package-with-python2 (strip-python2-variant python-empy))))
2182 (package/inherit base
2183 (arguments `(,@(package-arguments base)
2186 (define-public python2-element-tree
2188 (name "python2-element-tree")
2193 "http://effbot.org/media/downloads/elementtree-"
2194 version "-20050316.tar.gz"))
2197 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
2198 (build-system python-build-system)
2200 `(#:python ,python-2 ; seems to be part of Python 3
2201 #:tests? #f)) ; no 'test' sub-command
2202 (synopsis "Toolkit for XML processing in Python")
2204 "ElementTree is a Python library supporting lightweight XML processing.")
2205 (home-page "https://effbot.org/zone/element-index.htm")
2206 (license (license:x11-style
2207 "http://docs.python.org/2/license.html"
2208 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
2210 (define-public python2-pybugz
2212 (name "python2-pybugz")
2217 "http://bits.liquidx.net/projects/pybugz/pybugz-"
2221 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
2222 (patches (search-patches "pybugz-stty.patch"
2223 "pybugz-encode-error.patch"))))
2224 (build-system python-build-system)
2226 `(#:python ,python-2 ; SyntaxError with Python 3
2227 #:tests? #f)) ; no 'test' sub-command
2229 `(("element-tree" ,python2-element-tree)))
2230 (synopsis "Python and command-line interface to Bugzilla")
2232 "PyBugz is a Python library and command-line tool to query the Bugzilla
2233 bug tracking system. It is meant as an aid to speed up interaction with the
2235 (home-page "http://www.liquidx.net/pybugz/")
2236 (license license:gpl2)))
2238 (define-public python2-enum
2240 (name "python2-enum")
2244 (uri (pypi-uri "enum" version))
2247 "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl"))))
2248 (build-system python-build-system)
2250 `(#:python ,python-2))
2251 (home-page "https://pypi.org/project/enum/")
2252 (synopsis "Robust enumerated type support in Python")
2254 "This provides a module for robust enumerations in Python. It has
2255 been superseded by the Python standard library and is provided only for
2257 ;; Choice of either license.
2258 (license (list license:gpl3+ license:psfl))))
2260 (define-public python-enum34
2262 (name "python-enum34")
2267 (uri (pypi-uri "enum34" version))
2270 "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a"))))
2271 (build-system python-build-system)
2272 (home-page "https://pypi.org/project/enum34/")
2273 (synopsis "Backported Python 3.4 Enum")
2275 "Enum34 is the new Python stdlib enum module available in Python 3.4
2276 backported for previous versions of Python from 2.4 to 3.3.")
2277 (license license:bsd-3)))
2279 (define-public python2-enum34
2280 (package-with-python2 python-enum34))
2282 (define-public python-parse-type
2284 (name "python-parse-type")
2289 (uri (pypi-uri "parse_type" version))
2292 "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"))))
2293 (build-system python-build-system)
2295 `(("python-six" ,python-six)
2296 ("python-parse" ,python-parse)))
2298 `(("python-pytest" ,python-pytest)
2299 ("python-pytest-runner" ,python-pytest-runner)))
2300 (home-page "https://github.com/jenisys/parse_type")
2301 (synopsis "Extended parse module")
2303 "Parse_type extends the python parse module.")
2305 `((python2-variant . ,(delay python2-parse-type))))
2306 (license license:bsd-3)))
2308 (define-public python2-parse-type
2309 (let ((base (package-with-python2
2310 (strip-python2-variant python-parse-type))))
2311 (package/inherit base
2313 `(("python2-enum34" ,python2-enum34)
2314 ,@(package-propagated-inputs base))))))
2316 (define-public python-parse
2318 (name "python-parse")
2323 (uri (pypi-uri "parse" version))
2326 "19063x4xdjpaf7rfxai6jpgm2k4yvkq7wha8aa8cagbjsqr60rli"))))
2327 (build-system python-build-system)
2330 (modify-phases %standard-phases
2332 (lambda _ (invoke "python" "test_parse.py"))))))
2333 (home-page "https://github.com/r1chardj0n3s/parse")
2334 (synopsis "Parse strings")
2336 "Parse strings using a specification based on the Python @code{format()}
2338 (license license:x11)))
2340 (define-public python-polib
2342 (name "python-polib")
2346 (uri (pypi-uri "polib" version))
2349 "0aikb8gcarhifn3sadrbbs5czagih9hjv250gsrgy9v1d49pvn7s"))))
2350 (build-system python-build-system)
2351 (home-page "https://bitbucket.org/izi/polib/wiki/Home")
2352 (synopsis "Manipulate, create and modify gettext files")
2353 (description "Polib can manipulate any gettext format (po, pot and mo)
2354 files. It can be used to create po files from scratch or to modify
2356 (license license:expat)))
2358 (define-public python2-polib
2359 (let ((base (package-with-python2 (strip-python2-variant python-polib))))
2360 (package/inherit base
2361 (arguments `(,@(package-arguments base)
2362 ;; Tests don't work with python2.
2365 (define-public python-poyo
2367 (name "python-poyo")
2372 (uri (pypi-uri "poyo" version))
2375 "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
2376 (build-system python-build-system)
2377 (home-page "https://github.com/hackebrot/poyo")
2378 (synopsis "Lightweight YAML Parser for Python")
2380 "This package provides a lightweight YAML Parser for Python. It supports
2381 only a chosen subset of the YAML format that is required to parse cookiecutter
2382 user configuration files. It does not have support for serializing into YAML
2383 and is not compatible with JSON.")
2384 (license license:expat)))
2386 (define-public scons
2393 (url "https://github.com/SCons/scons")
2395 (file-name (git-file-name name version))
2398 "1xy8jrwz87y589ihcld4hv7wn122sjbz914xn8h50ww77wbhk8hn"))))
2399 (build-system python-build-system)
2401 `(#:use-setuptools? #f ; still relies on distutils
2402 #:tests? #f ; no 'python setup.py test' command
2404 (modify-phases %standard-phases
2405 (add-before 'build 'bootstrap
2407 (substitute* "src/engine/SCons/compat/__init__.py"
2408 (("sys.modules\\[new\\] = imp.load_module\\(old, \\*imp.find_module\\(old\\)\\)")
2409 "sys.modules[new] = __import__(old)"))
2410 (substitute* "src/engine/SCons/Platform/__init__.py"
2411 (("mod = imp.load_module\\(full_name, file, path, desc\\)")
2412 "mod = __import__(full_name)"))
2413 (invoke "python" "bootstrap.py" "build/scons" "DEVELOPER=guix")
2414 (chdir "build/scons")
2416 (home-page "https://scons.org/")
2417 (synopsis "Software construction tool written in Python")
2419 "SCons is a software construction tool. Think of SCons as an improved,
2420 cross-platform substitute for the classic Make utility with integrated
2421 functionality similar to autoconf/automake and compiler caches such as ccache.
2422 In short, SCons is an easier, more reliable and faster way to build
2424 (license license:x11)))
2426 (define-public scons-python2
2428 (inherit (package-with-python2 scons))
2429 (name "scons-python2")))
2431 (define-public python-extension-helpers
2433 (name "python-extension-helpers")
2438 (uri (pypi-uri "extension-helpers" version))
2440 (base32 "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"))))
2441 (build-system python-build-system)
2443 `(("coverage" ,python-coverage)
2444 ("pytest" ,python-pytest-astropy)
2445 ("pytest-cov" ,python-pytest-cov)
2446 ("setuptools-scm" ,python-setuptools-scm)))
2447 (home-page "https://github.com/astropy/astropy-helpers")
2449 "Utilities for building and installing packages in the Astropy ecosystem")
2451 "The extension-helpers package includes many build, installation, and
2452 documentation-related tools used by the Astropy project.")
2453 (license license:bsd-3)))
2455 (define-public python-extras
2457 (name "python-extras")
2462 (uri (pypi-uri "extras" version))
2465 "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
2466 (build-system python-build-system)
2468 ;; FIXME: Circular dependency on testtools.
2470 (home-page "https://github.com/testing-cabal/extras")
2471 (synopsis "Useful extensions to the Python standard library")
2473 "Extras is a set of extensions to the Python standard library.")
2474 (license license:expat)))
2476 (define-public python2-extras
2477 (package-with-python2 python-extras))
2479 (define-public python-mimeparse
2481 (name "python-mimeparse")
2486 (uri (pypi-uri "python-mimeparse" version))
2489 "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
2490 (build-system python-build-system)
2493 (modify-phases %standard-phases
2496 (invoke "./mimeparse_test.py"))))))
2498 "https://github.com/dbtsai/python-mimeparse")
2499 (synopsis "Python library for parsing MIME types")
2501 "Mimeparse provides basic functions for parsing MIME type names and
2502 matching them against a list of media-ranges.")
2503 (license license:expat)))
2505 (define-public python2-mimeparse
2506 (package-with-python2 python-mimeparse))
2508 (define-public python-miniboa
2510 (name "python-miniboa")
2515 (uri (pypi-uri "miniboa" version))
2518 "09jh3pn4rh7kh7jayanf8jzy6gp03791b5a193w6148cf3i6k9m3"))))
2519 (build-system python-build-system)
2520 (home-page "https://github.com/shmup/miniboa")
2521 (synopsis "Simple, single-threaded Telnet server")
2523 "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
2525 (license license:asl2.0)))
2527 (define-public python2-miniboa
2528 (package-with-python2 python-miniboa))
2530 (define-public python-pafy
2532 (name "python-pafy")
2537 (uri (pypi-uri "pafy" version))
2540 "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
2541 (build-system python-build-system)
2543 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
2545 ;; Youtube-dl is a python package which is imported in the file
2546 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
2547 `(("youtube-dl" ,youtube-dl)))
2548 (home-page "https://np1.github.io/pafy/")
2549 (synopsis "Retrieve YouTube content and metadata")
2551 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
2552 (license license:lgpl3+)))
2554 (define-public python2-funcsigs
2556 (name "python2-funcsigs")
2560 (uri (pypi-uri "funcsigs" version))
2563 "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"))))
2564 (build-system python-build-system)
2566 `(#:python ,python-2))
2568 `(("python2-unittest2" ,python2-unittest2)))
2569 (home-page "http://funcsigs.readthedocs.org")
2570 (synopsis "Python function signatures from PEP362")
2572 "Backport of @code{funcsigs} which was introduced in Python 3.3.")
2573 (license license:asl2.0)))
2575 (define-public python2-funcsigs-bootstrap
2577 (inherit python2-funcsigs)
2578 (name "python2-funcsigs-bootstrap")
2582 ,@(package-arguments python2-funcsigs)))))
2584 (define-public python-py
2591 (uri (pypi-uri "py" version))
2594 "1ajjazg3913n0sp3vjyva9c2qh5anx8ziryng935f89604a0h9sy"))))
2595 (build-system python-build-system)
2597 ;; FIXME: "ImportError: 'test' module incorrectly imported from
2598 ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
2599 ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
2600 ;; Is this module globally installed?"
2603 `(("python-setuptools-scm" ,python-setuptools-scm)))
2604 (home-page "https://github.com/pytest-dev/py")
2605 (synopsis "Python library for parsing, I/O, instrospection, and logging")
2607 "Py is a Python library for file name parsing, .ini file parsing, I/O,
2608 code introspection, and logging.")
2609 (license license:expat)))
2611 (define-public python-py-next
2618 (uri (pypi-uri "py" version))
2621 "0hpk0gzd4v1pcnq7zinwg5n219czi23qghcswykqskkbwly8i9lw"))))))
2623 (define-public python2-py
2624 (package-with-python2 python-py))
2626 ;; Recent versions of python-fixtures and python-testrepository need
2627 ;; python-pbr for packaging, which itself needs these two packages for
2629 ;; To fix this circular dependency, we use a build of python-pbr, based on the
2630 ;; same source, just without any test dependencies and with tests disabled.
2631 ;; python-pbr-minmal is then used to package python-fixtures and
2632 ;; python-testrepository.
2633 ;; Strictly speaking we currently could remove the test-requirements from the
2634 ;; normal python-pbr package (and save this package) since test are disabled
2635 ;; there anyway. But this may change in future.
2636 (define-public python-pbr-minimal
2638 (name "python-pbr-minimal")
2643 (uri (pypi-uri "pbr" version))
2646 "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p"))))
2647 (build-system python-build-system)
2650 (home-page "https://docs.openstack.org/pbr/latest/")
2651 (synopsis "Minimal build of python-pbr used for bootstrapping")
2653 "Used only for bootstrapping python2-pbr, you should not need this.")
2654 (license license:asl2.0)))
2656 (define-public python-pbr
2658 (inherit python-pbr-minimal)
2661 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2663 `(("git" ,git))) ;; pbr actually uses the "git" binary.
2665 `(("python-fixtures" ,python-fixtures-bootstrap)
2666 ;; discover, coverage, hacking, subunit
2667 ("python-mock" ,python-mock)
2668 ("python-six" ,python-six)
2669 ("python-sphinx" ,python-sphinx)
2670 ("python-testrepository" ,python-testrepository-bootstrap)
2671 ("python-testresources" ,python-testresources-bootstrap)
2672 ("python-testscenarios" ,python-testscenarios-bootstrap)
2673 ("python-testtools" ,python-testtools-bootstrap)
2674 ("python-virtualenv" ,python-virtualenv)))
2675 (synopsis "Enhance the default behavior of Python’s setuptools")
2677 "Python Build Reasonableness (PBR) is a library that injects some useful
2678 and sensible default behaviors into your setuptools run. It will set
2679 versions, process requirements files and generate AUTHORS and ChangeLog file
2680 from git information.
2683 (define-public python-pyrsistent
2685 (name "python-pyrsistent")
2687 (home-page "https://github.com/tobgu/pyrsistent")
2690 (uri (pypi-uri "pyrsistent" version))
2693 "1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
2694 (build-system python-build-system)
2696 '(#:phases (modify-phases %standard-phases
2697 ;; The package works fine with newer Pytest and Hypothesis, but
2698 ;; has pinned older versions to stay compatible with Python 2.
2699 (add-before 'check 'loosen-pytest-requirement
2701 (substitute* "setup.py"
2702 (("pytest<5") "pytest")
2703 (("hypothesis<5") "hypothesis"))
2706 `(("python-hypothesis" ,python-hypothesis)
2707 ("python-pytest" ,python-pytest)
2708 ("python-pytest-runner" ,python-pytest-runner)))
2710 `(("python-six" ,python-six)))
2711 (synopsis "Persistent data structures for Python")
2713 "Pyrsistent is a number of persistent collections (by some referred to as
2714 functional data structures). Persistent in the sense that they are immutable.
2716 All methods on a data structure that would normally mutate it instead return a
2717 new copy of the structure containing the requested updates. The original
2718 structure is left untouched.")
2719 (license license:expat)))
2721 (define-public python2-pyrsistent
2722 (package-with-python2 python-pyrsistent))
2724 (define-public python-exif-read
2726 (name "python-exif-read")
2730 (uri (pypi-uri "ExifRead" version))
2733 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
2734 (build-system python-build-system)
2735 (arguments `(#:tests? #f)) ; no tests
2736 (home-page "https://github.com/ianare/exif-py")
2737 (synopsis "Python library to extract EXIF data from image files")
2739 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
2741 (license license:bsd-3)))
2743 (define-public python2-exif-read
2744 (package-with-python2 python-exif-read))
2746 (define-public python-pyld
2748 (name "python-pyld")
2752 (uri (pypi-uri "PyLD" version))
2755 "1ywbdbsrkg533qh8xn9ifjh2mvam6v5msrjyqq73jfpvcp89qvff"))))
2756 (build-system python-build-system)
2757 (home-page "https://github.com/digitalbazaar/pyld")
2758 (synopsis "Python implementation of the JSON-LD specification")
2760 "PyLD is an implementation of the JSON-LD specification.")
2761 (license license:bsd-3)))
2763 (define-public python2-pyld
2764 (package-with-python2 python-pyld))
2766 (define-public python-cli-helpers
2768 (name "python-cli-helpers")
2772 ;; There's no source tarball on PyPI.
2775 (url "https://github.com/dbcli/cli_helpers")
2776 (commit (string-append "v" version))))
2777 (file-name (git-file-name name version))
2779 (base32 "1bg2iw9l5dip0kbs00hajdk2v18wvhssbnq8hdf71278qf0wks5l"))))
2780 (build-system python-build-system)
2782 `(("python-pytest" ,python-pytest)))
2784 `(("python-wcwidth" ,python-wcwidth)
2785 ("python-configobj" ,python-configobj)
2786 ("python-tabulate" ,python-tabulate)
2787 ("python-terminaltables" ,python-terminaltables)))
2788 (home-page "https://github.com/dbcli/cli_helpers")
2789 (synopsis "Helpers for building command-line apps")
2791 "CLI Helpers is a Python package that makes it easy to perform common
2792 tasks when building command-line apps. It's a helper library for command-line
2794 (license license:bsd-3)))
2796 (define-public python-click
2798 (name "python-click")
2803 (uri (pypi-uri "click" version))
2806 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
2807 (build-system python-build-system)
2810 (modify-phases %standard-phases
2811 (add-after 'unpack 'fix-paths
2812 (lambda* (#:key inputs #:allow-other-keys)
2813 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
2814 "cross-libc" "libc"))))
2815 (substitute* "src/click/_unicodefun.py"
2817 (string-append "'" glibc "/bin/locale'"))))
2821 (setenv "PYTHONPATH" (string-append "./src:" (getenv "PYTHONPATH")))
2822 (invoke "python" "-m" "pytest"))))))
2824 `(("python-pytest" ,python-pytest)))
2825 (home-page "https://palletsprojects.com/p/click/")
2826 (synopsis "Command line library for Python")
2828 "Click is a Python package for creating command line interfaces in a
2829 composable way with as little code as necessary. Its name stands for
2830 \"Command Line Interface Creation Kit\". It's highly configurable but comes
2831 with sensible defaults out of the box.")
2832 (license license:bsd-3)))
2834 (define-public python2-click
2835 (package-with-python2 python-click))
2837 (define-public python-click-5
2838 (package (inherit python-click)
2839 (name "python-click")
2844 (uri (pypi-uri "click" version))
2846 (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337"))))
2849 (define-public python-vcversioner
2851 (name "python-vcversioner")
2852 (version "2.16.0.0")
2856 (uri (pypi-uri "vcversioner" version))
2859 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
2860 (build-system python-build-system)
2861 (synopsis "Python library for version number discovery")
2862 (description "Vcversioner is a Python library that inspects tagging
2863 information in a variety of version control systems in order to discover
2865 (home-page "https://github.com/habnabit/vcversioner")
2866 (license license:isc)))
2868 (define-public python2-vcversioner
2869 (package-with-python2 python-vcversioner))
2871 (define-public python-jdcal
2873 (name "python-jdcal")
2878 (uri (pypi-uri "jdcal" version))
2881 "1ja6j2xq97bsl6rv09mhdx7n0xnrsfx0mj5xqza0mxghqmkm02pa"))))
2882 (build-system python-build-system)
2884 `(#:phases (modify-phases %standard-phases
2887 (invoke "pytest"))))))
2889 `(("python-pytest" ,python-pytest)))
2890 (home-page "https://github.com/phn/jdcal")
2891 (synopsis "Functions to convert between Julian dates Gregorian dates")
2892 (description "This Python library provides functions for converting
2893 between Julian dates and Gregorian dates.")
2894 (license license:bsd-2)))
2896 (define-public python2-jdcal
2897 (package-with-python2 python-jdcal))
2899 (define-public python-jsondiff
2901 (name "python-jsondiff")
2906 (uri (pypi-uri "jsondiff" version))
2909 "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l"))))
2910 (build-system python-build-system)
2912 `(("python-nose" ,python-nose)
2913 ("python-nose-random" ,python-nose-random)))
2915 "https://github.com/fzumstein/jsondiff")
2916 (synopsis "Compare JSON and JSON-like structures in Python")
2917 (description "@code{jsondiff} is a Python library which lets you
2918 compare, diff, and patch JSON and JSON-like structures in Python.")
2919 (license license:expat)))
2921 (define-public python-jsonschema
2923 (name "python-jsonschema")
2927 (uri (pypi-uri "jsonschema" version))
2930 "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
2931 (build-system python-build-system)
2934 (modify-phases %standard-phases
2936 (lambda* (#:key inputs outputs #:allow-other-keys)
2937 (add-installed-pythonpath inputs outputs)
2938 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
2939 (invoke "trial" "jsonschema"))))))
2941 `(("python-setuptools_scm" ,python-setuptools-scm)
2942 ("python-twisted" ,python-twisted)))
2944 `(("python-attrs" ,python-attrs)
2945 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
2946 ("python-pyrsistent" ,python-pyrsistent)
2947 ("python-six" ,python-six)))
2948 (home-page "https://github.com/Julian/jsonschema")
2949 (synopsis "Implementation of JSON Schema for Python")
2951 "Jsonschema is an implementation of JSON Schema for Python.")
2952 (license license:expat)
2953 (properties `((python2-variant . ,(delay python2-jsonschema))))))
2955 (define-public python2-jsonschema
2956 (let ((jsonschema (package-with-python2
2957 (strip-python2-variant python-jsonschema))))
2958 (package/inherit jsonschema
2960 `(("python2-functools32" ,python2-functools32)
2961 ,@(package-propagated-inputs jsonschema))))))
2963 (define-public python-schema
2965 (name "python-schema")
2970 (uri (pypi-uri "schema" version))
2973 "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
2974 (build-system python-build-system)
2976 `(("python-pytest" ,python-pytest)))
2977 (home-page "https://github.com/keleshev/schema")
2978 (synopsis "Simple data validation library")
2980 "@code{python-schema} is a library for validating Python data
2981 structures, such as those obtained from config-files, forms, external
2982 services or command-line parsing, converted from JSON/YAML (or
2983 something else) to Python data-types.")
2984 (license license:psfl)))
2986 (define-public python2-schema
2987 (package-with-python2 python-schema))
2989 (define-public python-schema-0.5
2990 (package (inherit python-schema)
2995 (uri (pypi-uri "schema" version))
2998 "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
3000 (define-public python2-schema-0.5
3001 (package-with-python2 python-schema-0.5))
3003 (define-public python-kitchen
3005 (name "python-kitchen")
3010 (uri (pypi-uri "kitchen" version))
3013 "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
3014 (build-system python-build-system)
3016 `(("python-chardet" ,python-chardet)))
3017 (home-page "https://github.com/fedora-infra/kitchen")
3018 (synopsis "Python API for snippets")
3019 (description "@code{kitchen} module provides a python API for all sorts of
3020 little useful snippets of code that everybody ends up writing for their projects
3021 but never seem big enough to build an independent release. Use kitchen and stop
3022 cutting and pasting that code over and over.")
3023 (license (list license:lgpl2.1+
3024 ;; subprocess.py, test_subprocess.py,
3025 ;; kitchen/pycompat25/defaultdict.py:
3028 (define-public python2-kitchen
3029 (package-with-python2 python-kitchen))
3031 (define-public python-unidecode
3033 (name "python-unidecode")
3037 (uri (pypi-uri "Unidecode" version))
3040 "1s6cp2lv4m0f00hjckjz8p6m7d3n3v16jvg353llf5ia1iqsnsib"))))
3041 (build-system python-build-system)
3042 (home-page "https://pypi.org/project/Unidecode/")
3043 (synopsis "ASCII transliterations of Unicode text")
3045 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
3046 useful when integrating with legacy code that doesn't support Unicode, or for
3047 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
3048 machine identifiers from human-readable Unicode strings that should still be
3049 somewhat intelligible.")
3050 (license license:gpl2+)))
3052 (define-public python2-unidecode
3053 (package-with-python2 python-unidecode))
3055 (define-public python-text-unidecode
3057 (name "python-text-unidecode")
3061 (uri (pypi-uri "text-unidecode" version))
3064 "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
3065 (build-system python-build-system)
3067 '(#:phases (modify-phases %standard-phases
3070 (setenv "PYTHONPATH"
3071 (string-append "./build/lib:"
3072 (getenv "PYTHONPATH")))
3073 (invoke "pytest" "-vv"))))))
3075 `(("python-pytest" ,python-pytest)))
3076 (home-page "https://github.com/kmike/text-unidecode/")
3077 (synopsis "Decode Unicode data")
3079 "@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
3080 Perl library. It can create ASCII representations of Unicode data. In general
3081 users should prefer the @code{python-unidecode} package which offers better
3082 memory usage and transliteration quality.")
3083 ;; The user can choose either license.
3084 (license (list license:clarified-artistic license:gpl2+))))
3086 (define-public python2-text-unidecode
3087 (package-with-python2 python-text-unidecode))
3089 (define-public python-pyjwt
3091 (name "python-pyjwt")
3096 (uri (pypi-uri "PyJWT" version))
3099 "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"))
3100 (modules '((guix build utils)))
3103 (for-each delete-file-recursively
3104 (find-files "." "\\.pyc$"))
3106 (build-system python-build-system)
3108 '(#:phases (modify-phases %standard-phases
3111 ;; Mimic upstream commit 3a20892442b34c7 to get
3112 ;; rid of dependency on pytest-runner < 5.0.
3113 ;; Remove substitution for PyJWT > 1.7.1.
3114 (substitute* "setup.py"
3115 ((".*pytest-runner.*")
3117 (invoke "pytest" "-vv"))))))
3119 `(("python-pytest" ,python-pytest)
3120 ("python-pytest-cov" ,python-pytest-cov)))
3121 (home-page "https://github.com/progrium/pyjwt")
3122 (synopsis "JSON Web Token implementation in Python")
3124 "PyJWT is a JSON Web Token implementation written in Python.")
3125 (license license:expat)))
3127 (define-public python2-pyjwt
3128 (package-with-python2 python-pyjwt))
3130 (define-public python-pykka
3132 (name "python-pykka")
3137 (uri (pypi-uri "Pykka" version))
3140 "049w3r0mdnnw7xv19jiq7rvls9k7xs73x05b4qs5d6z4vvmgyiz8"))))
3141 (build-system python-build-system)
3143 `(("python-mock" ,python-mock)
3144 ("python-nose" ,python-nose)
3145 ("python-gevent" ,python-gevent)
3146 ("python-eventlet" ,python-eventlet)))
3147 (home-page "https://www.pykka.org/")
3148 (synopsis "Pykka is a Python implementation of the actor model")
3150 "Pykka is a Python implementation of the actor model.
3151 The actor model introduces some simple rules to control the sharing
3152 of state and cooperation between execution units, which makes it
3153 easier to build concurrent applications.")
3154 (license license:asl2.0)))
3156 (define-public python-pymsgbox
3158 (name "python-pymsgbox")
3164 ;; LICENSE.txt is not present on pypi
3165 (url "https://github.com/asweigart/PyMsgBox")
3166 (commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
3167 (file-name (git-file-name name version))
3170 "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
3172 ;; Circular dependency to run tests:
3173 ;; Tests need pyautogui, which depends on pymsgbox.
3175 (build-system python-build-system)
3176 (home-page "https://github.com/asweigart/PyMsgBox")
3177 (synopsis "Python module for JavaScript-like message boxes")
3179 "PyMsgBox is a simple, cross-platform, pure Python module for
3180 JavaScript-like message boxes. Types of dialog boxes include:
3188 (license license:bsd-3)))
3190 (define-public python-pympler
3192 (name "python-pympler")
3193 (home-page "https://pythonhosted.org/Pympler/")
3197 (uri (pypi-uri "Pympler" version))
3200 "08mrpnb6cv2nvfncvr8a9a8bpwhnasa924anapnjvnaw5jcd4k7p"))))
3201 (build-system python-build-system)
3203 `(#:phases (modify-phases %standard-phases
3205 (add-after 'install 'check
3206 (lambda* (#:key inputs outputs #:allow-other-keys)
3207 (add-installed-pythonpath inputs outputs)
3208 (invoke "python" "setup.py" "test"))))))
3209 (synopsis "Measure, monitor and analyze memory behavior")
3211 "Pympler is a development tool to measure, monitor and analyze
3212 the memory behavior of Python objects in a running Python application.
3214 By pympling a Python application, detailed insight in the size and the
3215 lifetime of Python objects can be obtained. Undesirable or unexpected
3216 runtime behavior like memory bloat and other @samp{pymples} can easily
3219 A web profiling frontend exposes process statistics, garbage
3220 visualisation and class tracker statistics.")
3221 (license license:asl2.0)))
3223 (define-public python2-pympler
3224 (package-with-python2 python-pympler))
3226 (define-public python-itsdangerous
3228 (name "python-itsdangerous")
3233 (uri (pypi-uri "itsdangerous" version))
3236 "068zpbksq5q2z4dckh2k1zbcq43ay74ylqn77rni797j0wyh66rj"))))
3237 (build-system python-build-system)
3238 (home-page "https://palletsprojects.com/p/itsdangerous/")
3239 (synopsis "Python library for passing data to/from untrusted environments")
3241 "Itsdangerous provides various helpers to pass trusted data to untrusted
3242 environments and back.")
3243 (license license:bsd-3)))
3245 (define-public python2-itsdangerous
3246 (package-with-python2 python-itsdangerous))
3248 (define-public python-pyyaml
3250 (name "python-pyyaml")
3255 (uri (pypi-uri "PyYAML" version))
3258 "0pb4zvkfxfijkpgd1b86xjsqql97ssf1knbd1v53wkg1qm9cgsmq"))))
3259 (build-system python-build-system)
3261 `(("libyaml" ,libyaml)))
3262 (home-page "https://pyyaml.org")
3263 (synopsis "YAML parser and emitter for Python")
3265 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
3266 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
3267 API, and sensible error messages. PyYAML supports standard YAML tags and
3268 provides Python-specific tags that represent an arbitrary Python object.")
3269 (license license:expat)))
3271 (define-public python2-pyyaml
3272 (package-with-python2 python-pyyaml))
3274 (define-public python-vine
3276 (name "python-vine")
3281 (uri (pypi-uri "vine" version))
3284 "0wkskb2hb494v9gixqnf4bl972p4ibcmxdykzpwjlfa5picns4aj"))))
3285 (build-system python-build-system)
3287 `(("python-pytest" ,python-pytest)
3288 ("python-case" ,python-case)))
3289 (home-page "https://github.com/celery/vine")
3290 (synopsis "Promises for Python")
3292 "@code{vine} provides a special implementation of promises in that it can
3293 be used both for \"promise of a value\" and lazy evaluation. The biggest
3294 upside for this is that everything in a promise can also be a promise,
3295 e.g. filters, callbacks and errbacks can all be promises.")
3296 (license license:bsd-3)))
3298 (define-public python-virtualenv
3300 (name "python-virtualenv")
3305 (uri (pypi-uri "virtualenv" version))
3308 "1rd6wmymsgv0cdsn50jwybcvbbslzym3mzffcjbl42l8br9cgap0"))))
3309 (build-system python-build-system)
3311 `(("python-mock" ,python-mock)
3312 ("python-pytest" ,python-pytest)
3313 ;; NOTE: guix lint remarks that "python-setuptools should probably not
3314 ;; be an input at all". However, removing the input makes the build error:
3315 ;; File "setup.py", line 4, in <module>
3316 ;; raise RuntimeError("setuptools >= 41 required to build")
3317 ("python-setuptools" ,python-setuptools)
3318 ("python-setuptools-scm" ,python-setuptools-scm)))
3320 `(("python-appdirs" ,python-appdirs)
3321 ("python-distlib" ,python-distlib/next)
3322 ("python-filelock" ,python-filelock)
3323 ("python-six" ,python-six)
3324 ("python-importlib-metadata" ,python-importlib-metadata)))
3325 (home-page "https://virtualenv.pypa.io/")
3326 (synopsis "Virtual Python environment builder")
3328 "Virtualenv is a tool to create isolated Python environments.")
3329 (license license:expat)))
3331 (define-public python-markupsafe
3333 (name "python-markupsafe")
3338 (uri (pypi-uri "MarkupSafe" version))
3341 "0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
3342 (build-system python-build-system)
3344 `(#:modules ((ice-9 ftw)
3348 (guix build python-build-system))
3349 #:phases (modify-phases %standard-phases
3352 (let ((cwd (getcwd))
3353 (libdir (find (cut string-prefix? "lib." <>)
3354 (scandir "build"))))
3355 (setenv "PYTHONPATH"
3356 (string-append cwd "/build/" libdir ":"
3357 (getenv "PYTHONPATH")))
3358 (invoke "pytest" "-vv")))))))
3360 `(("python-pytest" ,python-pytest)))
3361 (home-page "https://github.com/mitsuhiko/markupsafe")
3362 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
3364 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
3366 (license license:bsd-3)))
3368 (define-public python2-markupsafe
3369 (package-with-python2 python-markupsafe))
3371 (define-public python-jinja2
3373 (name "python-jinja2")
3378 (uri (pypi-uri "Jinja2" version))
3381 "1c1v3djnr0ymp5xpy1h3h60abcaqxdlm4wsqmls9rxby88av5al9"))))
3382 (build-system python-build-system)
3384 '(#:phases (modify-phases %standard-phases
3386 (lambda* (#:key tests? #:allow-other-keys)
3389 (setenv "PYTHONPATH"
3390 (string-append "./build/lib:"
3391 (getenv "PYTHONPATH")))
3392 (invoke "pytest" "-vv"))
3393 (format #t "test suite not run~%"))
3396 `(("python-pytest" ,python-pytest)))
3398 `(("python-markupsafe" ,python-markupsafe)))
3399 (home-page "http://jinja.pocoo.org/")
3400 (synopsis "Python template engine")
3402 "Jinja2 is a small but fast and easy to use stand-alone template engine
3403 written in pure Python.")
3404 (license license:bsd-3)))
3406 (define-public python2-jinja2
3407 (package-with-python2 python-jinja2))
3409 (define-public python-jinja2-time
3411 (name "python-jinja2-time")
3416 (uri (pypi-uri "jinja2-time" version))
3419 "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
3420 (build-system python-build-system)
3422 `(("python-arrow" ,python-arrow)
3423 ("python-jinja2" ,python-jinja2)))
3425 "https://github.com/hackebrot/jinja2-time")
3426 (synopsis "Jinja2 Extension for Dates and Times")
3428 "This package provides an extension for the template engine Jinja2. It
3429 adds a 'now' tag providing a convenient access to the arrow.now() API from
3430 templates. A format string can be provided to control the output.")
3431 (license license:expat)))
3433 (define-public python-pystache
3435 (name "python-pystache")
3439 (uri (pypi-uri "pystache" version))
3442 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
3443 (build-system python-build-system)
3445 '(#:tests? #f)) ; FIXME: Python 3 tests are failing.
3446 (home-page "http://defunkt.io/pystache/")
3447 (synopsis "Python logic-less template engine")
3449 "Pystache is a Python implementation of the framework agnostic,
3450 logic-free templating system Mustache.")
3451 (license license:expat)
3452 (properties `((python2-variant . ,(delay python2-pystache))))))
3454 (define-public python2-pystache
3455 (let ((base (package-with-python2
3456 (strip-python2-variant python-pystache))))
3457 (package/inherit base
3459 `(#:python ,python-2
3461 (modify-phases %standard-phases
3464 (invoke "python" "test_pystache.py")))))))))
3466 (define-public python-joblib
3468 (name "python-joblib")
3472 (uri (pypi-uri "joblib" version))
3475 "1j464w137w6s367gl697j1l63g52akydrxgv4czlck36ynjfwc06"))))
3476 (build-system python-build-system)
3479 (modify-phases %standard-phases
3481 (lambda _ (invoke "pytest" "-v" "joblib"))))))
3483 `(("python-pytest" ,python-pytest)))
3484 (home-page "https://joblib.readthedocs.io/")
3485 (synopsis "Using Python functions as pipeline jobs")
3487 "Joblib is a set of tools to provide lightweight pipelining in Python.
3488 In particular, joblib offers: transparent disk-caching of the output values
3489 and lazy re-evaluation (memoize pattern), easy simple parallel computing
3490 logging and tracing of the execution.")
3491 (license license:bsd-3)))
3493 (define-public python2-joblib
3494 (package-with-python2 python-joblib))
3496 (define-public python-daemon
3498 (name "python-daemon")
3503 (uri (pypi-uri "python-daemon" version))
3506 "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg"))))
3507 (build-system python-build-system)
3510 (modify-phases %standard-phases
3511 (add-before 'check 'disable-tests
3513 ;; FIXME: Determine why test fails
3514 (substitute* "test/test_daemon.py"
3515 (("test_detaches_process_context")
3516 "skip_test_detaches_process_context"))
3519 `(("python-lockfile" ,python-lockfile)))
3521 `(("python-unittest2" ,python-unittest2)
3522 ("python-testtools" ,python-testtools)
3523 ("python-testscenarios" ,python-testscenarios)
3524 ("python-mock" ,python-mock)
3525 ("python-docutils" ,python-docutils)))
3526 (home-page "https://pagure.io/python-daemon/")
3527 (synopsis "Python library for making a Unix daemon process")
3528 (description "Python-daemon is a library that assists a Python program to
3529 turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
3531 This library provides a @code{DaemonContext} class that manages the following
3532 important tasks for becoming a daemon process:
3534 @item Detach the process into its own process group.
3535 @item Set process environment appropriate for running inside a chroot.
3536 @item Renounce suid and sgid privileges.
3537 @item Close all open file descriptors.
3538 @item Change the working directory, uid, gid, and umask.
3539 @item Set appropriate signal handlers.
3540 @item Open new file descriptors for stdin, stdout, and stderr.
3541 @item Manage a specified PID lock file.
3542 @item Register cleanup functions for at-exit processing.
3544 ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
3545 (license (list license:asl2.0 license:gpl3+))))
3547 (define-public python-anytree
3549 (name "python-anytree")
3553 (uri (pypi-uri "anytree" version))
3556 "1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
3557 (build-system python-build-system)
3559 `(("python-six" ,python-six)))
3562 ("graphviz" ,graphviz) ;for 'dot'
3563 ("python-nose" ,python-nose)))
3564 (home-page "https://github.com/c0fec0de/anytree")
3565 (synopsis "Lightweight tree data library")
3567 "@code{anytree} is a simple, lightweight, and extensible tree data
3568 structure for Python.")
3569 (license license:asl2.0)))
3571 (define-public python-docutils
3573 (name "python-docutils")
3578 (uri (pypi-uri "docutils" version))
3581 "1z3qliszqca9m719q3qhdkh0ghh90g500avzdgi7pl77x5h3mpn2"))))
3582 (build-system python-build-system)
3584 '(#:phases (modify-phases %standard-phases
3586 (lambda* (#:key tests? #:allow-other-keys)
3588 (invoke "python" "test/alltests.py")
3589 (format #t "test suite not run~%"))
3591 (home-page "http://docutils.sourceforge.net/")
3592 (synopsis "Python Documentation Utilities")
3594 "Docutils is a modular system for processing documentation into useful
3595 formats, such as HTML, XML, and LaTeX. It uses @dfn{reStructuredText}, an
3596 easy to use markup language, for input.
3598 This package provides tools for converting @file{.rst} files to other formats
3599 via commands such as @command{rst2man}, as well as supporting Python code.")
3600 ;; Most of the source code is public domain, but some source files are
3601 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
3602 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
3604 (define-public python2-docutils
3605 (package-with-python2 python-docutils))
3607 ;; python2-sphinx fails its test suite with newer versions.
3608 (define-public python2-docutils-0.14
3610 (inherit python2-docutils)
3614 (uri (pypi-uri "docutils" version))
3617 "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"))))))
3619 (define-public python-restructuredtext-lint
3621 (name "python-restructuredtext-lint")
3626 (uri (pypi-uri "restructuredtext-lint" version))
3629 "026rdy5h82ng4vqxk8fnprii9d6qxf7hkygiv0a8afjvdlsxmcwp"))))
3630 (build-system python-build-system)
3633 (modify-phases %standard-phases
3635 (add-after 'install 'check
3636 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3638 (add-installed-pythonpath inputs outputs)
3639 (invoke "nosetests" "-v"))
3642 `(("python-docutils" ,python-docutils)))
3644 `(("python-nose" ,python-nose)))
3645 (home-page "https://github.com/twolfson/restructuredtext-lint")
3646 (synopsis "reStructuredText linter")
3647 (description "This package provides a linter for the reStructuredText
3649 (license license:unlicense)))
3651 (define-public python-doc8
3653 (name "python-doc8")
3658 (uri (pypi-uri "doc8" version))
3661 "0hw5w8mpgsp51qg8nnq28p7y1jiksvz7a0axnn5bkgss3af9zy1d"))))
3662 (build-system python-build-system)
3665 (modify-phases %standard-phases
3667 (add-after 'install 'check
3668 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3670 (add-installed-pythonpath inputs outputs)
3671 (invoke "pytest" "-v"))
3674 `(("python-chardet" ,python-chardet)
3675 ("python-docutils" ,python-docutils)
3676 ("python-restructuredtext-lint" ,python-restructuredtext-lint)
3677 ("python-six" ,python-six)
3678 ("python-stevedore" ,python-stevedore)))
3680 `(("python-testtools" ,python-testtools)
3681 ("python-pytest" ,python-pytest)))
3682 (home-page "https://launchpad.net/doc8")
3684 "Style checker for Sphinx (or other) RST documentation")
3686 "Doc8 is an opinionated style checker for reStructured Text and plain
3687 text styles of documentation.")
3688 (license license:asl2.0)))
3690 (define-public python-pygments
3692 (name "python-pygments")
3697 (uri (pypi-uri "Pygments" version))
3700 "05mps9r966r3dpqw6zrs1nlwjdf5y4960hl9m7abwb3qyfnarwyc"))))
3701 (replacement python-pygments/fixed)
3702 (build-system python-build-system)
3704 ;; FIXME: Tests require sphinx, which depends on this.
3706 (home-page "https://pygments.org/")
3707 (synopsis "Syntax highlighting")
3709 "Pygments is a syntax highlighting package written in Python.")
3710 (license license:bsd-2)
3711 (properties `((python2-variant . ,(delay python2-pygments))))))
3713 (define python-pygments/fixed
3714 (package/inherit python-pygments
3719 (uri (pypi-uri "Pygments" version))
3722 "0dy35ry5qa8dpklk4fkj9kfpw2qb4mh5ha9866kw30wf96dx0jfz"))))))
3724 ;; Pygments 2.6 and later does not support Python 2.
3725 (define-public python2-pygments
3726 (let ((base (package-with-python2 (strip-python2-variant python-pygments))))
3732 (uri (pypi-uri "Pygments" version))
3735 "1zmhnswy0wxfn0xprs9aqsvx2c3kmzfn2wx14q8cv3vpkxdamj4q")))))))
3737 (define-public python-bump2version
3739 (name "python-bump2version")
3744 (uri (pypi-uri "bump2version" version))
3746 (base32 "1rinm4gv1fyh7xjv3v6r1p3zh5kl4ry2qifz5f7frx31mnzv4b3n"))))
3747 (build-system python-build-system)
3749 ;; XXX: Tests fail with "bumpversion: error: the following arguments are
3750 ;; required: --new-version".
3752 (home-page "https://github.com/c4urself/bump2version")
3753 (synopsis "Version-bump your software with a single command!")
3755 "This package provides a small command line tool to simplify releasing
3756 software by updating all version strings in your source code by the correct
3757 increment. It also creates commits and tags.")
3758 (license license:expat)))
3760 (define-public python-bumpversion
3762 (name "python-bumpversion")
3767 (uri (pypi-uri "bumpversion" version))
3770 "0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37"))))
3771 (build-system python-build-system)
3772 (home-page "https://github.com/peritus/bumpversion")
3773 (synopsis "Tool to bump software version")
3774 (description "This tool provides a command-line interface (CLI) to bump a
3775 software version simply.")
3776 (license license:expat)))
3778 (define-public python-deprecated
3780 (name "python-deprecated")
3786 (url "https://github.com/tantale/deprecated")
3787 (commit (string-append "v" version))))
3788 (file-name (git-file-name name version))
3791 "14909glxxwwc4b9qpz2b9jdriwzi5n65ichw85xqppap5f79wcwz"))))
3792 (build-system python-build-system)
3794 `(#:phases (modify-phases %standard-phases
3797 (invoke "pytest"))))))
3799 `(("python-wrapt" ,python-wrapt)))
3801 `(("python-bumpversion" ,python-bumpversion)
3802 ("python-pytest" ,python-pytest)
3803 ("python-pytest-cov" ,python-pytest-cov)
3804 ("python-sphinx" ,python-sphinx)
3805 ("python-tox" ,python-tox)))
3806 (home-page "https://github.com/tantale/deprecated")
3807 (synopsis "Python decorator to deprecate classes, functions or methods")
3808 (description "The @code{deprecated} decorator provides a convenient way to deprecate
3809 to deprecate classes, functions or methods.")
3810 (license license:expat)))
3812 (define-public python-pygithub
3814 (name "python-pygithub")
3817 ;; We fetch from the Git repo because there are no tests in the PyPI
3822 (url "https://github.com/PyGithub/PyGithub")
3823 (commit (string-append "v" version))))
3824 (file-name (git-file-name name version))
3826 (base32 "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq"))))
3827 (build-system python-build-system)
3830 (modify-phases %standard-phases
3832 (lambda* (#:key tests? #:allow-other-keys)
3837 `(("python-cryptography" ,python-cryptography)
3838 ("python-deprecated" ,python-deprecated)
3839 ("python-pyjwt" ,python-pyjwt)
3840 ("python-requests" ,python-requests)))
3842 `(("python-httpretty" ,python-httpretty)
3843 ("python-pytest" ,python-pytest)))
3844 (home-page "https://pygithub.readthedocs.io/en/latest/")
3845 (synopsis "Python library for the GitHub API")
3846 (description "This library allows managing GitHub resources such as
3847 repositories, user profiles, and organizations in your Python applications,
3848 using version 3 of the GitHub application programming interface (API).")
3849 (license license:lgpl3+)))
3851 (define-public python-rellu
3853 (name "python-rellu")
3858 (uri (pypi-uri "rellu" version))
3861 "1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x"))))
3862 (build-system python-build-system)
3864 `(("python-invoke" ,python-invoke)
3865 ("python-pygithub" ,python-pygithub)))
3866 (home-page "https://github.com/robotframework/rellu")
3867 (synopsis "Utilities to create PyPI releases")
3868 (description "This collection of utilities contains tooling and templates
3869 to assist in creating releases on GitHub and publishing them on PyPI. It is
3870 designed to be used by Robot Framework and tools and libraries in its
3871 ecosystem, but can naturally be used also by other projects.")
3872 (license license:asl2.0)))
3874 (define-public python-robotframework
3876 (name "python-robotframework")
3878 ;; There are no tests in the PyPI archive.
3883 (url "https://github.com/robotframework/robotframework")
3884 (commit (string-append "v" version))))
3885 (file-name (git-file-name name version))
3887 (base32 "0if0h3myb9m3hgmn1phrhq8pfp89kfqsaq32vmfdjkyjdj7y59ds"))
3888 (patches (search-patches
3889 "python-robotframework-source-date-epoch.patch"))))
3890 (build-system python-build-system)
3892 `(#:phases (modify-phases %standard-phases
3893 (add-before 'build 'build-and-install-doc
3894 (lambda* (#:key outputs #:allow-other-keys)
3895 (let* ((doc-output (assoc-ref outputs "doc"))
3896 (doc (string-append doc-output "/share/"
3897 ,name "-" ,version "/")))
3898 (invoke "invoke" "library-docs" "all")
3900 (copy-recursively "doc/libraries"
3901 (string-append doc "/libraries"))
3904 (lambda* (#:key inputs #:allow-other-keys)
3905 ;; Some tests require timezone data. Otherwise, they
3906 ;; look up /etc/localtime, which doesn't exist, and fail
3909 ;; OverflowError: mktime argument out of range
3911 (string-append (assoc-ref inputs "tzdata")
3913 (setenv "TZ" "Europe/Paris")
3915 (invoke "python" "utest/run.py"))))))
3917 `(("python-invoke" ,python-invoke)
3918 ("python-rellu" ,python-rellu)
3919 ("python:tk" ,python "tk") ;used when building the HTML doc
3920 ("tzdata" ,tzdata-for-tests)))
3921 (outputs '("out" "doc"))
3922 (home-page "https://robotframework.org")
3923 (synopsis "Generic automation framework")
3924 (description "Robot Framework is a generic automation framework for
3925 acceptance testing, acceptance test driven development (ATDD), and robotic
3926 process automation (RPA).")
3927 (license license:asl2.0)))
3929 (define-public python-robotframework-lint
3930 ;; There is no properly tagged release; the commit below seems to correspond
3931 ;; to the 0.9 stable release available from PyPI. The tests are not
3932 ;; included in the PyPI archive, so we fetch the sources from the upstream
3934 (let ((commit "b0619ac58a8b1be125f9c98856a664594614570f")
3937 (name "python-robotframework-lint")
3938 (version (git-version "1.1" ;version taken from 'rflint/version.py'
3944 (url "https://github.com/boakley/robotframework-lint")
3946 (file-name (git-file-name name version))
3949 "180npmvzqync25b2scs878gv8q4y17dsinxyjcc10bw22msfap6b"))))
3950 (build-system python-build-system)
3953 (modify-phases %standard-phases
3956 (invoke "python" "-m" "robot" "-A"
3957 "tests/conf/default.args" "tests"))))))
3959 `(("python-robotframework" ,python-robotframework)))
3960 (home-page "https://github.com/boakley/robotframework-lint/")
3961 (synopsis "Static analysis tool (linter) for Robot Framework")
3962 (description "This package provides the @code{rflint} command-line
3963 utility, a static analysis tool (linter) for Robot Framework source files.")
3964 (license license:asl2.0))))
3966 (define-public python-robotframework-sshlibrary
3968 (name "python-robotframework-sshlibrary")
3970 ;; There are no tests in the PyPI archive.
3975 (url "https://github.com/robotframework/SSHLibrary")
3976 (commit (string-append "v" version))))
3977 (file-name (git-file-name name version))
3980 "1mk6dz2jqqndbx4yji09012q6rmadnqdywi7czvj62b0s07dr3r2"))))
3981 (build-system python-build-system)
3984 (modify-phases %standard-phases
3985 (add-before 'build 'build-and-install-doc
3986 (lambda* (#:key outputs #:allow-other-keys)
3987 (let* ((doc-output (assoc-ref outputs "doc"))
3988 (doc (string-append doc-output "/share/"
3989 ,name "-" ,version "/")))
3990 (invoke "chmod" "-R" "+w" "docs")
3991 (invoke "invoke" "kw-docs" "project-docs")
3993 (for-each delete-file (find-files "docs" "\\.rst"))
3994 (copy-recursively "docs" doc)
3998 ;; Some tests require an SSH server; we remove them.
3999 (delete-file "utest/test_client_api.py")
4000 (delete-file "utest/test_scp.py")
4001 (invoke "python" "utest/run.py"))))))
4003 `(("python-robotframework" ,python-robotframework)
4004 ("python-paramiko" ,python-paramiko)
4005 ("python-scp" ,python-scp)))
4007 `(("openssh" ,openssh)
4009 ;; To generate the documentation
4010 ("python-docutils" ,python-docutils)
4011 ("python-invoke" ,python-invoke)
4012 ("python-pygments" ,python-pygments)
4013 ("python-rellu" ,python-rellu)))
4014 (outputs '("out" "doc"))
4015 (home-page "https://github.com/robotframework/SSHLibrary")
4016 (synopsis "Robot Framework library for SSH and SFTP")
4017 (description "SSHLibrary is a Robot Framework library providing support
4018 for SSH and SFTP. It has the following main usages:
4020 @item Executing commands on the remote machine, either blocking or non-blocking.
4021 @item Writing and reading in an interactive shell.
4022 @item Transferring files and directories over SFTP.
4023 @item Ensuring that files and directories exist on the remote machine.
4025 (license license:asl2.0)))
4027 (define-public python-rstr
4029 (name "python-rstr")
4034 (uri (pypi-uri "rstr" version))
4037 "197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx"))))
4038 (build-system python-build-system)
4039 (home-page "https://github.com/leapfrogonline/rstr")
4040 (synopsis "Generate random strings in Python")
4041 (description "This package provides a python module for generating
4042 random strings of various types. It could be useful for fuzz testing,
4043 generating dummy data, or other applications. It has no dependencies
4044 outside the standard library.")
4045 (license license:bsd-3)))
4047 (define-public python-scp
4054 (uri (pypi-uri "scp" version))
4056 (base32 "1m2v09m407p097cy3xy5rxicqfzrqjwf8v5rd4qhfqkk7lllimwb"))))
4057 (build-system python-build-system)
4059 '(#:tests? #f)) ;tests require an SSH server
4061 `(("python-paramiko" ,python-paramiko)))
4062 (home-page "https://github.com/jbardin/scp.py")
4063 (synopsis "SCP protocol module for Python and Paramiko")
4064 (description "The scp module extends the Paramiko library to send and
4065 receive files via the SCP1 protocol, as implemented by the OpenSSH
4066 @command{scp} program.")
4067 (license license:gpl2+)))
4069 (define-public python-rst.linker
4071 (name "python-rst.linker")
4076 (uri (pypi-uri "rst.linker" version))
4078 (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
4079 (build-system python-build-system)
4081 `(("python-dateutil" ,python-dateutil)
4082 ("python-six" ,python-six)))
4084 `(("python-setuptools-scm" ,python-setuptools-scm)))
4085 ;; Test would require path.py, which would introduce a cyclic dependence.
4086 (arguments `(#:tests? #f))
4087 ;; Note: As of version 1.7 the documentation is not worth building.
4088 (home-page "https://github.com/jaraco/rst.linker")
4089 (synopsis "Sphinx plugin to add links and timestamps")
4090 (description "rst.linker automatically replaces text by a
4091 reStructuredText external reference or timestamps. It's primary purpose is to
4092 augment the changelog, but it can be used for other documents, too.")
4093 (license license:expat)))
4095 (define-public python2-rst.linker
4096 (package-with-python2 python-rst.linker))
4098 (define-public python-sshpubkeys
4100 (name "python-sshpubkeys")
4102 (home-page "https://github.com/ojarva/python-sshpubkeys")
4107 (commit (string-append "v" version))))
4108 (file-name (git-file-name name version))
4111 "1h4gwmcfn84kkqh83km1vfz8sc5kr2g4gzgzmr8gz704jmqiv7nq"))))
4112 (build-system python-build-system)
4114 `(("python-cryptography" ,python-cryptography)
4115 ("python-ecdsa" ,python-ecdsa)))
4116 (synopsis "OpenSSH public key parser")
4118 "This package provides a library for parsing and validating OpenSSH
4120 (license license:bsd-3)))
4122 (define-public python-feedgenerator
4124 (name "python-feedgenerator")
4129 (uri (pypi-uri "feedgenerator" version))
4132 "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
4133 (modules '((guix build utils)))
4136 ;; Remove pre-compiled .pyc files from source.
4137 (for-each delete-file-recursively
4138 (find-files "." "__pycache__" #:directories? #t))
4139 (for-each delete-file (find-files "." "\\.pyc$"))
4141 (build-system python-build-system)
4143 `(("python-pytz" ,python-pytz)
4144 ("python-six" ,python-six)))
4145 (home-page "https://github.com/getpelican/feedgenerator")
4147 "Standalone version of Django's Atom/RSS feed generator")
4149 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
4150 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
4151 (license license:bsd-3)))
4153 (define-public python2-feedgenerator
4154 (package-with-python2 python-feedgenerator))
4156 (define-public python-jsonrpc-server
4158 (name "python-jsonrpc-server")
4163 (uri (pypi-uri "python-jsonrpc-server" version))
4166 "1585ybn3djvx5r5zbxkzlhz2wb1d47y4wrfwaxdyq0gi87jl7ib2"))))
4167 (build-system python-build-system)
4169 `(("python-mock" ,python-mock)
4170 ("python-pytest" ,python-pytest)
4171 ("python-ujson" ,python-ujson)))
4173 "https://github.com/palantir/python-jsonrpc-server")
4174 (synopsis "JSON RPC 2.0 server library")
4176 "This package provides a JSON RPC 2.0 server library for Python.")
4177 (license license:expat)))
4179 (define-public python-pydantic
4181 (name "python-pydantic")
4187 (url "https://github.com/samuelcolvin/pydantic")
4188 (commit (string-append "v" version))))
4189 (file-name (git-file-name name version))
4191 (base32 "1380s9k77g6q15by9fkxndczjk89q6xpz09jdrqip535xws2z3j8"))))
4192 (build-system python-build-system)
4195 (modify-phases %standard-phases
4196 ;; Reported upstream:
4197 ;; <https://github.com/samuelcolvin/pydantic/issues/1580>.
4198 ;; Disable the faulty test as the fix is unclear.
4199 (add-before 'check 'disable-test
4201 (substitute* "tests/test_validators.py"
4202 (("test_assert_raises_validation_error")
4203 "_test_assert_raises_validation_error"))
4206 (lambda _ (invoke "pytest" "-vv" "tests"))))))
4208 `(("python-pytest" ,python-pytest)))
4209 (home-page "https://github.com/samuelcolvin/pydantic")
4210 (synopsis "Python data validation and settings management")
4212 "Pydantic enforces type hints at runtime, and provides user friendly
4213 errors when data is invalid.")
4214 (license license:expat)))
4216 (define-public python-pydocstyle
4218 (name "python-pydocstyle")
4223 (uri (pypi-uri "pydocstyle" version))
4226 "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap"))))
4227 (build-system python-build-system)
4229 `(("python-six" ,python-six)
4230 ("python-snowballstemmer" ,python-snowballstemmer)))
4232 "https://github.com/PyCQA/pydocstyle/")
4233 (synopsis "Python docstring style checker")
4235 "This package provides a style checker for the Python Language
4237 (license license:expat)))
4239 (define-public python-language-server
4241 (name "python-language-server")
4246 (uri (pypi-uri "python-language-server" version))
4249 "1c0pnk2aibfhfaanrs0a5gkabkvz81gj20z7r0152b7fcx5ci14r"))))
4250 (build-system python-build-system)
4252 `(("python-autopep8" ,python-autopep8)
4253 ("python-configparser" ,python-configparser)
4254 ("python-pydocstyle" ,python-pydocstyle)
4255 ("python-future" ,python-future)
4256 ("python-jedi" ,python-jedi)
4257 ("python-jsonrpc-server" ,python-jsonrpc-server)
4258 ("python-pluggy" ,python-pluggy)
4259 ("python-pycodestyle" ,python-pycodestyle)
4260 ("python-pyflakes" ,python-pyflakes)
4261 ("python-rope" ,python-rope)
4262 ("python-ujson" ,python-ujson)
4263 ("python-yapf" ,python-yapf)))
4265 `(("python-coverage" ,python-coverage)
4266 ("python-flaky" ,python-flaky)
4267 ("python-matplotlib" ,python-matplotlib)
4268 ("python-mock" ,python-mock)
4269 ("python-numpy" ,python-numpy)
4270 ("python-pandas" ,python-pandas)
4271 ("python-pylint" ,python-pylint)
4272 ("python-pytest" ,python-pytest)
4273 ("python-pytest-cov" ,python-pytest-cov)
4274 ("python-versioneer" ,python-versioneer)))
4275 (home-page "https://github.com/palantir/python-language-server")
4276 (synopsis "Python implementation of the Language Server Protocol")
4278 "The Python Language Server (pyls) is an implementation of the Python 3
4279 language specification for the Language Server Protocol (LSP). This tool is
4280 used in text editing environments to provide a complete and integrated
4281 feature-set for programming Python effectively.")
4282 (license license:expat)))
4284 (define-public python-pathspec
4286 (name "python-pathspec")
4291 (uri (pypi-uri "pathspec" version))
4294 "15lvs4awlg8xzl0l4gk9y53xx4yqmqvsv44pglv39m70y85afajn"))))
4295 (build-system python-build-system)
4296 (home-page "https://github.com/cpburnz/python-path-specification")
4297 (synopsis "Utility library for gitignore style pattern matching of file paths")
4299 "This package provides a utility library for gitignore style pattern
4300 matching of file paths.")
4301 (license license:mpl2.0)))
4303 (define-public python-black
4305 (name "python-black")
4310 (uri (pypi-uri "black" version))
4313 "1spv6sldp3mcxr740dh3ywp25lly9s8qlvs946fin44rl1x5a0hw"))))
4314 (build-system python-build-system)
4317 (modify-phases %standard-phases
4318 (add-after 'patch-source-shebangs 'patch-extra-shebangs
4320 (let ((python3 (which "python3")))
4321 (substitute* '("tests/data/fmtonoff.py"
4322 "tests/data/string_prefixes.py"
4323 "tests/data/function.py"
4324 "tests/data/python37.py")
4325 (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
4326 (string-append "#!" python3 (if (string? minor-version)
4330 (add-after 'unpack 'disable-broken-tests
4331 (lambda* (#:key outputs inputs #:allow-other-keys)
4332 ;; Make installed package available for running the tests
4333 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
4334 ":" (getenv "PATH")))
4336 ;; These tests are supposed to be skipped when the blackd
4337 ;; dependencies are missing, but this doesn't quite work.
4338 (substitute* "tests/test_black.py"
4339 (("( *)class BlackDTestCase.*" match indent)
4340 (string-append indent "@unittest.skip(\"no blackd deps\")\n"
4341 indent "class BlackDTestCase(unittest.TestCase):\n"))
4342 (("web.Application") "False")
4343 (("@unittest_run_loop") ""))
4345 ;; Patching the above file breaks the self test
4346 (substitute* "tests/test_black.py"
4347 (("( *)def test_self" match indent)
4348 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4350 (substitute* "tests/test_black.py"
4351 (("( *)def test_python38" match indent)
4352 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4355 `(("python-click" ,python-click)
4356 ("python-attrs" ,python-attrs)
4357 ("python-appdirs" ,python-appdirs)
4358 ("python-pathspec" ,python-pathspec)
4359 ("python-mypy-extensions" ,python-mypy-extensions)
4360 ("python-regex" ,python-regex)
4361 ("python-toml" ,python-toml)
4362 ("python-typed-ast" ,python-typed-ast)
4363 ("python-typing-extensions" ,python-typing-extensions)))
4365 `(("python-setuptools-scm" ,python-setuptools-scm)))
4366 (home-page "https://github.com/ambv/black")
4367 (synopsis "The uncompromising code formatter")
4368 (description "Black is the uncompromising Python code formatter.")
4369 (license license:expat)))
4371 (define-public python-black-macchiato
4373 (name "python-black-macchiato")
4378 (uri (pypi-uri "black-macchiato" version))
4381 "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
4382 (build-system python-build-system)
4384 `(("python-black" ,python-black)))
4385 (home-page "https://github.com/wbolster/black-macchiato")
4386 (synopsis "Partial @code{python-black} formatting")
4388 "This package is built on top the @{python-black} code formatter to
4389 enable formatting of partial files.")
4390 (license license:bsd-3)))
4392 (define-public python-blinker
4394 (name "python-blinker")
4399 (uri (pypi-uri "blinker" version))
4402 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
4403 (build-system python-build-system)
4404 (home-page "https://pythonhosted.org/blinker/")
4405 (synopsis "Fast, simple object-to-object and broadcast signaling")
4407 "Blinker provides a fast dispatching system that allows any number of
4408 interested parties to subscribe to events, or \"signals\".")
4409 (license license:expat)))
4411 (define-public python2-blinker
4412 (package-with-python2 python-blinker))
4414 (define-public pelican
4421 (uri (pypi-uri "pelican" version))
4424 "0mp7hjyhs38ag1hyfcy882g400z0babqi72pnli46dqijfhajzmy"))))
4425 (build-system python-build-system)
4427 `(("python-blinker" ,python-blinker)
4428 ("python-dateutil" ,python-dateutil)
4429 ("python-docutils" ,python-docutils)
4430 ("python-feedgenerator" ,python-feedgenerator)
4431 ("python-jinja2" ,python-jinja2)
4432 ("python-markdown" ,python-markdown)
4433 ("python-pygments" ,python-pygments)
4434 ("python-pytz" ,python-pytz)
4435 ("python-six" ,python-six)
4436 ("python-unidecode" ,python-unidecode)))
4437 (home-page "https://getpelican.com/")
4439 `(;; XXX Requires a lot more packages to do unit tests :P
4441 (synopsis "Python-based static site publishing system")
4443 "Pelican is a tool to generate a static blog from reStructuredText,
4444 Markdown input files, and more. Pelican uses Jinja2 for templating
4445 and is very extensible.")
4446 (license license:agpl3+)))
4448 (define-public mallard-ducktype
4450 (name "mallard-ducktype")
4455 ;; git-reference because tests are not included in pypi source tarball
4456 ;; https://issues.guix.gnu.org/issue/36755#2
4458 (url "https://github.com/projectmallard/mallard-ducktype")
4460 (file-name (git-file-name name version))
4463 "1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
4464 (build-system python-build-system)
4467 (modify-phases %standard-phases
4470 (with-directory-excursion "tests"
4471 (invoke "sh" "runtests")))))))
4472 (home-page "http://projectmallard.org")
4473 (synopsis "Convert Ducktype to Mallard documentation markup")
4475 "Ducktype is a lightweight syntax that can represent all the semantics
4476 of the Mallard XML documentation system. Ducktype files can be converted to
4477 Mallard using the @command{ducktype} tool. The yelp-tools package
4478 provides additional functionality on the produced Mallard documents.")
4479 (license license:expat)))
4481 (define-public python-cython
4483 (name "python-cython")
4488 (uri (pypi-uri "Cython" version))
4491 "1bcwpra7c6k30yvic3sw2v3rq2dr40ypc4zqif6kr52mpn4wnyp5"))))
4492 (build-system python-build-system)
4493 ;; we need the full python package and not just the python-wrapper
4494 ;; because we need libpython3.3m.so
4496 `(("python" ,python)))
4499 (modify-phases %standard-phases
4500 (add-before 'check 'set-HOME
4501 ;; some tests require access to "$HOME/.cython"
4502 (lambda _ (setenv "HOME" "/tmp") #t))
4505 ;; Disable compiler optimizations to greatly reduce the running
4506 ;; time of the test suite.
4507 (setenv "CFLAGS" "-O0")
4509 (invoke "python" "runtests.py" "-vv"
4510 "-j" (number->string (parallel-job-count))
4511 ;; XXX: On 32-bit architectures, running the parallel tests
4512 ;; fails on many-core systems, see
4513 ;; <https://github.com/cython/cython/issues/2807>.
4514 ,@(if (not (target-64bit?))
4515 '("-x" "run.parallel")
4517 (home-page "https://cython.org/")
4518 (synopsis "C extensions for Python")
4519 (description "Cython is an optimising static compiler for both the Python
4520 programming language and the extended Cython programming language. It makes
4521 writing C extensions for Python as easy as Python itself.")
4522 (license license:asl2.0)
4523 (properties `((python2-variant . ,(delay python2-cython))))))
4525 (define-public python2-cython
4526 (let ((base (package-with-python2 (strip-python2-variant python-cython))))
4527 (package/inherit base
4528 (name "python2-cython")
4530 `(("python-2" ,python-2))) ;this is not automatically changed
4532 (substitute-keyword-arguments (package-arguments base)
4534 `(modify-phases ,phases
4535 (add-before 'check 'adjust-test_embed
4537 (substitute* "runtests.py"
4538 ;; test_embed goes great lengths to find the static libpythonX.Y.a
4539 ;; so it can give the right -L flag to GCC when embedding static
4540 ;; builds of Python. It is unaware that the Python "config"
4541 ;; directory (where the static library lives) was renamed in
4542 ;; Python 3, and falls back to sysconfig.get_config_var('LIBDIR'),
4543 ;; which works fine, because that is where the shared library is.
4545 ;; It also appears to be unaware that the Makefile in Demos/embed
4546 ;; already unconditionally pass the static library location to GCC,
4547 ;; after checking sysconfig.get_config_var('LIBPL).
4549 ;; The effect is that the linker is unable to resolve libexpat
4550 ;; symbols when building for Python 2, because neither the Python 2
4551 ;; shared library nor Expat is available. To fix it, we can either
4552 ;; add Expat as an input and make it visible to the linker, or just
4553 ;; prevent it from overriding the Python shared library location.
4554 ;; The end result is identical, so we take the easy route.
4555 ((" or libname not in os\\.listdir\\(libdir\\)")
4559 ;; The RPython toolchain currently does not support Python 3.
4560 (define-public python2-rpython
4562 (name "python2-rpython")
4567 (uri (pypi-uri "rpython" version))
4570 "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0"))))
4571 (build-system python-build-system)
4572 (arguments `(#:python ,python-2))
4574 `(("python2-pytest" ,python2-pytest))) ; needed for running tests
4575 (home-page "https://rpython.readthedocs.org")
4576 (synopsis "Framework for implementing interpreters and virtual machines")
4577 (description "RPython is a translation and support framework for
4578 producing implementations of dynamic languages, emphasizing a clean separation
4579 between language specification and implementation aspects.")
4580 (license license:expat)))
4582 ;; NOTE: when upgrading numpy please make sure that python-pandas and
4583 ;; python-scipy still build, as these three packages are often used together.
4584 (define-public python-numpy
4586 (name "python-numpy")
4592 "https://github.com/numpy/numpy/releases/download/v"
4593 version "/numpy-" version ".tar.gz"))
4596 "1ak9dmjja0q90a7fsxli51ypcwssh8c4pb6f8wkrsnf2xgdk6dy9"))))
4597 (build-system python-build-system)
4599 `(("openblas" ,openblas)
4600 ("lapack" ,lapack)))
4602 `(("python-cython" ,python-cython)
4603 ("python-pytest" ,python-pytest)
4604 ("gfortran" ,gfortran)))
4607 (modify-phases %standard-phases
4608 (add-before 'build 'configure-blas-lapack
4609 (lambda* (#:key inputs #:allow-other-keys)
4610 (call-with-output-file "site.cfg"
4614 libraries = openblas
4615 library_dirs = ~a/lib
4616 include_dirs = ~a/include
4618 # backslash-n to make emacs happy
4620 lapack_libs = lapack
4621 library_dirs = ~a/lib
4622 include_dirs = ~a/include
4624 (assoc-ref inputs "openblas")
4625 (assoc-ref inputs "openblas")
4626 (assoc-ref inputs "lapack")
4627 (assoc-ref inputs "lapack"))))
4629 (add-before 'build 'fix-executable-paths
4630 (lambda* (#:key inputs #:allow-other-keys)
4631 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
4632 ;; instead of /bin/sh.
4633 (substitute* "numpy/distutils/exec_command.py"
4634 (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end)
4635 (string-append match-start (assoc-ref inputs "bash") match-end)))
4636 ;; Use "gcc" executable, not "cc".
4637 (substitute* "numpy/distutils/system_info.py"
4638 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
4639 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
4641 ;; Tests can only be run after the library has been installed and not
4642 ;; within the source directory.
4644 (add-after 'install 'check
4645 (lambda* (#:key outputs inputs #:allow-other-keys)
4646 ;; Make installed package available for running the tests
4647 (add-installed-pythonpath inputs outputs)
4648 ;; Make sure "f2py" etc is found.
4649 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
4650 ":" (getenv "PATH")))
4651 (with-directory-excursion "/tmp"
4652 (invoke "python" "-c"
4653 "import numpy; numpy.test(verbose=2)")))))))
4654 (home-page "https://numpy.org")
4655 (synopsis "Fundamental package for scientific computing with Python")
4656 (description "NumPy is the fundamental package for scientific computing
4657 with Python. It contains among other things: a powerful N-dimensional array
4658 object, sophisticated (broadcasting) functions, tools for integrating C/C++
4659 and Fortran code, useful linear algebra, Fourier transform, and random number
4661 (properties `((python2-variant . ,(delay python2-numpy))))
4662 (license license:bsd-3)))
4664 ;; Numpy 1.16.x are the last versions that support Python 2.
4665 (define-public python2-numpy
4666 (let ((numpy (package-with-python2
4667 (strip-python2-variant python-numpy))))
4674 "https://github.com/numpy/numpy/releases/download/v"
4675 version "/numpy-" version ".tar.gz"))
4678 "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb")))))))
4680 ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
4681 ;; interest only for legacy code going back to NumPy's predecessor
4683 (define-public python2-numpy-1.8
4684 (package (inherit python2-numpy)
4690 (url "https://github.com/numpy/numpy")
4691 (commit (string-append "v" version))))
4692 (file-name (git-file-name "numpy" version))
4695 "0ikgi15rsqwbkfsjjxrwh40lqyal2wvyp3923y6w6ch3dcr82sfk"))))
4697 (substitute-keyword-arguments (package-arguments python2-numpy)
4699 `(modify-phases ,phases
4700 (replace 'configure-blas-lapack
4701 (lambda* (#:key inputs #:allow-other-keys)
4702 (call-with-output-file "site.cfg"
4706 libraries = openblas,lapack
4707 library_dirs = ~a/lib:~a/lib
4708 include_dirs = ~a/include:~a/include
4710 (assoc-ref inputs "openblas")
4711 (assoc-ref inputs "lapack")
4712 (assoc-ref inputs "openblas")
4713 (assoc-ref inputs "lapack"))))
4716 `(("python2-nose" ,python2-nose)))
4717 (description "NumPy is the fundamental package for scientific computing
4718 with Python. It contains among other things: a powerful N-dimensional array
4719 object, sophisticated (broadcasting) functions, tools for integrating C/C++
4720 and Fortran code, useful linear algebra, Fourier transform, and random number
4721 capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API
4722 that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
4724 (license license:bsd-3)))
4726 (define-public python-munch
4728 (name "python-munch")
4733 (uri (pypi-uri "munch" version))
4736 "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l"))))
4737 (build-system python-build-system)
4738 (home-page "https://github.com/Infinidat/munch")
4739 (synopsis "Dot-accessible dictionary")
4740 (description "Munch is a dot-accessible dictionary similar to JavaScript
4742 (license license:expat)))
4744 (define-public python2-munch
4745 (package-with-python2 python-munch))
4747 (define-public python-colormath
4749 (name "python-colormath")
4754 (uri (pypi-uri "colormath" version))
4757 "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
4758 (build-system python-build-system)
4760 `(("python-networkx" ,python-networkx)
4761 ("python-numpy" ,python-numpy)))
4762 (home-page "https://github.com/gtaylor/python-colormath")
4763 (synopsis "Color math and conversion library")
4765 "This is a Python library for color math and conversions.")
4766 (license license:bsd-3)))
4768 (define-public python2-colormath
4769 (package-with-python2 python-colormath))
4771 (define-public python-spectra
4773 (name "python-spectra")
4778 (uri (pypi-uri "spectra" version))
4781 "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
4782 (build-system python-build-system)
4785 (modify-phases %standard-phases
4787 (lambda _ (invoke "nosetests" "-v"))))))
4789 `(("python-colormath" ,python-colormath)))
4791 `(("python-nose" ,python-nose)))
4792 (home-page "https://github.com/jsvine/spectra")
4793 (synopsis "Color scales and color conversion")
4795 "This package provides a Python library intended to make color math,
4796 color scales, and color space conversion easy. It has support for:
4801 @item Color blending
4802 @item Brightening/darkening colors
4803 @item Saturating/desaturating colors
4804 @item Conversion to/from multiple color spaces.
4806 (license license:expat)))
4808 (define-public python2-spectra
4809 (package-with-python2 python-spectra))
4811 (define-public python-numpy-documentation
4813 (name "python-numpy-documentation")
4814 (version (package-version python-numpy))
4815 (source (package-source python-numpy))
4816 (build-system python-build-system)
4818 `(("python-matplotlib" ,python-matplotlib)
4819 ("python-numpy" ,python-numpy)
4820 ("pkg-config" ,pkg-config)
4821 ("python-sphinx" ,python-sphinx)
4822 ("python-numpydoc" ,python-numpydoc)
4823 ("texlive" ,(texlive-union (list texlive-fonts-cm-super
4825 texlive-generic-ifxetex
4826 texlive-generic-pdftex
4828 texlive-latex-capt-of
4830 texlive-latex-environ
4831 texlive-latex-eqparbox
4832 texlive-latex-etoolbox
4833 texlive-latex-expdlist
4834 texlive-latex-fancyhdr
4835 texlive-latex-fancyvrb
4836 texlive-latex-fncychap
4838 texlive-latex-framed
4839 texlive-latex-geometry
4840 texlive-latex-graphics
4841 texlive-latex-hyperref
4842 texlive-latex-mdwtools
4843 texlive-latex-multirow
4844 texlive-latex-needspace
4845 texlive-latex-oberdiek
4846 texlive-latex-parskip
4847 texlive-latex-preview
4848 texlive-latex-tabulary
4849 texlive-latex-threeparttable
4850 texlive-latex-titlesec
4851 texlive-latex-trimspaces
4853 texlive-latex-upquote
4855 texlive-latex-varwidth
4856 texlive-latex-wrapfig)))
4857 ("texinfo" ,texinfo)
4859 ("scipy-sphinx-theme"
4860 ,(let ((commit "c466764e2231ba132c09826b5b138fffa1cfcec3"))
4861 (origin ;the build script expects scipy-sphinx-theme as a git submodule
4864 (url "https://github.com/scipy/scipy-sphinx-theme")
4866 (file-name (git-file-name "python-scipy-sphinx-theme"
4867 (string-take commit 7)))
4870 "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))))
4871 ,@(package-native-inputs python-numpy)))
4873 `(#:tests? #f ; we're only generating the documentation
4875 (modify-phases %standard-phases
4878 (lambda* (#:key inputs outputs #:allow-other-keys)
4879 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
4881 data "/doc/" ,name "-"
4882 ,(package-version python-numpy)))
4883 (info-reader (string-append data "/info"))
4884 (html (string-append doc "/html"))
4885 (scipy-sphinx-theme "scipy-sphinx-theme")
4886 (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme))
4887 (pyver ,(string-append "PYVER=")))
4889 ;; FIXME: this is needed to for texlive-union to generate
4890 ;; fonts, which are not found.
4891 (setenv "HOME" "/tmp")
4893 (with-directory-excursion "doc"
4894 (copy-recursively sphinx-theme-checkout scipy-sphinx-theme)
4896 (invoke "make" "html" pyver)
4897 (invoke "make" "latex" "PAPER=a4" pyver)
4898 (invoke "make" "-C" "build/latex"
4899 "all-pdf" "PAPER=a4" pyver)
4900 ;; FIXME: Generation of the info file fails.
4901 ;; (invoke "make" "info" pyver)
4903 ;; (copy-file "build/texinfo/numpy.info"
4904 ;; (string-append info "/numpy.info"))
4905 (for-each (lambda (file)
4906 (copy-file (string-append "build/latex" file)
4907 (string-append doc file)))
4908 '("/numpy-ref.pdf" "/numpy-user.pdf"))
4909 (with-directory-excursion "build/html"
4910 (for-each (lambda (file)
4911 (let* ((dir (dirname file))
4912 (tgt-dir (string-append html "/" dir)))
4913 (unless (equal? "." dir)
4915 (install-file file html)))
4916 (find-files "." ".*")))))
4918 (home-page (package-home-page python-numpy))
4919 (synopsis "Documentation for the python-numpy package")
4920 (description (package-description python-numpy))
4921 (license (package-license python-numpy))))
4923 (define-public python2-numpy-documentation
4924 (let ((numpy-documentation (package-with-python2 python-numpy-documentation)))
4926 (inherit numpy-documentation)
4927 (native-inputs `(("python2-functools32" ,python2-functools32)
4928 ,@(package-native-inputs numpy-documentation))))))
4930 (define-public python-pygit2
4932 (name "python-pygit2")
4937 (uri (pypi-uri "pygit2" version))
4939 (base32 "1j71iskvirkm8jzfmwdm79v69878m9iix8a8cn4xidgr3nmkisyb"))))
4940 (build-system python-build-system)
4942 '(#:tests? #f)) ; tests don't run correctly in our environment
4944 `(("python-cached-property" ,python-cached-property)
4945 ("python-cffi" ,python-cffi)
4946 ("libgit2" ,libgit2)))
4948 `(("python-pytest" ,python-pytest)))
4949 (home-page "https://github.com/libgit2/pygit2")
4950 (synopsis "Python bindings for libgit2")
4951 (description "Pygit2 is a set of Python bindings to the libgit2 shared
4952 library, libgit2 implements Git plumbing.")
4953 ;; GPL2.0 only, with linking exception.
4954 (license license:gpl2)))
4956 (define-public python-patiencediff
4958 (name "python-patiencediff")
4963 (uri (pypi-uri "patiencediff" version))
4966 "0yjk50lsd4gnllxls925xbcdxwvmda37w2a1shk0p1nvl3fcha6q"))))
4967 (build-system python-build-system)
4968 (home-page "https://www.breezy-vcs.org/")
4969 (synopsis "Python implementation of the patiencediff algorithm")
4971 "This package contains a Python implementation of the @code{patiencediff}
4972 algorithm. Patiencediff provides a good balance of performance, nice output for
4973 humans, and implementation simplicity.")
4974 (license license:gpl2)))
4976 (define-public python-pdftotext
4978 (name "python-pdftotext")
4983 (uri (pypi-uri "pdftotext" version))
4986 "19la1cw1hmkcr8big04gm2dd5fw0y0z97g930aiy29s1gaqbiblq"))))
4987 (build-system python-build-system)
4989 `(("poppler" ,poppler)))
4990 (home-page "https://github.com/jalan/pdftotext")
4991 (synopsis "Simple PDF text extraction")
4992 (description "Pdftotext is a Python library of PDF text extraction.")
4993 (license license:expat)))
4995 (define-public python-pyparsing
4997 (name "python-pyparsing")
5002 (uri (pypi-uri "pyparsing" version))
5004 (base32 "17wn5zlijc9m9zj26gy3f541y7smpj8rfhl51d025c2gm210b0sc"))))
5005 (build-system python-build-system)
5006 (outputs '("out" "doc"))
5008 `(#:tests? #f ; no test target
5010 (modify-phases %standard-phases
5011 (add-after 'install 'install-doc
5012 (lambda* (#:key outputs #:allow-other-keys)
5013 (let* ((doc (string-append (assoc-ref outputs "doc")
5014 "/share/doc/" ,name "-" ,version))
5015 (html-doc (string-append doc "/html"))
5016 (examples (string-append doc "/examples")))
5022 (install-file file tgt))
5023 (find-files dir ".*")))
5024 (list "docs" "htmldoc" "examples")
5025 (list doc html-doc examples))
5027 (home-page "https://github.com/pyparsing/pyparsing")
5028 (synopsis "Python parsing class library")
5030 "The pyparsing module is an alternative approach to creating and
5031 executing simple grammars, vs. the traditional lex/yacc approach, or the use
5032 of regular expressions. The pyparsing module provides a library of classes
5033 that client code uses to construct the grammar directly in Python code.")
5034 (license license:expat)))
5036 (define-public python2-pyparsing
5037 (package-with-python2 python-pyparsing))
5039 (define-public python-pyparsing-2.4.7
5041 (inherit python-pyparsing)
5046 (uri (pypi-uri "pyparsing" version))
5048 (base32 "1hgc8qrbq1ymxbwfbjghv01fm3fbpjwpjwi0bcailxxzhf3yq0y2"))))))
5050 (define-public python-numpydoc
5052 (name "python-numpydoc")
5057 (uri (pypi-uri "numpydoc" version))
5060 "1zazxg3m8j4fksv3f7v7vpf4bj9qb1vj3r326am0vdip141vzx31"))))
5061 (build-system python-build-system)
5063 `(("python-sphinx" ,python-sphinx)))
5065 `(("python-nose" ,python-nose)))
5066 (home-page "https://pypi.org/project/numpydoc/")
5068 "Numpy's Sphinx extensions")
5070 "Sphinx extension to support docstrings in Numpy format.")
5071 (license license:bsd-2)
5072 (properties `((python2-variant . ,(delay python2-numpydoc))))))
5074 (define-public python2-numpydoc
5075 (let ((base (package-with-python2
5076 (strip-python2-variant python-numpydoc))))
5077 (package/inherit base
5079 `(("python2-jinja2" ,python2-jinja2)
5080 ,@(package-propagated-inputs base))))))
5082 (define-public python-numexpr
5084 (name "python-numexpr")
5089 (uri (pypi-uri "numexpr" version))
5092 "1frnbcwmsi312154x274xl28xazr1k8vjby83fwyla2n10a81bgq"))))
5093 (build-system python-build-system)
5094 (arguments `(#:tests? #f)) ; no tests included
5096 `(("python-numpy" ,python-numpy)))
5097 (home-page "https://github.com/pydata/numexpr")
5098 (synopsis "Fast numerical expression evaluator for NumPy")
5100 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
5101 expressions that operate on arrays are accelerated and use less memory than
5102 doing the same calculation in Python. In addition, its multi-threaded
5103 capabilities can make use of all your cores, which may accelerate
5104 computations, most specially if they are not memory-bounded (e.g. those using
5105 transcendental functions).")
5106 (license license:expat)))
5108 (define-public python2-numexpr
5109 (package-with-python2 python-numexpr))
5111 (define-public python-cycler
5113 (name "python-cycler")
5117 (uri (pypi-uri "cycler" version))
5120 "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
5121 (build-system python-build-system)
5123 ;; XXX: The current version requires 'coveralls' which we don't have.
5124 ;; Enable this for the next release which uses 'python-pytest'.
5127 `(("python-six" ,python-six)))
5128 (home-page "https://matplotlib.org/cycler/")
5129 (synopsis "Composable keyword argument iterator")
5131 "When using @code{matplotlib} and plotting more than one line, it is
5132 common to want to be able to want to be able to cycle over one or more artist
5133 styles; but the plotting logic can quickly become involved.
5134 To address this and enable easy cycling over arbitrary @code{kwargs}, the
5135 @code{Cycler} class was developed.")
5136 (license license:bsd-3)))
5138 (define-public python2-cycler
5139 (package-with-python2 python-cycler))
5141 (define-public python-colorspacious
5143 (name "python-colorspacious")
5149 (url "https://github.com/njsmith/colorspacious")
5150 (commit (string-append "v" version))))
5151 (file-name (git-file-name name version))
5153 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
5154 (build-system python-build-system)
5156 `(("python-numpy" ,python-numpy)))
5158 `(("python-nose" ,python-nose)))
5161 (modify-phases %standard-phases
5164 (invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
5165 (home-page "https://github.com/njsmith/colorspacious")
5166 (synopsis "Python library for colorspace conversions")
5167 (description "@code{colorspacious} is a Python library that lets you
5168 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
5169 (license license:expat)))
5171 (define-public python2-colorspacious
5172 (package-with-python2 python-colorspacious))
5174 (define-public python-matplotlib
5176 (name "python-matplotlib")
5181 (uri (pypi-uri "matplotlib" version))
5183 (base32 "1nmshfqh7wyg15i16hx1yiylcvzkws29ivn66n3i0wyqwcpjr3lf"))
5185 (search-patches "python-matplotlib-run-under-wayland-gtk3.patch"))))
5186 (build-system python-build-system)
5187 (propagated-inputs ; the following packages are all needed at run time
5188 `(("python-cycler" ,python-cycler)
5189 ("python-kiwisolver" ,python-kiwisolver)
5190 ("python-pyparsing" ,python-pyparsing)
5191 ("python-pygobject" ,python-pygobject)
5192 ("gobject-introspection" ,gobject-introspection)
5193 ("python-tkinter" ,python "tk")
5194 ("python-dateutil" ,python-dateutil)
5195 ("python-numpy" ,python-numpy)
5196 ("python-pillow" ,python-pillow)
5197 ("python-pytz" ,python-pytz)
5198 ("python-six" ,python-six)
5199 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
5200 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
5201 ;; object. For this reason we need to import both libraries.
5202 ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
5203 ("python-pycairo" ,python-pycairo)
5204 ("python-cairocffi" ,python-cairocffi)))
5206 `(("libpng" ,libpng)
5207 ("freetype" ,freetype)
5210 ;; FIXME: Add backends when available.
5211 ;("python-wxpython" ,python-wxpython)
5215 `(("pkg-config" ,pkg-config)
5216 ("python-pytest" ,python-pytest)
5217 ("python-mock" ,python-mock)
5222 (uri "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip")
5225 "0kb21xf38diqgxcdi1z3s9ssq36pldvyqxy56hn6pcva6rs3c8zq"))))))
5228 (modify-phases %standard-phases
5229 ;; XXX We disable all image comparison tests because we're using a
5230 ;; newer version of FreeType than matplotlib expects. This leads to
5231 ;; minor differences throughout the tests.
5232 (add-after 'unpack 'fix-and-disable-failing-tests
5234 (substitute* (append (find-files "lib/matplotlib/tests/"
5236 (find-files "lib/mpl_toolkits/tests"
5238 (("^from matplotlib" match)
5239 (string-append "import pytest\n" match))
5240 (("( *)@image_comparison" match indent)
5241 (string-append indent
5242 "@pytest.mark.skip(reason=\"unknown minor image differences\")\n"
5244 (substitute* "lib/matplotlib/tests/test_animation.py"
5245 (("/bin/sh") (which "sh")))
5246 (for-each delete-file
5247 ;; test_normal_axes, test_get_tightbbox_polar
5248 '("lib/matplotlib/tests/test_axes.py"
5249 ;; We don't use the webagg backend and this test forces it.
5250 "lib/matplotlib/tests/test_backend_webagg.py"
5251 ;; test_outward_ticks
5252 "lib/matplotlib/tests/test_tightlayout.py"
5253 ;; test_hidden_axes fails with minor extent
5254 ;; differences, possibly due to the use of a
5255 ;; different version of FreeType.
5256 "lib/matplotlib/tests/test_constrainedlayout.py"
5257 ;; Fontconfig returns no fonts.
5258 "lib/matplotlib/tests/test_font_manager.py"))
5260 (add-before 'install 'install-jquery-ui
5261 (lambda* (#:key outputs inputs #:allow-other-keys)
5262 (let ((dir (string-append (assoc-ref outputs "out")
5263 "/lib/python3.7/site-packages/matplotlib/backends/web_backend/")))
5266 (assoc-ref inputs "jquery-ui")
5270 (lambda* (#:key outputs inputs #:allow-other-keys)
5271 (add-installed-pythonpath inputs outputs)
5272 (invoke "python" "tests.py" "-v"
5273 "-m" "not network and not webagg")))
5274 (add-before 'build 'configure-environment
5275 (lambda* (#:key outputs inputs #:allow-other-keys)
5276 (let ((cairo (assoc-ref inputs "cairo")))
5277 ;; Setting this directory in the 'basedirlist' of 'setup.cfg'
5279 (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib"))
5280 (setenv "HOME" (getcwd))
5281 ;; Fix rounding errors when using the x87 FPU.
5282 (when (string-prefix? "i686" ,(%current-system))
5283 (setenv "CFLAGS" "-ffloat-store"))
5284 (call-with-output-file "setup.cfg"
5286 (format port "[directories]~%
5287 basedirlist = ~a,~a~%
5290 (assoc-ref inputs "tcl")
5291 (assoc-ref inputs "tk")))))
5293 (home-page "https://matplotlib.org/")
5294 (synopsis "2D plotting library for Python")
5296 "Matplotlib is a Python 2D plotting library which produces publication
5297 quality figures in a variety of hardcopy formats and interactive environments
5298 across platforms. Matplotlib can be used in Python scripts, the python and
5299 ipython shell, web application servers, and six graphical user interface
5301 (license license:psfl)
5302 (properties `((python2-variant . ,(delay python2-matplotlib))))))
5304 (define-public python2-matplotlib
5305 (let ((matplotlib (package-with-python2
5306 (strip-python2-variant python-matplotlib))))
5307 (package (inherit matplotlib)
5312 (uri (pypi-uri "matplotlib" version))
5315 "09i1gnrra1590brc1f8d5rh2zvnknmfgzp613ab0462qkrwj15h2"))))
5317 (substitute-keyword-arguments (package-arguments matplotlib)
5319 `(modify-phases ,phases
5320 (replace 'install-jquery-ui
5321 (lambda* (#:key outputs inputs #:allow-other-keys)
5322 (let ((dir (string-append (assoc-ref outputs "out")
5323 "/lib/python2.7/site-packages/"
5324 "matplotlib/backends/web_backend/")))
5327 (assoc-ref inputs "jquery-ui")
5330 (delete 'fix-and-disable-failing-tests)
5331 (delete 'check))))) ; These tests weren't run the the past.
5332 ;; Make sure to use special packages for Python 2 instead
5333 ;; of those automatically rewritten by package-with-python2.
5335 `(("python2-pycairo" ,python2-pycairo)
5336 ("python2-backports-functools-lru-cache"
5337 ,python2-backports-functools-lru-cache)
5338 ("python2-functools32" ,python2-functools32)
5339 ("python2-pygobject-2" ,python2-pygobject-2)
5340 ("python2-subprocess32" ,python2-subprocess32)
5341 ("python2-tkinter" ,python-2 "tk")
5342 ,@(fold alist-delete (package-propagated-inputs matplotlib)
5343 '("python-cairocffi"
5346 "python-tkinter")))))))
5348 (define-public python-matplotlib-documentation
5350 (name "python-matplotlib-documentation")
5351 (version (package-version python-matplotlib))
5352 (source (package-source python-matplotlib))
5353 (build-system python-build-system)
5355 `(("python-matplotlib" ,python-matplotlib)
5356 ("python-colorspacious" ,python-colorspacious)
5357 ("python-sphinx" ,python-sphinx)
5358 ("python-sphinx-copybutton" ,python-sphinx-copybutton)
5359 ("python-sphinx-gallery" ,python-sphinx-gallery)
5360 ("python-numpydoc" ,python-numpydoc)
5361 ("python-ipython" ,python-ipython)
5362 ("python-ipykernel" ,python-ipykernel)
5363 ("python-mock" ,python-mock)
5364 ("graphviz" ,graphviz)
5365 ("texlive" ,(texlive-union (list texlive-amsfonts
5366 texlive-latex-amsmath
5367 texlive-latex-enumitem
5368 texlive-latex-expdlist
5369 texlive-latex-geometry
5370 texlive-latex-preview
5371 texlive-latex-type1cm
5374 texlive-generic-pdftex
5377 texlive-fonts-adobe-times
5378 texlive-fonts-txfonts)))
5379 ("texinfo" ,texinfo)
5380 ,@(package-native-inputs python-matplotlib)))
5382 `(#:tests? #f ; we're only generating documentation
5384 (modify-phases %standard-phases
5385 ;; The tests in python-matplotlib are run after the install phase, so
5386 ;; we need to delete the extra phase here.
5391 (setenv "PYTHONPATH"
5392 (string-append (getenv "PYTHONPATH")
5393 ":" (getcwd) "/../examples/units"))
5394 (substitute* "conf.py"
5396 (("^SHA = check_output.*")
5397 (string-append "SHA = \"" ,version "\"\n"))
5398 ;; Don't fetch intersphinx files from the Internet
5399 (("^explicit_order_folders" m)
5400 (string-append "intersphinx_mapping = {}\n" m))
5401 (("'sphinx.ext.intersphinx',") "")
5402 ;; Disable URL embedding which requires internet access.
5403 (("'https://docs.scipy.org/doc/numpy'") "None")
5404 (("'https://docs.scipy.org/doc/scipy/reference'") "None"))
5406 "SPHINXBUILD=sphinx-build"
5407 "SPHINXOPTS=" ; don't abort on warnings
5410 (lambda* (#:key inputs outputs #:allow-other-keys)
5411 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
5412 (doc (string-append data "/doc/python-matplotlib-" ,version))
5413 (info (string-append data "/info"))
5414 (html (string-append doc "/html")))
5417 (copy-recursively "build/html" html)
5418 (symlink (string-append html "/_images")
5419 (string-append info "/matplotlib-figures"))
5420 (with-directory-excursion "build/texinfo"
5421 (substitute* "matplotlib.texi"
5422 (("@image\\{([^,]*)" all file)
5423 (string-append "@image{matplotlib-figures/" file)))
5424 (symlink (string-append html "/_images")
5425 "./matplotlib-figures")
5426 (invoke "makeinfo" "--no-split"
5427 "-o" "matplotlib.info" "matplotlib.texi"))
5428 (install-file "build/texinfo/matplotlib.info" info))
5430 (home-page (package-home-page python-matplotlib))
5431 (synopsis "Documentation for the python-matplotlib package")
5432 (description (package-description python-matplotlib))
5433 (license (package-license python-matplotlib))))
5435 (define-public python2-matplotlib-documentation
5436 (let ((parent (package-with-python2 python-matplotlib-documentation)))
5440 (alist-delete "python-sphinx-copybutton"
5441 (package-native-inputs parent))))))
5443 (define-public python-matplotlib-venn
5445 (name "python-matplotlib-venn")
5450 (uri (pypi-uri "matplotlib-venn" version ".zip"))
5453 "13w3i1wih0mij08hrgppzg0g9z50y54rc28l6gdi1r5w45l7l0dy"))))
5454 (build-system python-build-system)
5455 (arguments '(#:tests? #f)) ; tests are not included
5457 `(("python-matplotlib" ,python-matplotlib)
5458 ("python-numpy" ,python-numpy)
5459 ("python-scipy" ,python-scipy)))
5461 `(("unzip" ,unzip)))
5462 (home-page "https://github.com/konstantint/matplotlib-venn")
5463 (synopsis "Plot area-proportional Venn diagrams")
5465 "This package provides tools for plotting area-proportional two- and
5466 three-way Venn diagrams in @code{matplotlib}.")
5467 (license license:expat)))
5469 (define-public python-pysnptools
5471 (name "python-pysnptools")
5476 (uri (pypi-uri "pysnptools" version))
5479 "0gxr0bjix307wvk0qh7vkafbxbzfpdmq0wlswpxyyaymy0fwcypv"))))
5480 (build-system python-build-system)
5482 `(#:tests? #f ; no test data are included
5484 (modify-phases %standard-phases
5486 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5489 (add-installed-pythonpath inputs outputs)
5490 (invoke "python3" "pysnptools/test.py"))
5493 `(("python-dill" ,python-dill)
5494 ("python-h5py" ,python-h5py)
5495 ("python-numpy" ,python-numpy)
5496 ("python-pandas" ,python-pandas)
5497 ("python-psutil" ,python-psutil)
5498 ("python-scipy" ,python-scipy)))
5500 `(("python-cython" ,python-cython)))
5501 (home-page "http://microsoftgenomics.github.io/PySnpTools/")
5502 (synopsis "Library for reading and manipulating genetic data")
5504 "PySnpTools is a library for reading and manipulating genetic data. It
5505 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
5506 those files. It can also efficiently manipulate ranges of integers using set
5507 operators such as union, intersection, and difference.")
5508 (license license:asl2.0)))
5510 (define-public python2-pysnptools
5511 (package-with-python2 python-pysnptools))
5513 (define-public python-wurlitzer
5515 (name "python-wurlitzer")
5520 (uri (pypi-uri "wurlitzer" version))
5522 (base32 "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"))))
5523 (build-system python-build-system)
5526 (modify-phases %standard-phases
5529 (invoke "pytest" "-vv" "test.py"))))))
5531 `(("python-mock" ,python-mock)
5532 ("python-pytest" ,python-pytest)))
5533 (home-page "https://github.com/minrk/wurlitzer")
5534 (synopsis "Capture C-level output in context managers")
5536 "This library helps to redirect @code{sys.stdout} to a stream or a file
5537 while executing some piece of code, including C code running within a Python
5539 (license license:expat)))
5541 (define-public python-socksipy-branch
5543 (name "python-socksipy-branch")
5548 (uri (pypi-uri "SocksiPy-branch" version))
5551 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
5552 (build-system python-build-system)
5554 `(#:tests? #f)) ; There are no tests
5555 (home-page "https://code.google.com/archive/p/socksipy-branch/")
5556 (synopsis "Python SOCKS module")
5558 "SocksiPy - A Python SOCKS client module. It provides a
5559 socket-like interface that supports connections to any TCP
5560 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
5561 The original version was developed by Dan Haim, this is a
5562 branch created by Mario Vilas to address some open issues,
5563 as the original project seems to have been abandoned circa 2007.")
5564 (license license:bsd-3)))
5566 (define-public python2-socksipy-branch
5567 (package-with-python2 python-socksipy-branch))
5569 (define-public python-socksipychain
5571 (name "python-socksipychain")
5577 (url "https://github.com/pagekite/PySocksipyChain")
5578 (commit (string-append "v" version))))
5579 (file-name (git-file-name name version))
5582 "02pp994qmiivkdx4y6az5q80l6rzy8g6d2ipvp7kns7lsxvmc2y7"))))
5583 (build-system python-build-system)
5585 `(#:tests? #f)) ; Tests try to access the network.
5586 (home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
5587 (synopsis "Python SOCKS module with chained proxies support")
5589 "SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
5590 adds support for arbitrary chaining of proxy servers and various modes of
5591 TLS/SSL encryption. It was developed for use in PageKite, and also includes
5592 a simple netcat replacement with chaining support.")
5593 (license license:bsd-3)))
5595 (define-public python-pycodestyle
5597 (name "python-pycodestyle")
5602 (uri (pypi-uri "pycodestyle" version))
5605 "1vqwmzmjdv331kmfq3q9j3as2x7r2r49lf83r9w4147pdg8c32f3"))))
5606 (build-system python-build-system)
5609 (modify-phases %standard-phases
5612 (invoke "pytest" "-vv"))))))
5614 `(("python-pytest" ,python-pytest)))
5615 (home-page "https://pycodestyle.readthedocs.io/")
5616 (synopsis "Python style guide checker")
5617 (description "@code{pycodestyle} (formerly pep8) is a tool to check
5618 Python code against some of the style conventions in
5619 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
5620 (license license:expat)))
5622 (define-public python2-pycodestyle
5623 (package-with-python2 python-pycodestyle))
5625 (define-public python-multidict
5627 (name "python-multidict")
5632 (uri (pypi-uri "multidict" version))
5635 "07ikq2c72kd263hpldw55y0px2l3g34hjk66ml9lryh1jv287qmf"))))
5636 (build-system python-build-system)
5638 '(#:modules ((ice-9 ftw)
5642 (guix build python-build-system))
5643 #:phases (modify-phases %standard-phases
5645 (lambda* (#:key tests? #:allow-other-keys)
5648 (let ((libdir (find (cut string-prefix? "lib." <>)
5649 (scandir "build"))))
5650 (setenv "PYTHONPATH"
5651 (string-append "./build/" libdir ":"
5652 (getenv "PYTHONPATH")))
5653 (invoke "pytest" "-vv")))
5654 (format #t "test suite not run~%"))
5657 `(("python-pytest" ,python-pytest)
5658 ("python-pytest-cov" ,python-pytest-cov)))
5659 (home-page "https://github.com/aio-libs/multidict/")
5660 (synopsis "Multidict implementation")
5661 (description "Multidict is dict-like collection of key-value pairs
5662 where key might be occurred more than once in the container.")
5663 (license license:asl2.0)))
5665 (define-public python-orderedmultidict
5667 (name "python-orderedmultidict")
5672 (uri (pypi-uri "orderedmultidict" version))
5675 "1idjbl933avgaadscrjw1np3xkvnz3phq0l8vw5qs0rqcjx9b65q"))))
5676 (build-system python-build-system)
5679 (modify-phases %standard-phases
5680 (add-after 'unpack 'fix-tests
5682 ;; The package uses nosetest for running the tests.
5683 ;; Adding this initfile allows to run the test suite
5684 ;; without requiring nosetest.
5685 (with-output-to-file "tests/__init__.py" newline)
5688 `(("python-six" ,python-six)))
5690 `(("python-pycodestyle" ,python-pycodestyle)))
5691 (home-page "https://github.com/gruns/orderedmultidict")
5692 (synopsis "Python Ordered Multivalue Dictionary - omdict")
5693 (description "This package contains a library for ordered multivalue
5694 dictionaries. A multivalue dictionary is a dictionary that can store
5695 multiple values for the same key. An ordered multivalue dictionary is a
5696 multivalue dictionary that retains the order of insertions and deletions.")
5697 (license license:unlicense)))
5699 (define-public python2-orderedmultidict
5700 (package-with-python2 python-orderedmultidict))
5702 (define-public python-autopep8
5704 (name "python-autopep8")
5709 (uri (pypi-uri "autopep8" version))
5712 "1w6vh627vrmgfbvrdcxrc3k4gxcldrb2lpgxv9irkdds851qrzb0"))))
5713 (build-system python-build-system)
5715 `(("python-pycodestyle" ,python-pycodestyle)
5716 ("python-toml" ,python-toml)))
5717 (home-page "https://github.com/hhatto/autopep8")
5718 (synopsis "Format Python code according to the PEP 8 style guide")
5720 "@code{autopep8} automatically formats Python code to conform to
5721 the PEP 8 style guide. It uses the pycodestyle utility to determine
5722 what parts of the code needs to be formatted. @code{autopep8} is
5723 capable of fixing most of the formatting issues that can be reported
5725 (license (license:non-copyleft
5726 "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
5728 (define-public python2-autopep8
5729 (package-with-python2 python-autopep8))
5731 (define-public python-distlib
5733 (name "python-distlib")
5738 (uri (pypi-uri "distlib" version ".zip"))
5741 "08fyi2r246733vharl2yckw20rilci28r91mzrnnvcr638inw5if"))))
5742 (build-system python-build-system)
5745 (modify-phases %standard-phases
5746 (add-before 'build 'no-/bin/sh
5748 (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
5749 (("/bin/sh") (which "sh")))
5751 (add-before 'check 'prepare-test-env
5753 (setenv "HOME" "/tmp")
5754 ;; NOTE: Any value works, the variable just has to be present.
5755 (setenv "SKIP_ONLINE" "1")
5757 (native-inputs `(("unzip" ,unzip)))
5758 (home-page "https://bitbucket.org/pypa/distlib")
5759 (synopsis "Distribution utilities")
5760 (description "Distlib is a library which implements low-level functions that
5761 relate to packaging and distribution of Python software. It is intended to be
5762 used as the basis for third-party packaging tools.")
5763 (license license:psfl)))
5765 ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
5766 (define-public python-distlib/next
5768 (inherit python-distlib)
5773 (uri (pypi-uri "distlib" version ".zip"))
5776 "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))))
5778 (define-public python-distutils-extra
5780 (name "python-distutils-extra")
5785 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
5786 version "/+download/python-distutils-extra-"
5790 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
5791 (build-system python-build-system)
5792 (home-page "https://launchpad.net/python-distutils-extra/")
5793 (synopsis "Enhancements to Python's distutils")
5795 "The python-distutils-extra module enables you to easily integrate
5796 gettext support, themed icons, and scrollkeeper-based documentation into
5797 Python's distutils.")
5798 (license license:gpl2)))
5800 (define-public python2-distutils-extra
5801 (package-with-python2 python-distutils-extra))
5803 (define-public python2-elib.intl
5805 (name "python2-elib.intl")
5809 ;; This project doesn't tag releases or publish tarballs, so we take
5810 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
5813 (url "https://github.com/dieterv/elib.intl")
5814 (commit "d09997cfef")))
5815 (file-name (string-append name "-" version "-checkout"))
5818 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
5819 (build-system python-build-system)
5821 ;; incompatible with Python 3 (exception syntax)
5822 `(#:python ,python-2
5824 (home-page "https://github.com/dieterv/elib.intl")
5825 (synopsis "Enhanced internationalization for Python")
5827 "The elib.intl module provides enhanced internationalization (I18N)
5828 services for your Python modules and applications.")
5829 (license license:lgpl3+)))
5831 (define-public python-olefile
5833 (name "python-olefile")
5838 (uri (string-append "https://github.com/decalage2/olefile/releases/"
5839 "download/v" version "/olefile-" version ".tar.gz"))
5840 (file-name (string-append name "-" version ".tar.gz"))
5843 "1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
5844 (build-system python-build-system)
5845 (home-page "https://www.decalage.info/python/olefileio")
5846 (synopsis "Read and write Microsoft OLE2 files.")
5848 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
5849 Storage or Compound Document, Microsoft Office). It is an improved version of
5850 the OleFileIO module from PIL, the Python Image Library.")
5851 (license license:bsd-3)))
5853 (define-public python2-olefile
5854 (package-with-python2 python-olefile))
5856 (define-public python-pikepdf
5858 (name "python-pikepdf")
5863 (uri (pypi-uri "pikepdf" version))
5865 (base32 "1n53fhdgnq9yxvm2m039vl8l2kg3fkln3pm0wv4rzj0gvpq9rhcr"))))
5866 (build-system python-build-system)
5868 `(#:tests? #false)) ;require python-xmp-toolkit
5870 `(("pybind11" ,pybind11)
5871 ("python-setuptools" ,python-setuptools)
5872 ("python-setuptools-scm" ,python-setuptools-scm/next)
5873 ("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)
5874 ("python-toml" ,python-toml)
5875 ("python-wheel" ,python-wheel)))
5879 `(("python-lxml" ,python-lxml)
5880 ("python-pillow" ,python-pillow)))
5881 (home-page "https://github.com/pikepdf/pikepdf")
5882 (synopsis "Read and write PDFs with Python")
5884 "pikepdf is a Python library for reading and writing PDF files.")
5885 (license license:mpl2.0)))
5887 (define-public python-pillow
5889 (name "python-pillow")
5894 (uri (pypi-uri "Pillow" version))
5897 "086g7nhv52wclrwnzbzs2x3nvyzs2hfq1bvgivsrp5f7r7wiiz7n"))))
5898 (build-system python-build-system)
5900 `(("python-pytest" ,python-pytest)))
5902 `(("freetype" ,freetype)
5904 ("libjpeg" ,libjpeg-turbo)
5905 ("libtiff" ,libtiff)
5906 ("libwebp" ,libwebp)
5907 ("openjpeg" ,openjpeg)
5910 `(("python-olefile" ,python-olefile)))
5913 (modify-phases %standard-phases
5914 (add-after 'unpack 'patch-ldconfig
5916 (substitute* "setup.py"
5917 (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
5919 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
5922 (setenv "HOME" (getcwd))
5923 ;; Make installed package available for running the tests.
5924 (add-installed-pythonpath inputs outputs)
5925 (invoke "python" "selftest.py" "--installed")
5926 (invoke "python" "-m" "pytest" "-vv"))
5928 (home-page "https://python-pillow.org")
5929 (synopsis "Fork of the Python Imaging Library")
5931 "The Python Imaging Library adds image processing capabilities to your
5932 Python interpreter. This library provides extensive file format support, an
5933 efficient internal representation, and fairly powerful image processing
5934 capabilities. The core image library is designed for fast access to data
5935 stored in a few basic pixel formats. It should provide a solid foundation for
5936 a general image processing tool.")
5937 (properties `((python2-variant . ,(delay python2-pillow))))
5938 (license (license:x11-style
5939 "http://www.pythonware.com/products/pil/license.htm"
5940 "The PIL Software License"))))
5942 (define-public python2-pillow
5943 (package-with-python2
5945 (inherit (strip-python2-variant python-pillow))
5946 ;; Version 6 is the last series with Python 2 support.
5951 (uri (pypi-uri "Pillow" version))
5954 "0l5rv8jkdrb5q846v60v03mcq64yrhklidjkgwv6s1pda71g17yv")))))))
5956 (define-public python-pillow-2.9
5958 (inherit python-pillow)
5963 (uri (pypi-uri "Pillow" version))
5966 "0ada7lf3lmbdsqm3b7ja920p1pllyfhmqndr85ikpj77fmz9s5qg"))))
5968 (substitute-keyword-arguments (package-arguments python-pillow)
5969 ((#:tests? _ #f) #f)))
5970 (properties '((hidden? #t)))))
5972 (define-public python-pillow-simd
5974 (inherit python-pillow)
5975 (name "python-pillow-simd")
5977 ;; The PyPI tarball does not include test files.
5982 (url "https://github.com/uploadcare/pillow-simd")
5984 (file-name (git-file-name name version))
5986 (base32 "0w11np4cybamry3jsg70x747c79zwjzfq0xiprfp6c186rd6nzp9"))))
5988 (substitute-keyword-arguments
5989 (package-arguments python-pillow)
5991 `(modify-phases ,phases
5992 (add-after 'unpack 'make-tests-writable
5994 (for-each make-file-writable (find-files "Tests"))
5997 `(("libraqm" ,libraqm)
5998 ("libimagequant" ,libimagequant)
5999 ,@(package-inputs python-pillow)))
6000 (home-page "https://github.com/uploadcare/pillow-simd")
6001 (synopsis "Fork of the Python Imaging Library (Pillow)")
6002 (description "This package is a fork of Pillow which adds support for SIMD
6005 (define-public python-roifile
6007 (name "python-roifile")
6008 (version "2020.5.28")
6012 (uri (pypi-uri "roifile" version))
6015 "1vwbwfsw745gyqymff6dllc5zqjsgqmxaw245sw4an6yw9rcbzc0"))))
6016 (build-system python-build-system)
6017 (arguments `(#:tests? #f)) ; there are none
6019 `(("python-numpy" ,python-numpy)))
6020 (home-page "https://www.lfd.uci.edu/~gohlke/")
6021 (synopsis "Read and write ImageJ ROI format")
6022 (description "Roifile is a Python library to read, write, create, and plot
6023 ImageJ ROIs, an undocumented and ImageJ application specific format to store
6024 regions of interest, geometric shapes, paths, text, etc for image overlays.")
6025 (license license:bsd-3)))
6027 (define-public python-tifffile
6029 (name "python-tifffile")
6030 (version "2020.6.3")
6034 (uri (pypi-uri "tifffile" version))
6037 "0xv3ynkbrsibqvx7250075idb7wm3canjd6lx2nzf3cbp6l07577"))))
6038 (build-system python-build-system)
6039 ;; Tests require lfdfiles, which depends on tifffile
6040 (arguments `(#:tests? #f))
6042 `(("python-numpy" ,python-numpy)
6043 ;;("python-lfdfiles" ,python-lfdfiles)
6044 ("python-roifile" ,python-roifile)))
6045 (home-page "https://www.lfd.uci.edu/~gohlke/")
6046 (synopsis "Read and write TIFF(r) files")
6047 (description "This package lets you read image and metadata from many
6048 bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,
6049 NIH, ImageJ, MicroManager, MD GEL, and FluoView files. It also lets you write
6050 numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
6051 (license license:bsd-3)))
6053 (define-public python-lfdfiles
6055 (name "python-lfdfiles")
6056 (version "2020.1.1")
6060 (uri (pypi-uri "lfdfiles" version))
6063 "1n9bkfn4vxl0lbhzd0m35lq86ayx5fwcj3ghpfl2vbjbsnfp3h47"))))
6064 (build-system python-build-system)
6066 `(("python-click" ,python-click)
6067 ("python-numpy" ,python-numpy)
6068 ("python-tifffile" ,python-tifffile)))
6069 (home-page "https://www.lfd.uci.edu/~gohlke/")
6070 (synopsis "Work with LFD data files")
6072 "Lfdfiles is a Python library and console script for reading, writing,
6073 converting, and viewing many of the proprietary file formats used to store
6074 experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
6075 (license license:bsd-3)))
6077 (define-public python-imageio
6079 (name "python-imageio")
6084 (uri (pypi-uri "imageio" version))
6087 "1ksjl523fm0fikrd85llxfba35rc1qsgwadgr6mbn9kis79xcpzv"))))
6088 (build-system python-build-system)
6090 `(#:tests? #f ; many tests require online data
6092 (modify-phases %standard-phases
6094 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
6097 ;; Make installed package available for running the tests.
6098 (add-installed-pythonpath inputs outputs)
6099 (invoke "pytest" "-vv"))
6102 `(("python-numpy" ,python-numpy)
6103 ("python-pillow" ,python-pillow)
6104 ("python-psutil" ,python-psutil)))
6106 `(("python-pytest" ,python-pytest)))
6107 (home-page "https://imageio.github.io/")
6108 (synopsis "Library for reading and writing a wide range of image data")
6110 "Imageio is a Python library that provides an easy interface to read and
6111 write a wide range of image data, including animated images, video, volumetric
6112 data, and scientific formats.")
6113 (license license:bsd-2)))
6115 (define-public python-pycparser
6117 (name "python-pycparser")
6122 (uri (pypi-uri "pycparser" version))
6125 "1w0m3xvlrzq4lkbvd1ngfm8mdw64r1yxy6n7djlw6qj5d0km6ird"))))
6126 (outputs '("out" "doc"))
6127 (build-system python-build-system)
6129 `(("pkg-config" ,pkg-config)))
6132 (modify-phases %standard-phases
6135 (with-directory-excursion "tests"
6136 (invoke "python" "all_tests.py"))
6138 (add-after 'install 'install-doc
6139 (lambda* (#:key outputs #:allow-other-keys)
6140 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6141 (doc (string-append data "/doc/" ,name "-" ,version))
6142 (examples (string-append doc "/examples")))
6144 (for-each (lambda (file)
6145 (copy-file (string-append "." file)
6146 (string-append doc file)))
6147 '("/README.rst" "/CHANGES" "/LICENSE"))
6148 (copy-recursively "examples" examples)
6150 (home-page "https://github.com/eliben/pycparser")
6151 (synopsis "C parser in Python")
6153 "Pycparser is a complete parser of the C language, written in pure Python
6154 using the PLY parsing library. It parses C code into an AST and can serve as
6155 a front-end for C compilers or analysis tools.")
6156 (license license:bsd-3)))
6158 (define-public python2-pycparser
6159 (package-with-python2 python-pycparser))
6161 (define-public python-xlsxwriter
6163 (name "python-xlsxwriter")
6167 ;; There are no tests in the PyPI tarball.
6170 (url "https://github.com/jmcnamara/XlsxWriter")
6171 (commit (string-append "RELEASE_" version))))
6172 (file-name (git-file-name name version))
6174 (base32 "1qg40r2mwrqfmhaxnary1cfgi0dwwazp5qga7c9p2cdji2v0x5rm"))))
6175 (build-system python-build-system)
6176 (home-page "https://github.com/jmcnamara/XlsxWriter")
6177 (synopsis "Python module for creating Excel XLSX files")
6179 "XlsxWriter is a Python module that can be used to write text, numbers,
6180 formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
6181 (license license:bsd-2)))
6183 (define-public python-pywavelets
6185 (name "python-pywavelets")
6187 (home-page "https://github.com/PyWavelets/pywt")
6190 (uri (pypi-uri "PyWavelets" version))
6193 "1j88c0r4j1d4mb3f8qhz6nalyx21qrzmsm70rjngnkybd87v8r0s"))))
6194 (build-system python-build-system)
6196 '(#:modules ((ice-9 ftw)
6200 (guix build python-build-system))
6202 (modify-phases %standard-phases
6205 (let ((cwd (getcwd))
6206 (libdir (find (cut string-prefix? "lib." <>)
6207 (scandir "build"))))
6208 (with-directory-excursion (string-append cwd "/build/" libdir)
6209 (invoke "pytest" "-vv"))))))))
6211 `(("python-matplotlib" ,python-matplotlib) ;for tests
6212 ("python-pytest" ,python-pytest)))
6214 `(("python-numpy" ,python-numpy)))
6215 (synopsis "Wavelet transforms in Python")
6217 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
6218 mathematical basis functions that are localized in both time and frequency.
6219 Wavelet transforms are time-frequency transforms employing wavelets. They are
6220 similar to Fourier transforms, the difference being that Fourier transforms are
6221 localized only in frequency instead of in time and frequency.")
6222 (license license:expat)))
6224 (define-public python-pywal
6226 (name "python-pywal")
6232 (url "https://github.com/dylanaraps/pywal")
6234 (file-name (git-file-name name version))
6236 (base32 "039m7dch479hlwddynacdrr0klz6a5bdly5swqbs94hfimficiyf"))))
6237 (build-system python-build-system)
6240 (modify-phases %standard-phases
6241 (add-before 'check 'fix-home-directory
6243 ;; Tests fail with "Permission denied: '/homeless-shelter'".
6244 (setenv "HOME" "/tmp")
6247 `(("imagemagick" ,imagemagick)))
6248 (home-page "https://github.com/dylanaraps/pywal")
6249 (synopsis "Color palette generator and applicator")
6251 "Pywal is a tool that generates a color palette from the dominant colors
6252 in an image. It then applies the colors system-wide and on-the-fly in all of
6253 your favourite programs.")
6254 (license license:expat)))
6256 (define-public python-pywinrm
6258 (name "python-pywinrm")
6263 (uri (pypi-uri "pywinrm" version))
6266 "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
6267 (build-system python-build-system)
6269 `(("python-six" ,python-six)
6270 ("python-requests_ntlm" ,python-requests_ntlm)
6271 ("python-xmltodict" ,python-xmltodict)
6272 ("python-kerberos" ,python-kerberos)))
6274 `(("python-mock" ,python-mock)
6275 ("python-pytest" ,python-pytest)))
6276 (home-page "https://github.com/diyan/pywinrm/")
6278 "Python library for Windows Remote Management (WinRM)")
6280 "pywinrm is a Python client for the Windows Remote Management (WinRM)
6281 service. It allows you to invoke commands on target Windows machines from
6282 any machine that can run Python.")
6283 (license license:expat)))
6285 (define-public python-xcffib
6287 (name "python-xcffib")
6292 (uri (pypi-uri "xcffib" version))
6295 "04k91yxyb3pgc5lvxmivh8w71yjrap2g57yk3s73x4rm4nvjq51n"))))
6296 (build-system python-build-system)
6298 `(("libxcb" ,libxcb)))
6300 `(("python-cffi" ,python-cffi) ; used at run time
6301 ("python-six" ,python-six)))
6303 `(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
6306 (modify-phases %standard-phases
6307 (add-after 'unpack 'fix-libxcb-path
6308 (lambda* (#:key inputs #:allow-other-keys)
6309 (let ((libxcb (assoc-ref inputs "libxcb")))
6310 (substitute* '("xcffib/__init__.py")
6311 (("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
6313 (add-after 'install 'install-doc
6314 (lambda* (#:key outputs #:allow-other-keys)
6315 (let ((doc (string-append (assoc-ref outputs "out") "/share"
6316 "/doc/" ,name "-" ,version)))
6318 (copy-file "README.md"
6319 (string-append doc "/README.md"))
6321 (home-page "https://github.com/tych0/xcffib")
6322 (synopsis "XCB Python bindings")
6324 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
6325 support for Python 3 and PyPy. It is based on cffi.")
6326 (license license:expat)))
6328 (define-public python2-xcffib
6329 (package-with-python2 python-xcffib))
6331 (define-public python-cairocffi
6333 (name "python-cairocffi")
6337 ;; The PyPI archive does not include the documentation, so use Git.
6340 (url "https://github.com/Kozea/cairocffi")
6341 (commit (string-append "v" version))))
6342 (file-name (git-file-name name version))
6345 "1ypw0c2lr43acn57hbmckk183zq4h477j7p4ig2zjvw0mcpvia50"))))
6346 (build-system python-build-system)
6347 (outputs '("out" "doc"))
6351 ("gdk-pixbuf" ,gdk-pixbuf)
6354 `(("python-numpy" ,python-numpy)
6355 ("python-pytest" ,python-pytest)
6356 ("python-pytest-cov" ,python-pytest-cov)
6357 ("python-pytest-runner" ,python-pytest-runner)
6358 ("python-sphinx" ,python-sphinx)
6359 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
6361 `(("python-xcffib" ,python-xcffib))) ; used at run time
6364 (modify-phases %standard-phases
6365 (add-after 'unpack 'patch-paths
6366 (lambda* (#:key inputs #:allow-other-keys)
6367 (substitute* "cairocffi/__init__.py"
6368 ;; Hack the dynamic library loading mechanism.
6369 (("find_library\\(library_name\\)")
6371 (("filenames = \\(library_filename,\\) \\+ filenames")
6374 (string-append (assoc-ref inputs "cairo")
6375 "/lib/libcairo.so.2")))
6376 (substitute* "cairocffi/pixbuf.py"
6377 (("libgdk_pixbuf-2.0.so.0")
6378 (string-append (assoc-ref inputs "gdk-pixbuf")
6379 "/lib/libgdk_pixbuf-2.0.so.0"))
6380 (("libgobject-2.0.so.0")
6381 (string-append (assoc-ref inputs "glib")
6382 "/lib/libgobject-2.0.so.0"))
6383 (("libglib-2.0.so.0")
6384 (string-append (assoc-ref inputs "glib")
6385 "/lib/libglib-2.0.so.0"))
6387 (string-append (assoc-ref inputs "gtk+")
6388 "/lib/libgdk-3.so.0")))
6390 (add-after 'unpack 'disable-linters
6391 ;; Their check fails; none of our business.
6393 (substitute* "setup.cfg"
6394 ((".*pytest-flake8.*") "")
6395 ((".*pytest-isort.*") "")
6399 (add-after 'install 'install-doc
6400 (lambda* (#:key inputs outputs #:allow-other-keys)
6401 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6402 (doc (string-append data "/doc/" ,name "-" ,version))
6403 (html (string-append doc "/html")))
6404 (setenv "LD_LIBRARY_PATH"
6405 (string-append (assoc-ref inputs "cairo") "/lib" ":"
6406 (assoc-ref inputs "gdk-pixbuf") "/lib"))
6407 (setenv "LANG" "en_US.UTF-8")
6409 (for-each (lambda (file)
6410 (copy-file (string-append "." file)
6411 (string-append doc file)))
6412 '("/README.rst" "/NEWS.rst"))
6413 (system* "python" "setup.py" "build_sphinx")
6414 (copy-recursively "docs/_build/html" html)
6416 (home-page "https://github.com/Kozea/cairocffi")
6417 (synopsis "Python bindings and object-oriented API for Cairo")
6419 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
6420 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
6421 graphics library with support for multiple backends including image buffers,
6422 PNG, PostScript, PDF, and SVG file output.")
6423 (license license:bsd-3)))
6425 (define-public python-decorator
6427 (name "python-decorator")
6432 (uri (pypi-uri "decorator" version))
6434 (base32 "0308djallnh00v112y5b7nadl657ysmkp6vc8xn51d6yzc9zm7n3"))))
6435 (build-system python-build-system)
6436 (home-page "https://pypi.org/project/decorator/")
6437 (synopsis "Python module to simplify usage of decorators")
6439 "The aim of the decorator module is to simplify the usage of decorators
6440 for the average programmer, and to popularize decorators usage giving examples
6441 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
6442 etc. The core of this module is a decorator factory.")
6443 (license license:expat)))
6445 (define-public python2-decorator
6446 (package-with-python2 python-decorator))
6448 (define-public python-drmaa
6450 (name "python-drmaa")
6455 (uri (pypi-uri "drmaa" version))
6457 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
6458 (build-system python-build-system)
6459 ;; The test suite requires libdrmaa which is provided by the cluster
6460 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
6461 ;; should be set to the path of the libdrmaa library.
6462 (arguments '(#:tests? #f))
6464 `(("python-nose" ,python-nose)))
6465 (home-page "https://pypi.org/project/drmaa/")
6466 (synopsis "Python bindings for the DRMAA library")
6468 "A Python package for Distributed Resource Management (DRM) job
6469 submission and control. This package is an implementation of the DRMAA 1.0
6470 Python language binding specification.")
6471 (license license:bsd-3)))
6473 (define-public python2-drmaa
6474 (package-with-python2 python-drmaa))
6476 (define-public python-grako
6478 (name "python-grako")
6484 (pypi-uri "grako" version ".zip"))
6487 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
6488 (build-system python-build-system)
6489 (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
6492 ("python-pytest" ,python-pytest)
6493 ("python-pytest-runner" ,python-pytest-runner)))
6494 (home-page "https://bitbucket.org/neogeny/grako")
6495 (synopsis "EBNF parser generator")
6497 "Grako takes a grammar in a variation of EBNF as input, and outputs a
6498 memoizing PEG/Packrat parser in Python.")
6499 (license license:bsd-3)))
6501 (define-public python2-grako
6502 (package-with-python2 python-grako))
6504 (define-public python-grandalf
6506 (name "python-grandalf")
6510 ;; There's no source tarball on PyPI.
6513 (url "https://github.com/bdcht/grandalf")
6514 (commit (string-append "v" version))))
6515 (file-name (git-file-name name version))
6518 "03p8w8ljpb87qbyldm3s6b7qi30hfcn43h33iwlgqcf31fjsyr4g"))))
6519 (build-system python-build-system)
6522 (modify-phases %standard-phases
6525 (invoke "python" "setup.py" "pytest"))))))
6527 `(("python-pytest" ,python-pytest)
6528 ("python-pytest-runner" ,python-pytest-runner)))
6530 `(("python-numpy" ,python-numpy)
6531 ("python-ply" ,python-ply)))
6532 (home-page "https://github.com/bdcht/grandalf")
6533 (synopsis "Graph and drawing algorithms framework")
6535 "Grandalf is a Python package made for experimentations with graphs
6536 drawing algorithms. It is written in pure Python, and currently implements
6537 two layouts: the Sugiyama hierarchical layout and the force-driven or energy
6538 minimization approach. While not as fast or featured as graphviz or other
6539 libraries like OGDF (C++), it provides a way to walk and draw graphs no larger
6540 than thousands of nodes, while keeping the source code simple enough to tweak
6541 and hack any part of it for experimental purpose. With a total of about 1500
6542 lines of Python, the code involved in drawing the Sugiyama (dot) layout fits
6543 in less than 600 lines. The energy minimization approach is comprised of only
6546 Grandalf does only 2 not-so-simple things:
6548 @item computing the nodes (x,y) coordinates (based on provided nodes
6549 dimensions, and a chosen layout)
6550 @item routing the edges with lines or nurbs
6553 It doesn’t depend on any GTK/Qt/whatever graphics toolkit. This means that it
6554 will help you find where to draw things like nodes and edges, but it’s up to
6555 you to actually draw things with your favorite toolkit.")
6556 ;; The user can choose either license.
6557 (license (list license:gpl2 license:epl1.0))))
6559 (define-public python-gridmap
6561 (name "python-gridmap")
6567 (url "https://github.com/pygridtools/gridmap")
6568 (commit (string-append "v" version))))
6569 (file-name (git-file-name name version))
6571 (base32 "0v0sgpg6pz8h61f9aqjf5xk0ipr512bbz8dxzjjylksj135qr19l"))))
6572 (build-system python-build-system)
6574 '(#:tests? #f)) ; FIXME: Requires python-cherrypy.
6576 `(("python-psutil" ,python-psutil)
6577 ("python-drmaa" ,python-drmaa)
6578 ("python-pyzmq" ,python-pyzmq)))
6579 (home-page "https://github.com/pygridtools/gridmap")
6580 (synopsis "Create jobs on a cluster directly from Python")
6582 "Gridmap is a Python package to allow you to easily create jobs on the
6583 cluster directly from Python. You can directly map Python functions onto the
6584 cluster without needing to write any wrapper code yourself.")
6585 (license license:gpl3+)))
6587 (define-public python2-gridmap
6588 (package-with-python2 python-gridmap))
6590 (define-public python-honcho
6592 (name "python-honcho")
6598 (url "https://github.com/nickstenning/honcho")
6599 (commit (string-append "v" version))))
6600 (file-name (git-file-name name version))
6602 (base32 "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b"))))
6603 (build-system python-build-system)
6605 `(("python-pytest" ,python-pytest)
6606 ("python-mock" ,python-mock)
6607 ("python-tox" ,python-tox)
6608 ("which" ,which))) ;for tests
6610 `(("python-jinja2" ,python-jinja2)))
6613 (modify-phases %standard-phases
6615 (add-after 'install 'check
6616 (lambda* (#:key outputs inputs #:allow-other-keys)
6617 ;; fix honcho path in testsuite
6618 (substitute* "tests/conftest.py"
6619 (("'honcho'") (string-append "'" (assoc-ref outputs "out")
6620 "/bin/honcho" "'")))
6621 ;; It's easier to run tests after install.
6622 ;; Make installed package available for running the tests
6623 (add-installed-pythonpath inputs outputs)
6624 (invoke "py.test" "-v"))))))
6625 (home-page "https://github.com/nickstenning/honcho")
6626 (synopsis "Manage Procfile-based applications")
6628 "A Procfile is a file which describes how to run an application
6629 consisting of several processes. honcho starts all listed processes.
6630 The output of all running processes is collected by honcho and
6632 (license license:expat)))
6634 (define-public python-pexpect
6636 (name "python-pexpect")
6641 (uri (pypi-uri "pexpect" version))
6643 (base32 "032cg337h8awydgypz6f4wx848lw8dyrj4zy988x0lyib4ws8rgw"))))
6644 (build-system python-build-system)
6647 (modify-phases %standard-phases
6648 (add-before 'check 'prepare-tests
6650 (substitute* (find-files "tests")
6651 (("/bin/ls") (which "ls"))
6652 (("/bin/echo") (which "echo"))
6653 (("/bin/which") (which "which"))
6654 ;; Many tests try to use the /bin directory which
6655 ;; is not present in the build environment.
6656 ;; Use one that's non-empty and unlikely to change.
6658 ;; Disable failing test. See upstream bug report
6659 ;; https://github.com/pexpect/pexpect/issues/568
6660 (("def test_bash") "def _test_bash"))
6661 ;; XXX: Socket connection test gets "Connection reset by peer".
6662 ;; Why does it not work? Delete for now.
6663 (delete-file "tests/test_socket.py")
6665 (replace 'check (lambda _ (invoke "nosetests" "-v"))))))
6667 `(("python-nose" ,python-nose)
6668 ("python-pytest" ,python-pytest)
6671 ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
6673 `(("python-ptyprocess" ,python-ptyprocess)))
6674 (home-page "http://pexpect.readthedocs.org/")
6675 (synopsis "Controlling interactive console applications")
6677 "Pexpect is a pure Python module for spawning child applications;
6678 controlling them; and responding to expected patterns in their output.
6679 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
6680 child application and control it as if a human were typing commands.")
6681 (license license:isc)))
6683 (define-public python2-pexpect
6684 (package-with-python2 python-pexpect))
6686 (define-public python-setuptools-scm
6688 (name "python-setuptools-scm")
6692 (uri (pypi-uri "setuptools_scm" version))
6695 "083k93wi7mrmp1cn28hcbnr6sivbgls0y7zz2m5qzn1wg04a3f16"))))
6696 (build-system python-build-system)
6697 (home-page "https://github.com/pypa/setuptools_scm/")
6698 (synopsis "Manage Python package versions in SCM metadata")
6700 "Setuptools_scm handles managing your Python package versions in
6701 @dfn{software configuration management} (SCM) metadata instead of declaring
6702 them as the version argument or in a SCM managed file.")
6703 (license license:expat)))
6705 ;; TODO: Merge with 'python-setuptools-scm' on the next rebuild cycle.
6706 (define-public python-setuptools-scm/next
6708 (inherit python-setuptools-scm)
6713 (uri (pypi-uri "setuptools_scm" version))
6715 (base32 "0ahlrxxkx2xhmxskx57gc96w3bdndflxx30304ihvm7ds136nny8"))))))
6717 (define-public python2-setuptools-scm
6718 (package-with-python2 python-setuptools-scm))
6720 (define-public python-sexpdata
6722 (name "python-sexpdata")
6727 (uri (pypi-uri "sexpdata" version))
6730 "1q4lsjyzzqrdv64l0pv4ij9nd8gqhvxqcrpxc2xpxs652sk2gj0s"))))
6731 (build-system python-build-system)
6732 (home-page "https://github.com/jd-boyd/sexpdata")
6733 (synopsis "S-expression parser for Python")
6735 "Sexpdata is an S-expression parser/serializer. It has load and dump
6736 functions like pickle, json or PyYAML module.")
6737 (license license:bsd-3)))
6739 (define-public python-pathlib2
6741 (name "python-pathlib2")
6746 (uri (pypi-uri "pathlib2" version))
6749 "0hpp92vqqgcd8h92msm9slv161b1q160igjwnkf2ag6cx0c96695"))))
6750 (build-system python-build-system)
6752 `(("python-scandir" ,python-scandir)
6753 ("python-six" ,python-six)))
6754 (home-page "https://pypi.org/project/pathlib2/")
6755 (synopsis "Object-oriented file system paths")
6756 (description "The goal of pathlib2 is to provide a backport of the
6757 standard @code{pathlib} module which tracks the standard library module, so
6758 all the newest features of the standard @code{pathlib} can be used also on
6759 older Python versions.")
6760 (license license:expat)))
6762 (define-public python-importlib-resources
6764 (name "python-importlib-resources")
6769 (uri (pypi-uri "importlib_resources" version))
6772 "1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
6773 (build-system python-build-system)
6775 `(("python-setuptools-scm" ,python-setuptools-scm)
6776 ("python-toml" ,python-toml)))
6777 (home-page "http://importlib-resources.readthedocs.io/")
6778 (synopsis "Read resources from Python packages")
6780 "@code{importlib_resources} is a backport of Python 3's standard library
6781 @code{importlib.resources} module for Python 2.7, and Python 3.")
6782 (properties `((python2-variant . ,(delay python2-importlib-resources))))
6783 (license license:asl2.0)))
6785 (define-public python2-importlib-resources
6787 (name "python2-importlib-resources")
6791 (uri (pypi-uri "importlib_resources" version))
6794 "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
6795 (build-system python-build-system)
6797 `(#:python ,python-2
6798 #:phases (modify-phases %standard-phases
6799 ;; The build system tests for python-wheel, but it is
6800 ;; not required for Guix nor the test suite. Just drop
6801 ;; it to make bootstrapping pytest easier.
6802 (add-after 'unpack 'drop-wheel-dependency
6804 (substitute* "setup.cfg"
6805 (("^[[:blank:]]+wheel")
6809 `(("python-pathlib2" ,python2-pathlib2)
6810 ("python-typing" ,python2-typing)))
6811 (home-page "https://gitlab.com/python-devs/importlib_resources")
6812 (synopsis "Backport of @code{importlib.resources} from Python 3.7")
6814 "This package provides an implementation of @code{importlib.resources}
6815 for older versions of Python.")
6816 (license license:asl2.0)))
6818 ;; For importlib-metadata-bootstrap below.
6819 (define-public python2-importlib-resources-bootstrap
6822 python2-importlib-resources
6823 (name "python2-importlib-resources-bootstrap")
6825 `(("python-pathlib2-bootstrap" ,python2-pathlib2-bootstrap)
6826 ("python-typing" ,python2-typing))))))
6828 (define-public python-importlib-metadata
6830 (name "python-importlib-metadata")
6835 (uri (pypi-uri "importlib_metadata" version))
6838 "00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
6839 (build-system python-build-system)
6841 `(("python-zipp" ,python-zipp)))
6843 `(("python-setuptools-scm" ,python-setuptools-scm)
6844 ("python-pyfakefs" ,python-pyfakefs)
6845 ("python-packaging" ,python-packaging)))
6846 (home-page "https://importlib-metadata.readthedocs.io/")
6847 (synopsis "Read metadata from Python packages")
6849 "@code{importlib_metadata} is a library which provides an API for
6850 accessing an installed Python package's metadata, such as its entry points or
6851 its top-level name. This functionality intends to replace most uses of
6852 @code{pkg_resources} entry point API and metadata API. Along with
6853 @code{importlib.resources} in Python 3.7 and newer, this can eliminate the
6854 need to use the older and less efficient @code{pkg_resources} package.")
6855 (properties `((python2-variant . ,(delay python2-importlib-metadata))))
6856 (license license:asl2.0)))
6858 (define-public python2-importlib-metadata
6859 (let ((base (package-with-python2 (strip-python2-variant
6860 python-importlib-metadata))))
6863 (name "python2-importlib-metadata")
6865 `(("python-setuptools-scm" ,python2-setuptools-scm)
6866 ("python-pyfakefs" ,python2-pyfakefs-bootstrap)
6867 ("python-packaging" ,python2-packaging-bootstrap)))
6869 `(("python-configparser" ,python2-configparser)
6870 ("python-contextlib2" ,python2-contextlib2)
6871 ("python-importlib-resources" ,python2-importlib-resources)
6872 ("python-pathlib2" ,python2-pathlib2)
6873 ,@(package-propagated-inputs base))))))
6875 ;; This package is used by python2-pytest, and thus must not depend on it.
6876 (define-public python2-importlib-metadata-bootstrap
6879 python2-importlib-metadata
6880 (name "python2-importlib-metadata-bootstrap")
6883 ,@(package-arguments python2-importlib-metadata)))
6885 `(("python-zipp" ,python2-zipp-bootstrap)
6886 ("python-pathlib2" ,python2-pathlib2-bootstrap)
6887 ("python-configparser" ,python2-configparser)
6888 ("python-contextlib2" ,python2-contextlib2-bootstrap)
6889 ("python-importlib-resources" ,python2-importlib-resources-bootstrap))))))
6891 (define-public python-importmagic
6893 (name "python-importmagic")
6898 (uri (pypi-uri "importmagic" version))
6901 "1n7qxa1snj06aw45mcfz7bxc46zp7fxj687140g2k6jcnyjmfxrz"))))
6902 (build-system python-build-system)
6903 (home-page "https://github.com/alecthomas/importmagic")
6904 (synopsis "Library for adding, removing and managing Python imports")
6906 "Importmagic is a Python library for automatically managing imports by
6907 finding unresolved symbols in Python code and their corresponding imports.")
6908 (license license:bsd-3)))
6910 (define-public python-inotify-simple
6912 (name "python-inotify-simple")
6918 (url "https://github.com/chrisjbillington/inotify_simple")
6920 (file-name (git-file-name name version))
6922 (base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05"))))
6923 (build-system python-build-system)
6925 "https://github.com/chrisjbillington/inotify_simple")
6926 (synopsis "Simple wrapper around inotify library")
6928 "@code{inotify-simple} is a simple wrapper around inotify library.")
6929 (license license:bsd-3)))
6931 (define-public python-jaraco-packaging
6933 (name "python-jaraco-packaging")
6938 (uri (pypi-uri "jaraco.packaging" version))
6941 "0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
6942 (build-system python-build-system)
6944 `(("python-pytest" ,python-pytest)
6945 ("python-pytest-checkdocs" ,python-pytest-checkdocs)
6946 ("python-pytest-flake8" ,python-pytest-flake8)
6947 ("python-rst.linker" ,python-rst.linker)
6948 ("python-setuptools" ,python-setuptools)
6949 ("python-setuptools-scm" ,python-setuptools-scm)
6950 ("python-six" ,python-six)
6951 ("python-sphinx" ,python-sphinx)))
6952 (home-page "https://github.com/jaraco/jaraco.packaging")
6953 (synopsis "Tools to supplement packaging Python releases")
6955 "This package provides various tools to supplement packaging Python
6957 (license license:expat)))
6959 (define-public python-pathpy
6961 (name "python-pathpy")
6966 (uri (pypi-uri "path.py" version))
6968 (base32 "0ir9j1haq2jbi7aip6k2fa9l7q1l03k4hp1awxhjhcwzsnwp3ll8"))))
6969 (outputs '("out" "doc"))
6970 (build-system python-build-system)
6972 `(("python-appdirs" ,python-appdirs)
6973 ("python-importlib-metadata" ,python-importlib-metadata)))
6975 `(("python-setuptools-scm" ,python-setuptools-scm)
6976 ("python-sphinx" ,python-sphinx)
6977 ("python-rst.linker" ,python-rst.linker)
6978 ("python-pytest" ,python-pytest)
6979 ("python-pytest-runner" ,python-pytest-runner)
6980 ("python-jaraco-packaging" ,python-jaraco-packaging)))
6983 (modify-phases %standard-phases
6984 (add-after 'build 'build-doc
6986 (setenv "LANG" "en_US.UTF-8")
6987 (invoke "python" "setup.py" "build_sphinx")))
6988 (add-after 'install 'install-doc
6989 (lambda* (#:key outputs #:allow-other-keys)
6990 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6991 (doc (string-append data "/doc/" ,name "-" ,version))
6992 (html (string-append doc "/html")))
6994 (for-each (lambda (file)
6995 (copy-file file (string-append doc "/" file)))
6996 '("README.rst" "CHANGES.rst"))
6997 (copy-recursively "build/sphinx/html" html)
7001 ;; The import time test aborts if an import takes longer than
7002 ;; 100ms. It may very well take a little longer than that.
7003 (invoke "pytest" "-v" "-k" "not test_import_time"))))))
7004 (home-page "https://github.com/jaraco/path.py")
7005 (synopsis "Python module wrapper for built-in os.path")
7007 "@code{path.py} implements path objects as first-class entities, allowing
7008 common operations on files to be invoked on those path objects directly.")
7009 (license license:expat)))
7011 (define-public python-simplegeneric
7013 (name "python-simplegeneric")
7018 (uri (pypi-uri "simplegeneric" version ".zip"))
7020 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
7021 (build-system python-build-system)
7023 `(("unzip" ,unzip)))
7024 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
7025 (synopsis "Python module for simple generic functions")
7027 "The simplegeneric module lets you define simple single-dispatch generic
7028 functions, akin to Python’s built-in generic functions like @code{len()},
7029 @code{iter()} and so on. However, instead of using specially-named methods,
7030 these generic functions use simple lookup tables, akin to those used by
7031 e.g. @code{pickle.dump()} and other generic functions found in the Python
7033 (license license:zpl2.1)))
7035 (define-public python2-simplegeneric
7036 (package-with-python2 python-simplegeneric))
7038 (define-public python-ipython-genutils
7039 ;; TODO: This package is retired, check if can be removed, see description.
7041 (name "python-ipython-genutils")
7046 (uri (pypi-uri "ipython_genutils" version))
7048 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
7049 (build-system python-build-system)
7050 (arguments `(#:tests? #f)) ; no tests
7051 (home-page "https://ipython.org")
7052 (synopsis "Vestigial utilities from IPython")
7054 "This package provides retired utilities from IPython. No packages
7055 outside IPython/Jupyter should depend on it.
7057 This package shouldn't exist. It contains some common utilities shared by
7058 Jupyter and IPython projects during The Big Split. As soon as possible, those
7059 packages will remove their dependency on this, and this package will go
7061 (license license:bsd-3)))
7063 (define-public python2-ipython-genutils
7064 (package-with-python2 python-ipython-genutils))
7066 (define-public python-ipyparallel
7068 (name "python-ipyparallel")
7073 (uri (pypi-uri "ipyparallel" version))
7076 "0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn"))))
7077 (build-system python-build-system)
7079 `(#:tests? #f ; RuntimeError: IO Loop failed to start
7081 (modify-phases %standard-phases
7082 (add-before 'check 'prepare-for-tests
7084 (setenv "HOME" (getcwd))
7087 `(("python-dateutil" ,python-dateutil)
7088 ("python-decorator" ,python-decorator)
7089 ("python-ipykernel" ,python-ipykernel)
7090 ("python-ipython" ,python-ipython)
7091 ("python-ipython-genutils" ,python-ipython-genutils)
7092 ("python-jupyter-client" ,python-jupyter-client)
7093 ("python-pyzmq" ,python-pyzmq)
7094 ("python-tornado" ,python-tornado)
7095 ("python-traitlets" ,python-traitlets)))
7097 `(("python-ipython" ,python-ipython)
7098 ("python-mock" ,python-mock)
7099 ("python-nose" ,python-nose)
7100 ("python-pytest" ,python-pytest)
7101 ("python-pytest-cov" ,python-pytest-cov)
7102 ("python-testpath" ,python-testpath)))
7103 (home-page "https://ipython.org/")
7104 (synopsis "Interactive Parallel Computing with IPython")
7106 "@code{ipyparallel} is a Python package and collection of CLI scripts for
7107 controlling clusters for Jupyter. @code{ipyparallel} contains the following
7110 @item ipcluster - start/stop a cluster
7111 @item ipcontroller - start a scheduler
7112 @item ipengine - start an engine
7114 (license license:bsd-3)))
7116 (define-public python2-ipyparallel
7117 (let ((ipyparallel (package-with-python2 python-ipyparallel)))
7118 (package/inherit ipyparallel
7120 `(("python2-futures" ,python2-futures)
7121 ,@(package-propagated-inputs ipyparallel))))))
7123 (define-public python-ipython-cluster-helper
7125 (name "python-ipython-cluster-helper")
7130 (uri (pypi-uri "ipython-cluster-helper" version))
7133 "1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj"))
7134 (modules '((guix build utils)))
7136 '(begin (substitute* "requirements.txt"
7137 (("ipython.*") "ipython\n"))
7139 (build-system python-build-system)
7141 `(#:tests? #f ; Test suite can't find IPython.
7143 (modify-phases %standard-phases
7145 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
7148 (setenv "HOME" (getcwd))
7149 (add-installed-pythonpath inputs outputs)
7150 (invoke "python" "example/example.py" "--local"))
7153 `(("python-ipyparallel" ,python-ipyparallel)
7154 ("python-ipython" ,python-ipython)
7155 ("python-netifaces" ,python-netifaces)
7156 ("python-pyzmq" ,python-pyzmq)
7157 ("python-setuptools" ,python-setuptools)
7158 ("python-six" ,python-six)))
7159 (home-page "https://github.com/roryk/ipython-cluster-helper")
7161 "Simplify IPython cluster start up and use for multiple schedulers")
7163 "@code{ipython-cluster-helper} creates a throwaway parallel IPython
7164 profile, launches a cluster and returns a view. On program exit it shuts the
7165 cluster down and deletes the throwaway profile.")
7166 (license license:expat)))
7168 (define-public python2-ipython-cluster-helper
7169 (package-with-python2 python-ipython-cluster-helper))
7171 (define-public python-traitlets
7173 (name "python-traitlets")
7178 (uri (pypi-uri "traitlets" version))
7181 "1xsrwgivpkxlbr4dfndfsi098s29yqgswgjc1qqn69yxklvfw8yh"))))
7182 (build-system python-build-system)
7185 (modify-phases %standard-phases
7186 (replace 'check (lambda _ (invoke "pytest" "-vv" "traitlets"))))))
7188 `(("python-ipython-genutils" ,python-ipython-genutils)
7189 ("python-decorator" ,python-decorator)))
7191 `(("python-pytest" ,python-pytest)))
7192 (properties `((python2-variant . ,(delay python2-traitlets))))
7193 (home-page "https://ipython.org")
7194 (synopsis "Configuration system for Python applications")
7196 "Traitlets is a framework that lets Python classes have attributes with
7197 type checking, dynamically calculated default values, and ‘on change’
7198 callbacks. The package also includes a mechanism to use traitlets for
7199 configuration, loading values from files or from command line arguments. This
7200 is a distinct layer on top of traitlets, so you can use traitlets in your code
7201 without using the configuration machinery.")
7202 (license license:bsd-3)))
7204 (define-public python2-traitlets
7205 (let ((traitlets (package-with-python2 (strip-python2-variant python-traitlets))))
7206 (package/inherit traitlets
7208 `(("python2-enum34" ,python2-enum34)
7209 ,@(package-propagated-inputs traitlets))))))
7211 (define-public python-jupyter-core
7213 (name "python-jupyter-core")
7218 (uri (string-append (pypi-uri "jupyter_core" version)))
7221 "1dy083rarba8prn9f9srxq3c7n7vyql02ycrqq306c40lr57aw5s"))))
7222 (build-system python-build-system)
7223 ;; FIXME: not sure how to run the tests
7224 (arguments `(#:tests? #f))
7226 `(("python-traitlets" ,python-traitlets)))
7227 (home-page "https://jupyter.org/")
7228 (synopsis "Jupyter base package")
7230 "Jupyter core is the base package on which Jupyter projects rely.")
7231 (license license:bsd-3)))
7233 (define-public python2-jupyter-core
7234 (package-with-python2 python-jupyter-core))
7236 (define-public python-jupyter-client
7238 (name "python-jupyter-client")
7243 (uri (pypi-uri "jupyter_client" version))
7246 "0l9mh7ccrpl3lppym3dnky8n1nk7xarzzdcxf4q2s7aw203cpydm"))))
7247 (build-system python-build-system)
7248 ;; Tests fail because of missing native python kernel which I assume is
7249 ;; provided by the ipython package, which we cannot use because it would
7250 ;; cause a dependency cycle.
7254 #:phases (modify-phases %standard-phases
7255 (add-after 'unpack 'set-tool-file-names
7256 (lambda* (#:key inputs #:allow-other-keys)
7257 (let ((iproute (assoc-ref inputs "iproute")))
7258 (substitute* "jupyter_client/localinterfaces.py"
7260 (string-append "'" iproute "/sbin/ip'")))
7263 `(("iproute" ,iproute)))
7265 `(("python-pyzmq" ,python-pyzmq)
7266 ("python-traitlets" ,python-traitlets)
7267 ("python-jupyter-core" ,python-jupyter-core)))
7268 (home-page "https://jupyter.org/")
7269 (synopsis "Jupyter protocol implementation and client libraries")
7271 "The @code{jupyter_client} package contains the reference implementation
7272 of the Jupyter protocol. It also provides client and kernel management APIs
7273 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
7274 installing @code{kernelspec}s for use with Jupyter frontends.")
7275 (license license:bsd-3)))
7277 (define-public python2-jupyter-client
7278 (package-with-python2 python-jupyter-client))
7280 (define-public python-ipykernel
7282 (name "python-ipykernel")
7287 (uri (pypi-uri "ipykernel" version))
7289 (base32 "1a08y677lpn80qzvv7z0smgggmr5m5ayf0bs6vds47xpxl9sss5k"))))
7290 (build-system python-build-system)
7293 (modify-phases %standard-phases
7296 (setenv "HOME" "/tmp")
7297 (invoke "pytest" "-v")
7299 (add-after 'install 'set-python-file-name
7300 (lambda* (#:key outputs #:allow-other-keys)
7301 ;; Record the absolute file name of the 'python' executable in
7303 (let ((out (assoc-ref outputs "out")))
7304 (substitute* (string-append out "/share/jupyter"
7305 "/kernels/python3/kernel.json")
7307 (string-append "\"" (which "python") "\"")))
7310 `(("python-ipython" ,python-ipython)
7311 ;; imported at runtime during connect
7312 ("python-jupyter-client" ,python-jupyter-client)))
7314 `(("python-flaky" ,python-flaky)
7315 ("python-nose" ,python-nose)
7316 ("python-pytest" ,python-pytest)))
7317 (home-page "https://ipython.org")
7318 (synopsis "IPython Kernel for Jupyter")
7320 "This package provides the IPython kernel for Jupyter.")
7321 (properties `((python2-variant . ,(delay python2-ipykernel))))
7322 (license license:bsd-3)))
7324 ;; Version 5.x and above no longer support Python 2.
7325 (define-public python2-ipykernel
7327 (name "python2-ipykernel")
7332 (uri (pypi-uri "ipykernel" version))
7334 (base32 "1yzmdiy1djsszqp54jzd8ym8h4hpl67zjq83j2kxbkp0rwmlpdzf"))))
7335 (build-system python-build-system)
7337 `(#:python ,python-2))
7339 `(("python2-ipython" ,python2-ipython)
7340 ;; imported at runtime during connect
7341 ("python2-jupyter-client" ,python2-jupyter-client)
7342 ("python2-tornado" ,python2-tornado)
7343 ("python2-traitlets" ,python2-traitlets)))
7345 `(("python2-mock" ,python2-mock)
7346 ("python2-nose" ,python2-nose)
7347 ("python2-pytest" ,python2-pytest)
7348 ("python2-pytest-cov" ,python2-pytest-cov)))
7349 (home-page "https://ipython.org")
7350 (synopsis "IPython Kernel for Jupyter")
7352 "This package provides the IPython kernel for Jupyter.")
7353 (license license:bsd-3)))
7355 (define-public python-pari-jupyter
7357 (name "python-pari-jupyter")
7362 (uri (pypi-uri "pari_jupyter" version))
7365 "1yash0p422nnin7z58b99d0p23nx79f5m0mainc9hsjg72jhdhr6"))))
7366 (build-system python-build-system)
7368 `(("python-ipykernel" ,python-ipykernel)))
7370 `(("pari-gp" ,pari-gp)
7371 ("readline" ,readline)))
7373 `(#:tests? #f)) ; no test suite
7375 "https://github.com/jdemeyer/pari_jupyter")
7376 (synopsis "A Jupyter kernel for PARI/GP")
7377 (description "The package provides a PARI/GP kernel for Jupyter.")
7378 (license license:gpl3+)))
7380 (define-public python-backcall
7382 (name "python-backcall")
7387 (uri (pypi-uri "backcall" version))
7390 "07jy4562lvnhkk6kfr3cphmizy88anlhmbwb8kdzlz2ypqkvzgaw"))))
7391 (build-system python-build-system)
7392 (home-page "https://github.com/takluyver/backcall/")
7393 (synopsis "Specifications for callback functions passed in to an API")
7395 "If your code lets other people supply callback functions, it's important
7396 to specify the function signature you expect, and check that functions support
7397 that. Adding extra parameters later would break other peoples code unless
7398 you're careful. The @code{backcall} package provides a way of specifying the
7399 callback signature using a prototype function.")
7400 (license license:bsd-3)))
7402 (define-public python-ipython
7404 (name "python-ipython")
7409 (uri (pypi-uri "ipython" version ".tar.gz"))
7411 (base32 "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz"))))
7412 (build-system python-build-system)
7414 `(("python-backcall" ,python-backcall)
7415 ("python-pyzmq" ,python-pyzmq)
7416 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
7417 ("python-terminado" ,python-terminado)
7418 ("python-matplotlib" ,python-matplotlib)
7419 ("python-numpy" ,python-numpy)
7420 ("python-numpydoc" ,python-numpydoc)
7421 ("python-jedi" ,python-jedi)
7422 ("python-jinja2" ,python-jinja2)
7423 ("python-mistune" ,python-mistune)
7424 ("python-pexpect" ,python-pexpect)
7425 ("python-pickleshare" ,python-pickleshare)
7426 ("python-simplegeneric" ,python-simplegeneric)
7427 ("python-jsonschema" ,python-jsonschema)
7428 ("python-traitlets" ,python-traitlets)
7429 ("python-nbformat" ,python-nbformat)
7430 ("python-pygments" ,python-pygments)))
7432 `(("readline" ,readline)
7435 `(("graphviz" ,graphviz)
7436 ("pkg-config" ,pkg-config)
7437 ("python-requests" ,python-requests) ;; for tests
7438 ("python-testpath" ,python-testpath)
7439 ("python-nose" ,python-nose)))
7442 (modify-phases %standard-phases
7443 (add-after 'unpack 'make-docs-reproducible
7445 (substitute* "IPython/sphinxext/ipython_directive.py"
7446 ((".*import datetime") "")
7447 ((".*datetime.datetime.now\\(\\)") "")
7448 (("%timeit") "# %timeit"))
7450 ;; Tests can only be run after the library has been installed and not
7451 ;; within the source directory.
7453 (add-after 'install 'check
7454 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
7457 ;; Make installed package available for running the tests
7458 (add-installed-pythonpath inputs outputs)
7459 (setenv "HOME" "/tmp/") ;; required by a test
7460 ;; We only test the core because one of the other tests
7461 ;; tries to import ipykernel.
7462 (invoke "python" "IPython/testing/iptest.py"
7463 "-v" "IPython/core/tests"))
7465 (add-before 'check 'fix-tests
7466 (lambda* (#:key inputs #:allow-other-keys)
7467 (substitute* "./IPython/utils/_process_posix.py"
7468 (("/usr/bin/env', 'which") (which "which")))
7469 (substitute* "./IPython/core/tests/test_inputtransformer.py"
7470 (("#!/usr/bin/env python")
7471 (string-append "#!" (which "python"))))
7472 ;; This test introduces a circular dependency on ipykernel
7473 ;; (which depends on ipython).
7474 (delete-file "IPython/core/tests/test_display.py")
7475 ;; AttributeError: module 'IPython.core' has no attribute 'formatters'
7476 (delete-file "IPython/core/tests/test_interactiveshell.py")
7478 (home-page "https://ipython.org")
7479 (synopsis "IPython is a tool for interactive computing in Python")
7481 "IPython provides a rich architecture for interactive computing with:
7482 Powerful interactive shells, a browser-based notebook, support for interactive
7483 data visualization, embeddable interpreters and tools for parallel
7485 (properties `((python2-variant . ,(delay python2-ipython))))
7486 (license license:bsd-3)))
7488 ;; This is the latest release of the LTS version of ipython with support for
7489 ;; Python 2.7 and Python 3.x. Later non-LTS versions starting from 6.0 have
7490 ;; dropped support for Python 2.7.
7491 (define-public python2-ipython
7493 (name "python2-ipython")
7498 (uri (pypi-uri "ipython" version ".tar.gz"))
7500 (base32 "01l93i4hspf0lvhmycvc8j378bslm9rw30mwfspsl6v1ayc69b2b"))))
7501 (build-system python-build-system)
7503 `(("python2-backports-shutil-get-terminal-size"
7504 ,python2-backports-shutil-get-terminal-size)
7505 ("python2-pathlib2" ,python2-pathlib2)
7506 ("python2-pyzmq" ,python2-pyzmq)
7507 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
7508 ("python2-terminado" ,python2-terminado)
7509 ("python2-matplotlib" ,python2-matplotlib)
7510 ("python2-numpy" ,python2-numpy)
7511 ("python2-numpydoc" ,python2-numpydoc)
7512 ("python2-jinja2" ,python2-jinja2)
7513 ("python2-mistune" ,python2-mistune)
7514 ("python2-pexpect" ,python2-pexpect)
7515 ("python2-pickleshare" ,python2-pickleshare)
7516 ("python2-simplegeneric" ,python2-simplegeneric)
7517 ("python2-jsonschema" ,python2-jsonschema)
7518 ("python2-traitlets" ,python2-traitlets)
7519 ("python2-nbformat" ,python2-nbformat)
7520 ("python2-pygments" ,python2-pygments)))
7522 `(("readline" ,readline)
7525 `(("graphviz" ,graphviz)
7526 ("pkg-config" ,pkg-config)
7527 ("python2-requests" ,python2-requests) ;; for tests
7528 ("python2-testpath" ,python2-testpath)
7529 ("python2-mock" ,python2-mock)
7530 ("python2-nose" ,python2-nose)))
7532 `(#:python ,python-2
7534 (modify-phases %standard-phases
7535 (add-before 'check 'delete-broken-tests
7536 (lambda* (#:key inputs #:allow-other-keys)
7537 ;; These tests throw errors for unknown reasons.
7538 (delete-file "IPython/core/tests/test_displayhook.py")
7539 (delete-file "IPython/core/tests/test_magic_terminal.py")
7540 (delete-file "IPython/core/tests/test_profile.py")
7542 (home-page "https://ipython.org")
7543 (synopsis "IPython is a tool for interactive computing in Python")
7545 "IPython provides a rich architecture for interactive computing with:
7546 Powerful interactive shells, a browser-based notebook, support for interactive
7547 data visualization, embeddable interpreters and tools for parallel
7549 (license license:bsd-3)))
7551 (define-public python-ipython-documentation
7553 (inherit python-ipython)
7554 (name "python-ipython-documentation")
7555 (version (package-version python-ipython))
7558 (modify-phases %standard-phases
7562 (lambda* (#:key outputs #:allow-other-keys)
7563 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
7564 (doc (string-append data "/doc/" ,name "-" ,version))
7565 (html (string-append doc "/html"))
7566 (man1 (string-append data "/man/man1"))
7567 (info (string-append data "/info"))
7568 (examples (string-append doc "/examples"))
7569 (python-arg (string-append "PYTHON=" (which "python"))))
7570 (setenv "LANG" "en_US.utf8")
7571 (with-directory-excursion "docs"
7572 ;; FIXME: pdf fails to build
7573 ;;(system* "make" "pdf" "PAPER=a4")
7574 (system* "make" python-arg "html")
7575 ;; FIXME: the generated texi file contains ^@^@, which trips
7577 ;; (system* "make" python-arg "info")
7579 (copy-recursively "docs/man" man1)
7580 (copy-recursively "examples" examples)
7581 (copy-recursively "docs/build/html" html)
7582 ;; (copy-file "docs/build/latex/ipython.pdf"
7583 ;; (string-append doc "/ipython.pdf"))
7585 ;; (copy-file "docs/build/texinfo/ipython.info"
7586 ;; (string-append info "/ipython.info"))
7587 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))
7590 `(("python-ipython" ,python-ipython)
7591 ("python-ipykernel" ,python-ipykernel)))
7593 `(("python-sphinx" ,python-sphinx)
7594 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
7595 ;; FIXME: It's possible that a smaller union would work just as well.
7596 ("texlive" ,(texlive-union (list texlive-amsfonts
7598 texlive-generic-ifxetex
7599 texlive-generic-pdftex
7600 texlive-latex-capt-of
7602 texlive-latex-environ
7603 texlive-latex-eqparbox
7604 texlive-latex-etoolbox
7605 texlive-latex-expdlist
7606 texlive-latex-fancyhdr
7607 texlive-latex-fancyvrb
7608 texlive-latex-fncychap
7610 texlive-latex-framed
7611 texlive-latex-geometry
7612 texlive-latex-graphics
7613 texlive-latex-hyperref
7614 texlive-latex-mdwtools
7615 texlive-latex-multirow
7616 texlive-latex-needspace
7617 texlive-latex-oberdiek
7618 texlive-latex-parskip
7619 texlive-latex-preview
7620 texlive-latex-tabulary
7621 texlive-latex-threeparttable
7622 texlive-latex-titlesec
7623 texlive-latex-trimspaces
7625 texlive-latex-upquote
7627 texlive-latex-varwidth
7628 texlive-latex-wrapfig)))
7629 ("texinfo" ,texinfo)))))
7631 (define-public python-urwid
7633 (name "python-urwid")
7638 (uri (pypi-uri "urwid" version))
7641 "11ndnhxd41m13darf5s0c6bafdpkzq1l6mfb04wbzdmyc1hg75h8"))))
7642 (build-system python-build-system)
7643 (home-page "http://urwid.org")
7644 (synopsis "Console user interface library for Python")
7646 "Urwid is a curses-based UI/widget library for Python. It includes many
7647 features useful for text console applications.")
7648 (license license:lgpl2.1+)))
7650 (define-public python2-urwid
7651 (package-with-python2 python-urwid))
7653 (define-public python-urwidtrees
7655 (name "python-urwidtrees")
7660 ;; package author intends on distributing via github rather than pypi:
7661 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
7663 (url "https://github.com/pazz/urwidtrees")
7665 (file-name (git-file-name name version))
7668 "1n1kpidvkdnsqyb82vlvk78gmly96kh8351lqxn2pzgwwns6fml2"))))
7669 (build-system python-build-system)
7671 '(#:use-setuptools? #f
7672 #:tests? #f)) ; no tests
7673 (propagated-inputs `(("python-urwid" ,python-urwid)))
7674 (home-page "https://github.com/pazz/urwidtrees")
7675 (synopsis "Tree widgets for urwid")
7676 (description "Urwidtrees is a Widget Container API for the @code{urwid}
7677 toolkit. Use it to build trees of widgets.")
7678 (license license:gpl3+)))
7680 (define-public python2-urwidtrees
7681 (package-with-python2 python-urwidtrees))
7683 (define-public python-ua-parser
7685 (name "python-ua-parser")
7690 (uri (pypi-uri "ua-parser" version))
7693 "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp"))))
7694 (build-system python-build-system)
7696 `(#:tests? #f)) ;no test suite in release
7698 `(("python-pyyaml" ,python-pyyaml)))
7699 (home-page "https://github.com/ua-parser/uap-python")
7700 (synopsis "User agent parser")
7702 "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
7703 (license license:asl2.0)))
7705 (define-public python2-ua-parser
7706 (package-with-python2 python-ua-parser))
7708 (define-public python-user-agents
7710 (name "python-user-agents")
7715 (uri (pypi-uri "user-agents" version))
7718 "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4"))))
7719 (build-system python-build-system)
7721 `(#:tests? #f)) ;missing devices.json test file in release
7723 `(("python-ua-parser" ,python-ua-parser)))
7724 (home-page "https://github.com/selwin/python-user-agents")
7725 (synopsis "User Agent strings parsing library")
7727 "A library to identify devices (phones, tablets) and their capabilities by
7728 parsing (browser/HTTP) user agent strings.")
7729 (license license:expat)))
7731 (define-public python2-user-agents
7732 (package-with-python2 python-user-agents))
7734 (define-public python-dbus
7736 (name "python-dbus")
7741 (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
7742 "dbus-python-" version ".tar.gz"))
7744 (base32 "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi"))))
7745 (build-system gnu-build-system)
7747 `(("pkg-config" ,pkg-config)))
7749 `(("python" ,python-wrapper)
7750 ("dbus-glib" ,dbus-glib)))
7751 (synopsis "Python bindings for D-bus")
7752 (description "python-dbus provides bindings for libdbus, the reference
7753 implementation of D-Bus.")
7754 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
7755 (license license:expat)))
7757 (define-public python2-dbus
7758 (package/inherit python-dbus
7759 (name "python2-dbus")
7760 (inputs `(("python" ,python-2)
7761 ,@(alist-delete "python"
7762 (package-inputs python-dbus)
7765 (define-public python-notify2
7767 (name "python-notify2")
7772 (uri (pypi-uri "notify2" version))
7775 "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
7776 (build-system python-build-system)
7777 (arguments `(#:tests? #f)) ; tests depend on system state
7779 `(("python-dbus" ,python-dbus)))
7780 (home-page "https://bitbucket.org/takluyver/pynotify2")
7781 (synopsis "Python interface to D-Bus notifications")
7783 "Pynotify2 provides a Python interface for sending D-Bus notifications.
7784 It is a reimplementation of pynotify in pure Python, and an alternative to
7785 the GObject Introspection bindings to libnotify for non-GTK applications.")
7786 (license (list license:bsd-2
7787 license:lgpl2.1+))))
7789 (define-public python2-notify2
7790 (package-with-python2 python-notify2))
7792 ;; beautifulsoup4 has a totally different namespace than 3.x,
7793 ;; and pypi seems to put it under its own name, so I guess we should too
7794 (define-public python-beautifulsoup4
7796 (name "python-beautifulsoup4")
7801 (uri (pypi-uri "beautifulsoup4" version))
7804 "1mvzlw3pzbhsvl3z8784s5h7iiflm2hggiy1fxyrrxwnbc8lvk3k"))))
7805 (build-system python-build-system)
7808 (modify-phases %standard-phases
7809 ;; The Python 2 source is the definitive source of beautifulsoup4. We
7810 ;; must use this conversion script when building with Python 3. The
7811 ;; conversion script also runs the tests.
7812 ;; For more information, see the file 'convert-py3k' in the source
7815 (lambda _ (invoke "./convert-py3k"))))))
7817 `(("python-soupsieve" ,python-soupsieve)))
7819 "https://www.crummy.com/software/BeautifulSoup/bs4/")
7821 "Python screen-scraping library")
7823 "Beautiful Soup is a Python library designed for rapidly setting up
7824 screen-scraping projects. It offers Pythonic idioms for navigating,
7825 searching, and modifying a parse tree, providing a toolkit for
7826 dissecting a document and extracting what you need. It automatically
7827 converts incoming documents to Unicode and outgoing documents to UTF-8.")
7828 (license license:expat)
7829 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
7831 (define-public python2-beautifulsoup4
7832 (let ((base (package-with-python2
7833 (strip-python2-variant python-beautifulsoup4))))
7834 (package/inherit base
7835 (arguments `(#:python ,python-2)))))
7837 (define-public python-soupsieve
7839 (name "python-soupsieve")
7844 (uri (pypi-uri "soupsieve" version))
7847 "0ch2rhvsbwfpvzm4kzy81rclbzr533yv83hzg1gx55byfa0w37d5"))))
7848 (build-system python-build-system)
7849 (arguments `(#:tests? #f))
7850 ;;XXX: 2 tests fail currently despite claming they were to be
7851 ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
7852 ;;don't want to create a circular dependency.
7853 (home-page "https://github.com/facelessuser/soupsieve")
7854 (synopsis "CSS selector library")
7856 "Soup Sieve is a CSS selector library designed to be used with Beautiful
7857 Soup 4. It aims to provide selecting, matching, and filtering using modern
7858 CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
7859 specifications up through the latest CSS level 4 drafts and beyond (though
7860 some are not yet implemented).")
7861 (properties `((python2-variant . ,(delay python2-soupsieve))))
7862 (license license:expat)))
7864 ;; This is the last version that supports python-2
7865 (define-public python2-soupsieve
7866 (let ((base (package-with-python2 (strip-python2-variant python-soupsieve))))
7873 (uri (pypi-uri "soupsieve" version))
7876 "1apgqxngi1216h1cyvrvj9gy3wf45mh1lz4n76j26jf3k36bm1br"))))
7878 `(("python2-backports-functools-lru-cache"
7879 ,python2-backports-functools-lru-cache)
7880 ,@(package-propagated-inputs base))))))
7882 (define-public python-netifaces
7884 (name "python-netifaces")
7889 (uri (pypi-uri "netifaces" version))
7892 "1wxby874kcr3pp4ygzk5aiarbzhg1yi093d56s1qg4k2s7yrzvid"))))
7893 (build-system python-build-system)
7894 (home-page "https://github.com/al45tair/netifaces")
7896 "Python module for portable network interface information")
7898 "Netifaces is a Python module providing information on network
7899 interfaces in an easy and portable manner.")
7900 (license license:expat)))
7902 (define-public python2-netifaces
7903 (package-with-python2 python-netifaces))
7905 (define-public python-networkx
7907 (name "python-networkx")
7912 (uri (pypi-uri "networkx" version))
7914 (base32 "00hnii2lplig2s324k1hvi29pyfab6z7i22922f67jgv4da9ay3r"))))
7915 (build-system python-build-system)
7917 '(#:phases (modify-phases %standard-phases
7919 (lambda* (#:key tests? #:allow-other-keys)
7921 (invoke "pytest" "-vv" "--pyargs" "networkx")
7922 (format #t "test suite not run~%"))
7924 ;; python-decorator is needed at runtime.
7926 `(("python-decorator" ,python-decorator)))
7928 `(("python-pytest" ,python-pytest)))
7929 (home-page "https://networkx.github.io/")
7930 (synopsis "Python module for creating and manipulating graphs and networks")
7932 "NetworkX is a Python package for the creation, manipulation, and study
7933 of the structure, dynamics, and functions of complex networks.")
7934 (properties `((python2-variant . ,(delay python2-networkx))))
7935 (license license:bsd-3)))
7937 ;; NetworkX 2.2 is the last version with support for Python 2.
7938 (define-public python2-networkx
7939 (let ((base (package-with-python2 (strip-python2-variant python-networkx))))
7945 (uri (pypi-uri "networkx" version ".zip"))
7948 "12swxb15299v9vqjsq4z8rgh5sdhvpx497xwnhpnb0gynrx6zra5"))))
7950 `(#:python ,python-2))
7952 `(("python-nose" ,python2-nose)
7953 ("unzip" ,unzip))))))
7955 (define-public python-datrie
7957 (name "python-datrie")
7962 (uri (pypi-uri "datrie" version))
7965 "0pbn32flkrpjiwfcknmj6398qa81ba783kbcvwan3kym73v0hnsj"))))
7966 (build-system python-build-system)
7968 `(("python-cython" ,python-cython)
7969 ("python-hypothesis" ,python-hypothesis)
7970 ("python-pytest" ,python-pytest)
7971 ("python-pytest-runner" ,python-pytest-runner)))
7972 (home-page "https://github.com/kmike/datrie")
7973 (synopsis "Fast, efficiently stored trie for Python")
7975 "This package provides a fast, efficiently stored trie implementation for
7977 (license license:lgpl2.1+)))
7979 (define-public python-amply
7981 (name "python-amply")
7986 (uri (pypi-uri "amply" version))
7989 "0f1db9zp0rsfzxvaz55xwh8h5rfdgr9a2a715g06ic8nknsdq4nb"))))
7990 (build-system python-build-system)
7992 `(("python-docutils" ,python-docutils)
7993 ("python-pyparsing" ,python-pyparsing)))
7995 `(("python-setuptools-scm" ,python-setuptools-scm)))
7996 (home-page "https://github.com/willu47/amply")
7997 (synopsis "Load and manipulate AMPL/GLPK data as Python data structures")
7999 "Amply allows you to load and manipulate AMPL/GLPK data as Python data
8001 (license license:epl1.0)))
8003 (define-public python-pulp
8005 (name "python-pulp")
8010 (uri (pypi-uri "PuLP" version))
8013 "1dammrg0f1v0r028i3rpxbf2bsyxmjq0q6ihb4x2wsdki44z3bxj"))))
8014 (build-system python-build-system)
8016 `(("python-amply" ,python-amply)))
8017 (home-page "https://github.com/coin-or/pulp")
8018 (synopsis "Linear Programming modeler")
8020 "PuLP is a Linear Programming modeler written in Python. PuLP can
8021 generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to
8022 solve linear problems.")
8023 (license license:expat)))
8025 (define-public python-toposort
8027 (name "python-toposort")
8032 (uri (pypi-uri "toposort" version))
8035 "1b2hppzjg3p006qya3yfdnp76dwq8frl97lypdam0kw4xxb8yhm7"))))
8036 (build-system python-build-system)
8037 (home-page "https://gitlab.com/ericvsmith/toposort")
8038 (synopsis "Topological sort algorithm")
8040 "This package provides an implementation of a topological sort
8042 (license license:asl2.0)))
8044 (define-public snakemake
8051 (uri (pypi-uri "snakemake" version))
8053 (base32 "13013gdavwvyj1qr9xfi9fpwhb3km8c3z53bja5b7ic3sb2z6dgz"))))
8054 (build-system python-build-system)
8056 ;; TODO: Package missing test dependencies.
8059 (modify-phases %standard-phases
8060 ;; For cluster execution Snakemake will call Python. Since there is
8061 ;; no suitable PYTHONPATH set, cluster execution will fail. We fix
8062 ;; this by calling the snakemake wrapper instead.
8063 (add-after 'unpack 'call-wrapper-not-wrapped-snakemake
8064 (lambda* (#:key outputs #:allow-other-keys)
8065 (substitute* "snakemake/executors/__init__.py"
8066 (("\\{sys.executable\\} -m snakemake")
8067 (string-append (assoc-ref outputs "out")
8071 `(("python-appdirs" ,python-appdirs)
8072 ("python-configargparse" ,python-configargparse)
8073 ("python-datrie" ,python-datrie)
8074 ("python-docutils" ,python-docutils)
8075 ("python-gitpython" ,python-gitpython)
8076 ("python-jinja2" ,python-jinja2)
8077 ("python-jsonschema" ,python-jsonschema)
8078 ("python-nbformat" ,python-nbformat)
8079 ("python-networkx" ,python-networkx)
8080 ("python-psutil" ,python-psutil)
8081 ("python-pulp" ,python-pulp)
8082 ("python-pyyaml" ,python-pyyaml)
8083 ("python-ratelimiter" ,python-ratelimiter)
8084 ("python-requests" ,python-requests)
8085 ("python-toposort" ,python-toposort)
8086 ("python-wrapt" ,python-wrapt)))
8087 (home-page "https://snakemake.readthedocs.io")
8088 (synopsis "Python-based execution environment for make-like workflows")
8090 "Snakemake aims to reduce the complexity of creating workflows by
8091 providing a clean and modern domain specific specification language (DSL) in
8092 Python style, together with a fast and comfortable execution environment.")
8093 (license license:expat)))
8095 (define-public python-pyqrcode
8097 (name "python-pyqrcode")
8102 (uri (pypi-uri "PyQRCode" version))
8105 "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
8106 (build-system python-build-system)
8108 "https://github.com/mnooner256/pyqrcode")
8109 (synopsis "QR code generator")
8111 "Pyqrcode is a QR code generator written purely in Python with
8112 SVG, EPS, PNG and terminal output.")
8113 (license license:bsd-3)))
8115 (define-public python-seaborn
8117 (name "python-seaborn")
8122 (uri (pypi-uri "seaborn" version))
8124 (base32 "1ffbms4kllihfycf6j57dziq4imgdjw03sqgifh5wzcd2d743zjr"))))
8125 (build-system python-build-system)
8128 (modify-phases %standard-phases
8129 (add-before 'check 'start-xserver
8130 (lambda* (#:key inputs #:allow-other-keys)
8131 (let ((xorg-server (assoc-ref inputs "xorg-server")))
8132 ;; There must be a running X server and make check doesn't
8133 ;; start one. Therefore we must do it.
8134 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
8135 (setenv "DISPLAY" ":1")
8137 (replace 'check (lambda _ (invoke "pytest" "seaborn") #t)))))
8139 `(("python-pandas" ,python-pandas)
8140 ("python-matplotlib" ,python-matplotlib)
8141 ("python-numpy" ,python-numpy)
8142 ("python-scipy" ,python-scipy)))
8144 `(("python-pytest" ,python-pytest)
8145 ("xorg-server" ,xorg-server-for-tests)))
8146 (home-page "https://seaborn.pydata.org/")
8147 (synopsis "Statistical data visualization")
8149 "Seaborn is a library for making attractive and informative statistical
8150 graphics in Python. It is built on top of matplotlib and tightly integrated
8151 with the PyData stack, including support for numpy and pandas data structures
8152 and statistical routines from scipy and statsmodels.")
8153 (properties `((python2-variant . ,(delay python2-seaborn))))
8154 (license license:bsd-3)))
8156 ;; 0.9.1 is the last release with support for Python 2.
8157 (define-public python2-seaborn
8158 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
8164 (uri (pypi-uri "seaborn" version))
8167 "1bjnshjz4d6z3vrwfwall1a3yh8h3a1h47c3fg7458x9426alcys")))))))
8169 (define-public python-mpmath
8171 (name "python-mpmath")
8175 (uri (pypi-uri "mpmath" version))
8176 (file-name (git-file-name name version))
8179 "1xlrcja213jpfhw25q1jl5pl10w1a2cc68x1c4mkicxsbzhan5zw"))))
8180 (build-system python-build-system)
8182 `(("python-pytest" ,python-pytest)))
8185 (modify-phases %standard-phases
8188 (invoke "python" "mpmath/tests/runtests.py" "-local"))))))
8189 (home-page "https://mpmath.org")
8190 (synopsis "Arbitrary-precision floating-point arithmetic in python")
8192 "@code{mpmath} can be used as an arbitrary-precision substitute for
8193 Python's float/complex types and math/cmath modules, but also does much
8194 more advanced mathematics.")
8195 (license license:bsd-3)))
8197 (define-public python2-mpmath
8198 (package-with-python2 python-mpmath))
8200 (define-public python-bigfloat
8202 (name "python-bigfloat")
8207 (uri (pypi-uri "bigfloat" version))
8209 (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6"))))
8210 (build-system python-build-system)
8213 (home-page "https://github.com/mdickinson/bigfloat")
8214 (synopsis "Arbitrary precision floating-point arithmetic for Python")
8216 "This package provides a Python interface to the MPFR library for
8217 multiprecision arithmetic.")
8218 (license license:lgpl3+)))
8220 (define-public python2-bigfloat
8221 (package-with-python2 python-bigfloat))
8223 (define-public python-sympy
8225 (name "python-sympy")
8230 (uri (pypi-uri "sympy" version))
8232 (base32 "0bkb4jf24yv5i4kjpsmg1xjjccfhqyi0syv0p0xvhdbmx5hr5pm3"))))
8233 (build-system python-build-system)
8236 (modify-phases %standard-phases
8238 (lambda* (#:key outputs #:allow-other-keys)
8240 (or (which "python3") (which "python"))
8241 "-c" "import sympy; sympy.test(\"/core\")"))))))
8243 `(("python-mpmath" ,python-mpmath)))
8244 (home-page "https://www.sympy.org/")
8245 (synopsis "Python library for symbolic mathematics")
8247 "SymPy is a Python library for symbolic mathematics. It aims to become a
8248 full-featured computer algebra system (CAS) while keeping the code as simple
8249 as possible in order to be comprehensible and easily extensible.")
8250 (license license:bsd-3)))
8252 (define-public python2-sympy
8254 (inherit (package-with-python2 python-sympy))
8255 (version "1.5.1") ; last release for python2
8259 (uri (pypi-uri "sympy" version))
8261 (base32 "0zjfbxlkazzh9z22gf62azrkipb2xw7mpzjz3wl1az9893bh2yfp"))))))
8263 (define-public python-q
8270 (uri (pypi-uri "q" version))
8273 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
8274 (build-system python-build-system)
8275 (home-page "https://github.com/zestyping/q")
8276 (synopsis "Quick-and-dirty debugging output for tired programmers")
8278 "q is a Python module for \"print\" style of debugging Python code. It
8279 provides convenient short API for print out of values, tracebacks, and
8280 falling into the Python interpreter.")
8281 (license license:asl2.0)))
8283 (define-public python2-q
8284 (package-with-python2 python-q))
8286 (define-public python-xlib
8288 (name "python-xlib")
8294 (url "https://github.com/python-xlib/python-xlib")
8296 (file-name (git-file-name name version))
8298 (base32 "17cwd2knqm2vwrii3kqii9abwsnydhpg4byqx1vy7rjs6i1vbqfc"))))
8299 (build-system python-build-system)
8302 (modify-phases %standard-phases
8303 (add-before 'check 'start-xserver
8304 (lambda* (#:key inputs #:allow-other-keys)
8305 (let ((xorg-server (assoc-ref inputs "xorg-server")))
8306 ;; There must be a running X server and make check doesn't
8307 ;; start one. Therefore we must do it.
8308 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
8309 (setenv "DISPLAY" ":1")
8312 `(("python-mock" ,python-mock)
8313 ("python-setuptools-scm" ,python-setuptools-scm)
8314 ("xorg-server" ,xorg-server)))
8316 `(("python-six" ,python-six)))
8317 (home-page "https://github.com/python-xlib/python-xlib")
8318 (synopsis "Python X11 client library")
8320 "The Python X Library is intended to be a fully functional
8321 X client library for Python programs. It is useful to implement
8322 low-level X clients. It is written entirely in Python.")
8323 (license license:gpl2+)))
8325 (define-public python2-xlib
8326 (package-with-python2 python-xlib))
8328 (define-public python-singledispatch
8330 (name "python-singledispatch")
8335 (uri (pypi-uri "singledispatch" version))
8338 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
8339 (build-system python-build-system)
8341 `(("python-six" ,python-six))) ; required for conversion, not at run-time
8343 "https://docs.python.org/3/library/functools.html#functools.singledispatch")
8344 (synopsis "Backport of singledispatch feature from Python 3.4")
8346 "This library brings functools.singledispatch from Python 3.4 to Python
8348 (license license:expat)))
8350 (define-public python2-singledispatch
8351 (package-with-python2 python-singledispatch))
8353 ;; the python- version can be removed with python-3.5
8354 (define-public python-backports-abc
8356 (name "python-backports-abc")
8361 (uri (pypi-uri "backports_abc" version))
8364 "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
8365 (build-system python-build-system)
8366 (home-page "https://github.com/cython/backports_abc")
8367 (synopsis "Backport of additions to the 'collections.abc' module")
8369 "Python-backports-abc provides a backport of additions to the
8370 @code{collections.abc} module in Python-3.5.")
8371 (license license:psfl)))
8373 (define-public python2-backports-abc
8374 (package-with-python2 python-backports-abc))
8376 (define-public python-backports-csv
8378 (name "python-backports-csv")
8383 (uri (pypi-uri "backports.csv" version))
8385 (base32 "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj"))))
8386 (build-system python-build-system)
8387 (home-page "https://github.com/ryanhiebert/backports.csv")
8388 (synopsis "Backport of Python 3's csv module for Python 2")
8390 "Provides a backport of Python 3's @code{csv} module for parsing
8391 comma separated values. The API of the @code{csv} module in Python 2
8392 is drastically different from the @code{csv} module in Python 3.
8393 This is due, for the most part, to the difference between str in
8394 Python 2 and Python 3.")
8395 (license license:psfl)))
8397 (define-public python2-backports-csv
8398 (package-with-python2 python-backports-csv))
8400 (define-public python2-backports-shutil-get-terminal-size
8402 (name "python2-backports-shutil-get-terminal-size")
8407 (uri (pypi-uri "backports.shutil_get_terminal_size" version))
8410 "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
8411 (build-system python-build-system)
8413 `(#:python ,python-2
8415 (modify-phases %standard-phases
8418 (setenv "PYTHONPATH" (string-append "./build/lib:"
8419 (getenv "PYTHONPATH")))
8420 (invoke "py.test" "-v"))))))
8422 `(("python2-pytest" ,python2-pytest)))
8423 (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
8424 (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
8426 "This package provides a backport of the @code{get_terminal_size
8427 function} from Python 3.3's @code{shutil}.
8428 Unlike the original version it is written in pure Python rather than C,
8429 so it might be a tiny bit slower.")
8430 (license license:expat)))
8432 (define-public python-waf
8438 (uri (string-append "https://waf.io/"
8439 "waf-" version ".tar.bz2"))
8442 "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
8443 (build-system python-build-system)
8446 (modify-phases %standard-phases
8449 ;; XXX: Find a way to add all extra tools.
8450 (let ((tools '("gccdeps"
8451 "clang_compilation_database")))
8452 (invoke "python" "waf-light" "configure" "build"
8453 (string-append "--tools="
8454 (string-join tools ","))))))
8457 (invoke "python" "waf" "--version")))
8459 (lambda* (#:key outputs #:allow-other-keys)
8460 (let ((out (assoc-ref outputs "out")))
8461 (install-file "waf" (string-append out "/bin")))
8463 ;; waf breaks when it is wrapped.
8465 (home-page "https://waf.io/")
8466 (synopsis "Python-based build system")
8468 "Waf is a Python-based framework for configuring, compiling and installing
8470 (license license:bsd-3)))
8472 (define-public python2-waf
8473 (package-with-python2 python-waf))
8475 (define-public python-pyzmq
8477 (name "python-pyzmq")
8482 (uri (pypi-uri "pyzmq" version))
8484 (base32 "0bgrn65cxfz1c1sjrgyq5dy1mkhppxxbizd5wvrl03cq4zhkrxpp"))))
8485 (build-system python-build-system)
8488 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
8489 ;; FIXME: You must build pyzmq with 'python setup.py build_ext
8490 ;; --inplace' for 'python setup.py test' to work.
8493 `(("zeromq" ,zeromq)))
8495 `(("pkg-config" ,pkg-config)
8496 ("python-nose" ,python-nose)))
8497 (home-page "https://github.com/zeromq/pyzmq")
8498 (synopsis "Python bindings for 0MQ")
8500 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
8501 (license license:bsd-4)))
8503 (define-public python2-pyzmq
8504 (package-with-python2 python-pyzmq))
8506 (define-public python-pep8
8507 ;; This package has been renamed to ‘pycodestyle’ and is no longer updated.
8508 ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking
8509 ;; some dependents' test suites, and nothing more.
8511 (name "python-pep8")
8516 (uri (pypi-uri "pep8" version))
8519 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))
8520 (patches (search-patches "python-pep8-stdlib-tokenize-compat.patch"))))
8521 (build-system python-build-system)
8522 (home-page "https://pep8.readthedocs.org/")
8523 (synopsis "Python style guide checker")
8525 "This tools checks Python code against some of the style conventions in
8527 (license license:expat)))
8529 (define-public python2-pep8
8530 (package-with-python2 python-pep8))
8532 (define-public python-pep517
8534 (inherit python-pep517-bootstrap)
8535 (name "python-pep517")
8538 (modify-phases %standard-phases
8540 (lambda* (#:key tests? #:allow-other-keys)
8541 (delete-file "pytest.ini")
8542 ;; This test tries to connect to the internet
8543 (delete-file "tests/test_meta.py")
8548 `(("python-mock" ,python-mock)
8549 ("python-pytest" ,python-pytest)
8550 ("python-testpath" ,python-testpath)))
8551 (properties `((python2-variant . ,(delay python2-pep517))))))
8553 ;; Skip the tests so we don't create a cyclical dependency with pytest.
8554 (define-public python2-pep517
8555 (let ((base (package-with-python2
8556 (strip-python2-variant python-pep517))))
8557 (package/inherit base
8558 (name "python2-pep517")
8561 ,@(package-arguments base)))
8562 (native-inputs `()))))
8564 (define-public python-pyflakes
8566 (name "python-pyflakes")
8571 (uri (pypi-uri "pyflakes" version))
8574 "1ny10364ciqh4ripasj4zzv4145l21l3s85m3qlrvfq5pk58xg7m"))))
8575 (build-system python-build-system)
8577 "https://github.com/pyflakes/pyflakes")
8578 (synopsis "Passive checker of Python programs")
8580 "Pyflakes statically checks Python source code for common errors.")
8581 (license license:expat)))
8583 (define-public python2-pyflakes
8584 (package-with-python2 python-pyflakes))
8586 (define-public python-mccabe
8588 (name "python-mccabe")
8593 (uri (pypi-uri "mccabe" version))
8596 "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
8597 (build-system python-build-system)
8599 `(("python-pytest" ,python-pytest-bootstrap)
8600 ("python-pytest-runner" ,python-pytest-runner)))
8601 (home-page "https://github.com/flintwork/mccabe")
8602 (synopsis "McCabe checker, plugin for flake8")
8604 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
8605 complexity of Python source code.")
8606 (license license:expat)))
8608 (define-public python2-mccabe
8609 (package-with-python2 python-mccabe))
8611 (define-public python-flake8
8613 (name "python-flake8")
8617 (uri (pypi-uri "flake8" version))
8620 "1w65iyjnrwipv4dbcqxh725ri7mdx01d6pjyggd97c0j5cvkx1vq"))))
8621 (build-system python-build-system)
8624 (modify-phases %standard-phases
8626 (add-after 'install 'check
8627 (lambda* (#:key inputs outputs #:allow-other-keys)
8628 (add-installed-pythonpath inputs outputs)
8629 (invoke "pytest" "-v")
8632 `(("python-pycodestyle" ,python-pycodestyle)
8633 ("python-entrypoints" ,python-entrypoints)
8634 ("python-pyflakes" ,python-pyflakes)
8635 ("python-mccabe" ,python-mccabe)))
8637 `(("python-mock" ,python-mock)
8638 ("python-pytest" ,python-pytest-bootstrap)))
8639 (home-page "https://gitlab.com/pycqa/flake8")
8641 "The modular source code checker: pep8, pyflakes and co")
8643 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
8644 (properties `((python2-variant . ,(delay python2-flake8))))
8645 (license license:expat)))
8647 (define-public python2-flake8
8648 (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
8649 (package/inherit base
8651 `(("python2-configparser" ,python2-configparser)
8652 ("python2-enum34" ,python2-enum34)
8653 ("python2-functools32" ,python2-functools32)
8654 ("python2-typing" ,python2-typing)
8655 ,@(package-propagated-inputs base))))))
8657 (define-public python-flake8-bugbear
8659 (name "python-flake8-bugbear")
8664 (uri (pypi-uri "flake8-bugbear" version))
8667 "0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx"))))
8668 (build-system python-build-system)
8671 (modify-phases %standard-phases
8672 (add-before 'check 'disable-test
8674 ;; This test fails on slow computers.
8675 (substitute* "tests/test_bugbear.py"
8676 (("def test_does_not_crash_on_any_valid_code")
8677 "def _test_does_not_crash_on_any_valid_code")))))))
8679 `(("python-hypothesis" ,python-hypothesis)
8680 ("python-hypothesmith" ,python-hypothesmith)))
8682 `(("python-attrs" ,python-attrs)
8683 ("python-flake8" ,python-flake8)))
8684 (home-page "https://github.com/PyCQA/flake8-bugbear")
8686 "Flake8 plugin for finding likely bugs and design problems in your program")
8688 "This package contains a plugin for Flake8 finding likely bugs and
8689 design problems in your program. It contains warnings that don't belong
8690 in pyflakes and pycodestyle.")
8691 (license license:expat)))
8693 (define-public python-flake8-implicit-str-concat
8695 (name "python-flake8-implicit-str-concat")
8700 (uri (pypi-uri "flake8_implicit_str_concat" version))
8702 (base32 "1v0y29xlmbr2q12a4nnpm1dm9aw1mjiys1x8jif4z8c90d63cqm6"))))
8703 (build-system python-build-system)
8705 `(("python-attrs" ,python-attrs)
8706 ("python-more-itertools" ,python-more-itertools)))
8707 (home-page "https://github.com/keisheiled/flake8-implicit-str-concat")
8708 (synopsis "Flake8 plugin to encourage correct string literal concatenation")
8710 "This is a plugin for the Python code checking tool Flake8 to encourage
8711 correct string literal concatenation.
8713 It looks for style problems like implicitly concatenated string literals on
8714 the same line (which can be introduced by the code formating tool Black), or
8715 unnecessary plus operators for explicit string literal concatenation.")
8716 (license license:expat)))
8718 (define-public python-flake8-polyfill
8720 (name "python-flake8-polyfill")
8725 (uri (pypi-uri "flake8-polyfill" version))
8728 "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"))))
8729 (build-system python-build-system)
8732 (modify-phases %standard-phases
8735 ;; Be compatible with Pytest 4:
8736 ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
8737 (substitute* "setup.cfg"
8741 (setenv "PYTHONPATH"
8742 (string-append (getcwd) "/build/lib:"
8743 (getenv "PYTHONPATH")))
8744 (invoke "py.test" "-v"))))))
8746 `(("python-flake8" ,python-flake8)
8747 ("python-mock" ,python-mock)
8748 ("python-pep8" ,python-pep8)
8749 ("python-pycodestyle" ,python-pycodestyle)
8750 ("python-pytest" ,python-pytest)))
8751 (home-page "https://gitlab.com/pycqa/flake8-polyfill")
8752 (synopsis "Polyfill package for Flake8 plugins")
8754 "This package that provides some compatibility helpers for Flake8
8755 plugins that intend to support Flake8 2.x and 3.x simultaneously.")
8756 (license license:expat)))
8758 (define-public python2-flake8-polyfill
8759 (package-with-python2 python-flake8-polyfill))
8761 (define-public python-flake8-print
8763 (name "python-flake8-print")
8768 (uri (pypi-uri "flake8-print" version))
8770 (base32 "05k5kkvyk6fdmvnacxfzypk74vbl3pmva13dqg1aljfwnxsc7yjs"))))
8771 (build-system python-build-system)
8773 `(("python-flake8" ,python-flake8)
8774 ("python-pycodestyle" ,python-pycodestyle)
8775 ("python-six" ,python-six)))
8776 (home-page "https://github.com/jbkahn/flake8-print")
8777 (synopsis "Print statement checker plugin for Flake8")
8779 "This plugin for Flake8 checks for @code{print} statements in Python
8781 (license license:expat)))
8783 (define-public python-flake8-pyi
8785 (name "python-flake8-pyi")
8790 (uri (pypi-uri "flake8-pyi" version))
8793 "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk"))))
8794 (build-system python-build-system)
8796 `(("python-attrs" ,python-attrs)
8797 ("python-flake8" ,python-flake8)
8798 ("python-pyflakes" ,python-pyflakes)))
8799 (home-page "https://github.com/ambv/flake8-pyi")
8801 "Flake8 plugin that provides specializations for type hinting stub files")
8803 "This package contains a plugin that provides specializations for
8804 type hinting stub files, especially interesting for linting typeshed. It
8805 adds the @file{.pyi} extension to the default value of the @code{--filename}
8806 command-line argument to Flake8. This means stubs are linted by default with
8807 this plugin enabled, without needing to explicitly list every file. It
8808 modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
8809 expressions after the entire file has been read. This enables support for
8810 first-class forward references that stub files use.")
8811 (license license:expat)))
8813 (define-public python-flake8-pie
8815 (name "python-flake8-pie")
8820 (uri (pypi-uri "flake8-pie" version))
8822 (base32 "0kgipl5gljlp7aa7ykx15pswpzkd0d0qiznihb2z0d9a73181dyd"))))
8823 (build-system python-build-system)
8824 (home-page "https://github.com/sbdchd/flake8-pie")
8825 (synopsis "Flake8 extension that implements lints")
8827 "This package provides a flake8 extension that implements miscellaneous
8829 (license license:bsd-2)))
8831 (define-public python-autoflake
8833 (name "python-autoflake")
8838 (uri (pypi-uri "autoflake" version))
8840 (base32 "0nzr057dbmgprp4a52ymafdkdd5zp2wcqf42913xc7hhvvdbj338"))))
8841 (build-system python-build-system)
8843 `(("python-pyflakes" ,python-pyflakes)))
8844 (home-page "https://github.com/myint/autoflake")
8845 (synopsis "Removes unused imports and unused variables")
8847 "@code{autoflake} removes unused imports and unused variables from Python
8848 code as reported by @code{pyflakes}.
8850 By default, it only removes unused imports for modules that are part of the
8851 standard library. Removal of unused variables is also disabled by default.
8852 It also removes useless @code{pass} statements.")
8853 (license license:expat)))
8855 (define-public python-mistune
8857 (name "python-mistune")
8862 (uri (pypi-uri "mistune" version))
8865 "0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr"))))
8866 (build-system python-build-system)
8868 `(("python-nose" ,python-nose)
8869 ("python-cython" ,python-cython)))
8870 (home-page "https://github.com/lepture/mistune")
8871 (synopsis "Markdown parser in pure Python")
8872 (description "This package provides a fast markdown parser in pure
8874 (license license:bsd-3)))
8876 (define-public python2-mistune
8877 (package-with-python2 python-mistune))
8879 (define-public python-markdown
8881 (name "python-markdown")
8886 (uri (pypi-uri "Markdown" version))
8889 "00k91gwhxnm8jdnm2v5xjz9irj6dbi7afywz2hpakqdbxs1ydzlh"))))
8890 (build-system python-build-system)
8892 `(("python-nose" ,python-nose)
8893 ("python-pyyaml" ,python-pyyaml)))
8894 (home-page "https://python-markdown.github.io/")
8895 (synopsis "Python implementation of Markdown")
8897 "This package provides a Python implementation of John Gruber's
8898 Markdown. The library features international input, various Markdown
8899 extensions, and several HTML output formats. A command line wrapper
8900 markdown_py is also provided to convert Markdown files to HTML.")
8901 (properties `((python2-variant . ,(delay python2-markdown))))
8902 (license license:bsd-3)))
8904 ;; Markdown 3.2 dropped support for Python 2.
8905 (define-public python2-markdown
8906 (let ((base (package-with-python2 (strip-python2-variant python-markdown))))
8912 (uri (pypi-uri "Markdown" version))
8915 "0yhylk4ffqqs7x086fav4pnfsl1021v7lghznzkififprmmqfl1f")))))))
8917 (define-public python-ptyprocess
8919 (name "python-ptyprocess")
8924 (uri (pypi-uri "ptyprocess" version))
8927 "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
8928 (build-system python-build-system)
8930 `(("python-nose" ,python-nose)))
8933 (modify-phases %standard-phases
8935 (lambda _ (invoke "nosetests"))))))
8936 (home-page "https://github.com/pexpect/ptyprocess")
8937 (synopsis "Run a subprocess in a pseudo terminal")
8939 "This package provides a Python library used to launch a subprocess in a
8940 pseudo terminal (pty), and interact with both the process and its pty.")
8941 (license license:isc)))
8943 (define-public python2-ptyprocess
8944 (package-with-python2 python-ptyprocess))
8946 (define-public python-cram
8948 (name "python-cram")
8950 (home-page "https://bitheap.org/cram/")
8953 (uri (list (string-append home-page "cram-"
8955 (pypi-uri "cram" version)))
8958 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
8961 (modify-phases %standard-phases
8962 (add-after 'unpack 'patch-source
8964 (substitute* (find-files "cram" ".*\\.py$")
8965 ;; Replace default shell path.
8966 (("/bin/sh") (which "sh")))
8967 (substitute* (find-files "tests" ".*\\.t$")
8969 (("/bin/bash") (which "bash"))
8970 (("/bin/sh") (which "sh")))
8971 (substitute* "cram/_test.py"
8972 ;; This hack works around a bug triggered by substituting
8973 ;; the /bin/sh paths. "tests/usage.t" compares the output of
8974 ;; "cram -h", which breaks the output at 80 characters. This
8975 ;; causes the line showing the default shell to break into two
8976 ;; lines, but the test expects a single line...
8977 (("env\\['COLUMNS'\\] = '80'")
8978 "env['COLUMNS'] = '160'"))
8980 (substitute* "Makefile"
8981 ;; Recent versions of python-coverage have caused the test
8982 ;; coverage to decrease (as of version 0.7). Allow that.
8983 (("--fail-under=100")
8988 ;; The test phase uses the built library and executable.
8989 (lambda* (#:key inputs outputs #:allow-other-keys)
8990 (add-installed-pythonpath inputs outputs)
8991 (setenv "PATH" (string-append (getenv "PATH") ":"
8992 (assoc-ref outputs "out") "/bin"))
8993 (invoke "make" "test"))))))
8994 (build-system python-build-system)
8996 `(("python-coverage" ,python-coverage)
8998 (synopsis "Simple testing framework for command line applications")
9000 "Cram is a functional testing framework for command line applications.
9001 Cram tests look like snippets of interactive shell sessions. Cram runs each
9002 command and compares the command output in the test with the command’s actual
9004 (license license:gpl2+)))
9006 (define-public python2-cram
9007 (package-with-python2 python-cram))
9009 (define-public python-crashtest
9011 (name "python-crashtest")
9016 (uri (pypi-uri "crashtest" version))
9018 (base32 "1p9p7mn8x2j9psc4jxab98897v4i9s4fliyfw8rp8v4bx1n7pjj2"))))
9019 (build-system python-build-system)
9020 (home-page "https://github.com/sdispater/crashtest")
9021 (synopsis "Manage Python errors with ease")
9023 "Python library that makes exceptions handling and inspection easier.")
9024 (license license:expat)))
9026 (define-public python-straight-plugin
9028 (name "python-straight-plugin")
9033 (uri (pypi-uri "straight.plugin" version))
9036 "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
9037 (build-system python-build-system)
9038 (home-page "https://github.com/ironfroggy/straight.plugin")
9039 (synopsis "Simple namespaced plugin facility")
9040 (description "Straight Plugin provides a type of plugin you can create from
9041 almost any existing Python modules, and an easy way for outside developers to
9042 add functionality and customization to your projects with their own plugins.")
9043 (license license:expat)))
9045 (define-public python2-straight-plugin
9046 (package-with-python2 python-straight-plugin))
9048 (define-public python-fonttools
9050 (name "python-fonttools")
9054 (uri (pypi-uri "fonttools" version ".zip"))
9057 "1mq9kdzhcsp96bhv7smnrpdg1s4z5wh70bsl99c0jmcrahqdisqq"))))
9058 (build-system python-build-system)
9061 ("python-pytest" ,python-pytest)
9062 ("python-pytest-runner" ,python-pytest-runner)))
9063 (home-page "https://github.com/fonttools/fonttools")
9064 (synopsis "Tools to manipulate font files")
9066 "FontTools/TTX is a library to manipulate font files from Python. It
9067 supports reading and writing of TrueType/OpenType fonts, reading and writing
9068 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
9069 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
9070 from an XML-based format.")
9071 (license license:expat)))
9073 ;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here.
9074 (define-public python2-fonttools
9075 (let ((base (package-with-python2 (strip-python2-variant python-fonttools))))
9081 (uri (pypi-uri "fonttools" version ".zip"))
9084 "0v6399g755f2hn1ry62i5b6gdinf2fpx2966v3bxh6bjw1accb5p")))))))
9086 (define-public python-ly
9093 (uri (pypi-uri name version))
9096 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
9097 (build-system python-build-system)
9099 ;; FIXME: Some tests need network access.
9101 (synopsis "Tool and library for manipulating LilyPond files")
9102 (description "This package provides a Python library to parse, manipulate
9103 or create documents in LilyPond format. A command line program ly is also
9104 provided that can be used to do various manipulations with LilyPond files.")
9105 (home-page "https://pypi.org/project/python-ly/")
9106 (license license:gpl2+)))
9108 (define-public python-appdirs
9110 (name "python-appdirs")
9115 (uri (pypi-uri "appdirs" version))
9118 "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
9119 (build-system python-build-system)
9120 (home-page "https://github.com/ActiveState/appdirs")
9122 "Determine platform-specific dirs, e.g. a \"user data dir\"")
9124 "This module provides a portable way of finding out where user data
9125 should be stored on various operating systems.")
9126 (license license:expat)))
9128 (define-public python2-appdirs
9129 (package-with-python2 python-appdirs))
9131 (define-public python-gorilla
9133 (name "python-gorilla")
9137 (uri (pypi-uri "gorilla" version))
9140 "0b40blcp6fih4nvqbilra4qw1dfccv1ahjmr41ac4d9rjadqkcpy"))))
9141 (build-system python-build-system)
9142 (home-page "https://github.com/christophercrouzet/gorilla")
9143 (synopsis "Convenient monkey patching with Python")
9145 "Gorilla is a Python library that provides a convenient approach to
9146 monkey patching. Monkey patching is the process of modifying module and
9147 class attributes at runtime with the purpose of replacing or extending
9149 (license license:expat)))
9151 (define-public python-llfuse
9153 (name "python-llfuse")
9157 (uri (pypi-uri "llfuse" version))
9160 "1g2cdhdqrb6m7655qp61pn61pwj1ql61cdzhr2jvl3w4i8877ddr"))))
9161 (build-system python-build-system)
9166 `(("pkg-config" ,pkg-config)))
9167 (synopsis "Python bindings for FUSE")
9169 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
9170 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
9171 (license license:lgpl2.0+)
9172 (properties `((python2-variant . ,(delay python2-llfuse))))))
9174 (define-public python2-llfuse
9175 (let ((base (package-with-python2
9176 (strip-python2-variant python-llfuse))))
9177 (package/inherit base
9178 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))))
9180 (define-public python-msgpack
9182 (name "python-msgpack")
9186 (uri (pypi-uri "msgpack" version))
9189 "1h5mxh84rcw04dvxy1qbfn2hisavfqgilh9k09rgyjhd936dad4m"))))
9190 (build-system python-build-system)
9192 `(#:modules ((guix build utils)
9193 (guix build python-build-system)
9198 (modify-phases %standard-phases
9201 (let ((cwd (getcwd)))
9202 (setenv "PYTHONPATH"
9203 (string-append cwd "/build/"
9204 (find (cut string-prefix? "lib" <>)
9205 (scandir (string-append cwd "/build")))
9207 (getenv "PYTHONPATH")))
9208 (invoke "pytest" "-v" "test")))))))
9210 `(("python-pytest" ,python-pytest)))
9211 (synopsis "MessagePack (de)serializer")
9212 (description "MessagePack is a fast, compact binary serialization format,
9213 suitable for similar data to JSON. This package provides CPython bindings for
9214 reading and writing MessagePack data.")
9215 (home-page "https://pypi.org/project/msgpack/")
9216 (license license:asl2.0)))
9218 ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
9219 ;; release 0.5. Some packages like borg still call it by the old name for now.
9220 ;; <https://bugs.gnu.org/30662>
9221 (define-public python-msgpack-transitional
9223 (inherit python-msgpack)
9224 (name "python-msgpack-transitional")
9228 (uri (pypi-uri "msgpack" version))
9231 "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
9233 (substitute-keyword-arguments (package-arguments python-msgpack)
9235 `(modify-phases ,phases
9236 (add-after 'unpack 'configure-transitional
9238 ;; Keep using the old name.
9239 (substitute* "setup.py"
9240 (("TRANSITIONAL = False")
9241 "TRANSITIONAL = 1"))
9244 (define-public python2-msgpack
9245 (package-with-python2 python-msgpack))
9247 (define-public python-netaddr
9249 (name "python-netaddr")
9254 (uri (pypi-uri "netaddr" version))
9257 "1zdfadvpq4lmcqzr383gywxn4xyn355kj1n3lk9q2l03vmyfrbiq"))))
9258 (build-system python-build-system)
9259 (arguments `(#:tests? #f)) ;; No tests.
9260 (home-page "https://github.com/drkjam/netaddr/")
9261 (synopsis "Pythonic manipulation of network addresses")
9263 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
9264 and MAC network addresses.")
9265 (license license:bsd-3)))
9267 (define-public python2-netaddr
9268 (package-with-python2 python-netaddr))
9270 (define-public python2-pyroute2
9272 (name "python2-pyroute2")
9277 (uri (pypi-uri "pyroute2" version))
9280 "1gmz4r1w0yzj6fjjypnalmfyy0lnfznydyn62gi3wk50j5hhxbny"))))
9281 (build-system python-build-system)
9283 `(#:python ,python-2)) ;Python 3.x is not supported
9284 (home-page "https://github.com/svinota/pyroute2")
9285 (synopsis "Python netlink library")
9287 "Pyroute2 is a pure Python netlink library with minimal dependencies.
9288 Supported netlink families and protocols include:
9290 @item rtnl, network settings - addresses, routes, traffic controls
9291 @item nfnetlink - netfilter API: ipset, nftables, ...
9292 @item ipq - simplest userspace packet filtering, iptables QUEUE target
9293 @item devlink - manage and monitor devlink-enabled hardware
9294 @item generic - generic netlink families
9296 @item nl80211 - wireless functions API (basic support)
9297 @item taskstats - extended process statistics
9298 @item acpi_events - ACPI events monitoring
9299 @item thermal_events - thermal events monitoring
9300 @item VFS_DQUOT - disk quota events monitoring
9303 (license license:gpl2+)))
9305 (define-public python-wrapt
9307 (name "python-wrapt")
9312 (uri (pypi-uri "wrapt" version))
9315 "1q81762dgsgrd12f8qc39zk8s5wll3m5xc32jdmlf6cls4gh4njn"))))
9316 (build-system python-build-system)
9318 ;; Tests are not included in the tarball, they are only available in the
9321 (home-page "https://github.com/GrahamDumpleton/wrapt")
9322 (synopsis "Module for decorators, wrappers and monkey patching")
9324 "The aim of the wrapt module is to provide a transparent object proxy for
9325 Python, which can be used as the basis for the construction of function
9326 wrappers and decorator functions.")
9327 (license license:bsd-2)))
9329 (define-public python2-wrapt
9330 (package-with-python2 python-wrapt))
9332 (define-public python-commonmark
9334 (name "python-commonmark")
9339 (uri (pypi-uri "commonmark" version))
9341 (base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
9342 (build-system python-build-system)
9345 (modify-phases %standard-phases
9347 (lambda* (#:key inputs outputs #:allow-other-keys)
9348 (add-installed-pythonpath inputs outputs)
9349 (invoke "python" "setup.py" "test"))))))
9350 (home-page "https://github.com/readthedocs/commonmark.py")
9351 (synopsis "Python parser for the CommonMark Markdown spec")
9353 "This module is a pure Python port of jgm's @code{commonmark.js}, a
9354 Markdown parser and renderer for the CommonMark specification, using only
9356 (license license:bsd-3)))
9358 (define-public python-xlrd
9360 (name "python-xlrd")
9364 (uri (pypi-uri "xlrd" version))
9367 "1ci93fda4n67qhdvfl16zasyxrpygzk53hs6m8z0rd4dxrnb6vjl"))))
9368 (build-system python-build-system)
9371 (modify-phases %standard-phases
9372 ;; Some tests depend on writing a temporary file to the user's home
9374 (add-after 'unpack 'fix-tests
9376 (delete-file "tests/test_open_workbook.py")
9378 (home-page "http://www.python-excel.org/")
9379 (synopsis "Library for extracting data from Excel files")
9380 (description "This package provides a library to extract data from
9381 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
9382 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
9383 Unicode-aware. It is not intended as an end-user tool.")
9384 (license license:bsd-3)))
9386 (define-public python2-xlrd
9387 (package-with-python2 python-xlrd))
9389 (define-public python-immutables
9391 (name "python-immutables")
9396 (uri (pypi-uri "immutables" version))
9398 (base32 "0y0aqw29g525frdnmv9paljzacpp4s21sadfbca5b137iciwr8d0"))))
9399 (build-system python-build-system)
9400 (home-page "https://github.com/MagicStack/immutables")
9401 (synopsis "High-performance immutable mapping type for Python")
9403 "An immutable mapping type for Python. The underlying datastructure is a
9404 Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other
9405 functional languages.")
9406 (license license:asl2.0)))
9408 (define-public python-prettytable
9410 (name "python-prettytable")
9415 (uri (pypi-uri "prettytable" version ".tar.bz2"))
9418 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
9419 (build-system python-build-system)
9420 (home-page "https://code.google.com/archive/p/prettytable/")
9421 (synopsis "Display tabular data in an ASCII table format")
9423 "A library designed to represent tabular data in visually appealing ASCII
9424 tables. PrettyTable allows for selection of which columns are to be printed,
9425 independent alignment of columns (left or right justified or centred) and
9426 printing of sub-tables by specifying a row range.")
9427 (license license:bsd-3)))
9429 (define-public python2-prettytable
9430 (package-with-python2 python-prettytable))
9432 (define-public python-curio
9434 (name "python-curio")
9439 (uri (pypi-uri "curio" version))
9441 (base32 "16wkww6kh511b9bzsfhpvrv0766cc6ssgbzz4lgpjnrzzgx21wwh"))))
9442 (build-system python-build-system)
9445 (modify-phases %standard-phases
9447 (lambda* (#:key inputs outputs #:allow-other-keys)
9448 (add-installed-pythonpath inputs outputs)
9449 (invoke "pytest" "-vv" "-k"
9450 ;; Tries to open an outgoing connection.
9451 "not test_ssl_outgoing"))))))
9453 `(("python-pytest" ,python-pytest)))
9454 (home-page "https://github.com/dabeaz/curio")
9455 (synopsis "Coroutine-based library for concurrent Python")
9457 "Curio is a coroutine-based library for concurrent Python systems
9458 programming. It provides standard programming abstractions such as as
9459 tasks, sockets, files, locks, and queues.")
9460 (license license:bsd-3)))
9462 (define-public python-tables
9464 (name "python-tables")
9469 (uri (pypi-uri "tables" version))
9472 "0j8vnxh2m5n0cyk9z3ndcj5n1zj5rdxgc1gb78bqlyn2lyw75aa9"))
9473 (modules '((guix build utils)))
9476 ;; Remove pre-compiled .pyc files from source.
9477 (for-each delete-file-recursively
9478 (find-files "." "__pycache__" #:directories? #t))
9479 (for-each delete-file (find-files "." "\\.pyc$"))
9481 (build-system python-build-system)
9483 `(;; FIXME: python-build-system does not pass configure-flags to "build"
9484 ;; or "check", so we must override the build and check phases.
9486 (modify-phases %standard-phases
9487 (add-after 'unpack 'use-gcc
9489 (substitute* "setup.py"
9490 (("^( +)compiler = new_compiler\\(\\)" line indent)
9494 "compiler.set_executables(compiler='gcc',"
9495 "compiler_so='gcc',"
9497 "linker_so='gcc -shared')")))
9499 (add-after 'unpack 'disable-tuning
9501 (substitute* "setup.py"
9503 "cpu_flags = ['sse2']\n"))
9506 (lambda* (#:key inputs #:allow-other-keys)
9507 (invoke "python" "setup.py" "build"
9508 (string-append "--hdf5="
9509 (assoc-ref inputs "hdf5")))))
9511 (lambda* (#:key inputs #:allow-other-keys)
9512 (invoke "python" "setup.py" "check"
9513 (string-append "--hdf5="
9514 (assoc-ref inputs "hdf5"))))))))
9516 `(("python-numexpr" ,python-numexpr)
9517 ("python-numpy" ,python-numpy)))
9519 `(("python-cython" ,python-cython)
9520 ("pkg-config" ,pkg-config)))
9522 `(("hdf5" ,hdf5-1.10)
9525 (home-page "https://www.pytables.org/")
9526 (synopsis "Hierarchical datasets for Python")
9527 (description "PyTables is a package for managing hierarchical datasets and
9528 designed to efficiently cope with extremely large amounts of data.")
9529 (license license:bsd-3)))
9531 (define-public python-sniffio
9533 (name "python-sniffio")
9538 (uri (pypi-uri "sniffio" version))
9540 (base32 "08bsp2pp2dxzn9yzcafwzw8jlm0jf50as0ix8vfhxzk91w810f4f"))))
9541 (build-system python-build-system)
9544 (modify-phases %standard-phases
9547 (invoke "pytest" "-vv"))))))
9549 `(("python-curio" ,python-curio)
9550 ("python-pytest" ,python-pytest)
9551 ("python-pytest-cov" ,python-pytest-cov)))
9552 (home-page "https://github.com/python-trio/sniffio")
9553 (synopsis "Detect which async library a program is running under")
9554 (description "This package detects which async library a program is
9555 running under. It supports multiple async I/O packages, like Trio, and
9557 ;; Either license applies.
9558 (license (list license:expat license:asl2.0))))
9560 (define-public python-pytest-black
9562 (name "python-pytest-black")
9567 (uri (pypi-uri "pytest-black" version))
9570 "04lppqydxm0f3f3x0l8hj7v0j6d8syj34jc37yzqwqcyqsnaga81"))))
9571 (build-system python-build-system)
9573 `(("python-pytest" ,python-pytest)
9574 ("python-black" ,python-black)
9575 ("python-toml" ,python-toml)))
9577 `(("python-setuptools-scm" ,python-setuptools-scm)))
9578 (home-page "https://github.com/shopkeep/pytest-black")
9579 (synopsis "Pytest plugin to enable format checking with black")
9581 "This package provides a pytest plugin to enable format checking with the
9582 Python code formatter \"black\".")
9583 (license license:expat)))
9585 (define-public python-get-version
9587 (name "python-get-version")
9592 (uri (pypi-uri "get_version" version))
9595 "1g15jyx33vkxavv9hwv275cs4g9bp2i1y942raw3fxamq8kbaml1"))))
9596 (build-system python-build-system)
9598 `(("python-pygments" ,python-pygments)
9599 ("python-pytest" ,python-pytest)
9600 ("python-pytest-black" ,python-pytest-black)
9601 ("python-pytest-cov" ,python-pytest-cov)
9602 ("python-setuptools" ,python-setuptools)
9603 ("python-testpath" ,python-testpath)))
9604 (home-page "https://github.com/flying-sheep/get_version")
9605 (synopsis "Version helper in the spirit of versioneer")
9607 "This package provides a version helper that lets you automatically use
9608 the latest @code{vX.X.X} Git tag as the version in your Python package. It
9609 also supports getting the version from Python source distributions or, once
9610 your package is installed, via @code{pkg_resources} (part of
9611 @code{setuptools}).")
9612 (license license:gpl3+)))
9614 (define-public python-legacy-api-wrap
9616 (name "python-legacy-api-wrap")
9621 (uri (pypi-uri "legacy-api-wrap" version))
9624 "06qhp0g543dy98vpa41hwdalvdbsjfc3ldk474yr9sd75mhl8jh3"))))
9625 (build-system python-build-system)
9627 `(("python-get-version" ,python-get-version)
9628 ("python-pytest" ,python-pytest)
9629 ("python-pytest-black" ,python-pytest-black)
9630 ("python-pytest-cov" ,python-pytest-cov)
9631 ("python-setuptools" ,python-setuptools)))
9632 (home-page "https://github.com/flying-sheep/legacy-api-wrap")
9633 (synopsis "Legacy API wrapper")
9634 (description "This module defines a decorator to wrap legacy APIs. The
9635 primary use case is APIs defined before keyword-only parameters existed.")
9636 (license license:gpl3+)))
9638 (define-public python-pyasn1
9640 (name "python-pyasn1")
9645 (uri (pypi-uri "pyasn1" version))
9648 "1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
9649 (build-system python-build-system)
9650 (home-page "http://pyasn1.sourceforge.net/")
9651 (synopsis "ASN.1 types and codecs")
9653 "This is an implementation of ASN.1 types and codecs in Python. It is
9654 suitable for a wide range of protocols based on the ASN.1 specification.")
9655 (license license:bsd-2)))
9657 (define-public python2-pyasn1
9658 (package-with-python2 python-pyasn1))
9660 (define-public python-pyasn1-modules
9662 (name "python-pyasn1-modules")
9667 (uri (pypi-uri "pyasn1-modules" version))
9670 "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0"))))
9671 (build-system python-build-system)
9673 `(("python-pyasn1" ,python-pyasn1)))
9674 (home-page "https://sourceforge.net/projects/pyasn1/")
9675 (synopsis "ASN.1 codec implementations")
9677 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
9678 implementations of ASN.1-based codecs and protocols.")
9679 (license license:bsd-3)))
9681 (define-public python2-pyasn1-modules
9682 (package-with-python2 python-pyasn1-modules))
9684 (define-public python-ipaddress
9686 (name "python-ipaddress")
9690 (uri (pypi-uri "ipaddress" version))
9693 "0b570bm6xqpjwqis15pvdy6lyvvzfndjvkynilcddjj5x98wfimi"))))
9694 (build-system python-build-system)
9695 (home-page "https://github.com/phihag/ipaddress")
9696 (synopsis "IP address manipulation library")
9698 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
9699 in Python. This library is used to create, poke at, and manipulate IPv4 and
9700 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
9701 module to older versions of Python.")
9702 (license license:psfl)))
9704 (define-public python2-ipaddress
9705 (package-with-python2 python-ipaddress))
9707 (define-public python2-ipaddr
9709 (name "python2-ipaddr")
9714 (uri (pypi-uri "ipaddr" version))
9716 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
9717 (build-system python-build-system)
9719 `(#:python ,python-2 ;version 2 only
9721 (modify-phases %standard-phases
9723 (lambda _ (invoke "python" "ipaddr_test.py"))))))
9724 (home-page "https://github.com/google/ipaddr-py")
9725 (synopsis "IP address manipulation library")
9727 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
9728 IPv6 addresses and networks.
9730 For new implementations you may prefer to use the standard module
9731 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
9732 versions of Python.")
9733 (license license:asl2.0)))
9735 (define-public python-idna
9737 (name "python-idna")
9742 (uri (pypi-uri "idna" version))
9745 "1xmk3s92d2vq42684p61wixfmh3qpr2mw762w0n6662vhlpqf1xk"))))
9746 (build-system python-build-system)
9747 (home-page "https://github.com/kjd/idna")
9748 (synopsis "Internationalized domain names in applications")
9750 "This is a library to support the Internationalised Domain Names in
9751 Applications (IDNA) protocol as specified in RFC 5891. This version of the
9752 protocol is often referred to as “IDNA2008” and can produce different results
9753 from the earlier standard from 2003. The library is also intended to act as a
9754 suitable drop-in replacement for the “encodings.idna” module that comes with
9755 the Python standard library but currently only supports the older 2003
9757 (license license:bsd-4)))
9759 (define-public python-idna-2.7
9760 (package (inherit python-idna)
9764 (uri (pypi-uri "idna" version))
9767 "05jam7d31767dr12x0rbvvs8lxnpb1mhdb2zdlfxgh83z6k3hjk8"))))))
9770 (define-public python2-idna
9771 (package-with-python2 python-idna))
9773 (define-public python-libsass
9775 (name "python-libsass")
9779 ;; PyPI tarball is missing some test files.
9782 (url "https://github.com/sass/libsass-python")
9784 (file-name (git-file-name name version))
9786 (base32 "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh"))))
9787 (build-system python-build-system)
9790 (modify-phases %standard-phases
9791 ;; Use Guix package of libsass instead of compiling from a checkout.
9792 (add-before 'build 'set-libsass
9794 (setenv "SYSTEM_SASS" (assoc-ref %build-inputs "libsass"))
9797 (lambda* (#:key inputs outputs #:allow-other-keys)
9798 (add-installed-pythonpath inputs outputs)
9799 (invoke "pytest" "sasstests.py"))))))
9801 `(("python-pytest" ,python-pytest)
9802 ("python-werkzeug" ,python-werkzeug)))
9804 `(("libsass" ,libsass)))
9806 `(("python-six" ,python-six)))
9807 (home-page "https://sass.github.io/libsass-python/")
9808 (synopsis "Straightforward binding of libsass for Python")
9810 "This package provides a simple Python extension module @code{sass} which
9811 is binding LibSass.")
9812 (license license:expat)))
9814 (define-public python-idna-ssl
9816 (name "python-idna-ssl")
9821 (uri (pypi-uri "idna-ssl" version))
9824 "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
9825 (build-system python-build-system)
9827 `(#:tests? #f)) ;circular dependency with python-aiohttp
9828 (home-page "https://github.com/aio-libs/idna-ssl")
9829 (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
9830 (description "Patch @code{ssl.match_hostname} for Unicode(idna)
9832 (license license:expat)))
9834 (define-public python-pretend
9836 (name "python-pretend")
9841 (uri (pypi-uri "pretend" version))
9844 "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
9845 (build-system python-build-system)
9846 (home-page "https://github.com/alex/pretend")
9847 (synopsis "Library for stubbing in Python")
9849 "Pretend is a library to make stubbing with Python easier. Stubbing is a
9850 technique for writing tests. You may hear the term mixed up with mocks,
9851 fakes, or doubles. Basically, a stub is an object that returns pre-canned
9852 responses, rather than doing any computation.")
9853 (license license:bsd-3)))
9855 (define-public python2-pretend
9856 (package-with-python2 python-pretend))
9858 (define-public python-pip
9865 (uri (pypi-uri "pip" version))
9868 "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
9869 (build-system python-build-system)
9871 '(#:tests? #f)) ; there are no tests in the pypi archive.
9872 (home-page "https://pip.pypa.io/")
9873 (synopsis "Package manager for Python software")
9875 "Pip is a package manager for Python software, that finds packages on the
9876 Python Package Index (PyPI).")
9877 (license license:expat)))
9879 (define-public python2-pip
9880 (package-with-python2 python-pip))
9882 (define-public python-tlsh
9884 (name "python-tlsh")
9886 (home-page "https://github.com/trendmicro/tlsh")
9891 (url "https://github.com/trendmicro/tlsh")
9892 (commit (string-append "v" version))))
9893 (file-name (git-file-name name version))
9895 (base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"))))
9896 (build-system cmake-build-system)
9898 '(#:out-of-source? #f
9899 #:phases (modify-phases %standard-phases
9902 (lambda* (#:key outputs #:allow-other-keys)
9903 ;; Build and install the Python bindings. The underlying
9904 ;; C++ library is apparently not meant to be installed.
9905 (let ((out (assoc-ref outputs "out")))
9906 (with-directory-excursion "py_ext"
9907 (and (system* "python" "setup.py" "build")
9908 (system* "python" "setup.py" "install"
9909 (string-append "--prefix=" out))))))))))
9910 (inputs `(("python" ,python-wrapper))) ;for the bindings
9911 (synopsis "Fuzzy matching library for Python")
9913 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
9914 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
9915 value which can be used for similarity comparisons. Similar objects have
9916 similar hash values, which allows for the detection of similar objects by
9917 comparing their hash values. The byte stream should have a sufficient amount
9918 of complexity; for example, a byte stream of identical bytes will not generate
9920 (license license:asl2.0)))
9922 (define-public python2-tlsh
9923 (package/inherit python-tlsh
9924 (name "python2-tlsh")
9925 (inputs `(("python" ,python-2)))))
9927 (define-public python-termcolor
9929 (name "python-termcolor")
9934 (uri (pypi-uri "termcolor" version))
9937 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
9938 (build-system python-build-system)
9940 ;; There are no tests.
9942 (home-page "https://pypi.org/project/termcolor/")
9943 (synopsis "ANSII Color formatting for terminal output")
9945 "This package provides ANSII Color formatting for output in terminals.")
9946 (license license:expat)))
9948 (define-public python2-termcolor
9949 (package-with-python2 python-termcolor))
9951 (define-public python-terminaltables
9953 (name "python-terminaltables")
9958 (uri (pypi-uri "terminaltables" version))
9961 "109vhldk6nv1z3hzp4dyqf6rjvlhl0y2k5k7qcm9fcrq5swhxszk"))))
9962 (build-system python-build-system)
9963 (home-page "https://github.com/Robpol86/terminaltables")
9965 "Generate simple tables in terminals from a nested list of strings")
9967 "This package makes it easy to draw tables in terminal/console
9968 applications from a list of lists of strings. It supports multi-line rows.")
9969 (license license:expat)))
9971 (define-public python-libarchive-c
9973 (name "python-libarchive-c")
9977 (uri (pypi-uri "libarchive-c" version))
9980 "0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
9981 (build-system python-build-system)
9983 '(#:phases (modify-phases %standard-phases
9985 'build 'reference-libarchive
9986 (lambda* (#:key inputs #:allow-other-keys)
9987 ;; Retain the absolute file name of libarchive.so.
9988 (let ((libarchive (assoc-ref inputs "libarchive")))
9989 (substitute* "libarchive/ffi.py"
9990 (("find_library\\('archive'\\)")
9991 (string-append "'" libarchive
9992 "/lib/libarchive.so'"))))))
9994 (lambda _ (invoke "pytest" "-vv"))))))
9996 `(("python-mock" ,python-mock)
9997 ("python-pytest" ,python-pytest)))
9999 `(("libarchive" ,libarchive)))
10000 (home-page "https://github.com/Changaco/python-libarchive-c")
10001 (synopsis "Python interface to libarchive")
10003 "This package provides Python bindings to libarchive, a C library to
10004 access possibly compressed archives in many different formats. It uses
10005 Python's @code{ctypes} foreign function interface (FFI).")
10006 (license license:lgpl2.0+)))
10008 (define-public python2-libarchive-c
10009 (package-with-python2 python-libarchive-c))
10011 (define-public python-file
10012 (package/inherit file
10013 (name "python-file")
10014 (build-system python-build-system)
10016 '(#:tests? #f ;no tests
10017 #:configure-flags '("--single-version-externally-managed" "--root=/")
10018 #:phases (modify-phases %standard-phases
10019 (add-before 'build 'change-directory
10023 (add-before 'build 'set-library-file-name
10024 (lambda* (#:key inputs #:allow-other-keys)
10025 (let ((file (assoc-ref inputs "file")))
10026 (substitute* "magic.py"
10027 (("find_library\\('magic'\\)")
10028 (string-append "'" file "/lib/libmagic.so'")))
10030 (inputs `(("file" ,file)))
10031 (native-inputs (if (%current-target-system)
10032 `(("self" ,this-package))
10034 (synopsis "Python bindings to the libmagic file type guesser")
10035 (description "This package provides Python bindings to the libmagic file
10038 Note that this module and the @code{python-magic} module both provide a
10039 @file{magic.py} file; these two modules, which are different and were
10040 developed separately, both serve the same purpose: provide Python bindings for
10043 (define-public python2-file
10044 (package-with-python2 python-file))
10046 (define-public python-debian
10048 (name "python-debian")
10049 (home-page "https://salsa.debian.org/python-debian-team/python-debian")
10053 ;; Use git-fetch, as pypi doesn't include test suite.
10055 (uri (git-reference
10058 (file-name (git-file-name name version))
10061 "0qy6x28bj6yfikhjww932v5xq4mf5bm1iczl7acy4c7zm6mwhqfa"))))
10062 (build-system python-build-system)
10064 `(#:phases (modify-phases %standard-phases
10065 (add-after 'unpack 'remove-debian-specific-tests
10066 ;; python-apt, apt and dpkg are not yet available in guix,
10067 ;; and these tests heavily depend on them.
10069 (delete-file "lib/debian/tests/test_deb822.py")
10070 (delete-file "lib/debian/tests/test_debfile.py")
10073 `(("python-six" ,python-six)
10074 ("python-chardet" ,python-chardet)))
10075 (synopsis "Debian package related modules")
10077 ;; XXX: Use @enumerate instead of @itemize to work around
10078 ;; <http://bugs.gnu.org/21772>.
10079 "This package provides Python modules that abstract many formats of
10080 Debian-related files, such as:
10083 @item Debtags information;
10084 @item @file{debian/changelog} files;
10085 @item packages files, pdiffs;
10086 @item control files of single or multiple RFC822-style paragraphs---e.g.
10087 @file{debian/control}, @file{.changes}, @file{.dsc};
10088 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
10089 contained files and meta-information.
10092 ;; Modules are either GPLv2+ or GPLv3+.
10093 (license license:gpl3+)))
10095 (define-public python-nbformat
10097 (name "python-nbformat")
10102 (uri (pypi-uri "nbformat" version))
10105 "00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp"))))
10106 (build-system python-build-system)
10107 (arguments `(#:tests? #f)) ; no test target
10109 `(("python-ipython-genutils" ,python-ipython-genutils)
10110 ("python-jsonschema" ,python-jsonschema)
10111 ("python-jupyter-core" ,python-jupyter-core)
10112 ("python-traitlets" ,python-traitlets)))
10113 (home-page "https://jupyter.org")
10114 (synopsis "Jupyter Notebook format")
10115 (description "This package provides the reference implementation of the
10116 Jupyter Notebook format and Python APIs for working with notebooks.")
10117 (license license:bsd-3)))
10119 (define-public python2-nbformat
10120 (package-with-python2 python-nbformat))
10122 (define-public python-bleach
10124 (name "python-bleach")
10129 (uri (pypi-uri "bleach" version))
10131 (base32 "0jqa8f1ni10cyf4h7sjpf8mbqlcbkyvmsnli77qrxdcxvc7m4k1w"))))
10132 (build-system python-build-system)
10134 `(("python-webencodings" ,python-webencodings)
10135 ("python-six" ,python-six)))
10137 `(("python-datrie" ,python-datrie)
10138 ("python-genshi" ,python-genshi)
10139 ("python-lxml" ,python-lxml)
10140 ("python-pytest" ,python-pytest)))
10141 (home-page "https://github.com/mozilla/bleach")
10142 (synopsis "Whitelist-based HTML-sanitizing tool")
10143 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
10144 (license license:asl2.0)))
10146 (define-public python2-bleach
10147 (package-with-python2 python-bleach))
10149 (define-public python-entrypoints
10151 (name "python-entrypoints")
10156 (uri (pypi-uri "entrypoints" version))
10159 "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
10160 (build-system python-build-system)
10161 ;; The package does not come with a setup.py file, so we have to generate
10166 (modify-phases %standard-phases
10167 (add-after 'unpack 'create-setup.py
10169 (call-with-output-file "setup.py"
10172 from setuptools import setup
10173 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
10175 (home-page "https://github.com/takluyver/entrypoints")
10176 (synopsis "Discover and load entry points from installed Python packages")
10177 (description "Entry points are a way for Python packages to advertise
10178 objects with some common interface. The most common examples are
10179 @code{console_scripts} entry points, which define shell commands by
10180 identifying a Python function to run. The @code{entrypoints} module contains
10181 functions to find and load entry points.")
10182 (license license:expat)))
10184 (define-public python2-entrypoints
10185 (package-with-python2 python-entrypoints))
10187 (define-public python-epc
10189 (name "python-epc")
10194 (uri (pypi-uri "epc" version))
10197 "09bx1ln1bwa00917dndlgs4k589h8qx2x080xch5m58p92kjwkd1"))))
10198 (build-system python-build-system)
10200 `(("python-sexpdata" ,python-sexpdata)))
10202 `(("python-nose" ,python-nose)))
10203 (home-page "https://github.com/tkf/python-epc")
10204 (synopsis "Remote procedure call (RPC) stack for Emacs Lisp and Python")
10206 "Python-EPC can call elisp functions from Python and Python functions
10208 (license license:gpl3)))
10210 (define-public python-forex-python
10212 (name "python-forex-python")
10217 (uri (pypi-uri "forex-python" version))
10219 (base32 "1ma8cl1i2dh8aa99pifnlilyy4d1gd1s07fj0yd17wcbpsh532cj"))))
10220 (build-system python-build-system)
10222 ;; Tests are not included in the PyPI tarball. Also, the tests in the
10223 ;; repository require online data.
10226 `(("python-requests" ,python-requests)
10227 ("python-simplejson" ,python-simplejson)))
10228 (home-page "https://github.com/MicroPyramid/forex-python")
10229 (synopsis "Foreign exchange rates and currency conversion")
10231 "@code{python-forex-python} can be used to manipulate foreign
10232 exchange rates and to operate currency conversions.
10236 @item List all currency rates.
10237 @item BitCoin price for all currencies.
10238 @item Converting amount to BitCoins.
10239 @item Get historical rates for any day since 1999.
10240 @item Conversion rate for one currency(ex; USD to INR).
10241 @item Convert amount from one currency to other.('USD 10$' to INR).
10242 @item Currency symbols.
10243 @item Currency names.
10245 (license license:expat)))
10247 (define-public python-simpleeval
10249 (name "python-simpleeval")
10254 (uri (pypi-uri "simpleeval" version))
10256 (base32 "1skvl467kj83rzkhk01i0wm8m5vmh6j5znrfdizn6r18ii45a839"))))
10257 (build-system python-build-system)
10258 (home-page "https://github.com/danthedeckie/simpleeval")
10259 (synopsis "Simple, safe single expression evaluator library")
10261 "This package provides a quick single file library for easily adding
10262 evaluatable expressions into python projects. Say you want to allow a user
10263 to set an alarm volume, which could depend on the time of day, alarm level,
10264 how many previous alarms had gone off, and if there is music playing at the
10266 (license license:expat)))
10268 (define-public python-nbconvert
10270 (name "python-nbconvert")
10271 (version "5.0.0b1")
10275 (uri (pypi-uri "nbconvert" version))
10278 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
10279 (build-system python-build-system)
10281 `(;; The "bdist_egg" target is disabled by default, causing the installation
10283 #:configure-flags (list "bdist_egg")
10284 ;; FIXME: 5 failures, 40 errors.
10287 ;; (modify-phases %standard-phases
10290 ;; (zero? (system* "py.test" "-v")))))
10292 `(("python-pytest" ,python-pytest)))
10294 `(("python-bleach" ,python-bleach)
10295 ("python-entrypoints" ,python-entrypoints)
10296 ("python-jinja2" ,python-jinja2)
10297 ("python-jupyter-core" ,python-jupyter-core)
10298 ("python-mistune" ,python-mistune)
10299 ("python-nbformat" ,python-nbformat)
10300 ("python-pygments" ,python-pygments)
10301 ("python-traitlets" ,python-traitlets)))
10302 (home-page "https://jupyter.org")
10303 (synopsis "Converting Jupyter Notebooks")
10304 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
10305 notebooks to various other formats via Jinja templates. It allows you to
10306 convert an @code{.ipynb} notebook file into various static formats including:
10313 @item Markdown (md)
10314 @item ReStructured Text (rst)
10315 @item executable script
10317 (license license:bsd-3)))
10319 (define-public python2-nbconvert
10320 (package-with-python2 python-nbconvert))
10322 (define-public python-notebook
10324 (name "python-notebook")
10328 (uri (pypi-uri "notebook" version))
10331 "0jm7324mbxljmn9hgapj66q7swyz5ai92blmr0jpcy0h80x6f26r"))))
10332 (build-system python-build-system)
10335 (modify-phases %standard-phases
10338 ;; These tests require a browser
10339 (delete-file-recursively "notebook/tests/selenium")
10340 ;; Some tests need HOME
10341 (setenv "HOME" "/tmp")
10342 ;; This file contains "warningfilters", which are not supported
10343 ;; by this version of nose.
10344 (delete-file "setup.cfg")
10345 (with-directory-excursion "/tmp"
10346 (invoke "nosetests" "-v"))
10349 `(("python-jupyter-core" ,python-jupyter-core)
10350 ("python-nbformat" ,python-nbformat)
10351 ("python-nbconvert" ,python-nbconvert)
10352 ("python-prometheus-client" ,python-prometheus-client)
10353 ("python-send2trash" ,python-send2trash)
10354 ("python-terminado" ,python-terminado)))
10356 `(("python-nose" ,python-nose)
10357 ("python-sphinx" ,python-sphinx)
10358 ("python-requests" ,python-requests)))
10359 (home-page "https://jupyter.org/")
10360 (synopsis "Web-based notebook environment for interactive computing")
10362 "The Jupyter HTML notebook is a web-based notebook environment for
10363 interactive computing.")
10364 (properties `((python2-variant . ,(delay python2-notebook))))
10365 (license license:bsd-3)))
10367 (define-public python2-notebook
10368 (let ((base (package-with-python2
10369 (strip-python2-variant python-notebook))))
10370 (package/inherit base
10372 `(("python2-mock" ,python2-mock)
10373 ,@(package-native-inputs base)))
10375 (substitute-keyword-arguments (package-arguments base)
10377 `(modify-phases ,phases
10378 (add-before 'check 'disable-test-case
10379 ;; The test requires network access to localhost. Curiously it
10380 ;; fails with Python 2 only. Simply make the test-case return
10384 "notebook/services/nbconvert/tests/test_nbconvert_api.py"
10385 (("formats = self.nbconvert_api") "return #")))))))))))
10387 (define-public python-widgetsnbextension
10389 (name "python-widgetsnbextension")
10394 (uri (pypi-uri "widgetsnbextension" version))
10397 "1ismyaxbv9d56yqqqb8xl58hg0iq0bbyy014a53y1g3hfbc8g7q7"))))
10398 (build-system python-build-system)
10400 `(("python-ipykernel" ,python-ipykernel)
10401 ("python-notebook" ,python-notebook)))
10403 `(("python-certifi" ,python-certifi)
10404 ("python-nose" ,python-nose)))
10405 (home-page "https://ipython.org")
10406 (synopsis "IPython HTML widgets for Jupyter")
10407 (description "This package provides interactive HTML widgets for Jupyter
10409 (license license:bsd-3)))
10411 (define-public python-ipywidgets
10413 (name "python-ipywidgets")
10418 (uri (pypi-uri "ipywidgets" version))
10421 "15sww2mvnkqlvx55gwa82v05062a8j1xpncnqna4k9sl53hgcig9"))))
10422 (build-system python-build-system)
10424 `(("python-ipython" ,python-ipython)
10425 ("python-traitlets" ,python-traitlets)
10426 ("python-widgetsnbextension" ,python-widgetsnbextension)))
10428 `(("python-nose" ,python-nose)
10429 ("python-pytest" ,python-pytest)))
10430 (home-page "https://ipython.org")
10431 (synopsis "IPython HTML widgets for Jupyter")
10432 (description "Ipywidgets are interactive HTML widgets for Jupyter
10433 notebooks and the IPython kernel. Notebooks come alive when interactive
10434 widgets are used. Users gain control of their data and can visualize changes
10436 (license license:bsd-3)))
10438 (define-public python-jupyter-console
10440 (name "python-jupyter-console")
10445 (uri (pypi-uri "jupyter_console" version))
10448 "06s3kr5vx0l1y1b7fxb04dmrppscl7q69sl9yyfr0d057d1ssvkg"))))
10449 (build-system python-build-system)
10451 `(("python-ipykernel" ,python-ipykernel)
10452 ("python-jupyter-client" ,python-jupyter-client)
10453 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
10454 ("python-pygments" ,python-pygments)))
10456 `(("python-nose" ,python-nose)))
10457 (home-page "https://jupyter.org")
10458 (synopsis "Jupyter terminal console")
10459 (description "This package provides a terminal-based console frontend for
10460 Jupyter kernels. It also allows for console-based interaction with non-Python
10461 Jupyter kernels such as IJulia and IRKernel.")
10462 (properties `((python2-variant . ,(delay python2-jupyter-console))))
10463 (license license:bsd-3)))
10465 (define-public python2-jupyter-console
10467 (name "python2-jupyter-console")
10472 (uri (pypi-uri "jupyter_console" version))
10475 "1kam1qzgwr7srhm5r6aj90di5sws4bq0jmiw15452ddamb9yspal"))))
10476 (build-system python-build-system)
10478 `(#:python ,python-2
10479 #:tests? #f)) ; Tests only run in a TTY.
10481 `(("python2-ipykernel" ,python2-ipykernel)
10482 ("python2-jupyter-client" ,python2-jupyter-client)
10483 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
10484 ("python2-pygments" ,python2-pygments)))
10486 `(("python2-nose" ,python2-nose)))
10487 (home-page "https://jupyter.org")
10488 (synopsis "Jupyter terminal console")
10489 (description "This package provides a terminal-based console frontend for
10490 Jupyter kernels. It also allows for console-based interaction with non-Python
10491 Jupyter kernels such as IJulia and IRKernel.")
10492 (license license:bsd-3)))
10494 ;; The python-ipython and python-jupyter-console require each other. To get
10495 ;; the functionality in both packages working, strip down the
10496 ;; python-jupyter-console package when using it as an input to python-ipython.
10497 (define python-jupyter-console-minimal
10498 (package/inherit python-jupyter-console
10499 (name "python-jupyter-console-minimal")
10501 (substitute-keyword-arguments
10502 (package-arguments python-jupyter-console)
10504 `(modify-phases ,phases
10505 (add-after 'install 'delete-bin
10506 (lambda* (#:key outputs #:allow-other-keys)
10507 ;; Delete the bin files, to avoid conflicts in profiles
10508 ;; where python-ipython and python-jupyter-console are
10510 (delete-file-recursively
10512 (assoc-ref outputs "out") "/bin"))))))))
10513 ;; Remove the python-ipython propagated input, to avoid the cycle
10517 (package-propagated-inputs python-jupyter-console)))))
10519 (define-public python-qtconsole
10521 (name "python-qtconsole")
10526 (uri (pypi-uri "qtconsole" version))
10529 "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw"))))
10530 (build-system python-build-system)
10532 ;; XXX: Tests are disabled, because this package needs python-ipython 7,
10533 ;; but we only have the LTS version 5.x. This means that there might be
10534 ;; runtime errors, but since this is a dependency of the Jupyter package,
10535 ;; and Jupyter can be used without the qtconsole we can overlook this for
10539 (modify-phases %standard-phases
10540 (add-before 'check 'pre-check
10542 (setenv "QT_QPA_PLATFORM" "offscreen")
10545 `(("python-ipykernel" ,python-ipykernel)
10546 ("python-ipython" ,python-ipython)))
10548 `(("python-pytest" ,python-pytest)))
10549 (home-page "https://jupyter.org")
10550 (synopsis "Jupyter Qt console")
10551 (description "This package provides a Qt-based console for Jupyter with
10552 support for rich media output.")
10553 (license license:bsd-3)))
10555 (define-public python-jsbeautifier
10557 (name "python-jsbeautifier")
10559 (home-page "https://github.com/beautify-web/js-beautify")
10562 (uri (git-reference
10564 (commit (string-append "v" version))))
10565 (file-name (git-file-name name version))
10568 "0wawb070ki1axb3jc9xvsrgpji52vcfif3zmjzc3z4g98m5xw4kg"))))
10569 (build-system python-build-system)
10571 `(#:phases (modify-phases %standard-phases
10572 (add-after 'unpack 'chdir
10574 ;; The upstream Git repository contains all the code,
10575 ;; but this package only builds the python code.
10578 (add-after 'unpack 'patch-python-six-requirements
10580 (substitute* "python/setup.py"
10585 `(("python-editorconfig" ,python-editorconfig)
10586 ("python-six" ,python-six)))
10588 `(("python-pytest" ,python-pytest)))
10589 (synopsis "JavaScript unobfuscator and beautifier")
10590 (description "Beautify, unpack or deobfuscate JavaScript, leveraging
10591 popular online obfuscators.")
10592 (license license:expat)))
10594 (define-public jupyter
10601 (uri (pypi-uri "jupyter" version))
10604 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
10605 (build-system python-build-system)
10606 (arguments '(#:tests? #f)) ; there are none.
10608 `(("python-ipykernel" ,python-ipykernel)
10609 ("python-ipywidgets" ,python-ipywidgets)
10610 ("python-jupyter-console" ,python-jupyter-console)
10611 ("python-nbconvert" ,python-nbconvert)
10612 ("python-notebook" ,python-notebook)
10613 ("python-qtconsole" ,python-qtconsole)))
10614 (native-search-paths
10615 (list (search-path-specification
10616 (variable "JUPYTER_PATH")
10617 (files '("share/jupyter")))))
10618 (home-page "https://jupyter.org")
10619 (synopsis "Web application for interactive documents")
10621 "The Jupyter Notebook is a web application that allows you to create and
10622 share documents that contain live code, equations, visualizations and
10623 explanatory text. Uses include: data cleaning and transformation, numerical
10624 simulation, statistical modeling, machine learning and much more.")
10625 (license license:bsd-3)))
10627 (define-public python-chardet
10629 (name "python-chardet")
10634 (uri (pypi-uri "chardet" version))
10637 "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"))))
10639 `(("python-hypothesis" ,python-hypothesis)
10640 ("python-pytest" ,python-pytest)
10641 ("python-pytest-runner" ,python-pytest-runner)))
10642 (build-system python-build-system)
10643 ;; XXX: Incompatible with Pytest 4: <https://github.com/chardet/chardet/issues/173>.
10644 (arguments `(#:tests? #f))
10645 (home-page "https://github.com/chardet/chardet")
10646 (synopsis "Universal encoding detector for Python 2 and 3")
10648 "This package provides @code{chardet}, a Python module that can
10649 automatically detect a wide range of file encodings.")
10650 (license license:lgpl2.1+)))
10652 (define-public python2-chardet
10653 (package-with-python2 python-chardet))
10655 (define-public python-docopt
10657 (name "python-docopt")
10662 ;; The release on PyPI does not include tests.
10663 (uri (git-reference
10664 (url "https://github.com/docopt/docopt")
10666 (file-name (git-file-name name version))
10669 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))))
10670 (build-system python-build-system)
10672 `(("python-pytest" ,python-pytest)))
10675 (modify-phases %standard-phases
10677 (lambda _ (invoke "py.test"))))))
10678 (home-page "http://docopt.org")
10679 (synopsis "Command-line interface description language for Python")
10680 (description "This library allows the user to define a command-line
10681 interface from a program's help message rather than specifying it
10682 programmatically with command-line parsers like @code{getopt} and
10684 (license license:expat)))
10686 (define-public python2-docopt
10687 (package-with-python2 python-docopt))
10689 (define-public python-pythondialog
10691 (name "python-pythondialog")
10696 (uri (pypi-uri "pythondialog" version))
10699 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
10700 (build-system python-build-system)
10703 (modify-phases %standard-phases
10704 (add-after 'unpack 'patch-path
10705 (lambda* (#:key inputs #:allow-other-keys)
10706 (let* ((dialog (assoc-ref inputs "dialog")))
10707 ;; Since this library really wants to grovel the search path, we
10708 ;; must hardcode dialog's store path into it.
10709 (substitute* "dialog.py"
10710 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
10711 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
10713 #:tests? #f)) ; no test suite
10715 `(("dialog" ,dialog)))
10716 (home-page "http://pythondialog.sourceforge.net/")
10717 (synopsis "Python interface to the UNIX dialog utility")
10718 (description "A Python wrapper for the dialog utility. Its purpose is to
10719 provide an easy to use, pythonic and comprehensive Python interface to dialog.
10720 This allows one to make simple text-mode user interfaces on Unix-like systems")
10721 (license license:lgpl2.1)
10722 (properties `((python2-variant . ,(delay python2-pythondialog))))))
10724 (define-public python2-pythondialog
10725 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
10728 (version (package-version python-pythondialog))
10731 (uri (pypi-uri "python2-pythondialog" version))
10734 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
10736 (define-public python-configobj
10738 (name "python-configobj")
10742 (uri (pypi-uri "configobj" version))
10745 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
10746 ;; Patch setup.py so it looks for python-setuptools, which is
10747 ;; required to parse the keyword 'install_requires' in setup.py.
10748 (patches (search-patches "python-configobj-setuptools.patch"))))
10749 (build-system python-build-system)
10751 `(("python-six" ,python-six)))
10752 (synopsis "Config file reading, writing and validation")
10753 (description "ConfigObj is a simple but powerful config file reader and
10754 writer: an ini file round tripper. Its main feature is that it is very easy to
10755 use, with a straightforward programmer’s interface and a simple syntax for
10757 (home-page "https://github.com/DiffSK/configobj")
10758 (license license:bsd-3)))
10760 (define-public python2-configobj
10761 (package-with-python2 python-configobj))
10763 (define-public python-configargparse
10765 (name "python-configargparse")
10769 (uri (pypi-uri "ConfigArgParse" version))
10772 "1p1pzpf5qpf80bfxsx1mbw9blyhhypjvhl3i60pbmhfmhvlpplgd"))))
10773 (build-system python-build-system)
10775 `(("python-pyyaml" ,python-pyyaml)))
10778 (modify-phases %standard-phases
10781 ;; Bypass setuptools-shim because one test relies on "setup.py"
10782 ;; being the first argument passed to the python call.
10784 ;; NOTE: Many tests do not run because they rely on Python's
10785 ;; built-in test.test_argparse, but we remove the unit tests from
10786 ;; our Python installation.
10787 (invoke "python" "setup.py" "test"))))))
10788 (synopsis "Replacement for argparse")
10789 (description "A drop-in replacement for argparse that allows options to also
10790 be set via config files and/or environment variables.")
10791 (home-page "https://github.com/bw2/ConfigArgParse")
10792 (license license:expat)))
10794 (define-public python-argparse-manpage
10796 (name "python-argparse-manpage")
10801 (uri (pypi-uri "argparse-manpage" version))
10804 "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p"))))
10805 (build-system python-build-system)
10806 (home-page "https://github.com/praiskup/argparse-manpage")
10807 (synopsis "Build manual page from Python's ArgumentParser object")
10809 "This package provides tools to build manual pages from Python's
10810 @code{ArgumentParser} object.")
10811 (license license:asl2.0)))
10813 (define-public python-contextlib2
10815 (name "python-contextlib2")
10816 (version "0.6.0.post1")
10820 (uri (pypi-uri "contextlib2" version))
10823 "0bhnr2ac7wy5l85ji909gyljyk85n92w8pdvslmrvc8qih4r1x01"))))
10824 (build-system python-build-system)
10825 (home-page "https://contextlib2.readthedocs.org/")
10826 (synopsis "Tools for decorators and context managers")
10827 (description "This module is primarily a backport of the Python
10828 3.2 contextlib to earlier Python versions. Like contextlib, it
10829 provides utilities for common tasks involving decorators and context
10830 managers. It also contains additional features that are not part of
10831 the standard library.")
10832 (properties `((python2-variant . ,(delay python2-contextlib2))))
10833 (license license:psfl)))
10835 (define-public python2-contextlib2
10836 (let ((base (package-with-python2
10837 (strip-python2-variant python-contextlib2))))
10838 (package/inherit base
10840 (substitute-keyword-arguments (package-arguments base)
10842 `(modify-phases ,phases
10844 (lambda _ (invoke "python" "test_contextlib2.py" "-v")))))))
10846 `(("python2-unittest2" ,python2-unittest2))))))
10848 ;; This package is used by python2-pytest via python2-importlib-metadata,
10849 ;; and thus can not depend on python-unittest2 (which depends on pytest).
10850 (define-public python2-contextlib2-bootstrap
10853 python2-contextlib2
10854 (name "python2-contextlib2-bootstrap")
10857 ,@(package-arguments python2-contextlib2)))
10858 (native-inputs '()))))
10860 (define-public python-texttable
10862 (name "python-texttable")
10867 (uri (pypi-uri "texttable" version))
10870 "1x5l77akfc20x52jma9573qp8l8r07q103pm4l0pbizvh4vp1wzg"))))
10871 (build-system python-build-system)
10874 (modify-phases %standard-phases
10876 (lambda _ (invoke "pytest" "tests.py"))))))
10878 `(("python-pytest" ,python-pytest)))
10879 (home-page "https://github.com/foutaise/texttable/")
10880 (synopsis "Python module for creating simple ASCII tables")
10881 (description "Texttable is a Python module for creating simple ASCII
10883 (license license:expat)))
10885 (define-public python2-texttable
10886 (package-with-python2 python-texttable))
10888 (define-public python-atomicwrites
10890 (name "python-atomicwrites")
10894 (uri (pypi-uri "atomicwrites" version))
10897 "19ngcscdf3jsqmpcxn6zl5b6anmsajb6izp1smcd1n02midl9abm"))))
10898 (build-system python-build-system)
10899 (synopsis "Atomic file writes in Python")
10900 (description "Library for atomic file writes using platform dependent tools
10901 for atomic file system operations.")
10902 (home-page "https://github.com/untitaker/python-atomicwrites")
10903 (license license:expat)))
10905 (define-public python2-atomicwrites
10906 (package-with-python2 python-atomicwrites))
10908 (define-public python-click-threading
10910 (name "python-click-threading")
10914 (uri (pypi-uri "click-threading" version))
10917 "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j"))))
10918 (build-system python-build-system)
10920 `(("python-click" ,python-click)))
10921 (synopsis "Utilities for multithreading in Click")
10922 (description "This package provides utilities for multithreading in Click
10924 (home-page "https://github.com/click-contrib/click-threading")
10925 (license license:expat)))
10927 (define-public python-click-log
10929 (name "python-click-log")
10933 (uri (pypi-uri "click-log" version))
10936 "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
10937 (build-system python-build-system)
10939 `(("python-click" ,python-click)))
10940 (synopsis "Logging for click applications")
10941 (description "This package provides a Python library for logging Click
10943 (home-page "https://github.com/click-contrib/click-log")
10944 (license license:expat)))
10946 (define-public python-click-default-group
10948 (name "python-click-default-group")
10952 (uri (pypi-uri "click-default-group" version))
10955 "015r78jk8gznfw0dphpwaqcx5mhg5822b55w5xbb6i7sin70wmnr"))))
10956 (build-system python-build-system)
10958 `(#:tests? #f)) ; no target
10960 `(("python-click" ,python-click)))
10961 (synopsis "Extends click.Group")
10962 (description "This package extends click.Group to invoke a command without
10963 explicit subcommand name.")
10964 (home-page "https://github.com/click-contrib/click-default-group")
10965 (license license:bsd-3)))
10967 (define-public python-structlog
10969 (name "python-structlog")
10974 (uri (pypi-uri "structlog" version))
10977 "0x1i21vn3xjfa3j9ijbblia5z0jlzc9aqvpqc26sy16i8yjxyydg"))))
10978 (build-system python-build-system)
10981 (modify-phases %standard-phases
10983 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
10985 (add-installed-pythonpath inputs outputs)
10989 `(("python-coverage" ,python-coverage)
10990 ("python-freezegun" ,python-freezegun)
10991 ("python-pretend" ,python-pretend)
10992 ("python-pytest" ,python-pytest)
10993 ("python-pytest-asyncio" ,python-pytest-asyncio)
10994 ("python-simplejson" ,python-simplejson)
10995 ("python-twisted" ,python-twisted)))
10996 (home-page "https://www.structlog.org/")
10997 (synopsis "Structured Logging for Python")
10998 (description "@code{structlog} changes logging in Python by adding structure
10999 to your log entries.")
11000 (license (list license:asl2.0 license:expat))))
11002 (define-public python-apipkg
11004 (name "python-apipkg")
11008 (uri (pypi-uri "apipkg" version))
11011 "1xhak74yj3lqflvpijg15rnkklrigvsp5q7s4as4h6a157d8q8ip"))))
11012 (build-system python-build-system)
11014 `(("python-pytest" ,python-pytest)
11015 ("python-setuptools-scm" ,python-setuptools-scm)))
11016 (synopsis "Namespace control and lazy-import mechanism")
11017 (description "With apipkg you can control the exported namespace of a Python
11018 package and greatly reduce the number of imports for your users. It is a small
11019 pure Python module that works on virtually all Python versions.")
11020 (home-page "https://github.com/pytest-dev/apipkg")
11021 (license license:expat)))
11023 (define-public python-execnet
11025 (name "python-execnet")
11029 (uri (pypi-uri "execnet" version))
11032 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
11033 (build-system python-build-system)
11035 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
11036 ;; The two test failures are caused by the lack of an `ssh` executable.
11037 ;; The test suite can be run with pytest after the 'install' phase.
11040 `(("python-pytest" ,python-pytest)
11041 ("python-setuptools-scm" ,python-setuptools-scm)))
11043 `(("python-apipkg" ,python-apipkg)))
11044 (synopsis "Rapid multi-Python deployment")
11045 (description "Execnet provides a share-nothing model with
11046 channel-send/receive communication for distributing execution across many
11047 Python interpreters across version, platform and network barriers. It has a
11048 minimal and fast API targeting the following uses:
11050 @item distribute tasks to (many) local or remote CPUs
11051 @item write and deploy hybrid multi-process applications
11052 @item write scripts to administer multiple environments
11054 (home-page "https://codespeak.net/execnet/")
11055 (license license:expat)))
11057 (define-public python2-execnet
11058 (package-with-python2 python-execnet))
11060 (define-public python-icalendar
11062 (name "python-icalendar")
11066 (uri (pypi-uri "icalendar" version))
11069 "14ynjj65kfmlcvpb7k097w789wvxncd3cr3xz5m1jz9yl9v6vv5q"))))
11070 (build-system python-build-system)
11072 `(("python-dateutil" ,python-dateutil)
11073 ("python-pytz" ,python-pytz)))
11074 (synopsis "Python library for parsing iCalendar files")
11075 (description "The icalendar package is a parser/generator of iCalendar
11076 files for use with Python.")
11077 (home-page "https://github.com/collective/icalendar")
11078 (license license:bsd-2)))
11080 (define-public python-args
11082 (name "python-args")
11086 (uri (pypi-uri "args" version))
11089 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
11090 (build-system python-build-system)
11091 (home-page "https://github.com/kennethreitz/args")
11092 (synopsis "Command-line argument parser")
11094 "This library provides a Python module to parse command-line arguments.")
11095 (license license:bsd-3)))
11097 (define-public python2-args
11098 (package-with-python2 python-args))
11100 (define-public python-clint
11102 (name "python-clint")
11106 (uri (pypi-uri "clint" version))
11109 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
11110 (build-system python-build-system)
11113 (modify-phases %standard-phases
11115 (lambda _ (invoke "py.test" "-v"))))))
11117 `(("python-pytest" ,python-pytest)))
11119 `(("python-args" ,python-args)))
11120 (home-page "https://github.com/kennethreitz/clint")
11121 (synopsis "Command-line interface tools")
11123 "Clint is a Python module filled with a set of tools for developing
11124 command-line applications, including tools for colored and indented
11125 output, progress bar display, and pipes.")
11126 (license license:isc)))
11128 (define-public python2-clint
11129 (package-with-python2 python-clint))
11131 (define-public python-rply
11133 (name "python-rply")
11137 (uri (pypi-uri "rply" version))
11140 "0lv428895zxsz43968qx0q9bimwqnfykndz4dpjbq515w2gvzhjh"))))
11141 (build-system python-build-system)
11143 `(("python-appdirs" ,python-appdirs)))
11144 (home-page "https://github.com/alex/rply")
11145 (synopsis "Parser generator for Python")
11147 "This package provides a pure Python based parser generator, that also
11148 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
11149 with a new public API, and RPython support.")
11150 (license license:bsd-3)))
11152 (define-public python2-rply
11153 (package-with-python2 python-rply))
11155 (define-public python-hy
11161 (uri (pypi-uri "hy" version))
11164 "04dfwm336gw61fmgwikvh0cnxk682p19b4w555wl5d7mlym4rwj2"))))
11165 (build-system python-build-system)
11168 (modify-phases %standard-phases
11169 (add-before 'install 'set-HOME
11171 (setenv "HOME" "/tmp") #t))
11174 ;; Tests require write access to HOME.
11175 (setenv "HOME" "/tmp")
11176 (invoke "nosetests"))))))
11178 `(("python-coverage" ,python-coverage)
11179 ("python-nose" ,python-nose)))
11181 `(("python-astor" ,python-astor)
11182 ("python-colorama" ,python-colorama)
11183 ("python-rply" ,python-rply)
11184 ("python-funcparserlib"
11185 ,python-funcparserlib)))
11186 (home-page "http://hylang.org/")
11187 (synopsis "Lisp frontend to Python")
11189 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
11190 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
11191 Python at your fingertips, in Lisp form.")
11192 (license license:expat)))
11194 (define-public python2-functools32
11196 (name "python2-functools32")
11197 (version "3.2.3-2")
11201 (uri (pypi-uri "functools32" version))
11204 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
11205 (build-system python-build-system)
11207 `(#:python ,python-2
11208 #:tests? #f)) ; no test target
11209 (home-page "https://github.com/MiCHiLU/python-functools32")
11211 "Backport of the functools module from Python 3.2.3")
11213 "This package is a backport of the @code{functools} module from Python
11214 3.2.3 for use with older versions of Python and PyPy.")
11215 (license license:expat)))
11217 (define-public python2-subprocess32
11219 (name "python2-subprocess32")
11223 (uri (pypi-uri "subprocess32" version))
11226 "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y"))
11228 (search-patches "python2-subprocess32-disable-input-test.patch"))))
11229 (build-system python-build-system)
11231 `(#:python ,python-2
11232 ;; The test suite fails with Python > 2.7.13:
11233 ;; import test.support
11234 ;; ImportError: No module named support
11237 (modify-phases %standard-phases
11238 (add-after 'unpack 'patch-/bin/sh
11240 (substitute* '("subprocess32.py"
11241 "test_subprocess32.py")
11242 (("/bin/sh") (which "sh")))
11244 (home-page "https://github.com/google/python-subprocess32")
11245 (synopsis "Backport of the subprocess module from Python 3.2")
11247 "This is a backport of the @code{subprocess} standard library module
11248 from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some
11249 new features. On POSIX systems it is guaranteed to be reliable when used
11250 in threaded applications. It includes timeout support from Python 3.3 but
11251 otherwise matches 3.2’s API.")
11252 (license license:psfl)))
11254 (define-public python2-futures
11256 (name "python2-futures")
11261 (uri (pypi-uri "futures" version))
11264 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y"))))
11265 (build-system python-build-system)
11267 `(#:python ,python-2
11269 (modify-phases %standard-phases
11272 (invoke "python" "test_futures.py")
11274 (home-page "https://github.com/agronholm/pythonfutures")
11276 "Backport of the concurrent.futures package from Python 3.2")
11278 "The concurrent.futures module provides a high-level interface for
11279 asynchronously executing callables. This package backports the
11280 concurrent.futures package from Python 3.2")
11281 (license license:bsd-3)))
11283 (define-public python-promise
11285 (name "python-promise")
11290 (uri (pypi-uri "promise" version))
11293 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
11294 (build-system python-build-system)
11295 ;; Tests wants python-futures, which is a python2 only program, and
11296 ;; can't be found by python-promise at test time.
11297 (arguments `(#:tests? #f))
11298 (home-page "https://github.com/syrusakbary/promise")
11299 (synopsis "Promises/A+ implementation for Python")
11301 "Promises/A+ implementation for Python")
11302 (properties `((python2-variant . ,(delay python2-promise))))
11303 (license license:expat)))
11305 (define-public python2-promise
11306 (let ((promise (package-with-python2
11307 (strip-python2-variant python-promise))))
11308 (package/inherit promise
11309 (arguments (substitute-keyword-arguments (package-arguments promise)
11310 ((#:tests? _) #t)))
11312 `(("python2-futures" ,python2-futures)
11313 ("python2-pytest" ,python2-pytest)
11314 ,@(package-native-inputs promise))))))
11316 (define-public python-progressbar2
11318 (name "python-progressbar2")
11323 (uri (pypi-uri "progressbar2" version))
11326 "0b2v3mim90rmfvixkaniz2qrs650sk230rzgd5zhcjfldmlqgxpc"))))
11327 (build-system python-build-system)
11329 `(("python-six" ,python-six)
11330 ("python-utils" ,python-utils)))
11332 `(("python-flake8" ,python-flake8)
11333 ("python-freezegun" ,python-freezegun)
11334 ("python-pycodestyle" ,python-pycodestyle)
11335 ("python-pytest" ,python-pytest)
11336 ("python-pytest-cache" ,python-pytest-cache)
11337 ("python-pytest-cov" ,python-pytest-cov)
11338 ("python-pytest-flakes" ,python-pytest-flakes)
11339 ("python-pytest-pep8" ,python-pytest-pep8)
11340 ("python-sphinx" ,python-sphinx)))
11341 (home-page "https://github.com/WoLpH/python-progressbar")
11342 (synopsis "Text progress bar library for Python")
11344 "This package provides a Python progressbar library to provide
11345 visual (yet text based) progress to long running operations.")
11346 (license license:bsd-3)))
11348 (define-public python-progressbar33
11350 (name "python-progressbar33")
11355 (uri (pypi-uri "progressbar33" version))
11358 "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji"))))
11359 (build-system python-build-system)
11360 (home-page "https://github.com/germangh/python-progressbar")
11361 (synopsis "Text progress bar library for Python")
11363 "This package provides a text progress bar library for Python. This
11364 version only differs from the original @code{progressbar} package in that it
11365 uses relative package imports instead of absolute imports, which is necessary
11366 for the module to work under Python 3.3.")
11367 ;; Either or both of these licenses may be selected.
11368 (license (list license:lgpl2.1+ license:bsd-3))))
11370 (define-public python-colorama
11372 (name "python-colorama")
11377 (uri (pypi-uri "colorama" version))
11379 (base32 "16w62sm95hmh55rqxn4zwdz0bkh3fqm1qnz9cwi3s510iasb4har"))))
11380 (build-system python-build-system)
11381 (synopsis "Colored terminal text rendering for Python")
11382 (description "Colorama is a Python library for rendering colored terminal
11384 (home-page "https://pypi.org/project/colorama/")
11385 (license license:bsd-3)))
11387 (define-public python2-colorama
11388 (package-with-python2 python-colorama))
11390 (define-public python-moto
11392 (name "python-moto")
11393 ;; XXX: Use a pre-release for compatibility with latest botocore & friends.
11394 (version "1.3.16.dev134")
11397 (uri (pypi-uri "moto" version))
11400 "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd"))))
11401 (build-system python-build-system)
11403 `(#:phases (modify-phases %standard-phases
11404 (add-after 'unpack 'patch-hardcoded-executable-names
11406 (substitute* "moto/batch/models.py"
11409 (substitute* (find-files "tests" "\\.py$")
11411 (string-append "#!" (which "bash"))))
11415 (setenv "PYTHONPATH" (string-append "./build/lib:"
11416 (getenv "PYTHONPATH")))
11417 (invoke "pytest" "-vv" "-m" "not network"
11418 ;; These tests require Docker.
11419 "-k" "not test_terminate_job \
11420 and not test_invoke_function_from_sqs_exception"))))))
11422 `(("python-flask" ,python-flask)
11423 ("python-flask-cors" ,python-flask-cors)
11424 ("python-freezegun" ,python-freezegun)
11425 ("python-parameterized" ,python-parameterized)
11426 ("python-pytest" ,python-pytest)
11427 ("python-sure" ,python-sure)))
11429 `(("python-aws-xray-sdk" ,python-aws-xray-sdk)
11430 ("python-boto" ,python-boto)
11431 ("python-boto3" ,python-boto3)
11432 ("python-botocore" ,python-botocore)
11433 ("python-cfn-lint" ,python-cfn-lint)
11434 ("python-cryptography" ,python-cryptography)
11435 ("python-dateutil" ,python-dateutil)
11436 ("python-docker" ,python-docker)
11437 ("python-idna" ,python-idna)
11438 ("python-jinja2" ,python-jinja2)
11439 ("python-jose" ,python-jose)
11440 ("python-jsondiff" ,python-jsondiff)
11441 ("python-mock" ,python-mock)
11442 ("python-pytz" ,python-pytz)
11443 ("python-pyyaml" ,python-pyyaml)
11444 ("python-requests" ,python-requests)
11445 ("python-responses" ,python-responses)
11446 ("python-six" ,python-six)
11447 ("python-sshpubkeys" ,python-sshpubkeys)
11448 ("python-werkzeug" ,python-werkzeug)
11449 ("python-xmltodict" ,python-xmltodict)))
11450 (home-page "https://github.com/spulec/moto")
11451 (synopsis "Mock out the boto library")
11453 "@code{moto} is a library designed to easily mock out the
11454 @code{boto} library.")
11455 (license license:asl2.0)))
11457 (define-public python-rsa
11459 (name "python-rsa")
11464 (uri (pypi-uri "rsa" version))
11467 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
11468 (build-system python-build-system)
11470 `(("python-pyasn1" ,python-pyasn1)))
11471 (synopsis "Pure-Python RSA implementation")
11472 (description "Python-RSA is a pure-Python RSA implementation. It supports
11473 encryption and decryption, signing and verifying signatures, and key
11474 generation according to PKCS#1 version 1.5. It can be used as a Python
11475 library as well as on the command line.")
11476 (home-page "https://stuvel.eu/rsa")
11477 (license license:asl2.0)))
11479 (define-public python2-rsa
11480 (package-with-python2 python-rsa))
11482 (define-public python-pluggy
11484 (name "python-pluggy")
11489 (uri (pypi-uri "pluggy" version))
11492 "1c35qyhvy27q9ih9n899f3h4sdnpgq027dbiilly2qb5cvgarchm"))))
11493 (build-system python-build-system)
11495 `(("python-setuptools-scm" ,python-setuptools-scm)))
11496 (synopsis "Plugin and hook calling mechanism for Python")
11497 (description "Pluggy is an extraction of the plugin manager as used by
11498 Pytest but stripped of Pytest specific details.")
11499 (home-page "https://pypi.org/project/pluggy/")
11500 (properties `((python2-variant . ,(delay python2-pluggy))))
11501 (license license:expat)))
11503 (define-public python2-pluggy
11504 (let ((base (package-with-python2 (strip-python2-variant
11509 `(("python-importlib-metadata" ,python2-importlib-metadata))))))
11511 ;; This package requires python2-importlib-metadata, but that package
11512 ;; ends up needing python2-pluggy via python2-pytest, so we need this
11513 ;; variant to solve the circular dependency.
11514 (define-public python2-pluggy-bootstrap
11518 (name "python2-pluggy-bootstrap")
11521 ,@(package-arguments python2-pluggy)))
11523 `(("python-importlib-metadata" ,python2-importlib-metadata-bootstrap))))))
11525 (define-public python-tox
11527 (name "python-tox")
11532 (uri (pypi-uri "tox" version))
11535 "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb"))))
11536 (build-system python-build-system)
11538 ;; FIXME: Tests require pytest-timeout, which itself requires
11539 ;; pytest>=2.8.0 for installation.
11542 `(("python-filelock" ,python-filelock)
11543 ("python-packaging" ,python-packaging)
11544 ("python-pluggy" ,python-pluggy)
11545 ("python-py" ,python-py)
11546 ("python-six" ,python-six)
11547 ("python-toml" ,python-toml)
11548 ("python-virtualenv" ,python-virtualenv)))
11550 `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
11551 ("python-pytest" ,python-pytest) ; >= 2.3.5
11552 ("python-setuptools-scm" ,python-setuptools-scm)))
11553 (home-page "https://tox.readthedocs.io")
11554 (synopsis "Virtualenv-based automation of test activities")
11555 (description "Tox is a generic virtualenv management and test command line
11556 tool. It can be used to check that a package installs correctly with
11557 different Python versions and interpreters, or run tests in each type of
11558 supported environment, or act as a frontend to continuous integration
11560 (license license:expat)))
11562 (define-public python-jmespath
11564 (name "python-jmespath")
11569 (uri (pypi-uri "jmespath" version))
11572 "0k0765x1mybcrzajh3hiqkl8sy9hs0bmn4900frxy0j3ykvaxqmx"))))
11573 (build-system python-build-system)
11575 `(("python-nose" ,python-nose)))
11576 (synopsis "JSON Matching Expressions")
11577 (description "JMESPath (pronounced “james path”) is a Python library that
11578 allows one to declaratively specify how to extract elements from a JSON
11580 (home-page "https://github.com/jmespath/jmespath.py")
11581 (license license:expat)))
11583 (define-public python2-jmespath
11584 (package-with-python2 python-jmespath))
11586 (define-public python-symengine
11588 (name "python-symengine")
11593 (uri (pypi-uri "symengine" version))
11595 (base32 "1kn1w4dp9mrsq6kzmhf4pjmx3wicxc3dw1mwa924q8g48g77lr4c"))))
11596 (build-system python-build-system)
11599 ("python-cython" ,python-cython)))
11601 `(("symengine" ,symengine)))
11602 (home-page "https://github.com/symengine/symengine.py")
11603 (synopsis "Python library providing wrappers to SymEngine")
11605 "This library provides a Python wrapper to SymEngine, a fast C++ symbolic
11606 manipulation library.")
11607 (license license:expat)))
11609 (define-public python-uncertainties
11611 (name "python-uncertainties")
11616 (uri (pypi-uri "uncertainties" version))
11619 "00z9xl40czmqk0vmxjvmjvwb41r893l4dad7nj1nh6blw3kw28li"))))
11620 (build-system python-build-system)
11621 ;; While there are test files, there is no "tests" directory, so the tests
11623 (arguments '(#:tests? #false))
11625 `(("python-future" ,python-future)))
11627 `(("python-nose" ,python-nose)
11628 ("python-numpy" ,python-numpy)))
11629 (home-page "https://uncertainties-python-package.readthedocs.io/")
11630 (synopsis "Calculations with uncertainties")
11632 "The uncertainties package transparently handles calculations with
11633 numbers with uncertainties. It can also yield the derivatives of any
11635 (license license:bsd-3)))
11637 (define-public python-asteval
11639 (name "python-asteval")
11644 (uri (pypi-uri "asteval" version))
11647 "0f54sd4w1a72ij1bcxs2x7dk9xf8bzclawijf1z18bqx9f96l2gm"))))
11648 (build-system python-build-system)
11650 `(("python-pytest" ,python-pytest)))
11651 (home-page "https://github.com/newville/asteval")
11652 (synopsis "Minimalistic evaluator of Python expressions")
11654 "This package provides a minimalistic evaluator of Python expression
11655 using the @code{ast} module")
11656 (license license:expat)))
11658 (define-public python-lmfit
11660 (name "python-lmfit")
11665 (uri (pypi-uri "lmfit" version))
11668 "0iab33jjb60f8kn0k0cqb0vjp1mdskks2n3kpn97zkw5cvjhq2b7"))))
11669 (build-system python-build-system)
11671 `(("python-asteval" ,python-asteval)
11672 ("python-numpy" ,python-numpy)
11673 ("python-scipy" ,python-scipy)
11674 ("python-uncertainties" ,python-uncertainties)))
11676 `(("python-pytest" ,python-pytest)))
11677 (home-page "https://lmfit.github.io/lmfit-py/")
11678 (synopsis "Least-Squares minimization with bounds and constraints")
11680 "Lmfit provides a high-level interface to non-linear optimization and
11681 curve fitting problems for Python. It builds on and extends many of the
11682 optimization methods of @code{scipy.optimize}. Initially inspired by (and
11683 named for) extending the Levenberg-Marquardt method from
11684 @code{scipy.optimize.leastsq}, lmfit now provides a number of useful
11685 enhancements to optimization and data fitting problems.")
11686 (license license:bsd-3)))
11688 (define-public python-boto
11690 (name "python-boto")
11694 (uri (pypi-uri "boto" version))
11697 "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
11698 (build-system python-build-system)
11700 ;; XXX: This package is unmaintained and has problems with newer versions
11701 ;; of Python 3 as well as test libraries. 'python-moto' still uses a
11702 ;; subset of this library, so keep it around for now, but disable tests.
11705 `(("python-paramiko" ,python-paramiko)
11706 ("python-requests" ,python-requests)))
11707 (home-page "https://github.com/boto/boto")
11708 (synopsis "Python interfaces for Amazon Web Services")
11710 "This package provides various facilities for interacting with Amazon
11711 Web Services through Python.
11713 This software is unmaintained, and new projects should use @code{boto3} instead.")
11714 (license license:expat)))
11716 (define-public python-botocore
11717 ;; Note: When updating botocore, also make sure that boto3 and awscli
11720 (name "python-botocore")
11721 (version "1.19.22")
11725 (uri (pypi-uri "botocore" version))
11728 "0iim86x7c6hqmvd61ygz6x6x9glnsfbnyzv2y67qjdcdx8jpkmw7"))))
11729 (build-system python-build-system)
11731 ;; FIXME: Many tests are failing.
11734 `(("python-dateutil" ,python-dateutil)
11735 ("python-jmespath" ,python-jmespath)
11736 ("python-urllib3" ,python-urllib3)))
11737 (home-page "https://github.com/boto/botocore")
11738 (synopsis "Low-level interface to AWS")
11739 (description "Botocore is a Python library that provides a low-level
11740 interface to the Amazon Web Services (AWS) API.")
11741 (license license:asl2.0)))
11743 (define-public python2-botocore
11744 (package-with-python2 python-botocore))
11746 (define-public python-boto3
11748 (name "python-boto3")
11749 (version "1.16.22")
11750 (home-page "https://github.com/boto/boto3")
11753 (uri (git-reference (url home-page) (commit version)))
11754 (file-name (git-file-name name version))
11757 "0h20hgl4yfl58g75qhb6ibrdmzn47md3srgar7hask14cjmfhfy3"))))
11760 (modify-phases %standard-phases
11761 (add-after 'unpack 'delete-network-tests
11762 ;; Deleting integration tests because they are trying to connect to AWS.
11764 (delete-file-recursively "tests/integration")
11766 (build-system python-build-system)
11768 `(("python-nose" ,python-nose)
11769 ("python-mock" ,python-mock)))
11771 `(("python-botocore" ,python-botocore)
11772 ("python-jmespath" ,python-jmespath)
11773 ("python-s3transfer" ,python-s3transfer)))
11774 (synopsis "AWS SDK for Python")
11776 "Boto3 is a Python library for writing programs that interact with
11777 @acronym{AWS,Amazon Web Services}.")
11778 (license license:asl2.0)))
11780 (define-public python-pyfiglet
11782 (name "python-pyfiglet")
11783 (version "0.8.post1")
11787 (uri (pypi-uri "pyfiglet" version))
11790 "0f9n2076ga2ccsg174k2d7n0z4d44ml96yzc72s6g4nhalbk5hn6"))))
11791 (build-system python-build-system)
11792 (home-page "https://github.com/pwaller/pyfiglet")
11793 (synopsis "Draw ASCII art big letters in Python")
11794 (description "This module lets you draw large letter from ordinary characters
11796 (license license:expat)))
11798 (define-public python-xdo
11800 (name "python-xdo")
11804 (uri (string-append
11805 "http://http.debian.net/debian/pool/main/p/python-xdo/"
11806 "python-xdo_" version ".orig.tar.gz"))
11809 "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
11810 (build-system python-build-system)
11813 (modify-phases %standard-phases
11814 (add-before 'install 'patch-libxdo-path
11815 ;; Hardcode the path of dynamically loaded libxdo library.
11816 (lambda* (#:key inputs #:allow-other-keys)
11817 (let ((libxdo (string-append
11818 (assoc-ref inputs "xdotool")
11819 "/lib/libxdo.so")))
11820 (substitute* "xdo/_xdo.py"
11821 (("find_library\\(\"xdo\"\\)")
11822 (simple-format #f "\"~a\"" libxdo)))
11824 #:tests? #f)) ; no tests provided
11826 `(("python-six" ,python-six)))
11828 `(("xdotool" ,xdotool)
11829 ("libX11" ,libx11)))
11830 (home-page "https://tracker.debian.org/pkg/python-xdo")
11831 (synopsis "Python library for simulating X11 keyboard/mouse input")
11832 (description "Provides bindings to libxdo for manipulating X11 via simulated
11833 input. (Note that this is mostly a legacy library; you may wish to look at
11834 python-xdo for newer bindings.)")
11835 (license license:bsd-3)))
11837 (define-public python2-xdo
11838 (package-with-python2 python-xdo))
11840 (define-public python-mako
11842 (name "python-mako")
11847 (uri (pypi-uri "Mako" version))
11850 "09ywrmhr6gdyfx6d5727wwjnz73i6rklqcb4c14m7sqc830wi5c1"))))
11851 (build-system python-build-system)
11853 `(#:phases (modify-phases %standard-phases
11855 (lambda* (#:key tests? #:allow-other-keys)
11857 (invoke "nosetests" "-v")
11858 (format #t "test suite not run~%"))
11861 `(("python-markupsafe" ,python-markupsafe)))
11863 `(("python-mock" ,python-mock)
11864 ("python-nose" ,python-nose)))
11865 (home-page "https://www.makotemplates.org/")
11866 (synopsis "Templating language for Python")
11867 (description "Mako is a templating language for Python that compiles
11868 templates into Python modules.")
11869 (license license:expat)))
11871 (define-public python2-mako
11872 (package-with-python2 python-mako))
11874 (define-public python-waitress
11876 (name "python-waitress")
11881 (uri (pypi-uri "waitress" version))
11882 (patches (search-patches "python-waitress-fix-tests.patch"))
11885 "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
11886 (build-system python-build-system)
11887 (home-page "https://github.com/Pylons/waitress")
11888 (synopsis "Waitress WSGI server")
11889 (description "Waitress is meant to be a production-quality pure-Python WSGI
11890 server with very acceptable performance.")
11891 (license license:zpl2.1)))
11893 (define-public python2-waitress
11894 (package-with-python2 python-waitress))
11896 (define-public python-whichcraft
11898 (name "python-whichcraft")
11903 (uri (pypi-uri "whichcraft" version))
11906 "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
11907 (build-system python-build-system)
11909 `(("python-pytest" ,python-pytest)))
11910 (home-page "https://github.com/pydanny/whichcraft")
11911 (synopsis "Cross-platform cross-python shutil.which functionality")
11913 "This package provides a shim of the shutil.which function that's
11914 designed to work across multiple versions of Python.")
11915 (license license:bsd-3)))
11917 (define-public python-cookiecutter
11919 (name "python-cookiecutter")
11924 (uri (pypi-uri "cookiecutter" version))
11927 "1b2xa5dypk1vf8aq599fd8zw4y0pwvq3hgl7ia8aiv8gg3ab5dpg"))))
11928 (build-system python-build-system)
11930 `(("python-freezegun" ,python-freezegun)
11931 ("python-pytest" ,python-pytest)
11932 ("python-pytest-catchlog" ,python-pytest-catchlog)
11933 ("python-pytest-cov" ,python-pytest-cov)
11934 ("python-pytest-mock" ,python-pytest-mock)))
11936 `(("python-binaryornot" ,python-binaryornot)
11937 ("python-click" ,python-click)
11938 ("python-future" ,python-future)
11939 ("python-jinja2" ,python-jinja2)
11940 ("python-jinja2-time" ,python-jinja2-time)
11941 ("python-poyo" ,python-poyo)
11942 ("python-requests" ,python-requests)
11943 ("python-slugify" ,python-slugify)
11944 ("python-text-unidecode" ,python-text-unidecode)
11945 ("python-whichcraft" ,python-whichcraft)))
11946 (home-page "https://github.com/cookiecutter/cookiecutter")
11948 "Command-line utility that creates projects from project templates")
11950 "This package provides a command-line utility that creates projects from
11951 project templates, e.g. creating a Python package project from a Python package
11952 project template.")
11953 (license license:bsd-3)))
11955 (define-public python-pyquery
11957 (name "python-pyquery")
11962 (uri (pypi-uri "pyquery" version))
11965 "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
11966 (build-system python-build-system)
11968 `(("python-webob" ,python-webob)
11969 ("python-webtest" ,python-webtest)))
11971 `(("python-lxml" ,python-lxml)
11972 ("python-cssselect" ,python-cssselect)))
11973 (home-page "https://github.com/gawel/pyquery")
11974 (synopsis "Make jQuery-like queries on xml documents")
11975 (description "pyquery allows you to make jQuery queries on xml documents.
11976 The API is as much as possible the similar to jQuery. pyquery uses lxml for
11977 fast xml and html manipulation.")
11978 (license license:bsd-3)))
11980 (define-public python-anyjson
11982 (name "python-anyjson")
11987 (uri (pypi-uri "anyjson" version))
11990 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
11991 (build-system python-build-system)
11993 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
11994 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
11995 ;; whatever) so this transformation needs to be done before the tests
11996 ;; can be run. Maybe we could add a build step to transform beforehand
11997 ;; but it could be annoying/difficult.
11998 ;; We can enable tests for the Python 2 version, though, and do below.
12000 (home-page "https://bitbucket.org/runeh/anyjson/")
12002 "Wraps best available JSON implementation in a common interface")
12004 "Anyjson loads whichever is the fastest JSON module installed
12005 and provides a uniform API regardless of which JSON implementation is used.")
12006 (license license:bsd-3)
12007 (properties `((python2-variant . ,(delay python2-anyjson))))))
12009 (define-public python2-anyjson
12010 (let ((anyjson (package-with-python2
12011 (strip-python2-variant python-anyjson))))
12012 (package/inherit anyjson
12013 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
12015 ,@(package-arguments anyjson)))
12016 (native-inputs `(("python2-nose" ,python2-nose))))))
12018 (define-public python-amqp
12020 (name "python-amqp")
12025 (uri (pypi-uri "amqp" version))
12028 "1sv600dgqwpimr6i1g59y9hpn50mc236gdqkr7zin13kvlpx0g87"))))
12029 (build-system python-build-system)
12031 `(("python-case" ,python-case)
12032 ("python-pytest-sugar" ,python-pytest-sugar)
12033 ("python-mock" ,python-mock)))
12035 `(("python-vine" ,python-vine)))
12036 (home-page "https://github.com/celery/py-amqp")
12038 "Low-level AMQP client for Python (fork of amqplib)")
12040 "This is a fork of amqplib which was originally written by Barry Pederson.
12041 It is maintained by the Celery project, and used by kombu as a pure python
12042 alternative when librabbitmq is not available.")
12043 (license license:lgpl2.1+)
12044 (properties `((python2-variant . ,(delay python2-amqp))))))
12046 (define-public python2-amqp
12047 (let ((amqp (package-with-python2
12048 (strip-python2-variant python-amqp))))
12049 (package/inherit amqp
12050 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
12051 ;; unmaintained. Weirdly, does not do this on the python 3
12054 ,@(package-arguments amqp))))))
12056 (define-public python-txamqp
12058 (name "python-txamqp")
12063 (uri (pypi-uri "txAMQP" version))
12066 "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4"))))
12067 (build-system python-build-system)
12069 `(("python-six" ,python-six)
12070 ("python-twisted" ,python-twisted)))
12071 (home-page "https://github.com/txamqp/txamqp")
12072 (synopsis "Communicate with AMQP peers and brokers using Twisted")
12074 "This package provides a Python library for communicating with AMQP peers
12075 and brokers using the asynchronous networking framework Twisted. It contains
12076 all the necessary code to connect, send and receive messages to/from an
12077 AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
12078 also includes support for using Thrift RPC over AMQP in Twisted
12080 (license license:asl2.0)))
12082 (define-public python2-txamqp
12083 (package-with-python2 python-txamqp))
12085 (define-public python-kombu
12087 (name "python-kombu")
12092 (uri (pypi-uri "kombu" version))
12095 "15k8f7mzqr049sg9vi48m19vjykviafk3f0p5xzgw9by0x0kyxjj"))))
12096 (build-system python-build-system)
12098 `(("python-mock" ,python-mock)
12099 ("python-case" ,python-case)
12100 ("python-pyro4" ,python-pyro4)
12101 ("python-pytest-sugar" ,python-pytest-sugar)
12102 ("python-pytz" ,python-pytz)))
12104 `(("python-anyjson" ,python-anyjson)
12105 ("python-amqp" ,python-amqp)
12106 ("python-redis" ,python-redis)))
12107 (home-page "https://kombu.readthedocs.io")
12108 (synopsis "Message passing library for Python")
12109 (description "The aim of Kombu is to make messaging in Python as easy as
12110 possible by providing an idiomatic high-level interface for the AMQ protocol,
12111 and also provide proven and tested solutions to common messaging problems.
12112 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
12113 message orientation, queuing, routing, reliability and security, for which the
12114 RabbitMQ messaging server is the most popular implementation.")
12115 (license license:bsd-3)
12116 (properties `((python2-variant . ,(delay python2-kombu))))))
12118 (define-public python2-kombu
12119 (let ((kombu (package-with-python2
12120 (strip-python2-variant python-kombu))))
12121 (package/inherit kombu
12122 (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2.
12123 ;; It works fine on the python3 variant.
12125 ,@(package-arguments kombu)))
12126 (native-inputs `(("python2-unittest2" ,python2-unittest2)
12127 ,@(package-native-inputs kombu))))))
12129 (define-public python-billiard
12131 (name "python-billiard")
12132 (version "3.5.0.5")
12136 (uri (pypi-uri "billiard" version))
12139 "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2"))))
12140 (build-system python-build-system)
12142 `(("python-case" ,python-case)
12143 ("python-pytest" ,python-pytest)))
12144 (home-page "https://github.com/celery/billiard")
12146 "Python multiprocessing fork with improvements and bugfixes")
12148 "Billiard is a fork of the Python 2.7 multiprocessing package. The
12149 multiprocessing package itself is a renamed and updated version of R Oudkerk's
12150 pyprocessing package. This standalone variant is intended to be compatible with
12151 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
12152 (license license:bsd-3)
12153 (properties `((python2-variant . ,(delay python2-billiard))))))
12155 (define-public python2-billiard
12156 (let ((billiard (package-with-python2
12157 (strip-python2-variant python-billiard))))
12158 (package/inherit billiard
12159 (native-inputs `(("python2-unittest2" ,python2-unittest2)
12160 ("python2-mock" ,python2-mock)
12161 ,@(package-native-inputs billiard))))))
12163 (define-public python-celery
12165 (name "python-celery")
12170 (uri (pypi-uri "celery" version))
12173 "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp"))))
12174 (build-system python-build-system)
12176 '(;; TODO The tests fail with Python 3.7
12177 ;; https://github.com/celery/celery/issues/4849
12180 (modify-phases %standard-phases
12181 (add-after 'unpack 'patch-requirements
12183 (substitute* "requirements/test.txt"
12184 (("pytest>=3\\.0,<3\\.3")
12188 `(("python-case" ,python-case)
12189 ("python-pytest" ,python-pytest)))
12191 `(("python-pytz" ,python-pytz)
12192 ("python-billiard" ,python-billiard)
12193 ("python-kombu" ,python-kombu)))
12194 (home-page "https://celeryproject.org")
12195 (synopsis "Distributed Task Queue")
12196 (description "Celery is an asynchronous task queue/job queue based on
12197 distributed message passing. It is focused on real-time operation, but
12198 supports scheduling as well. The execution units, called tasks, are executed
12199 concurrently on a single or more worker servers using multiprocessing,
12200 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
12201 synchronously (wait until ready).")
12202 (license license:bsd-3)
12203 (properties `((python2-variant . ,(delay python2-celery))))))
12205 (define-public python2-celery
12206 (let ((celery (package-with-python2
12207 (strip-python2-variant python-celery))))
12208 (package/inherit celery
12209 (native-inputs `(("python2-unittest2" ,python2-unittest2)
12210 ("python2-mock" ,python2-mock)
12211 ,@(package-native-inputs celery))))))
12213 (define-public python-translitcodec
12215 (name "python-translitcodec")
12220 (uri (pypi-uri "translitcodec" version))
12223 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
12224 (build-system python-build-system)
12226 `(#:tests? #f)) ; no tests provided
12228 "https://github.com/claudep/translitcodec")
12230 "Unicode to 8-bit charset transliteration codec")
12232 "This package contains codecs for transliterating ISO 10646 texts into
12233 best-effort representations using smaller coded character sets (ASCII,
12235 (license license:expat)))
12237 (define-public python2-translitcodec
12238 (package-with-python2 python-translitcodec))
12240 (define-public python-editor
12242 (name "python-editor")
12247 (uri (pypi-uri "python-editor" version))
12250 "0yrjh8w72ivqxi4i7xsg5b1vz15x8fg51xra7c3bgfyxqnyadzai"))))
12251 (build-system python-build-system)
12253 '(#:tests? #f)) ;XXX: needs a TTY and an editor
12254 (home-page "https://github.com/fmoo/python-editor")
12255 (synopsis "Programmatically open an editor, capture the result")
12257 "python-editor is a library that provides the editor module for
12258 programmatically interfacing with your system's $EDITOR.")
12259 (license license:asl2.0)))
12261 (define-public python2-editor
12262 (package-with-python2 python-editor))
12264 (define-public python-multiprocessing-logging
12266 (name "python-multiprocessing-logging")
12268 (home-page "https://github.com/jruere/multiprocessing-logging")
12271 (uri (git-reference
12273 (commit (string-append "v" version))))
12274 (file-name (git-file-name name version))
12277 "1625wy3djlr3b2fpd3vi822f8gw6b75mnls5a4318dbi9za5pf0y"))))
12278 (build-system python-build-system)
12279 (synopsis "Manage logs from multiple processes")
12281 "This Python module implements a multiprocessing-aware @code{Handler}
12282 that, when set on the root @code{Logger}, will tunnel log records to the
12283 main process so that they are handled correctly.")
12284 (license license:lgpl3+)))
12286 (define-public python-vobject
12288 (name "python-vobject")
12289 (version "0.9.6.1")
12292 (uri (pypi-uri "vobject" version))
12295 "0081g4gngw28j7vw8101jk600wz4gzfrhf5myrqvn2mrfkn2llcn"))))
12296 (build-system python-build-system)
12298 '(;; The test suite relies on some non-portable Windows interfaces.
12301 `(("python-dateutil" ,python-dateutil)
12302 ("python-pyicu" ,python-pyicu)))
12303 (synopsis "Parse and generate vCard and vCalendar files")
12304 (description "Vobject is intended to be a full featured Python package for
12305 parsing and generating vCard and vCalendar files. Currently, iCalendar files
12306 are supported and well tested. vCard 3.0 files are supported, and all data
12307 should be imported, but only a few components are understood in a sophisticated
12309 (home-page "https://eventable.github.io/vobject/")
12310 (license license:asl2.0)))
12312 (define-public python2-vobject
12313 (package-with-python2 python-vobject))
12315 (define-public python-munkres
12317 (name "python-munkres")
12321 (uri (pypi-uri "munkres" version))
12324 "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq"))))
12325 (build-system python-build-system)
12327 '(#:tests? #f)) ; no test suite
12328 (home-page "https://software.clapper.org/munkres/")
12329 (synopsis "Implementation of the Munkres algorithm")
12330 (description "The Munkres module provides an implementation of the Munkres
12331 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
12332 useful for solving the Assignment Problem.")
12333 (license license:bsd-3)))
12335 (define-public python2-munkres
12336 (package-with-python2 python-munkres))
12338 (define-public python-whoosh
12340 (name "python-whoosh")
12345 (uri (pypi-uri "Whoosh" version))
12348 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
12349 (build-system python-build-system)
12350 (arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
12352 `(("python-pytest" ,python-pytest)))
12353 (home-page "https://bitbucket.org/mchaput/whoosh")
12354 (synopsis "Full text indexing, search, and spell checking library")
12356 "Whoosh is a fast, pure-Python full text indexing, search, and spell
12357 checking library.")
12358 (license license:bsd-2)))
12360 (define-public python2-whoosh
12361 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
12362 (package/inherit whoosh
12364 `(("python2-backport-ssl-match-hostname"
12365 ,python2-backport-ssl-match-hostname)
12366 ,@(package-propagated-inputs whoosh))))))
12368 (define-public python-pathlib
12370 (name "python-pathlib")
12374 (uri (pypi-uri "pathlib" version))
12377 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
12378 (build-system python-build-system)
12379 ;; The tests depend on the internal "test" module, which does not provide
12380 ;; a stable interface.
12381 (arguments `(#:tests? #f))
12382 (home-page "https://pathlib.readthedocs.org/")
12383 (synopsis "Object-oriented file system paths")
12384 (description "Pathlib offers a set of classes to handle file system paths.
12385 It offers the following advantages over using string objects:
12388 @item No more cumbersome use of os and os.path functions. Everything can
12389 be done easily through operators, attribute accesses, and method calls.
12390 @item Embodies the semantics of different path types. For example,
12391 comparing Windows paths ignores casing.
12392 @item Well-defined semantics, eliminating any inconsistencies or
12393 ambiguities (forward vs. backward slashes, etc.).
12396 Note: In Python 3.4, pathlib is now part of the standard library. For other
12397 Python versions please consider python-pathlib2 instead, which tracks the
12398 standard library module. This module (python-pathlib) isn't maintained
12400 (license license:expat)))
12402 (define-public python2-pathlib
12403 (package-with-python2 python-pathlib))
12405 (define-public python2-pathlib2
12407 (name "python2-pathlib2")
12411 (uri (pypi-uri "pathlib2" version))
12414 "0s4qa8c082fdkb17izh4mfgwrjd1n5pya18wvrbwqdvvb5xs9nbc"))))
12415 (build-system python-build-system)
12416 ;; We only need the the Python 2 variant, since for Python 3 our minimum
12417 ;; version is 3.4 which already includes this package as part of the
12418 ;; standard library.
12420 `(#:python ,python-2))
12422 `(("python2-scandir" ,python2-scandir)
12423 ("python2-six" ,python2-six)))
12424 (home-page "https://pypi.org/project/pathlib2/")
12425 (synopsis "Object-oriented file system paths - backport of standard
12427 (description "The goal of pathlib2 is to provide a backport of standard
12428 pathlib module which tracks the standard library module, so all the newest
12429 features of the standard pathlib can be used also on older Python versions.
12431 Pathlib offers a set of classes to handle file system paths. It offers the
12432 following advantages over using string objects:
12435 @item No more cumbersome use of os and os.path functions. Everything can
12436 be done easily through operators, attribute accesses, and method calls.
12437 @item Embodies the semantics of different path types. For example,
12438 comparing Windows paths ignores casing.
12439 @item Well-defined semantics, eliminating any inconsistencies or
12440 ambiguities (forward vs. backward slashes, etc.).
12442 (license license:expat)))
12444 (define-public python2-pathlib2-bootstrap
12447 (inherit python2-pathlib2)
12448 (name "python2-pathlib2-bootstrap")
12450 `(("python2-scandir" ,python2-scandir)
12451 ("python2-six" ,python2-six-bootstrap))))))
12453 (define-public python-jellyfish
12455 (name "python-jellyfish")
12459 (uri (pypi-uri "jellyfish" version))
12462 "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8"))))
12463 (build-system python-build-system)
12465 `(("python-pytest" ,python-pytest)))
12466 (home-page "https://github.com/jamesturk/jellyfish")
12467 (synopsis "Approximate and phonetic matching of strings")
12468 (description "Jellyfish uses a variety of string comparison and phonetic
12469 encoding algorithms to do fuzzy string matching.")
12470 (license license:bsd-2)
12471 (properties `((python2-variant . ,(delay python2-jellyfish))))))
12473 (define-public python2-jellyfish
12474 (let ((jellyfish (package-with-python2
12475 (strip-python2-variant python-jellyfish))))
12476 (package/inherit jellyfish
12477 (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv)
12478 ,@(package-native-inputs jellyfish))))))
12480 (define-public python2-unicodecsv
12482 (name "python2-unicodecsv")
12486 ;; The test suite is not included in the PyPi release.
12487 ;; https://github.com/jdunck/python-unicodecsv/issues/19
12488 (uri (git-reference
12489 (url "https://github.com/jdunck/python-unicodecsv")
12491 (file-name (git-file-name name version))
12494 "15hx2k41a2lpv4hcml9zp4cvlx1171mnb5s4s13xc1pxkq3vgdjy"))))
12495 (build-system python-build-system)
12497 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
12498 #:python ,python-2))
12500 `(("python2-unittest2" ,python2-unittest2)))
12501 (home-page "https://github.com/jdunck/python-unicodecsv")
12502 (synopsis "Unicode CSV module for Python 2")
12503 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
12504 module, adding support for Unicode strings.")
12505 (license license:bsd-2)))
12507 (define-public python-pdfminer-six
12509 (name "python-pdfminer-six")
12510 (version "20201018")
12511 ;; There are no tests in the PyPI tarball.
12515 (uri (git-reference
12516 (url "https://github.com/pdfminer/pdfminer.six")
12518 (file-name (git-file-name name version))
12520 (base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr"))))
12521 (build-system python-build-system)
12524 (modify-phases %standard-phases
12525 ;; Tests write to the source tree.
12526 (add-after 'unpack 'make-git-checkout-writable
12528 (for-each make-file-writable (find-files "."))
12532 (invoke "make" "test")))
12533 (add-before 'reset-gzip-timestamps 'make-files-writable
12534 (lambda* (#:key outputs #:allow-other-keys)
12535 (let ((out (assoc-ref outputs "out")))
12536 (for-each make-file-writable
12537 (find-files out "\\.gz$"))
12540 `(("python-chardet" ,python-chardet)
12541 ("python-cryptography" ,python-cryptography)
12542 ("python-sortedcontainers" ,python-sortedcontainers)))
12544 `(("python-nose" ,python-nose)
12545 ("python-tox" ,python-tox)))
12546 (home-page "https://github.com/pdfminer/pdfminer.six")
12547 (synopsis "PDF parser and analyzer")
12548 (description "@code{pdfminer.six} is a community maintained fork of
12549 the original PDFMiner. It is a tool for extracting information from PDF
12550 documents. It focuses on getting and analyzing text data. Pdfminer.six
12551 extracts the text from a page directly from the sourcecode of the PDF. It
12552 can also be used to get the exact location, font or color of the text.")
12553 (license license:expat)))
12555 (define-public python-rarfile
12557 (name "python-rarfile")
12561 (uri (pypi-uri "rarfile" version))
12564 "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra"))))
12565 (build-system python-build-system)
12568 (modify-phases %standard-phases
12570 ;; Many tests fail, but the installation proceeds.
12571 (lambda _ (invoke "make" "-C" "test" "test"))))))
12573 `(("which" ,which))) ; required for tests
12575 `(("libarchive" ,libarchive)))
12576 (home-page "https://github.com/markokr/rarfile")
12577 (synopsis "RAR archive reader for Python")
12578 (description "This is Python module for RAR archive reading. The interface
12579 is made as zipfile like as possible.")
12580 (license license:isc)))
12582 (define-public python2-rarfile
12583 (package-with-python2 python-rarfile))
12585 (define-public python-magic
12587 (name "python-magic")
12592 (uri (pypi-uri "python-magic" version))
12595 "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
12596 (file-name (string-append name "-" version "-checkout"))))
12597 (build-system python-build-system)
12599 ;; The tests are unreliable, so don't run them. The tests fail
12600 ;; under Python3 because they were written for Python2 and
12601 ;; contain import statements that do not work in Python3. One of
12602 ;; the tests fails under Python2 because its assertions are
12603 ;; overly stringent; it relies on comparing output strings which
12604 ;; are brittle and can change depending on the version of
12605 ;; libmagic being used and the system on which the test is
12606 ;; running. In my case, under GuixSD 0.10.0, only one test
12607 ;; failed, and it seems to have failed only because the version
12608 ;; of libmagic that is packaged in Guix outputs a slightly
12609 ;; different (but not wrong) string than the one that the test
12612 #:phases (modify-phases %standard-phases
12613 ;; Replace a specific method call with a hard-coded
12614 ;; path to the necessary libmagic.so file in the
12615 ;; store. If we don't do this, then the method call
12616 ;; will fail to find the libmagic.so file, which in
12617 ;; turn will cause any application using
12618 ;; python-magic to fail.
12619 (add-before 'build 'hard-code-path-to-libmagic
12620 (lambda* (#:key inputs #:allow-other-keys)
12621 (let ((file (assoc-ref inputs "file")))
12622 (substitute* "magic.py"
12623 (("ctypes.util.find_library\\('magic'\\)")
12624 (string-append "'" file "/lib/libmagic.so'")))
12626 (add-before 'install 'disable-egg-compression
12628 (let ((port (open-file "setup.cfg" "a")))
12629 (display "\n[easy_install]\nzip_ok = 0\n"
12634 ;; python-magic needs to be able to find libmagic.so.
12637 "https://github.com/ahupp/python-magic")
12639 "File type identification using libmagic")
12641 "This module uses ctypes to access the libmagic file type
12642 identification library. It makes use of the local magic database and
12643 supports both textual and MIME-type output. Note that this module and
12644 the python-file module both provide a \"magic.py\" file; these two
12645 modules, which are different and were developed separately, both serve
12646 the same purpose: to provide Python bindings for libmagic.")
12647 (license license:expat)))
12649 (define-public python2-magic
12650 (package-with-python2 python-magic))
12652 (define-public python2-s3cmd
12654 (name "python2-s3cmd")
12659 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
12660 "s3cmd-" version ".tar.gz"))
12663 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
12664 (build-system python-build-system)
12666 ;; s3cmd is written for python2 only and contains no tests.
12667 `(#:python ,python-2
12670 `(("python2-dateutil" ,python2-dateutil)
12671 ;; The python-file package also provides a magic.py module.
12672 ;; This is an unfortunate state of affairs; however, s3cmd
12673 ;; fails to install if it cannot find specifically the
12674 ;; python-magic package. Thus we include it, instead of using
12675 ;; python-file. Ironically, s3cmd sometimes works better
12676 ;; without libmagic bindings at all:
12677 ;; https://github.com/s3tools/s3cmd/issues/198
12678 ("python2-magic" ,python2-magic)))
12679 (home-page "https://s3tools.org/s3cmd")
12680 (synopsis "Command line tool for S3-compatible storage services")
12682 "S3cmd is a command line tool for uploading, retrieving and managing data
12683 in storage services that are compatible with the Amazon Simple Storage
12684 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
12685 GnuPG encryption, and more. It also supports management of Amazon's
12686 CloudFront content delivery network.")
12687 (license license:gpl2+)))
12689 (define-public python-pkgconfig
12691 (name "python-pkgconfig")
12696 (uri (pypi-uri "pkgconfig" version))
12699 "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb"))))
12700 (build-system python-build-system)
12702 `(("python-nose" ,python-nose)))
12704 `(("pkg-config" ,pkg-config)))
12707 (modify-phases %standard-phases
12708 (add-before 'build 'patch
12709 ;; Hard-code the path to pkg-config.
12711 (substitute* "pkgconfig/pkgconfig.py"
12712 (("cmd = 'pkg-config")
12713 (string-append "cmd = '" (which "pkg-config"))))
12717 (invoke "nosetests" "test.py"))))))
12718 (home-page "https://github.com/matze/pkgconfig")
12719 (synopsis "Python interface for pkg-config")
12720 (description "This module provides a Python interface to pkg-config. It
12721 can be used to find all pkg-config packages, check if a package exists,
12722 check if a package meets certain version requirements, query CFLAGS and
12723 LDFLAGS and parse the output to build extensions with setup.py.")
12724 (license license:expat)))
12726 (define-public python2-pkgconfig
12727 (package-with-python2 python-pkgconfig))
12729 (define-public python-bz2file
12731 (name "python-bz2file")
12736 (uri (pypi-uri "bz2file" version))
12739 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
12740 (build-system python-build-system)
12742 `(#:tests? #f)) ; Tests use deprecated python modules.
12743 (home-page "https://github.com/nvawda/bz2file")
12744 (synopsis "Read and write bzip2-compressed files")
12746 "Bz2file is a Python library for reading and writing bzip2-compressed
12747 files. It contains a drop-in replacement for the I/O interface in the
12748 standard library's @code{bz2} module, including features from the latest
12749 development version of CPython that are not available in older releases.")
12750 (license license:asl2.0)))
12752 (define-public python2-bz2file
12753 (package-with-python2 python-bz2file))
12755 (define-public python-future
12757 (name "python-future")
12762 (uri (pypi-uri "future" version))
12765 "1f2rlqn9rh7adgir52dlbqz69gsab44x0mlm8gf1cs7xvhv54137"))))
12766 (build-system python-build-system)
12767 ;; Many tests connect to the network or are otherwise flawed.
12768 ;; https://github.com/PythonCharmers/python-future/issues/210
12771 (home-page "https://python-future.org")
12772 (synopsis "Single-source support for Python 3 and 2")
12774 "@code{python-future} is the missing compatibility layer between Python 2 and
12775 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
12776 to support both Python 2 and Python 3 with minimal overhead.")
12777 (license license:expat)))
12779 (define-public python2-future
12780 (package-with-python2 python-future))
12782 (define-public python-cysignals
12784 (name "python-cysignals")
12789 (uri (pypi-uri "cysignals" version))
12792 "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
12793 (build-system python-build-system)
12795 `(("python-cython" ,python-cython)
12796 ("python-sphinx" ,python-sphinx)))
12798 `(("pari-gp" ,pari-gp)))
12800 `(#:modules ((guix build python-build-system)
12801 ((guix build gnu-build-system) #:prefix gnu:)
12802 (guix build utils))
12803 ;; FIXME: Tests are executed after installation and currently fail
12804 ;; when not installing into standard locations; the author is working
12808 (modify-phases %standard-phases
12811 (assoc-ref gnu:%standard-phases 'configure)))))
12813 "https://github.com/sagemath/cysignals")
12815 "Handling of interrupts and signals for Cython")
12817 "The cysignals package provides mechanisms to handle interrupts (and
12818 other signals and errors) in Cython code, using two related approaches,
12819 for mixed Cython/Python code or external C libraries and pure Cython code,
12821 (license license:lgpl3+)))
12823 (define-public python2-cysignals
12824 (package-with-python2 python-cysignals))
12826 (define-public python2-shedskin
12828 (name "python2-shedskin")
12833 (uri (string-append "https://github.com/shedskin/shedskin/"
12834 "releases/download/v" version
12835 "/shedskin-" version ".tgz"))
12838 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
12839 (build-system python-build-system)
12841 `(#:python ,python-2
12842 #:phases (modify-phases %standard-phases
12843 (add-after 'unpack 'fix-resulting-include-libs
12844 (lambda* (#:key inputs #:allow-other-keys)
12845 (let ((libgc (assoc-ref inputs "libgc"))
12846 (pcre (assoc-ref inputs "pcre")))
12847 (substitute* "shedskin/makefile.py"
12848 (("variable == 'CCFLAGS':[ ]*")
12849 (string-append "variable == 'CCFLAGS':\n"
12850 " line += ' -I " pcre "/include"
12851 " -I " libgc "/include'"))
12852 (("variable == 'LFLAGS':[ ]*")
12853 (string-append "variable == 'LFLAGS':\n"
12854 " line += ' -L" pcre "/lib"
12855 " -L " libgc "/lib'")))
12857 (inputs `(("pcre" ,pcre)
12859 (home-page "https://shedskin.github.io/")
12860 (synopsis "Experimental Python-2 to C++ Compiler")
12861 (description (string-append "This is an experimental compiler for a subset of
12862 Python. It generates C++ code and a Makefile."))
12863 (license (list license:gpl3 license:bsd-3 license:expat))))
12865 (define-public python2-rope
12867 (name "python2-rope")
12872 (uri (pypi-uri "rope" version))
12875 "1cppm0pa9aqgsbkq130lskrzmrvjs5vpiavjjbhpz2fdw52w8251"))))
12877 ;; Rope has only partial python3 support, see `python-rope'
12878 `(#:python ,python-2))
12879 (build-system python-build-system)
12881 `(("python2-unittest2" ,python2-unittest2)))
12882 (home-page "https://github.com/python-rope/rope")
12883 (synopsis "Refactoring library for Python")
12884 (description "Rope is a refactoring library for Python. It facilitates
12885 the renaming, moving and extracting of attributes, functions, modules, fields
12886 and parameters in Python 2 source code. These refactorings can also be applied
12887 to occurrences in strings and comments.")
12888 (license license:gpl2)))
12890 (define-public python-rope
12891 (package/inherit python2-rope
12892 (name "python-rope")
12893 (arguments `(#:python ,python-wrapper
12894 ;; XXX: Only partial python3 support, results in some failing
12895 ;; tests: <https://github.com/python-rope/rope/issues/247>.
12897 (properties `((python2-variant . ,(delay python2-rope))))))
12899 (define-public python-py3status
12901 (name "python-py3status")
12906 (uri (pypi-uri "py3status" version))
12908 (base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262"))))
12909 (build-system python-build-system)
12914 (modify-phases %standard-phases
12915 ;; 'file' is used for detection of configuration file encoding
12916 ;; let's make link the dependency to particular input
12917 (add-before 'build 'patch-file-path
12918 (lambda* (#:key inputs #:allow-other-keys)
12919 (let ((file-path (assoc-ref inputs "file")))
12920 (substitute* "py3status/parse_config.py"
12921 (("\\[\"file\", \"-b\"")
12922 (string-append "['" file-path "/bin/file', '-b'")))
12924 #:tests? #f)) ; TODO: Requires many libraries not in Guix.
12925 (home-page "https://github.com/ultrabug/py3status")
12926 (synopsis "Extensible i3status wrapper written in Python")
12927 (description "py3status is an i3status wrapper which extends i3status
12928 functionality in a modular way, allowing you to extend your panel with your
12929 own code, responding to click events and updating clock every second.")
12930 (license license:bsd-3)))
12932 (define-public python2-selectors2
12934 (name "python2-selectors2")
12938 (uri (pypi-uri "selectors2" version))
12941 "110qr00b9axz1f1jm12b495jkvrz80smknxvssqlhwk0dx67rdw1"))))
12942 (build-system python-build-system)
12944 `(#:python ,python-2))
12946 `(("python2-mock" ,python2-mock)
12947 ("python2-psutil" ,python2-psutil)))
12948 (home-page "https://www.github.com/SethMichaelLarson/selectors2")
12949 (synopsis "Backport of the selectors module from Python 3.5+")
12951 "This package provides a drop-in replacement for the @code{selectors}
12952 module in Python 3.5 and later.")
12953 (license license:expat)))
12955 (define-public python-tblib
12957 (name "python-tblib")
12961 (uri (pypi-uri "tblib" version))
12964 "0i136n5pydmd202254wzrdbspkw0br0c9mbxhfs9hpfbahvyx6r2"))))
12965 (build-system python-build-system)
12968 (modify-phases %standard-phases
12971 ;; Upstream runs tests after installation and the package itself
12972 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
12974 (setenv "PYTHONPATH"
12975 (string-append (getcwd) "/build/lib:"
12976 (getenv "PYTHONPATH")))
12977 (invoke "py.test" "-vv" "tests" "README.rst"))))))
12979 `(("python-pytest" ,python-pytest)
12980 ("python-six" ,python-six)))
12981 (home-page "https://github.com/ionelmc/python-tblib")
12982 (synopsis "Traceback serialization library")
12984 "Traceback serialization allows you to:
12987 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
12988 different processes. This allows better error handling when running code over
12989 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
12991 @item Parse traceback strings and raise with the parsed tracebacks.
12993 (license license:bsd-3)))
12995 (define-public python2-tblib
12996 (package-with-python2 python-tblib))
12998 (define-public python-greenlet
13000 (name "python-greenlet")
13004 (uri (pypi-uri "greenlet" version))
13007 "1y6wbg9yhm9dw6m768n4yslp56h85pnxkk3drz6icn15g6f1d7ki"))))
13008 (build-system python-build-system)
13009 (home-page "https://greenlet.readthedocs.io/")
13010 (synopsis "Lightweight in-process concurrent programming")
13012 "Greenlet package is a spin-off of Stackless, a version of CPython
13013 that supports micro-threads called \"tasklets\". Tasklets run
13014 pseudo-concurrently (typically in a single or a few OS-level threads) and
13015 are synchronized with data exchanges on \"channels\".")
13016 (license (list license:psfl license:expat))))
13018 (define-public python-objgraph
13020 (name "python-objgraph")
13025 (uri (pypi-uri "objgraph" version))
13028 "19qmqsh984zq1rzzjy4vqnmviaqnymcyl8h7z99pnicbgwnm2adz"))))
13029 (build-system python-build-system)
13031 `(("python-graphviz" ,python-graphviz)))
13033 `(("python-mock" ,python-mock)
13034 ("graphviz" ,graphviz)))
13035 (home-page "https://mg.pov.lt/objgraph/")
13036 (synopsis "Draw Python object reference graphs with graphviz")
13038 "This package provides tools to draw Python object reference graphs with
13040 (license license:expat)))
13042 (define-public python2-objgraph
13043 (package-with-python2 python-objgraph))
13045 (define-public python-gevent
13047 (name "python-gevent")
13051 (uri (pypi-uri "gevent" version))
13054 "10f9y899y9nmq51pv4r1zb51b4w5yxx00sz5whvg9vm956hc432j"))
13055 (modules '((guix build utils)))
13058 ;; unbunding libev and c-ares
13059 (delete-file-recursively "deps")))))
13060 (build-system python-build-system)
13062 `(#:modules ((ice-9 ftw)
13066 (guix build python-build-system))
13067 #:phases (modify-phases %standard-phases
13068 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
13070 (substitute* "src/gevent/subprocess.py"
13071 (("/bin/sh") (which "sh")))
13072 (for-each (lambda (file)
13074 (("/bin/sh") (which "sh"))
13075 (("/bin/true") (which "true"))))
13076 (find-files "src/greentest" "\\.py$"))))
13077 (add-before 'build 'do-not-use-bundled-sources
13079 (setenv "GEVENTSETUP_EMBED" "0")
13081 ;; Prevent building bundled libev.
13082 (substitute* "setup.py"
13083 (("run_make=_BUILDING")
13084 "run_make=False"))))
13085 (add-before 'build 'add-greenlet-on-C_INCLUDE_PATH
13086 (lambda* (#:key inputs #:allow-other-keys)
13087 (let ((greenlet (string-append
13088 (assoc-ref inputs "python-greenlet")
13090 (match (scandir greenlet
13092 (string-prefix? "python" item)))
13094 (setenv "C_INCLUDE_PATH"
13095 (string-append greenlet "/" python ":"
13096 (or (getenv "C_INCLUDE_PATH")
13098 (add-before 'check 'pretend-to-be-CI
13100 ;; A few tests are skipped due to network constraints or
13101 ;; get longer timeouts when running in a CI environment.
13102 ;; Piggy-back on that, as we need the same adjustments.
13103 (setenv "TRAVIS" "1")
13104 (setenv "APPVEYOR" "1")))
13105 (add-before 'check 'adjust-tests
13107 (let ((disabled-tests
13108 '(;; These tests relies on networking which is
13109 ;; not available in the build container.
13110 "test__getaddrinfo_import.py"
13111 "test__server_pywsgi.py"
13112 ;; XXX: These tests borrow functionality from the
13113 ;; Python builtin 'test' module, but it is not
13114 ;; installed with the Guix Python distribution.
13119 "test_threading.py"
13120 "test__threading_2.py"
13121 ;; These tests rely on KeyboardInterrupts which do not
13122 ;; work inside the build container for some reason
13123 ;; (lack of controlling terminal?).
13124 "test_subprocess.py"
13125 "test__issues461_471.py"
13126 ;; TODO: Patch out the tests that use getprotobyname, etc
13127 ;; instead of disabling all the tests from these files.
13128 "test__resolver_dnspython.py"
13129 "test__doctests.py"
13132 "test__execmodules.py")))
13133 (call-with-output-file "skipped_tests.txt"
13135 (format port "~a~%"
13136 (string-join disabled-tests "\n")))))))
13139 ;; Make sure the build directory is on PYTHONPATH.
13140 (setenv "PYTHONPATH"
13142 (getenv "PYTHONPATH") ":"
13144 (car (scandir "build" (cut string-prefix? "lib." <>)))))
13146 ;; Use the build daemons configured number of workers.
13147 (setenv "NWORKERS" (number->string (parallel-job-count)))
13149 (invoke "python" "-m" "gevent.tests" "-unone" "--config"
13150 "known_failures.py" "--ignore" "skipped_tests.txt"))))))
13152 `(("python-greenlet" ,python-greenlet)
13153 ("python-objgraph" ,python-objgraph)
13154 ("python-zope.event" ,python-zope-event)
13155 ("python-zope.interface" ,python-zope-interface)))
13157 `(("python-six" ,python-six)
13160 ("python-dnspython" ,python-dnspython)
13161 ("python-psutil" ,python-psutil)))
13163 `(("c-ares" ,c-ares)
13165 (home-page "https://www.gevent.org/")
13166 (synopsis "Coroutine-based network library")
13168 "@code{gevent} is a coroutine-based Python networking library that uses
13169 @code{greenlet} to provide a high-level synchronous API on top of the
13170 @code{libev} event loop.")
13171 (license license:expat)))
13173 (define-public python-fastimport
13175 (name "python-fastimport")
13180 (uri (pypi-uri "fastimport" version))
13182 (base32 "1fb3b7y3sw55f6wykxx478ybkirz0l52lgdqmbhmc0h0jzmyiwmj"))))
13183 (build-system python-build-system)
13184 (home-page "https://github.com/jelmer/python-fastimport")
13185 (synopsis "VCS fastimport parser and generator in Python")
13186 (description "This package provides a parser for and generator of the Git
13187 @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
13189 (license license:gpl2+)))
13191 (define-public python2-fastimport
13192 (package-with-python2 python-fastimport))
13194 (define-public python-twisted
13196 (name "python-twisted")
13200 (uri (pypi-uri "Twisted" version ".tar.bz2"))
13203 "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
13204 (build-system python-build-system)
13206 '(#:tests? #f)) ; FIXME: some tests fail
13208 `(("python-zope-interface" ,python-zope-interface)
13209 ("python-pyhamcrest" ,python-pyhamcrest)
13210 ("python-incremental" ,python-incremental)
13211 ("python-hyperlink" ,python-hyperlink)
13212 ("python-constantly" ,python-constantly)
13213 ("python-automat" ,python-automat)))
13214 (home-page "https://twistedmatrix.com/")
13215 (synopsis "Asynchronous networking framework written in Python")
13217 "Twisted is an extensible framework for Python programming, with special
13218 focus on event-based network programming and multiprotocol integration.")
13219 (license license:expat)))
13221 (define-public python2-twisted
13222 (package-with-python2 python-twisted))
13224 (define-public python-pika
13226 (name "python-pika")
13231 (uri (pypi-uri "pika" version))
13234 "0ld7akgm93s8pfa4dsx9qlzlhj76zspbr5m9ms0ns09yd2w4aq9h"))))
13235 (build-system python-build-system)
13237 `(("python-pyev" ,python-pyev)
13238 ("python-tornado" ,python-tornado)
13239 ("python-twisted" ,python-twisted)))
13240 (home-page "https://pika.readthedocs.org")
13241 (synopsis "Pure Python AMQP Client Library")
13243 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
13244 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
13245 network support library.")
13246 (license license:bsd-3)))
13248 (define-public python2-pika
13249 (package-with-python2 python-pika))
13251 (define-public python-ply
13253 (name "python-ply")
13258 (uri (pypi-uri "ply" version))
13261 "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
13262 (build-system python-build-system)
13263 (home-page "http://www.dabeaz.com/ply/")
13264 (synopsis "Python Lex & Yacc")
13265 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
13266 It uses LR parsing and does extensive error checking.")
13267 (license license:bsd-3)))
13269 (define-public python-tabulate
13271 (name "python-tabulate")
13275 (uri (pypi-uri "tabulate" version))
13278 "01shi7bmj09f0bcm5s0c9skys063lzp76p0n4a2xmg041ni269yv"))))
13279 (build-system python-build-system)
13281 ;; FIXME: The pypi release tarball is missing a 'test/common.py'
13282 ;; and the latest release is not tagged in the upstream repository.
13284 (home-page "https://bitbucket.org/astanin/python-tabulate")
13285 (synopsis "Pretty-print tabular data")
13287 "Tabulate is a library and command-line utility to pretty-print tabular
13289 (license license:expat)))
13291 (define-public python2-tabulate
13292 (package-with-python2 python-tabulate))
13294 (define-public python-kazoo
13296 (name "python-kazoo")
13301 (uri (pypi-uri "kazoo" version))
13304 "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7"))))
13305 (build-system python-build-system)
13306 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
13308 `(("python-six" ,python-six)))
13309 (home-page "https://kazoo.readthedocs.org")
13310 (synopsis "High-level Zookeeper client library")
13312 "Kazoo is a Python client library for the Apache Zookeeper distributed
13313 application service. It is designed to be easy to use and to avoid common
13314 programming errors.")
13315 (license license:asl2.0)))
13317 (define-public python2-kazoo
13318 (package-with-python2 python-kazoo))
13320 (define-public python-pykafka
13322 (name "python-pykafka")
13326 (uri (pypi-uri "pykafka" version))
13329 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
13330 (build-system python-build-system)
13331 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
13333 `(("python-gevent" ,python-gevent)
13334 ("python-kazoo" ,python-kazoo)
13335 ("python-tabulate" ,python-tabulate)))
13337 `(("librdkafka" ,librdkafka)))
13338 (home-page "https://pykafka.readthedocs.io/")
13339 (synopsis "Apache Kafka client for Python")
13341 "PyKafka is a client for the Apache Kafka distributed messaging system.
13342 It includes Python implementations of Kafka producers and consumers, which
13343 are optionally backed by a C extension built on librdkafka.")
13344 (license license:asl2.0)))
13346 (define-public python-wcwidth
13348 (name "python-wcwidth")
13352 (uri (pypi-uri "wcwidth" version))
13355 "1a1pzds3xzfylm5mnc5f6c1p8kiig0daqjc9gygd9rc3cj53x2zj"))))
13356 (build-system python-build-system)
13357 (home-page "https://github.com/jquast/wcwidth")
13358 (synopsis "Measure number of terminal column cells of wide-character codes")
13359 (description "Wcwidth measures the number of terminal column cells of
13360 wide-character codes. It is useful for those implementing a terminal emulator,
13361 or programs that carefully produce output to be interpreted by one. It is a
13362 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
13363 specified in POSIX.1-2001 and POSIX.1-2008.")
13364 (license license:expat)))
13366 (define-public python2-wcwidth
13367 (package-with-python2 python-wcwidth))
13369 (define-public python2-jsonrpclib
13371 (name "python2-jsonrpclib")
13375 (uri (pypi-uri "jsonrpclib" version))
13378 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
13379 (build-system python-build-system)
13382 #:python ,python-2))
13383 (home-page "https://github.com/joshmarshall/jsonrpclib/")
13384 (synopsis "Implementation of JSON-RPC specification for Python")
13386 "This library is an implementation of the JSON-RPC specification.
13387 It supports both the original 1.0 specification, as well as the
13388 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
13390 (license license:asl2.0)))
13392 (define-public python-chai
13394 (name "python-chai")
13398 (uri (pypi-uri "chai" version))
13401 "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))))
13402 (build-system python-build-system)
13403 (home-page "https://github.com/agoragames/chai")
13404 (synopsis "Mocking framework for Python")
13406 "Chai provides an api for mocking, stubbing and spying your python
13407 objects, patterned after the Mocha library for Ruby.")
13408 (license license:bsd-3)))
13410 (define-public python2-chai
13411 (package-with-python2 python-chai))
13413 (define-public python-inflection
13415 (name "python-inflection")
13418 (origin (method url-fetch)
13419 (uri (pypi-uri "inflection" version))
13422 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
13423 (build-system python-build-system)
13425 `(("python-pytest" ,python-pytest)))
13426 (home-page "https://github.com/jpvanhal/inflection")
13427 (synopsis "Python string transformation library")
13429 "Inflection is a string transformation library. It singularizes
13430 and pluralizes English words, and transforms strings from CamelCase to
13431 underscored string.")
13432 (license license:expat)))
13434 (define-public python2-inflection
13435 (package-with-python2 python-inflection))
13437 (define-public python-pylev
13439 (name "python-pylev")
13443 (uri (pypi-uri "pylev" version))
13446 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
13447 (build-system python-build-system)
13448 (home-page "https://github.com/toastdriven/pylev")
13449 (synopsis "Levenshtein distance implementation in Python")
13450 (description "Pure Python Levenshtein implementation, based off the
13451 Wikipedia code samples at
13452 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
13453 (license license:bsd-3)))
13455 (define-public python2-pylev
13456 (package-with-python2 python-pylev))
13458 (define-public python-cleo
13460 (name "python-cleo")
13464 (uri (pypi-uri "cleo" version))
13467 "17q6wi3q280kxmxzb2iwnnqih2xbljn18v0bjx2ip18p079j43ix"))))
13468 (build-system python-build-system)
13471 ("python-mock" ,python-mock)
13472 ("python-pytest-mock" ,python-pytest-mock)
13473 ("python-pytest" ,python-pytest)))
13475 `(("python-backpack" ,python-backpack)
13476 ("python-clikit" ,python-clikit)
13477 ("python-pastel" ,python-pastel)
13478 ("python-pylev" ,python-pylev)))
13479 (home-page "https://github.com/sdispater/cleo")
13480 (synopsis "Command-line arguments library for Python")
13482 "Cleo allows you to create command-line commands with signature in
13483 docstring and colored output.")
13484 (license license:expat)))
13486 (define-public python2-cleo
13487 (package-with-python2 python-cleo))
13489 (define-public python-tomlkit
13491 (name "python-tomlkit")
13496 (uri (pypi-uri "tomlkit" version))
13498 (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
13499 (build-system python-build-system)
13501 `(("python-pytest" ,python-pytest)
13502 ("python-pyyaml" ,python-pyyaml)))
13503 (home-page "https://github.com/sdispater/tomlkit")
13504 (synopsis "Style-preserving TOML library")
13506 "TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that
13507 preserves all comments, indentations, whitespace and internal element ordering,
13508 and makes them accessible and editable via an intuitive API. It can also
13509 create new TOML documents from scratch using the provided helpers. Part of the
13510 implementation has been adapted, improved, and fixed from Molten.")
13511 (license license:expat)))
13513 (define-public python-shellingham
13515 (name "python-shellingham")
13520 (uri (pypi-uri "shellingham" version))
13522 (base32 "07kmia2hvd2q7wik89m82hig9mqr2faynvy38vxq5fm0ps11jv2p"))))
13523 (build-system python-build-system)
13526 (modify-phases %standard-phases
13527 (add-after 'unpack 'restore-setup.py
13528 ;; setup.py will return in the next release.
13529 ;; <https://github.com/sarugaku/shellingham/issues/33>
13531 (with-output-to-file "setup.py"
13533 (display "from setuptools import setup\nsetup()\n")))
13535 (home-page "https://github.com/sarugaku/shellingham")
13536 (synopsis "Tool to detect surrounding shell")
13538 "Shellingham detects what shell the current Python executable is
13540 (license license:isc)))
13542 (define-public python-memcached
13544 (name "python-memcached")
13549 (uri (pypi-uri "python-memcached" version))
13552 "0kvyapavbirk2x3n1jx4yb9nyigrj1s3x15nm3qhpvhkpqvqdqm2"))
13553 (patches (search-patches "python-memcached-syntax-warnings.patch"))))
13554 (build-system python-build-system)
13555 (propagated-inputs `(("python-six" ,python-six)))
13557 "https://github.com/linsomniac/python-memcached")
13558 (synopsis "Pure python memcached client")
13560 "This software is a pure Python interface to the memcached memory cache
13561 daemon. It is the client side software which allows storing values in one or
13562 more, possibly remote, memcached servers.")
13563 (license license:psfl)))
13565 (define-public python-clikit
13567 (name "python-clikit")
13572 (uri (pypi-uri "clikit" version))
13575 "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4"))))
13576 (build-system python-build-system)
13577 (arguments '(#:tests? #f)) ; no test in the PyPI tarball
13579 `(("python-crashtest" ,python-crashtest)
13580 ("python-pastel" ,python-pastel)
13581 ("python-pylev" ,python-pylev)))
13582 (home-page "https://github.com/sdispater/clikit")
13583 (synopsis "Group of utilities to build command line interfaces")
13585 "CliKit is a group of utilities to build testable command line
13587 (properties `((python2-variant . ,(delay python2-clikit))))
13588 (license license:expat)))
13590 (define-public python2-clikit
13591 (let ((base (package-with-python2 (strip-python2-variant python-clikit))))
13595 `(("python-enum34" ,python2-enum34)
13596 ("python-typing" ,python2-typing)
13597 ,@(package-propagated-inputs base))))))
13599 (define-public python-msgpack-python
13601 (name "python-msgpack-python")
13606 (uri (pypi-uri "msgpack-python" version))
13609 "16wh8qgybmfh4pjp8vfv78mdlkxfmcasg78lzlnm6nslsfkci31p"))))
13610 (build-system python-build-system)
13611 (home-page "https://msgpack.org/")
13612 (synopsis "Package to deserialize messages in MessagePack binary format")
13614 "MessagePack is an efficient binary serialization format. It lets you
13615 exchange data among multiple languages like JSON. But it's faster and
13616 smaller. Small integers are encoded into a single byte, and typical short
13617 strings require only one extra byte in addition to the strings themselves.")
13618 (license license:asl2.0)))
13620 (define-public python-cachy
13622 (name "python-cachy")
13627 (uri (pypi-uri "cachy" version))
13630 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
13631 (build-system python-build-system)
13634 (modify-phases %standard-phases
13636 (lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
13639 `(("memcached" ,memcached)
13640 ("python-fakeredis" ,python-fakeredis)
13641 ("python-flexmock" ,python-flexmock)
13642 ("python-pifpaf" ,python-pifpaf)
13643 ("python-pytest" ,python-pytest)))
13645 `(("python-memcached" ,python-memcached)
13646 ("python-msgpack-python" ,python-msgpack-python)
13647 ("python-redis" ,python-redis)))
13648 (home-page "https://github.com/sdispater/cachy")
13649 (synopsis "Simple yet effective caching library")
13651 "Cachy provides a simple yet effective caching library. A simple but
13652 powerful API: thread-safety; decorator syntax; support for memcached, redis,
13653 database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
13654 (license license:expat)))
13656 (define-public poetry
13660 ;; Poetry can only be built from source with Poetry.
13664 (uri (pypi-uri "poetry" version))
13667 "1dvx08ksv5wnsj45db23921rj136akmcnxa0kmlsddf3wbh6wcka"))))
13668 (build-system python-build-system)
13670 `(#:tests? #f ;; Pypi does not have tests.
13672 (modify-phases %standard-phases
13673 (add-before 'build 'patch-setup-py
13675 (substitute* "setup.py"
13676 ;; Allow newer versions of python-keyring.
13677 (("(keyring>=21.2.0),<22.0.0" _ keyring) keyring)
13678 ;; TODO: remove after the next release cycle,
13679 ;; when packaging has been updated.
13680 (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0"))
13683 `(("python-cachecontrol" ,python-cachecontrol)
13684 ("python-cachy" ,python-cachy)
13685 ("python-cleo" ,python-cleo)
13686 ("python-clikit" ,python-clikit)
13687 ("python-html5lib" ,python-html5lib)
13688 ("python-keyring" ,python-keyring)
13689 ("python-msgpack-transitional" ,python-msgpack-transitional)
13690 ("python-packaging" ,python-packaging)
13691 ("python-pexpect" ,python-pexpect)
13692 ("python-pip" ,python-pip)
13693 ("python-pkginfo" ,python-pkginfo)
13694 ("python-poetry-core" ,python-poetry-core)
13695 ("python-requests" ,python-requests)
13696 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
13697 ("python-shellingham" ,python-shellingham)
13698 ("python-tomlkit" ,python-tomlkit)
13699 ("python-virtualenv" ,python-virtualenv)))
13700 (home-page "https://python-poetry.org")
13701 (synopsis "Python dependency management and packaging made easy")
13702 (description "Poetry is a tool for dependency management and packaging
13703 in Python. It allows you to declare the libraries your project depends on and
13704 it will manage (install/update) them for you.")
13705 (license license:expat)))
13707 (define-public python-lark-parser
13709 (name "python-lark-parser")
13713 (uri (pypi-uri "lark-parser" version))
13716 "1kd61asrb3h9spgsj4bslfbgp8q4271sw3hblk6f2vbbblv8jxcy"))))
13717 (build-system python-build-system)
13718 (home-page "https://github.com/lark-parser/lark")
13719 (synopsis "Multi-language parser for Python")
13721 "Lark is a parser built with a focus on ergonomics, performance and
13722 resilience. Lark can parse all context-free languages. That means it is
13723 capable of parsing almost any programming language out there, and to
13724 some degree most natural languages too.")
13725 (license license:expat)))
13727 (define-public python-libcst
13729 (name "python-libcst")
13733 (uri (pypi-uri "libcst" version))
13736 "05zsc61gsd2pyb6wiyh58zczndxi6rm4d2jl94rpf5cv1fzw6ks8"))))
13737 (build-system python-build-system)
13740 (modify-phases %standard-phases
13741 (add-after 'unpack 'remove-failing-tests
13743 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>.
13744 (delete-file "libcst/tests/test_fuzz.py")
13745 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>.
13746 (delete-file "libcst/tests/test_pyre_integration.py")
13747 (delete-file "libcst/codemod/tests/test_codemod_cli.py")
13748 (delete-file "libcst/metadata/tests/test_full_repo_manager.py")
13749 (delete-file "libcst/metadata/tests/test_type_inference_provider.py")
13751 (add-before 'check 'generate-test-data
13753 (setenv "PYTHONPATH" (string-append (getcwd) ":" (getenv "PYTHONPATH")))
13754 (invoke "python" "-m" "libcst.codegen.generate" "visitors")
13755 (invoke "python" "-m" "libcst.codegen.generate" "return_types")))
13758 (invoke "python" "-m" "unittest")
13761 `(("python-black" ,python-black)
13762 ("python-isort" ,python-isort)))
13764 `(("python-typing-extensions" ,python-typing-extensions)
13765 ("python-typing-inspect" ,python-typing-inspect)
13766 ("python-pyyaml" ,python-pyyaml)))
13767 (home-page "https://github.com/Instagram/LibCST")
13768 (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python")
13770 "LibCST parses Python source code as a CST tree that keeps all
13771 formatting details (comments, whitespaces, parentheses, etc). It's useful
13772 for building automated refactoring (codemod) applications and linters.
13773 LibCST creates a compromise between an Abstract Syntax Tree (AST) and
13774 a traditional Concrete Syntax Tree (CST). By carefully reorganizing and
13775 naming node types and fields, LibCST creates a lossless CST that looks and
13776 feels like an AST.")
13777 (license (list license:expat
13778 ;; Some files unde libcst/_parser/ are under Python Software
13779 ;; Foundation license (see LICENSE file for details)
13781 ;; libcst/_add_slots.py
13784 (define-public python-typing-inspect
13786 (name "python-typing-inspect")
13790 (uri (pypi-uri "typing_inspect" version))
13793 "1dzs9a1pr23dhbvmnvms2jv7l7jk26023g5ysf0zvnq8b791s6wg"))))
13794 (build-system python-build-system)
13796 `(("python-mypy-extensions" ,python-mypy-extensions)
13797 ("python-typing-extensions" ,python-typing-extensions)))
13798 (home-page "https://github.com/ilevkivskyi/typing_inspect")
13799 (synopsis "API for inspection of types in the Python @code{typing} module")
13801 "The @code{typing_inspect} module defines experimental API for runtime
13802 inspection of types defined in the Python standard typing module.")
13803 (license license:expat)))
13805 (define-public python-lazy-object-proxy
13807 (name "python-lazy-object-proxy")
13811 (uri (pypi-uri "lazy-object-proxy" version))
13814 "0hwh29m9wa582ramj30p4pysckdrmki1z1b8iaaxk6mpfx2kc8wp"))))
13816 `(("python-setuptools-scm" ,python-setuptools-scm)))
13817 (build-system python-build-system)
13818 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
13819 (synopsis "Lazy object proxy for python")
13821 "Lazy object proxy is an object that wraps a callable but defers the call
13822 until the object is actually required, and caches the result of said call.")
13823 (license license:bsd-2)))
13825 (define-public python2-lazy-object-proxy
13826 (package-with-python2 python-lazy-object-proxy))
13828 (define-public python-dnspython
13830 (name "python-dnspython")
13834 (uri (pypi-uri "dnspython" version ".zip"))
13837 "1dyip5ygqqhrgcaiy7qzjpndl9xciip186paxqwkm726fj9z0jh4"))))
13838 (build-system python-build-system)
13839 (native-inputs `(("unzip" ,unzip)))
13840 (arguments '(#:tests? #f)) ; XXX: requires internet access
13841 (home-page "https://www.dnspython.org")
13842 (synopsis "DNS toolkit for Python")
13844 "dnspython is a DNS toolkit for Python. It supports almost all record
13845 types. It can be used for queries, zone transfers, and dynamic updates.
13846 It supports TSIG authenticated messages and EDNS0.")
13847 (license license:expat)))
13849 (define-public python-dnspython-1.16
13851 (inherit python-dnspython)
13855 (uri (string-append "http://www.dnspython.org/kits/"
13856 version "/dnspython-" version ".tar.gz"))
13859 "1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
13860 (native-inputs '())))
13862 (define-public python2-dnspython-1.16
13863 (package-with-python2 python-dnspython-1.16))
13865 (define-public python-py3dns
13867 (name "python-py3dns")
13872 (uri (pypi-uri "py3dns" version))
13875 "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz"))))
13876 (build-system python-build-system)
13877 ;; This package wants to read /etc/resolv.conf. We can't patch it without
13878 ;; removing functionality so we copy from Nix and "just don't build it".
13881 (modify-phases %standard-phases
13882 (add-after 'unpack 'patch-source
13884 (substitute* "setup.py"
13885 (("import DNS") "")
13886 (("DNS.__version__") (string-append "\"" ,version "\"")))
13888 #:tests? #f)) ; Also skip the tests.
13889 (home-page "https://launchpad.net/py3dns")
13890 (synopsis "Python 3 DNS library")
13891 (description "This Python 3 module provides a DNS API for looking up DNS
13892 entries from within Python 3 modules and applications. This module is a
13893 simple, lightweight implementation.")
13894 (license license:psfl)))
13896 (define-public python-email-validator
13898 (name "python-email-validator")
13901 (origin (method url-fetch)
13902 (uri (pypi-uri "email_validator" version))
13905 "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
13906 (build-system python-build-system)
13909 (modify-phases %standard-phases
13910 (add-before 'build 'use-dnspython
13912 (substitute* "setup.py"
13913 (("dnspython3") "dnspython"))
13916 `(("python-dnspython" ,python-dnspython)
13917 ("python-idna" ,python-idna)))
13918 (home-page "https://github.com/JoshData/python-email-validator")
13919 (synopsis "Email address validation library for Python")
13921 "This library validates email address syntax and deliverability.")
13922 (license license:cc0)))
13924 (define-public python2-email-validator
13925 (package-with-python2 python-email-validator))
13927 (define-public python-ukpostcodeparser
13929 (name "python-ukpostcodeparser")
13933 (uri (pypi-uri "UkPostcodeParser" version))
13936 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
13937 (build-system python-build-system)
13938 (home-page "https://github.com/hamstah/ukpostcodeparser")
13939 (synopsis "UK Postcode parser for Python")
13941 "This library provides the @code{parse_uk_postcode} function for
13942 parsing UK postcodes.")
13943 (license license:expat)))
13945 (define-public python2-ukpostcodeparser
13946 (package-with-python2 python-ukpostcodeparser))
13948 (define-public python-faker
13950 (name "python-faker")
13954 (uri (pypi-uri "Faker" version))
13957 "13qq485ydxmdnqn3xbfv1xfyqbf9qfnfw33v1vw5l6jyy9p8cgrd"))))
13958 (build-system python-build-system)
13961 (modify-phases %standard-phases
13963 (lambda _ (invoke "python" "-m" "pytest" "-v"))))))
13966 ("python-freezegun" ,python-freezegun)
13967 ("python-pytest" ,python-pytest)
13968 ("python-random2" ,python-random2)
13969 ("python-ukpostcodeparser" ,python-ukpostcodeparser)
13970 ("python-validators" ,python-validators)))
13972 `(("python-dateutil" ,python-dateutil)
13973 ("python-text-unidecode" ,python-text-unidecode)))
13974 (home-page "https://github.com/joke2k/faker")
13975 (synopsis "Python package that generates fake data")
13977 "Faker is a Python package that generates fake data such as names,
13978 addresses, and phone numbers.")
13979 (license license:expat)
13980 (properties `((python2-variant . ,(delay python2-faker))))))
13982 ;; Faker 4.0 dropped Python 2 support, so we stick with this older version here.
13983 (define-public python2-faker
13984 (let ((base (package-with-python2 (strip-python2-variant
13991 (uri (pypi-uri "Faker" version))
13994 "11cr0qvspkdh6198rqy56qildk7bnp6llj8kyy1dan5sp5n4dxy7"))))
13996 `(("python-mock" ,python2-mock)
13997 ,@(package-native-inputs base)))
13999 `(("python2-ipaddress" ,python2-ipaddress)
14000 ("python2-six" ,python2-six)
14001 ,@(package-propagated-inputs base))))))
14003 (define-public python-pyaml
14005 (name "python-pyaml")
14006 (version "18.11.0")
14009 (uri (pypi-uri "pyaml" version))
14012 "0fi604ix8lbpj1266q7js6szm771saprdzzcdwmj43wy83694qmr"))))
14013 (build-system python-build-system)
14015 `(("python-unidecode" ,python-unidecode)))
14017 `(("python-pyyaml" ,python-pyyaml)))
14018 (home-page "https://github.com/mk-fg/pretty-yaml")
14019 (synopsis "YAML pretty-print library for Python")
14021 "pyaml is a PyYAML based python module to produce pretty and readable
14022 YAML-serialized data.")
14023 (license license:wtfpl2)))
14025 (define-public python2-pyaml
14026 (package-with-python2 python-pyaml))
14028 (define-public python-backpack
14030 (name "python-backpack")
14035 (uri (pypi-uri "backpack" version))
14038 "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
14039 (build-system python-build-system)
14041 `(("python-pytest" ,python-pytest)
14042 ("python-nose" ,python-nose)))
14044 `(("python-simplejson" ,python-simplejson)))
14045 (home-page "https://github.com/sdispater/backpack")
14046 (synopsis "Utilities for working with Python collections")
14047 (description "Backpack provides some useful utilities for working with
14048 collections of data.")
14049 (license license:expat)))
14051 (define-public python2-backpack
14052 (package-with-python2 python-backpack))
14054 (define-public python-prompt-toolkit
14056 (name "python-prompt-toolkit")
14061 (uri (pypi-uri "prompt_toolkit" version))
14063 (base32 "0bvjp62cs6aj9lrh7njzxdjgg8pjfw3qgmr551243d9ivmcapvn5"))))
14064 (build-system python-build-system)
14067 (modify-phases %standard-phases
14069 (add-after 'install 'post-install-check
14070 (lambda* (#:key inputs outputs #:allow-other-keys)
14071 ;; HOME is needed for the test
14072 ;; "test_pathcompleter_can_expanduser".
14073 (setenv "HOME" "/tmp")
14074 (add-installed-pythonpath inputs outputs)
14075 (invoke "py.test"))))))
14077 `(("python-wcwidth" ,python-wcwidth)))
14079 `(("python-pytest" ,python-pytest)))
14080 (home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
14081 (synopsis "Library for building command line interfaces in Python")
14083 "Prompt-Toolkit is a library for building interactive command line
14084 interfaces in Python. It's like GNU Readline but it also features syntax
14085 highlighting while typing, out-of-the-box multi-line input editing, advanced
14086 code completion, incremental search, support for Chinese double-width
14087 characters, mouse support, and auto suggestions.")
14088 (license license:bsd-3)
14089 (properties `((python2-variant . ,(delay python-prompt-toolkit-2))))))
14091 (define-public python-prompt-toolkit-2
14092 (package (inherit python-prompt-toolkit)
14093 (name "python-prompt-toolkit")
14098 (uri (pypi-uri "prompt_toolkit" version))
14101 "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
14103 `(("python-wcwidth" ,python-wcwidth)
14104 ("python-six" ,python-six)
14105 ("python-pygments" ,python-pygments)))
14108 (define-public python2-prompt-toolkit
14109 (package-with-python2 python-prompt-toolkit-2))
14111 (define-public python-prompt-toolkit-1
14112 (package (inherit python-prompt-toolkit-2)
14117 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
14120 "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))))
14122 (define-public python2-prompt-toolkit-1
14123 (package-with-python2 python-prompt-toolkit-1))
14125 (define-public python-jedi
14127 (name "python-jedi")
14132 (uri (pypi-uri "jedi" version))
14134 (base32 "080xyf97ifabdz7jp8clg00b8zv5g33fva1fb2xf80q6fndpvvc6"))))
14135 (build-system python-build-system)
14138 (modify-phases %standard-phases
14140 (lambda* (#:key tests? #:allow-other-keys)
14142 (setenv "HOME" "/tmp")
14143 (invoke "python" "-m" "pytest" "-vv"))
14146 `(("python-pytest" ,python-pytest)
14147 ("python-docopt" ,python-docopt)))
14149 `(("python-parso" ,python-parso)))
14150 (home-page "https://github.com/davidhalter/jedi")
14151 (synopsis "Autocompletion and static analysis library for Python")
14153 "Jedi is a static analysis tool for Python that can be used in Integrated
14154 Development Environments (@dfn{IDE}s) and text editors. It understands Python
14155 on a deeper level than many other static analysis frameworks for Python.
14157 Jedi understands docstrings and you can use Jedi autocompletion in your REPL as
14159 (license license:expat)))
14161 (define-public python2-jedi
14162 (package-with-python2 python-jedi))
14164 (define-public ptpython
14170 (uri (pypi-uri "ptpython" version))
14173 "0c2ry5gwi2v99slna62j8r2bwq0hpzmvgdryqg9m6x57vbjfg52h"))))
14174 (build-system python-build-system)
14176 '(#:tests? #f)) ; FIXME: No tests in pypi tarball.
14178 `(("python-appdirs" ,python-appdirs)
14179 ("python-jedi" ,python-jedi)
14180 ("python-prompt-toolkit" ,python-prompt-toolkit)
14181 ("python-pygments" ,python-pygments)))
14182 (home-page "https://github.com/jonathanslenders/ptpython")
14183 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
14185 "ptpython is a Python read-eval-print loop with IDE-like features.
14186 It supports syntax highlighting, multiline editing, autocompletion, mouse,
14187 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
14189 (license license:bsd-3)
14190 (properties `((python2-variant . ,(delay ptpython-2))))))
14192 (define-public ptpython-2
14193 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
14194 (package/inherit base
14195 (name "ptpython2"))))
14197 (define-public python-stem
14199 (name "python-stem")
14204 (uri (pypi-uri "stem" version))
14207 "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"))))
14208 (build-system python-build-system)
14211 (modify-phases %standard-phases
14214 (invoke "./run_tests.py" "--unit")
14217 `(("python-mock" ,python-mock)
14218 ("python-pycodestyle" ,python-pycodestyle)
14219 ("python-pyflakes" ,python-pyflakes)))
14220 (home-page "https://stem.torproject.org/")
14222 "Python controller library that allows applications to interact with Tor")
14224 "Stem is a Python controller library for Tor. With it you can use Tor's
14225 control protocol to script against the Tor process and read descriptor data
14226 relays publish about themselves.")
14227 (license license:lgpl3)))
14229 (define-public python-pyserial
14231 (name "python-pyserial")
14236 (uri (pypi-uri "pyserial" version))
14239 "09y68bczw324a4jb9a1cfwrbjhq179vnfkkkrybbksp0vqgl0bbf"))))
14240 (build-system python-build-system)
14242 '(#:tests? #f)) ; FIXME: 3/49 tests are failing.
14244 ;; (modify-phases %standard-phases
14247 ;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
14249 "https://github.com/pyserial/pyserial")
14250 (synopsis "Python Serial Port Bindings")
14251 (description "@code{pyserial} provide serial port bindings for Python. It
14252 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
14253 and/or Xon/Xoff. The port is accessed in RAW mode.")
14254 (license license:bsd-3)))
14256 (define-public python2-pyserial
14257 (package-with-python2 python-pyserial))
14259 (define-public python-kivy
14261 (name "python-kivy")
14266 (uri (pypi-uri "Kivy" version))
14267 (file-name (string-append name "-" version ".tar.gz"))
14270 "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw"))))
14271 (build-system python-build-system)
14273 `(#:tests? #f ; Tests require many optional packages
14275 (modify-phases %standard-phases
14276 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
14277 (lambda* (#:key inputs #:allow-other-keys)
14278 (setenv "KIVY_SDL2_PATH"
14279 (string-append (assoc-ref inputs "sdl-union")
14283 `(("pkg-config" ,pkg-config)
14284 ("python-cython" ,python-cython)))
14286 `(("gstreamer" ,gstreamer)
14289 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
14290 (home-page "https://kivy.org")
14292 "Multitouch application framework")
14294 "A software library for rapid development of
14295 hardware-accelerated multitouch applications.")
14296 (license license:expat)))
14298 (define-public python2-kivy
14299 (package-with-python2 python-kivy))
14301 (define-public python-binaryornot
14303 (name "python-binaryornot")
14307 (uri (pypi-uri "binaryornot" version))
14310 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
14311 (build-system python-build-system)
14314 (modify-phases %standard-phases
14315 (add-after 'unpack 'patch-tests
14317 ;; TypeError: binary() got an unexpected keyword argument
14319 (substitute* "tests/test_check.py"
14320 (("average_size=512") ""))
14323 `(("python-chardet" ,python-chardet)
14324 ("python-hypothesis" ,python-hypothesis)))
14325 (home-page "https://github.com/audreyr/binaryornot")
14326 (synopsis "Package to check if a file is binary or text")
14327 (description "Ultra-lightweight pure Python package to check if a file is
14329 (license license:bsd-3)
14330 (properties `((python2-variant . ,(delay python2-binaryornot))))))
14332 (define-public python2-binaryornot
14333 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
14334 (package/inherit base
14336 `(("python2-enum34" ,python2-enum34)
14337 ,@(package-propagated-inputs base))))))
14339 (define-public python-binwalk
14341 (name "python-binwalk")
14346 (uri (git-reference
14347 (url "https://github.com/ReFirmLabs/binwalk")
14348 (commit (string-append "v" version))))
14349 (file-name (git-file-name name version))
14352 "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc"))))
14353 (build-system python-build-system)
14356 (modify-phases %standard-phases
14357 (add-before 'check 'set-pythonpath
14359 (setenv "PYTHONPATH"
14362 ":" (getenv "PYTHONPATH")))
14366 `(("python-coverage" ,python-coverage)
14367 ("python-nose" ,python-nose)))
14368 (home-page "https://github.com/ReFirmLabs/binwalk")
14369 (synopsis "Firmware analysis tool")
14370 (description "Binwalk is a tool for analyzing, reverse engineering, and
14371 extracting firmware images")
14372 (license license:expat)))
14374 (define-public python-nltk
14376 (name "python-nltk")
14380 (uri (pypi-uri "nltk" version))
14383 "0skxbhnymwlspjkzga0f7x1hg3y50fwpfghs8g8k7fh6f4nknlym"))))
14384 (build-system python-build-system)
14386 '(;; The tests require some extra resources to be downloaded.
14387 ;; TODO Try packaging these resources.
14389 (home-page "http://nltk.org/")
14390 (synopsis "Natural Language Toolkit")
14391 (description "It provides interfaces to over 50 corpora and lexical
14392 resources such as WordNet, along with a suite of text processing libraries
14393 for classification, tokenization, stemming, tagging, parsing, and semantic
14394 reasoning, wrappers for natural language processing libraries.")
14395 (license license:asl2.0)))
14397 (define-public python2-nltk
14398 (package-with-python2 python-nltk))
14400 (define-public python-pymongo
14402 (name "python-pymongo")
14406 (uri (pypi-uri "pymongo" version))
14409 "0zis4707r9hdg5qgkhp3wss9camr9h56ixyfc8n9dxwlnnly4x4c"))))
14410 (build-system python-build-system)
14412 `(("python-certifi" ,python-certifi)))
14413 (home-page "https://github.com/mongodb/mongo-python-driver")
14414 (synopsis "Python driver for MongoDB")
14415 (description "Python driver for MongoDB.")
14416 (license license:asl2.0)))
14418 (define-public python2-pymongo
14419 (package-with-python2 python-pymongo))
14421 (define-public python-consul
14423 (name "python-consul")
14428 (uri (pypi-uri "python-consul" version))
14431 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
14432 (build-system python-build-system)
14434 '(#:tests? #f)) ; The tests are not distributed
14436 `(("python-requests" ,python-requests)
14437 ("python-six" ,python-six)))
14438 (home-page "https://github.com/cablehead/python-consul")
14439 (synopsis "Python client for Consul")
14441 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
14442 discovery, monitoring and configuration.")
14443 (license license:expat)))
14445 (define-public python2-consul
14446 (package-with-python2 python-consul))
14448 (define-public python-schematics
14450 (name "python-schematics")
14455 (uri (git-reference
14456 (url "https://github.com/schematics/schematics")
14457 (commit (string-append "v" version))))
14458 (file-name (git-file-name name version))
14460 (base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd"))))
14461 (build-system python-build-system)
14463 `(("python-six" ,python-six)))
14465 ;; The tests require a bunch of not very nice packages with fixed
14466 ;; version requirements (e.g. python-coveralls).
14468 (home-page "https://github.com/schematics/schematics")
14469 (synopsis "Python Data Structures for Humans")
14470 (description "Python Data Structures for Humans.")
14471 (license license:bsd-3)))
14473 (define-public python2-schematics
14474 (package-with-python2 python-schematics))
14476 (define-public python-odfpy
14478 (name "python-odfpy")
14482 (uri (pypi-uri "odfpy" version))
14485 "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv"))))
14488 (modify-phases %standard-phases
14491 (setenv "PYTHONPATH" (string-append "./build/lib:"
14492 (getenv "PYTHONPATH")))
14493 (invoke "pytest" "-vv"))))))
14494 (build-system python-build-system)
14496 `(("python-pytest" ,python-pytest)))
14498 `(("python-defusedxml" ,python-defusedxml)))
14499 (home-page "https://github.com/eea/odfpy")
14500 (synopsis "Python API and tools to manipulate OpenDocument files")
14501 (description "Collection of libraries and utility programs written in
14502 Python to manipulate OpenDocument 1.2 files.")
14504 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
14505 ;; number of files with other licenses.
14506 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
14508 (define-public python2-odfpy
14509 (package-with-python2 python-odfpy))
14511 (define-public python-natsort
14513 (name "python-natsort")
14517 (uri (pypi-uri "natsort" version))
14520 "1ksqfai72dbcfbwx43pxl658j59mx2rvqypjy1fk0ax2qd6lccx6"))))
14521 (build-system python-build-system)
14523 `(#:modules ((guix build utils)
14524 (guix build python-build-system)
14529 (modify-phases %standard-phases
14530 (add-before 'check 'set-cachedir
14531 ;; Tests require write access to $HOME by default
14532 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))
14535 (let ((cwd (getcwd)))
14536 (setenv "PYTHONPATH"
14539 (find (cut string-prefix? "lib" <>)
14540 (scandir (string-append cwd "/build")))
14542 (getenv "PYTHONPATH")))
14543 (invoke "pytest" "-v")))))))
14545 `(("python-hypothesis" ,python-hypothesis)
14546 ("python-pytest-cov" ,python-pytest-cov)
14547 ("python-pytest-mock" ,python-pytest-mock)
14548 ("python-pytest" ,python-pytest)))
14549 (propagated-inputs ; TODO: Add python-fastnumbers.
14550 `(("python-pyicu" ,python-pyicu)))
14551 (home-page "https://github.com/SethMMorton/natsort")
14552 (synopsis "Natural sorting for python and shell")
14554 "Natsort lets you apply natural sorting on lists instead of
14555 lexicographical. If you use the built-in @code{sorted} method in python
14556 on a list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4},
14557 @code{a10}]}, it would be returned as @code{[@code{a1}, @code{a10}, @code{a20},
14558 @code{a4}, @code{a9}]}. Natsort provides a function @code{natsorted} that
14559 identifies numbers and sorts them separately from strings. It can also sort
14560 version numbers, real numbers, mixed types and more, and comes with a shell
14561 command @command{natsort} that exposes this functionality in the command line.")
14562 (license license:expat)
14563 (properties `((python2-variant . ,(delay python2-natsort))))))
14565 ;; Natsort 6.x are the last versions with support for Python 2.
14566 (define-public python2-natsort
14567 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
14568 (package (inherit base)
14572 (uri (pypi-uri "natsort" version))
14575 "1mc9hbh6fv76xyz13frm7dgi05cf74f9j5wvcyjiy5234gylz565"))))
14577 `(("python2-pathlib" ,python2-pathlib)
14578 ,@(package-native-inputs base))))))
14580 (define-public glances
14587 (uri (pypi-uri "Glances" version))
14589 (base32 "11xbm8jgcxha191ly7q76nab1ilabiz14mqf6i3y6aw5xvgg017c"))
14590 (modules '((guix build utils)))
14593 ;; Glances phones PyPI for weekly update checks by default.
14594 ;; Disable these. The user can re-enable them if desired.
14595 (substitute* "glances/outdated.py"
14596 (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
14597 (string-append indentation
14598 "self.args.disable_check_update = True\n"
14601 (build-system python-build-system)
14603 `(("python-future" ,python-future)
14604 ("python-psutil" ,python-psutil)))
14605 (home-page "https://github.com/nicolargo/glances")
14606 (synopsis "Cross-platform curses-based monitoring tool")
14608 "Glances is a curses-based monitoring tool for a wide variety of platforms.
14609 Glances uses the PsUtil library to get information from your system. It
14610 monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
14611 (license license:lgpl3+)))
14613 (define-public python-glances
14614 (deprecated-package "python-glances" glances))
14616 (define-public python-graphql-core
14618 (name "python-graphql-core")
14623 (uri (pypi-uri "graphql-core" version))
14626 "0fjv5w2wvgdr8gb27v241bavliipyir9fdz48rsgc3xapm644mn0"))))
14627 (build-system python-build-system)
14629 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
14631 (modify-phases %standard-phases
14632 (add-after 'unpack 'patch-hardcoded-version
14633 (lambda _ (substitute*
14635 (("'gevent==1.1rc1'") "'gevent'"))
14638 `(("python-gevent" ,python-gevent)
14639 ("python-mock" ,python-mock)
14640 ("python-pytest-mock" ,python-pytest-mock)))
14642 `(("python-promise" ,python-promise)
14643 ("python-six" ,python-six)))
14644 (home-page "https://github.com/graphql-python/graphql-core")
14645 (synopsis "GraphQL implementation for Python")
14647 "GraphQL implementation for Python. GraphQL is a data query language and
14648 runtime designed and used to request and deliver data to mobile and web apps.
14649 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
14651 (license license:expat)))
14653 (define-public python-graphql-relay
14655 (name "python-graphql-relay")
14660 (uri (pypi-uri "graphql-relay" version))
14663 "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7"))))
14664 (build-system python-build-system)
14666 '(#:tests? #f)) ; The tests are not distributed
14668 `(("python-graphql-core" ,python-graphql-core)
14669 ("python-promise" ,python-promise)
14670 ("python-six" ,python-six)))
14671 (home-page "https://github.com/graphql-python/graphql-relay-py")
14672 (synopsis "Relay implementation for Python")
14674 "This is a library to allow the easy creation of Relay-compliant servers
14675 using the GraphQL Python reference implementation of a GraphQL server. It
14676 should be noted that the code is a exact port of the original
14677 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
14679 (license license:expat)))
14681 (define-public python-graphene
14683 (name "python-graphene")
14688 (uri (pypi-uri "graphene" version))
14691 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
14692 (build-system python-build-system)
14694 `(("python-graphql-core" ,python-graphql-core)
14695 ("python-graphql-relay" ,python-graphql-relay)
14696 ("python-iso8601" ,python-iso8601)
14697 ("python-promise" ,python-promise)
14698 ("python-six" ,python-six)))
14700 `(#:tests? #f)) ; no tests/ in the PyPI tarball
14701 (home-page "https://graphene-python.org/")
14702 (synopsis "GraphQL Framework for Python")
14704 "Graphene is a Python library for building GraphQL schemas/types.
14705 A GraphQL schema describes your data model, and provides a GraphQL server
14706 with an associated set of resolve methods that know how to fetch data.")
14707 (license license:expat)))
14709 (define-public python-nautilus
14711 (name "python-nautilus")
14716 (uri (pypi-uri "nautilus" version))
14719 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
14720 (build-system python-build-system)
14721 (arguments `(#:tests? #f)) ; fails to import test modules
14723 `(("python-bcrypt" ,python-bcrypt)
14724 ("python-click" ,python-click)
14725 ("python-consul" ,python-consul)
14726 ("python-graphene" ,python-graphene)
14727 ("python-jinja2" ,python-jinja2)
14728 ("python-peewee" ,python-peewee)
14729 ("python-pika" ,python-pika)
14730 ("python-tornado" ,python-tornado)
14731 ("python-wtforms" ,python-wtforms)))
14733 `(("python-nose2" ,python-nose2)))
14734 (home-page "https://github.com/AlecAivazis/nautilus")
14735 (synopsis "Library for creating microservice applications")
14737 "Nautilus is a framework for flux based microservices that looks to
14738 provide extendible implementations of common aspects of a cloud so that you can
14739 focus on building massively scalable web applications.")
14740 (license license:expat)))
14742 (define-public python-random2
14744 (name "python-random2")
14748 (uri (pypi-uri "random2" version ".zip"))
14751 "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))))
14752 (build-system python-build-system)
14753 (native-inputs `(("unzip" ,unzip)))
14754 (home-page "http://pypi.python.org/pypi/random2")
14755 (synopsis "Python 3 version of the Python 2 @code{random} module")
14757 "This package provides a Python 3 ported version of Python 2.7’s
14758 @code{random} module. It has also been back-ported to work in Python 2.6.
14760 In Python 3, the implementation of @code{randrange()} was changed, so that
14761 even with the same seed you get different sequences in Python 2 and 3.
14763 This package closes that gap, allowing stable random number generation
14764 between the different Python versions.")
14765 (license license:psfl)))
14767 (define-public python2-random2
14768 (package-with-python2 python-random2))
14770 (define-public python-snowballstemmer
14772 (name "python-snowballstemmer")
14776 (uri (pypi-uri "snowballstemmer" version))
14779 "0ligk61idlz8kkgd5hpip5whm172riwglb6xydii7h62yhysqfyz"))))
14780 (build-system python-build-system)
14782 `(;; No tests exist
14784 (home-page "https://github.com/shibukawa/snowball_py")
14785 (synopsis "Snowball stemming library collection for Python")
14786 (description "This package provides 16 word stemmer algorithms generated
14787 from Snowball algorithms. It includes the 15 original ones plus the Poerter
14789 (license license:bsd-3)))
14791 (define-public python2-snowballstemmer
14792 (package-with-python2 python-snowballstemmer))
14794 (define-public python-setproctitle
14796 (name "python-setproctitle")
14801 (uri (pypi-uri "setproctitle" version))
14804 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
14805 (build-system python-build-system)
14808 (modify-phases %standard-phases
14809 (add-before 'check 'patch-Makefile
14810 ;; Stricly this is only required for the python2 variant.
14811 ;; But adding a phase in an inherited package seems to be
14812 ;; cumbersum. So we patch even for python3.
14814 (let ((nose (assoc-ref %build-inputs "python2-nose")))
14816 (substitute* "Makefile"
14817 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
14818 (string-append nose "/bin/nosetests "))))
14822 (setenv "PYTHON" (or (which "python3") (which "python")))
14823 (setenv "PYCONFIG" (if (which "python3-config")
14824 "python3-config --embed"
14826 (setenv "CC" "gcc")
14827 ;; No need to extend PYTHONPATH to find the built package, since
14828 ;; the Makefile will build anyway
14829 (invoke "make" "check"))))))
14831 `(("procps" ,procps))) ; required for tests
14832 (home-page "https://github.com/dvarrazzo/py-setproctitle")
14834 "Setproctitle implementation for Python to customize the process title")
14835 (description "The library allows a process to change its title (as displayed
14836 by system tools such as ps and top).
14838 Changing the title is mostly useful in multi-process systems, for
14839 example when a master process is forked: changing the children's title
14840 allows identifying the task each process is busy with. The technique
14841 is used by PostgreSQL and the OpenSSH Server for example.")
14842 (license license:bsd-3)
14843 (properties `((python2-variant . ,(delay python2-setproctitle))))))
14845 (define-public python2-setproctitle
14846 (let ((base (package-with-python2
14847 (strip-python2-variant python-setproctitle))))
14848 (package/inherit base
14849 (native-inputs `(("python2-nose" ,python2-nose)
14850 ,@(package-native-inputs base))))))
14852 (define-public python-validictory
14854 (name "python-validictory")
14859 (uri (pypi-uri "validictory" version))
14862 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
14863 (build-system python-build-system)
14866 (modify-phases %standard-phases
14867 (add-after 'unpack 'bootstrap
14868 ;; Move the tests out of the package directory to avoid
14871 (rename-file "validictory/tests" "tests")
14872 (delete-file "tests/__init__.py")))
14875 ;; Extend PYTHONPATH so the built package will be found.
14876 (setenv "PYTHONPATH"
14877 (string-append (getcwd) "/build/lib:"
14878 (getenv "PYTHONPATH")))
14879 (invoke "py.test" "-vv" ))))))
14881 `(("python-pytest" ,python-pytest)))
14883 "https://github.com/jamesturk/validictory")
14884 (synopsis "General purpose Python data validator")
14885 (description "It allows validation of arbitrary Python data structures.
14887 The schema format is based on the JSON Schema
14888 proposal (http://json-schema.org), so combined with json the library is also
14889 useful as a validator for JSON data.")
14890 (license license:expat)))
14892 (define-public python2-validictory
14893 (package-with-python2 python-validictory))
14895 (define-public python-pyelftools
14897 (name "python-pyelftools")
14902 (uri (pypi-uri "pyelftools" version))
14905 "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9"))))
14906 (build-system python-build-system)
14909 (modify-phases %standard-phases
14910 (add-before 'check 'set-pythonpath
14912 (setenv "PYTHONPATH"
14915 ":" (getenv "PYTHONPATH")))
14918 "https://github.com/eliben/pyelftools")
14920 "Analyze binary and library file information")
14921 (description "This Python library provides interfaces for parsing and
14922 analyzing two binary and library file formats; the Executable and Linking
14923 Format (ELF), and debugging information in the Debugging With Attributed
14924 Record Format (DWARF).")
14925 (license license:public-domain)))
14927 (define-public python-pyev
14929 (name "python-pyev")
14934 (uri (pypi-uri "pyev" version))
14937 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
14938 (build-system python-build-system)
14940 `(#:tests? #f ; no test suite
14942 (modify-phases %standard-phases
14943 (add-after 'unpack 'patch
14944 (lambda* (#:key inputs #:allow-other-keys)
14945 (let ((libev (string-append (assoc-ref inputs "libev")
14946 "/lib/libev.so.4")))
14947 (substitute* "setup.py"
14948 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
14949 (string-append "libev_dll_name = \"" libev "\"")))))))))
14951 `(("libev" ,libev)))
14952 (home-page "https://github.com/gabrielfalcao/pyev")
14953 (synopsis "Python libev interface")
14954 (description "Pyev provides a Python interface to libev.")
14955 (license license:gpl3)))
14957 (define-public python2-pyev
14958 (package-with-python2 python-pyev))
14960 (define-public python-imagesize
14962 (name "python-imagesize")
14967 (uri (pypi-uri "imagesize" version))
14970 "1cd24x0vqbd6c8ym1n21qc0aj54mfb7rzdqglmwk9xxixajbbxmi"))))
14971 (build-system python-build-system)
14972 (home-page "https://github.com/shibukawa/imagesize_py")
14973 (synopsis "Gets image size of files in various formats in Python")
14975 "This package allows determination of image size from
14976 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
14977 (license license:expat)))
14979 (define-public python2-imagesize
14980 (package-with-python2 python-imagesize))
14982 (define-public python-termstyle
14984 (name "python-termstyle")
14989 (uri (pypi-uri "termstyle" version))
14992 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
14993 (build-system python-build-system)
14996 (modify-phases %standard-phases
14999 (invoke "python" "test3.py"))))))
15000 (home-page "https://github.com/gfxmonk/termstyle")
15001 (synopsis "Console text coloring for Python")
15002 (description "This package provides console text coloring for Python.")
15003 (license license:bsd-3)))
15005 (define-public python-argcomplete
15007 (name "python-argcomplete")
15012 (uri (pypi-uri "argcomplete" version))
15015 "0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss"))
15016 (patches (search-patches "python-argcomplete-1.11.1-fish31.patch"))))
15017 (build-system python-build-system)
15019 `(("python-coverage" ,python-coverage)
15020 ("python-flake8" ,python-flake8)
15021 ("python-pexpect" ,python-pexpect)
15022 ("python-wheel" ,python-wheel)
15025 ("bash-full" ,bash))) ;full Bash for 'test_file_completion'
15026 (home-page "https://github.com/kislyuk/argcomplete")
15027 (synopsis "Shell tab completion for Python argparse")
15028 (description "argcomplete provides extensible command line tab completion
15029 of arguments and options for Python scripts using @code{argparse}. It's
15030 particularly useful for programs with many options or sub-parsers that can
15031 dynamically suggest completions; for example, when browsing resources over the
15033 (license license:asl2.0)
15034 (properties `((python2-variant . ,(delay python2-argcomplete))))))
15036 (define-public python2-argcomplete
15037 (let ((variant (package-with-python2
15038 (strip-python2-variant python-argcomplete))))
15039 (package/inherit variant
15041 (substitute-keyword-arguments (package-arguments variant)
15042 ((#:phases phases '%standard-phases)
15043 `(modify-phases ,phases
15044 (add-after 'unpack 'set-my-HOME
15045 (lambda _ (setenv "HOME" "/tmp")))))))
15047 `(("python2-importlib-metadata" ,python2-importlib-metadata)
15048 ,@(package-native-inputs variant))))))
15050 (define-public python-csscompressor
15052 (name "python-csscompressor")
15057 (uri (pypi-uri "csscompressor" version))
15060 "018ssffvlpnc1salmnpyl52c11glzzwj4k9f757hl4pkpjnjp8mg"))))
15061 (build-system python-build-system)
15064 (modify-phases %standard-phases
15067 (invoke "py.test"))))))
15069 `(("python-pytest" ,python-pytest)))
15070 (home-page "https://github.com/sprymix/csscompressor")
15071 (synopsis "Python port of YUI CSS Compressor")
15073 "This package provides a python port of YUI CSS Compressor.")
15074 (license license:bsd-3)))
15076 (define-public python-rcssmin
15078 (name "python-rcssmin")
15083 (uri (pypi-uri "rcssmin" version))
15086 "0w42l4dhxghcz7pj3q7hkxp015mvb8z2cq9sfxbl31npsfavd1ya"))))
15087 (build-system python-build-system)
15090 (modify-phases %standard-phases
15093 (invoke "python" "run_tests.py" "tests"))))))
15094 (home-page "http://opensource.perlig.de/rcssmin/")
15095 (synopsis "CSS Minifier")
15096 (description "The minifier is based on the semantics of the YUI compressor,
15097 which itself is based on the rule list by Isaac Schlueter.")
15098 (license license:asl2.0)))
15100 (define-public python-rjsmin
15102 (name "python-rjsmin")
15107 (uri (pypi-uri "rjsmin" version))
15110 "0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi"))
15111 (modules '((guix build utils)))
15114 (for-each delete-file (find-files "bench" "\\.js$"))
15116 (build-system python-build-system)
15118 '(#:tests? #f ; Not all test files included.
15120 (modify-phases %standard-phases
15122 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
15123 (add-installed-pythonpath inputs outputs)
15125 (invoke "py.test" "-vv" "tests")
15128 `(("python-pytest" ,python-pytest)))
15129 (home-page "http://opensource.perlig.de/rjsmin/")
15130 (synopsis "Javascript Minifier")
15131 (description "@code{rJSmin} is a javascript minifier written in Python. The
15132 minifier is based on the semantics of jsmin.c by Douglas Crockford. The module
15133 is a re-implementation aiming for speed, so it can be used at runtime (rather
15134 than during a preprocessing step).")
15135 (license license:asl2.0)))
15137 (define-public python-xopen
15139 (name "python-xopen")
15144 (uri (pypi-uri "xopen" version))
15147 "17xbrgi23l87yg6h0qcknssp2q812miiy33qw6v45v5gx0jwv5xh"))))
15148 (build-system python-build-system)
15150 `(("python-setuptools-scm" ,python-setuptools-scm)))
15151 (home-page "https://github.com/marcelm/xopen/")
15152 (synopsis "Open compressed files transparently")
15153 (description "This module provides an @code{xopen} function that works like
15154 Python's built-in @code{open} function, but can also deal with compressed files.
15155 Supported compression formats are gzip, bzip2 and, xz, and are automatically
15156 recognized by their file extensions. The focus is on being as efficient as
15157 possible on all supported Python versions.")
15158 (license license:expat)))
15160 (define-public python2-xopen
15161 (let ((base (package-with-python2
15162 (strip-python2-variant python-xopen))))
15163 (package/inherit base
15164 (propagated-inputs `(("python2-bz2file" ,python2-bz2file)
15165 ,@(package-propagated-inputs base))))))
15167 (define-public python-cheetah
15169 (name "python-cheetah")
15174 (uri (pypi-uri "Cheetah3" version))
15177 "0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
15178 (build-system python-build-system)
15180 `(#:modules ((guix build utils)
15181 (guix build python-build-system)
15185 #:phases (modify-phases %standard-phases
15186 (add-after 'unpack 'use-absolute-python
15188 (substitute* "Cheetah/CheetahWrapper.py"
15189 (("#!/usr/bin/env python")
15190 (string-append "#!" (which "python"))))
15192 (add-after 'unpack 'fix-tests
15194 (substitute* "Cheetah/Tests/ImportHooks.py"
15195 (("os.path.dirname\\(__file__\\)")
15196 (string-append "'" (getcwd) "/Cheetah/Tests'")))
15200 (let ((cwd (getcwd)))
15201 (setenv "PYTHONPATH"
15204 (find (cut string-prefix? "lib" <>)
15205 (scandir (string-append cwd "/build")))
15206 ":" (getenv "PYTHONPATH")))
15208 (string-append (getenv "PATH")
15210 (setenv "TMPDIR" "/tmp")
15212 (substitute* "Cheetah/Tests/Test.py"
15213 (("unittest.TextTestRunner\\(\\)")
15214 "unittest.TextTestRunner(verbosity=2)"))
15216 (invoke "python" "Cheetah/Tests/Test.py")))))))
15218 `(("python-markdown" ,python-markdown))) ;optional
15219 (home-page "https://cheetahtemplate.org/")
15220 (synopsis "Template engine")
15221 (description "Cheetah is a text-based template engine and Python code
15224 Cheetah can be used as a standalone templating utility or referenced as
15225 a library from other Python applications. It has many potential uses,
15226 but web developers looking for a viable alternative to ASP, JSP, PHP and
15227 PSP are expected to be its principle user group.
15231 @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
15233 @item Cleanly separates content, graphic design, and program code.
15234 @item Blends the power and flexibility of Python with a simple template language
15235 that non-programmers can understand.
15236 @item Gives template writers full access to any Python data structure, module,
15237 function, object, or method in their templates.
15238 @item Makes code reuse easy by providing an object-orientated interface to
15239 templates that is accessible from Python code or other Cheetah templates.
15240 One template can subclass another and selectively reimplement sections of it.
15241 @item Provides a simple, yet powerful, caching mechanism that can dramatically
15242 improve the performance of a dynamic website.
15243 @item Compiles templates into optimized, yet readable, Python code.
15245 (license (license:x11-style "file://LICENSE"))))
15247 (define-public python2-cheetah
15248 (package-with-python2 python-cheetah))
15250 (define-public python-dulwich
15252 (name "python-dulwich")
15253 (version "0.19.16")
15257 (uri (list (string-append "https://www.dulwich.io/releases/"
15258 "dulwich-" version ".tar.gz")
15259 (pypi-uri "dulwich" version)))
15262 "0l589jl0lxx59yq0p6vmgw0q0hmfh48iqwyy0x6g1dmz93262igp"))))
15263 (build-system python-build-system)
15266 (modify-phases %standard-phases
15267 (add-before 'check 'fix-tests
15268 (lambda* (#:key inputs #:allow-other-keys)
15269 ;; The tests use Popen with a custom environment which doesn't
15271 (substitute* "dulwich/tests/compat/utils.py"
15272 (("'git'") (string-append "'"
15275 (substitute* '("dulwich/tests/test_repository.py"
15276 "dulwich/tests/test_hooks.py")
15277 (("#!/bin/sh") (string-append "#!" (which "sh"))))
15278 (setenv "TEST_RUNNER" "unittest")
15279 (setenv "PYTHONHASHSEED" "random")
15282 `(("python-fastimport" ,python-fastimport)
15283 ("python-urllib3" ,python-urllib3)))
15285 `(("python-mock" ,python-mock)
15286 ("python-geventhttpclient" ,python-geventhttpclient)
15288 (home-page "https://www.dulwich.io/")
15289 (synopsis "Git implementation in Python")
15290 (description "Dulwich is an implementation of the Git file formats and
15291 protocols written in pure Python.")
15292 ;; Can be used with either license.
15293 (license (list license:asl2.0 license:gpl2+))))
15295 (define-public python-pbkdf2
15297 (name "python-pbkdf2")
15302 (uri (pypi-uri "pbkdf2" version))
15305 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
15306 (build-system python-build-system)
15309 (modify-phases %standard-phases
15312 (setenv "PYTHONPATH"
15313 (string-append (getcwd) "/build/lib:"
15314 (getenv "PYTHONPATH")))
15315 (invoke "python" "test/test_pbkdf2.py"))))))
15317 `(("python-pycrypto" ,python-pycrypto))) ; optional
15318 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
15319 (synopsis "Password-based key derivation")
15320 (description "This module implements the password-based key derivation
15321 function, PBKDF2, specified in RSA PKCS#5 v2.0.
15323 PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
15324 is part of the RSA Public Key Cryptography Standards series. The provided
15325 implementation takes a password or a passphrase and a salt value (and
15326 optionally a iteration count, a digest module, and a MAC module) and provides
15327 a file-like object from which an arbitrarily-sized key can be read.")
15328 (license license:expat)))
15330 (define-public python2-pbkdf2
15331 (package-with-python2 python-pbkdf2))
15333 (define-public python-qrcode
15335 (name "python-qrcode")
15340 (uri (pypi-uri "qrcode" version))
15342 (base32 "0sa3n298b9jpz6zn0birnjii3mg9sihjq28n9nzjlzv09y2m6ljh"))))
15343 (build-system python-build-system)
15345 ;; FIXME: Tests require packaging 'pymaging'.
15348 `(("python-lxml" ,python-lxml) ; for SVG output
15349 ("python-pillow" ,python-pillow) ; for PNG output
15350 ("python-six" ,python-six)))
15351 (home-page "https://github.com/lincolnloop/python-qrcode")
15352 (synopsis "QR Code image generator")
15353 (description "This package provides a pure Python QR Code generator
15354 module. It uses the Python Imaging Library (PIL) to allow for the generation
15357 In addition this package provides a command line tool to generate QR codes and
15358 either write these QR codes to a file or do the output as ascii art at the
15360 (license license:bsd-3)))
15362 (define-public python2-qrcode
15363 (package-with-python2 python-qrcode))
15365 (define-public python-rst2ansi
15367 (name "python-rst2ansi")
15372 (uri (pypi-uri "rst2ansi" version))
15375 "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
15376 (build-system python-build-system)
15378 `(("python-docutils" ,python-docutils)))
15379 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
15380 (synopsis "Convert RST to ANSI-decorated console output")
15382 "Python module dedicated to rendering RST (reStructuredText) documents
15383 to ansi-escaped strings suitable for display in a terminal.")
15384 (license license:expat)))
15386 (define-public python-ansi2html
15388 (name "python-ansi2html")
15393 (uri (pypi-uri "ansi2html" version))
15396 "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
15397 (build-system python-build-system)
15399 `(("python-mock" ,python-mock)
15400 ("python-nose" ,python-nose)))
15402 `(("python-six" ,python-six)))
15403 (home-page "https://github.com/ralphbean/ansi2html")
15404 (synopsis "Convert ANSI-decorated console output to HTML")
15406 "@command{ansi2html} is a Python library and command line utility for
15407 converting text with ANSI color codes to HTML or LaTeX.")
15408 (license license:gpl3+)))
15410 (define-public python2-ansi2html
15411 (package-with-python2 python-ansi2html))
15413 (define-public python-ddt
15415 (name "python-ddt")
15420 (uri (pypi-uri "ddt" version))
15423 "1niqpzc26sxdbyi46r07n4pma5fjx6crww2539vpfmsf0w6yg585"))))
15424 (build-system python-build-system)
15426 `(("python-pytest" ,python-pytest)))
15428 `(("python-pyyaml" ,python-pyyaml)))
15429 (home-page "https://github.com/datadriventests/ddt")
15430 (synopsis "Data-Driven Tests")
15432 "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
15433 running it with different test data, and make it appear as multiple test
15435 (license license:expat)))
15437 (define-public python-pycountry
15439 (name "python-pycountry")
15440 (version "18.5.26")
15444 (uri (pypi-uri "pycountry" version))
15447 "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz"))))
15448 (build-system python-build-system)
15449 (home-page "https://bitbucket.org/flyingcircus/pycountry")
15450 (synopsis "ISO databases for languages, countries, currencies, etc.")
15452 "@code{pycountry} provides the ISO databases for the standards:
15454 @item 639-3 (Languages)
15455 @item 3166 (Countries)
15456 @item 3166-3 (Deleted Countries)
15457 @item 3166-2 (Subdivisions of countries)
15458 @item 4217 (Currencies)
15459 @item 15924 (Scripts)
15461 It includes a copy from Debian’s pkg-isocodes and makes the data accessible
15462 through a Python API.")
15463 (license license:lgpl2.1+)))
15465 (define-public python2-pycountry
15466 (package-with-python2 python-pycountry))
15468 (define-public python-pycosat
15470 (name "python-pycosat")
15475 (uri (pypi-uri "pycosat" version ".zip"))
15478 "1vg0f2fwcybpdqv92z0hwdl603n2safh3fqvjjxkksd78r4qg6ac"))))
15479 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
15480 (build-system python-build-system)
15482 `(("unzip" ,unzip)))
15483 (home-page "https://github.com/ContinuumIO/pycosat")
15484 (synopsis "Bindings to picosat (a SAT solver)")
15486 "This package provides efficient Python bindings to @code{picosat} on
15487 the C level. When importing pycosat, the @code{picosat} solver becomes part
15488 of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
15489 Problem} (SAT) solver.")
15490 (license license:expat)))
15492 (define-public python2-pycosat
15493 (package-with-python2 python-pycosat))
15495 (define-public python2-ruamel.ordereddict
15497 (name "python2-ruamel.ordereddict")
15502 (uri (pypi-uri "ruamel.ordereddict" version))
15505 "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
15506 (build-system python-build-system)
15508 `(#:python ,python-2
15510 (modify-phases %standard-phases
15512 (add-after 'install 'check
15513 (lambda* (#:key inputs outputs #:allow-other-keys)
15514 (add-installed-pythonpath inputs outputs)
15515 (invoke "python" "test/testordereddict.py"))))))
15516 (home-page "https://bitbucket.org/ruamel/ordereddict")
15517 (synopsis "Version of dict that keeps keys in insertion order")
15519 "This is an implementation of an ordered dictionary with @dfn{Key
15520 Insertion Order} (KIO: updates of values do not affect the position of the
15521 key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
15522 removed and put at the back). The standard library module @code{OrderedDict},
15523 implemented later, implements a subset of @code{ordereddict} functionality.
15524 Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
15525 Order} (KSO, no sorting function can be specified, but a transform can be
15526 specified to apply on the key before comparison (e.g. @code{string.lower})).")
15527 (license license:expat)))
15529 (define-public python-pypeg2
15531 (name "python-pypeg2")
15536 (uri (pypi-uri "pyPEG2" version))
15539 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
15540 (build-system python-build-system)
15541 (propagated-inputs `(("python-lxml" ,python-lxml)))
15543 ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
15545 (home-page "https://fdik.org/pyPEG/")
15546 (synopsis "Parsering Expression Grammars in Python")
15547 (description "PyPEG is an intrinsic parser interpreter framework for
15548 Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
15549 parse many formal languages.")
15550 (license license:gpl2)))
15552 (define-public python-incremental
15554 (name "python-incremental")
15559 (uri (pypi-uri "incremental" version))
15562 "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
15563 (build-system python-build-system)
15564 (home-page "https://github.com/hawkowl/incremental")
15565 (synopsis "Library for versioning Python projects")
15566 (description "Incremental is a small library that versions your Python
15568 (license license:expat)))
15570 (define-public python2-incremental
15571 (package-with-python2 python-incremental))
15573 (define-public python-invoke
15575 (name "python-invoke")
15576 (home-page "https://www.pyinvoke.org/")
15580 (uri (pypi-uri "invoke" version))
15583 "0l16v7zcbgi36z6pvmdrs5q4ks8lalcafi5d9nhrpcjzbc3n1igh"))))
15584 (build-system python-build-system)
15586 ;; XXX: Requires many dependencies that are not yet in Guix.
15589 (modify-phases %standard-phases
15590 (add-after 'unpack 'fix-bash-path
15591 (lambda* (#:key inputs #:allow-other-keys)
15592 (let ((bash (assoc-ref inputs "bash")))
15593 (substitute* "invoke/config.py"
15594 (("shell = \"/bin/bash\"")
15595 (string-append "shell = \"" bash "/bin/bash\""))
15599 `(("bash" ,bash-minimal)))
15600 (synopsis "Pythonic task execution")
15602 "Invoke is a Python task execution tool and library, drawing inspiration
15603 from various sources to arrive at a powerful and clean feature set. It is
15604 evolved from the Fabric project, but focuses on local and abstract concerns
15605 instead of servers and network commands.")
15606 (license license:bsd-3)))
15608 (define-public python2-invoke
15609 (package-with-python2 python-invoke))
15611 (define-public python-automat
15613 (name "python-automat")
15617 (uri (pypi-uri "Automat" version))
15620 "0cyzrcqiibwdsp4y0djkllnzab8m5faa4s0d1kpi23k1fhy80ybr"))))
15621 (build-system python-build-system)
15622 ;; We disable the tests because they require python-twisted, while
15623 ;; python-twisted depends on python-automat. Twisted is optional, but the
15624 ;; tests fail if it is not available. Also see
15625 ;; <https://github.com/glyph/automat/issues/71>.
15626 (arguments '(#:tests? #f))
15628 `(("python-m2r" ,python-m2r)
15629 ("python-setuptools-scm" ,python-setuptools-scm)
15630 ("python-graphviz" ,python-graphviz)))
15632 `(("python-six" ,python-six)
15633 ("python-attrs" ,python-attrs)))
15634 (home-page "https://github.com/glyph/Automat")
15635 (synopsis "Self-service finite-state machines")
15636 (description "Automat is a library for concise, idiomatic Python
15637 expression of finite-state automata (particularly deterministic finite-state
15639 (license license:expat)))
15641 (define-public python2-automat
15642 (package-with-python2 python-automat))
15644 (define-public python-m2r
15646 (name "python-m2r")
15650 (uri (pypi-uri "m2r" version))
15653 "16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))))
15654 (build-system python-build-system)
15656 `(("python-docutils" ,python-docutils)
15657 ("python-mistune" ,python-mistune)))
15659 `(("python-pygments" ,python-pygments)
15660 ("python-mock" ,python-mock)))
15661 (home-page "https://github.com/miyakogi/m2r")
15662 (synopsis "Markdown to reStructuredText converter")
15663 (description "M2R converts a markdown file including reST markups to valid
15665 (license license:expat)))
15667 (define-public python2-m2r
15668 (package-with-python2 python-m2r))
15670 (define-public python-constantly
15672 (name "python-constantly")
15676 (uri (pypi-uri "constantly" version))
15679 "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
15680 (build-system python-build-system)
15681 (home-page "https://github.com/twisted/constantly")
15682 (synopsis "Symbolic constants in Python")
15683 (description "Constantly is a Python library that provides symbolic
15684 constant support. It includes collections and constants with text, numeric,
15685 and bit flag values.")
15686 (license license:expat)))
15688 (define-public python2-constantly
15689 (package-with-python2 python-constantly))
15691 (define-public python-attrs
15693 (name "python-attrs")
15697 (uri (pypi-uri "attrs" version))
15700 "0wky4h28n7xnr6xv69p9z6kv8bzn50d10c3drmd9ds8gawbcxdzp"))))
15701 (build-system python-build-system)
15703 `(#:modules ((guix build utils)
15704 (guix build python-build-system)
15708 #:phases (modify-phases %standard-phases
15711 (let ((cwd (getcwd)))
15712 (setenv "PYTHONPATH"
15715 (find (cut string-prefix? "lib" <>)
15716 (scandir (string-append cwd "/build")))
15718 (getenv "PYTHONPATH")))
15719 (invoke "python" "-m" "pytest")))))))
15721 `(("python-coverage" ,python-coverage)
15722 ("python-hypothesis" ,python-hypothesis)
15723 ("python-pympler" ,python-pympler)
15724 ("python-pytest" ,python-pytest)
15725 ("python-six" ,python-six)
15726 ("python-sphinx" ,python-sphinx)
15727 ("python-zope-interface" ,python-zope-interface)))
15728 (home-page "https://github.com/python-attrs/attrs/")
15729 (synopsis "Attributes without boilerplate")
15730 (description "@code{attrs} is a Python package with class decorators that
15731 ease the chores of implementing the most common attribute-related object
15733 (license license:expat)))
15735 (define-public python2-attrs
15736 (package-with-python2 python-attrs))
15738 (define-public python-attrs-bootstrap
15740 (inherit python-attrs)
15741 (name "python-attrs-bootstrap")
15742 (native-inputs `())
15743 (arguments `(#:tests? #f))))
15745 (define-public python2-attrs-bootstrap
15746 (package-with-python2 python-attrs-bootstrap))
15748 (define-public python2-cliapp
15750 (name "python2-cliapp")
15751 (version "1.20180812.1")
15755 (uri (string-append
15756 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
15757 version ".tar.gz"))
15760 "1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
15761 (build-system python-build-system)
15763 `(#:python ,python-2
15765 (modify-phases %standard-phases
15766 ;; check phase needs to be run before the build phase. If not,
15767 ;; coverage-test-runner looks for tests for the built source files,
15770 (add-before 'build 'check
15772 ;; Disable python3 tests
15773 (substitute* "check"
15774 (("python3") "# python3"))
15775 (invoke "./check"))))))
15777 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
15778 ("python2-pep8" ,python2-pep8)))
15780 `(("python2-pyaml" ,python2-pyaml)))
15781 (home-page "https://liw.fi/cliapp/")
15782 (synopsis "Python framework for command line programs")
15783 (description "@code{python2-cliapp} is a python framework for
15784 command line programs. It contains the typical stuff such programs
15785 need to do, such as parsing the command line for options, and
15786 iterating over input files.")
15787 (license license:gpl2+)))
15789 (define-public python2-ttystatus
15791 (name "python2-ttystatus")
15796 (uri (git-reference
15797 (url "http://git.liw.fi/ttystatus")
15798 ;; There are no tags after ttystatus-0.36.
15799 (commit "e9fc573326c5d1348f5fe56263b4f7a8c32f58c9")))
15801 (base32 "0v49q839nrwdm19c83wfmj6n2kw80xslwq9k0n5509r2h7wzjiqj"))
15802 (file-name (git-file-name name version))))
15803 (build-system python-build-system)
15805 `(("python2-coverage-test-runner" ,python2-coverage-test-runner)
15806 ("python2-pep8" ,python2-pep8)))
15808 `(#:python ,python-2
15810 (modify-phases %standard-phases
15811 ;; check phase needs to be run before the build phase. If not,
15812 ;; coverage-test-runner looks for tests for the built source files,
15815 (add-before 'build 'check
15816 (lambda _ (invoke "make" "check"))))))
15817 (home-page "https://liw.fi/ttystatus/")
15818 (synopsis "Python library for showing progress reporting and
15819 status updates on terminals")
15820 (description "@code{python2-ttystatus} is a python library for
15821 showing progress reporting and status updates on terminals, for
15822 command line programs. Output is automatically adapted to the width
15823 of the terminal: truncated if it does not fit, and resized if the
15824 terminal size changes.")
15825 (license license:gpl3+)))
15827 (define-public python2-tracing
15829 (name "python2-tracing")
15834 (uri (string-append
15835 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-"
15836 version ".tar.gz"))
15839 "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw"))))
15840 (build-system python-build-system)
15842 `(#:python ,python-2))
15843 (home-page "https://liw.fi/tracing/")
15844 (synopsis "Python debug logging helper")
15845 (description "@code{python2-tracing} is a python library for
15846 logging debug messages. It provides a way to turn debugging messages
15847 on and off, based on the filename they occur in. It is much faster
15848 than using @code{logging.Filter} to accomplish the same thing, which
15849 matters when code is run in production mode. The actual logging still
15850 happens using the @code{logging} library.")
15851 (license license:gpl3+)))
15853 (define-public python2-larch
15855 (name "python2-larch")
15856 (version "1.20151025")
15860 (uri (string-append
15861 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-"
15862 version ".tar.gz"))
15863 (patches (search-patches
15864 "python2-larch-coverage-4.0a6-compatibility.patch"))
15867 "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663"))))
15868 (build-system python-build-system)
15870 `(#:python ,python-2
15872 (modify-phases %standard-phases
15873 ;; check phase needs to be run before the build phase. If not,
15874 ;; coverage-test-runner looks for tests for the built source files,
15877 (add-before 'build 'check
15878 (lambda _ (invoke "make" "check"))))))
15880 `(("cmdtest" ,cmdtest)
15881 ("python2-coverage-test-runner" ,python2-coverage-test-runner)))
15883 `(("python2-tracing" ,python2-tracing)))
15884 (home-page "https://liw.fi/larch/")
15885 (synopsis "Python copy-on-write B-tree library")
15886 (description "@code{python2-larch} is an implementation of
15887 particular kind of B-tree, based on research by Ohad Rodeh. See
15888 @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details
15889 on the data structure.
15891 The distinctive feature of this B-tree is that a node is never
15892 (conceptually) modified. Instead, all updates are done by
15893 copy-on-write. This makes it easy to clone a tree, and modify only the
15894 clone, while other processes access the original tree.")
15895 (license license:gpl3+)))
15897 (define-public python-astroid
15899 (name "python-astroid")
15904 (uri (pypi-uri "astroid" version))
15906 (base32 "00xp5gqxidxvgg1bwd91myqzdf2fpb9cjwbdl3p7gwqvlk17hh1g"))
15907 (modules '((guix build utils)))
15910 ;; Check to see if the version pinning has been removed.
15911 (substitute* "astroid/__pkginfo__.py"
15912 (("==1\\.4\\.\\*") ">=1.4.0"))
15914 (build-system python-build-system)
15916 `(("python-lazy-object-proxy" ,python-lazy-object-proxy)
15917 ("python-six" ,python-six)
15918 ("python-wrapt" ,python-wrapt)))
15920 `(("python-dateutil" ,python-dateutil)
15921 ("python-pytest" ,python-pytest)
15922 ("python-pytest-runner" ,python-pytest-runner)))
15923 (home-page "https://github.com/PyCQA/astroid")
15924 (synopsis "Common base representation of python source code for pylint and
15926 (description "@code{python-astroid} provides a common base representation
15927 of python source code for projects such as pychecker, pyreverse, pylint, etc.
15929 It provides a compatible representation which comes from the _ast module. It
15930 rebuilds the tree generated by the builtin _ast module by recursively walking
15931 down the AST and building an extended ast. The new node classes have
15932 additional methods and attributes for different usages. They include some
15933 support for static inference and local name scopes. Furthermore, astroid
15934 builds partial trees by inspecting living objects.")
15935 (license license:lgpl2.1+)
15936 (properties `((python2-variant . ,(delay python2-astroid))))))
15938 (define-public python2-astroid
15939 (let ((base (package-with-python2
15940 (strip-python2-variant python-astroid))))
15941 (package (inherit base)
15942 ;; Version 2.x removes python2 support.
15947 (uri (pypi-uri "astroid" version))
15950 "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
15952 (substitute-keyword-arguments (package-arguments base)
15954 `(modify-phases ,phases
15955 (add-after 'unpack 'remove-spurious-test
15957 ;; https://github.com/PyCQA/astroid/issues/276
15958 (delete-file "astroid/tests/unittest_brain.py")
15962 (invoke"python" "-m" "unittest" "discover"
15963 "-p" "unittest*.py")))))))
15964 (native-inputs `())
15966 `(("python2-backports-functools-lru-cache"
15967 ,python2-backports-functools-lru-cache)
15968 ("python2-enum34" ,python2-enum34)
15969 ("python2-singledispatch" ,python2-singledispatch)
15970 ,@(alist-delete "python-typed-ast"
15971 (package-propagated-inputs base)))))))
15973 (define-public python-isbnlib
15975 (name "python-isbnlib")
15980 (uri (pypi-uri "isbnlib" version))
15983 "0iin0x2xqwyphyyzd0mzrq5v5xm7b6dlbb294k4dywra5qvbrgzm"))))
15984 (build-system python-build-system)
15985 (arguments '(#:tests? #f)) ; No test
15986 (home-page "https://github.com/xlcnd/isbnlib")
15987 (synopsis "Python library to work with ISBN strings")
15988 (description "@code{python-isbnlib} is a (pure) python library that provides
15989 several useful methods and functions to validate, clean, transform, hyphenate and
15990 get metadata for ISBN strings. Its origin was as the core of isbntools. This short
15991 version, is suitable to be include as a dependency in other projects.")
15992 (license license:lgpl3+)))
15994 (define-public python-isort
15996 (name "python-isort")
16001 (uri (git-reference
16002 ;; Tests pass only from the Github sources
16003 (url "https://github.com/timothycrosley/isort")
16005 (file-name (git-file-name name version))
16008 "1q0mlrpki5vjbgwxag5rghljjcfg7mvb0pbkwid80p0sqrxlm2p6"))))
16009 (build-system python-build-system)
16011 `(("python-mock" ,python-mock)
16012 ("python-pytest" ,python-pytest)))
16013 (home-page "https://github.com/timothycrosley/isort")
16014 (synopsis "Python utility/library to sort python imports")
16015 (description "@code{python-isort} is a python utility/library to sort
16016 imports alphabetically, and automatically separated into sections. It
16017 provides a command line utility, a python library and plugins for various
16019 (license license:expat)
16020 (properties `((python2-variant . ,(delay python2-isort))))))
16022 (define-public python2-isort
16023 (let ((base (package-with-python2
16024 (strip-python2-variant python-isort))))
16025 (package/inherit base
16027 `(("python2-futures" ,python2-futures)
16028 ,@(package-native-inputs base))))))
16030 (define-public python2-backports-functools-lru-cache
16032 (name "python2-backports-functools-lru-cache")
16037 ;; only the pypi tarballs contain the necessary metadata
16038 (uri (pypi-uri "backports.functools_lru_cache" version))
16041 "0jidrkk2w6bhjm197plxiaxrav64mgcrign0bfyr7md2ilc5zplg"))))
16042 (build-system python-build-system)
16044 `(("python2-setuptools-scm" ,python2-setuptools-scm)))
16046 `(#:python ,python-2))
16047 (home-page "https://github.com/jaraco/backports.functools_lru_cache")
16048 (synopsis "Backport of functools.lru_cache from Python 3.3")
16049 (description "@code{python2-backports-functools-lru-cache} is a backport
16050 of @code{functools.lru_cache} from python 3.3.")
16051 (license license:expat)))
16053 (define-public python-configparser
16055 (name "python-configparser")
16060 (uri (pypi-uri "configparser" version))
16063 "1priacxym85yjcf68hh38w55nqswaxp71ryjyfdk222kg9l85ln7"))))
16065 `(("python-setuptools_scm" ,python-setuptools-scm)))
16066 (build-system python-build-system)
16067 (home-page "https://github.com/jaraco/configparser/")
16068 (synopsis "Backport of configparser from python 3.5")
16069 (description "@code{python-configparser} is a backport of
16070 @code{configparser} from Python 3.5 so that it can be used directly
16071 in other versions.")
16072 (license license:expat)))
16074 (define-public python2-configparser
16075 (package-with-python2 python-configparser))
16077 (define-public python-iniconfig
16079 (name "python-iniconfig")
16084 (uri (pypi-uri "iniconfig" version))
16087 "0ckzngs3scaa1mcfmsi1w40a1l8cxxnncscrxzjjwjyisx8z0fmw"))))
16088 (build-system python-build-system)
16089 (home-page "https://github.com/RonnyPfannschmidt/iniconfig")
16090 (synopsis "Simple INI-file parser")
16091 (description "The @code{iniconfig} package provides a small and simple
16092 INI-file parser module having a unique set of features; @code{iniconfig}
16094 @item maintains the order of sections and entries;
16095 @item supports multi-line values with or without line-continuations;
16096 @item supports \"#\" comments everywhere;
16097 @item raises errors with proper line-numbers;
16098 @item raises an error when two sections have the same name.
16100 (license license:expat)))
16102 (define-public python-mamba
16104 (name "python-mamba")
16108 (uri (pypi-uri "mamba" version))
16111 "15m4dpnpv9m60pdaygvwgi43fwqaivs3qxfxhspwrp47sbgwdkvm"))))
16112 (build-system python-build-system)
16113 (arguments `(#:tests? #f)) ; No test
16115 `(("python-clint" ,python-clint)
16116 ("python-coverage" ,python-coverage)))
16117 (home-page "https://nestorsalceda.com/mamba/")
16118 (synopsis "Test runner for Python")
16120 "Mamba is a Behaviour-Driven Development tool for Python developers.
16121 Is heavily influenced from RSpec, Mocha, Jasmine or Ginkgo.")
16122 (license license:expat)))
16124 (define-public python-mando
16126 (name "python-mando")
16130 (uri (pypi-uri "mando" version))
16133 "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr"))))
16134 (build-system python-build-system)
16136 `(("python-rst2ansi" ,python-rst2ansi)
16137 ("python-six" ,python-six)))
16139 `(("python-pytest" ,python-pytest)))
16140 (home-page "https://mando.readthedocs.org/")
16142 "Wrapper around argparse, allowing creation of complete CLI applications")
16144 "This package is a wrapper around argparse, allowing you to write complete CLI
16145 applications in seconds while maintaining all the flexibility.")
16146 (license license:expat)))
16148 (define-public python2-mando
16149 (package-with-python2 python-mando))
16151 (define-public python2-argparse
16153 (name "python2-argparse")
16158 (uri (pypi-uri "argparse" version))
16161 "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32"))))
16162 (build-system python-build-system)
16164 `(#:python ,python-2))
16165 (home-page "https://github.com/ThomasWaldmann/argparse/")
16166 (synopsis "Python command-line parsing library")
16168 "This package is mostly for people who want to have @code{argparse} on
16169 older Pythons because it was not part of the standard library back then.")
16170 (license license:psfl)))
16172 (define-public python-fudge
16174 (name "python-fudge")
16175 ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2
16176 ;; package, which is currently the only use of this package.
16181 (uri (pypi-uri "fudge" version))
16184 "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l"))))
16185 (build-system python-build-system)
16187 `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package.
16188 (home-page "https://github.com/fudge-py/fudge")
16189 (synopsis "Replace real objects with fakes/mocks/stubs while testing")
16191 "Fudge is a Python module for using fake objects (mocks and stubs) to
16194 In readable Python code, you declare the methods available on your fake object
16195 and how they should be called. Then you inject that into your application and
16196 start testing. This declarative approach means you don’t have to record and
16197 playback actions and you don’t have to inspect your fakes after running code.
16198 If the fake object was used incorrectly then you’ll see an informative
16199 exception message with a traceback that points to the culprit.")
16200 (license license:expat)))
16202 (define-public python2-fudge
16203 (package-with-python2 python-fudge))
16205 (define-public python-mwclient
16207 (name "python-mwclient")
16212 ;; The PyPI version wouldn't contain tests.
16213 (uri (git-reference
16214 (url "https://github.com/mwclient/mwclient")
16215 (commit (string-append "v" version))))
16216 (file-name (git-file-name name version))
16218 (base32 "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj"))))
16219 (build-system python-build-system)
16221 `(("python-requests-oauthlib" ,python-requests-oauthlib)
16222 ("python-six" ,python-six)))
16224 `(("python-mock" ,python-mock)
16225 ("python-pytest" ,python-pytest)
16226 ("python-pytest-cov" ,python-pytest-cov)
16227 ("python-pytest-runner" ,python-pytest-runner)
16228 ("python-responses" ,python-responses)))
16229 (home-page "https://github.com/btongminh/mwclient")
16230 (synopsis "MediaWiki API client")
16231 (description "This package provides a MediaWiki API client.")
16232 (license license:expat)))
16234 (define-public python-utils
16236 (name "python-utils")
16240 (uri (pypi-uri "python-utils" version))
16243 "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj"))))
16244 (build-system python-build-system)
16247 (modify-phases %standard-phases
16249 (lambda* (#:key inputs outputs #:allow-other-keys)
16250 (add-installed-pythonpath inputs outputs)
16251 (delete-file "pytest.ini")
16252 (invoke "pytest" "-vv"))))))
16254 `(("pytest-runner" ,python-pytest-runner)
16255 ("pytest" ,python-pytest)
16256 ("six" ,python-six)))
16257 (home-page "https://github.com/WoLpH/python-utils")
16258 (synopsis "Convenient utilities not included with the standard Python install")
16260 "Python Utils is a collection of small Python functions and classes which
16261 make common patterns shorter and easier.")
16262 (license license:bsd-2)))
16264 (define-public python-diff-match-patch
16266 (name "python-diff-match-patch")
16267 (version "20121119")
16271 (uri (pypi-uri "diff-match-patch" version))
16274 "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
16275 (build-system python-build-system)
16276 (home-page "https://code.google.com/p/google-diff-match-patch")
16277 (synopsis "Synchronize plain text")
16278 (description "Diff Match and Patch libraries offer robust algorithms to
16279 perform the operations required for synchronizing plain text.")
16280 (license license:asl2.0)))
16282 (define-public python2-diff-match-patch
16283 (package-with-python2 python-diff-match-patch))
16285 (define-public python-dirsync
16287 (name "python-dirsync")
16292 (uri (pypi-uri "dirsync" version))
16295 "1gm82jddm1lkazdi8lfsl1b3vi1z0252ng60mzjym8irnv94qfhy"))))
16296 (build-system python-build-system)
16298 `(("six" ,python-six)))
16299 (home-page "https://github.com/tkhyn/dirsync")
16300 (synopsis "Advanced directory tree synchronisation tool")
16301 (description "Advanced directory tree synchronisation tool.")
16302 (license license:expat)))
16304 (define-public python2-dirsync
16305 (package-with-python2 python-dirsync))
16307 (define-public python-levenshtein
16309 (name "python-levenshtein")
16314 (uri (pypi-uri "python-Levenshtein" version))
16317 "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"))))
16318 (build-system python-build-system)
16319 (home-page "https://github.com/ztane/python-Levenshtein")
16320 (synopsis "Fast computation of Levenshtein distance and string similarity")
16322 "The Levenshtein Python C extension module contains functions for fast computation of
16324 @item Levenshtein (edit) distance, and edit operations
16325 @item string similarity
16326 @item approximate median strings, and generally string averaging
16327 @item string sequence and set similarity
16329 It supports both normal and Unicode strings.")
16330 (license license:gpl2+)))
16332 (define-public python2-levenshtein
16333 (package-with-python2 python-levenshtein))
16335 (define-public python-scandir
16337 (name "python-scandir")
16342 (uri (pypi-uri "scandir" version))
16344 (base32 "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd"))))
16345 (build-system python-build-system)
16347 `(#:phases (modify-phases %standard-phases
16350 (invoke "python" "test/run_tests.py"))))))
16351 (home-page "https://github.com/benhoyt/scandir")
16352 (synopsis "Directory iteration function")
16354 "Directory iteration function like os.listdir(), except that instead of
16355 returning a list of bare filenames, it yields DirEntry objects that include
16356 file type and stat information along with the name. Using scandir() increases
16357 the speed of os.walk() by 2-20 times (depending on the platform and file
16358 system) by avoiding unnecessary calls to os.stat() in most cases.
16360 This package is part of the Python standard library since version 3.5.")
16361 (license license:bsd-3)))
16363 (define-public python2-scandir
16364 (package-with-python2 python-scandir))
16366 (define-public python2-stemming
16368 (name "python2-stemming")
16373 (uri (pypi-uri "stemming" version))
16375 (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr"))))
16376 (build-system python-build-system)
16378 `(#:python ,python-2))
16379 (home-page "https://bitbucket.org/mchaput/stemming/overview")
16380 (synopsis "Python implementations of various stemming algorithms")
16382 "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins
16383 stemming algorithms for English. These implementations are straightforward and
16384 efficient, unlike some Python versions of the same algorithms available on the
16385 Web. This package is an extraction of the stemming code included in the Whoosh
16387 (license license:public-domain)))
16389 (define-public python-factory-boy
16391 (name "python-factory-boy")
16396 (uri (pypi-uri "factory_boy" version))
16398 (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56"))))
16399 (build-system python-build-system)
16401 ;; Tests are not included in the tarball.
16404 `(("faker" ,python-faker)))
16405 (home-page "https://github.com/benhoyt/scandir")
16406 (synopsis "Versatile test fixtures replacement")
16408 "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl.
16410 As a fixtures replacement tool, it aims to replace static, hard to maintain
16411 fixtures with easy-to-use factories for complex object.
16413 Instead of building an exhaustive test setup with every possible combination
16414 of corner cases, factory_boy allows you to use objects customized for the
16415 current test, while only declaring the test-specific fields")
16416 (license license:expat)))
16418 (define-public python2-factory-boy
16419 (package-with-python2 python-factory-boy))
16421 (define-public python-translate-toolkit
16423 (name "python-translate-toolkit")
16428 (uri (pypi-uri "translate-toolkit" version ".tar.bz2"))
16430 (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq"))))
16431 (build-system python-build-system)
16433 `(("python-pytest" ,python-pytest)
16434 ("python-sphinx" ,python-sphinx)))
16436 `(("python-babel" ,python-babel)
16437 ("python-beautifulsoup4" ,python-beautifulsoup4)
16438 ("python-chardet" ,python-chardet)
16439 ("python-diff-match-patch" ,python-diff-match-patch)
16440 ("python-levenshtein" ,python-levenshtein)
16441 ("python-lxml" ,python-lxml)
16442 ("python-six" ,python-six)
16443 ("python-vobject" ,python-vobject)
16444 ("python-pyyaml" ,python-pyyaml)))
16446 ;; TODO: tests are not run, because they end with
16447 ;; TypeError: parse() missing 2 required positional arguments: 'tree' and
16449 ;; during test setup.
16451 (home-page "https://toolkit.translatehouse.org")
16452 (synopsis "Tools and API for translation and localization engineering")
16454 "Tools and API for translation and localization engineering. It contains
16455 several utilities, as well as an API for building localization tools.")
16456 (license license:gpl2+)))
16458 (define-public python2-translate-toolkit
16459 (package-with-python2 python-translate-toolkit))
16461 (define-public python-packaging
16463 (name "python-packaging")
16468 (uri (pypi-uri "packaging" version))
16469 ;; XXX: The URL in the patch file is wrong, it should be
16470 ;; <https://github.com/pypa/packaging/pull/256>.
16471 (patches (search-patches "python-packaging-test-arch.patch"))
16474 "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
16475 (build-system python-build-system)
16477 `(#:phases (modify-phases %standard-phases
16479 (lambda* (#:key tests? #:allow-other-keys)
16481 (invoke "py.test" "-vv")
16482 (format #t "test suite not run~%"))
16485 `(("python-pretend" ,python-pretend)
16486 ("python-pytest" ,python-pytest)))
16488 `(("python-pyparsing" ,python-pyparsing)
16489 ("python-six" ,python-six)))
16490 (home-page "https://github.com/pypa/packaging")
16491 (synopsis "Core utilities for Python packages")
16492 (description "Packaging is a Python module for dealing with Python packages.
16493 It offers an interface for working with package versions, names, and dependency
16495 ;; From 'LICENSE': This software is made available under the terms of
16496 ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
16497 ;; Contributions to this software is made under the terms of *both* these
16499 (license (list license:asl2.0 license:bsd-2))))
16501 (define-public python2-packaging
16502 (package-with-python2 python-packaging))
16504 ;; Variants with minimal dependencies, for bootstrapping Pytest.
16505 (define-public python-packaging-bootstrap
16509 (name "python-packaging-bootstrap")
16510 (native-inputs '())
16512 `(("python-pyparsing" ,python-pyparsing)))
16513 (arguments '(#:tests? #f)))))
16515 (define-public python2-packaging-bootstrap
16519 (name "python2-packaging-bootstrap")
16520 (native-inputs '())
16522 `(("python-pyparsing" ,python2-pyparsing)))
16525 ,@(package-arguments python2-packaging))))))
16527 (define-public python-relatorio
16529 (name "python-relatorio")
16534 (uri (pypi-uri "relatorio" version))
16537 "1na6hlhz1awi1hbjg1gyclq0khz42iz90wvdjw7mmj655788bpxx"))))
16538 (build-system python-build-system)
16540 `(("python-lxml" ,python-lxml)
16541 ("python-genshi" ,python-genshi)))
16543 `(("python-magic" ,python-magic)))
16544 (home-page "https://relatorio.tryton.org/")
16545 (synopsis "Templating library able to output ODT and PDF files")
16546 (description "Relatorio is a templating library which provides a way to
16547 easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
16548 for more filetypes can be easily added by creating plugins for them.")
16549 (license license:gpl3+)))
16551 (define-public python2-relatorio
16552 (package-with-python2 python-relatorio))
16554 (define-public python-radon
16556 (name "python-radon")
16561 (uri (pypi-uri "radon" version))
16564 "0vfxxzbnz5lxfvp0yxp35g6c8qqnnbhi4dm7shkm1d3d4192q22n"))))
16565 (build-system python-build-system)
16567 `(#:phases (modify-phases %standard-phases
16570 (invoke "python" "radon/tests/run.py"))))))
16572 `(("python-colorama" ,python-colorama)
16573 ("python-flake8-polyfill" ,python-flake8-polyfill)
16574 ("python-mando" ,python-mando)))
16576 `(("python-pytest" ,python-pytest)
16577 ("python-pytest-mock" ,python-pytest-mock)))
16578 (home-page "https://radon.readthedocs.org/")
16579 (synopsis "Code Metrics in Python")
16580 (description "Radon is a Python tool which computes various code metrics.
16581 Supported metrics are:
16583 @item raw metrics: SLOC, comment lines, blank lines, &c.
16584 @item Cyclomatic Complexity (i.e. McCabe’s Complexity)
16585 @item Halstead metrics (all of them)
16586 @item the Maintainability Index (a Visual Studio metric)
16588 (properties `((python2-variant . ,(delay python2-radon))))
16589 (license license:expat)))
16591 (define-public python2-radon
16592 (let ((base (package-with-python2 (strip-python2-variant python-radon))))
16593 (package/inherit base
16595 `(("python-configparser" ,python2-configparser)
16596 ("python-future" ,python2-future)
16597 ,@(package-propagated-inputs base))))))
16599 (define-public python-sure
16601 (name "python-sure")
16606 (uri (pypi-uri "sure" version))
16609 "1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w"))))
16610 (build-system python-build-system)
16612 `(("python-mock" ,python-mock)
16613 ("python-six" ,python-six)))
16615 `(("python-nose" ,python-nose)))
16616 (home-page "https://github.com/gabrielfalcao/sure")
16617 (synopsis "Automated testing library in python for python")
16619 "Sure is a python library that leverages a DSL for writing assertions.
16620 Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
16621 (license license:gpl3+)))
16623 (define-public python2-sure
16624 (package-with-python2 python-sure))
16626 (define-public python2-couleur
16627 ;; This package does not seem to support python3 at all, hence,
16628 ;; only the python2 variant definition is provided.
16630 (name "python2-couleur")
16635 (uri (pypi-uri "couleur" version))
16638 "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
16639 (build-system python-build-system)
16641 `(#:python ,python-2))
16642 (home-page "https://github.com/gabrielfalcao/couleur")
16644 "ANSI terminal tool for python, colored shell and other handy fancy features")
16646 "@code{Couleur} provides python programs a way to use the ANSI features in a unix
16647 terminal such as coloured output in the shell, overwriting output, indentation, etc.")
16648 ;; README.md says ASL2.0, but all source code headers are LGPL3+.
16649 ;; https://github.com/gabrielfalcao/couleur/issues/11
16650 (license license:lgpl3+)))
16652 (define-public python-misaka
16654 (name "python-misaka")
16659 (uri (pypi-uri "misaka" version))
16662 "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"))))
16663 (build-system python-build-system)
16665 `(;; Line 37 of setup.py calls self.run_command('develop')
16666 ;; in the 'check' phase. This command seems to be trying
16668 ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
16669 ;; for which it does not have the permission to write.
16672 `(("python-cffi" ,python-cffi)))
16673 (home-page "https://github.com/FSX/misaka")
16674 (synopsis "Python binding for Hoedown")
16676 "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
16677 library written in C. It features a fast HTML renderer and functionality to make custom
16678 renderers (e.g. man pages or LaTeX).")
16679 (license license:expat)))
16681 (define-public python2-misaka
16682 (package-with-python2 python-misaka))
16684 (define-public python2-steadymark
16685 ;; This is forced into being a python2 only variant
16686 ;; due to its dependence on couleur that has no support
16689 (name "python2-steadymark")
16694 (uri (pypi-uri "steadymark" version))
16697 "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
16698 (build-system python-build-system)
16700 `(("python-couleur" ,python2-couleur)
16701 ("python-sure" ,python2-sure)
16702 ("python-misaka" ,python2-misaka)))
16704 `(#:python ,python-2
16706 (modify-phases %standard-phases
16707 (add-before 'build 'patch-setup-py
16709 ;; Update requirements from dependency==version
16710 ;; to dependency>=version
16711 (substitute* "setup.py"
16714 (home-page "https://github.com/gabrielfalcao/steadymark")
16715 (synopsis "Markdown-based test runner for python")
16717 "@code{Steadymark} allows documentation to be written in github-flavoured
16718 markdown. The documentation may contain snippets of code surrounded by python
16719 code blocks and @code{Steadymark} will find these snippets and run them, making
16720 sure that there are no old malfunctional examples in the documentation examples.")
16721 (license license:expat)))
16723 (define-public python-jsonpointer
16725 (name "python-jsonpointer")
16730 (uri (pypi-uri "jsonpointer" version))
16733 "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
16734 (build-system python-build-system)
16735 (home-page "https://github.com/stefankoegl/python-json-pointer")
16736 (synopsis "Identify specific nodes in a JSON document")
16737 (description "@code{jsonpointer} allows you to access specific nodes
16738 by path in a JSON document (see RFC 6901).")
16739 (license license:bsd-3)))
16741 (define-public python2-jsonpointer
16742 (package-with-python2 python-jsonpointer))
16744 (define-public python-jsonpatch
16746 (name "python-jsonpatch")
16751 ;; pypi version lacks tests.js
16752 (uri (git-reference
16753 (url "https://github.com/stefankoegl/python-json-patch")
16754 (commit (string-append "v" version))))
16755 (file-name (git-file-name name version))
16758 "0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
16759 (build-system python-build-system)
16761 `(("python-jsonpointer" ,python-jsonpointer)))
16762 (home-page "https://github.com/stefankoegl/python-json-patch")
16763 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
16764 (description "@code{jsonpatch} is a library and program that allows
16765 applying JSON Patches according to RFC 6902.")
16766 (license license:bsd-3)))
16768 (define-public python2-jsonpatch
16769 (package-with-python2 python-jsonpatch))
16771 (define-public python-jsonpatch-0.4
16772 (package (inherit python-jsonpatch)
16773 (name "python-jsonpatch")
16778 (uri (git-reference
16779 (url "https://github.com/stefankoegl/python-json-patch")
16780 (commit (string-append "v" version))))
16781 (file-name (git-file-name name version))
16784 "1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
16786 (define-public python2-jsonpatch-0.4
16787 (package-with-python2 python-jsonpatch-0.4))
16789 (define-public python-rfc3986
16791 (name "python-rfc3986")
16795 (uri (pypi-uri "rfc3986" version))
16798 "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
16799 (build-system python-build-system)
16801 `(#:modules ((guix build utils)
16802 (guix build python-build-system)
16807 (modify-phases %standard-phases
16810 (let ((cwd (getcwd)))
16811 (setenv "PYTHONPATH"
16812 (string-append cwd "/build/"
16813 (find (cut string-prefix? "lib" <>)
16814 (scandir (string-append cwd "/build")))
16816 (getenv "PYTHONPATH")))
16817 (invoke "pytest" "-v")))))))
16819 `(("python-pytest" ,python-pytest)))
16820 (home-page "https://rfc3986.readthedocs.io/")
16821 (synopsis "Parse and validate URI references")
16823 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
16824 validation and authority parsing. This module also supports RFC@tie{}6874
16825 which adds support for zone identifiers to IPv6 addresses.")
16826 (license license:asl2.0)))
16828 (define-public python2-rfc3986
16829 (package-with-python2 python-rfc3986))
16831 (define-public python-rfc3987
16833 (name "python-rfc3987")
16838 (uri (pypi-uri "rfc3987" version))
16841 "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
16842 (build-system python-build-system)
16843 (home-page "https://pypi.org/project/rfc3987/")
16844 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
16845 (description "@code{rfc3987} provides routines for parsing and
16846 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
16847 (license license:gpl3+)))
16849 (define-public python2-rfc3987
16850 (package-with-python2 python-rfc3987))
16852 ;; The latest commit contains fixes for building with both python3 and python2.
16853 (define-public python-rfc6555
16854 (let ((commit "1a181b432312731f6742a5eb558dae4761d32361")
16857 (name "python-rfc6555")
16858 (version (git-version "0.0.0" revision commit))
16861 (uri (git-reference
16862 (url "https://github.com/sethmlarson/rfc6555")
16864 (file-name (git-file-name name version))
16867 "1bxl17j9vs69cshcqnlwamr03hnykxqnwz3mdgi6x3s2k4q18npp"))))
16868 (build-system python-build-system)
16871 (modify-phases %standard-phases
16873 (lambda* (#:key tests? #:allow-other-keys)
16875 ;; Other tests require network access.
16876 (invoke "pytest" "tests/test_ipv6.py")
16879 `(("python-pytest" ,python-pytest)))
16880 (home-page "https://pypi.org/project/rfc6555/")
16881 (synopsis "Python implementation of RFC 6555")
16883 "Python implementation of the Happy Eyeballs Algorithm described in RFC
16884 6555. Provided with a single file and dead-simple API to allow easy vendoring
16885 and integration into other projects.")
16886 (properties `((python2-variant . ,(delay python2-rfc6555))))
16887 (license license:asl2.0))))
16889 (define-public python2-rfc6555
16890 (let ((base (package-with-python2
16891 (strip-python2-variant python-rfc6555))))
16892 (package/inherit base
16894 `(("python2-selectors2" ,python2-selectors2))))))
16896 (define-public python-bagit
16898 (name "python-bagit")
16903 (uri (pypi-uri "bagit" version))
16906 "1m6y04qmig0b5hzb35lnaw3d2yfydb7alyr1579yblvgs3da6j7j"))))
16907 (build-system python-build-system)
16909 `(("python-setuptools-scm" ,python-setuptools-scm)
16910 ("python-coverage" ,python-coverage)
16911 ("python-mock" ,python-mock)))
16912 (home-page "https://libraryofcongress.github.io/bagit-python/")
16913 (synopsis "Create and validate BagIt packages")
16914 (description "Bagit is a Python library and command line utility for working
16915 with BagIt style packages. BagIt is a minimalist packaging format for digital
16917 (license license:cc0)))
16919 (define-public python-prov
16921 (name "python-prov")
16926 (uri (pypi-uri "prov" version))
16929 "1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
16930 (build-system python-build-system)
16932 `(("python-dateutil" ,python-dateutil)
16933 ("python-lxml" ,python-lxml)
16934 ("python-networkx" ,python-networkx)
16935 ("python-rdflib" ,python-rdflib)))
16937 `(("graphviz" ,graphviz)
16938 ("python-pydot" ,python-pydot)))
16939 (home-page "https://github.com/trungdong/prov")
16941 "W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
16943 "This package provides a library for W3C Provenance Data Model supporting
16944 PROV-O (RDF), PROV-XML, PROV-JSON import/export.")
16945 (license license:expat)))
16947 (define-public python-arcp
16949 (name "python-arcp")
16954 (uri (pypi-uri "arcp" version))
16957 "1p8mfyjssa6pbn5dp6pyzv9yy6kwm2rz5jn2kjbq5vy9f9wsq5sw"))))
16958 (build-system python-build-system)
16960 `(("python-pytest" ,python-pytest)))
16961 (home-page "http://arcp.readthedocs.io/")
16963 "Archive and Package URI parser and generator")
16965 "@acronym{arcp, Archive and Package} provides functions for creating
16966 @code{arcp_} URIs, which can be used for identifying or parsing hypermedia files
16967 packaged in an archive or package, like a ZIP file. arcp URIs can be used to
16968 consume or reference hypermedia resources bundled inside a file archive or an
16969 application package, as well as to resolve URIs for archive resources within a
16970 programmatic framework. This URI scheme provides mechanisms to generate a
16971 unique base URI to represent the root of the archive, so that relative URI
16972 references in a bundled resource can be resolved within the archive without
16973 having to extract the archive content on the local file system. An arcp URI can
16974 be used for purposes of isolation (e.g. when consuming multiple archives),
16975 security constraints (avoiding \"climb out\" from the archive), or for
16976 externally identiyfing sub-resources referenced by hypermedia formats.")
16977 (license license:asl2.0)))
16979 (define-public python-shellescape
16981 (name "python-shellescape")
16986 (uri (git-reference
16987 (url "https://github.com/chrissimpkins/shellescape")
16988 (commit (string-append "v" version))))
16989 (file-name (git-file-name name version))
16992 "0wzccxk139qx1lb2g70f5b2yh9zq15nr2mgvqdbfabg5zm0vf1qw"))))
16993 (build-system python-build-system)
16996 (modify-phases %standard-phases
16998 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
17000 (add-installed-pythonpath inputs outputs)
17001 (invoke "python" "tests/test_shellescape.py"))
17004 `(("python-pytest" ,python-pytest)))
17005 (home-page "https://github.com/chrissimpkins/shellescape")
17007 "Shell escape a string to safely use it as a token in a shell command")
17009 "The shellescape Python module defines the @code{shellescape.quote()}
17010 function that returns a shell-escaped version of a Python string. This is a
17011 backport of the @code{shlex.quote()} function from Python 3.8 that makes it
17012 accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
17013 (license license:expat)))
17015 (define-public python-validators
17017 (name "python-validators")
17021 (uri (pypi-uri "validators" version))
17024 "024m15j33szd0v8k5l4ccish6n0b4knq81gmb4fq25ynwyyyd4mi"))))
17025 (build-system python-build-system)
17027 '(#:phases (modify-phases %standard-phases
17030 (invoke "pytest" "-vv"))))))
17032 `(("python-decorator" ,python-decorator)
17033 ("python-six" ,python-six)))
17035 `(("python-flake8" ,python-flake8)
17036 ("python-isort" ,python-isort)
17037 ("python-pytest" ,python-pytest)))
17038 (home-page "https://github.com/kvesteri/validators")
17039 (synopsis "Data validation library")
17041 "This package contains validators for different things such as email
17042 addresses, IP addresses, URLs, hashes and more. It has been designed to
17043 be easy to use and not require defining a schema or form just to validate
17045 (license license:expat)))
17047 (define-public python2-validators
17048 (package-with-python2 python-validators))
17050 (define-public python-validate-email
17052 (name "python-validate-email")
17057 (uri (pypi-uri "validate_email" version))
17060 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
17061 (build-system python-build-system)
17062 (home-page "https://github.com/syrusakbary/validate_email")
17063 (synopsis "Verifies if an email address is valid and really exists")
17064 (description "@code{validate_email} can be used to verify if an email
17065 address is valid and really exists.")
17066 (license license:lgpl3+)))
17068 (define-public python2-validate-email
17069 (package-with-python2 python-validate-email))
17071 (define-public python-flex
17073 (name "python-flex")
17078 (uri (pypi-uri "flex" version))
17081 "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
17082 (build-system python-build-system)
17084 `(("python-click" ,python-click)
17085 ("python-iso8601" ,python-iso8601)
17086 ("python-jsonpointer" ,python-jsonpointer)
17087 ("python-pyyaml" ,python-pyyaml)
17088 ("python-requests" ,python-requests)
17089 ("python-rfc3987" ,python-rfc3987)
17090 ("python-six" ,python-six)
17091 ("python-validate-email" ,python-validate-email)))
17092 (home-page "https://github.com/pipermerriam/flex")
17093 (synopsis "Validates Swagger schemata")
17094 (description "@code{flex} can be used to validate Swagger schemata.")
17095 (license license:bsd-3)))
17097 (define-public python2-flex
17098 (package-with-python2 python-flex))
17100 (define-public python-marshmallow
17102 (name "python-marshmallow")
17107 (uri (pypi-uri "marshmallow" version))
17110 "0kizhh3mnhpa08wfnsv1gagy22bpxzxszgbiylkhpz1d8qvwrykk"))))
17111 (build-system python-build-system)
17113 `(("python-dateutil" ,python-dateutil)
17114 ("python-simplejson" ,python-simplejson)))
17116 `(("python-pytest" ,python-pytest)
17117 ("python-pytz" ,python-pytz)))
17118 (home-page "https://github.com/marshmallow-code/marshmallow")
17119 (synopsis "Convert complex datatypes to and from native
17120 Python datatypes.")
17121 (description "@code{marshmallow} provides a library for converting
17122 complex datatypes to and from native Python datatypes.")
17123 (license license:expat)))
17125 (define-public python-apispec
17127 (name "python-apispec")
17132 (uri (pypi-uri "apispec" version))
17135 "12n4w5zkn4drcn8izq68vmixmqvz6abviqkdn4ip0kaax3jjh3in"))))
17136 (build-system python-build-system)
17138 '(#:phases (modify-phases %standard-phases
17139 (add-after 'unpack 'disable-prance-tests
17141 ;; Disable validation tests since they require the
17142 ;; optional 'prance' library which is not yet in Guix.
17143 (substitute* "tests/test_ext_marshmallow_openapi.py"
17144 (("def test_openapi_tools_validate.*" all)
17145 (string-append "@pytest.mark.xfail\n" all)))))
17148 (setenv "PYTHONPATH"
17149 (string-append "./build/lib:"
17150 (getenv "PYTHONPATH")))
17151 (invoke "pytest" "-vv"))))))
17153 `(("python-pyyaml" ,python-pyyaml)))
17155 `(("python-pytest" ,python-pytest)
17156 ("python-marshmallow" ,python-marshmallow)))
17157 (home-page "https://github.com/marshmallow-code/apispec")
17158 (synopsis "Swagger/OpenAPI specification generator")
17159 (description "@code{python-apispec} is a pluggable API specification
17160 generator. It currently supports the OpenAPI specification, formerly known
17162 (license license:expat)))
17164 (define-public python-flasgger
17166 (name "python-flasgger")
17171 (uri (git-reference
17172 (url "https://github.com/rochacbruno/flasgger")
17174 (file-name (git-file-name name version))
17176 (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn"))))
17177 (build-system python-build-system)
17180 (modify-phases %standard-phases
17182 (lambda* (#:key inputs outputs #:allow-other-keys)
17183 (substitute* "Makefile"
17184 (("flake8 flasgger --ignore=F403")
17185 "flake8 flasgger --ignore=E731,F403"))
17186 (setenv "PYTHONPATH" (string-append (getcwd)
17188 (getenv "PYTHONPATH")))
17189 (invoke "py.test"))))))
17191 `(("python-flask" ,python-flask)
17192 ("python-pyyaml" ,python-pyyaml)
17193 ("python-jsonschema" ,python-jsonschema)
17194 ("python-mistune" ,python-mistune)
17195 ("python-six" ,python-six)))
17197 `(("python-decorator" ,python-decorator)
17198 ("python-flake8" ,python-flake8)
17199 ("python-flask-restful" ,python-flask-restful)
17200 ("python-flex" ,python-flex)
17201 ("python-pytest" ,python-pytest)
17202 ("python-pytest-cov" ,python-pytest-cov)
17203 ("python-marshmallow" ,python-marshmallow)
17204 ("python-apispec" ,python-apispec)))
17205 (home-page "https://github.com/rochacbruno/flasgger/")
17206 (synopsis "Extract Swagger specs from your Flask project")
17207 (description "@code{python-flasgger} allows extracting Swagger specs
17208 from your Flask project. It is a fork of Flask-Swagger.")
17209 (license license:expat)))
17211 (define-public python-swagger-spec-validator
17213 (name "python-swagger-spec-validator")
17218 (uri (pypi-uri "swagger-spec-validator" version))
17221 "11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp"))))
17222 (build-system python-build-system)
17224 `(("python-jsonschema" ,python-jsonschema)
17225 ("python-pyyaml" ,python-pyyaml)
17226 ("python-six" ,python-six)))
17228 "https://github.com/Yelp/swagger_spec_validator")
17229 (synopsis "Validation of Swagger specifications")
17230 (description "@code{swagger_spec_validator} provides a library for
17231 validating Swagger API specifications.")
17232 (license license:asl2.0)))
17234 (define-public python2-swagger-spec-validator
17235 (package-with-python2 python-swagger-spec-validator))
17237 (define-public python-apache-libcloud
17239 (name "python-apache-libcloud")
17244 (uri (pypi-uri "apache-libcloud" version))
17247 "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v"))))
17248 (build-system python-build-system)
17251 (modify-phases %standard-phases
17252 (add-after 'unpack 'patch-ssh
17253 (lambda* (#:key inputs #:allow-other-keys)
17254 (substitute* "libcloud/compute/ssh.py"
17255 (("'ssh'") (string-append "'" (assoc-ref inputs "openssh")
17258 (add-after 'unpack 'patch-tests
17260 (substitute* "libcloud/test/compute/test_ssh_client.py"
17261 (("class ShellOutSSHClientTests")
17262 "@unittest.skip(\"Guix container doesn't have ssh service\")
17263 class ShellOutSSHClientTests"))
17265 (add-before 'check 'copy-secret
17267 (copy-file "libcloud/test/secrets.py-dist"
17268 "libcloud/test/secrets.py")
17271 `(("openssh" ,openssh)))
17273 `(("python-paramiko" ,python-paramiko)
17274 ("python-requests" ,python-requests)))
17276 `(("python-lockfile" ,python-lockfile)
17277 ("python-mock" ,python-mock)
17278 ("python-pytest" ,python-pytest)
17279 ("python-pytest-runner" ,python-pytest-runner)
17280 ("python-requests-mock" ,python-requests-mock)))
17281 (home-page "https://libcloud.apache.org/")
17282 (synopsis "Unified Cloud API")
17283 (description "@code{libcloud} is a Python library for interacting with
17284 many of the popular cloud service providers using a unified API.")
17285 (license license:asl2.0)))
17287 (define-public python-smmap
17289 (name "python-smmap")
17294 (uri (pypi-uri "smmap" version))
17296 (base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
17297 (build-system python-build-system)
17299 `(("python-nosexcover" ,python-nosexcover)))
17300 (home-page "https://github.com/Byron/smmap")
17301 (synopsis "Python sliding window memory map manager")
17302 (description "@code{smmap} is a pure Python implementation of a sliding
17303 window memory map manager.")
17304 (license license:bsd-3)))
17306 (define-public python-smmap2
17307 (deprecated-package "python-smmap2" python-smmap))
17309 (define-public python2-smmap
17310 (package-with-python2 python-smmap))
17312 (define-public python2-smmap2
17313 (deprecated-package "python2-smmap2" python2-smmap))
17315 (define-public python-regex
17317 (name "python-regex")
17318 (version "2020.6.8")
17321 (uri (pypi-uri "regex" version))
17324 "1b3k0zi1pd99q5mk7ri7vcx2y1mq5inm9hk8dryqyhrpkmh4xdp9"))))
17325 (build-system python-build-system)
17328 (modify-phases %standard-phases
17330 (lambda* (#:key inputs outputs #:allow-other-keys)
17331 (add-installed-pythonpath inputs outputs)
17332 (invoke "python" "-c"
17333 "from regex.test_regex import test_main; test_main()"))))))
17334 (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
17335 (synopsis "Alternative regular expression module")
17336 (description "This regular expression implementation is backwards-
17337 compatible with the standard @code{re} module, but offers additional
17338 functionality like full case-folding for case-insensitive matches in Unicode.")
17339 (license license:psfl)))
17341 (define-public python2-regex
17342 (package-with-python2 python-regex))
17344 (define-public python-pyopengl
17346 (name "python-pyopengl")
17351 (uri (pypi-uri "PyOpenGL" version))
17354 "091lp9bpqi8yf1nmyg19xmvw611lrzq2q94cl1k5gnlh0c6vl1s1"))))
17355 (build-system python-build-system)
17358 ("freeglut" ,freeglut)
17361 `(#:tests? #f ; Tests fail: AttributeError: 'GLXPlatform' object has no
17362 ;attribute 'OSMesa'
17364 (modify-phases %standard-phases
17365 (add-before 'build 'fix-paths
17366 (lambda* (#:key inputs outputs #:allow-other-keys)
17367 (substitute* '("OpenGL/platform/ctypesloader.py")
17368 (("filenames_to_try = \\[\\]") "filenames_to_try = [name]"))
17369 (substitute* '("OpenGL/platform/glx.py" "tests/check_glut_load.py")
17371 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'"))
17373 (string-append "'" (assoc-ref inputs "glu") "/lib/libGLU.so'"))
17375 (string-append "'" (assoc-ref inputs "freeglut") "/lib/libglut.so',"))
17377 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv1_CM.so'"))
17379 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv2.so'")))
17380 ;; Not providing libgle. It seems to be very old.
17382 (home-page "http://pyopengl.sourceforge.net")
17383 (synopsis "Standard OpenGL bindings for Python")
17385 "PyOpenGL is the most common cross platform Python binding to OpenGL and
17386 related APIs. The binding is created using the standard @code{ctypes}
17388 (license license:bsd-3)))
17390 (define-public python-pyopengl-accelerate
17392 (inherit python-pyopengl)
17393 (name "python-pyopengl-accelerate")
17398 (uri (pypi-uri "PyOpenGL-accelerate" version))
17401 "01iggy5jwxv7lxnj51zbmlbhag9wcb7dvrbwgi97i90n0a5m3r8j"))))
17404 ("python-numpy" ,python-numpy))) ; for cython module
17405 ; numpy_formathandler, thus not propagated
17409 (modify-phases %standard-phases
17410 (delete 'fix-paths))))
17411 (synopsis "Acceleration code for PyOpenGL")
17413 "This is the Cython-coded accelerator module for PyOpenGL.")))
17415 (define-public python-rencode
17417 (name "python-rencode")
17422 (uri (pypi-uri "rencode" version))
17425 "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
17426 (build-system python-build-system)
17429 (modify-phases %standard-phases
17430 (add-before 'check 'delete-bogus-test
17431 ;; This test requires /home/aresch/Downloads, which is not provided by
17432 ;; the build environment.
17434 (delete-file "rencode/t.py")
17436 (native-inputs `(("pkg-config" ,pkg-config)
17437 ("python-cython" ,python-cython)))
17438 (home-page "https://github.com/aresch/rencode")
17439 (synopsis "Serialization of heterogeneous data structures")
17441 "The @code{rencode} module is a data structure serialization library,
17442 similar to @code{bencode} from the BitTorrent project. For complex,
17443 heterogeneous data structures with many small elements, r-encoding stake up
17444 significantly less space than b-encodings. This version of rencode is a
17445 complete rewrite in Cython to attempt to increase the performance over the
17446 pure Python module.")
17447 (license license:bsd-3)))
17449 (define-public python2-rencode
17450 (package-with-python2 python-rencode))
17452 (define-public python-xenon
17454 (name "python-xenon")
17459 (uri (pypi-uri "xenon" version))
17462 "0nv207ql2wmh9q62503np056c4vf1c1hlsi5cvv5p5kx574k6r2y"))))
17463 (build-system python-build-system)
17465 `(("python-pyyaml" ,python-pyyaml)
17466 ("python-radon" ,python-radon)
17467 ("python-requests" ,python-requests)
17468 ("python-flake8" ,python-flake8)
17469 ("python-tox" ,python-tox)))
17471 `(#:tests? #f ;test suite not shipped with the PyPI archive
17473 (modify-phases %standard-phases
17474 (add-before 'build 'patch-test-requirements
17476 ;; Remove httpretty dependency for tests.
17477 (substitute* "setup.py"
17478 (("httpretty") ""))
17480 (home-page "https://xenon.readthedocs.org/")
17481 (synopsis "Monitor code metrics for Python on your CI server")
17483 "Xenon is a monitoring tool based on Radon. It monitors code complexity.
17484 Ideally, @code{xenon} is run every time code is committed. Through command
17485 line options, various thresholds can be set for the complexity of code. It
17486 will fail (i.e. it will exit with a non-zero exit code) when any of these
17487 requirements is not met.")
17488 (license license:expat)))
17490 (define-public python-pysocks
17492 (name "python-pysocks")
17497 (uri (pypi-uri "PySocks" version))
17500 "184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
17501 (build-system python-build-system)
17502 (arguments `(#:tests? #f))
17503 (home-page "https://github.com/Anorov/PySocks")
17504 (synopsis "SOCKS client module")
17505 (description "@code{pysocks} is an updated and semi-actively maintained
17506 version of @code{SocksiPy} with bug fixes and extra features.")
17507 (license license:bsd-3)))
17509 (define-public python2-pysocks
17510 (package-with-python2 python-pysocks))
17512 (define-public python-pydiff
17514 (name "python-pydiff")
17519 (uri (pypi-uri "pydiff" version))
17522 "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
17523 (build-system python-build-system)
17524 (home-page "https://github.com/myint/pydiff")
17525 (synopsis "Library to diff two Python files at the bytecode level")
17527 "@code{pydiff} makes it easy to look for actual code changes while
17528 ignoring formatting changes.")
17529 (license license:expat)))
17531 (define-public python2-pydiff
17532 (package-with-python2 python-pydiff))
17534 (define-public python-pydub
17536 (name "python-pydub")
17541 (uri (pypi-uri "pydub" version))
17544 "0sfwfq7yjv4bl3yqbmizszscafvwf4zr40hzbsy7rclvzyznh333"))))
17545 (build-system python-build-system)
17548 (modify-phases %standard-phases
17549 (add-after 'unpack 'fix-ffmpeg-path
17550 (lambda* (#:key inputs #:allow-other-keys)
17551 (let ((ffmpeg (assoc-ref inputs "ffmpeg")))
17552 (substitute* '("pydub/utils.py")
17553 (("return \"ffmpeg\"")
17554 (string-append "return \"" ffmpeg "/bin/ffmpeg\""))
17555 (("return \"ffplay\"")
17556 (string-append "return \"" ffmpeg "/bin/ffplay\""))
17557 (("return \"ffprobe\"")
17558 (string-append "return \"" ffmpeg "/bin/ffprobe\""))
17559 (("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't find ff"))
17561 (home-page "https://pydub.com")
17563 `(("ffmpeg" ,ffmpeg)))
17565 `(("python-scipy" ,python-scipy)))
17566 (synopsis "Manipulate audio with a high level interface in Python")
17568 "@code{pydub} makes it easy to manipulate audio in Python. It relies on
17569 @code{ffmpeg} to open various audio formats.")
17570 (license license:expat))) ; MIT license
17572 (define-public python-tqdm
17574 (name "python-tqdm")
17579 (uri (pypi-uri "tqdm" version))
17582 "093v4c2x5hpigv47zvyxl8wh10y2yd2gvz3l9vchn0zsp8hv2pzk"))))
17583 (build-system python-build-system)
17585 '(#:phases (modify-phases %standard-phases
17587 (lambda* (#:key inputs outputs #:allow-other-keys)
17588 (add-installed-pythonpath inputs outputs)
17589 ;; This invokation is taken from tox.ini.
17590 (invoke "nosetests" "--ignore-files=\"test_perf.py\""
17591 "-d" "-v" "tqdm/"))))))
17593 `(("python-nose" ,python-nose)))
17594 (home-page "https://github.com/tqdm/tqdm")
17595 (synopsis "Fast, extensible progress meter")
17597 "Make loops show a progress bar on the console by just wrapping any
17598 iterable with @code{|tqdm(iterable)|}. Offers many options to define
17599 design and layout.")
17600 (license (list license:mpl2.0 license:expat))))
17602 (define-public python2-tqdm
17603 (package-with-python2 python-tqdm))
17605 (define-public python-pkginfo
17607 (name "python-pkginfo")
17612 (uri (pypi-uri "pkginfo" version))
17615 "1d1xn1xmfvz0jr3pj8irdwnwby3r13g0r2gwklr1q5y68p5p16h2"))))
17616 (build-system python-build-system)
17619 (modify-phases %standard-phases
17620 (add-before 'check 'patch-tests
17622 (substitute* "pkginfo/tests/test_installed.py"
17623 (("test_ctor_w_package_no_PKG_INFO")
17624 "_test_ctor_w_package_no_PKG_INFO"))
17627 "https://code.launchpad.net/~tseaver/pkginfo/trunk")
17629 "Query metadatdata from sdists, bdists, and installed packages")
17631 "API to query the distutils metadata written in @file{PKG-INFO} inside a
17632 source distriubtion (an sdist) or a binary distribution (e.g., created by
17633 running bdist_egg). It can also query the EGG-INFO directory of an installed
17634 distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
17635 created by running @code{python setup.py develop}).")
17636 (license license:expat)))
17638 (define-public python2-pkginfo
17639 (package-with-python2 python-pkginfo))
17641 (define-public python-twine
17643 (name "python-twine")
17648 (uri (pypi-uri "twine" version))
17650 (base32 "11rpd653zcgzkq3sgwkzs3mpxl3r5rij59745ni84ikv8smjmlm3"))))
17651 (build-system python-build-system)
17653 `(("python-tqdm" ,python-tqdm)
17654 ("python-packaging" ,python-packaging)
17655 ("python-pkginfo" ,python-pkginfo)
17656 ("python-readme-renderer" ,python-readme-renderer)
17657 ("python-requests" ,python-requests)
17658 ("python-requests-toolbelt" ,python-requests-toolbelt)))
17659 (home-page "https://github.com/pypa/twine")
17660 (synopsis "Collection of utilities for interacting with PyPI")
17662 "@code{twine} currently supports registering projects and uploading
17663 distributions. It authenticates the user over HTTPS, allows them to pre-sign
17664 their files and supports any packaging format (including wheels).")
17665 (license license:asl2.0)))
17667 (define-public python2-twine
17668 (package-with-python2 python-twine))
17670 (define-public python-linecache2
17672 (name "python-linecache2")
17677 (uri (pypi-uri "linecache2" version))
17680 "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
17681 (build-system python-build-system)
17683 `(;; The tests depend on unittest2, and our version is a bit too old.
17686 `(("python-pbr" ,python-pbr-minimal)))
17688 "https://github.com/testing-cabal/linecache2")
17689 (synopsis "Backports of the linecache module")
17691 "The linecache module allows one to get any line from any file, while
17692 attempting to optimize internally, using a cache, the common case where many
17693 lines are read from a single file.")
17694 (license license:psfl)))
17696 (define-public python2-linecache2
17697 (package-with-python2 python-linecache2))
17699 (define-public python-traceback2
17701 (name "python-traceback2")
17706 (uri (pypi-uri "traceback2" version))
17709 "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
17710 (build-system python-build-system)
17712 `(;; python-traceback2 and python-unittest2 depend on one another.
17715 `(("python-pbr" ,python-pbr-minimal)))
17717 `(("python-linecache2" ,python-linecache2)))
17719 "https://github.com/testing-cabal/traceback2")
17720 (synopsis "Backports of the traceback module")
17722 "This module provides a standard interface to extract, format and print
17723 stack traces of Python programs. It exactly mimics the behavior of the Python
17724 interpreter when it prints a stack trace.")
17725 (license license:psfl)))
17727 (define-public python2-traceback2
17728 (package-with-python2 python-traceback2))
17730 (define-public python-ratelimiter
17732 (name "python-ratelimiter")
17737 (uri (pypi-uri "ratelimiter" version))
17740 "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
17741 (build-system python-build-system)
17743 '(#:tests? #f)) ; There are no tests in the pypi archive.
17744 (home-page "https://github.com/RazerM/ratelimiter")
17745 (synopsis "Simple rate limiting object")
17747 "The @code{ratelimiter} module ensures that an operation will not be
17748 executed more than a given number of times during a given period.")
17749 (license license:asl2.0)))
17751 (define-public python2-ratelimiter
17752 (package-with-python2 python-ratelimiter))
17754 (define-public python-dukpy
17756 (name "python-dukpy")
17761 (uri (git-reference
17762 (url "https://github.com/kovidgoyal/dukpy")
17763 (commit (string-append "v" version))))
17764 (file-name (git-file-name name version))
17766 (base32 "13h21nqzasv4zj32xs61brmc106pr2cx243672crcmwxxnjgaxls"))))
17767 (build-system python-build-system)
17768 (home-page "https://github.com/kovidgoyal/dukpy")
17769 (synopsis "Run JavaScript in python")
17771 "dukpy is a JavaScript runtime environment for Python using the duktape
17772 embeddable JavaScript engine.")
17773 ;; Dukpy is licensed under MIT like the embedded duktape library,
17774 ;; with 'errors.c' as GPL3.
17775 (license (list license:expat license:gpl3))))
17777 (define-public python2-dukpy
17778 (package-with-python2 python-dukpy))
17780 (define-public python-jsonrpclib-pelix
17782 (name "python-jsonrpclib-pelix")
17787 (uri (pypi-uri "jsonrpclib-pelix" version))
17790 "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
17791 (build-system python-build-system)
17793 `(#:tests? #f)) ; no tests in PyPI tarball
17794 (home-page "https://github.com/tcalmant/jsonrpclib/")
17795 (synopsis "JSON-RPC 2.0 client library for Python")
17797 "This library implements the JSON-RPC v2.0
17798 specification (backwards-compatible) as a client library for Python. This
17799 version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
17801 (license license:asl2.0)))
17803 (define-public python2-jsonrpclib-pelix
17804 (package-with-python2 python-jsonrpclib-pelix))
17806 (define-public python-setuptools-scm-git-archive
17808 (name "python-setuptools-scm-git-archive")
17813 (uri (pypi-uri "setuptools_scm_git_archive" version))
17816 "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
17817 (build-system python-build-system)
17819 `(("python-pytest" ,python-pytest)))
17821 `(("python-setuptools-scm" ,python-setuptools-scm)))
17822 (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
17823 (synopsis "Setuptools_scm plugin for git archives")
17825 "The setuptools_scm_git_archive package is a plugin to
17826 setuptools_scm, which supports obtaining versions from git archives that
17827 belong to tagged versions.")
17828 (license license:expat)))
17830 (define-public python2-setuptools-scm-git-archive
17831 (package-with-python2 python-setuptools-scm-git-archive))
17833 (define-public python-setuptools-git
17835 (name "python-setuptools-git")
17840 (uri (pypi-uri "setuptools-git" version))
17843 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
17844 (build-system python-build-system)
17847 (modify-phases %standard-phases
17848 ;; This is needed for tests.
17849 (add-after 'unpack 'configure-git
17851 (setenv "HOME" "/tmp")
17852 (invoke "git" "config" "--global" "user.email" "guix")
17853 (invoke "git" "config" "--global" "user.name" "guix")
17856 `(("git" ,git-minimal)))
17857 (home-page "https://github.com/msabramo/setuptools-git")
17858 (synopsis "Setuptools revision control system plugin for Git")
17860 "This package provides a plugin for Setuptools for revision control with
17862 (license license:bsd-3)))
17864 (define-public python-pyclipper
17866 (name "python-pyclipper")
17867 (version "1.1.0.post3")
17871 (uri (pypi-uri "pyclipper" version ".zip"))
17873 (base32 "164yksvqwqvwzh8f8lq92asg87hd8rvcy2xb5vm4y4ccvd5xgb7i"))
17874 (modules '((guix build utils)))
17877 ;; This file is generated by Cython.
17878 (delete-file "pyclipper/pyclipper.cpp") #t))))
17879 (build-system python-build-system)
17882 (modify-phases %standard-phases
17883 (add-before 'build 'cythonize-sources
17885 (with-directory-excursion "pyclipper"
17886 (invoke "cython" "--cplus" "pyclipper.pyx")))))))
17888 `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
17890 `(("python-cython" ,python-cython)
17891 ("python-pytest" ,python-pytest)
17892 ("python-pytest-runner" ,python-pytest-runner)
17893 ("python-unittest2" ,python-unittest2)
17895 (home-page "https://github.com/greginvm/pyclipper")
17896 (synopsis "Wrapper for Angus Johnson's Clipper library")
17898 "Pyclipper is a Cython wrapper for the C++ translation of the
17899 Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
17900 (license license:expat)))
17902 (define-public python2-pyclipper
17903 (package-with-python2 python-pyclipper))
17905 (define-public python2-booleanoperations
17907 (name "python2-booleanoperations")
17912 (uri (pypi-uri "booleanOperations" version ".zip"))
17915 "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn"))))
17916 (build-system python-build-system)
17918 `(#:python ,python-2))
17921 ("python2-pytest" ,python2-pytest)
17922 ("python2-pytest-runner" ,python2-pytest-runner)))
17924 `(("python-fonttools" ,python2-fonttools)
17925 ("python-pyclipper" ,python2-pyclipper)
17926 ("python-ufolib" ,python2-ufolib)))
17927 (home-page "https://github.com/typemytype/booleanOperations")
17928 (synopsis "Boolean operations on paths")
17930 "BooleanOperations provides a Python library that enables
17931 boolean operations on paths.")
17932 (license license:expat)))
17934 (define-public python-tempdir
17936 (name "python-tempdir")
17941 (uri (pypi-uri "tempdir" version))
17944 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
17945 (build-system python-build-system)
17946 (home-page "https://pypi.org/project/tempdir/")
17948 ;; the package has no tests
17950 (synopsis "Python library for managing temporary directories")
17952 "This library manages temporary directories that are automatically
17953 deleted with all their contents when they are no longer needed. It is
17954 particularly convenient for use in tests.")
17955 (license license:expat)))
17957 (define-public python2-tempdir
17958 (package-with-python2 python-tempdir))
17960 (define-public python-activepapers
17962 (name "python-activepapers")
17967 (uri (pypi-uri "ActivePapers.Py" version))
17970 "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
17971 (build-system python-build-system)
17973 `(#:modules ((ice-9 ftw)
17976 (guix build python-build-system))
17979 (modify-phases %standard-phases
17980 (add-after 'unpack 'delete-python2-code
17982 (for-each delete-file
17983 '("lib/activepapers/builtins2.py"
17984 "lib/activepapers/standardlib2.py"
17985 "lib/activepapers/utility2.py"))))
17988 ;; Deactivate the test cases that download files
17989 (setenv "NO_NETWORK_ACCESS" "1")
17990 ;; For some strange reason, some tests fail if nosetests runs all
17991 ;; test modules in a single execution. They pass if each test
17992 ;; module is run individually.
17993 (for-each (lambda (filename)
17994 (invoke "nosetests"
17995 (string-append "tests/" filename)))
17998 (string-suffix? ".py" filename)))))))))
18000 `(("python-tempdir" ,python-tempdir)
18001 ("python-nose" ,python-nose)))
18003 `(("python-h5py" ,python-h5py)))
18004 (home-page "https://www.activepapers.org/")
18005 (synopsis "Executable papers for scientific computing")
18007 "ActivePapers is a tool for working with executable papers, which
18008 combine data, code, and documentation in single-file packages,
18009 suitable for publication as supplementary material or on repositories
18010 such as figshare or Zenodo.")
18011 (properties `((python2-variant . ,(delay python2-activepapers))))
18012 (license license:bsd-3)))
18014 (define-public python2-activepapers
18015 (let ((base (package-with-python2
18016 (strip-python2-variant python-activepapers))))
18017 (package/inherit base
18019 (substitute-keyword-arguments (package-arguments base)
18021 `(modify-phases ,phases
18022 (delete 'delete-python2-code)
18023 (add-after 'unpack 'delete-python3-code
18025 (for-each delete-file
18026 '("lib/activepapers/builtins3.py"
18027 "lib/activepapers/standardlib3.py"
18028 "lib/activepapers/utility3.py")))))))))))
18030 (define-public python-semver
18032 (name "python-semver")
18037 (uri (pypi-uri "semver" version))
18040 "183kg1rhzz3hqizvphkd8hlbf1zxfx8737zhfkmqzxi71jmdw7pd"))))
18041 (build-system python-build-system)
18043 `(#:phases (modify-phases %standard-phases
18046 (delete-file "setup.cfg")
18047 (invoke "py.test"))))))
18049 `(("python-pytest" ,python-pytest)))
18050 (home-page "https://github.com/k-bx/python-semver")
18051 (synopsis "Python helper for Semantic Versioning")
18052 (description "This package provides a Python library for
18053 @url{Semantic Versioning, http://semver.org/}.")
18054 (license license:bsd-3)))
18056 (define-public python2-semver
18057 (package-with-python2 python-semver))
18059 (define-public python-pyro4
18061 (name "python-pyro4")
18066 (uri (pypi-uri "Pyro4" version))
18068 (base32 "0gsjg869y4gpy265s1gj1f2qy6jn5iz8r2bwwnq78r1r5yi15zib"))))
18069 (build-system python-build-system)
18071 '(#:tests? #f)) ;FIXME: Some tests require network access.
18073 `(("python-cloudpickle" ,python-cloudpickle)
18074 ("python-dill" ,python-dill)
18075 ("python-msgpack" ,python-msgpack)))
18077 `(("python-serpent" ,python-serpent)))
18078 (home-page "https://pyro4.readthedocs.io")
18079 (synopsis "Distributed object middleware for Python")
18081 "Pyro enables you to build applications in which objects can talk to each
18082 other over the network. You can just use normal Python method calls to call
18083 objects on other machines, also known as remote procedure calls (RPC).")
18084 (license license:expat)))
18086 (define-public python2-pyro
18088 (name "python2-pyro")
18093 (uri (pypi-uri "Pyro" version))
18094 (file-name (string-append "Pyro-" version ".tar.gz"))
18097 "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v"))))
18098 (build-system python-build-system)
18100 ;; Pyro is not compatible with Python 3
18101 `(#:python ,python-2
18102 ;; Pyro has no test cases for automatic execution
18104 (home-page "https://pythonhosted.org/Pyro/")
18105 (synopsis "Distributed object manager for Python")
18106 (description "Pyro is a Distributed Object Technology system
18107 written in Python that is designed to be easy to use. It resembles
18108 Java's Remote Method Invocation (RMI). It has less similarity to CORBA,
18109 which is a system and language independent Distributed Object Technology
18110 and has much more to offer than Pyro or RMI. Pyro 3.x is no
18111 longer maintained. New projects should use Pyro4 instead, which
18112 is the new Pyro version that is actively developed.")
18113 (license license:expat)))
18115 (define-public python2-scientific
18117 (name "python2-scientific")
18122 (uri (git-reference
18123 (url "https://github.com/khinsen/ScientificPython")
18124 (commit (string-append "rel" version))))
18125 (file-name (git-file-name name version))
18128 "16l48aj9fps9r7jyk8gpxppwrv0fqvlc13sayxskz28r5s6sjwbl"))))
18129 (build-system python-build-system)
18131 `(("netcdf" ,netcdf)))
18133 `(("python-numpy" ,python2-numpy-1.8)
18134 ("python-pyro" ,python2-pyro)))
18136 ;; ScientificPython is not compatible with Python 3
18137 `(#:python ,python-2
18138 #:tests? #f ; No test suite
18140 (modify-phases %standard-phases
18142 (lambda* (#:key inputs #:allow-other-keys)
18143 (invoke "python" "setup.py" "build"
18144 (string-append "--netcdf_prefix="
18145 (assoc-ref inputs "netcdf"))))))))
18146 (home-page "http://dirac.cnrs-orleans.fr/ScientificPython")
18147 (synopsis "Python modules for scientific computing")
18148 (description "ScientificPython is a collection of Python modules that are
18149 useful for scientific computing. Most modules are rather general (Geometry,
18150 physical units, automatic derivatives, ...) whereas others are more
18151 domain-specific (e.g. netCDF and PDB support). The library is currently
18152 not actively maintained and works only with Python 2 and NumPy < 1.9.")
18153 (license license:cecill-c)))
18155 (define-public python2-mmtk
18157 (name "python2-mmtk")
18162 (uri (git-reference
18163 (url "https://github.com/khinsen/MMTK")
18164 (commit (string-append "rel" version))))
18165 (file-name (git-file-name name version))
18168 "1fqwh3ba9jd42nigvn5shndgwb1zy7kh9520ncvqci7n8ffjr6p1"))))
18169 (build-system python-build-system)
18171 `(("netcdf" ,netcdf)))
18173 `(("python-scientific" ,python2-scientific)
18174 ("python-tkinter" ,python-2 "tk")))
18176 `(#:python ,python-2
18179 (modify-phases %standard-phases
18180 (add-before 'build 'includes-from-scientific
18181 (lambda* (#:key inputs #:allow-other-keys)
18182 (mkdir-p "Include/Scientific")
18185 (assoc-ref inputs "python-scientific")
18186 "/include/python2.7/Scientific")
18187 "Include/Scientific"))))))
18188 (home-page "http://dirac.cnrs-orleans.fr/MMTK")
18189 (synopsis "Python library for molecular simulation")
18190 (description "MMTK is a library for molecular simulations with an emphasis
18191 on biomolecules. It provides widely used methods such as Molecular Dynamics
18192 and normal mode analysis, but also basic routines for implementing new methods
18193 for simulation and analysis. The library is currently not actively maintained
18194 and works only with Python 2 and NumPy < 1.9.")
18195 (license license:cecill-c)))
18197 (define-public python-phonenumbers
18199 (name "python-phonenumbers")
18204 (uri (pypi-uri "phonenumbers" version))
18207 "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
18208 (build-system python-build-system)
18210 "https://github.com/daviddrysdale/python-phonenumbers")
18212 "Python library for dealing with international phone numbers")
18214 "This package provides a Python port of Google's libphonenumber library.")
18215 (license license:asl2.0)))
18217 (define-public python2-phonenumbers
18218 (package-with-python2 python-phonenumbers))
18220 (define-public python-send2trash
18222 (name "python-send2trash")
18225 (origin (method git-fetch)
18226 ;; Source tarball on PyPI doesn't include tests.
18227 (uri (git-reference
18228 (url "https://github.com/hsoft/send2trash")
18230 (file-name (git-file-name name version))
18233 "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v"))))
18234 (build-system python-build-system)
18237 (modify-phases %standard-phases
18238 (add-before 'check 'pre-check
18240 (mkdir-p "/tmp/foo")
18241 (setenv "HOME" "/tmp/foo")
18243 (home-page "https://github.com/hsoft/send2trash")
18244 (synopsis "Send files to the user's @file{~/Trash} directory")
18245 (description "This package provides a Python library to send files to the
18246 user's @file{~/Trash} directory.")
18247 (properties `((python2-variant . ,(delay python2-send2trash))))
18248 (license license:bsd-3)))
18250 (define-public python2-send2trash
18251 (let ((base (package-with-python2
18252 (strip-python2-variant python-send2trash))))
18253 (package/inherit base
18255 (substitute-keyword-arguments (package-arguments python-send2trash)
18257 `(modify-phases ,phases
18258 (add-before 'check 'setenv
18260 (setenv "PYTHONPATH"
18261 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
18264 (define-public python-pyfavicon
18266 (name "python-pyfavicon")
18271 (uri (pypi-uri "pyfavicon" version))
18273 (base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
18274 (build-system python-build-system)
18276 ;; There are no tests in the PyPI tarball and the tests from the
18277 ;; repository require online data.
18280 `(("python-aiohttp" ,python-aiohttp)
18281 ("python-beautifulsoup4" ,python-beautifulsoup4)
18282 ("python-pillow" ,python-pillow)))
18283 (home-page "https://github.com/bilelmoussaoui/pyfavicon")
18284 (synopsis "Async favicon fetcher")
18286 "@code{pyfavicon} is an async favicon fetcher.")
18287 (license license:expat)))
18289 (define-public python-yamllint
18291 (name "python-yamllint")
18296 (uri (pypi-uri "yamllint" version))
18298 (base32 "11qhs1jk9pwvyk5k3q5blh9sq42dh1ywdf1f3i2zixf7hncwir5h"))))
18299 (build-system python-build-system)
18301 `(("python-pathspec" ,python-pathspec)
18302 ("python-pyyaml" ,python-pyyaml)
18303 ("python-setuptools" ,python-setuptools)))
18304 (home-page "https://github.com/adrienverge/yamllint")
18305 (synopsis "Linter for YAML files")
18307 "Yamllint is a linter for YAML files. yamllint does not only check for
18308 syntax validity, but for weirdnesses like key repetition and cosmetic problems
18309 such as lines length, trailing spaces, indentation, etc.")
18310 (license license:gpl3+)))
18312 (define-public python-yapf
18314 (name "python-yapf")
18319 (uri (pypi-uri "yapf" version))
18322 "1pj3xzblmbssshi889b6n9hwqbjpabw6j0fimlng2sshd3226bki"))))
18323 (build-system python-build-system)
18324 (home-page "https://github.com/google/yapf")
18325 (synopsis "Formatter for Python code")
18326 (description "YAPF is a formatter for Python code. It's based off of
18327 @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
18328 takes the code and reformats it to the best formatting that conforms to the
18329 style guide, even if the original code didn't violate the style guide.")
18330 (license license:asl2.0)))
18332 (define-public python2-yapf
18333 (package-with-python2 python-yapf))
18335 (define-public python-yq
18342 (uri (pypi-uri "yq" version))
18345 "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl"))))
18346 (build-system python-build-system)
18349 (modify-phases %standard-phases
18350 (add-after 'unpack 'patch
18351 (lambda* (#:key inputs #:allow-other-keys)
18352 (substitute* "yq/__init__.py"
18353 (("Popen\\(\\[\"jq")
18356 (assoc-ref inputs "jq")
18360 `(("python-argcomplete" ,python-argcomplete)
18361 ("python-pyyaml" ,python-pyyaml)
18362 ("python-xmltodict" ,python-xmltodict)
18365 `(("python-coverage" ,python-coverage)
18366 ("python-flake8" ,python-flake8)
18367 ("python-wheel" ,python-wheel)))
18368 (home-page "https://github.com/kislyuk/yq")
18369 (synopsis "Command-line YAML/XML processor")
18371 "This package provides @command{yq} and @command{xq} for processing YAML
18372 and XML respectively. The processing is done through @command{jq}, @command{jq}
18373 filters can be used to process the data as it passes through.")
18374 (license license:asl2.0)))
18376 (define-public python-gyp
18377 (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
18380 (name "python-gyp")
18381 ;; Google does not release versions,
18382 ;; based on second most recent commit date.
18383 (version (git-version "0.0.0" revision commit))
18386 ;; Google does not release tarballs,
18387 ;; git checkout is needed.
18389 (uri (git-reference
18390 (url "https://chromium.googlesource.com/external/gyp")
18392 (file-name (git-file-name name version))
18395 "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
18396 (build-system python-build-system)
18397 (home-page "https://gyp.gsrc.io/")
18398 (synopsis "GYP is a Meta-Build system")
18400 "GYP builds build systems for large, cross platform applications.
18401 It can be used to generate XCode projects, Visual Studio projects, Ninja build
18402 files, and Makefiles.")
18403 (license license:bsd-3))))
18405 (define-public python2-gyp
18406 (package-with-python2 python-gyp))
18408 (define-public python-whatever
18410 (name "python-whatever")
18415 (uri (git-reference
18416 (url "https://github.com/Suor/whatever")
18418 (file-name (git-file-name name version))
18420 (base32 "1q7ajgqjfivxqsqgnhp4lc4p6jxyh4zprcsdbpd6dw54inaf0av5"))))
18421 (build-system python-build-system)
18424 (modify-phases %standard-phases
18427 (invoke "py.test"))))))
18429 `(("python-pytest" ,python-pytest)))
18430 (home-page "https://github.com/Suor/whatever")
18431 (synopsis "Make anonymous functions by partial application of operators")
18432 (description "@code{whatever} provides an easy way to make anonymous
18433 functions by partial application of operators.")
18434 (license license:bsd-3)))
18436 (define-public python2-whatever
18437 (package-with-python2 python-whatever))
18439 (define-public python-funcy
18441 (name "python-funcy")
18446 (uri (git-reference
18447 (url "https://github.com/Suor/funcy")
18450 (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
18451 (file-name (git-file-name name version))))
18452 (build-system python-build-system)
18455 (modify-phases %standard-phases
18458 (invoke "py.test"))))))
18460 `(("python-pytest" ,python-pytest)
18461 ("python-whatever" ,python-whatever)))
18462 (home-page "https://github.com/Suor/funcy")
18463 (synopsis "Functional tools")
18464 (description "@code{funcy} is a library that provides functional tools.
18467 @item merge - Merges collections of the same type
18468 @item walk - Type-preserving map
18469 @item select - Selects a part of a collection
18470 @item take - Takes the first n items of a collection
18471 @item first - Takes the first item of a collection
18472 @item remove - Predicated-removes items of a collection
18473 @item concat - Concatenates two collections
18474 @item flatten - Flattens a collection with subcollections
18475 @item distinct - Returns only distinct items
18476 @item split - Predicated-splits a collection
18477 @item split_at - Splits a collection at a given item
18478 @item group_by - Groups items by group
18479 @item pairwise - Pairs off adjacent items
18480 @item partial - Partially-applies a function
18481 @item curry - Curries a function
18482 @item compose - Composes functions
18483 @item complement - Complements a predicate
18484 @item all_fn - \"all\" with predicate
18486 (license license:bsd-3)))
18488 (define-public python2-funcy
18489 (package-with-python2 python-funcy))
18491 (define-public python-isoweek
18493 (name "python-isoweek")
18498 (uri (pypi-uri "isoweek" version))
18501 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
18502 (build-system python-build-system)
18503 (home-page "https://github.com/gisle/isoweek")
18504 (synopsis "Objects representing a week")
18505 (description "The @code{isoweek} module provide the class Week that
18506 implements the week definition of ISO 8601. This standard also defines
18507 a notation for identifying weeks; yyyyWww (where the W is a literal).
18508 Week instances stringify to this form.")
18509 (license license:bsd-3)))
18511 (define-public python2-isoweek
18512 (package-with-python2 python-isoweek))
18514 (define-public python-pyzbar
18516 (name "python-pyzbar")
18520 ;; There's no source tarball on PyPI.
18522 (uri (git-reference
18523 (url "https://github.com/NaturalHistoryMuseum/pyzbar")
18524 (commit (string-append "v" version))))
18525 (file-name (git-file-name name version))
18527 (base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
18528 (build-system python-build-system)
18531 (modify-phases %standard-phases
18532 (add-after 'unpack 'remove-failing-test
18534 ;; This tests if find_library was called once, but we remove
18535 ;; the call in the stage below to make the library find libzbar.
18536 (delete-file "pyzbar/tests/test_zbar_library.py")
18538 (add-before 'build 'set-library-file-name
18539 (lambda* (#:key inputs #:allow-other-keys)
18540 (let ((libzbar (assoc-ref inputs "zbar")))
18541 (substitute* "pyzbar/zbar_library.py"
18542 (("find_library\\('zbar'\\)")
18543 (string-append "'" libzbar "/lib/libzbar.so.0'")))
18546 `(("pkg-config" ,pkg-config)
18547 ("python-numpy" ,python-numpy)
18548 ("python-pillow" ,python-pillow)))
18551 (home-page "https://github.com/NaturalHistoryMuseum/pyzbar/")
18552 (synopsis "Read one-dimensional barcodes and QR codes")
18554 "Read one-dimensional barcodes and QR codes using the zbar library.
18560 @item Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
18561 @item Decodes locations of barcodes
18562 @item No dependencies, other than the zbar library itself
18564 (license license:expat)))
18566 (define-public python-tokenize-rt
18568 (name "python-tokenize-rt")
18573 (uri (pypi-uri "tokenize-rt" version))
18576 "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
18577 (build-system python-build-system)
18578 (home-page "https://github.com/asottile/tokenize-rt")
18579 (synopsis "Wrapper around the stdlib tokenize which roundtrips.")
18581 "This Python library is a wrapper around @code{tokenize} from the Python
18582 standard library. It provides two additional tokens @code{ESCAPED_NL} and
18583 @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
18584 and @code{tokens_to_src} to roundtrip.")
18585 (license license:expat)))
18587 (define-public python-future-fstrings
18589 (name "python-future-fstrings")
18594 (uri (pypi-uri "future_fstrings" version))
18597 "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
18598 (build-system python-build-system)
18600 `(("python-tokenize-rt" ,python-tokenize-rt)))
18601 (home-page "https://github.com/asottile/future-fstrings")
18602 (synopsis "Backport of fstrings to Python < 3.6")
18604 "This package provides a UTF-8 compatible encoding
18605 @code{future_fstrings}, which performs source manipulation. It decodes the
18606 source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
18607 @code{f} strings.")
18608 (license license:expat)))
18610 (define-public python-typed-ast
18612 (name "python-typed-ast")
18617 (uri (git-reference
18618 (url "https://github.com/python/typed_ast")
18621 (base32 "0l0hz809f7i356kmqkvfsaswiidb98j9hs9rrjnfawzqcbffzgyb"))
18622 (file-name (git-file-name name version))))
18623 (build-system python-build-system)
18625 `(#:modules ((guix build utils)
18626 (guix build python-build-system)
18631 (modify-phases %standard-phases
18634 (let ((cwd (getcwd)))
18635 (setenv "PYTHONPATH"
18636 (string-append cwd "/build/"
18637 (find (cut string-prefix? "lib" <>)
18638 (scandir (string-append cwd "/build")))
18640 (getenv "PYTHONPATH"))))
18643 (native-inputs `(("python-pytest" ,python-pytest)))
18644 (home-page "https://github.com/python/typed_ast")
18645 (synopsis "Fork of Python @code{ast} modules with type comment support")
18646 (description "This package provides a parser similar to the standard
18647 @code{ast} library. Unlike @code{ast}, the parsers in @code{typed_ast}
18648 include PEP 484 type comments and are independent of the version of Python
18649 under which they are run. The @code{typed_ast} parsers produce the standard
18650 Python AST (plus type comments), and are both fast and correct, as they are
18651 based on the CPython 2.7 and 3.7 parsers.")
18652 ;; See the file "LICENSE" for the details.
18653 (license (list license:psfl
18655 license:expat)))) ;ast27/Parser/spark.py
18657 (define-public python-typer
18659 (name "python-typer")
18663 ;; Building `python-typer` from the git repository requires the `flit-core`
18664 ;; Python package that is not installed by `python-flit`.
18666 (uri (pypi-uri "typer" version))
18668 (base32 "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal"))))
18669 (build-system python-build-system)
18672 (modify-phases %standard-phases
18673 (add-before 'check 'disable-failing-tests
18675 (substitute* "tests/test_completion/test_completion.py"
18676 (("def test_show_completion")
18677 "def _test_show_completion")
18678 (("def test_install_completion")
18679 "def _test_install_completion"))
18680 (substitute* "tests/test_completion/test_completion_install.py"
18681 (("def test_completion_install_bash")
18682 "def _test_completion_install_bash")
18683 (("def test_completion_install_zsh")
18684 "def _test_completion_install_zsh")
18685 (("def test_completion_install_fish")
18686 "def _test_completion_install_fish")
18687 (("def test_completion_install_powershell")
18688 "def _test_completion_install_powershell"))
18692 (setenv "PYTHONPATH"
18693 (string-append (getcwd) ":"
18694 (getenv "PYTHONPATH")))
18695 (invoke "python" "-m" "pytest" "tests/")
18698 `(("python-click" ,python-click)))
18700 `(("python-coverage" ,python-coverage)
18701 ("python-pytest" ,python-pytest)
18702 ("python-shellingham" ,python-shellingham)))
18703 (home-page "https://github.com/tiangolo/typer")
18705 "Typer builds CLI based on Python type hints")
18707 "Typer is a library for building CLI applications. It's based on
18708 Python 3.6+ type hints.")
18710 (license license:expat)))
18712 (define-public python-typing
18714 (name "python-typing")
18715 (version "3.7.4.3")
18719 (uri (pypi-uri "typing" version))
18721 (base32 "1j8wnz8c9s049w9xbf7ssr1dmgg4rz7vdfq7m880srzxhafgp1qi"))))
18722 (build-system python-build-system)
18723 (home-page "https://docs.python.org/3/library/typing.html")
18724 (synopsis "Type hints for Python")
18725 (description "This is a backport of the standard library @code{typing}
18726 module to Python versions older than 3.5. Typing defines a standard notation
18727 for Python function and variable type annotations. The notation can be used
18728 for documenting code in a concise, standard format, and it has been designed
18729 to also be used by static and runtime type checkers, static analyzers, IDEs
18731 (license license:psfl)))
18733 (define-public python2-typing
18734 (package-with-python2 python-typing))
18736 (define-public python-typing-extensions
18738 (name "python-typing-extensions")
18739 (version "3.7.4.3")
18743 (uri (pypi-uri "typing_extensions" version))
18746 "0356ljrrplm917dqgpn8wjkw6j3mpp916gwxas7jhc3xc4xhgm4r"))))
18747 (build-system python-build-system)
18749 "https://github.com/python/typing/blob/master/typing_extensions/README.rst")
18750 (synopsis "Experimental type hints for Python")
18752 "The typing_extensions module contains additional @code{typing} hints not
18753 yet present in the of the @code{typing} standard library.
18754 Included are implementations of:
18757 @item ContextManager
18768 @item TYPE_CHECKING
18769 @item AsyncGenerator
18771 (license license:psfl)))
18773 (define-public bpython
18780 (uri (pypi-uri "bpython" version))
18782 (base32 "00vmkkc79mlnkyvwww1cr7bpwmf4p61704dhayz6kd0kc203hxvf"))))
18783 (build-system python-build-system)
18786 (modify-phases %standard-phases
18787 (add-after 'unpack 'remove-failing-test
18789 ;; Remove failing test. FIXME: make it pass
18790 (delete-file "bpython/test/test_args.py")
18792 (add-after 'wrap 'add-aliases
18793 ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
18794 (lambda* (#:key outputs #:allow-other-keys)
18795 (let ((out (assoc-ref outputs "out")))
18798 (symlink old (string-append out "/bin/" new)))
18799 '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
18800 '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
18803 `(("python-pygments" ,python-pygments)
18804 ("python-requests" ,python-requests)
18805 ("python-curtsies" ,python-curtsies)
18806 ("python-greenlet" ,python-greenlet)
18807 ("python-six" ,python-six)
18808 ("python-wcwidth" ,python-wcwidth)
18809 ;; optional dependencies
18810 ("python-urwid" ,python-urwid) ; for bpython-urwid only
18811 ("python-watchdog" ,python-watchdog)
18812 ("python-jedi" ,python-jedi)))
18814 `(("python-sphinx" ,python-sphinx)
18815 ("python-mock" ,python-mock)))
18816 (home-page "https://bpython-interpreter.org/")
18817 (synopsis "Fancy interface to the Python interpreter")
18818 (description "Bpython is a fancy interface to the Python
18819 interpreter. bpython's main features are
18822 @item in-line syntax highlighting,
18823 @item readline-like autocomplete with suggestions displayed as you type,
18824 @item expected parameter list for any Python function,
18825 @item \"rewind\" function to pop the last line of code from memory and
18827 @item send the code you've entered off to a pastebin,
18828 @item save the code you've entered to a file, and
18829 @item auto-indentation.
18831 (license license:expat)))
18833 (define-public python-pyinotify
18835 (name "python-pyinotify")
18839 (uri (pypi-uri "pyinotify" version))
18842 "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
18843 (build-system python-build-system)
18844 (arguments `(#:tests? #f)) ;no tests
18845 (home-page "https://github.com/seb-m/pyinotify")
18846 (synopsis "Python library for monitoring inotify events")
18848 "@code{pyinotify} provides a Python interface for monitoring
18849 file system events on Linux.")
18850 (license license:expat)))
18852 (define-public python2-pyinotify
18853 (package-with-python2 python-pyinotify))
18855 ;; Ada parser uses this version.
18856 (define-public python2-quex-0.67.3
18858 (name "python2-quex")
18863 (uri (string-append "mirror://sourceforge/quex/HISTORY/"
18864 (version-major+minor version)
18865 "/quex-" version ".zip"))
18868 "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw"))))
18869 (build-system python-build-system)
18871 `(("unzip" ,unzip)))
18873 `(#:python ,python-2
18876 (modify-phases %standard-phases
18877 (delete 'configure)
18880 (lambda* (#:key outputs #:allow-other-keys)
18881 (let* ((out (assoc-ref outputs "out"))
18882 (share/quex (string-append out "/share/quex"))
18883 (bin (string-append out "/bin")))
18884 (copy-recursively "." share/quex)
18886 (symlink (string-append share/quex "/quex-exe.py")
18887 (string-append bin "/quex"))
18889 (native-search-paths
18890 (list (search-path-specification
18891 (variable "QUEX_PATH")
18892 (files '("share/quex")))))
18893 (home-page "http://quex.sourceforge.net/")
18894 (synopsis "Lexical analyzer generator in Python")
18895 (description "@code{quex} is a lexical analyzer generator in Python.")
18896 (license license:lgpl2.1+))) ; Non-military
18898 (define-public python2-quex
18899 (package (inherit python2-quex-0.67.3)
18900 (name "python2-quex")
18905 (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz"))
18908 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j"))
18909 (file-name (string-append name "-" version ".tar.gz"))))))
18911 (define-public python-more-itertools
18913 (name "python-more-itertools")
18918 (uri (pypi-uri "more-itertools" version))
18921 "01x5nwm1zxmnd06cllbdd095xxc2nd25ing1a726m2kd30rbkpdi"))))
18922 (build-system python-build-system)
18923 (home-page "https://github.com/erikrose/more-itertools")
18924 (synopsis "More routines for operating on iterables, beyond itertools")
18925 (description "Python's built-in @code{itertools} module implements a
18926 number of iterator building blocks inspired by constructs from APL, Haskell,
18927 and SML. @code{more-itertools} includes additional building blocks for
18928 working with iterables.")
18929 (properties `((python2-variant . ,(delay python2-more-itertools))))
18930 (license license:expat)))
18932 ;; The 5.x series are the last versions supporting Python 2.7.
18933 (define-public python2-more-itertools
18935 (inherit python-more-itertools)
18936 (name "python2-more-itertools")
18940 (uri (pypi-uri "more-itertools" version))
18943 "1r12cm6mcdwdzz7d47a6g4l437xsvapdlgyhqay3i2nrlv03da9q"))))
18945 `(#:python ,python-2))
18947 `(("python2-six" ,python2-six-bootstrap)))))
18949 (define-public python-latexcodec
18951 (name "python-latexcodec")
18956 (uri (pypi-uri "latexcodec" version))
18958 (base32 "0wnp3yqcgx0rpy8dz51vh75lbp2qif67da19zi7m3ca98n887hgb"))))
18959 (build-system python-build-system)
18961 `(("python-six" ,python-six)))
18962 (home-page "https://readthedocs.org/projects/latexcodec/")
18963 (synopsis "Work with LaTeX code in Python")
18964 (description "Lexer and codec to work with LaTeX code in Python.")
18965 (license license:expat)))
18967 (define-public python-pybtex
18969 (name "python-pybtex")
18974 (uri (pypi-uri "pybtex" version))
18976 (base32 "070wfcmxrd7xg1si421mi9150gmx2qwx431nwf69sq3hhmgnx080"))))
18977 (build-system python-build-system)
18979 `(("python-nose" ,python-nose)))
18981 `(("python-latexcodec" ,python-latexcodec)
18982 ("python-pyyaml" ,python-pyyaml)
18983 ("python-six" ,python-six)))
18985 `(#:test-target "nosetests"))
18986 (home-page "https://pybtex.org/")
18987 (synopsis "BibTeX-compatible bibliography processor")
18988 (description "Pybtex is a BibTeX-compatible bibliography processor written
18989 in Python. You can simply type pybtex instead of bibtex.")
18990 (license license:expat)))
18992 (define-public python-onetimepass
18994 (name "python-onetimepass")
18999 (uri (pypi-uri "onetimepass" version))
19001 (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
19002 (build-system python-build-system)
19003 (propagated-inputs `(("python-six" ,python-six)))
19004 (home-page "https://github.com/tadeck/onetimepass/")
19005 (synopsis "One-time password library")
19006 (description "Python one-time password library for HMAC-based (HOTP) and
19007 time-based (TOTP) passwords.")
19008 (license license:expat)))
19010 (define-public python-parso
19012 (name "python-parso")
19017 (uri (pypi-uri "parso" version))
19019 (base32 "1f9fc99mjx0h2ad4mgsid728nnmw58hvnq3411g8ljlr9dr49fna"))))
19021 `(("python-pytest" ,python-pytest)))
19022 (build-system python-build-system)
19024 `(#:phases (modify-phases %standard-phases
19026 (lambda _ (invoke "pytest" "-vv"))))))
19027 (home-page "https://github.com/davidhalter/parso")
19028 (synopsis "Python Parser")
19029 (description "Parso is a Python parser that supports error recovery and
19030 round-trip parsing for different Python versions (in multiple Python versions).
19031 Parso is also able to list multiple syntax errors in your Python file.")
19032 (license license:expat)))
19034 (define-public python2-parso
19035 (package-with-python2 python-parso))
19037 (define-public python-async-generator
19039 (name "python-async-generator")
19044 (uri (pypi-uri "async_generator" version))
19047 "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
19048 (build-system python-build-system)
19050 `(("python-pytest" ,python-pytest)))
19051 (home-page "https://github.com/python-trio/async_generator")
19052 (synopsis "Async generators and context managers for Python 3.5+")
19053 (description "@code{async_generator} back-ports Python 3.6's native async
19054 generators and Python 3.7's context managers into Python 3.5.")
19056 (license (list license:expat license:asl2.0))))
19058 (define-public python-async-timeout
19060 (name "python-async-timeout")
19065 (uri (pypi-uri "async-timeout" version))
19068 "0pscbyr840m7fyfc3r8zv9kgkwdcn9f78p7zsrczciwd09m82g0c"))))
19069 (build-system python-build-system)
19070 (home-page "https://github.com/aio-libs/async_timeout/")
19071 (synopsis "Timeout context manager for asyncio programs")
19072 (description "@code{async-timeout} provides a timeout timeout context
19073 manager compatible with @code{asyncio}.")
19074 (license license:asl2.0)))
19076 (define-public python-glob2
19078 (name "python-glob2")
19083 (uri (git-reference
19084 (url "https://github.com/miracle2k/python-glob2")
19085 (commit (string-append "v" version))))
19086 (file-name (git-file-name name version))
19088 (base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
19089 (build-system python-build-system)
19090 (home-page "https://github.com/miracle2k/python-glob2/")
19091 (synopsis "Extended Version of the python buildin glob module")
19092 (description "This is an extended version of the Python
19093 @url{http://docs.python.org/library/glob.html, built-in glob module} which
19097 @item The ability to capture the text matched by glob patterns, and return
19098 those matches alongside the file names.
19099 @item A recursive @code{**} globbing syntax, akin for example to the
19100 @code{globstar} option of Bash.
19101 @item The ability to replace the file system functions used, in order to glob
19102 on virtual file systems.
19103 @item Compatible with Python 2 and Python 3 (tested with 3.3).
19106 Glob2 currently based on the glob code from Python 3.3.1.")
19107 (license license:bsd-2)))
19109 (define-public python2-glob2
19110 (package-with-python2 python-glob2))
19112 (define-public python-gipc
19114 (name "python-gipc")
19119 (uri (pypi-uri "gipc" version ".zip"))
19122 "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
19123 (build-system python-build-system)
19125 `(("unzip" ,unzip)))
19127 `(("python-gevent" ,python-gevent)))
19128 (home-page "https://gehrcke.de/gipc/")
19129 (synopsis "Child process management in the context of gevent")
19130 (description "Usage of Python's multiprocessing package in a
19131 gevent-powered application may raise problems. With @code{gipc},
19132 process-based child processes can safely be created anywhere within a
19133 gevent-powered application.")
19134 (license license:expat)))
19136 (define-public python-beautifultable
19138 (name "python-beautifultable")
19143 (uri (pypi-uri "beautifultable" version))
19146 "0wwlbifcbpzy3wfv6yzsxncarsngzizmmxbn6cy5gazlcq7h4k5x"))))
19147 (build-system python-build-system)
19149 `(("python-wcwidth" ,python-wcwidth)))
19152 (modify-phases %standard-phases
19153 (add-after 'unpack 'patch-setup.py
19155 (substitute* "setup.py"
19157 "setup(\n test_suite=\"test\",")))))))
19158 (home-page "https://github.com/pri22296/beautifultable")
19159 (synopsis "Print ASCII tables for terminals")
19160 (description "@code{python-beautifultable} provides a class for easily
19161 printing tabular data in a visually appealing ASCII format to a terminal.
19163 Features include, but are not limited to:
19165 @item Full customization of the look and feel of the table
19166 @item Row and column accessors.
19167 @item Full support for colors using ANSI sequences or any library.
19168 @item Plenty of predefined styles and option to create custom ones.
19169 @item Support for Unicode characters.
19170 @item Supports streaming table when data is slow to retrieve.
19172 (license license:expat)))
19174 (define-public python-globber
19176 (name "python-globber")
19181 (uri (git-reference
19182 (url "https://github.com/asharov/globber")
19184 (file-name (git-file-name name version))
19187 "055xf7ja7zjhxis0ab5fnfsx16fsvr5fvc6mixqybanwxh8sgfjk"))))
19188 (build-system python-build-system)
19189 (home-page "https://github.com/asharov/globber")
19190 (synopsis "Library for string matching with glob patterns")
19192 "Globber is a Python library for matching file names against glob patterns.
19193 In contrast to other glob-matching libraries, it matches arbitrary strings and
19194 doesn't require the matched names to be existing files. In addition, it
19195 supports the globstar @code{**} operator to match an arbitrary number of
19197 (license license:asl2.0)))
19199 (define-public python-git-hammer
19201 (name "python-git-hammer")
19206 (uri (git-reference
19207 (url "https://github.com/asharov/git-hammer")
19209 (file-name (git-file-name name version))
19212 "0f9xlk86ijzpdj25hr1q4wcy8k72v3w470ngwm9mpdkfj8ng84wr"))))
19213 (build-system python-build-system)
19216 (modify-phases %standard-phases
19217 (add-after 'unpack 'patch-setup.py
19219 (substitute* "setup.py"
19221 "setup(\n test_suite=\"test\",")))))))
19223 `(("python-beautifultable" ,python-beautifultable)
19224 ("python-dateutil" ,python-dateutil)
19225 ("python-gitpython" ,python-gitpython)
19226 ("python-globber" ,python-globber)
19227 ("python-matplotlib" ,python-matplotlib)
19228 ("python-sqlalchemy" ,python-sqlalchemy)
19229 ("python-sqlalchemy-utils"
19230 ,python-sqlalchemy-utils)))
19231 (home-page "https://github.com/asharov/git-hammer")
19232 (synopsis "Provide statistics for git repositories")
19234 "Git Hammer is a statistics tool for projects in git repositories.
19235 Its major feature is tracking the number of lines authored by each person for every
19236 commit, but it also includes some other useful statistics.")
19237 (license license:asl2.0)))
19239 (define-public python-fusepy
19241 (name "python-fusepy")
19246 (uri (pypi-uri "fusepy" version))
19249 "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
19250 (build-system python-build-system)
19253 (modify-phases %standard-phases
19254 (add-before 'build 'set-library-file-name
19255 (lambda* (#:key inputs #:allow-other-keys)
19256 (let ((fuse (assoc-ref inputs "fuse")))
19257 (substitute* "fuse.py"
19258 (("find_library\\('fuse'\\)")
19259 (string-append "'" fuse "/lib/libfuse.so'")))
19263 (home-page "https://github.com/fusepy/fusepy")
19264 (synopsis "Simple ctypes bindings for FUSE")
19265 (description "Python module that provides a simple interface to FUSE and
19266 MacFUSE. The binding is created using the standard @code{ctypes} library.")
19267 (license license:isc)))
19269 (define-public python2-fusepy
19270 (package-with-python2 python-fusepy))
19272 (define-public python-fusepyng
19274 (name "python-fusepyng")
19279 (uri (pypi-uri "fusepyng" version))
19282 "17w9iw6m6zjbmnhs4ikd27pq4mb1nan6k4ahlwyz40463vw6wkwb"))))
19283 (build-system python-build-system)
19286 (modify-phases %standard-phases
19287 (add-after 'unpack 'set-libfuse-path
19288 (lambda* (#:key inputs #:allow-other-keys)
19289 (let ((fuse (assoc-ref inputs "fuse")))
19290 (substitute* "fusepyng.py"
19291 (("os.environ.get\\('FUSE_LIBRARY_PATH'\\)")
19292 (string-append "\"" fuse "/lib/libfuse.so\""))))
19297 `(("python-paramiko" ,python-paramiko)))
19298 (home-page "https://github.com/rianhunter/fusepyng")
19299 (synopsis "Simple ctypes bindings for FUSE")
19300 (description "@code{fusepyng} is a Python module that provides a simple
19301 interface to FUSE on various operating systems. It's just one file and is
19302 implemented using @code{ctypes}.")
19303 (license license:isc)))
19305 (define-public python-userspacefs
19307 (name "python-userspacefs")
19312 (uri (pypi-uri "userspacefs" version))
19315 "1v6saf62ml3j63adalvlkj4iavxjbsbapl20b21mn73p7kvn4ayf"))))
19316 (build-system python-build-system)
19318 `(("python-fusepyng" ,python-fusepyng)))
19319 (home-page "https://github.com/rianhunter/userspacefs")
19320 (synopsis "User-space file systems for Python")
19322 "@code{userspacefs} is a library that allows you to easily write
19323 user-space file systems in Python.")
19324 (license license:gpl3+)))
19326 (define-public python-stone
19328 (name "python-stone")
19333 (uri (pypi-uri "stone" version))
19336 "0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"))))
19337 (build-system python-build-system)
19340 (modify-phases %standard-phases
19341 (add-after 'unpack 'change-version-requirements
19343 ;; Match the requirement in test/requirements.txt
19344 (substitute* "setup.py"
19345 (("pytest < 5") "pytest < 7"))
19346 ;; We don't care about a coverage report.
19347 (substitute* "test/requirements.txt"
19348 (("coverage.*") "coverage\n"))
19351 (lambda* (#:key tests? #:allow-other-keys)
19353 ;; These tests don't import currectly.
19354 (delete-file "test/test_js_client.py")
19355 (delete-file "test/test_tsd_types.py")
19356 (delete-file "test/test_python_gen.py")
19357 (setenv "PYTHONPATH"
19358 (string-append (getcwd) ":"
19359 (getenv "PYTHONPATH")))
19363 `(("python-ply" ,python-ply)
19364 ("python-six" ,python-six)))
19366 `(("python-coverage" ,python-coverage)
19367 ("python-mock" ,python-mock)
19368 ("python-pytest" ,python-pytest)
19369 ("python-pytest-runner" ,python-pytest-runner)))
19370 (home-page "https://github.com/dropbox/stone")
19371 (synopsis "Official Api Spec Language for Dropbox")
19373 "Stone is an interface description language (IDL) for APIs.")
19374 (license license:expat)))
19376 (define-public pybind11
19382 (uri (git-reference
19383 (url "https://github.com/pybind/pybind11")
19384 (commit (string-append "v" version))))
19387 "1wh5b1xnywzxwxkyac2wvyqwzmy1qxs341jjk820r7b825wn6yad"))
19388 (file-name (git-file-name name version))))
19389 (build-system cmake-build-system)
19391 `(("python" ,python-wrapper)
19393 ;; The following dependencies are used for tests.
19394 ("python-pytest" ,python-pytest)
19395 ("catch" ,catch-framework2-1)
19398 `(#:configure-flags
19399 (list (string-append "-DCATCH_INCLUDE_DIR="
19400 (assoc-ref %build-inputs "catch")
19403 #:phases (modify-phases %standard-phases
19404 (add-after 'install 'install-python
19405 (lambda* (#:key outputs #:allow-other-keys)
19406 (let ((out (assoc-ref outputs "out")))
19407 (with-directory-excursion "../source"
19408 (setenv "PYBIND11_USE_CMAKE" "yes")
19409 (invoke "python" "setup.py" "install"
19410 "--single-version-externally-managed"
19412 (string-append "--prefix=" out)))))))
19414 #:test-target "check"))
19415 (home-page "https://github.com/pybind/pybind11/")
19416 (synopsis "Seamless operability between C++11 and Python")
19418 "@code{pybind11} is a lightweight header-only library that exposes C++
19419 types in Python and vice versa, mainly to create Python bindings of existing
19420 C++ code. Its goals and syntax are similar to the @code{Boost.Python}
19421 library: to minimize boilerplate code in traditional extension modules by
19422 inferring type information using compile-time introspection.")
19423 (license license:bsd-3)))
19425 (define-public python-pooch
19427 (name "python-pooch")
19432 (uri (pypi-uri "pooch" version))
19434 (base32 "1618adsg9r8fsv422sv35z1i723q3a1iir5v7dv2sklh4pl4im1h"))))
19435 (build-system python-build-system)
19437 `(#:tests? #f)) ;requires online data
19439 `(("python-appdirs" ,python-appdirs)
19440 ("python-packaging" ,python-packaging)
19441 ("python-requests" ,python-requests)))
19442 (home-page "https://github.com/fatiando/pooch")
19443 (synopsis "Manage your Python library's sample data files")
19445 "Pooch manages your Python library's sample data files: it automatically
19446 downloads and stores them in a local directory, with support for versioning
19447 and corruption checks.")
19448 (license license:bsd-3)))
19450 (define-public python-fasteners
19452 (name "python-fasteners")
19457 (uri (pypi-uri "fasteners" version))
19460 "1vzmz1xh38b84dv0f4hlp7arwmx8wjlih6lf964bpy8dnyk6s5rs"))))
19461 (build-system python-build-system)
19463 `(("python-monotonic" ,python-monotonic)
19464 ("python-six" ,python-six)))
19466 `(("python-testtools" ,python-testtools)))
19467 (home-page "https://github.com/harlowja/fasteners")
19468 (synopsis "Python package that provides useful locks")
19470 "This package provides a Python program that provides following locks:
19473 @item Locking decorator
19474 @item Reader-writer locks
19475 @item Inter-process locks
19476 @item Generic helpers
19478 (license license:asl2.0)))
19480 (define-public python-requests-file
19482 (name "python-requests-file")
19487 (uri (pypi-uri "requests-file" version))
19490 "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
19491 (build-system python-build-system)
19493 `(("python-requests" ,python-requests)
19494 ("python-six" ,python-six)))
19496 "https://github.com/dashea/requests-file")
19497 (synopsis "File transport adapter for Requests")
19499 "Requests-File is a transport adapter for use with the Requests Python
19500 library to allow local file system access via @code{file://} URLs.")
19501 (license license:asl2.0)))
19503 (define-public python2-requests-file
19504 (package-with-python2 python-requests-file))
19506 (define-public python-identify
19508 (name "python-identify")
19512 ;; There are no tests in the PyPI tarball.
19514 (uri (git-reference
19515 (url "https://github.com/chriskuehl/identify")
19516 (commit (string-append "v" version))))
19517 (file-name (git-file-name name version))
19519 (base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz"))))
19520 (build-system python-build-system)
19523 (modify-phases %standard-phases
19526 (invoke "pytest" "-vv"))))))
19528 `(("python-coverage" ,python-coverage)
19529 ("python-pytest" ,python-pytest)))
19531 `(("python-editdistance" ,python-editdistance)))
19532 (home-page "https://github.com/chriskuehl/identify")
19533 (synopsis "File identification library for Python")
19535 "@code{identify} is a file identification library for Python. Given
19536 a file (or some information about a file), return a set of standardized tags
19537 identifying what the file is.")
19538 (license license:expat)))
19540 (define-public python-tldextract
19542 (name "python-tldextract")
19547 (uri (pypi-uri "tldextract" version))
19550 "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"))))
19551 (build-system python-build-system)
19553 `(("python-pytest" ,python-pytest)
19554 ("python-responses" ,python-responses)))
19556 `(("python-idna" ,python-idna)
19557 ("python-requests" ,python-requests)
19558 ("python-requests-file" ,python-requests-file)))
19560 "https://github.com/john-kurkowski/tldextract")
19562 "Separate the TLD from the registered domain and subdomains of a URL")
19564 "TLDExtract accurately separates the TLD from the registered domain and
19565 subdomains of a URL, using the Public Suffix List. By default, this includes
19566 the public ICANN TLDs and their exceptions. It can optionally support the
19567 Public Suffix List's private domains as well.")
19568 (license license:bsd-3)))
19570 (define-public python2-tldextract
19571 (package-with-python2 python-tldextract))
19573 (define-public python-nodeenv
19575 (name "python-nodeenv")
19579 ;; There's no tarball in PyPI.
19581 (uri (git-reference
19582 (url "https://github.com/ekalinin/nodeenv")
19584 (file-name (git-file-name name version))
19586 (base32 "0y443icx0w7jlzmxmmcm4q8dqfiwgafbb9cp8jpm68mbqxbz40a7"))))
19587 (build-system python-build-system)
19590 (modify-phases %standard-phases
19593 ;; This test fails. It tries to open a network socket.
19594 (invoke "pytest" "-vv" "-k" "not test_smoke"))))))
19596 `(("python-coverage" ,python-coverage)
19597 ("python-mock" ,python-mock)
19598 ("python-pytest" ,python-pytest)))
19599 (home-page "https://ekalinin.github.io/nodeenv/")
19600 (synopsis "Create isolated node.js environments")
19602 "Nodeenv (node.js virtual environment) is a tool to create isolated
19603 node.js environments. It creates an environment that has its own installation
19604 directories, that doesn't share libraries with other node.js virtual
19606 (license license:bsd-3)))
19608 (define-public python-pynamecheap
19610 (name "python-pynamecheap")
19615 (uri (pypi-uri "PyNamecheap" version))
19618 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
19619 (build-system python-build-system)
19621 `(("python-requests" ,python-requests)))
19623 "https://github.com/Bemmu/PyNamecheap")
19625 "Namecheap API client in Python")
19627 "PyNamecheap is a Namecheap API client in Python.")
19628 (license license:expat)))
19630 (define-public python2-pynamecheap
19631 (package-with-python2 python-pynamecheap))
19633 (define-public python-dns-lexicon
19635 (name "python-dns-lexicon")
19640 (uri (pypi-uri "dns-lexicon" version))
19643 "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
19644 (build-system python-build-system)
19646 `(#:tests? #f)) ;requires internet access
19648 `(("python-future" ,python-future)
19649 ("python-pynamecheap" ,python-pynamecheap)
19650 ("python-requests" ,python-requests)
19651 ("python-tldextract" ,python-tldextract)
19652 ("python-urllib3" ,python-urllib3)))
19653 (home-page "https://github.com/AnalogJ/lexicon")
19655 "Manipulate DNS records on various DNS providers")
19657 "Lexicon provides a way to manipulate DNS records on multiple DNS
19658 providers in a standardized way. It has a CLI but it can also be used as a
19659 Python library. It was designed to be used in automation, specifically with
19661 (license license:expat)))
19663 (define-public python2-dns-lexicon
19664 (package-with-python2 python-dns-lexicon))
19666 (define-public python-cfgv
19668 (name "python-cfgv")
19672 ;; There are no tests in the PyPI tarball.
19674 (uri (git-reference
19675 (url "https://github.com/asottile/cfgv")
19676 (commit (string-append "v" version))))
19677 (file-name (git-file-name name version))
19679 (base32 "1vvkkqw92sak4b28bpscpppq483amy52ch2yqy1i2m23q7xjkabx"))))
19680 (build-system python-build-system)
19683 (modify-phases %standard-phases
19686 (invoke "pytest" "-vv"))))))
19688 `(("python-covdefaults" ,python-covdefaults)
19689 ("python-coverage" ,python-coverage)
19690 ("python-pytest" ,python-pytest)))
19691 (home-page "https://github.com/asottile/cfgv")
19692 (synopsis "Configuration validation library")
19694 "This library helps to validate configuration files and produce human
19695 readable error messages.")
19696 (license license:expat)))
19698 (define-public python-commandlines
19700 (name "python-commandlines")
19705 (uri (pypi-uri "commandlines" version))
19708 "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
19709 (build-system python-build-system)
19710 (home-page "https://github.com/chrissimpkins/commandlines")
19711 (synopsis "Command line argument to object parsing library")
19713 "@code{Commandlines} is a Python library for command line application
19714 development that supports command line argument parsing, command string
19715 validation testing and application logic.")
19716 (license license:expat)))
19718 ;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
19719 ;; python-numba. They have a very unflexible relationship.
19720 (define-public python-numba
19722 (name "python-numba")
19727 (uri (pypi-uri "numba" version))
19730 "0s0777m8kq4l96i88zj78np7283v1n4878qfc1gvzb8l45bmkg8n"))))
19731 (build-system python-build-system)
19734 (modify-phases %standard-phases
19735 (add-after 'unpack 'disable-proprietary-features
19737 (setenv "NUMBA_DISABLE_HSA" "1")
19738 (setenv "NUMBA_DISABLE_CUDA" "1")
19741 (lambda* (#:key inputs outputs #:allow-other-keys)
19742 (add-installed-pythonpath inputs outputs)
19743 ;; Something is wrong with the PYTHONPATH when running the
19744 ;; tests from the build directory, as it complains about not being
19745 ;; able to import certain modules.
19746 (with-directory-excursion "/tmp"
19747 (setenv "HOME" (getcwd))
19748 (invoke "python3" "-m" "numba.runtests" "-v" "-m")))))))
19750 `(("python-llvmlite" ,python-llvmlite)
19751 ("python-numpy" ,python-numpy)
19752 ("python-singledispatch" ,python-singledispatch)))
19753 (native-inputs ;for tests
19754 `(("python-jinja2" ,python-jinja2)
19755 ("python-pygments" ,python-pygments)))
19756 (home-page "https://numba.pydata.org")
19757 (synopsis "Compile Python code using LLVM")
19758 (description "Numba gives you the power to speed up your applications with
19759 high performance functions written directly in Python. With a few
19760 annotations, array-oriented and math-heavy Python code can be just-in-time
19761 compiled to native machine instructions, similar in performance to C, C++ and
19762 Fortran, without having to switch languages or Python interpreters.
19764 Numba works by generating optimized machine code using the LLVM compiler
19765 infrastructure at import time, runtime, or statically (using the included pycc
19767 (license license:bsd-3)))
19769 (define-public python-numcodecs
19771 (name "python-numcodecs")
19776 (uri (pypi-uri "numcodecs" version))
19779 "0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))))
19780 (build-system python-build-system)
19782 `(("python-numpy" ,python-numpy)
19783 ("python-msgpack" ,python-msgpack)))
19785 `(("python-pytest" ,python-pytest)
19786 ("python-setuptools-scm" ,python-setuptools-scm)))
19787 (home-page "https://github.com/zarr-developers/numcodecs")
19788 (synopsis "Buffer compression and transformation codecs")
19790 "This Python package provides buffer compression and transformation
19791 codecs for use in data storage and communication applications.")
19792 (license license:expat)))
19794 (define-public python-asciitree
19796 (name "python-asciitree")
19801 (uri (pypi-uri "asciitree" version))
19804 "0vhgri2m2xlnibhz4xwn4hpbc7xacisxjqrk6k5kyppq96vbk92a"))))
19805 (build-system python-build-system)
19806 (home-page "https://github.com/mbr/asciitree")
19807 (synopsis "Draws ASCII trees")
19808 (description "This package draws tree structures using characters.")
19809 (license license:expat)))
19811 (define-public python-zarr
19813 (name "python-zarr")
19818 (uri (pypi-uri "zarr" version))
19821 "026n3sjzjv2gmwx6y72b8ij0hk42bc8zdbvfj5gdqzd4i6wj3ajk"))))
19822 (build-system python-build-system)
19825 (modify-phases %standard-phases
19826 (add-after 'unpack 'disable-service-tests
19828 (setenv "ZARR_TEST_ABS" "0")
19829 (setenv "ZARR_TEST_MONGO" "0")
19830 (setenv "ZARR_TEST_REDIS" "0")
19834 (invoke "pytest" "-vv" "-k" "not lmdb")
19837 `(("python-asciitree" ,python-asciitree)
19838 ("python-fasteners" ,python-fasteners)
19839 ("python-numcodecs" ,python-numcodecs)
19840 ("python-numpy" ,python-numpy)))
19842 `(("python-pytest" ,python-pytest)
19843 ("python-setuptools-scm" ,python-setuptools-scm)))
19844 (home-page "https://github.com/zarr-developers/zarr-python")
19845 (synopsis "Chunked, compressed, N-dimensional arrays for Python")
19847 "This package provides an implementation of chunked, compressed,
19848 N-dimensional arrays for Python.")
19849 (license license:expat)))
19851 (define-public python-anndata
19853 (name "python-anndata")
19858 (uri (pypi-uri "anndata" version))
19861 "0rnfbpr55j1a1bi2kd4mz444741hrn74kz90h5rnjr59jmpfnh09"))))
19862 (build-system python-build-system)
19865 (modify-phases %standard-phases
19866 (add-after 'unpack 'delete-inconvenient-tests
19868 ;; This test depends on python-scikit-learn.
19869 (delete-file "anndata/tests/test_inplace_subset.py")
19872 (add-after 'install 'check
19873 (lambda* (#:key inputs outputs #:allow-other-keys)
19874 (add-installed-pythonpath inputs outputs)
19875 (invoke "pytest" "-vv"))))))
19877 `(("python-h5py" ,python-h5py)
19878 ("python-importlib-metadata" ,python-importlib-metadata)
19879 ("python-natsort" ,python-natsort)
19880 ("python-numcodecs" ,python-numcodecs)
19881 ("python-packaging" ,python-packaging)
19882 ("python-pandas" ,python-pandas)
19883 ("python-scipy" ,python-scipy)
19884 ("python-zarr" ,python-zarr)))
19886 `(("python-joblib" ,python-joblib)
19887 ("python-pytest" ,python-pytest)
19888 ("python-setuptools-scm" ,python-setuptools-scm)))
19889 (home-page "https://github.com/theislab/anndata")
19890 (synopsis "Annotated data for data analysis pipelines")
19891 (description "Anndata is a package for simple (functional) high-level APIs
19892 for data analysis pipelines. In this context, it provides an efficient,
19893 scalable way of keeping track of data together with learned annotations and
19894 reduces the code overhead typically encountered when using a mostly
19895 object-oriented library such as @code{scikit-learn}.")
19896 (license license:bsd-3)))
19898 (define-public python-dill
19900 (name "python-dill")
19901 (version "0.3.1.1")
19905 (uri (pypi-uri "dill" version))
19907 (base32 "1704g8z70d210ksgbccs2v545v9w0wc6lx15m296alb7jf0yzn22"))))
19908 (build-system python-build-system)
19911 (modify-phases %standard-phases
19914 (with-directory-excursion "/tmp"
19915 (invoke "nosetests" "-v"))
19918 `(("python-nose" ,python-nose)))
19919 (home-page "https://pypi.org/project/dill/")
19920 (synopsis "Serialize all of Python")
19921 (description "Dill extends Python's @code{pickle} module for serializing
19922 and de-serializing Python objects to the majority of the built-in Python
19923 types. Dill provides the user the same interface as the @code{pickle} module,
19924 and also includes some additional features. In addition to pickling Python
19925 objects, @code{dill} provides the ability to save the state of an interpreter
19926 session in a single command. Hence, it would be feasible to save a
19927 interpreter session, close the interpreter, ship the pickled file to another
19928 computer, open a new interpreter, unpickle the session and thus continue from
19929 the saved state of the original interpreter session.")
19930 (license license:bsd-3)))
19932 (define-public python-multiprocess
19934 (name "python-multiprocess")
19939 (uri (pypi-uri "multiprocess" version))
19942 "1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
19943 (build-system python-build-system)
19946 (modify-phases %standard-phases
19947 (add-after 'unpack 'disable-broken-tests
19949 ;; This test is broken as there is no keyboard interrupt.
19950 (substitute* "py3.7/multiprocess/tests/__init__.py"
19951 (("^(.*)def test_wait_result"
19953 (string-append indent
19954 "@unittest.skip(\"Disabled by Guix\")\n"
19957 ;; Tests must be run after installation.
19959 (add-after 'install 'check
19960 (lambda* (#:key inputs outputs #:allow-other-keys)
19961 (add-installed-pythonpath inputs outputs)
19962 (invoke "python" "-m" "multiprocess.tests")
19965 `(("python-dill" ,python-dill)))
19966 (home-page "https://pypi.org/project/multiprocess/")
19967 (synopsis "Multiprocessing and multithreading in Python")
19969 "This package is a fork of the multiprocessing Python package, a package
19970 which supports the spawning of processes using the API of the standard
19971 library's @code{threading} module.")
19972 (license license:bsd-3)))
19974 (define-public python-toolz
19976 (name "python-toolz")
19981 (uri (pypi-uri "toolz" version))
19984 "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
19985 (build-system python-build-system)
19986 ;; FIXME: tests cannot be computed: "Can't perform this operation for
19987 ;; unregistered loader type"
19988 (arguments '(#:tests? #f))
19989 (home-page "https://github.com/pytoolz/toolz/")
19990 (synopsis "List processing tools and functional utilities")
19992 "This package provides a set of utility functions for iterators,
19993 functions, and dictionaries.")
19994 (license license:bsd-3)))
19996 (define-public python2-toolz
19997 (package-with-python2 python-toolz))
19999 (define-public python-cytoolz
20001 (name "python-cytoolz")
20002 (version "0.9.0.1")
20006 (uri (pypi-uri "cytoolz" version))
20009 "1r80p88hm3f3r4zpixzr047y5hw4bzy41m4xywnhycda83x0dk44"))))
20010 (build-system python-build-system)
20011 ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
20013 (arguments '(#:tests? #f))
20015 `(("python-toolz" ,python-toolz)))
20017 `(("python-cython" ,python-cython)))
20018 (home-page "https://github.com/pytoolz/cytoolz")
20019 (synopsis "High performance functional utilities")
20021 "The cytoolz package implements the same API as provided by toolz. The
20022 main differences are that @code{cytoolz} is faster and cytoolz offers a C API
20023 that is accessible to other projects developed in Cython.")
20024 (license license:bsd-3)))
20026 (define-public python-sortedcollections
20028 (name "python-sortedcollections")
20033 (uri (pypi-uri "sortedcollections" version))
20036 "1kfabpnjyjm5ml2zspry9jy3xq49aybchgaa4ahic2jqdjfn1sfq"))))
20037 (build-system python-build-system)
20039 `(("python-sortedcontainers" ,python-sortedcontainers)))
20040 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
20041 (home-page "http://www.grantjenks.com/docs/sortedcollections/")
20042 (synopsis "Python Sorted Collections")
20043 (description "Sorted Collections is a Python sorted collections library.")
20044 (license license:asl2.0)))
20046 (define-public python-sortedcontainers
20048 (name "python-sortedcontainers")
20053 (uri (pypi-uri "sortedcontainers" version))
20056 "0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
20057 (build-system python-build-system)
20059 ;; FIXME: Tests require many extra dependencies, and would introduce
20060 ;; a circular dependency on hypothesis, which uses this package.
20063 `(("python-appdirs" ,python-appdirs)
20064 ("python-distlib" ,python-distlib)
20065 ("python-filelock" ,python-filelock)
20066 ("python-six" ,python-six-bootstrap)))
20067 (home-page "http://www.grantjenks.com/docs/sortedcontainers/")
20068 (synopsis "Sorted List, Sorted Dict, Sorted Set")
20070 "This package provides a sorted collections library, written in
20072 (license license:asl2.0)))
20074 (define-public python2-sortedcontainers
20075 (package-with-python2 python-sortedcontainers))
20077 (define-public python-cloudpickle
20079 (name "python-cloudpickle")
20084 (uri (pypi-uri "cloudpickle" version))
20087 "0lx7gy9clp427qwcm7b23zdsldpr03gy3vxxhyi8fpbhwz859brq"))))
20088 (build-system python-build-system)
20090 '(#:phases (modify-phases %standard-phases
20091 (add-before 'check 'do-not-override-PYTHONPATH
20093 ;; Append to PYTHONPATH instead of overriding it so
20094 ;; that dependencies from Guix can be found.
20095 (substitute* "tests/testutils.py"
20096 (("env\\['PYTHONPATH'\\] = pythonpath")
20097 "env['PYTHONPATH'] += os.pathsep + pythonpath"))
20100 (lambda* (#:key tests? #:allow-other-keys)
20102 (invoke "pytest" "-s" "-vv")
20103 (format #t "test suite not run~%"))
20107 ("python-psutil" ,python-psutil)
20108 ("python-pytest" ,python-pytest)
20109 ("python-tornado" ,python-tornado)))
20110 (home-page "https://github.com/cloudpipe/cloudpickle")
20111 (synopsis "Extended pickling support for Python objects")
20113 "Cloudpickle makes it possible to serialize Python constructs not
20114 supported by the default pickle module from the Python standard library. It
20115 is especially useful for cluster computing where Python expressions are
20116 shipped over the network to execute on remote hosts, possibly close to the
20118 (properties `((python2-variant . ,(delay python2-cloudpickle))))
20119 (license license:bsd-3)))
20121 (define-public python2-cloudpickle
20122 (let ((base (package-with-python2 (strip-python2-variant python-cloudpickle))))
20123 (package/inherit base
20125 `(("python-mock" ,python2-mock)
20126 ,@(package-native-inputs base)))
20128 `(("python-futures" ,python2-futures)
20129 ,@(package-propagated-inputs base))))))
20131 (define-public python-locket
20133 (name "python-locket")
20138 (uri (pypi-uri "locket" version))
20141 "1d4z2zngrpqkrfhnd4yhysh66kjn4mblys2l06sh5dix2p0n7vhz"))))
20142 (build-system python-build-system)
20143 (home-page "https://github.com/mwilliamson/locket.py")
20144 (synopsis "File-based locks for Python")
20146 "Locket implements a lock that can be used by multiple processes provided
20147 they use the same path.")
20148 (license license:bsd-2)))
20150 (define-public python2-locket
20151 (package-with-python2 python-locket))
20153 (define-public python-blosc
20155 (name "python-blosc")
20160 (uri (pypi-uri "blosc" version))
20163 "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
20164 (build-system python-build-system)
20165 ;; FIXME: all tests pass, but then this error is printed:
20166 ;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
20167 (arguments '(#:tests? #f))
20169 `(("python-numpy" ,python-numpy)))
20170 (home-page "https://github.com/blosc/python-blosc")
20171 (synopsis "Python wrapper for the Blosc data compressor library")
20172 (description "Blosc is a high performance compressor optimized for binary
20173 data. It has been designed to transmit data to the processor cache faster
20174 than the traditional, non-compressed, direct memory fetch approach via a
20175 @code{memcpy()} system call.
20177 Blosc works well for compressing numerical arrays that contains data with
20178 relatively low entropy, like sparse data, time series, grids with
20179 regular-spaced values, etc.
20181 This Python package wraps the Blosc library.")
20182 (license license:bsd-3)))
20184 (define-public python2-blosc
20185 (package-with-python2 python-blosc))
20187 (define-public python-partd
20189 (name "python-partd")
20194 (uri (pypi-uri "partd" version))
20197 "0sz6rwlnl4fqq220pyz863cnv0gjdxl4m7lscl71ishl5z0xkmhz"))))
20198 (build-system python-build-system)
20200 `(("python-blosc" ,python-blosc)
20201 ("python-locket" ,python-locket)
20202 ("python-numpy" ,python-numpy)
20203 ("python-pandas" ,python-pandas)
20204 ("python-pyzmq" ,python-pyzmq)
20205 ("python-toolz" ,python-toolz)))
20206 (home-page "https://github.com/dask/partd/")
20207 (synopsis "Appendable key-value storage")
20208 (description "Partd stores key-value pairs. Values are raw bytes. We
20209 append on old values. Partd excels at shuffling operations.")
20210 (license license:bsd-3)))
20212 (define-public python2-partd
20213 (package-with-python2 python-partd))
20215 (define-public python-fsspec
20217 (name "python-fsspec")
20222 (uri (pypi-uri "fsspec" version))
20225 "1g9ba8v04s1nrh7pvzfm2md7ivl2mrz3hcq3y9d1a44gd62h17zj"))))
20226 (build-system python-build-system)
20227 (arguments '(#:tests? #f)) ; there are none
20228 (home-page "https://github.com/intake/filesystem_spec")
20229 (synopsis "File-system specification")
20230 (description "The purpose of this package is to produce a template or
20231 specification for a file-system interface, that specific implementations
20232 should follow, so that applications making use of them can rely on a common
20233 behavior and not have to worry about the specific internal implementation
20234 decisions with any given backend.")
20235 (license license:bsd-3)))
20237 (define-public python-dask
20239 (name "python-dask")
20244 (uri (pypi-uri "dask" version))
20246 (base32 "031j0j26s0675v0isyps2dphm03330n7dy8ifdy70jgvf78d119q"))))
20247 (build-system python-build-system)
20250 (modify-phases %standard-phases
20251 (add-after 'unpack 'disable-broken-tests
20253 ;; This test is marked as xfail when pytest-xdist is used.
20254 (substitute* "dask/tests/test_threaded.py"
20255 (("def test_interrupt\\(\\)" m)
20256 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
20258 ;; This one fails with a type error:
20259 ;; TypeError: Already tz-aware, use tz_convert to convert.
20260 (substitute* "dask/dataframe/tests/test_shuffle.py"
20261 (("def test_set_index_timestamp\\(\\)" m)
20262 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
20266 (lambda _ (invoke "pytest" "-vv"))))))
20268 `(("python-cloudpickle" ,python-cloudpickle)
20269 ("python-fsspec" ,python-fsspec)
20270 ("python-numpy" ,python-numpy)
20271 ("python-packaging" ,python-packaging)
20272 ("python-pandas" ,python-pandas)
20273 ("python-partd" ,python-partd)
20274 ("python-toolz" ,python-toolz)
20275 ("python-pyyaml" ,python-pyyaml)))
20277 `(("python-pytest" ,python-pytest)
20278 ("python-pytest-runner" ,python-pytest-runner)))
20279 (home-page "https://github.com/dask/dask/")
20280 (synopsis "Parallel computing with task scheduling")
20282 "Dask is a flexible parallel computing library for analytics. It
20283 consists of two components: dynamic task scheduling optimized for computation,
20284 and large data collections like parallel arrays, dataframes, and lists that
20285 extend common interfaces like NumPy, Pandas, or Python iterators to
20286 larger-than-memory or distributed environments. These parallel collections
20287 run on top of the dynamic task schedulers. ")
20288 (license license:bsd-3)))
20290 (define-public python-ilinkedlist
20292 (name "python-ilinkedlist")
20297 (uri (pypi-uri "ilinkedlist" version))
20300 "0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l"))))
20301 (build-system python-build-system)
20302 (native-inputs `(("python-pytest" ,python-pytest)))
20303 (inputs `(("python" ,python)))
20304 (home-page "https://github.com/luther9/ilinkedlist-py")
20305 (synopsis "Immutable linked list library")
20307 "This is a implementation of immutable linked lists for Python. It
20308 contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
20309 Since a linked list is treated as immutable, it is hashable, and its length
20310 can be retrieved in constant time. Some of the terminology is inspired by
20311 LISP. It is possible to create an improper list by creating a @code{Pair}
20312 with a non-list @code{cdr}.")
20313 (license license:gpl3+)))
20315 (define-public python-readlike
20317 (name "python-readlike")
20322 (uri (pypi-uri "readlike" version))
20324 (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
20325 (build-system python-build-system)
20326 (home-page "https://github.com/jangler/readlike")
20327 (synopsis "GNU Readline-like line editing module")
20329 "This Python module provides line editing functions similar to the default
20330 Emacs-style ones of GNU Readline. Unlike the Python standard library's
20331 @code{readline} package, this one allows access to those capabilities in settings
20332 outside of a standard command-line interface. It is especially well-suited to
20333 interfacing with Urwid, due to a shared syntax for describing key inputs.
20335 Currently, all stateless Readline commands are implemented. Yanking and history
20336 are not supported.")
20337 (license license:expat)))
20339 (define-public python2-readlike
20340 (package-with-python2 python-readlike))
20342 (define-public python-reparser
20344 (name "python-reparser")
20349 (uri (pypi-uri "ReParser" version))
20351 (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
20352 (build-system python-build-system)
20353 (home-page "https://github.com/xmikos/reparser")
20354 (synopsis "Simple lexer/parser for inline markup based on regular expressions")
20356 "This Python library provides a simple lexer/parser for inline markup based
20357 on regular expressions.")
20358 (license license:expat)))
20360 (define-public python2-reparser
20361 (let ((reparser (package-with-python2
20362 (strip-python2-variant python-reparser))))
20363 (package/inherit reparser
20365 `(("python2-enum34" ,python2-enum34)
20366 ,@(package-propagated-inputs reparser))))))
20368 (define-public python-retrying
20370 (name "python-retrying")
20375 (uri (git-reference
20376 (url "https://github.com/rholder/retrying")
20377 (commit (string-append "v" version))))
20378 (file-name (git-file-name name version))
20381 "1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
20382 (build-system python-build-system)
20384 `(("python-six" ,python-six)))
20385 (home-page "https://github.com/rholder/retrying")
20386 (synopsis "Library for adding retry behavior")
20387 (description "Retrying is a general-purpose retrying library to simplify
20388 the task of adding retry behavior to just about anything.
20393 @item Generic Decorator API.
20394 @item Specify stop condition (i.e. limit by number of attempts).
20395 @item Specify wait condition (i.e. exponential backoff sleeping between attempts).
20396 @item Customize retrying on Exceptions.
20397 @item Customize retrying on expected returned result.
20399 (license license:asl2.0)))
20401 (define-public python-pre-commit
20403 (name "python-pre-commit")
20408 (uri (pypi-uri "pre_commit" version))
20410 (base32 "1ycf6wpxrhxhdzz0vpryhbdxlwik5khgcvp3hxwvfr447a6k84zl"))))
20411 (build-system python-build-system)
20413 ;; Tests fail with "AttributeError: module 'pre_commit.resources' has no
20414 ;; attribute 'empty_template_setup'".
20415 `(#:tests? #false))
20417 `(("python-cfgv" ,python-cfgv)
20418 ("python-identify" ,python-identify)
20419 ("python-importlib-metadata" ,python-importlib-metadata)
20420 ("python-importlib-resources" ,python-importlib-resources)
20421 ("python-nodeenv" ,python-nodeenv)
20422 ("python-pyyaml" ,python-pyyaml)
20423 ("python-toml" ,python-toml)
20424 ("python-virtualenv" ,python-virtualenv)))
20425 (home-page "https://github.com/pre-commit/pre-commit")
20426 (synopsis "Framework for managing multi-language pre-commit hooks")
20428 "This package provides a framework for managing and maintaining
20429 multi-language pre-commit hooks.")
20430 (license license:expat)))
20432 (define-public python-precis-i18n
20434 (name "python-precis-i18n")
20439 (uri (pypi-uri "precis_i18n" version))
20442 "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2"))))
20443 (build-system python-build-system)
20444 (home-page "https://github.com/byllyfish/precis_i18n")
20445 (synopsis "Implementation of the PRECIS framework")
20447 "This module implements the PRECIS Framework as described in RFC 8264,
20448 RFC 8265 and RFC 8266.")
20449 (license license:expat)))
20451 (define-public python-absl-py
20453 (name "python-absl-py")
20458 (uri (pypi-uri "absl-py" version))
20461 "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
20462 (build-system python-build-system)
20464 `(("python-six" ,python-six)))
20465 (home-page "https://github.com/abseil/abseil-py")
20466 (synopsis "Abseil Python common libraries")
20468 "This package provides the Abseil Python Common Libraries, a collection
20469 of Python libraries for building Python applications.")
20470 (license license:asl2.0)))
20472 (define-public python-astor
20474 (name "python-astor")
20479 (uri (pypi-uri "astor" version))
20482 "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka"))))
20483 (build-system python-build-system)
20484 ;; FIXME: There are two errors and two test failures.
20485 (arguments `(#:tests? #f))
20486 (home-page "https://github.com/berkerpeksag/astor")
20487 (synopsis "Read and write Python ASTs")
20488 (description "Astor is designed to allow easy manipulation of Python
20489 source via the Abstract Syntax Tree.")
20490 (license license:bsd-3)))
20492 (define-public python2-astor
20493 (package-with-python2 python-astor))
20495 (define-public python-astunparse
20497 (name "python-astunparse")
20502 (uri (pypi-uri "astunparse" version))
20504 (base32 "0rzbc44xcvzjhhiy7wac96mgal5mcjz1mfq8rmvgswskf4kf9cys"))))
20505 (build-system python-build-system)
20506 (arguments '(#:tests? #f)) ; there are none
20508 `(("python-six" ,python-six)
20509 ("python-wheel" ,python-wheel)))
20510 (home-page "https://github.com/simonpercivall/astunparse")
20511 (synopsis "AST unparser for Python")
20512 (description "This package provides an AST unparser for Python. It is a
20513 factored out version of @code{unparse} found in the Python source
20515 (license license:bsd-3)))
20517 (define-public python-gast
20519 (name "python-gast")
20524 (uri (pypi-uri "gast" version))
20526 (base32 "0mrvvfzqafj1wzd0xxfmjf4vphnlxypbhpic1m283aj9i8lfz0dq"))))
20527 (build-system python-build-system)
20529 `(("python-astunparse" ,python-astunparse)))
20530 (home-page "https://pypi.org/project/gast/")
20531 (synopsis "Generic Python AST that abstracts the underlying Python version")
20533 "GAST provides a compatibility layer between the AST of various Python
20534 versions, as produced by @code{ast.parse} from the standard @code{ast}
20536 (license license:bsd-3)))
20538 (define-public python-wikidata
20540 (name "python-wikidata")
20545 (uri (pypi-uri "Wikidata" version))
20548 "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
20549 (build-system python-build-system)
20551 `(("python-babel" ,python-babel)))
20552 (home-page "https://github.com/dahlia/wikidata")
20553 (synopsis "Wikidata client library")
20555 "This package provides a Python interface to
20556 @url{https://www.wikidata.org/, Wikidata}.")
20557 (properties '((upstream-name . "Wikidata")))
20558 (license license:gpl3+)))
20560 (define-public python-doctest-ignore-unicode
20562 (name "python-doctest-ignore-unicode")
20567 (uri (pypi-uri "doctest-ignore-unicode" version))
20570 "1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w"))))
20571 (build-system python-build-system)
20573 `(("python-nose" ,python-nose)))
20574 (home-page "https://github.com/gnublade/doctest-ignore-unicode")
20575 (synopsis "Ignore Unicode literal prefixes in doctests")
20577 "This package adds support for a flag to ignore Unicode literal prefixes
20579 (license license:asl2.0)))
20581 (define-public python-attr
20583 (name "python-attr")
20588 (uri (pypi-uri "attr" version))
20591 "0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch"))))
20592 (build-system python-build-system)
20593 (home-page "https://github.com/denis-ryzhkov/attr")
20594 (synopsis "Decorator for attributes of target function or class")
20595 (description "Simple decorator to set attributes of target function or
20596 class in a @acronym{DRY, Don't Repeat Yourself} way.")
20597 (license license:expat)))
20599 (define-public python-construct
20601 (name "python-construct")
20602 (version "2.10.56")
20606 (uri (pypi-uri "construct" version))
20609 "0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp"))))
20610 (build-system python-build-system)
20612 `(#:tests? #f)) ; No tests exist.
20614 `(("python-extras" ,python-extras)
20615 ("python-arrow" ,python-arrow)
20616 ("python-numpy" ,python-numpy)
20617 ("python-ruamel.yaml" ,python-ruamel.yaml)))
20618 (home-page "https://construct.readthedocs.io")
20619 (synopsis "Declarative and symmetrical parser and builder for binary data")
20621 "This package provides both simple, atomic constructs (such as
20622 integers of various sizes), as well as composite ones which allow you
20623 form hierarchical and sequential structures of increasing complexity.
20624 It features bit and byte granularity, easy debugging and testing, an
20625 easy-to-extend subclass system, and lots of primitive constructs to
20626 make your work easier.")
20627 (license license:expat)))
20629 (define-public python-outcome
20631 (name "python-outcome")
20636 (uri (pypi-uri "outcome" version))
20638 (base32 "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
20639 (build-system python-build-system)
20642 (modify-phases %standard-phases
20644 (lambda* (#:key inputs outputs #:allow-other-keys)
20645 (add-installed-pythonpath inputs outputs)
20646 (invoke "pytest" "-vv"))))))
20648 `(("python-pytest" ,python-pytest)
20649 ("python-pytest-cov" ,python-pytest-cov)
20650 ("python-pytest-asyncio" ,python-pytest-asyncio)))
20652 `(("python-async-generator" ,python-async-generator)
20653 ("python-attrs" ,python-attrs)))
20654 (home-page "https://github.com/python-trio/outcome")
20655 (synopsis "Capture the outcome of Python function calls")
20657 "Capture the outcome of Python function calls. Extracted from the Trio
20659 ;; Either license applies.
20660 (license (list license:expat license:asl2.0))))
20662 (define-public python-trio
20664 (name "python-trio")
20669 (uri (pypi-uri "trio" version))
20671 (base32 "0zcxirpdvvl54pbfkgw7vz984879xwvdygqfpggnam24is2zjp78"))))
20672 (build-system python-build-system)
20675 (modify-phases %standard-phases
20676 (add-before 'check 'change-home
20678 ;; Tests require a writable home.
20679 (setenv "HOME" "/tmp")
20683 (invoke "pytest" "-vv" "-k"
20685 ;; This test times out.
20686 "not test_ki_protection_works"
20687 ;; Assertion errors.
20688 " and not test_guest_mode_ki"
20689 " and not test_run_in_trio_thread_ki"
20690 ;; These try to raise KeyboardInterrupt which does not work
20691 ;; in the build environment.
20692 " and not test_ki_self"
20693 " and not test_ki_wakes_us_up"
20694 ;; Failure in name resolution.
20695 " and not test_getnameinfo"
20696 " and not test_SocketType_resolve"
20697 ;; OSError: protocol not found.
20698 " and not test_getprotobyname")))))))
20700 `(("python-astor" ,python-astor)
20701 ("python-ipython" ,python-ipython)
20702 ("python-jedi" ,python-jedi)
20703 ("python-pylint" ,python-pylint)
20704 ("python-pyopenssl" ,python-pyopenssl)
20705 ("python-pytest" ,python-pytest)
20706 ("python-pytest-cov" ,python-pytest-cov)
20707 ("python-trustme" ,python-trustme)))
20709 `(("python-attrs" ,python-attrs)
20710 ("python-idna" ,python-idna)
20711 ("python-outcome" ,python-outcome)
20712 ("python-sniffio" ,python-sniffio)
20713 ("python-sortedcontainers"
20714 ,python-sortedcontainers)))
20715 (home-page "https://github.com/python-trio/trio")
20716 (synopsis "Friendly Python library for async concurrency and I/O")
20718 "Trio strives to be a production-quality, async/await-native I/O library
20719 for Python. Like all async libraries, its main purpose is to help you write
20720 programs that do multiple things at the same time with parallelized I/O.")
20721 ;; Either license applies.
20722 (license (list license:expat license:asl2.0))))
20724 (define-public python-trio-typing
20726 (name "python-trio-typing")
20731 (uri (pypi-uri "trio-typing" version))
20733 (base32 "1yvlj4vf3wyvp16dw6vyfm4i2idm8lvdc3fvjhi6mhm62zv7s07j"))))
20734 (build-system python-build-system)
20737 (modify-phases %standard-phases
20740 (invoke "pytest" "-vv"))))))
20742 `(("python-attrs" ,python-attrs)
20743 ("python-pytest" ,python-pytest)))
20745 `(("python-mypy" ,python-mypy)
20746 ("python-mypy-extensions"
20747 ,python-mypy-extensions)
20748 ("python-trio" ,python-trio)
20749 ("python-typing-extensions"
20750 ,python-typing-extensions)))
20751 (home-page "https://github.com/python-trio/trio-typing")
20752 (synopsis "Static type checking support for Trio and related projects")
20754 "This package provides:
20757 @item PEP 561 typing stubs packages for the Trio project packages:
20760 @item trio (@code{trio-stubs})
20761 @item outcome (@code{outcome-stubs})
20762 @item async_generator (@code{async_generator-stubs})
20765 @item A package @code{trio_typing} containing types that Trio programs often
20766 want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
20767 a mypy plugin that smooths over some limitations in the basic type hints.
20769 ;; Either license applies.
20770 (license (list license:expat license:asl2.0))))
20772 (define-public python-humanize
20774 (name "python-humanize")
20779 (uri (pypi-uri "humanize" version))
20782 "06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4"))))
20784 '(#:tests? #f)) ; tests not in pypi archive
20785 (build-system python-build-system)
20786 (home-page "https://github.com/jmoiron/humanize")
20787 (synopsis "Print numerical information in a human-readable form")
20788 (description "This package provides a Python module that displays numbers
20789 and dates in \"human readable\" forms. For example, it would display
20790 \"12345591313\" as \"12.3 billion\".")
20791 (license license:expat)))
20793 (define-public python-txaio
20795 (name "python-txaio")
20800 (uri (pypi-uri "txaio" version))
20803 "1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7"))))
20804 (build-system python-build-system)
20806 `(("python-twisted" ,python-twisted)
20807 ("python-six" ,python-six)))
20808 (home-page "https://github.com/crossbario/txaio")
20809 (synopsis "Compatibility layer between Python asyncio and Twisted")
20810 (description "Txaio provides a compatibility layer between the Python
20811 @code{asyncio} module and @code{Twisted}.")
20812 (license license:expat)))
20814 (define-public python-toolshed
20816 (name "python-toolshed")
20821 (uri (pypi-uri "toolshed" version))
20824 "14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3"))))
20825 (build-system python-build-system)
20827 `(("python-nose" ,python-nose)))
20828 (home-page "https://github.com/brentp/toolshed/")
20829 (synopsis "Collection of modules and functions for working with data")
20830 (description "This is a collection of well-tested, simple modules and
20831 functions that aim to reduce boilerplate when working with data.")
20832 (license license:bsd-2)))
20834 (define-public python-annoy
20836 (name "python-annoy")
20841 (uri (pypi-uri "annoy" version))
20844 "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
20845 (build-system python-build-system)
20847 `(("python-nose" ,python-nose)))
20848 (home-page "https://github.com/spotify/annoy/")
20849 (synopsis "Approximate nearest neighbors library")
20851 "Annoy is a C++ library with Python bindings to search for points in
20852 space that are close to a given query point. It also creates large read-only
20853 file-based data structures that are @code{mmap}ped into memory so that many
20854 processes may share the same data.")
20855 (license license:asl2.0)))
20857 (define-public python-croniter
20859 (name "python-croniter")
20863 (uri (pypi-uri "croniter" version))
20866 "0r79cx4v2dw4hzr0annkkxxis46c8hivq61sr39z6p7lcjsbk1ki"))))
20867 (build-system python-build-system)
20869 `(("python-dateutil" ,python-dateutil)
20870 ("python-natsort" ,python-natsort)))
20871 (home-page "https://github.com/kiorky/croniter")
20872 (synopsis "Iterate datetime objects with cron-like syntax")
20874 "@code{croniter} provides iteration for datetime object with cron-like
20876 (license license:expat)))
20878 (define-public python-pylzma
20880 (name "python-pylzma")
20885 (uri (pypi-uri "pylzma" version))
20888 "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
20889 (build-system python-build-system)
20890 (home-page "https://www.joachim-bauch.de/projects/pylzma/")
20891 (synopsis "Python bindings for the LZMA library by Igor Pavlov.")
20892 (description "This package provides Python bindings for the LZMA library
20894 (license license:lgpl2.1+)))
20896 (define-public python2-pylzma
20897 (package-with-python2 python-pylzma))
20899 (define-public python2-zeroconf
20901 (name "python2-zeroconf")
20903 ;; This is the last version that supports Python 2.x.
20908 (uri (pypi-uri "zeroconf" version))
20911 "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3"))))
20912 (build-system python-build-system)
20914 `(#:python ,python-2
20916 (modify-phases %standard-phases
20917 (add-after 'unpack 'patch-requires
20918 (lambda* (#:key inputs #:allow-other-keys)
20919 (substitute* "setup.py"
20924 `(("python2-six" ,python2-six)
20925 ("python2-enum32" ,python2-enum34)
20926 ("python2-netifaces" ,python2-netifaces)
20927 ("python2-typing" ,python2-typing)))
20928 (home-page "https://github.com/jstasiak/python-zeroconf")
20929 (synopsis "Pure Python mDNS service discovery")
20931 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
20933 (license license:lgpl2.1+)))
20935 (define-public python-bsddb3
20937 (name "python-bsddb3")
20942 (uri (pypi-uri "bsddb3" version))
20945 "019db2y6bfmiqbrgg9x9f6h72qjmqh05czdn2v5sy9bl0gs23mj2"))))
20946 (build-system python-build-system)
20951 (modify-phases %standard-phases
20952 (add-after 'unpack 'configure-locations
20953 (lambda* (#:key inputs #:allow-other-keys)
20954 (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
20955 (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")
20959 (invoke "python3" "test3.py" "-v"))))))
20960 (home-page "https://www.jcea.es/programacion/pybsddb.htm")
20961 (synopsis "Python bindings for Oracle Berkeley DB")
20963 "This module provides a nearly complete wrapping of the Oracle/Sleepycat
20964 C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
20965 Transaction objects, and each of these is exposed as a Python type in the
20966 bsddb3.db module. The database objects can use various access methods: btree,
20967 hash, recno, and queue. Complete support of Berkeley DB distributed
20968 transactions. Complete support for Berkeley DB Replication Manager.
20969 Complete support for Berkeley DB Base Replication. Support for RPC.")
20970 (license license:bsd-3)))
20972 (define-public python-dbfread
20974 (name "python-dbfread")
20978 (uri (pypi-uri "dbfread" version))
20981 "0gdpwdzf1fngsi6jrdyj4qdf6cr7gnnr3zp80dpkzbgz0spskj07"))))
20982 (build-system python-build-system)
20984 `(("python-pytest" ,python-pytest)))
20985 (home-page "https://dbfread.readthedocs.io")
20986 (synopsis "Read DBF Files with Python")
20988 "This library reads DBF files and returns the data as native Python data
20989 types for further processing. It is primarily intended for batch jobs and
20991 (license license:expat)))
20993 (define-public python-cached-property
20995 (name "python-cached-property")
21000 (uri (pypi-uri "cached-property" version))
21003 "010m1bl380l2r3vwq24r5v14l6gwvgm9v0mqqjkjss552jgsa5wj"))))
21004 (build-system python-build-system)
21007 (modify-phases %standard-phases
21008 ;; https://github.com/pydanny/cached-property/issues/131
21009 ;; recent versions of freezegun break one test
21010 (add-after 'unpack 'disable-broken-test
21012 (substitute* "tests/test_cached_property.py"
21013 (("def test_threads_ttl_expiry\\(self\\)" m)
21014 (string-append "@unittest.skip(\"Disabled by Guix\")\n"
21018 `(("python-freezegun" ,python-freezegun)))
21020 "https://github.com/pydanny/cached-property")
21022 "Decorator for caching properties in classes")
21024 "This package provides a decorator which makes caching
21025 time-or-computationally-expensive properties quick and easy and works in Python
21027 (license license:bsd-3)))
21029 (define-public python-folium
21031 (name "python-folium")
21035 ;; PyPI has a ".whl" file but not a proper source release.
21036 ;; Thus, fetch code from Git.
21038 (uri (git-reference
21039 (url "https://github.com/python-visualization/folium")
21040 (commit (string-append "v" version))))
21041 (file-name (git-file-name name version))
21043 (base32 "0yi5y9pfpbc4bc4ibr8cblif8ls1wf3k0zawyx86r2qwxxkkyd6k"))))
21044 (build-system python-build-system)
21046 `(("python-branca" ,python-branca)
21047 ("python-jinja2" ,python-jinja2)
21048 ("python-numpy" ,python-numpy)
21049 ("python-requests" ,python-requests)))
21051 `(("python-pytest" ,python-pytest)))
21052 (home-page "https://github.com/python-visualization/folium")
21053 (synopsis "Make beautiful maps with Leaflet.js & Python")
21054 (description "@code{folium} makes it easy to visualize data that’s been
21055 manipulated in Python on an interactive leaflet map. It enables both the
21056 binding of data to a map for @code{choropleth} visualizations as well as
21057 passing rich vector/raster/HTML visualizations as markers on the map.
21059 The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
21060 Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
21061 supports Image, Video, GeoJSON and TopoJSON overlays.")
21062 (license license:expat)))
21064 (define-public jube
21066 ;; This is a command-line tool, so no "python-" prefix.
21071 (uri (string-append
21072 "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
21076 "0xq4k1q63s1p6swgyp61vahlrd1fqmgbm0gm5kpj8ikwy0yc0nqk"))
21077 (file-name (string-append "jube-" version ".tar.gz"))))
21078 (build-system python-build-system)
21079 (home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
21080 (synopsis "Benchmarking environment")
21082 "JUBE helps perform and analyze benchmarks in a systematic way. For each
21083 benchmarked application, benchmark data is stored in a format that allows JUBE
21084 to deduct the desired information. This data can be parsed by automatic pre-
21085 and post-processing scripts that draw information and store it more densely
21086 for manual interpretation.")
21087 (license license:gpl3+)))
21089 (define-public python-pyroutelib3
21091 (name "python-pyroutelib3")
21092 (version "1.3.post1")
21096 (uri (pypi-uri "pyroutelib3" version))
21099 "1hpbydpn2alyswiajfbvhzq4c7f36vdmvxy91hgv8l1lb2g2vfrj"))))
21100 (build-system python-build-system)
21102 `(("python-dateutil" ,python-dateutil)))
21103 (home-page "https://github.com/MKuranowski/pyroutelib3")
21104 (synopsis "Library for simple routing on OSM data")
21105 (description "Library for simple routing on OSM data")
21106 (license license:gpl3+)))
21108 (define-public python-bibtexparser
21110 (name "python-bibtexparser")
21115 (uri (pypi-uri "bibtexparser" version))
21118 "0zwhfkrzf3n5847dbnfng92k7ak199l9v6x6ax3dgdidfpm6d2fz"))))
21119 (build-system python-build-system)
21121 `(("python-pyparsing" ,python-pyparsing)))
21123 `(("python-future" ,python-future)))
21124 (home-page "https://github.com/sciunto-org/python-bibtexparser")
21125 (synopsis "Python library to parse BibTeX files")
21126 (description "BibtexParser is a Python library to parse BibTeX files.")
21127 (license (list license:bsd-3 license:lgpl3))))
21129 (define-public python-distro
21131 (name "python-distro")
21136 (uri (pypi-uri "distro" version))
21139 "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n"))))
21140 (build-system python-build-system)
21142 `(("python-pytest" ,python-pytest)))
21143 (home-page "https://github.com/nir0s/distro")
21145 "OS platform information API")
21147 "@code{distro} provides information about the OS distribution it runs on,
21148 such as a reliable machine-readable ID, or version information.
21150 It is the recommended replacement for Python's original
21151 `platform.linux_distribution` function (which will be removed in Python 3.8).
21152 @code{distro} also provides a command-line interface to output the platform
21153 information in various formats.")
21154 (license license:asl2.0)))
21156 (define-public python-cairosvg
21158 (name "python-cairosvg")
21163 (uri (pypi-uri "CairoSVG" version))
21165 (base32 "1ylsisha2cc4w0yydxwhy7idkfw1inl9fsipxsrm7vyby080vi9z"))))
21166 (build-system python-build-system)
21169 (modify-phases %standard-phases
21171 (lambda _ (invoke "pytest"))))))
21173 `(("python-cairocffi" ,python-cairocffi)
21174 ("python-cssselect2" ,python-cssselect2)
21175 ("python-defusedxml" ,python-defusedxml)
21176 ("python-pillow" ,python-pillow)
21177 ("python-tinycss2" ,python-tinycss2)))
21179 `(("python-pytest-flake8" ,python-pytest-flake8)
21180 ("python-pytest-isort" ,python-pytest-isort)
21181 ("python-pytest-runner" ,python-pytest-runner)))
21182 (home-page "https://cairosvg.org/")
21183 (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
21184 (description "CairoSVG is a SVG converter based on Cairo. It can export
21185 SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
21186 SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
21187 parsed, the result is drawn to a Cairo surface that can be exported to
21188 qvarious formats: PDF, PostScript, PNG and even SVG.")
21189 (license license:lgpl3+)))
21191 (define-public python-pyphen
21193 (name "python-pyphen")
21198 (uri (pypi-uri "Pyphen" version))
21200 (base32 "0a1iwrgs4hzwzz60q4i1813kbzimhm0i4q8grh8vqkxhnkgj36vi"))))
21201 (build-system python-build-system)
21202 ;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
21203 ;; embedded set provided by upstream - like Debian does.
21204 (home-page "https://github.com/Kozea/Pyphen")
21205 (synopsis "Pure Python module to hyphenate text")
21206 (description "Pyphen is a pure Python module to hyphenate text using
21207 existing Hunspell hyphenation dictionaries.")
21208 (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
21210 (define-public python-intelhex
21212 (name "python-intelhex")
21217 (uri (pypi-uri "intelhex" version))
21220 "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780"))))
21221 (build-system python-build-system)
21222 (arguments '(#:tests? #f)) ;issue with version
21223 (home-page "https://pypi.org/project/IntelHex/")
21224 (synopsis "Python library for Intel HEX files manipulations")
21225 (description "The Intel HEX file format is widely used in microprocessors
21226 and microcontrollers area (embedded systems etc.) as the de facto standard for
21227 representation of code to be programmed into microelectronic devices. This
21228 package provides an intelhex Python library to read, write, create from
21229 scratch and manipulate data from Intel HEX file format. It also includes
21230 several convenience Python scripts, including \"classic\" hex2bin and bin2hex
21231 converters and more, those based on the library itself.")
21232 (license license:bsd-3)))
21234 (define-public python-pykwalify
21236 (name "python-pykwalify")
21241 (uri (pypi-uri "pykwalify" version))
21244 "1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"))))
21245 (build-system python-build-system)
21246 (arguments '(#:tests? #f)) ;missing dependencies
21248 `(("python-dateutil" ,python-dateutil)
21249 ("python-docopt" ,python-docopt)
21250 ("python-pyyaml" ,python-pyyaml)))
21251 (home-page "https://github.com/grokzen/pykwalify")
21253 "Python lib/cli for JSON/YAML schema validation")
21255 "This package provides a parser, schema validator, and data binding tool
21256 for YAML and JSON.")
21257 (license license:expat)))
21259 (define-public python-dbusmock
21261 (name "python-dbusmock")
21266 (uri (pypi-uri "python-dbusmock" version))
21269 "0hp2kyac88nh9iv6l8hlmv7s1sa1s5f1a3wc2pmlmmxnd211fjlr"))))
21270 (build-system python-build-system)
21273 (modify-phases %standard-phases
21274 (add-after 'unpack 'patch-shell-path
21276 (substitute* "tests/test_code.py"
21277 (("/bin/bash") (which "bash")))
21281 ("dbus" ,dbus) ; for dbus-daemon
21282 ("python-nose" ,python-nose)
21285 `(("python-dbus" ,python-dbus)
21286 ("python-pygobject" ,python-pygobject)))
21287 (home-page "https://github.com/martinpitt/python-dbusmock")
21288 (synopsis "Python library for mock D-Bus objects")
21289 (description "python-dbusmock allows for the easy creation of mock objects on
21290 D-Bus. This is useful for writing tests for software which talks to D-Bus
21291 services such as upower, systemd, logind, gnome-session or others, and it is
21292 hard (or impossible without root privileges) to set the state of the real
21293 services to what you expect in your tests.")
21294 (license license:lgpl3+)))
21296 (define-public python-jsonplus
21298 (name "python-jsonplus")
21300 (home-page "https://github.com/randomir/jsonplus")
21303 (uri (pypi-uri "jsonplus" version))
21306 "05yv3dw813zwas9snz124k2hki49y268b3mx0gj9w7v1nrjmglq1"))))
21307 (build-system python-build-system)
21308 ;; XXX: No tests on PyPI, and the repository has no tags.
21309 (arguments '(#:tests? #f))
21311 `(("python-dateutil" ,python-dateutil)
21312 ("python-simplejson" ,python-simplejson)
21313 ("python-sortedcontainers" ,python-sortedcontainers)))
21314 (synopsis "Serialize Python types to/from JSON")
21316 "This package provides functionality to serialize arbitrary data types
21317 to and from JSON. Common data types are implemented and it is easy to
21318 register custom encoders and decoders.")
21319 (license license:expat)))
21321 (define-public python-ujson
21323 (name "python-ujson")
21328 (uri (pypi-uri "ujson" version))
21331 "0k9w0kypy7vlskzzp2vsjswaw8lbqdrplzkbflxki9vqwglsj5f6"))
21332 (modules '((guix build utils)))
21334 '(begin (delete-file-recursively "deps") #t))))
21335 (build-system python-build-system)
21338 (modify-phases %standard-phases
21339 (add-after 'unpack 'link-to-system-double-conversion
21340 (lambda* (#:key inputs #:allow-other-keys)
21341 (let ((d-c (assoc-ref inputs "double-conversion")))
21342 (substitute* "setup.py"
21343 (("./deps/double-conversion/double-conversion\"")
21344 (string-append d-c "/include/double-conversion\""))
21346 (string-append "-L" d-c "/lib\","
21347 " \"-ldouble-conversion\","
21351 (lambda* (#:key inputs outputs #:allow-other-keys)
21352 (add-installed-pythonpath inputs outputs)
21353 (invoke "pytest"))))))
21355 `(("double-conversion" ,double-conversion)
21356 ("python-setuptools-scm" ,python-setuptools-scm)
21357 ("python-pytest" ,python-pytest)))
21358 (home-page "https://github.com/ultrajson/ultrajson")
21359 (synopsis "Ultra fast JSON encoder and decoder for Python")
21361 "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
21362 bindings for Python 3.")
21363 (license license:bsd-3)))
21365 (define-public python-iocapture
21366 ;; The latest release is more than a year older than this commit.
21367 (let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
21370 (name "python-iocapture")
21375 (uri (git-reference
21376 (url "https://github.com/oinume/iocapture")
21378 (file-name (git-file-name name version))
21381 "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
21382 (build-system python-build-system)
21385 (modify-phases %standard-phases
21387 (add-after 'install 'check
21388 (lambda* (#:key inputs outputs #:allow-other-keys)
21389 (add-installed-pythonpath inputs outputs)
21390 (invoke "py.test" "-v" "tests")
21393 `(("python-flexmock" ,python-flexmock)
21394 ("python-pytest" ,python-pytest)
21395 ("python-pytest-cov" ,python-pytest-cov)
21396 ("python-six" ,python-six)))
21397 (home-page "https://github.com/oinume/iocapture")
21398 (synopsis "Python capturing tool for stdout and stderr")
21400 "This package helps you to capture the standard out (stdout) and the
21401 standard error channel (stderr) in your program.")
21402 (license license:expat))))
21404 (define-public python-argh
21405 ;; There are 21 commits since the latest release containing important
21407 (let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4")
21410 (name "python-argh")
21411 (version (git-version "0.26.2" revision commit))
21415 (uri (git-reference
21416 (url "https://github.com/neithere/argh")
21418 (file-name (git-file-name name version))
21421 "1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
21422 (build-system python-build-system)
21424 `(("python-iocapture" ,python-iocapture)
21425 ("python-mock" ,python-mock)
21426 ("python-pytest" ,python-pytest)
21427 ("python-pytest-cov" ,python-pytest-cov)
21428 ("python-pytest-xdist" ,python-pytest-xdist)
21429 ("python-tox" ,python-tox)))
21430 (home-page "https://github.com/neithere/argh/")
21431 (synopsis "Argparse wrapper with natural syntax")
21433 "python-argh is a small library that provides several layers of
21434 abstraction on top of @code{python-argparse}. The layers can be mixed. It is
21435 always possible to declare a command with the highest possible (and least
21436 flexible) layer and then tune the behaviour with any of the lower layers
21437 including the native API of @code{python-argparse}.")
21438 (license license:lgpl3+))))
21440 (define-public python-ppft
21442 (name "python-ppft")
21443 (version "1.6.6.1")
21447 (uri (pypi-uri "ppft" version))
21450 "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
21451 (build-system python-build-system)
21452 (arguments '(#:tests? #f)) ; there are none
21454 `(("python-six" ,python-six)))
21455 (home-page "https://pypi.org/project/ppft/")
21456 (synopsis "Fork of Parallel Python")
21458 "This package is a fork of Parallel Python. The Parallel Python
21459 module (@code{pp}) provides an easy and efficient way to create
21460 parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
21461 computers and clusters. It features cross-platform portability and dynamic
21463 (license license:bsd-3)))
21465 (define-public python-pox
21467 (name "python-pox")
21472 (uri (pypi-uri "pox" version))
21475 "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
21476 (build-system python-build-system)
21479 (modify-phases %standard-phases
21482 (mkdir-p "/tmp/guix")
21483 (setenv "SHELL" "bash")
21484 (setenv "USERNAME" "guix")
21485 (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
21486 (invoke "py.test" "-vv")
21489 `(("python-pytest" ,python-pytest)
21491 (home-page "https://pypi.org/project/pox/")
21492 (synopsis "Python utilities for file system exploration and automated builds")
21494 "Pox provides a collection of utilities for navigating and manipulating
21495 file systems. This module is designed to facilitate some of the low-level
21496 operating system interactions that are useful when exploring a file system on a
21497 remote host. Pox provides Python equivalents of several shell commands such
21498 as @command{which} and @command{find}. These commands allow automated
21499 discovery of what has been installed on an operating system, and where the
21500 essential tools are located.")
21501 (license license:bsd-3)))
21503 (define-public python-pathos
21505 (name "python-pathos")
21510 (uri (pypi-uri "pathos" version))
21513 "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
21514 (build-system python-build-system)
21517 (modify-phases %standard-phases
21520 (setenv "PYTHONPATH"
21521 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
21522 (invoke "python" "./tests/__main__.py"))))))
21524 `(("python-dill" ,python-dill)
21525 ("python-multiprocess" ,python-multiprocess)
21526 ("python-pox" ,python-pox)
21527 ("python-ppft" ,python-ppft)))
21529 `(("python-pytest" ,python-pytest)))
21530 (home-page "https://pypi.org/project/pathos/")
21532 "Parallel graph management and execution in heterogeneous computing")
21534 "Python-pathos is a framework for heterogeneous computing. It provides a
21535 consistent high-level interface for configuring and launching parallel
21536 computations across heterogeneous resources. Python-pathos provides configurable
21537 launchers for parallel and distributed computing, where each launcher contains
21538 the syntactic logic to configure and launch jobs in an execution environment.")
21539 (license license:bsd-3)))
21541 (define-public python-flit
21543 (name "python-flit")
21548 (uri (pypi-uri "flit" version))
21551 "14q8qa48bli2mniznc8b54qkwvhbik4kw99y01fi5gzzl620zzml"))))
21552 (build-system python-build-system)
21554 `(#:tests? #f)) ; XXX: Check requires network access.
21555 (home-page "https://flit.readthedocs.io/")
21557 "Simple packaging tool for simple packages")
21559 "Flit is a simple way to put Python packages and modules on PyPI. Flit
21560 packages a single importable module or package at a time, using the import
21561 name as the name on PyPI. All subpackages and data files within a package
21562 are included automatically.")
21563 (license license:bsd-3)))
21565 (define-public python-pathtools
21567 (name "python-pathtools")
21572 (uri (pypi-uri "pathtools" version))
21575 "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
21576 (build-system python-build-system)
21578 "https://github.com/gorakhargosh/pathtools")
21579 (synopsis "Path utilities for Python")
21580 (description "Pattern matching and various utilities for file systems
21582 (license license:expat)))
21584 (define-public python-fastentrypoints
21586 (name "python-fastentrypoints")
21591 (uri (pypi-uri "fastentrypoints" version))
21594 "02s1j8i2dzbpbwgq2a3fiqwm3cnmhii2qzc0k42l0rdxd4a4ya7z"))))
21595 (build-system python-build-system)
21597 "https://github.com/ninjaaron/fast-entry_points")
21599 "Makes entry_points specified in setup.py load more quickly")
21601 "Using entry_points in your setup.py makes scripts that start really
21602 slowly because it imports pkg_resources. This package allows such setup
21603 scripts to load entry points more quickly.")
21604 (license license:bsd-3)))
21606 (define-public python-funcparserlib
21608 (name "python-funcparserlib")
21613 (uri (pypi-uri "funcparserlib" version))
21616 "07f9cgjr3h4j2m67fhwapn8fja87vazl58zsj4yppf9y3an2x6dp"))))
21618 `(("python-tox" ,python-tox)))
21621 (modify-phases %standard-phases
21624 (invoke "tox"))))))
21625 (build-system python-build-system)
21627 "https://github.com/vlasovskikh/funcparserlib")
21629 "Recursive descent parsing library based on functional combinators")
21631 "This package is a recursive descent parsing library for Python based on
21632 functional combinators. Parser combinators are just higher-order functions
21633 that take parsers as their arguments and return them as result values.")
21634 (license license:expat)))
21636 (define-public python-speg
21638 (name "python-speg")
21643 (uri (pypi-uri "speg" version ".zip"))
21645 (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
21647 `(#:tests? #f)) ;FIXME: tests fail, not sure why
21649 `(("unzip" ,unzip)))
21650 (build-system python-build-system)
21651 (home-page "https://github.com/avakar/speg")
21652 (synopsis "PEG-based parser interpreter with memoization")
21653 (description "This package is a PEG-based parser and interpreter with
21655 (license license:expat)))
21657 (define-public python-cson
21659 (name "python-cson")
21664 (uri (pypi-uri "cson" version))
21666 (base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
21667 (build-system python-build-system)
21669 `(("python-speg" ,python-speg)))
21670 (home-page "https://github.com/avakar/pycson")
21671 (synopsis "Parser for Coffeescript Object Notation (CSON)")
21672 (description "This package is a parser for Coffeescript Object
21674 (license license:expat)))
21676 (define-public python-asynctest
21678 (name "python-asynctest")
21683 (uri (pypi-uri "asynctest" version))
21686 "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
21687 (build-system python-build-system)
21690 (modify-phases %standard-phases
21693 (invoke "python" "-X" "dev" "-m" "unittest" "-v" "test")))
21694 (add-after 'unpack 'disable-tests
21696 ;; XXX: 7 tests fail out of 220. Disable them for now.
21697 (substitute* (list "test/test_selector.py"
21698 "test/test_mock.py")
21699 (("def test_events_watched_outside_test_are_ignored")
21700 "@unittest.skip('disabled by guix')
21701 def test_events_watched_outside_test_are_ignored")
21702 (("def test_awaited_from_autospec_mock.*" line)
21703 (string-append line " return True\n"))
21704 (("def test_create_autospec_on_coroutine_and_using_assert_methods.*" line)
21705 (string-append line " return True\n"))
21706 (("def test_patch_coroutine_with_multiple_scopes.*" line)
21707 (string-append line " return True\n"))
21708 (("def test_multiple_patches_on_coroutine.*" line)
21709 (string-append line " return True\n"))
21710 (("def test_patch_coroutine_only_when_running.*" line)
21711 (string-append line " return True\n")))
21713 (home-page "https://github.com/Martiusweb/asynctest")
21714 (synopsis "Extension of unittest for testing asyncio libraries")
21716 "The package asynctest is built on top of the standard unittest module
21717 and cuts down boilerplate code when testing libraries for asyncio.")
21718 (license license:asl2.0)))
21720 (define-public python-aionotify
21722 (name "python-aionotify")
21726 ;; Source tarball on PyPi lacks tests
21728 (uri (git-reference
21729 (url "https://github.com/rbarrois/aionotify")
21730 (commit (string-append "v" version))))
21731 (file-name (git-file-name name version))
21733 (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))
21734 (patches (search-patches "python-aionotify-0.2.0-py3.8.patch"))))
21735 (build-system python-build-system)
21736 (home-page "https://github.com/rbarrois/aionotify")
21737 (synopsis "Asyncio-powered inotify library")
21739 "@code{aionotify} is a simple, asyncio-based inotify library.")
21740 (license license:bsd-3)))
21742 (define-public python-forbiddenfruit
21744 (name "python-forbiddenfruit")
21748 ;; Source tarball on PyPi lacks Makefile that builds and runs tests
21750 (uri (git-reference
21751 (url "https://github.com/clarete/forbiddenfruit")
21753 (file-name (git-file-name name version))
21755 (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
21756 (build-system python-build-system)
21759 (modify-phases %standard-phases
21762 (invoke "make" "SKIP_DEPS=1"))))))
21764 `(("python-nose" ,python-nose)
21765 ("python-coverage" ,python-coverage)))
21766 (home-page "https://github.com/clarete/forbiddenfruit")
21767 (synopsis "Patch python built-in objects")
21768 (description "This project allows Python code to extend built-in types.")
21769 (license (list license:gpl3+ license:expat))))
21771 (define-public python-k5test
21773 (name "python-k5test")
21778 (uri (pypi-uri "k5test" version))
21781 "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
21782 (build-system python-build-system)
21784 `(("python-six" ,python-six)
21785 ;; `which`, `kadmin.local` binaries called inside library
21787 ("mit-krb5" ,mit-krb5)))
21788 (native-inputs `(("mit-krb5" ,mit-krb5)))
21791 (modify-phases %standard-phases
21792 (add-after 'unpack 'patch-paths
21794 (substitute* "k5test/realm.py"
21795 (("'kadmin_local'") "'kadmin.local'")))))))
21796 (home-page "https://github.com/pythongssapi/k5test")
21797 (synopsis "Library for setting up self-contained Kerberos 5 environments")
21799 "@code{k5test} is a library for setting up self-contained Kerberos 5
21800 environments, and running Python unit tests inside those environments. It is
21801 based on the file of the same name found alongside the MIT Kerberos 5 unit
21803 (license license:isc)))
21805 (define-public python-gssapi
21807 (name "python-gssapi")
21812 (uri (pypi-uri "gssapi" version))
21815 "1j2idrbrbczykzlb56q1bn0ivc9c0rjjljpk4yz86xn3gxfkpv8n"))))
21816 (build-system python-build-system)
21818 `(("python-decorator" ,python-decorator)
21819 ("python-six" ,python-six)))
21821 `(("mit-krb5" ,mit-krb5)))
21824 `(("python-parameterized" ,python-parameterized)
21825 ("python-k5test" ,python-k5test)
21826 ("python-nose" ,python-nose)))
21827 (home-page "https://github.com/pythongssapi/python-gssapi")
21828 (synopsis "Python GSSAPI Wrapper")
21830 "Python-GSSAPI provides both low-level and high level wrappers around the
21831 GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
21832 also be usable with other GSSAPI mechanisms.")
21833 (license license:isc)))
21835 (define-public python-check-manifest
21837 (name "python-check-manifest")
21842 (uri (pypi-uri "check-manifest" version))
21845 "0lk45ifdv2cpkl6ayfyix7jwmnxa1rha7xvb0ih5999k115wzqs4"))))
21846 (build-system python-build-system)
21848 `(("python-mock" ,python-mock)
21850 (home-page "https://github.com/mgedmin/check-manifest")
21851 (synopsis "Check MANIFEST.in in a Python source package for completeness")
21852 (description "Python package can include a MANIFEST.in file to help with
21853 sending package files to the Python Package Index. This package checks that
21854 file to ensure it completely and accurately describes your project.")
21855 (license license:expat)))
21857 (define-public python-android-stringslib
21859 (name "python-android-stringslib")
21864 (uri (git-reference
21865 (url "https://framagit.org/tyreunom/python-android-strings-lib")
21866 (commit (string-append "v" version))))
21867 (file-name (git-file-name name version))
21870 "0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
21871 (build-system python-build-system)
21874 (home-page "https://framagit.org/tyreunom/python-android-strings-lib")
21875 (synopsis "Android strings.xml support")
21876 (description "Android Strings Lib provides support for android's strings.xml
21877 files. These files are used to translate strings in android apps.")
21878 (license license:expat)))
21880 (define-public python-watchdog
21882 (name "python-watchdog")
21887 (uri (pypi-uri "watchdog" version))
21890 "07cnvvlpif7a6cg4rav39zq8fxa5pfqawchr46433pij0y6napwn"))))
21891 (build-system python-build-system)
21894 (modify-phases %standard-phases
21895 (add-before 'check 'remove-failing
21897 (delete-file "tests/test_inotify_buffer.py")
21898 (delete-file "tests/test_snapshot_diff.py")
21901 `(("python-argh" ,python-argh)
21902 ("python-pathtools" ,python-pathtools)
21903 ("python-pyyaml" ,python-pyyaml)))
21905 `(("python-pytest-cov" ,python-pytest-cov)
21906 ("python-pytest-timeout" ,python-pytest-timeout)))
21907 (home-page "https://github.com/gorakhargosh/watchdog")
21908 (synopsis "File system events monitoring")
21909 (description "This package provides a way to monitor file system events
21910 such as a file modification and trigger an action. This is similar to inotify,
21912 (license license:asl2.0)))
21914 (define-public python-watchgod
21916 (name "python-watchgod")
21920 ;; There are no tests in the PyPI tarball.
21922 (uri (git-reference
21923 (url "https://github.com/samuelcolvin/watchgod")
21924 (commit (string-append "v" version))))
21925 (file-name (git-file-name name version))
21927 (base32 "1lqx44wkryakgpyqj3m0hsz61bqr07vc7smgzh188374hwvscp66"))))
21928 (build-system python-build-system)
21931 (modify-phases %standard-phases
21934 (invoke "pytest" "-vv"))))))
21936 `(("python-coverage" ,python-coverage)
21937 ("python-docutils" ,python-docutils)
21938 ("python-flake8" ,python-flake8)
21939 ("python-isort" ,python-isort)
21940 ("python-pycodestyle" ,python-pycodestyle)
21941 ("python-pyflakes" ,python-pyflakes)
21942 ("python-pygments" ,python-pygments)
21943 ("python-pytest" ,python-pytest)
21944 ("python-pytest-cov" ,python-pytest-cov)
21945 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
21946 ("python-pytest-mock" ,python-pytest-mock)
21947 ("python-pytest-sugar" ,python-pytest-sugar)
21948 ("python-pytest-toolbox" ,python-pytest-toolbox)))
21949 (home-page "https://github.com/samuelcolvin/watchgod")
21950 (synopsis "Simple, modern file watching and code reload in Python")
21952 "Simple, modern file watching and code reload in Python inspired by
21953 @code{watchdog}. Among the differences are a unified approach for each
21954 operating systems and an elegant approach to concurrency using threading.")
21955 (license license:expat)))
21957 (define-public python-wget
21959 (name "python-wget")
21964 (uri (pypi-uri "wget" version ".zip"))
21967 "0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
21968 (build-system python-build-system)
21969 (native-inputs `(("unzip" ,unzip)))
21970 (home-page "https://bitbucket.org/techtonik/python-wget/")
21971 (synopsis "Pure Python download utility")
21972 (description "The python-wget library provides an API to download files
21973 with features similar to the @command{wget} utility.")
21974 (license license:unlicense)))
21976 (define-public offlate
21983 (uri (git-reference
21984 (url "https://framagit.org/tyreunom/offlate")
21986 (file-name (git-file-name name version))
21989 "13pqnbl05wcyldfvl75fp89vjgwsvxyc69vhnb17kkha2rc2k1h7"))))
21990 (build-system python-build-system)
21995 `(("python-android-stringslib" ,python-android-stringslib)
21996 ("python-dateutil" ,python-dateutil)
21997 ("python-gitlab" ,python-gitlab)
21998 ("python-lxml" ,python-lxml)
21999 ("python-polib" ,python-polib)
22000 ("python-pyenchant" ,python-pyenchant)
22001 ("python-pygit2" ,python-pygit2)
22002 ("python-pygithub" ,python-pygithub)
22003 ("python-pyqt" ,python-pyqt)
22004 ("python-requests" ,python-requests)
22005 ("python-ruamel.yaml" ,python-ruamel.yaml)
22006 ("python-translation-finder" ,python-translation-finder)
22007 ("python-watchdog" ,python-watchdog)))
22009 `(("qttools" ,qttools)))
22010 (home-page "https://framagit.org/tyreunom/offlate")
22011 (synopsis "Offline translation interface for online translation tools")
22012 (description "Offlate offers a unified interface for different translation
22013 file formats, as well as many different online translation platforms. You can
22014 use it to get work from online platforms, specialized such as the Translation
22015 Project, or not such a gitlab instance when your upstream doesn't use any
22016 dedicated platform. The tool proposes a unified interface for any format and
22017 an upload option to send your work back to the platform.")
22018 (license license:gpl3+)))
22020 (define-public python-titlecase
22022 (name "python-titlecase")
22027 (uri (pypi-uri "titlecase" version))
22030 "0486i99wf8ssa7sgn81fn6fv6i4rhhq6n751bc740b3hzfbpmpl4"))))
22031 (build-system python-build-system)
22033 `(("python-nose" ,python-nose)))
22034 (home-page "https://github.com/ppannuto/python-titlecase")
22035 (synopsis "Capitalize strings similar to book titles")
22037 "Python-Titlecase is a Python port of John Gruber's titlecase.pl.
22038 It capitalizes (predominantly English) strings in a way that is similar to
22039 book titles, using the New York Times Manual of Style to leave certain words
22041 (license license:expat)))
22043 (define-public python-pypng
22045 (name "python-pypng")
22050 (uri (pypi-uri "pypng" version))
22052 (base32 "02qpa22ls41vwsrzw9r9qhj1nhq05p03hb5473pay6y980s86chh"))))
22053 (build-system python-build-system)
22054 (home-page "https://github.com/drj11/pypng")
22055 (synopsis "Pure Python PNG image encoder/decoder")
22057 "The PyPNG module implements support for PNG images. It reads and writes
22058 PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
22059 pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
22060 LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
22061 images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
22062 A number of optional chunks can be specified (when writing) and
22063 understood (when reading): tRNS, bKGD, gAMA.
22065 PyPNG is not a high level toolkit for image processing (like PIL) and does not
22066 aim at being a replacement or competitor. Its strength lies in fine-grained
22067 extensive support of PNG features. It can also read and write Netpbm PAM
22068 files, with a focus on its use as an intermediate format for implementing
22069 custom PNG processing.")
22070 (license license:expat)))
22072 (define-public python-fuzzywuzzy
22074 (name "python-fuzzywuzzy")
22079 (uri (pypi-uri "fuzzywuzzy" version))
22082 "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"))))
22083 (build-system python-build-system)
22085 `(("python-hypothesis" ,python-hypothesis)
22086 ("python-pycodestyle" ,python-pycodestyle)
22087 ("python-pytest" ,python-pytest)))
22089 `(("python-levenshtein" ,python-levenshtein)))
22090 (home-page "https://github.com/seatgeek/fuzzywuzzy")
22091 (synopsis "Fuzzy string matching in Python")
22092 (description "Approximate string matching using
22093 @emph{Levenshtein Distance} to calculate the differences between
22095 (license license:gpl2)))
22097 (define-public python2-fuzzywuzzy
22098 (package-with-python2 python-fuzzywuzzy))
22100 (define-public python-block-tracing
22102 (name "python-block-tracing")
22107 (uri (pypi-uri "block_tracing" version))
22110 "0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
22111 (build-system python-build-system)
22112 (arguments '(#:tests? #f)) ; no tests
22113 (home-page "https://github.com/rianhunter/block_tracing")
22114 (synopsis "Protect process memory")
22116 "@code{block_tracing} is a tiny Python library that can be used to
22117 prevent debuggers and other applications from inspecting the memory within
22119 (license license:expat)))
22121 (define-public python-gcovr
22123 (name "python-gcovr")
22128 (uri (pypi-uri "gcovr" version))
22131 "0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs"))))
22132 (build-system python-build-system)
22134 `(("python-lxml" ,python-lxml)
22135 ("python-jinja2" ,python-jinja2)))
22136 (home-page "https://gcovr.com/")
22137 (synopsis "Utility for generating code coverage results")
22139 "Gcovr provides a utility for managing the use of the GNU gcov
22140 utility and generating summarized code coverage results. It is inspired
22141 by the Python coverage.py package, which provides a similar utility for
22143 (license license:bsd-3)))
22145 (define-public python-owslib
22147 (name "python-owslib")
22152 (uri (pypi-uri "OWSLib" version))
22154 (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
22155 (build-system python-build-system)
22157 '(#:tests? #f)) ; TODO: package dependencies required for tests.
22158 (synopsis "Interface for Open Geospatial Consortium web service")
22160 "OWSLib is a Python package for client programming with Open Geospatial
22161 Consortium (OGC) web service (hence OWS) interface standards, and their related
22163 (home-page "https://geopython.github.io/OWSLib/")
22164 (license license:bsd-3)))
22166 (define-public python-docusign-esign
22168 (name "python-docusign-esign")
22172 (uri (pypi-uri "docusign_esign" version))
22175 "01f3h03vc97syjlmqyl7xa5j90pzgmwpspc5a0gra9saynnbkx37"))))
22176 (build-system python-build-system)
22177 ;; Testing requires undocumented setup changes, and so testing is disabled here.
22178 (arguments `(#:tests? #f))
22180 `(("python-certifi" ,python-certifi)
22181 ("python-six" ,python-six)
22182 ("python-dateutil" ,python-dateutil)
22183 ("python-urllib3" ,python-urllib3)
22184 ("python-pyjwt" ,python-pyjwt)
22185 ("python-cryptography" ,python-cryptography)
22186 ("python-nose" ,python-nose)))
22187 (synopsis "DocuSign Python Client")
22188 (description "The Official DocuSign Python Client Library used to interact
22189 with the eSign REST API. Send, sign, and approve documents using this client.")
22190 (home-page "https://www.docusign.com/devcenter")
22191 (license license:expat)))
22193 (define-public python-xattr
22195 (name "python-xattr")
22200 (uri (pypi-uri "xattr" version))
22203 "0i4xyiqbhjz2g16zbim17zjdbjkw79xsw8k59942vvq4is1cmfxh"))))
22204 (build-system python-build-system)
22206 `(("python-cffi" ,python-cffi)))
22207 (home-page "https://github.com/xattr/xattr")
22209 "Python wrapper for extended file system attributes")
22210 (description "This package provides a Python wrapper for using extended
22211 file system attributes. Extended attributes extend the basic attributes of files
22212 and directories in the file system. They are stored as name:data pairs
22213 associated with file system objects (files, directories, symlinks, etc).")
22214 (license license:expat)))
22216 (define-public python-json-logger
22218 (name "python-json-logger")
22223 (uri (pypi-uri "python-json-logger" version))
22226 "10g2ya6nsvn5vxzvq2wb8q4d43i3d7756i5rxyjna6d0y9i138xp"))))
22227 (build-system python-build-system)
22229 "https://github.com/madzak/python-json-logger")
22230 (synopsis "JSON log formatter in Python")
22231 (description "This library allows standard Python logging to output log data
22232 as JSON objects. With JSON we can make our logs more readable by machines and
22233 we can stop writing custom parsers for syslog-type records.")
22234 (license license:bsd-3)))
22236 (define-public python-daiquiri
22238 (name "python-daiquiri")
22243 (uri (pypi-uri "daiquiri" version))
22246 "1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
22247 (build-system python-build-system)
22249 `(("python-json-logger" ,python-json-logger)))
22251 `(("python-mock" ,python-mock)
22252 ("python-pytest" ,python-pytest)
22253 ("python-setuptools-scm" ,python-setuptools-scm)
22254 ("python-six" ,python-six)))
22255 (home-page "https://github.com/jd/daiquiri")
22257 "Library to configure Python logging easily")
22258 (description "The daiquiri library provides an easy way to configure
22259 logging in Python. It also provides some custom formatters and handlers.")
22260 (license license:asl2.0)))
22262 (define-public python-pifpaf
22264 (name "python-pifpaf")
22269 (uri (pypi-uri "pifpaf" version))
22272 "1gy9p4nqf70fh38wn4icyfm7i9wrvx22wnjpg71g89wxbz27igaa"))))
22273 (build-system python-build-system)
22276 (modify-phases %standard-phases
22279 (invoke "python" "setup.py" "testr" "--slowest"
22280 "--testr-args=until-failure"))))))
22282 `(("python-click" ,python-click)
22283 ("python-daiquiri" ,python-daiquiri)
22284 ("python-fixtures" ,python-fixtures)
22285 ("python-jinja2" ,python-jinja2)
22286 ("python-pbr" ,python-pbr)
22287 ("python-psutil" ,python-psutil)
22288 ("python-six" ,python-six)
22289 ("python-xattr" ,python-xattr)))
22291 `(("python-mock" ,python-mock)
22292 ("python-os-testr" ,python-os-testr)
22293 ("python-requests" ,python-requests)
22294 ("python-testrepository" ,python-testrepository)
22295 ("python-testtools" ,python-testtools)))
22296 (home-page "https://github.com/jd/pifpaf")
22297 (synopsis "Tools and fixtures to manage daemons for testing in Python")
22298 (description "Pifpaf is a suite of fixtures and a command-line tool that
22299 starts and stops daemons for a quick throw-away usage. This is typically
22300 useful when needing these daemons to run integration testing. It originally
22301 evolved from its precursor @code{overtest}.")
22302 (license license:asl2.0)))
22304 (define-public python-pytest-check-links
22306 (name "python-pytest-check-links")
22311 ;; URI uses underscores
22312 (uri (pypi-uri "pytest_check_links" version))
22315 "12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
22316 (build-system python-build-system)
22318 `(("python-docutils" ,python-docutils)
22319 ("python-html5lib" ,python-html5lib)
22320 ("python-nbconvert" ,python-nbconvert)
22321 ("python-nbformat" ,python-nbformat)
22322 ("python-pytest" ,python-pytest)
22323 ("python-six" ,python-six)))
22325 `(("python-pbr-minimal" ,python-pbr-minimal)))
22326 (home-page "https://github.com/minrk/pytest-check-links")
22327 (synopsis "Check links in files")
22328 (description "This package provides a pytest plugin that checks URLs for
22329 HTML-containing files.")
22330 (license license:bsd-3)))
22332 (define-public python-json5
22334 (name "python-json5")
22338 ;; sample.json5 is missing from PyPi source tarball
22340 (uri (git-reference
22341 (url "https://github.com/dpranke/pyjson5")
22342 (commit (string-append "v" version))))
22343 (file-name (git-file-name name version))
22345 (base32 "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn"))))
22346 (build-system python-build-system)
22347 (home-page "https://github.com/dpranke/pyjson5")
22349 "Python implementation of the JSON5 data format")
22351 "JSON5 extends the JSON data interchange format to make it slightly more
22352 usable as a configuration language. This Python package implements parsing and
22353 dumping of JSON5 data structures.")
22354 (license license:asl2.0)))
22356 (define-public python-frozendict
22358 (name "python-frozendict")
22363 (uri (pypi-uri "frozendict" version))
22365 (base32 "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"))))
22366 (build-system python-build-system)
22367 (home-page "https://github.com/slezica/python-frozendict")
22368 (synopsis "Simple immutable mapping for Python")
22370 "@dfn{frozendict} is an immutable wrapper around dictionaries that
22371 implements the complete mapping interface. It can be used as a drop-in
22372 replacement for dictionaries where immutability is desired.")
22373 (license license:expat)))
22375 (define-public python-unpaddedbase64
22377 (name "python-unpaddedbase64")
22382 (uri (git-reference
22383 (url "https://github.com/matrix-org/python-unpaddedbase64")
22384 (commit (string-append "v" version))))
22385 (file-name (git-file-name name version))
22388 "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd"))))
22389 (build-system python-build-system)
22390 (home-page "https://pypi.org/project/unpaddedbase64/")
22391 (synopsis "Encode and decode Base64 without “=” padding")
22393 "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
22394 using “=” characters. However this conveys no benefit so many protocols
22395 choose to use Base64 without the “=” padding.")
22396 (license license:asl2.0)))
22398 (define-public python-py-cpuinfo
22400 (name "python-py-cpuinfo")
22405 (uri (pypi-uri "py-cpuinfo" version))
22408 "0045y6832gqjg63jmw0qj2jwyypgjwr7sfdq3lfv49b6fxpl5xic"))))
22409 (build-system python-build-system)
22410 (home-page "https://github.com/workhorsy/py-cpuinfo")
22411 (synopsis "Get CPU info with Python")
22413 "This Python module returns the CPU info by using the best sources of
22414 information for your operating system.")
22415 (license license:expat)))
22417 (define-public python-canonicaljson
22419 (name "python-canonicaljson")
22424 (uri (pypi-uri "canonicaljson" version))
22426 (base32 "0c86g0vvzdcg3nrcsqnbzlfhpprc2i894p8i14hska56yl27d6w9"))))
22427 (build-system python-build-system)
22429 `(("python-six" ,python-six)
22430 ("python-frozendict" ,python-frozendict)
22431 ("python-simplejson" ,python-simplejson)))
22432 (home-page "https://github.com/matrix-org/python-canonicaljson")
22433 (synopsis "Canonical JSON")
22435 "Deterministically encode JSON.
22438 @item Encodes objects and arrays as RFC 7159 JSON.
22439 @item Sorts object keys so that you get the same result each time.
22440 @item Has no insignificant whitespace to make the output as small as possible.
22441 @item Escapes only the characters that must be escaped, U+0000 to
22442 U+0019 / U+0022 / U+0056, to keep the output as small as possible.
22443 @item Uses the shortest escape sequence for each escaped character.
22444 @item Encodes the JSON as UTF-8.
22445 @item Can encode frozendict immutable dictionaries.
22447 (license license:asl2.0)))
22449 (define-public python-signedjson
22451 (name "python-signedjson")
22456 (uri (pypi-uri "signedjson" version))
22458 (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
22459 (build-system python-build-system)
22461 `(("python-canonicaljson" ,python-canonicaljson)
22462 ("python-importlib-metadata" ,python-importlib-metadata)
22463 ("python-pynacl" ,python-pynacl)
22464 ("python-typing-extensions" ,python-typing-extensions)
22465 ("python-unpaddedbase64" ,python-unpaddedbase64)))
22467 `(("python-setuptools-scm" ,python-setuptools-scm)))
22468 (home-page "https://github.com/matrix-org/python-signedjson")
22469 (synopsis "Sign JSON objects with ED25519 signatures")
22471 "Sign JSON objects with ED25519 signatures.
22474 @item More than one entity can sign the same object.
22475 @item Each entity can sign the object with more than one key making it easier to
22477 @item ED25519 can be replaced with a different algorithm.
22478 @item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
22481 (license license:asl2.0)))
22483 (define-public python-daemonize
22485 (name "python-daemonize")
22490 (uri (pypi-uri "daemonize" version))
22492 (base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
22493 (build-system python-build-system)
22494 (home-page "https://github.com/thesharp/daemonize")
22495 (synopsis "Library for writing system daemons in Python")
22496 (description "Daemonize is a library for writing system daemons in Python.")
22497 (license license:expat)))
22499 (define-public python-pymacaroons
22501 (name "python-pymacaroons")
22506 (uri (pypi-uri "pymacaroons" version))
22508 (base32 "1f0357a6g1h96sk6wy030xmc1p4rd80a999qvxd28v7nlm1blsqy"))))
22509 (build-system python-build-system)
22511 `(("python-six" ,python-six)
22512 ("python-pynacl" ,python-pynacl)))
22513 (home-page "https://github.com/ecordell/pymacaroons")
22514 (synopsis "Python Macaroon Library")
22516 "Macaroons, like cookies, are a form of bearer credential. Unlike opaque
22517 tokens, macaroons embed caveats that define specific authorization
22518 requirements for the target service, the service that issued the root macaroon
22519 and which is capable of verifying the integrity of macaroons it receives.
22521 Macaroons allow for delegation and attenuation of authorization. They are
22522 simple and fast to verify, and decouple authorization policy from the
22523 enforcement of that policy.")
22524 (license license:expat)))
22526 (define-public python-ldap3
22528 (name "python-ldap3")
22530 (home-page "https://github.com/cannatag/ldap3")
22534 (uri (git-reference (url home-page)
22535 (commit (string-append "v" version))))
22536 (file-name (git-file-name name version))
22538 (base32 "0xw9fkqld21xsvdpaqir8ccc2l805xnn9gxahsnl70xzp3mwl0xv"))))
22539 (build-system python-build-system)
22541 '(#:tests? #f ;TODO: Tests need a real LDAP server to run
22542 #:phases (modify-phases %standard-phases
22544 (lambda* (#:key tests? #:allow-other-keys)
22546 (invoke "nosetests" "-s" "test"))
22549 `(("python-nose" ,python-nose)))
22551 `(("python-gssapi" ,python-gssapi)
22552 ("python-pyasn1" ,python-pyasn1)))
22553 (synopsis "Python LDAP client")
22555 "LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
22557 (license license:lgpl3+)))
22559 (define-public python-boltons
22561 (name "python-boltons")
22566 (uri (pypi-uri "boltons" version))
22569 "0lrr40qqj3ch8xarvyzbnbjs79pz5aywklllq53l347h1b8xnkg4"))))
22570 (build-system python-build-system)
22571 (home-page "https://github.com/mahmoud/boltons")
22572 (synopsis "Extensions to the Python standard library")
22574 "Boltons is a set of over 230 pure-Python utilities in the same spirit
22575 as — and yet conspicuously missing from — the standard library, including:
22578 @item Atomic file saving, bolted on with fileutils
22579 @item A highly-optimized OrderedMultiDict, in dictutils
22580 @item Two types of PriorityQueue, in queueutils
22581 @item Chunked and windowed iteration, in iterutils
22582 @item Recursive data structure iteration and merging, with iterutils.remap
22583 @item Exponential backoff functionality, including jitter, through
22585 @item A full-featured TracebackInfo type, for representing stack traces, in
22588 (license license:bsd-3)))
22590 (define-public python-eliot
22592 (name "python-eliot")
22597 (uri (pypi-uri "eliot" version))
22599 (base32 "0wabv7hk63l12881f4zw02mmj06583qsx2im0yywdjlj8f56vqdn"))))
22600 (build-system python-build-system)
22603 (modify-phases %standard-phases
22604 (add-after 'unpack 'remove-journald-support
22606 (for-each delete-file
22607 '("eliot/tests/test_journald.py"
22608 "eliot/journald.py"))
22610 (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
22611 ;; remove command-line tool's tests. TODO eliot-prettyprint should
22612 ;; be installed and these tests should pass.
22614 (delete-file "eliot/tests/test_prettyprint.py")
22617 `(("python-boltons" ,python-boltons)
22618 ("python-pyrsistent" ,python-pyrsistent)
22619 ("python-six" ,python-six)
22620 ("python-zope-interface" ,python-zope-interface)))
22622 `(("python-black" ,python-black)
22623 ("python-coverage" ,python-coverage)
22624 ("python-dask" ,python-dask)
22625 ("python-flake8" ,python-flake8)
22626 ("python-hypothesis" ,python-hypothesis)
22627 ("python-pytest" ,python-pytest)
22628 ("python-setuptools" ,python-setuptools)
22629 ("python-sphinx" ,python-sphinx)
22630 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
22631 ("python-testtools" ,python-testtools)
22632 ("python-twine" ,python-twine)
22633 ("python-twisted" ,python-twisted)))
22634 (home-page "https://github.com/itamarst/eliot/")
22635 (synopsis "Eliot: the logging system that tells you why it happened")
22637 "@dfn{eliot} is a Python logging system that outputs causal chains of
22638 actions: actions can spawn other actions, and eventually they either succeed
22639 or fail. The resulting logs tell you the story of what your software did: what
22640 happened, and what caused it.")
22641 (license license:asl2.0)))
22643 (define-public python-pem
22645 (name "python-pem")
22650 (uri (pypi-uri "pem" version))
22653 "1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7"))))
22654 (build-system python-build-system)
22656 `(("python-certifi" ,python-certifi)
22657 ("python-coverage" ,python-coverage)
22658 ("python-pretend" ,python-pretend)
22659 ("python-pyopenssl" ,python-pyopenssl)
22660 ("python-pytest" ,python-pytest)
22661 ("python-sphinx" ,python-sphinx)
22662 ("python-twisted" ,python-twisted)))
22663 (home-page "https://pem.readthedocs.io/")
22664 (synopsis "Easy PEM file parsing in Python")
22666 "This package provides a Python module for parsing and splitting PEM files.")
22667 (license license:expat)))
22669 (define-public python-txsni
22670 ;; We need a few commits on top of 0.1.9 for compatibility with newer
22671 ;; Python and OpenSSL.
22672 (let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
22675 (name "python-txsni")
22676 (version (git-version "0.1.9" revision commit))
22677 (home-page "https://github.com/glyph/txsni")
22681 (uri (git-reference (url home-page) (commit commit)))
22682 (file-name (git-file-name name version))
22685 "0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
22686 (build-system python-build-system)
22688 `(("python-pyopenssl" ,python-pyopenssl)
22689 ("python-service-identity" ,python-service-identity)
22690 ("python-twisted" ,python-twisted)))
22691 (synopsis "Run TLS servers with Twisted")
22693 "This package provides an easy-to-use SNI endpoint for use
22694 with the Twisted web framework.")
22695 (license license:expat))))
22697 (define-public python-txacme
22699 (name "python-txacme")
22704 (uri (pypi-uri "txacme" version))
22706 (base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
22707 (build-system python-build-system)
22709 `(("python-acme" ,python-acme)
22710 ("python-attrs" ,python-attrs)
22711 ("python-eliot" ,python-eliot)
22712 ("python-josepy" ,python-josepy)
22713 ("python-pem" ,python-pem)
22714 ("python-treq" ,python-treq)
22715 ("python-twisted" ,python-twisted)
22716 ("python-txsni" ,python-txsni)))
22718 `(("python-fixtures" ,python-fixtures)
22719 ("python-hypothesis" ,python-hypothesis)
22720 ("python-mock" ,python-mock)
22721 ("python-service-identity"
22722 ,python-service-identity)
22723 ("python-testrepository" ,python-testrepository)
22724 ("python-testscenarios" ,python-testscenarios)
22725 ("python-testtools" ,python-testtools)))
22726 (home-page "https://github.com/twisted/txacme")
22727 (synopsis "Twisted implexmentation of the ACME protocol")
22729 "ACME is Automatic Certificate Management Environment, a protocol that
22730 allows clients and certificate authorities to automate verification and
22731 certificate issuance. The ACME protocol is used by the free Let's Encrypt
22732 Certificate Authority.
22734 txacme is an implementation of the protocol for Twisted, the event-driven
22735 networking engine for Python.")
22736 (license license:expat)))
22738 (define-public python-pysaml2
22740 (name "python-pysaml2")
22745 (uri (pypi-uri "pysaml2" version))
22748 "1xk2x0slz1f8cqv7vn77qx99xfd1mshhswiwrljk9m72w2m9iivd"))))
22749 (build-system python-build-system)
22751 `(("python-cryptography" ,python-cryptography)
22752 ("python-dateutil" ,python-dateutil)
22753 ("python-defusedxml" ,python-defusedxml)
22754 ("python-importlib-resources"
22755 ,python-importlib-resources)
22756 ("python-pyopenssl" ,python-pyopenssl)
22757 ("python-pytz" ,python-pytz)
22758 ("python-requests" ,python-requests)
22759 ("python-six" ,python-six)
22760 ("python-xmlschema" ,python-xmlschema)))
22761 (home-page "https://idpy.org")
22762 (synopsis "Python implementation of SAML Version 2 Standard")
22764 "PySAML2 is a pure python implementation of SAML Version 2 Standard.
22765 It contains all necessary pieces for building a SAML2 service provider or
22766 an identity provider. The distribution contains examples of both.
22768 This package was originally written to work in a WSGI environment, but
22769 there are extensions that allow you to use it with other frameworks.")
22770 (license license:asl2.0)))
22772 (define-public python-click-plugins
22774 (name "python-click-plugins")
22779 (uri (pypi-uri "click-plugins" version))
22781 (base32 "0jr6bxj67vg988vkm6nz8jj98v9lg46bn49lkhak3n598jbrkas6"))))
22782 (build-system python-build-system)
22784 `(("python-pytest" ,python-pytest)))
22786 `(("python-click" ,python-click)))
22787 (synopsis "Extension for Click to register external CLI commands")
22788 (description "This package provides n extension module for Click to
22789 register external CLI commands via setuptools entry-points.")
22790 (home-page "https://github.com/click-contrib/click-plugins")
22791 (license license:bsd-3)))
22793 (define-public python-diceware
22795 (name "python-diceware")
22800 (uri (pypi-uri "diceware" version))
22803 "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby"))))
22804 (build-system python-build-system)
22806 `(("python-coverage" ,python-coverage)
22807 ("python-pytest" ,python-pytest)
22808 ("python-pytest-runner" ,python-pytest-runner)))
22809 (home-page "https://github.com/ulif/diceware/")
22810 (synopsis "Generates memorable passphrases")
22811 (description "This package generates passphrases by concatenating words
22812 randomly picked from wordlists. It supports several sources of
22813 randomness (including real life dice) and different wordlists (including
22814 cryptographically signed ones).")
22815 (license license:gpl3+)))
22817 (define-public python-dictdiffer
22819 (name "python-dictdiffer")
22823 (uri (pypi-uri "dictdiffer" version))
22826 "1lk3qmy1hkaphk4n7ayfk0wl6m2yvd6r7qkam6yncqfzgkbc1phs"))))
22827 (build-system python-build-system)
22829 `(("python-check-manifest" ,python-check-manifest)
22830 ("python-coverage" ,python-coverage)
22831 ("python-isort" ,python-isort)
22832 ("python-mock" ,python-mock)
22833 ("python-pydoctstyle" ,python-pydocstyle)
22834 ("python-pytest-cache" ,python-pytest-cache)
22835 ("python-pytest-cov" ,python-pytest-cov)
22836 ("python-pytest-pep8" ,python-pytest-pep8)
22837 ("python-pytest-runner" ,python-pytest-runner)
22838 ("python-pytest" ,python-pytest)
22839 ("python-setuptools-scm" ,python-setuptools-scm)
22840 ("python-tox" ,python-tox)))
22841 (home-page "https://github.com/inveniosoftware/dictdiffer")
22842 (synopsis "Diff and patch Python dictionary objects")
22844 "Dictdiffer is a Python module that helps you to diff and patch
22846 (license license:expat)))
22848 (define-public pyzo
22855 (uri (pypi-uri "pyzo" version))
22857 (base32 "1jk5f79lj09vnsdk9h01w21p9h49z2hhf8xhkx8471pjbg9vrlzr"))))
22858 (build-system python-build-system)
22861 (modify-phases %standard-phases
22862 (add-before 'check 'fix-home-directory
22864 ;; Tests fail with "Permission denied: '/homeless-shelter'".
22865 (setenv "HOME" "/tmp")
22867 ;; Tests fail with "Uncaught Python exception: python: undefined
22868 ;; symbol: objc_getClass".
22871 `(("python-pyqt" ,python-pyqt)))
22872 (home-page "https://pyzo.org")
22874 "Python IDE for scientific computing")
22876 "Pyzo is a Python IDE focused on interactivity and introspection,
22877 which makes it very suitable for scientific computing. Its practical
22878 design is aimed at simplicity and efficiency.
22880 It consists of two main components, the editor and the shell, and uses
22881 a set of pluggable tools to help the programmer in various ways. Some
22882 example tools are source structure, project manager, interactive help,
22884 (license license:bsd-2)))
22886 (define-public python-osc
22888 (name "python-osc")
22893 (uri (pypi-uri "python-osc" version))
22896 "0cnh0z5lnng7fh48nmfaqqn8j25k13gkd4rhxd3m6sjqiix9s3vn"))))
22897 (build-system python-build-system)
22898 (home-page "https://github.com/attwad/python-osc")
22899 (synopsis "Open Sound Control server and client implementations")
22901 "@code{python-osc} is a pure Python library with no external
22902 dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
22903 Open Sound Control 1.0} specification.")
22904 (license license:unlicense)))
22906 (define-public python-voluptuous
22908 (name "python-voluptuous")
22913 (uri (pypi-uri "voluptuous" version))
22916 "0mplkcpb5d8wjf8vk195fys4y6a3wbibiyf708imw33lphfk9g1a"))))
22917 (build-system python-build-system)
22919 `(("python-nose" ,python-nose)))
22920 (home-page "https://github.com/alecthomas/voluptuous")
22921 (synopsis "Python data validation library")
22923 "Voluptuous is a Python data validation library. It is primarily
22924 intended for validating data coming into Python as JSON, YAML, etc.")
22925 (license license:bsd-3)))
22927 (define-public python-cmd2
22929 (name "python-cmd2")
22934 (uri (pypi-uri "cmd2" version))
22937 "1f18plbc9yyvhn0js3d2bii9yld8zfl775gxsaw9jza5pmlg9ss2"))))
22938 (build-system python-build-system)
22940 `(("python-attrs" ,python-attrs)
22941 ("python-colorama" ,python-colorama)
22942 ("python-pyperclip" ,python-pyperclip)
22943 ("python-wcwidth" ,python-wcwidth)))
22945 `(("python-codecov" ,python-codecov)
22946 ("python-coverage" ,python-coverage)
22947 ("python-doc8" ,python-doc8)
22948 ("python-flake8" ,python-flake8)
22949 ("python-invoke" ,python-invoke)
22950 ("python-mock" ,python-mock)
22951 ("python-pytest" ,python-pytest)
22952 ("python-pytest-cov" ,python-pytest-cov)
22953 ("python-pytest-mock" ,python-pytest-mock)
22954 ("python-setuptools-scm" ,python-setuptools-scm)
22955 ("python-sphinx" ,python-sphinx)
22956 ("python-sphinx-autobuild" ,python-sphinx-autobuild)
22957 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
22958 ("python-tox" ,python-tox)
22959 ("python-twine" ,python-twine)
22961 (home-page "https://github.com/python-cmd2/cmd2")
22962 (synopsis "Tool for building interactive command line applications")
22964 "Cmd2 is a tool for building interactive command line applications in
22965 Python. Its goal is to make it quick and easy for developers to build
22966 feature-rich and user-friendly interactive command line applications. It
22967 provides a simple API which is an extension of Python's built-in @code{cmd}
22968 module. @code{cmd2} provides a wealth of features on top of @code{cmd} to
22969 make your life easier and eliminates much of the boilerplate code which would
22970 be necessary when using @code{cmd}.")
22971 (license license:expat)))
22973 (define-public python-pytidylib
22975 (name "python-pytidylib")
22979 (uri (pypi-uri "pytidylib" version))
22982 "1wqa9dv5d7swka14rnky862hc7dgk2g3dhlrz57hdn3hb7bwic92"))))
22983 (build-system python-build-system)
22986 (modify-phases %standard-phases
22987 (add-before 'build 'qualify-libtidy
22988 (lambda* (#:key inputs #:allow-other-keys)
22989 (let ((libtidy (string-append (assoc-ref inputs "tidy")
22990 "/lib/libtidy.so")))
22991 (substitute* "tidylib/tidy.py"
22992 (("ctypes\\.util\\.find_library\\('tidy'\\)")
22993 (format #f "'~a'" libtidy)))
22995 (inputs `(("tidy" ,tidy)))
22996 (home-page "https://github.com/countergram/pytidylib")
22997 (synopsis "Python wrapper for HTML Tidy library")
22999 "PyTidyLib is a Python package that wraps the HTML Tidy library. This
23000 allows you, from Python code, to “fix” invalid (X)HTML markup.")
23001 (license license:expat)))
23003 (define-public python2-pytidylib
23004 (package-with-python2 python-pytidylib))
23006 (define-public python-mujson
23008 (name "python-mujson")
23013 (uri (pypi-uri "mujson" version))
23016 "0wbj6r8yzsdx2b0kbldlkznr1a9nn33za2q9x3g0hbg420dwzn97"))))
23017 (build-system python-build-system)
23018 (home-page "https://github.com/mattgiles/mujson")
23019 (synopsis "Use the fastest JSON functions available at import time")
23020 (description "This package selects the fastest JSON functions available
23022 (license license:expat)))
23024 (define-public python-bashlex
23026 (name "python-bashlex")
23031 (uri (pypi-uri "bashlex" version))
23034 "1z9g96fgsfpdwawp4sb5x6hbdhmda7kgmcrqlf9xx4bs1f8f14js"))))
23035 (build-system python-build-system)
23038 (modify-phases %standard-phases
23039 (add-before 'build 'pregenerate-yacc-tables
23041 ;; parser.py caches tables, which attempts to write to site lib
23042 ;; see https://github.com/idank/bashlex/issues/51
23043 (invoke "python" "-c" "import bashlex"))))))
23045 "https://github.com/idank/bashlex")
23046 (synopsis "Python parser for bash")
23047 (description "@code{bashlex} is a Python port of the parser used
23048 internally by GNU bash.
23050 For the most part it's transliterated from C, the major differences are:
23053 @item it does not execute anything
23054 @item it is reentrant
23055 @item it generates a complete AST
23058 (license license:gpl3+)))
23060 (define-public python-jinxed
23062 (name "python-jinxed")
23067 (uri (pypi-uri "jinxed" version))
23070 "1n7vl03rhjd0xhjgbjlh8x9f8yfbhamcwkgvs4jg7g5qj8f0wk89"))))
23071 (build-system python-build-system)
23074 (modify-phases %standard-phases
23075 (add-before 'check 'set-environment-variables
23076 (lambda* (#:key inputs #:allow-other-keys)
23077 (let ((ncurses (assoc-ref inputs "ncurses")))
23078 (setenv "TERM" "LINUX")
23079 (setenv "TERMINFO" (string-append ncurses "/share/terminfo"))
23081 #:tests? #f)) ; _curses.error: setupterm: could not find terminal
23083 `(("ncurses" ,ncurses)))
23084 (home-page "https://github.com/Rockhopper-Technologies/jinxed")
23085 (synopsis "Jinxed Terminal Library")
23087 "Jinxed is an implementation of a subset of the Python curses library.")
23088 (license license:mpl2.0)))
23090 (define-public python-blessed
23092 (name "python-blessed")
23097 (uri (pypi-uri "blessed" version))
23100 "1wdj342sk22hfrg0n91x2qnqsbzbiyq9y009v3pxnvfzn9bx0wbn"))
23101 (modules '((guix build utils)))
23104 ;; Don't get hung up on Windows test failures.
23105 (delete-file "blessed/win_terminal.py") #t))))
23106 (build-system python-build-system)
23108 `(("python-jinxed" ,python-jinxed)
23109 ("python-six" ,python-six)
23110 ("python-wcwidth" ,python-wcwidth)))
23112 `(("python-mock" ,python-mock)
23113 ("python-pytest" ,python-pytest)))
23114 (home-page "https://github.com/jquast/blessed")
23115 (synopsis "Wrapper around terminal capabilities")
23117 "Blessed is a thin, practical wrapper around terminal styling, screen
23118 positioning, and keyboard input.")
23119 (license license:expat)))
23121 (define-public python-readme-renderer
23123 (name "python-readme-renderer")
23128 (uri (pypi-uri "readme_renderer" version))
23131 "13fnrv7z3y0yfafzcjbl55cqxncvbxadr72ql4l29pgyvrqxpsfb"))))
23132 (build-system python-build-system)
23134 `(("python-bleach" ,python-bleach)
23135 ("python-docutils" ,python-docutils)
23136 ("python-pygments" ,python-pygments)
23137 ("python-six" ,python-six)))
23139 `(("python-mock" ,python-mock)
23140 ("python-pytest" ,python-pytest)))
23141 (home-page "https://github.com/pypa/readme_renderer")
23142 (synopsis "Render README files in Warehouse")
23144 "Readme Renderer is a library that will safely render arbitrary README
23145 files into HTML. It is designed to be used in Warehouse to render the
23146 @code{long_description} for packages. It can handle Markdown, reStructuredText,
23148 (license license:asl2.0)))
23150 (define-public python-lazr-delegates
23152 (name "python-lazr-delegates")
23157 (uri (pypi-uri "lazr.delegates" version))
23160 "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx"))))
23161 (build-system python-build-system)
23164 (modify-phases %standard-phases
23167 (invoke "python" "setup.py" "nosetests"))))))
23169 `(("python-nose" ,python-nose)))
23171 `(("python-zope-interface" ,python-zope-interface)))
23172 (home-page "https://launchpad.net/lazr.delegates")
23173 (synopsis "Easily write objects that delegate behavior")
23175 "The @code{lazr.delegates} package makes it easy to write objects that
23176 delegate behavior to another object. The new object adds some property or
23177 behavior on to the other object, while still providing the underlying interface,
23178 and delegating behavior.")
23179 (license license:lgpl3)))
23181 (define-public python-lazr-config
23183 (name "python-lazr-config")
23188 (uri (pypi-uri "lazr.config" version))
23191 "11xpddgyhyj7sf27wbmrq5lnqk21wnprx3ajycgwlxjamh6sgffd"))))
23192 (build-system python-build-system)
23195 (modify-phases %standard-phases
23198 (invoke "python" "-s" "-m" "nose" "-P" "lazr"))))))
23200 `(("python-nose" ,python-nose)))
23202 `(("python-lazr-delegates" ,python-lazr-delegates)
23203 ("python-zope-interface" ,python-zope-interface)))
23204 (home-page "https://launchpad.net/lazr.config")
23205 (synopsis "Create configuration schemas and process and validate configurations")
23207 "The LAZR config system is typically used to manage process configuration.
23208 Process configuration is for saying how things change when we run systems on
23209 different machines, or under different circumstances. This system uses ini-like
23210 file format of section, keys, and values. The config file supports inheritance
23211 to minimize duplication of information across files. The format supports schema
23213 (license license:lgpl3)))
23215 (define-public python-flufl-bounce
23217 (name "python-flufl-bounce")
23222 (uri (pypi-uri "flufl.bounce" version))
23225 "01lg1b0jpf8605mzaz9miq3nray6s7a7gc8n4wzg5nsxl8fglcp4"))))
23226 (build-system python-build-system)
23228 `(("python-atpublic" ,python-atpublic)
23229 ("python-zope-interface" ,python-zope-interface)))
23231 `(("python-nose2" ,python-nose2)))
23232 (home-page "https://fluflbounce.readthedocs.io/en/latest/")
23233 (synopsis "Email bounce detectors")
23234 (description "The @code{flufl.bounce} library provides a set of heuristics
23235 and an API for detecting the original bouncing email addresses from a bounce
23236 message. Many formats found in the wild are supported, as are VERP and
23238 (license (list license:asl2.0
23239 license:lgpl3)))) ; only for setup_headers.py
23241 (define-public python-flufl-i18n
23243 (name "python-flufl-i18n")
23248 (uri (pypi-uri "flufl.i18n" version))
23251 "1flwpn1xhgc957zj3zxw92dhdjh0lsy0hdvzq32dzqpsajfsvq1r"))))
23252 (build-system python-build-system)
23254 `(("python-atpublic" ,python-atpublic)))
23255 (home-page "https://flufli18n.readthedocs.io")
23256 (synopsis "API for Python internationalization")
23258 "This package provides a high-level, convenient API for managing
23259 internationalization/translation contexts in Python applications. There is a
23260 simple API for single-context applications, such as command line scripts which
23261 only need to translate into one language during the entire course of their
23262 execution. There is a more flexible, but still convenient API for multi-context
23263 applications, such as servers, which may need to switch language contexts for
23265 (license license:asl2.0)))
23267 (define-public python-flufl-lock
23269 (name "python-flufl-lock")
23274 (uri (pypi-uri "flufl.lock" version))
23277 "055941zyma3wfx25jhm8wcsghpv3jc3iwi1gdrdjhzcnfhn62lxq"))))
23278 (build-system python-build-system)
23280 `(("python-atpublic" ,python-atpublic)
23281 ("python-psutil" ,python-psutil)))
23282 (home-page "https://flufllock.readthedocs.io")
23283 (synopsis "NFS-safe file locking with timeouts for POSIX systems")
23285 "The @dfn{flufl.lock} package provides NFS-safe file locking with
23286 timeouts for POSIX systems. It is similar to the @code{O_EXCL} option of the
23287 @code{open} system call but uses a lockfile. Lock objects support lock-breaking
23288 and have a maximum lifetime built-in.")
23289 (license (list license:asl2.0
23290 license:lgpl3)))) ; only for setup_helpers.py
23292 (define-public python-flufl-testing
23294 (name "python-flufl-testing")
23299 (uri (pypi-uri "flufl.testing" version))
23302 "1nkm95mhcfhl4x5jgs6y97ikszaxsfh07nyawsih6cxxm6l62641"))))
23303 (build-system python-build-system)
23305 `(("python-nose2" ,python-nose2)))
23306 (home-page "https://gitlab.com/warsaw/flufl.testing")
23307 (synopsis "Collection of test tool plugins")
23309 "This package contains a small collection of test tool plugins for
23310 @code{nose2} and @code{flake8}.")
23311 (license license:asl2.0)))
23313 (define-public python-devtools
23315 (name "python-devtools")
23320 (uri (git-reference
23321 (url "https://github.com/samuelcolvin/python-devtools")
23322 (commit (string-append "v" version))))
23323 (file-name (git-file-name name version))
23325 (base32 "15zczdcm90wl54c68f1qjb05nkd5bjsc9xjl3lk4frs7k7wkmrvp"))))
23326 (build-system python-build-system)
23328 `(("python-pytest" ,python-pytest)
23329 ("python-pytest-mock" ,python-pytest-mock)))
23331 `(("python-pygments" ,python-pygments)))
23333 `(#:phases (modify-phases %standard-phases
23338 (home-page "https://github.com/samuelcolvin/python-devtools")
23339 (synopsis "Debug command and development tools")
23341 "This package provides a debug print command and other development tools.
23342 It adds a simple and readable way to print stuff during development.")
23343 (license license:expat)))
23345 (define-public python-dateparser
23347 (name "python-dateparser")
23352 (uri (pypi-uri "dateparser" version))
23355 "1ypbyqxlk7n6zibk90js3ybz37xmin3kk0i35g8c51bwqpcfyxg8"))))
23356 (build-system python-build-system)
23358 `(("python-dateutil" ,python-dateutil)
23359 ("python-pytz" ,python-pytz)
23360 ("python-regex" ,python-regex)
23361 ("python-ruamel.yaml" ,python-ruamel.yaml)
23362 ("python-tzlocal" ,python-tzlocal)))
23364 `(("python-mock" ,python-mock)
23365 ("python-parameterized" ,python-parameterized)
23366 ("tzdata" ,tzdata-for-tests)))
23368 `(;; TODO: Of 23320 tests, 6 fail and 53 error.
23371 (modify-phases %standard-phases
23372 (add-before 'check 'set-check-environment
23373 (lambda* (#:key inputs #:allow-other-keys)
23374 (setenv "TZ" "UTC")
23376 (string-append (assoc-ref inputs "tzdata")
23377 "/share/zoneinfo"))
23379 (home-page "https://github.com/scrapinghub/dateparser")
23381 "Date parsing library designed to parse dates from HTML pages")
23383 "@code{python-dateparser} provides modules to easily parse localized
23384 dates in almost any string formats commonly found on web pages.")
23385 (license license:bsd-3)))
23387 (define-public python-dparse
23389 (name "python-dparse")
23394 (uri (pypi-uri "dparse" version))
23397 "0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1"))))
23398 (build-system python-build-system)
23400 `(("python-pytest" ,python-pytest)))
23402 `(("python-packaging" ,python-packaging)
23403 ("python-pyyaml" ,python-pyyaml)
23404 ("python-toml" ,python-toml)))
23405 (home-page "https://github.com/pyupio/dparse")
23406 (synopsis "Parser for Python dependency files")
23407 (description "This package provides a parser for Python dependency files.")
23408 (license license:expat)))
23410 (define-public python-dpath
23412 (name "python-dpath")
23417 (uri (pypi-uri "dpath" version))
23420 "1ymi9ssk7i0mx3mviplf4csfvzibdd6wyj4qzj6s487n9xgnp85y"))))
23421 (build-system python-build-system)
23423 `(("python-hypothesis" ,python-hypothesis)
23424 ("python-mock" ,python-mock)
23425 ("python-nose" ,python-nose)))
23428 (modify-phases %standard-phases
23430 (lambda* (#:key inputs outputs #:allow-other-keys)
23431 (add-installed-pythonpath inputs outputs)
23432 ;; This invokation is taken from tox.ini.
23433 (invoke "nosetests" "-d" "-v" "tests/"))))))
23434 (home-page "https://github.com/akesterson/dpath-python")
23435 (synopsis "Filesystem-like pathing and searching for dictionaries")
23437 "@code{python-dpath} is a library for accessing and searching
23438 dictionaries via /slashed/paths ala xpath.
23440 Basically it lets you glob over a dictionary as if it were a filesystem. It
23441 allows you to specify globs (ala the bash eglob syntax, through some advanced
23442 fnmatch.fnmatch magic) to access dictionary elements, and provides some
23443 facility for filtering those results.")
23444 (license license:expat)))
23446 (define-public python-safety
23448 (name "python-safety")
23453 (uri (pypi-uri "safety" version))
23456 "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
23457 (build-system python-build-system)
23460 (modify-phases %standard-phases
23461 (add-after 'unpack 'disable-tests
23463 (substitute* "tests/test_safety.py"
23464 ;; requires network
23465 (("def test_check_live") "def _test_check_live"))
23468 `(("python-click" ,python-click)
23469 ("python-dparse" ,python-dparse)
23470 ("python-packaging" ,python-packaging)
23471 ("python-requests" ,python-requests)))
23472 (home-page "https://github.com/pyupio/safety")
23473 (synopsis "Check installed dependencies for known vulnerabilities")
23474 (description "Safety checks installed dependencies for known vulnerabilities.
23475 By default it uses the open Python vulnerability database Safety DB.")
23476 (license license:expat)))
23478 (define-public python-pypandoc
23480 (name "python-pypandoc")
23485 (uri (pypi-uri "pypandoc" version))
23488 "1zvn9764cf7kkjkmr9gw6wc8adpk06qxr1rhxwa9pg0zmdvrk90l"))))
23489 (build-system python-build-system)
23491 `(("pandoc" ,pandoc)
23492 ("pandoc-citeproc" ,pandoc-citeproc)))
23494 `(("wheel" ,python-wheel)))
23496 `(("texlive" ,(texlive-union (list texlive-amsfonts
23498 texlive-latex-hyperref
23499 texlive-latex-oberdiek
23501 texlive-xcolor)))))
23504 (modify-phases %standard-phases
23505 (add-before 'check 'disable-tests
23507 ;; Disable test requiring network access
23508 (substitute* "tests.py"
23509 (("test_basic_conversion_from_http_url")
23510 "skip_test_basic_conversion_from_http_url"))
23511 ;; Needed by texlive-union to generate fonts
23512 (setenv "HOME" "/tmp")
23514 (home-page "https://github.com/bebraw/pypandoc")
23515 (synopsis "Python wrapper for pandoc")
23516 (description "pypandoc is a thin Python wrapper around pandoc
23517 and pandoc-citeproc.")
23518 (license license:expat)))
23520 (define-public python-rnc2rng
23522 (name "python-rnc2rng")
23527 (uri (pypi-uri "rnc2rng" version))
23530 "1kmp3iwxxyzjsd47j2sprd47ihhkwhb3yydih3af5bbfq0ibh1w8"))))
23531 (build-system python-build-system)
23533 `(("python-rply" ,python-rply)))
23535 `(#:phases (modify-phases %standard-phases
23538 (invoke "python" "test.py"))))))
23539 (home-page "https://github.com/djc/rnc2rng")
23540 (synopsis "Convert RELAX NG Compact to regular syntax")
23542 "This package provides the @command{rnc2rng} command-line tool as well as
23543 a Python library to convert RELAX NG schemata in Compact syntax (rnc) to
23544 equivalent schemata in the XML-based default RELAX NG syntax.")
23545 (license license:expat)))
23547 (define-public python-telethon
23549 (name "python-telethon")
23554 (uri (git-reference
23555 (url "https://github.com/LonamiWebs/Telethon")
23556 (commit (string-append "v" version))))
23557 (file-name (git-file-name name version))
23559 (base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))))
23560 (build-system python-build-system)
23563 (modify-phases %standard-phases
23565 (lambda* (#:key tests? #:allow-other-keys)
23567 (invoke "py.test" "-v"))
23570 `(("python-rsa" ,python-rsa)
23571 ("python-pyaes" ,python-pyaes)))
23573 `(("python-pytest" ,python-pytest)
23574 ("python-pytest-asyncio" ,python-pytest-asyncio)
23575 ("python-pytest-trio" ,python-pytest-trio)))
23576 (home-page "https://docs.telethon.dev")
23577 (synopsis "Full-featured Telegram client library for Python 3")
23578 (description "This library is designed to make it easy to write Python
23579 programs that can interact with Telegram.")
23580 (license license:expat)))
23582 (define-public python-citeproc-py
23584 (name "python-citeproc-py")
23589 (uri (pypi-uri "citeproc-py" version))
23592 "00aaff50jy4j0nakdzq9258z1gzrac9baarli2ymgspj88jg5968"))))
23593 (build-system python-build-system)
23595 `(("python-lxml" ,python-lxml)
23596 ("python-rnc2rng" ,python-rnc2rng)))
23598 "https://github.com/brechtm/citeproc-py")
23599 (synopsis "Citations and bibliography formatter")
23601 "Citeproc-py is a CSL processor for Python. It aims to implement the
23602 CSL 1.0.1 specification. citeproc-py can output styled citations and
23603 bibliographies in a number of different output formats. Currently supported
23604 are plain text, reStructuredText and HTML.")
23605 (license license:bsd-2)))
23607 (define-public python-inform
23609 (name "python-inform")
23614 (uri (pypi-uri "inform" version))
23617 "0dvc5klbnbryrvspp45nmlg02g40j7xspcz7lqsm0c0dj0z29zdz"))))
23618 (build-system python-build-system)
23620 `(#:tests? #f)) ; PyPI tarball lacks tests
23622 `(("python-hypothesis" ,python-hypothesis)
23623 ("python-pytest-cov" ,python-pytest-cov)
23624 ("python-pytest-runner" ,python-pytest-runner)))
23626 `(("python-arrow" ,python-arrow)
23627 ("python-six" ,python-six)))
23628 (home-page "https://inform.readthedocs.io")
23629 (synopsis "Print & logging utilities for communicating with user")
23631 "Inform is designed to display messages from programs that are typically run from
23632 a console. It provides a collection of ‘print’ functions that allow you to simply and
23633 cleanly print different types of messages.")
23634 (license license:gpl3+)))
23636 (define-public python-nestedtext
23638 (name "python-nestedtext")
23643 (uri (pypi-uri "nestedtext" version))
23646 "0xjx863n7yd1xmkwhy48lhmqrmlzgbx3civhk386hvrzyq4sx148"))))
23647 (build-system python-build-system)
23649 `(#:tests? #f)) ; PyPI tarball lacks tests
23651 `(("python-inform" ,python-inform)))
23652 (home-page "https://nestedtext.org")
23653 (synopsis "Human readable and writable data interchange format")
23655 "NestedText is a file format for holding data that is to be entered, edited, or
23656 viewed by people. It allows data to be organized into a nested collection of
23657 dictionaries, lists, and strings. In this way it is similar to JSON and YAML, but
23658 without the complexity and risk of YAML and without the syntatic clutter of JSON.
23659 NestedText is both simple and natural. Only a small number of concepts and rules must
23660 be kept in mind when creating it. It is easily created, modified, or viewed with
23661 a text editor and easily understood and used by both programmers and non-programmers.")
23662 (license license:expat))) ; MIT license
23664 (define-public python-parallel
23666 (name "python-parallel")
23667 (version "1.6.4.4")
23671 (uri (string-append
23672 "https://www.parallelpython.com/downloads/pp/pp-"
23676 "1mzk4yabxj6r149fswhis18hd8dnag5sj8i4wb06450zq3pi8dh7"))))
23678 `(("unzip" ,unzip)))
23679 (build-system python-build-system)
23680 (arguments '(#:tests? #f)) ; No test suite.
23681 (home-page "https://www.parallelpython.com")
23682 (synopsis "Parallel and distributed programming for Python")
23683 (description "Parallel Python module (PP) provides an easy and efficient
23684 way to create parallel-enabled applications for SMP computers and clusters.
23685 PP module features cross-platform portability and dynamic load balancing.
23686 Thus applications written with PP will parallelize efficiently even on
23687 heterogeneous and multi-platform clusters (including clusters running other
23688 applications with variable CPU loads).")
23689 (license license:bsd-3)))
23691 (define-public python2-parallel
23692 (package-with-python2 python-parallel))
23694 (define-public python-djvulibre
23696 (name "python-djvulibre")
23701 (uri (pypi-uri "python-djvulibre" version))
23703 (base32 "1c0lvpg7j2525cv52s3q5sg7hfnakkb8rmghg0jc02gshsxmrj4f"))))
23704 (build-system python-build-system)
23706 `(("ghostscript" ,ghostscript)
23707 ("pkg-config" ,pkg-config)
23708 ("python-nose" ,python-nose)))
23710 `(("djvulibre" ,djvulibre)
23711 ("python-cython" ,python-cython)))
23714 (modify-phases %standard-phases
23715 (add-after 'unpack 'fix-tests
23717 ;; Unit tests try to load the 'dllpath.py' and fail, because it
23718 ;; doesn't make sense on GNU/Linux.
23719 (delete-file "djvu/dllpath.py")
23721 (synopsis "Python bindings for DjVuLibre")
23722 (description "This is a set of Python bindings for the DjVuLibre library.")
23723 (home-page "https://jwilk.net/software/python-djvulibre")
23724 (license license:gpl2)))
23726 (define-public python2-djvulibre
23727 (package-with-python2 python-djvulibre))
23729 (define-public python-versioneer
23731 (name "python-versioneer")
23736 (uri (pypi-uri "versioneer" version))
23739 "1bmg8y78am371rd9b4clf11b8g1h7xvq8q58z03jvgdwpsdx7zm4"))))
23740 (build-system python-build-system)
23742 "https://github.com/python-versioneer/python-versioneer")
23744 "Version-string management for VCS-controlled trees")
23746 "@code{versioneer} is a tool for managing a recorded version number in
23747 distutils-based python projects. The goal is to remove the tedious and
23748 error-prone \"update the embedded version string\" step from your release
23750 (license license:public-domain)))
23752 (define-public python2-gamera
23754 (name "python2-gamera")
23759 (uri (string-append "https://gamera.informatik.hsnr.de/download/"
23760 "gamera-" version ".tar.gz"))
23762 (base32 "1g4y1kxk1hmxfsiz682hbxvwryqilnb21ci509m559yp7hcliiyy"))
23763 (modules '((guix build utils)))
23766 ;; Remove bundled libraries.
23767 (for-each delete-file-recursively
23768 '("src/libpng-1.2.5"
23770 "src/zlib-1.2.8"))))))
23771 (build-system python-build-system)
23773 `(("libpng" ,libpng)
23774 ("libtiff" ,libtiff)
23775 ("python2-wxpython" ,python2-wxpython)
23778 `(#:python ,python-2))
23779 (synopsis "Framework for building document analysis applications")
23781 "Gamera is a toolkit for building document image recognition systems.")
23782 (home-page "https://gamera.informatik.hsnr.de/")
23783 (license license:gpl2+)))
23785 (define-public python-contextvars
23787 (name "python-contextvars")
23792 (uri (pypi-uri "contextvars" version))
23795 "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
23796 (build-system python-build-system)
23798 `(("python-immutables" ,python-immutables)))
23800 "https://github.com/MagicStack/contextvars")
23801 (synopsis "PEP 567 Backport")
23802 (description "This package implements a backport of Python 3.7
23803 @code{contextvars} module (see PEP 567) for Python 3.6.")
23804 (license license:asl2.0)))
23806 (define-public python-aiofiles
23808 (name "python-aiofiles")
23813 (uri (pypi-uri "aiofiles" version))
23816 "14m01kjxm2j7zyljjj6xlhlgygcsriymbx730gc5jp9xglaina70"))))
23817 (build-system python-build-system)
23818 (home-page "https://github.com/Tinche/aiofiles")
23819 (synopsis "File support for @code{asyncio}")
23820 (description "@code{python-aiofiles} is a library for handling local
23821 disk files in asyncio applications.")
23822 (license license:asl2.0)))
23824 (define-public python-pyre-extensions
23826 (name "python-pyre-extensions")
23831 (uri (pypi-uri "pyre-extensions" version))
23834 "0c5cbbqrfyjwakdh3kbwxis6mbrbwky1z1fqslgszgpcj4g43q30"))))
23835 (build-system python-build-system)
23837 `(("python-typing-extensions"
23838 ,python-typing-extensions)
23839 ("python-typing-inspect" ,python-typing-inspect)))
23840 (home-page "https://pyre-check.org")
23842 "Type system extensions for use with @code{python-pyre}")
23844 "@code{python-pyre-extensions} defines extensions to the standard
23845 @code{typing} module that are supported by the Pyre typechecker.")
23846 (license license:expat)))
23848 (define-public python-dataclasses
23850 (name "python-dataclasses")
23855 (uri (pypi-uri "dataclasses" version))
23858 "1rh8111fbws2vxyf2qy2zw3x6p6cq1jfz8pf904gig5qwg56sjj9"))))
23859 (build-system python-build-system)
23861 "https://github.com/ericvsmith/dataclasses")
23863 "Backport of the @code{dataclasses} module for Python 3.6")
23865 "This is an implementation of PEP 557, Data Classes. It is a
23866 backport of the @code{dataclasses} module for Python 3.6.")
23867 (license license:asl2.0)))
23869 (define-public python-pywatchman
23871 (name "python-pywatchman")
23876 (uri (pypi-uri "pywatchman" version))
23879 "1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h"))))
23880 (build-system python-build-system)
23882 `(#:tests? #f)) ;there are none
23884 "https://facebook.github.io/watchman/")
23885 (synopsis "Watchman client for python")
23886 (description "@code{python-pywatchman} is a library to connect and
23887 query Watchman to discover file changes.")
23888 (license license:bsd-3)))
23890 (define-public python-helpdev
23892 (name "python-helpdev")
23897 (uri (pypi-uri "helpdev" version))
23900 "0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
23901 (build-system python-build-system)
23904 (modify-phases %standard-phases
23906 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
23908 (add-installed-pythonpath inputs outputs)
23909 (invoke "pytest" "tests"))
23912 `(("python-importlib-metadata" ,python-importlib-metadata)))
23914 `(("python-pytest" ,python-pytest)))
23915 (home-page "https://gitlab.com/dpizetta/helpdev")
23917 "Extract information about the Python environment easily")
23919 "Helpdev is a library to easily extract information about the Python
23921 (license license:expat)))
23923 (define-public python-qdarkstyle
23925 (name "python-qdarkstyle")
23930 (uri (pypi-uri "QDarkStyle" version))
23933 "0883vzg35fzpyl1aiijzpfcdfvpq5vi325w0m7xkx7nxplh02fym"))))
23934 (build-system python-build-system)
23936 `(;; Fails unable to detect valid Qt bindings even when
23937 ;; added as native-inputs.
23940 `(("python-helpdev" ,python-helpdev)
23941 ("python-qtpy" ,python-qtpy)))
23943 "https://github.com/ColinDuquesnoy/QDarkStyleSheet")
23945 "Complete dark stylesheet for Python and Qt applications")
23946 (description "QDarkStyle is the most complete dark stylesheet for Python and
23948 (license license:expat)))
23950 (define-public python-bitstring
23952 (name "python-bitstring")
23957 (uri (pypi-uri "bitstring" version))
23960 "0jl6192dwrlm5ybkbh7ywmyaymrc3cmz9y07nm7qdli9n9rfpwzx"))))
23961 (build-system python-build-system)
23964 (modify-phases %standard-phases
23966 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
23968 (add-installed-pythonpath inputs outputs)
23969 (with-directory-excursion "test"
23970 (invoke "pytest")))
23973 `(("python-pytest" ,python-pytest)))
23974 (home-page "https://github.com/scott-griffiths/bitstring")
23976 "Simple construction, analysis and modification of binary data")
23978 "Bitstring is a library for simple construction, analysis and modification
23980 (license license:expat)))
23982 (define-public python-confuse
23984 (name "python-confuse")
23989 (uri (pypi-uri "confuse" version))
23992 "0r74djc8r6lfx6ldsqnhpvfsn256gsfzbl33qcm77hp2qr8h9z4j"))))
23993 (build-system python-build-system)
23995 `(("python-pathlib" ,python-pathlib)
23996 ("python-pyyaml" ,python-pyyaml)))
23997 (home-page "https://github.com/beetbox/confuse")
23998 (synopsis "Painless YAML configuration.")
23999 (description "Confuse is a configuration library for Python that uses
24000 YAML. It takes care of defaults, overrides, type checking, command-line
24001 integration, human-readable errors, and standard OS-specific locations.")
24002 (license license:expat)))
24004 (define-public python-reflink
24006 (name "python-reflink")
24011 (uri (pypi-uri "reflink" version))
24014 "0fkf3sd958g9hvr3jwlhnhqqzrwxljrc3grsf3yknh94vf13a9f9"))))
24015 (build-system python-build-system)
24017 `(#:tests? #false)) ; almost all tests want to run mkfs.btrfs
24019 `(("python-cffi" ,python-cffi)))
24021 `(("python-pytest" ,python-pytest)
24022 ("python-pytest-runner" ,python-pytest-runner)))
24023 (home-page "https://gitlab.com/rubdos/pyreflink")
24024 (synopsis "Python wrapper around reflink system call")
24026 "Python reflink wraps around platform specific @code{reflink}
24028 (license license:expat)))
24030 (define-public python-pivy
24032 (name "python-pivy")
24037 (uri (git-reference
24038 (url "https://github.com/coin3d/pivy")
24040 (file-name (git-file-name name version))
24042 (base32 "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx"))))
24043 (build-system python-build-system)
24045 `(;; The test suite fails due to an import cycle between 'pivy' and '_coin'
24048 (modify-phases %standard-phases
24049 (add-after 'unpack 'patch-cmake-include-dirs
24051 ;; Patch buildsystem to respect Coin3D include directory
24052 (substitute* "CMakeLists.txt"
24053 (("\\$\\{SoQt_INCLUDE_DIRS}")
24054 "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}"))
24060 `(("python-wrapper" ,python-wrapper)
24066 ("coin3D" ,coin3D-4)))
24067 (home-page "https://github.com/coin3d/pivy")
24068 (synopsis "Python bindings to Coin3D")
24070 "Pivy provides python bindings for Coin, a 3D graphics library with an
24071 Application Programming Interface based on the Open Inventor 2.1 API.")
24072 (license license:isc)))
24074 (define-public python-crayons
24076 (name "python-crayons")
24081 (uri (pypi-uri "crayons" version))
24084 "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx"))))
24085 (build-system python-build-system)
24087 `(("python-colorama" ,python-colorama)))
24088 (home-page "https://github.com/MasterOdin/crayons")
24089 (synopsis "TextUI colors for Python")
24090 (description "This package gives you colored strings for the terminal.
24091 Crayons automatically wraps a given string in the foreground color and
24092 restores the original state after the string is printed.")
24093 (license license:expat)))
24095 (define-public python-sane
24097 (name "python-sane")
24102 (uri (pypi-uri name version))
24105 "1pi597z94n2mkd821ln52fq0g727n2jxfskf280ip3kf7jw8w294"))))
24106 (build-system python-build-system)
24108 `(("python-pytest" ,python-pytest)))
24110 `(("sane-backends" ,sane-backends)))
24111 (home-page "https://github.com/python-pillow/Sane")
24112 (synopsis "Python interface to the SANE scanner")
24113 (description "This package provides Python interface to the SANE scanner
24114 and frame grabber interface.")
24115 (license (license:non-copyleft
24116 ;; Yet another variant of the X/MIT license.
24117 "https://github.com/python-pillow/Sane/blob/master/COPYING"))))
24119 (define-public python-screenkey
24121 (name "python-screenkey")
24126 (uri (git-reference
24127 (url "https://gitlab.com/screenkey/screenkey")
24128 (commit (string-append "v" version))))
24129 (file-name (git-file-name name version))
24132 "1rfngmkh01g5192pi04r1fm7vsz6hg9k3qd313sn9rl9xkjgp11l"))))
24133 (build-system python-build-system)
24136 (modify-phases %standard-phases
24137 (add-after 'unpack 'fix-dlopen-paths
24138 (lambda* (#:key inputs outputs #:allow-other-keys)
24139 (let* ((x11 (assoc-ref inputs "libx11"))
24140 (xtst (assoc-ref inputs "libxtst")))
24141 (substitute* "Screenkey/xlib.py"
24143 (string-append x11 "/lib/libX11.so.6")))
24144 (substitute* "Screenkey/xlib.py"
24146 (string-append xtst "/lib/libXtst.so.6")))
24148 (add-after 'install 'wrap-screenkey
24149 (lambda* (#:key outputs #:allow-other-keys)
24151 (string-append (assoc-ref outputs "out") "/bin/screenkey")
24152 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
24153 `("GI_TYPELIB_PATH"
24154 ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
24157 `(("python-distutils-extra" ,python-distutils-extra)
24158 ("python-tokenize-rt" ,python-tokenize-rt)
24160 ("libxtst" ,libxtst)
24162 ("python-pygobject" ,python-pygobject)
24163 ("python-pycairo" ,python-pycairo)
24164 ("python-setuptools-git" ,python-setuptools-git)
24165 ("python-babel" ,python-babel)))
24166 (home-page "https://www.thregr.org/~wavexx/software/screenkey/")
24168 "Screencast tool to display pressed keys")
24170 "A screencast tool to display your keys inspired by Screenflick.")
24171 (license license:gpl3+)))
24173 (define-public python-jinja2-cli
24175 (name "python-jinja2-cli")
24180 (uri (pypi-uri "jinja2-cli" version))
24183 "0vikx7v6fbvww6kfrv0k5a24jyv3ak7nindg60906pdd1m9qvkcw"))))
24184 (build-system python-build-system)
24186 `(("python-jinja2" ,python-jinja2)))
24188 `(("python-flake8" ,python-flake8)
24189 ("python-jinja2" ,python-jinja2)
24190 ("python-pytest" ,python-pytest)))
24191 (home-page "https://github.com/mattrobenolt/jinja2-cli")
24192 (synopsis "Command-line interface to Jinja2")
24194 "This package provides a command-line interface (CLI) to the Jinja2
24196 (license license:bsd-3)))
24198 (define-public python-readability
24200 (name "python-readability")
24205 (uri (pypi-uri "readability" version))
24208 "1b8gq3g2zwvx0aivvdg56cc0bn7xw6f2v6psmxdx9aiipkw0s0zr"))))
24209 (build-system python-build-system)
24211 "https://github.com/andreasvc/readability/")
24213 "Measure the readability of a given text using surface
24216 "This package provides a Python library that is an implementation of
24217 traditional readability measures based on simple surface
24218 characteristics. These measures are basically linear regressions based on the
24219 number of words, syllables, and sentences.")
24220 (license license:asl2.0)))
24222 (define-public python-listparser
24224 (name "python-listparser")
24229 (uri (pypi-uri "listparser" version))
24232 "0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b"))))
24233 (build-system python-build-system)
24235 "https://github.com/kurtmckee/listparser")
24237 "Parse subscription lists in Python")
24239 "This package provides a Python library that can parse OPML, FOAF, and
24240 iGoogle subscription lists.")
24241 (license license:expat)))