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, 2021 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 Christine Lemmer-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, 2021 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, 2021 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, 2021 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, 2019, 2021 Brendan Tildesley <mail@brendan.scot>
46 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
47 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
48 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
49 ;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
50 ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
51 ;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
52 ;;; Copyright © 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
53 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
54 ;;; Copyright © 2018, 2019 Clément Lassieur <clement@lassieur.org>
55 ;;; Copyright © 2018, 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
56 ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
57 ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
58 ;;; Copyright © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
59 ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
60 ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
61 ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
62 ;;; Copyright © 2019, 2020, 2021 Guillaume Le Vaillant <glv@posteo.net>
63 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
64 ;;; Copyright © 2019, 2020, 2021 Pierre Langlois <pierre.langlois@gmx.com>
65 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
66 ;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
67 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
68 ;;; Copyright © 2019, 2020, 2021 Tanguy Le Carrour <tanguy@bioneland.org>
69 ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
70 ;;; Copyright © 2020 Riku Viitanen <riku.viitanen@protonmail.com>
71 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
72 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
73 ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
74 ;;; Copyright © 2020, 2021 Alexandros Theodotou <alex@zrythm.org>
75 ;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
76 ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
77 ;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
78 ;;; Copyright © 2020 Matthew James Kraai <kraai@ftbfs.org>
79 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
80 ;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
81 ;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
82 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
83 ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
84 ;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
85 ;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
86 ;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
87 ;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
88 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
89 ;;; Copyright © 2020, 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
90 ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
91 ;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
92 ;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com>
93 ;;; Copyright © 2019 Kristian Trandem <kristian@devup.no>
94 ;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
95 ;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
96 ;;; Copyright © 2020 EuAndreh <eu@euandre.org>
97 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
98 ;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
99 ;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
100 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
101 ;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
102 ;;; Copyright © 2021 jgart <jgart@dismail.de>
103 ;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
104 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
105 ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
106 ;;; Copyright © 2021 Franck Pérignon <franck.perignon@univ-grenoble-alpes.fr>
107 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
108 ;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
109 ;;; Copyright © 2021 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
110 ;;; Copyright © 2021 Pradana Aumars <paumars@courrier.dev>
112 ;;; This file is part of GNU Guix.
114 ;;; GNU Guix is free software; you can redistribute it and/or modify it
115 ;;; under the terms of the GNU General Public License as published by
116 ;;; the Free Software Foundation; either version 3 of the License, or (at
117 ;;; your option) any later version.
119 ;;; GNU Guix is distributed in the hope that it will be useful, but
120 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
121 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
122 ;;; GNU General Public License for more details.
124 ;;; You should have received a copy of the GNU General Public License
125 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
127 (define-module (gnu packages python-xyz)
128 #:use-module ((guix licenses) #:prefix license:)
129 #:use-module (gnu packages)
130 #:use-module (gnu packages algebra)
131 #:use-module (gnu packages adns)
132 #:use-module (gnu packages aidc)
133 #:use-module (gnu packages attr)
134 #:use-module (gnu packages backup)
135 #:use-module (gnu packages bash)
136 #:use-module (gnu packages check)
137 #:use-module (gnu packages cmake)
138 #:use-module (gnu packages compression)
139 #:use-module (gnu packages crypto)
140 #:use-module (gnu packages databases)
141 #:use-module (gnu packages dbm)
142 #:use-module (gnu packages djvu)
143 #:use-module (gnu packages docker)
144 #:use-module (gnu packages enchant)
145 #:use-module (gnu packages file)
146 #:use-module (gnu packages fontutils)
147 #:use-module (gnu packages gcc)
148 #:use-module (gnu packages geo)
149 #:use-module (gnu packages ghostscript)
150 #:use-module (gnu packages gl)
151 #:use-module (gnu packages glib)
152 #:use-module (gnu packages gnome)
153 #:use-module (gnu packages gnupg)
154 #:use-module (gnu packages graphviz)
155 #:use-module (gnu packages graphics)
156 #:use-module (gnu packages gsasl)
157 #:use-module (gnu packages gstreamer)
158 #:use-module (gnu packages gtk)
159 #:use-module (gnu packages haskell-xyz)
160 #:use-module (gnu packages icu4c)
161 #:use-module (gnu packages image)
162 #:use-module (gnu packages imagemagick)
163 #:use-module (gnu packages jupyter)
164 #:use-module (gnu packages kerberos)
165 #:use-module (gnu packages libevent)
166 #:use-module (gnu packages libffi)
167 #:use-module (gnu packages libidn)
168 #:use-module (gnu packages linux)
169 #:use-module (gnu packages llvm)
170 #:use-module (gnu packages man)
171 #:use-module (gnu packages markup)
172 #:use-module (gnu packages maths)
173 #:use-module (gnu packages monitoring)
174 #:use-module (gnu packages multiprecision)
175 #:use-module (gnu packages networking)
176 #:use-module (gnu packages ncurses)
177 #:use-module (gnu packages openstack)
178 #:use-module (gnu packages pcre)
179 #:use-module (gnu packages pdf)
180 #:use-module (gnu packages perl)
181 #:use-module (gnu packages photo)
182 #:use-module (gnu packages pkg-config)
183 #:use-module (gnu packages python)
184 #:use-module (gnu packages python-build)
185 #:use-module (gnu packages python-check)
186 #:use-module (gnu packages python-compression)
187 #:use-module (gnu packages python-crypto)
188 #:use-module (gnu packages python-science)
189 #:use-module (gnu packages python-web)
190 #:use-module (gnu packages qt)
191 #:use-module (gnu packages rdf)
192 #:use-module (gnu packages readline)
193 #:use-module (gnu packages regex)
194 #:use-module (gnu packages sdl)
195 #:use-module (gnu packages scanner)
196 #:use-module (gnu packages search)
197 #:use-module (gnu packages serialization)
198 #:use-module (gnu packages shells)
199 #:use-module (gnu packages sphinx)
200 #:use-module (gnu packages ssh)
201 #:use-module (gnu packages swig)
202 #:use-module (gnu packages terminals)
203 #:use-module (gnu packages tex)
204 #:use-module (gnu packages texinfo)
205 #:use-module (gnu packages textutils)
206 #:use-module (gnu packages time)
207 #:use-module (gnu packages tls)
208 #:use-module (gnu packages version-control)
209 #:use-module (gnu packages video)
210 #:use-module (gnu packages web)
211 #:use-module (gnu packages wxwidgets)
212 #:use-module (gnu packages base)
213 #:use-module (gnu packages xml)
214 #:use-module (gnu packages xorg)
215 #:use-module (gnu packages xdisorg)
216 #:use-module (gnu packages tcl)
217 #:use-module (gnu packages bdw-gc)
218 #:use-module (gnu packages serialization)
219 #:use-module (guix packages)
220 #:use-module (guix download)
221 #:use-module (guix git-download)
222 #:use-module (guix hg-download)
223 #:use-module (guix utils)
224 #:use-module (guix build-system gnu)
225 #:use-module (guix build-system cmake)
226 #:use-module (guix build-system python)
227 #:use-module (guix build-system trivial)
228 #:use-module (srfi srfi-1)
229 #:use-module (srfi srfi-26))
231 (define-public python-ueberzug
233 (name "python-ueberzug")
238 (uri (pypi-uri "ueberzug" version))
241 "1hxd45dnwa9yv908acarr98n2drmar66wzq9z2qd3irj24srzr3w"))))
242 (build-system python-build-system)
245 ("libxext" ,libxext)))
247 `(("python-attrs" ,python-attrs)
248 ("python-docopt" ,python-docopt)
249 ("python-pillow" ,python-pillow)
250 ("python-xlib" ,python-xlib)))
251 (home-page "https://github.com/seebye/ueberzug")
252 (synopsis "Command line util to display images in combination with X11")
253 (description "Überzug is a command line util which allows to draw images on
254 terminals by using child windows. The advantages of using Überzug are:
256 @item No race conditions as a new window is created to display images.
257 @item Expose events will be processed, so images will be redrawn on switch
259 @item Tmux support (excluding multi pane windows).
260 @item Terminals without the WINDOWID environment variable are supported.
261 @item Chars are used as position - and size unit.
262 @item No memory leak (/ unlimited cache).
264 (license license:gpl3+)))
266 (define-public python-fire
273 (uri (pypi-uri "fire" version))
276 "0qka44n88y3qcj7xz0k0f3qb4phcg4z0wvd4jcii9lcr6rvbiqn5"))))
277 (build-system python-build-system)
279 `(("python-pytest", python-pytest)))
282 (modify-phases %standard-phases
284 (lambda* (#:key tests? #:allow-other-keys)
286 (invoke "pytest")))))))
288 `(("python-six", python-six)
289 ("python-termcolor", python-termcolor)))
290 (synopsis "Library for automatically generating command line interfaces")
292 "Fire is a library for automatically generating command line interfaces
293 from absolutely any Python object. The following are the advantages:
295 @item A simple way to create a CLI in Python.
296 @item A helpful tool for developing and debugging Python code.
297 @item Helps with exploring existing code or turning other people's code into a
298 command line interface.
299 @item Makes transitioning between Bash and Python easier.
300 @item Makes using a Python REPL easier by setting up the REPL with the modules
301 and variables you'll need already imported and created.
303 (home-page "https://github.com/google/python-fire")
304 (license license:asl2.0)))
306 (define-public python-twodict
308 (name "python-twodict")
313 (uri (pypi-uri "twodict" version))
315 (base32 "0ifv7dv18jn2lg0a3l6zdlvmmlda2ivixfjbsda58a2ay6kxznr0"))))
316 (build-system python-build-system)
317 (home-page "https://github.com/MrS0m30n3/twodict")
318 (synopsis "Two way ordered dictionary for Python")
319 (description "TwoDict is a custom dictionary in which you can get the
320 key:value relationship but you can also get the value:key relationship. It also
321 remembers the order in which the items were inserted and supports almost all the
322 features of the Python's built-in dict.")
323 (license license:unlicense)))
325 (define-public python2-twodict
327 (inherit python-twodict)
328 (name "python2-twodict")
333 (uri (pypi-uri "twodict" version))
335 (base32 "0ifv7dv18jn2lg0a3l6zdlvmmlda2ivixfjbsda58a2ay6kxznr0"))))
336 (build-system python-build-system)
338 `(#:python ,python-2))))
340 (define-public python-argopt
342 (name "python-argopt")
346 (uri (pypi-uri "argopt" version))
349 "0ybs7kkp0cpl8zn1lvf7481xhssg1bbhh5la2cjzdm5yibashyxa"))))
350 (build-system python-build-system)
352 `(("python-coverage" ,python-coverage)
353 ("python-nose" ,python-nose)
354 ("python-setuptools" ,python-setuptools) ; Won't build without this.
355 ("python-setuptools-scm" ,python-setuptools-scm)))
357 `(("python-toml" ,python-toml)
358 ("python-flake8" ,python-flake8)))
359 (home-page "https://github.com/casperdcl/argopt")
360 (synopsis "Generate a command-line interface from a docstring")
361 (description "This package provides tools to define a command line interface
362 from a docstring rather than the other way around.")
363 (license license:mpl2.0)))
365 (define-public python-cachetools
367 (name "python-cachetools")
371 (uri (pypi-uri "cachetools" version))
374 "1zqc098gk6y614lxwqd9z2gm8lldgvrpid133pnlm4m048gfvdb1"))))
375 (build-system python-build-system)
376 (home-page "https://github.com/tkem/cachetools/")
377 (synopsis "Extensible memoizing collections and decorators")
378 (description "This module provides various memoizing collections and
379 decorators, including variants of the Python standard library's
380 @code{lru_cache} function decorator.")
381 (license license:expat)))
383 (define-public python-colorful
385 (name "python-colorful")
391 (pypi-uri "colorful" version))
393 (base32 "1sh7g2cn1fyz2hzmzs933razdxi2bna9i1lxa790r9pdwba8m146"))))
394 (build-system python-build-system)
395 ;; FIXME: tests cannot be computed:
396 ;; "Can't perform this operation for unregistered loader type"
400 `(("python-coverage" ,python-coverage)
401 ("python-flake8" ,python-flake8)
402 ("python-pytest" ,python-pytest)))
404 `(("python-colorama" ,python-colorama)))
405 (home-page "http://github.com/timofurrer/colorful")
406 (synopsis "Terminal string styling")
407 (description "Colorful provides an array of text styles, that can be used
408 as functions or string constants to form colored terminal output.")
409 (license license:expat)))
411 (define-public python-yaspin
413 (name "python-yaspin")
419 (pypi-uri "yaspin" version))
421 (base32 "1iirah0kydrdp505qnjj6gi54avcr7z0hbkfx9vmh8myr30rpz6q"))))
422 (build-system python-build-system)
424 `(("python-pytest" ,python-pytest)))
425 (home-page "https://github.com/pavdmyt/yaspin")
426 (synopsis "Yet Another Terminal Spinner")
427 (description "Yaspin provides a terminal spinner to indicate the progress
428 during long operations.")
429 (license license:expat)))
431 (define-public python-lunr
439 (pypi-uri "lunr" version))
441 (base32 "106akalywfmnypzkdrhgz4n4740a8xayspybsw59kq06vz8i2qrc"))))
442 (build-system python-build-system)
444 `(("python-mock" ,python-mock)
445 ("python-pytest" ,python-pytest)))
447 `(("python-nltk" ,python-nltk-3.4)))
449 "https://github.com/yeraydiazdiaz/lunr.py")
450 (synopsis "Full-text search library")
451 (description "This package provides python library for full-text search.
452 It indexes documents and provides a search interface for retrieving documents
453 that best match text queries.")
454 (license license:expat)))
456 (define-public python-mkdocs
458 (name "python-mkdocs")
464 (pypi-uri "mkdocs" version))
466 (base32 "0fgv5zawpyyv0vd4j5y8m4h058lh9jkwfcm0xy4pg7dr09a1xdph"))))
467 (build-system python-build-system)
470 (modify-phases %standard-phases
471 ;; Requirements refer to a specific version of dependencies,
472 ;; which are too old. So we patch to refer to any later version.
473 (add-after 'unpack 'patch-requirements
475 (substitute* "setup.py"
478 `(("python-click" ,python-click)
479 ("python-jinja2" ,python-jinja2)
480 ("python-livereload" ,python-livereload)
481 ("python-lunr" ,python-lunr)
482 ("python-markdown" ,python-markdown)
483 ("python-pyyaml" ,python-pyyaml)
484 ("python-tornado" ,python-tornado)))
485 (home-page "https://www.mkdocs.org")
486 (synopsis "Project documentation with Markdown")
487 (description "MkDocs is a static site generator geared towards building
488 project documentation. Documentation source files are written in Markdown, and
489 configured with a single YAML configuration file.")
490 (license license:bsd-3)))
492 (define-public python-pymdown-extensions
494 (name "python-pymdown-extensions")
500 (pypi-uri "pymdown-extensions" version))
502 (base32 "0d8pdndrl1kj105lq7r6kw2dnhcvll6h2qs07w71mcpi7gx728v3"))))
503 (build-system python-build-system)
504 ;; FIXME: "AssertionError: False is not true"
508 `(("python-markdown" ,python-markdown)))
509 (home-page "https://github.com/facelessuser/pymdown-extensions")
510 (synopsis "Extension pack for Python Markdown")
511 (description "PyMdown Extensions is a collection of extensions for Python
512 Markdown. All extensions are found under the module namespace of pymdownx.")
513 (license license:expat)))
515 (define-public python-mkdocs-material
517 (name "python-mkdocs-material")
523 (pypi-uri "mkdocs-material" version))
525 (base32 "0ci9xiasq9nfn09v11m7p49vzazdbgslw7rpzjd6y3hsmn9vljz3"))))
526 (build-system python-build-system)
529 (modify-phases %standard-phases
530 ;; Requirement mkdocs-material-extensions
531 ;; in-turn requires mkdocs-material. This causes
532 ;; circular dependency, so we remove this requirement.
533 (add-after 'unpack 'patch-requirements
535 (substitute* "requirements.txt"
536 (("mkdocs-material-extensions.*$") "")))))))
538 `(("python-markdown" ,python-markdown)
539 ("python-mkdocs" ,python-mkdocs)
540 ("python-pygments" ,python-pygments)
541 ("python-pymdown-extensions"
542 ,python-pymdown-extensions)))
543 (home-page "https://squidfunk.github.io/mkdocs-material/")
544 (synopsis "Material Design theme for MkDocs")
545 (description "This package provides a theme plugin for the static site
547 (license license:expat)))
549 (define-public python-slixmpp
551 (name "python-slixmpp")
558 (url "https://lab.louiz.org/poezio/slixmpp.git")
560 (string-append "slix-" version))))
562 (git-file-name name version))
564 (base32 "15mqxcws14bjvh5jcfwl86zsvrymkdw3ya07vb44md7vfnsnclwx"))))
565 (build-system python-build-system)
568 (modify-phases %standard-phases
569 (add-after 'unpack 'patch
571 (substitute* "setup.py"
576 `(("cython" ,python-cython)
578 ("pkg-config" ,pkg-config)))
580 `(("python-aiodns" ,python-aiodns)
581 ("python-aiohttp" ,python-aiohttp)
582 ("python-pyasn1" ,python-pyasn1)
583 ("python-pyasn1-modules" ,python-pyasn1-modules)))
586 ("python" ,python))) ; We are building a Python extension.
587 (synopsis "XMPP library without threads")
588 (description "Slixmpp is a XMPP library for Python 3.7+. It is a fork of
589 SleekXMPP. Its goal is to only rewrite the core of the library (the low level
590 socket handling, the timers, the events dispatching) in order to remove all
592 (home-page "https://lab.louiz.org/poezio/slixmpp")
593 (license license:expat)))
595 (define-public python-tenacity
597 (name "python-tenacity")
601 (uri (pypi-uri "tenacity" version))
604 "1j36v9fcpmmd4985ix0cwnvcq71rkrn5cjiiv0id9vkl4kpxh0gv"))))
605 (build-system python-build-system)
607 `(("python-setuptools-scm" ,python-setuptools-scm)
608 ("python-sphinx" ,python-sphinx)
609 ("python-tornado" ,python-tornado)
610 ("python-pytest" ,python-pytest)))
612 `(("python-six" ,python-six)))
614 `(#:phases (modify-phases %standard-phases
619 (home-page "https://github.com/jd/tenacity")
620 (synopsis "Retrying library for python")
621 (description "Tenacity is a general-purpose python library to simplify the
622 task of adding retry behavior to just about anything.")
623 (license license:asl2.0)))
625 (define-public python-pytelegrambotapi
627 (name "python-pytelegrambotapi")
633 (url "https://github.com/eternnoir/pyTelegramBotAPI")
635 (file-name (git-file-name name version))
637 (base32 "0r7g5zs0fk3g2dxvbpl0pi730x7r2kalrhn30fs0pvc15a59fmxz"))))
638 (build-system python-build-system)
641 (modify-phases %standard-phases
643 (lambda* (#:key tests? #:allow-other-keys)
645 (with-directory-excursion "tests"
649 `(("python-requests" ,python-requests)))
651 `(("python-pytest" ,python-pytest)))
652 (home-page "https://github.com/eternnoir/pyTelegramBotAPI")
653 (synopsis "Python Telegram bot api")
654 (description "This package provides a simple, but extensible Python
655 implementation for the Telegram Bot API.")
656 (license license:gpl2)))
658 (define-public python-colorlog
660 (name "python-colorlog")
664 (uri (pypi-uri "colorlog" version))
667 "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
668 (build-system python-build-system)
670 `(("python-pytest" ,python-pytest)))
672 `(#:phases (modify-phases %standard-phases
675 ;; Extend PYTHONPATH so the built package will be found.
677 (string-append (getcwd) "/build/lib:"
678 (getenv "PYTHONPATH")))
679 (invoke "pytest" "-p" "no:logging")
681 (home-page "https://github.com/borntyping/python-colorlog")
682 (synopsis "Log formatting with colors for python")
683 (description "The @code{colorlog.ColoredFormatter} is a formatter for use
684 with Python's logging module that outputs records using terminal colors.")
685 (license license:expat)))
687 (define-public python-pyprind
689 (name "python-pyprind")
693 (uri (pypi-uri "PyPrind" version))
696 "1gscnlvj37m421ch3akm3kddxqkrgbg5zrpwy2ky1j59w6vclzg3"))))
697 (build-system python-build-system)
699 `(("python-psutil" ,python-psutil)))
700 (home-page "https://github.com/rasbt/pyprind")
701 (synopsis "Python Progress Bar and Percent Indicator Utility")
702 (description "The PyPrind (Python Progress Indicator) module provides a
703 progress bar and a percentage indicator object that let you track the progress
704 of a loop structure or other iterative computation.")
705 (license license:bsd-3)))
707 (define-public python-gphoto2
709 (name "python-gphoto2")
713 (uri (pypi-uri "gphoto2" version))
716 "118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
717 (build-system python-build-system)
719 `(("pkg-config" ,pkg-config)))
721 `(("libgphoto2" ,libgphoto2)))
722 (home-page "https://github.com/jim-easterbrook/python-gphoto2")
723 (synopsis "Python interface to libgphoto2")
724 (description "@code{python-gphoto2} is a comprehensive Python interface
725 (or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
726 automatically generate the interface code.")
727 (license license:gpl3+)))
729 (define-public python-colour
731 (name "python-colour")
735 (uri (pypi-uri "colour" version))
738 "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
739 (build-system python-build-system)
741 `(("python-d2to1" ,python-d2to1)))
742 (home-page "https://github.com/vaab/colour")
743 (synopsis "Convert and manipulate various color representations")
744 (description "Pythonic way to manipulate color representations (HSL, RVB,
746 (license license:expat)))
748 (define-public python-d2to1
750 (name "python-d2to1")
751 (version "0.2.12.post1")
754 (uri (pypi-uri "d2to1" version))
757 "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
758 (build-system python-build-system)
760 `(("python-nose" ,python-nose)))
761 (home-page "https://github.com/embray/d2to1")
762 (synopsis "Allows for distutils2-like setup.cfg files as package metadata
764 (description "The python package d2to1 (the d is for distutils) allows
765 using distutils2-like setup.cfg files for a package's metadata with a
766 distribute/setuptools setup.py script.")
767 (license license:bsd-2)))
769 (define-public python-rawkit
771 (name "python-rawkit")
775 (uri (pypi-uri "rawkit" version))
778 "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
779 (build-system python-build-system)
781 `(("python-pytest" ,python-pytest)
782 ("python-mock" ,python-mock)))
784 `(("libraw" ,libraw)))
785 (home-page "https://rawkit.readthedocs.io")
786 (synopsis "Ctypes-based LibRaw binding for Python")
787 (description "The rawkit package provides two modules: rawkit and libraw.
788 The rawkit module provides a high-level Pythonic interface for developing raw
789 photos, while the libraw module provides a CTypes based interface for
790 interacting with the low-level LibRaw C APIs.")
791 (license license:expat)))
793 (define-public python-easygui
795 (name "python-easygui")
799 (uri (pypi-uri "easygui" version))
802 "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
803 (build-system python-build-system)
805 `(("python-tkinter" ,python "tk")))
806 (home-page "https://github.com/robertlugg/easygui")
807 (synopsis "GUI programming module for Python")
808 (description "EasyGUI is a module for very simple, very easy GUI
809 programming in Python. EasyGUI is different from other GUI generators in that
810 EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
811 simple function calls.")
812 (license license:bsd-3)))
814 (define-public python-pymd4c
816 (name "python-pymd4c")
817 (version "0.4.6.0b1")
821 (uri (pypi-uri "pymd4c" version))
823 (base32 "07s3arn85ri92im6x3ipljdmrxmpik7irs06i6lm17j1x6j9841d"))))
824 (build-system python-build-system)
828 `(("python-flake8" ,python-flake8)
829 ("python-pkgconfig" ,python-pkgconfig)
830 ("pkg-config" ,pkg-config)))
831 (home-page "https://github.com/dominickpastore/pymd4c")
832 (synopsis "Python bindings for MD4C")
834 "PyMD4C provides Python bindings for MD4c, a C Markdown parser, compliant
836 (license license:expat)))
838 (define-public python-pymediainfo
840 (name "python-pymediainfo")
845 (uri (pypi-uri "pymediainfo" version))
848 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
849 (build-system python-build-system)
851 `(("python-setuptools-scm" ,python-setuptools-scm)
852 ("python-pytest" ,python-pytest)))
854 `(("libmediainfo" ,libmediainfo)))
857 (modify-phases %standard-phases
858 (add-after 'unpack 'patch-libmediainfo
860 (substitute* "pymediainfo/__init__.py"
861 (("libmediainfo.so.0")
862 (string-append (assoc-ref %build-inputs "libmediainfo")
863 "/lib/libmediainfo.so.0")))
866 (lambda* (#:key tests? #:allow-other-keys)
868 ;; Extend PYTHONPATH so the built package will be found.
870 (string-append (getcwd) "/build/lib:"
871 (getenv "PYTHONPATH")))
872 ;; Skip the only failing test "test_parse_url"
873 (invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
875 "https://github.com/sbraz/pymediainfo")
877 "Python wrapper for the mediainfo library")
879 "Python wrapper for the mediainfo library to access the technical and tag
880 data for video and audio files.")
881 (license license:expat)))
883 (define-public python-psutil
885 (name "python-psutil")
890 (uri (pypi-uri "psutil" version))
892 (base32 "1immnj532bnnrh1qmk5q3lsw3san8qfk9kxy1cpmy0knmfcwp70c"))))
893 (build-system python-build-system)
895 ;; FIXME: some tests do not return and time out. Some tests fail because
896 ;; some processes survive kill().
898 (home-page "https://github.com/giampaolo/psutil")
899 (synopsis "Library for retrieving information on running processes")
901 "@code{psutil} (Python system and process utilities) is a library for
902 retrieving information on running processes and system utilization (CPU,
903 memory, disks, network) in Python. It is useful mainly for system monitoring,
904 profiling and limiting process resources and management of running processes.
905 It implements many functionalities offered by command line tools such as: ps,
906 top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
907 iotop, uptime, pidof, tty, taskset, pmap.")
908 (properties `((python2-variant . ,(delay python2-psutil))))
909 (license license:bsd-3)))
911 (define-public python2-psutil
912 (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
913 (package/inherit base
915 `(("python2-enum34" ,python2-enum34) ;optional
916 ,@(package-propagated-inputs base))))))
918 (define-public python-shapely
920 (name "python-shapely")
925 (uri (pypi-uri "Shapely" version))
928 "0adiz4jwmwxk7k1awqifb1a9bj5x4nx4gglb5dz9liam21674h8n"))
929 (modules '((guix build utils)))
932 (delete-file "shapely/speedups/_speedups.c")
933 (delete-file "shapely/vectorized/_vectorized.c")
935 (build-system python-build-system)
937 `(("python-cython" ,python-cython)
938 ("python-matplotlib" ,python-matplotlib)
939 ("python-pytest" ,python-pytest)
940 ("python-pytest-cov" ,python-pytest-cov)))
944 `(("python-numpy" ,python-numpy)))
947 (modify-phases %standard-phases
948 (add-after 'unpack 'patch-geos-path
949 (lambda* (#:key inputs #:allow-other-keys)
950 (let ((geos (assoc-ref inputs "geos"))
951 (glibc (assoc-ref inputs ,(if (%current-target-system)
952 "cross-libc" "libc"))))
953 (substitute* '("shapely/geos.py" "shapely/_buildcfg.py")
954 (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
955 (string-append "_lgeos = load_dll('geos_c', fallbacks=['"
956 geos "/lib/libgeos_c.so'])"))
957 (("free = load_dll\\('c'\\)\\.free")
958 (string-append "free = load_dll('c', fallbacks=['"
959 glibc "/lib/libc.so.6']).free"))
960 (("free = load_dll\\('c', fallbacks=.*\\)\\.free")
961 (string-append "free = load_dll('c', fallbacks=['"
962 glibc "/lib/libc.so.6']).free"))))
964 (home-page "https://github.com/Toblerity/Shapely")
965 (synopsis "Library for the manipulation and analysis of geometric objects")
966 (description "Shapely is a Python package for manipulation and analysis of
967 planar geometric objects. It is based on the @code{GEOS} library.")
968 (license license:bsd-3)))
970 (define-public python-shortuuid
972 (name "python-shortuuid")
977 (uri (pypi-uri "shortuuid" version))
980 "1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh"))))
981 (build-system python-build-system)
983 `(("python-pep8" ,python-pep8)))
984 (home-page "https://github.com/skorokithakis/shortuuid")
985 (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
987 "@code{shortuuid} is a Python library for generating concise, unambiguous
988 and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
989 module and then similar looking characters are removed.")
990 (license license:bsd-3)))
992 (define-public python-logwrap
994 (name "python-logwrap")
995 (version "8.2.0.post0")
999 (uri (pypi-uri "logwrap" version))
1002 "1dv7gny3rfci5cal2ipr6d0pcz3yhka7af96dfsd3ir1mxy8p1j9"))))
1003 (build-system python-build-system)
1005 `(#:tests? #f ; Tests not included in pypi release.
1007 (modify-phases %standard-phases
1009 (lambda* (#:key tests? #:allow-other-keys)
1014 `(("python-cython" ,python-cython)
1015 ("python-pytest" ,python-pytest)
1016 ("python-setuptools-scm" ,python-setuptools-scm)
1017 ("python-toml" ,python-toml)
1018 ("python-wheel" ,python-wheel)))
1019 (home-page "https://github.com/python-useful-helpers/logwrap")
1020 (synopsis "Decorator for logging function arguments")
1021 (description "This package provides a decorator to log function arguments
1022 and function call return values in a human-readable way.")
1023 (license license:asl2.0)))
1025 (define-public python-clyent
1027 (name "python-clyent")
1032 (uri (pypi-uri "clyent" version))
1035 "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
1036 (build-system python-build-system)
1038 `(("python-mock" ,python-mock)))
1039 (home-page "https://github.com/Anaconda-Platform/clyent")
1040 (synopsis "Command line client library")
1041 (description "Clyent is a Python command line utility library. It is used
1042 by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
1043 (license license:bsd-3)))
1045 (define-public python2-clyent
1046 (package-with-python2 python-clyent))
1048 (define-public python-babel
1050 (name "python-babel")
1055 (uri (pypi-uri "Babel" version))
1058 "018yg7g2pa6vjixx1nx41cfispgfi0azzp0a1chlycbj8jsil0ys"))))
1059 (build-system python-build-system)
1061 `(("python-freezegun" ,python-freezegun)
1062 ("python-pytest" ,python-pytest)))
1064 `(("python-pytz" ,python-pytz)))
1066 `(#:phases (modify-phases %standard-phases
1069 (invoke "pytest" "-vv"))))))
1070 (home-page "http://babel.pocoo.org/")
1072 "Tools for internationalizing Python applications")
1074 "Babel is composed of two major parts:
1075 - tools to build and work with gettext message catalogs
1076 - a Python interface to the CLDR (Common Locale Data Repository), providing
1077 access to various locale display names, localized number and date formatting,
1079 (license license:bsd-3)))
1081 (define-public python2-babel
1082 (package-with-python2 python-babel))
1084 (define-public python2-backport-ssl-match-hostname
1086 (name "python2-backport-ssl-match-hostname")
1091 (uri (pypi-uri "backports.ssl_match_hostname" version))
1094 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
1095 (build-system python-build-system)
1097 `(#:python ,python-2
1098 #:tests? #f)) ; no test target
1099 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
1100 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
1102 "This backport brings the ssl.match_hostname() function to users of
1103 earlier versions of Python. The function checks the hostname in the
1104 certificate returned by the server to which a connection has been established,
1105 and verifies that it matches the intended target hostname.")
1106 (license license:psfl)))
1108 (define-public python-bidict
1110 (name "python-bidict")
1115 (uri (pypi-uri "bidict" version))
1118 "02dy0b1k7qlhn7ajyzkrvxhyhjj0hzcq6ws3zjml9hkdz5znz92g"))))
1119 (build-system python-build-system)
1121 `(("python-coverage" ,python-coverage)
1122 ("python-hypothesis" ,python-hypothesis-5.23) ; use_true_random=... from >=5.19.0
1123 ("python-pre-commit" ,python-pre-commit)
1124 ("python-py" ,python-py)
1125 ("python-pytest" ,python-pytest)
1126 ("python-pytest-benchmark" ,python-pytest-benchmark)
1127 ("python-pytest-cov" ,python-pytest-cov)
1128 ("python-setuptools-scm" ,python-setuptools-scm)
1129 ("python-sortedcollections" ,python-sortedcollections)
1130 ("python-sortedcontainers" ,python-sortedcontainers)
1131 ("python-sphinx" ,python-sphinx)
1132 ("python-sphinx-autodoc-typehints" ,python-sphinx-autodoc-typehints)
1133 ("python-tox" ,python-tox)))
1135 `(#:phases (modify-phases %standard-phases
1136 (add-after 'unpack 'relax-reqs
1138 (substitute* "setup.py"
1139 (("sortedcollections < 2") "sortedcollections"))
1142 (lambda _ (invoke "./run_tests.py"))))))
1143 (home-page "https://bidict.readthedocs.io")
1144 (synopsis "Bidirectional mapping library")
1145 (description "The @code{bidict} library provides several data structures
1146 for working with bidirectional mappings in Python.")
1147 (license license:mpl2.0)))
1149 (define-public python-bitarray
1151 (name "python-bitarray")
1155 (uri (pypi-uri "bitarray" version))
1158 "177fj6wbw5jln54wpp6plcqy2329wjkwqwvgz7022rrg3xfrq49g"))))
1159 (build-system python-build-system)
1160 (home-page "https://github.com/ilanschnell/bitarray")
1161 (synopsis "Efficient arrays of booleans")
1162 (description "This package provides an object type which efficiently
1163 represents an array of booleans. Bitarrays are sequence types and behave very
1164 much like usual lists. Eight bits are represented by one byte in a contiguous
1165 block of memory. The user can select between two representations:
1166 little-endian and big-endian. All of the functionality is implemented in C.
1167 Methods for accessing the machine representation are provided. This can be
1168 useful when bit level access to binary files is required, such as portable
1169 bitmap image files. Also, when dealing with compressed data which uses
1170 variable bit length encoding, you may find this module useful.")
1171 (license license:psfl)))
1173 (define-public python-boolean.py
1175 (name "python-boolean.py")
1179 ;; There's no source tarball on PyPI.
1182 (url "https://github.com/bastikr/boolean.py")
1183 (commit (string-append "v" version))))
1184 (file-name (git-file-name name version))
1186 (base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
1187 (build-system python-build-system)
1188 (home-page "https://github.com/bastikr/boolean.py")
1189 (synopsis "Boolean algebra in one Python module")
1191 "This is a small Python library that implements boolean algebra.
1192 It defines two base elements, @code{TRUE} and @code{FALSE}, and a
1193 @code{Symbol} class that can take on one of these two values. Calculations
1194 are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
1195 compositions like @code{XOR} and @code{NAND} are emulated on top of them.
1196 Expressions are constructed from parsed strings or directly in Python.")
1197 (license license:bsd-2)))
1199 (define-public python-hdf4
1201 (name "python-hdf4")
1206 (uri (pypi-uri name version))
1209 "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
1210 (build-system python-build-system)
1211 (native-inputs `(("nose" ,python-nose)))
1212 (propagated-inputs `(("numpy" ,python-numpy)))
1215 ("libjpeg" ,libjpeg-turbo)
1219 (modify-phases %standard-phases
1222 ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
1223 ;; on to import numpy. Somehow this works on their CI system.
1224 ;; Let's just manage PYTHONPATH here instead.
1225 (substitute* "runexamples.sh"
1226 (("export PYTHONPATH=.*") ""))
1227 (setenv "PYTHONPATH"
1228 (string-append (getcwd) ":"
1229 (getenv "PYTHONPATH")))
1230 (invoke "./runexamples.sh")
1231 (invoke "nosetests" "-v"))))))
1232 (home-page "https://github.com/fhs/python-hdf4")
1233 (synopsis "Python interface to the NCSA HDF4 library")
1235 "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
1236 which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
1237 NetCDF files can also be read and modified. Python-HDF4 is a fork of
1238 @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
1239 (license license:expat)))
1241 (define-public python-h5py
1243 (name "python-h5py")
1248 (uri (pypi-uri "h5py" version))
1251 "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4"))))
1252 (build-system python-build-system)
1254 `(#:tests? #f ; no test target
1256 (modify-phases %standard-phases
1257 (add-after 'unpack 'fix-hdf5-paths
1258 (lambda* (#:key inputs #:allow-other-keys)
1259 (let ((prefix (assoc-ref inputs "hdf5")))
1260 (substitute* "setup_build.py"
1261 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
1262 (string-append "['" prefix "/lib" "']"))
1263 (("'/opt/local/include', '/usr/local/include'")
1264 (string-append "'" prefix "/include" "'")))
1265 (substitute* "setup_configure.py"
1266 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
1267 (string-append "['" prefix "/lib" "']")))
1270 `(("python-six" ,python-six)
1271 ("python-numpy" ,python-numpy)))
1273 `(("hdf5" ,hdf5-1.10)))
1275 `(("python-cython" ,python-cython)
1276 ("python-pkgconfig" ,python-pkgconfig)
1277 ("pkg-config" ,pkg-config)))
1278 (home-page "https://www.h5py.org/")
1279 (synopsis "Read and write HDF5 files from Python")
1281 "The h5py package provides both a high- and low-level interface to the
1282 HDF5 library from Python. The low-level interface is intended to be a
1283 complete wrapping of the HDF5 API, while the high-level component supports
1284 access to HDF5 files, datasets and groups using established Python and NumPy
1286 (license license:bsd-3)))
1288 (define-public python2-h5py
1289 (package-with-python2 python-h5py))
1291 (define-public python-pyls-black
1293 (name "python-pyls-black")
1297 ;; There are no tests in the PyPI tarball.
1300 (url "https://github.com/rupert/pyls-black/")
1301 (commit (string-append "v" version))))
1302 (file-name (git-file-name name version))
1304 (base32 "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj"))))
1305 (build-system python-build-system)
1307 `(#:test-target "pytest"))
1309 `(("python-black" ,python-black)
1310 ("python-language-server"
1311 ,python-language-server)
1312 ("python-toml" ,python-toml)))
1314 `(("python-flake8" ,python-flake8)
1315 ("python-isort" ,python-isort)
1316 ("python-mypy" ,python-mypy)
1317 ("python-pytest" ,python-pytest)
1318 ("python-pytest-runner" ,python-pytest-runner)))
1319 (home-page "https://github.com/rupert/pyls-black")
1320 (synopsis "Black plugin for the Python Language Server")
1321 (description "Black plugin for the Python Language Server.")
1322 (license license:expat)))
1324 (define-public python-sh
1331 (uri (pypi-uri "sh" version))
1334 "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
1335 (build-system python-build-system)
1338 (modify-phases %standard-phases
1341 ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
1342 (setenv "HOME" "/tmp")
1343 (invoke "python" "sh.py" "test"))))))
1345 `(("python-coverage" ,python-coverage)))
1346 (home-page "https://github.com/amoffat/sh")
1347 (synopsis "Python subprocess replacement")
1348 (description "This package provides a replacement for Python's
1349 @code{subprocess} feature.")
1350 (license license:expat)))
1352 (define-public python-cftime
1354 (name "python-cftime")
1359 (uri (pypi-uri "cftime" version))
1361 (base32 "0w0gi6jnch38hiygl62j4xkcirv4y3dcwrvxl9p7bsk6j27lzihs"))))
1362 (build-system python-build-system)
1364 `(("python-numpy" ,python-numpy)))
1366 `(("python-coveralls" ,python-coveralls)
1367 ("python-cython" ,python-cython)
1368 ("python-pytest-cov" ,python-pytest-cov)))
1369 (home-page "https://github.com/Unidata/cftime")
1370 (synopsis "Library for time handling")
1372 "This package provides time-handling functionality that used to be part
1373 of the netcdf4 package before.")
1374 ;; This package claims to include code under the GPLv3 but is released
1376 (license (list license:isc license:gpl3+))))
1378 (define-public python-netcdf4
1380 (name "python-netcdf4")
1385 (uri (pypi-uri "netCDF4" version))
1388 "1gn35mb2yc263pci720aik8ymz41lrvxlrn3z83vyjwghiashg1a"))))
1389 (build-system python-build-system)
1392 (modify-phases %standard-phases
1393 (add-after 'unpack 'configure-locations
1394 (lambda* (#:key inputs #:allow-other-keys)
1395 (setenv "HDF5_DIR" (assoc-ref inputs "hdf5"))
1398 `(("python-cython" ,python-cython)))
1400 `(("python-numpy" ,python-numpy)
1401 ("python-cftime" ,python-cftime)))
1403 `(("netcdf" ,netcdf)
1406 (home-page "https://github.com/Unidata/netcdf4-python")
1407 (synopsis "Python/numpy interface to the netCDF library")
1408 (description "Netcdf4-python is a Python interface to the netCDF C
1409 library. netCDF version 4 has many features not found in earlier
1410 versions of the library and is implemented on top of HDF5. This module
1411 can read and write files in both the new netCDF 4 and the old netCDF 3
1412 format, and can create files that are readable by HDF5 clients. The
1413 API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
1414 to users of that module.")
1415 ;; The software is mainly ISC, but includes some files covered
1416 ;; by the Expat license.
1417 (license (list license:isc license:expat))))
1419 (define-public python-ncclient
1421 (name "python-ncclient")
1425 (method git-fetch) ;no tests in PyPI release
1427 (url "https://github.com/ncclient/ncclient")
1428 (commit (string-append "v" version))))
1429 (file-name (git-file-name name version))
1432 "0cb568z5syg6hh0dv813bw7s1mjy7ga5xzxbm9naf4zz2qfdg4js"))))
1433 (build-system python-build-system)
1435 `(#:phases (modify-phases %standard-phases
1437 (lambda* (#:key tests? #:allow-other-keys)
1439 (invoke "pytest")))))))
1441 `(("python-pytest" ,python-pytest)))
1443 `(("python-lxml" ,python-lxml)
1444 ("python-paramiko" ,python-paramiko)))
1445 (home-page "https://github.com/ncclient/ncclient")
1446 (synopsis "Python library for NETCONF clients")
1447 (description "@code{ncclient} is a Python library that facilitates
1448 client-side scripting and application development around the NETCONF
1450 (license license:asl2.0)))
1452 (define-public python-license-expression
1454 (name "python-license-expression")
1459 (uri (pypi-uri "license-expression" version))
1461 (base32 "1g0sgphss8hbi1rpl4avy1nmbixmy9v194xdbvkjgl90vzgy2q3r"))))
1462 (build-system python-build-system)
1464 `(("python-boolean.py" ,python-boolean.py)))
1465 (home-page "https://github.com/nexB/license-expression")
1466 (synopsis "Apply boolean logic to license expressions")
1468 "This Python module defines a tiny language to evaluate and compare
1469 license expressions using boolean logic. Logical combinations of licenses can
1470 be tested for equality, containment, and equivalence. They can be normalised
1471 and simplified. It supports SPDX license expressions as well as other naming
1472 conventions and aliases in the same expression.")
1473 (license license:gpl2+)))
1475 (define-public python-lockfile
1477 (name "python-lockfile")
1482 (uri (pypi-uri "lockfile" version))
1485 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
1486 (build-system python-build-system)
1487 (arguments '(#:test-target "check"))
1489 `(("python-pbr" ,python-pbr)))
1490 (home-page "https://launchpad.net/pylockfile")
1491 (synopsis "Platform-independent file locking module")
1493 "The lockfile package exports a LockFile class which provides a simple
1494 API for locking files.")
1495 (license license:expat)))
1497 (define-public python-fb-re2
1499 (name "python-fb-re2")
1505 (url "https://github.com/facebook/pyre2")
1506 (commit (string-append "v" version))))
1507 (file-name (git-file-name name version))
1510 "0snprxdnh3m45r3b0az4v0l28h90ycmfbybzla6xg1qviwv9w1ak"))))
1511 (build-system python-build-system)
1514 (home-page "https://github.com/facebook/pyre2")
1515 (synopsis "Python wrapper for RE2")
1516 (description "This package provides a Python extension that wraps Google's
1517 RE2 regular expression library. It implements many of the features of
1518 Python's built-in @code{re} module with compatible interfaces.")
1519 (license license:bsd-3)))
1521 (define-public python-filelock
1523 (name "python-filelock")
1528 (uri (pypi-uri "filelock" version))
1531 "0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
1532 (build-system python-build-system)
1534 "https://github.com/benediktschmitt/py-filelock")
1535 (synopsis "Platform independent file lock")
1536 (description "@code{filelock} contains a single module implementing
1537 a platform independent file lock in Python, which provides a simple way of
1538 inter-process communication.")
1539 (license license:unlicense)))
1541 (define-public python-semantic-version
1543 (name "python-semantic-version")
1548 (uri (pypi-uri "semantic_version" version))
1551 "0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
1552 (build-system python-build-system)
1553 (home-page "https://github.com/rbarrois/python-semanticversion")
1554 (synopsis "Semantic versioning module for Python")
1556 "The @code{semantic_version} class is a small library for handling
1557 @uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
1559 It can compare versions, generate a new version that represents a bump in one of
1560 the version levels, and check whether any given string is a proper semantic
1561 version identifier.")
1562 (license license:bsd-3)))
1564 (define-public python2-semantic-version
1565 (package-with-python2 python-semantic-version))
1567 (define-public python-serpent
1569 (name "python-serpent")
1574 (uri (pypi-uri "serpent" version))
1576 (base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk"))))
1577 (build-system python-build-system)
1579 `(("python-attrs" ,python-attrs)
1580 ("python-pytz" ,python-pytz)))
1581 (home-page "https://github.com/irmen/Serpent")
1582 (synopsis "Serializer for literal Python expressions")
1584 "Serpent provides @code{ast.literal_eval()}-compatible object tree
1585 serialization. It serializes an object tree into bytes (an utf-8 encoded
1586 string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
1587 to rebuild the original object tree.
1589 Because only safe literals are encoded, it is safe to send serpent data to
1590 other machines, such as over the network.")
1591 (properties `((python2-variant . ,(delay python2-serpent))))
1592 (license license:expat)))
1594 (define-public python2-serpent
1595 (let ((base (package-with-python2 (strip-python2-variant python-serpent))))
1596 (package/inherit base
1598 `(("python-enum34" ,python2-enum34)
1599 ,@(package-propagated-inputs base))))))
1601 (define-public python-setuptools
1603 (name "python-setuptools")
1608 (uri (pypi-uri "setuptools" version))
1611 "15ibjdjhkwgj6qbmpsxikkqdfsb1550z46fly7dm15ah4bk1wfpv"))
1612 (modules '((guix build utils)))
1615 ;; Remove included binaries which are used to build self-extracting
1616 ;; installers for Windows.
1617 ;; TODO: Find some way to build them ourself so we can include them.
1618 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1620 (build-system python-build-system)
1621 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1622 ;; One could bootstrap with an internal untested setuptools.
1625 (home-page "https://pypi.org/project/setuptools/")
1627 "Library designed to facilitate packaging Python projects")
1629 "Setuptools is a fully-featured, stable library designed to facilitate
1630 packaging Python projects, where packaging includes:
1631 Python package and module definitions,
1632 distribution package metadata,
1634 project installation,
1635 platform-specific details,
1637 ;; TODO: setuptools now bundles the following libraries:
1638 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1639 (license (list license:psfl ; setuptools itself
1640 license:expat ; six, appdirs, pyparsing
1641 license:asl2.0 ; packaging is dual ASL2/BSD-2
1643 (properties `((python2-variant . ,(delay python2-setuptools))))))
1645 ;; Newer versions of setuptools no longer support Python 2.
1646 (define-public python2-setuptools
1648 (name "python2-setuptools")
1653 (uri (pypi-uri "setuptools" version ".zip"))
1656 "04sns22y2hhsrwfy1mha2lgslvpjsjsz8xws7h2rh5a7ylkd28m2"))
1657 (modules '((guix build utils)))
1660 ;; Remove included binaries which are used to build self-extracting
1661 ;; installers for Windows.
1662 ;; TODO: Find some way to build them ourself so we can include them.
1663 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1665 (build-system python-build-system)
1666 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1667 ;; One could bootstrap with an internal untested setuptools.
1671 `(("unzip" ,unzip)))
1672 (home-page "https://pypi.org/project/setuptools/")
1674 "Library designed to facilitate packaging Python projects")
1676 "Setuptools is a fully-featured, stable library designed to facilitate
1677 packaging Python projects, where packaging includes:
1678 Python package and module definitions,
1679 distribution package metadata,
1681 project installation,
1682 platform-specific details,
1684 ;; TODO: setuptools now bundles the following libraries:
1685 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1686 (license (list license:psfl ; setuptools itself
1687 license:expat ; six, appdirs, pyparsing
1688 license:asl2.0 ; packaging is dual ASL2/BSD-2
1691 (define-public python-setuptools-declarative-requirements
1693 (name "python-setuptools-declarative-requirements")
1699 "setuptools-declarative-requirements"
1703 "1l8zmcnp9h8sp8hsw7b81djaa1a9yig0y7i4phh5pihqz1gdn7yi"))))
1704 (build-system python-build-system)
1706 `(("python-pytest" ,python-pytest)
1707 ("python-setuptools-scm" ,python-setuptools-scm)))
1709 `(("python-toml" ,python-toml)
1710 ("python-wheel" ,python-wheel)))
1712 "https://github.com/s0undt3ch/setuptools-declarative-requirements")
1713 (synopsis "File support for setuptools declarative setup.cfg")
1715 "This package provides file support for setuptools declarative
1717 (license license:asl2.0)))
1719 ;; The setuptools provided by Python 3.7.4 is too new for Tensorflow.
1720 (define-public python-setuptools-for-tensorflow
1723 (inherit python-setuptools)
1726 (inherit (package-source python-setuptools))
1727 (uri (pypi-uri "setuptools" version ".zip"))
1730 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65")))))))
1732 (define-public python-uniseg
1734 (name "python-uniseg")
1739 (uri (pypi-uri "uniseg" version ".zip"))
1742 "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
1743 (build-system python-build-system)
1745 '(#:tests? #f)) ; The test suite requires network access.
1747 `(("unzip" ,unzip)))
1749 "https://bitbucket.org/emptypage/uniseg-python")
1751 "Python library to determine Unicode text segmentations")
1753 "Uniseg is a Python package used to determine Unicode text segmentations.
1754 Supported segmentations include:
1756 @item @dfn{Code point} (any value in the Unicode codespace)
1757 @item @dfn{Grapheme cluster} (user-perceived character made of a single or
1758 multiple Unicode code points, e.g. \"G\" + acute-accent)
1760 @item Sentence break
1763 (license license:expat)))
1765 (define-public python2-uniseg
1766 (package-with-python2 python-uniseg))
1768 (define-public python-humanfriendly
1770 (name "python-humanfriendly")
1775 (uri (pypi-uri "humanfriendly" version))
1778 "04ixg8b7p6xc8x8lffhi7wfl77xhszakhd0s6j0cf6a84j8yqlmz"))))
1779 (build-system python-build-system)
1781 `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
1783 (home-page "https://humanfriendly.readthedocs.io")
1784 (synopsis "Human-friendly input and output in Python")
1786 "The functions and classes in @code{humanfriendly} can be used to make
1787 text interfaces more user-friendly. It includes tools to parse and format
1788 numbers, file sizes, and timespans, timers for long-running operations, menus
1789 to allow the user to choose from a list of options, and terminal interaction
1791 (properties `((python2-variant . ,(delay python2-humanfriendly))))
1792 (license license:expat)))
1794 (define-public python2-humanfriendly
1795 (let ((base (package-with-python2
1796 (strip-python2-variant python-humanfriendly))))
1797 (package/inherit base
1799 `(("python2-monotonic" ,python2-monotonic)
1800 ,@(package-propagated-inputs base))))))
1802 (define-public python-textparser
1804 (name "python-textparser")
1809 (uri (pypi-uri "textparser" version))
1812 "0w5lyhrsvzs5a9q1l3sjgxgljrvd3ybf796w93kc39wayzvd02gh"))))
1813 (build-system python-build-system)
1814 (home-page "https://github.com/eerimoq/textparser")
1815 (synopsis "Fast text parser for Python")
1816 (description "This library provides a text parser written in the Python
1817 language. It aims to be fast.")
1818 (license license:expat)))
1820 (define-public python-aenum
1822 (name "python-aenum")
1827 (uri (pypi-uri "aenum" version))
1829 (base32 "0r1812bjm72x73pl7y4yhffr4zbdjgxa08avsy4b3di0pqgqv0l1"))))
1830 (build-system python-build-system)
1832 `(#:phases (modify-phases %standard-phases
1835 (format #t "current working dir ~s~%" (getcwd))
1836 (setenv "PYTHONPATH"
1837 (string-append ".:" (getenv "PYTHONPATH")))
1838 ;; We must run the test suite module directly, as it
1839 ;; fails to define the 'tempdir' variable in scope for
1840 ;; the tests otherwise
1841 ;; (see:https://bitbucket.org/stoneleaf/aenum/\
1842 ;; issues/32/running-tests-with-python-setuppy-test).
1843 (invoke "python3" "aenum/test.py")
1844 ;; This one fails with "NameError: name
1845 ;; 'test_pickle_dump_load' is not defined" (see:
1846 ;; https://bitbucket.org/stoneleaf/aenum/issues/33
1847 ;; /error-running-the-test_v3py-test-suite).
1848 ;; (invoke "python3" "aenum/test_v3.py")
1850 (home-page "https://bitbucket.org/stoneleaf/aenum")
1851 (synopsis "Advanced enumerations, namedtuples and constants for Python")
1852 (description "The aenum library includes an @code{Enum} base class, a
1853 metaclass-based @code{NamedTuple} implementation and a @code{NamedConstant}
1855 (license license:bsd-3)))
1857 (define-public python-can
1864 (uri (pypi-uri "python-can" version))
1867 "123lz1bl6xf3d0fvxzr4bg4884yg4m9s21z6xd2m68zhnbv9rmpc"))))
1868 (build-system python-build-system)
1870 `(#:phases (modify-phases %standard-phases
1871 (add-after 'unpack 'relax-version-requirements
1873 (substitute* "setup.py"
1874 (("mock~=2\\.0") "mock")
1875 (("coverage<5") "coverage")
1876 (("pytest~=4\\.3") "pytest")
1877 (("hypothesis~=4\\.56") "hypothesis"))
1879 (add-after 'unpack 'fix-broken-tests
1880 ;; The tests try to run two scripts it expects should be
1881 ;; in PATH, but they aren't at this time (see:
1882 ;; https://github.com/hardbyte/python-can/issues/805).
1884 (substitute* "test/test_scripts.py"
1885 (("\"can_logger\\.py --help\"") "")
1886 (("\"can_player\\.py --help\"") ""))
1889 `(("python-aenum" ,python-aenum)
1890 ("python-wrapt" ,python-wrapt)))
1892 `(("python-codecov" ,python-codecov)
1893 ("python-coverage" ,python-coverage)
1894 ("python-future" ,python-future)
1895 ("python-hypothesis" ,python-hypothesis)
1896 ("python-mock" ,python-mock)
1897 ("python-pyserial" ,python-pyserial)
1898 ("python-pytest" ,python-pytest)
1899 ("python-pytest-cov" ,python-pytest-cov)
1900 ("python-pytest-runner" ,python-pytest-runner)
1901 ("python-pytest-timeout" ,python-pytest-timeout)))
1902 (home-page "https://github.com/hardbyte/python-can")
1903 (synopsis "Controller Area Network (CAN) interface module for Python")
1904 (description "This package defines the @code{can} module, which provides
1905 controller area network (CAN) support for Python developers; providing common
1906 abstractions to different hardware devices, and a suite of utilities for
1907 sending and receiving messages on a CAN bus.")
1908 (license license:lgpl3+)))
1910 (define-public python-caniusepython3
1912 (name "python-caniusepython3")
1917 (uri (pypi-uri "caniusepython3" version))
1920 "0a755444ln38j8d7xb3yw0wzpd0mjrzfn6zqvsh06nw1vdaq4l28"))))
1921 (build-system python-build-system)
1923 `(#:phases (modify-phases %standard-phases
1924 (add-after 'unpack 'relax-requirements
1926 (substitute* "setup.py"
1927 ;; These are for compatibility with Python 2.
1928 ((".*'argparse', 'backports.functools_lru_cache',.*")
1930 (substitute* "dev_requirements.txt"
1931 ((".*pylint.*") "")) ;not actually required
1935 (invoke "py.test" "-k" "not NetworkTests"))))))
1937 `(("python-distlib" ,python-distlib)
1938 ("python-packaging" ,python-packaging)
1939 ("python-requests" ,python-requests)))
1941 `(("python-mock" ,python-mock)
1942 ("python-pytest" ,python-pytest)))
1943 (home-page "https://github.com/brettcannon/caniusepython3")
1944 (synopsis "Check for Python 3-incompatible Python libraries")
1945 (description "The @command{caniusepython3} command scans your project and
1946 reports the Python 3-incompatible libraries it found. It can also be used as
1948 (license license:asl2.0)))
1950 (define-public python-diskcache
1952 (name "python-diskcache")
1957 (uri (pypi-uri "diskcache" version))
1960 "1q2wz5sj16zgyy1zpq516qgbnfwsavk1pl2qks0f4r62z5cmmvmw"))))
1961 (build-system python-build-system)
1963 `(#:tests? #f)) ;test suite not included in the release
1964 (home-page "http://www.grantjenks.com/docs/diskcache/")
1965 (synopsis "Disk and file backed cache library")
1966 (description "DiskCache is a disk and file backed persistent cache.")
1967 (license license:asl2.0)))
1969 (define-public python-bitstruct
1971 (name "python-bitstruct")
1976 (uri (pypi-uri "bitstruct" version))
1979 "1fpc1qh1vss05ap29xvhjp200fm0q4pvgcjl0qpryh7ay6xgr5vx"))))
1980 (build-system python-build-system)
1981 (home-page "https://github.com/eerimoq/bitstruct")
1982 (synopsis "Python values to and C bit field structs converter")
1983 (description "This module performs conversions between Python values and C
1984 bit field structs represented as Python byte strings. It is intended to have
1985 a similar interface as the @code{struct} module from Python, but working on
1986 bits instead of primitive data types like @code{char}, @code{int}, etc.")
1987 (license license:expat)))
1989 (define-public python-cantools
1991 (name "python-cantools")
1995 ;; We take the sources from the Git repository as the documentation is
1996 ;; not included with the PyPI archive.
1999 (url "https://github.com/eerimoq/cantools")
2001 (file-name (git-file-name name version))
2004 "1aad137yd8b4jkfvlv812qsxmxcgra7g1p4wbxfsjy1cbf8fbq9q"))))
2005 (build-system python-build-system)
2008 (modify-phases %standard-phases
2009 (add-after 'build 'build-doc
2011 ;; See: https://github.com/eerimoq/cantools/issues/190.
2012 (substitute* "README.rst"
2013 (("https://github.com/eerimoq/cantools/raw/master\
2016 (with-directory-excursion "docs"
2017 (invoke "make" "man" "info"))))
2018 (add-after 'install 'install-doc
2019 (lambda* (#:key outputs #:allow-other-keys)
2020 (let* ((out (assoc-ref outputs "out"))
2021 (info (string-append out "/share/info"))
2022 (man1 (string-append out "/share/man/man1")))
2023 (format #t "CWD: ~s~%" (getcwd))
2024 (install-file "docs/_build/texinfo/cantools.info" info)
2025 (install-file "docs/_build/man/cantools.1" man1)
2028 `(("sphinx" ,python-sphinx)
2029 ("texinfo" ,texinfo)))
2031 `(("python-bitstruct" ,python-bitstruct)
2032 ("python-can" ,python-can)
2033 ("python-diskcache" ,python-diskcache)
2034 ("python-textparser" ,python-textparser)))
2035 (home-page "https://github.com/eerimoq/cantools")
2036 (synopsis "Tools for the Controller Area Network (CAN) bus protocol")
2037 (description "This package includes Controller Area Network (CAN) related
2038 tools that can be used to:
2040 @item parse DBC, KCD, SYM, ARXML 4 and CDD files
2041 @item encode and decode CAN messages
2042 @item multiplex simple and extended signals
2043 @item diagnose DID encoding and decoding
2044 @item dump the CAN decoder output
2045 @item test CAN nodes
2046 @item generate C source code
2047 @item monitor the CAN bus
2049 (license license:expat)))
2051 (define-public python-capturer
2053 (name "python-capturer")
2058 (uri (pypi-uri "capturer" version))
2061 "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
2062 (build-system python-build-system)
2066 `(("python-humanfriendly" ,python-humanfriendly)))
2067 (home-page "https://capturer.readthedocs.io")
2068 (synopsis "Capture stdout and stderr streams of the current process")
2070 "The capturer package makes it easy to capture the stdout and stderr
2071 streams of the current process and subprocesses. Output can be relayed
2072 to the terminal in real time but is also available to the Python program
2073 for additional processing.")
2074 (license license:expat)))
2076 (define-public python2-capturer
2077 (package-with-python2 python-capturer))
2079 (define-public python-case
2081 (name "python-case")
2086 (uri (pypi-uri "case" version))
2089 "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
2090 (build-system python-build-system)
2092 `(("python-mock" ,python-mock)
2093 ("python-nose" ,python-nose)
2094 ("python-six" ,python-six)
2095 ("python-unittest2" ,python-unittest2)))
2097 `(("python-coverage" ,python-coverage)))
2098 (home-page "https://github.com/celery/case")
2099 (synopsis "Unittest utilities and convenience methods")
2101 "The @code{case} package provides utilities on top of unittest, including
2102 some helpful Python 2 compatibility convenience methods.")
2103 (license license:bsd-3)))
2105 (define-public python-verboselogs
2107 (name "python-verboselogs")
2112 (uri (pypi-uri "verboselogs" version))
2115 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
2116 (build-system python-build-system)
2119 (modify-phases %standard-phases
2122 ;; Do not run pylint plugin test, as astroid is an old
2123 ;; unsupported version.
2124 (invoke "pytest" "-v" "-k" "not test_pylint_plugin"
2125 "verboselogs/tests.py"))))))
2127 `(("python-mock" ,python-mock)
2128 ("python-pytest" ,python-pytest)))
2129 (home-page "https://verboselogs.readthedocs.io")
2130 (synopsis "Verbose logging level for Python's logging module")
2132 "The @code{verboselogs} package extends Python's @code{logging} module to
2133 add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
2134 (license license:expat)))
2136 (define-public python2-verboselogs
2137 (package-with-python2 python-verboselogs))
2139 (define-public python-coloredlogs
2141 (name "python-coloredlogs")
2146 (uri (pypi-uri "coloredlogs" version))
2149 "0dkw6xp0r1dwgz4s2f58npx5nxfq51wf4l6qkm5ib27slgfs4sdq"))))
2150 (build-system python-build-system)
2152 `(;Tests require some updated modules
2155 `(("python-capturer" ,python-capturer)))
2156 (home-page "https://coloredlogs.readthedocs.io")
2157 (synopsis "Colored stream handler for Python's logging module")
2159 "The @code{coloredlogs} package enables colored terminal output for
2160 Python's logging module. The @code{ColoredFormatter} class inherits from
2161 @code{logging.Formatter} and uses ANSI escape sequences to render your logging
2162 messages in color.")
2163 (license license:expat)))
2165 (define-public python2-coloredlogs
2166 (package-with-python2 python-coloredlogs))
2168 (define-public python-editorconfig
2170 (name "python-editorconfig")
2175 (uri (pypi-uri "EditorConfig" version))
2178 "0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv"))))
2179 (build-system python-build-system)
2180 (home-page "https://editorconfig.org/")
2181 (synopsis "EditorConfig bindings for python")
2182 (description "The EditorConfig project consists of a file format for
2183 defining coding styles and a collection of text editor plugins that enable
2184 editors to read the file format and adhere to defined styles. EditorConfig
2185 files are easily readable and they work nicely with version control systems.")
2186 ;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
2187 (license (list license:bsd-2 license:psfl))))
2189 (define-public dosage
2196 (uri (pypi-uri "dosage" version))
2199 "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"))))
2200 (build-system python-build-system)
2202 `(("python2-backports-functools-lru-cache"
2203 ,python2-backports-functools-lru-cache)
2204 ("python2-backports-shutil-get-terminal-size"
2205 ,python2-backports-shutil-get-terminal-size)
2206 ("python-cached-property" ,python-cached-property)
2207 ("python-colorama" ,python-colorama)
2208 ("python-imagesize" ,python-imagesize)
2209 ("python-importlib-metadata" ,python-importlib-metadata)
2210 ("python-lxml" ,python-lxml)
2211 ("python-requests" ,python-requests)
2212 ("python-six" ,python-six)))
2214 `(("python-pytest-cov" ,python-pytest-cov)
2215 ("python-pytest-xdist" ,python-pytest-xdist)
2216 ("python-responses" ,python-responses)
2217 ("python-setuptools-scm" ,python-setuptools-scm)))
2218 (home-page "https://github.com/webcomics/dosage")
2219 (synopsis "Comic strip downloader and archiver")
2220 (description "Dosage is designed to keep a local copy of specific webcomics and other
2221 picture-based content such as Picture of the Day sites. With the @command{dosage}
2222 command-line script you can get the latest strip of a webcomic, catch-up to the last strip
2223 downloaded, or download a strip for a particular date or index, if possible.")
2224 (license license:expat)))
2226 (define-public python-et-xmlfile
2228 (name "python-et-xmlfile")
2233 (uri (pypi-uri "et_xmlfile" version))
2236 "0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1"))))
2237 (build-system python-build-system)
2239 `(#:phases (modify-phases %standard-phases
2242 (invoke "pytest"))))))
2244 `(("python-pytest" ,python-pytest)
2245 ("python-lxml" ,python-lxml))) ;used for the tests
2246 (home-page "https://bitbucket.org/openpyxl/et_xmlfile")
2247 (synopsis "Low memory implementation of @code{lxml.xmlfile}")
2248 (description "This Python library is based upon the @code{xmlfile} module
2249 from @code{lxml}. It aims to provide a low memory, compatible implementation
2250 of @code{xmlfile}.")
2251 (license license:expat)))
2253 (define-public python2-et-xmlfile
2254 (package-with-python2 python-et-xmlfile))
2256 (define-public python-openpyxl
2258 (name "python-openpyxl")
2262 ;; We use the upstream repository, as the tests are not included in the
2266 (url "https://foss.heptapod.net/openpyxl/openpyxl")
2267 (changeset version)))
2268 (file-name (string-append name "-" version "-checkout"))
2270 (base32 "0s6fgwwkcfz1bnrp5gjd4g2lcbl4a76147ylkrmkbabi2nf4xlli"))))
2271 (build-system python-build-system)
2273 `(#:phases (modify-phases %standard-phases
2276 (invoke "pytest"))))))
2278 ;; For the test suite.
2279 `(("python-lxml" ,python-lxml)
2280 ("python-pillow" ,python-pillow)
2281 ("python-pytest" ,python-pytest)))
2283 `(("python-et-xmlfile" ,python-et-xmlfile)
2284 ("python-jdcal" ,python-jdcal)))
2285 (home-page "https://openpyxl.readthedocs.io")
2286 (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
2287 (description "This Python library allows reading and writing to the Excel XLSX, XLSM,
2288 XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
2290 (properties `((python2-variant . ,(delay python2-openpyxl))))
2291 (license license:expat)))
2293 (define-public python2-openpyxl
2294 (let ((base (package-with-python2
2295 (strip-python2-variant python-openpyxl))))
2298 ;; This is the latest version that has python2 support
2303 (uri (pypi-uri "openpyxl" version))
2306 "1qzjj8nwj4dn0mhq1j64f136afiqqb81lvqiikipz3g1g0b80lqx"))))
2307 (arguments '(#:tests? #f))))) ; No test suite.
2309 (define-public python-eventlet
2311 (name "python-eventlet")
2316 (uri (pypi-uri "eventlet" version))
2319 "1hgz8jq19wlz8vwqj900ry8cjv578nz4scc91mlc8944yid6573c"))))
2320 (build-system python-build-system)
2322 `(("python-dnspython" ,python-dnspython)
2323 ("python-greenlet" ,python-greenlet)
2324 ("python-monotonic" ,python-monotonic)))
2326 ;; TODO: Requires unpackaged 'enum-compat'.
2328 (home-page "https://eventlet.net")
2329 (synopsis "Concurrent networking library for Python")
2331 "Eventlet is a concurrent networking library for Python that
2332 allows you to change how you run your code, not how you write it.
2333 It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
2334 Coroutines ensure that the developer uses a blocking style of programming
2335 that is similar to threading, but provide the benefits of non-blocking I/O.
2336 The event dispatch is implicit, which means you can easily use @code{Eventlet}
2337 from the Python interpreter, or as a small part of a larger application.")
2338 (license license:expat)))
2340 (define-public python-sinfo
2342 (name "python-sinfo")
2346 (uri (pypi-uri "sinfo" version))
2349 "0kdsp883mx0lfyykv0p12bvs203kdm3skb8bw5wf2pc7kb393sl1"))))
2350 (build-system python-build-system)
2352 `(("python-stdlib-list" ,python-stdlib-list)))
2353 (home-page "https://gitlab.com/joelostblom/session_info")
2354 (synopsis "Output module version information loaded in a Python session")
2355 (description "This package outputs version information for modules loaded
2356 in the current session, Python, and the OS.")
2357 (license license:bsd-3)))
2359 (define-public python-six
2366 (uri (pypi-uri "six" version))
2369 "02lw67hprv57hyg3cfy02y3ixjk3nzwc0dx3c4ynlvkfwkfdnsr3"))))
2370 (build-system python-build-system)
2373 (modify-phases %standard-phases
2376 (invoke "py.test" "-v"))))))
2378 `(("python-pytest" ,python-pytest-bootstrap)))
2379 (home-page "https://pypi.org/project/six/")
2380 (synopsis "Python 2 and 3 compatibility utilities")
2382 "Six is a Python 2 and 3 compatibility library. It provides utility
2383 functions for smoothing over the differences between the Python versions with
2384 the goal of writing Python code that is compatible on both Python versions.
2385 Six supports every Python version since 2.5. It is contained in only one
2386 Python file, so it can be easily copied into your project.")
2387 (license license:x11)))
2389 (define-public python2-six
2390 (package-with-python2 python-six))
2392 (define-public python-six-bootstrap
2394 (inherit python-six)
2395 (name "python-six-bootstrap")
2397 (arguments `(#:tests? #f))))
2399 (define-public python2-six-bootstrap
2400 (package-with-python2 python-six-bootstrap))
2402 (define-public python-schedule
2404 (name "python-schedule")
2409 (uri (pypi-uri "schedule" version))
2412 "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
2413 (build-system python-build-system)
2415 `(("python-pytest" ,python-pytest)
2416 ("python-mock" ,python-mock)))
2417 (home-page "https://github.com/dbader/schedule")
2418 (synopsis "Schedule periodic function calls in Python")
2420 "Schedule is an in-process scheduler for periodic jobs that uses the
2421 builder pattern for configuration. Schedule lets you run Python functions (or
2422 any other callable) periodically at pre-determined intervals using a simple,
2423 human-friendly syntax.")
2424 (license license:expat)))
2426 (define-public python2-schedule
2427 (package-with-python2 python-schedule))
2429 (define-public python-scour
2431 (name "python-scour")
2438 (url "https://github.com/scour-project/scour")
2440 (string-append "v" version))))
2441 (file-name (git-file-name name version))
2443 (base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k"))))
2445 `(("python-six" ,python-six)))
2446 (build-system python-build-system)
2447 (home-page "https://github.com/scour-project/scour")
2448 (synopsis "Scour is an SVG optimizer/cleaner written in Python")
2449 (description "The goal of Scour is to output a file that renders
2450 identically at a fraction of the size by removing a lot of redundant
2451 information created by most SVG editors. Optimization options are typically
2452 lossless but can be tweaked for more aggressive cleaning.")
2453 (license license:asl2.0)))
2455 (define-public python-mechanize
2457 (name "python-mechanize")
2462 (uri (pypi-uri "mechanize" version))
2465 "1z9kqcwb8gfq2l6i42z624kxpd8692a0c8gw2x5bbm7n848w2mb3"))))
2466 (build-system python-build-system)
2468 `(("python-html5lib" ,python-html5lib)))
2469 (home-page "https://github.com/python-mechanize/mechanize")
2471 "Stateful programmatic web browsing in Python")
2473 "Mechanize implements stateful programmatic web browsing in Python,
2474 after Andy Lester’s Perl module WWW::Mechanize.")
2475 (license license:bsd-3)))
2477 (define-public python2-mechanize
2478 (package-with-python2 python-mechanize))
2480 (define-public python-simpleaudio
2482 (name "python-simpleaudio")
2487 (uri (pypi-uri "simpleaudio" version))
2490 "07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739"))))
2491 (build-system python-build-system)
2495 `(("alsa-lib" ,alsa-lib)))
2497 "https://github.com/hamiltron/py-simple-audio")
2498 (synopsis "Simple, asynchronous audio playback for Python 3")
2500 "The @code{simplaudio} package provides cross-platform, dependency-free
2501 audio playback capability for Python 3 on OSX, Windows, and Linux.")
2502 (license license:expat))) ; MIT license
2504 (define-public python-simplejson
2506 (name "python-simplejson")
2511 (uri (pypi-uri "simplejson" version))
2514 "108yf3252fy4ndqab7h46raksxfhcn113bzy2yd8369vidrjnjrb"))))
2515 (build-system python-build-system)
2516 (home-page "http://simplejson.readthedocs.org/en/latest/")
2518 "Json library for Python")
2520 "JSON (JavaScript Object Notation) is a subset of JavaScript
2521 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
2524 Simplejson exposes an API familiar to users of the standard library marshal
2525 and pickle modules. It is the externally maintained version of the json
2526 library contained in Python 2.6, but maintains compatibility with Python 2.5
2527 and (currently) has significant performance advantages, even without using
2528 the optional C extension for speedups. Simplejson is also supported on
2530 (license license:x11)))
2532 (define-public python2-simplejson
2533 (package-with-python2 python-simplejson))
2536 (define-public python-pyicu
2538 (name "python-pyicu")
2543 (uri (pypi-uri "PyICU" version))
2546 "075bw66b3w0nw6mc5k32fwmrhyrmq3d7da3q2mw212qfmm0pgjn0"))))
2547 (build-system python-build-system)
2549 `(("icu4c" ,icu4c)))
2551 `(("python-pytest" ,python-pytest)
2552 ("python-six" ,python-six)))
2553 (home-page "https://github.com/ovalhub/pyicu")
2554 (synopsis "Python extension wrapping the ICU C++ API")
2556 "PyICU is a python extension wrapping the ICU C++ API.")
2557 (license license:x11)))
2559 (define-public python2-pyicu
2560 (package-with-python2 python-pyicu))
2562 (define-public python-dogtail
2564 (name "python-dogtail")
2570 "https://gitlab.com/dogtail/dogtail/-/raw/released/"
2571 "dogtail-" version ".tar.gz"))
2574 "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0"))))
2575 (build-system python-build-system)
2577 `(#:tests? #f ; TODO Launching dbus for the tests
2580 (modify-phases %standard-phases
2582 (lambda* (#:key tests? #:allow-other-keys)
2584 (system "Xvfb :1 &")
2585 (setenv "DISPLAY" ":1")
2586 (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/"))
2589 `(("python-pygobject" ,python-pygobject)
2590 ("python-pycairo" ,python-pycairo)
2591 ("python-pyatspi" ,python-pyatspi)))
2593 `(("python-nose" ,python-nose)
2595 ("xvfb" ,xorg-server)
2597 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2598 ("gobject-introspection" ,gobject-introspection)))
2599 (home-page "https://gitlab.com/dogtail/dogtail/")
2600 (synopsis "GUI test tool and automation framework written in Python")
2602 "Dogtail is a GUI test tool and automation framework written in Python.
2603 It uses Accessibility (a11y) technologies to communicate with desktop
2604 applications. dogtail scripts are written in Python and executed like any
2605 other Python program.")
2606 (license license:gpl2+)))
2608 (define-public python2-dogtail
2609 (package-with-python2 python-dogtail))
2611 (define-public python-empy
2613 (name "python-empy")
2617 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
2621 "1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq"))))
2622 (build-system python-build-system)
2624 `(#:tests? #f)) ; python2 only
2625 (home-page "http://www.alcyone.com/software/empy/")
2626 (synopsis "Templating system for Python")
2628 "EmPy is a system for embedding Python expressions and statements in
2629 template text; it takes an EmPy source file, processes it, and produces
2630 output. This is accomplished via expansions, which are special signals to the
2631 EmPy system and are set off by a special prefix (by default the at sign, @@).
2632 EmPy can expand arbitrary Python expressions and statements in this way, as
2633 well as a variety of special forms. Textual data not explicitly delimited in
2634 this way is sent unaffected to the output, allowing Python to be used in
2635 effect as a markup language. Also supported are callbacks via hooks,
2636 recording and playback via diversions, and dynamic, chainable filters. The
2637 system is highly configurable via command line options and embedded
2639 (license license:lgpl2.1+)))
2641 (define-public python2-empy
2642 (let ((base (package-with-python2 (strip-python2-variant python-empy))))
2643 (package/inherit base
2644 (arguments `(,@(package-arguments base)
2647 (define-public python2-element-tree
2649 (name "python2-element-tree")
2654 "http://effbot.org/media/downloads/elementtree-"
2655 version "-20050316.tar.gz"))
2658 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
2659 (build-system python-build-system)
2661 `(#:python ,python-2 ; seems to be part of Python 3
2662 #:tests? #f)) ; no 'test' sub-command
2663 (synopsis "Toolkit for XML processing in Python")
2665 "ElementTree is a Python library supporting lightweight XML processing.")
2666 (home-page "https://effbot.org/zone/element-index.htm")
2667 (license (license:x11-style
2668 "http://docs.python.org/2/license.html"
2669 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
2671 (define-public python2-pybugz
2673 (name "python2-pybugz")
2678 "http://bits.liquidx.net/projects/pybugz/pybugz-"
2682 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
2683 (patches (search-patches "pybugz-stty.patch"
2684 "pybugz-encode-error.patch"))))
2685 (build-system python-build-system)
2687 `(#:python ,python-2 ; SyntaxError with Python 3
2688 #:tests? #f)) ; no 'test' sub-command
2690 `(("element-tree" ,python2-element-tree)))
2691 (synopsis "Python and command-line interface to Bugzilla")
2693 "PyBugz is a Python library and command-line tool to query the Bugzilla
2694 bug tracking system. It is meant as an aid to speed up interaction with the
2696 (home-page "http://www.liquidx.net/pybugz/")
2697 (license license:gpl2)))
2699 (define-public python2-enum
2701 (name "python2-enum")
2705 (uri (pypi-uri "enum" version))
2708 "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl"))))
2709 (build-system python-build-system)
2711 `(#:python ,python-2))
2712 (home-page "https://pypi.org/project/enum/")
2713 (synopsis "Robust enumerated type support in Python")
2715 "This provides a module for robust enumerations in Python. It has
2716 been superseded by the Python standard library and is provided only for
2718 ;; Choice of either license.
2719 (license (list license:gpl3+ license:psfl))))
2721 (define-public python-enum34
2723 (name "python-enum34")
2728 (uri (pypi-uri "enum34" version))
2731 "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a"))))
2732 (build-system python-build-system)
2733 (home-page "https://pypi.org/project/enum34/")
2734 (synopsis "Backported Python 3.4 Enum")
2736 "Enum34 is the new Python stdlib enum module available in Python 3.4
2737 backported for previous versions of Python from 2.4 to 3.3.")
2738 (license license:bsd-3)))
2740 (define-public python2-enum34
2741 (package-with-python2 python-enum34))
2743 (define-public python-parse-type
2745 (name "python-parse-type")
2750 (uri (pypi-uri "parse_type" version))
2753 "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"))))
2754 (build-system python-build-system)
2756 `(("python-six" ,python-six)
2757 ("python-parse" ,python-parse)))
2759 `(("python-pytest" ,python-pytest)
2760 ("python-pytest-runner" ,python-pytest-runner)))
2761 (home-page "https://github.com/jenisys/parse_type")
2762 (synopsis "Extended parse module")
2764 "Parse_type extends the python parse module.")
2766 `((python2-variant . ,(delay python2-parse-type))))
2767 (license license:bsd-3)))
2769 (define-public python2-parse-type
2770 (let ((base (package-with-python2
2771 (strip-python2-variant python-parse-type))))
2772 (package/inherit base
2774 `(("python2-enum34" ,python2-enum34)
2775 ,@(package-propagated-inputs base))))))
2777 (define-public python-parse
2779 (name "python-parse")
2784 (uri (pypi-uri "parse" version))
2787 "19063x4xdjpaf7rfxai6jpgm2k4yvkq7wha8aa8cagbjsqr60rli"))))
2788 (build-system python-build-system)
2791 (modify-phases %standard-phases
2793 (lambda _ (invoke "python" "test_parse.py"))))))
2794 (home-page "https://github.com/r1chardj0n3s/parse")
2795 (synopsis "Parse strings")
2797 "Parse strings using a specification based on the Python @code{format()}
2799 (license license:x11)))
2801 (define-public python-polib
2803 (name "python-polib")
2807 (uri (pypi-uri "polib" version))
2810 "0aikb8gcarhifn3sadrbbs5czagih9hjv250gsrgy9v1d49pvn7s"))))
2811 (build-system python-build-system)
2812 (home-page "https://bitbucket.org/izi/polib/wiki/Home")
2813 (synopsis "Manipulate, create and modify gettext files")
2814 (description "Polib can manipulate any gettext format (po, pot and mo)
2815 files. It can be used to create po files from scratch or to modify
2817 (license license:expat)))
2819 (define-public python2-polib
2820 (let ((base (package-with-python2 (strip-python2-variant python-polib))))
2821 (package/inherit base
2822 (arguments `(,@(package-arguments base)
2823 ;; Tests don't work with python2.
2826 (define-public python-poyo
2828 (name "python-poyo")
2833 (uri (pypi-uri "poyo" version))
2836 "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
2837 (build-system python-build-system)
2838 (home-page "https://github.com/hackebrot/poyo")
2839 (synopsis "Lightweight YAML Parser for Python")
2841 "This package provides a lightweight YAML Parser for Python. It supports
2842 only a chosen subset of the YAML format that is required to parse cookiecutter
2843 user configuration files. It does not have support for serializing into YAML
2844 and is not compatible with JSON.")
2845 (license license:expat)))
2847 (define-public scons
2854 (url "https://github.com/SCons/scons")
2856 (file-name (git-file-name name version))
2859 "1xy8jrwz87y589ihcld4hv7wn122sjbz914xn8h50ww77wbhk8hn"))))
2860 (build-system python-build-system)
2862 `(#:use-setuptools? #f ; still relies on distutils
2863 #:tests? #f ; no 'python setup.py test' command
2865 (modify-phases %standard-phases
2866 (add-before 'build 'bootstrap
2868 (substitute* "src/engine/SCons/compat/__init__.py"
2869 (("sys.modules\\[new\\] = imp.load_module\\(old, \\*imp.find_module\\(old\\)\\)")
2870 "sys.modules[new] = __import__(old)"))
2871 (substitute* "src/engine/SCons/Platform/__init__.py"
2872 (("mod = imp.load_module\\(full_name, file, path, desc\\)")
2873 "mod = __import__(full_name)"))
2874 (invoke "python" "bootstrap.py" "build/scons" "DEVELOPER=guix")
2875 (chdir "build/scons")
2877 (home-page "https://scons.org/")
2878 (synopsis "Software construction tool written in Python")
2880 "SCons is a software construction tool. Think of SCons as an improved,
2881 cross-platform substitute for the classic Make utility with integrated
2882 functionality similar to autoconf/automake and compiler caches such as ccache.
2883 In short, SCons is an easier, more reliable and faster way to build
2885 (license license:x11)))
2887 (define-public scons-python2
2889 (inherit (package-with-python2 scons))
2890 (name "scons-python2")))
2892 (define-public python-extension-helpers
2894 (name "python-extension-helpers")
2899 (uri (pypi-uri "extension-helpers" version))
2901 (base32 "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"))))
2902 (build-system python-build-system)
2904 `(("coverage" ,python-coverage)
2905 ("pytest" ,python-pytest-astropy)
2906 ("pytest-cov" ,python-pytest-cov)
2907 ("setuptools-scm" ,python-setuptools-scm)))
2908 (home-page "https://github.com/astropy/astropy-helpers")
2910 "Utilities for building and installing packages in the Astropy ecosystem")
2912 "The extension-helpers package includes many build, installation, and
2913 documentation-related tools used by the Astropy project.")
2914 (license license:bsd-3)))
2916 (define-public python-extras
2918 (name "python-extras")
2923 (uri (pypi-uri "extras" version))
2926 "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
2927 (build-system python-build-system)
2929 ;; FIXME: Circular dependency on testtools.
2931 (home-page "https://github.com/testing-cabal/extras")
2932 (synopsis "Useful extensions to the Python standard library")
2934 "Extras is a set of extensions to the Python standard library.")
2935 (license license:expat)))
2937 (define-public python2-extras
2938 (package-with-python2 python-extras))
2940 (define-public python-mimeparse
2942 (name "python-mimeparse")
2947 (uri (pypi-uri "python-mimeparse" version))
2950 "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
2951 (build-system python-build-system)
2954 (modify-phases %standard-phases
2957 (invoke "./mimeparse_test.py"))))))
2959 "https://github.com/dbtsai/python-mimeparse")
2960 (synopsis "Python library for parsing MIME types")
2962 "Mimeparse provides basic functions for parsing MIME type names and
2963 matching them against a list of media-ranges.")
2964 (license license:expat)))
2966 (define-public python2-mimeparse
2967 (package-with-python2 python-mimeparse))
2969 (define-public python-miniboa
2971 (name "python-miniboa")
2976 (uri (pypi-uri "miniboa" version))
2979 "002c1aki9hsrwj5plrwdrf3sk8rn95fqylqyjx2arrjfpsih4dgs"))))
2980 (build-system python-build-system)
2981 (home-page "https://github.com/shmup/miniboa")
2982 (synopsis "Simple, single-threaded Telnet server")
2984 "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
2986 (license license:asl2.0)))
2988 (define-public python2-miniboa
2989 (package-with-python2 python-miniboa))
2991 (define-public python-pafy
2993 (name "python-pafy")
2998 (uri (pypi-uri "pafy" version))
3001 "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
3002 (build-system python-build-system)
3004 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
3006 ;; Youtube-dl is a python package which is imported in the file
3007 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
3008 `(("youtube-dl" ,youtube-dl)))
3009 (home-page "https://np1.github.io/pafy/")
3010 (synopsis "Retrieve YouTube content and metadata")
3012 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
3013 (license license:lgpl3+)))
3015 (define-public python2-funcsigs
3017 (name "python2-funcsigs")
3021 (uri (pypi-uri "funcsigs" version))
3024 "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"))))
3025 (build-system python-build-system)
3027 `(#:python ,python-2))
3029 `(("python2-unittest2" ,python2-unittest2)))
3030 (home-page "http://funcsigs.readthedocs.org")
3031 (synopsis "Python function signatures from PEP362")
3033 "Backport of @code{funcsigs} which was introduced in Python 3.3.")
3034 (license license:asl2.0)))
3036 (define-public python2-funcsigs-bootstrap
3038 (inherit python2-funcsigs)
3039 (name "python2-funcsigs-bootstrap")
3043 ,@(package-arguments python2-funcsigs)))))
3045 (define-public python-py
3052 (uri (pypi-uri "py" version))
3055 "1ajjazg3913n0sp3vjyva9c2qh5anx8ziryng935f89604a0h9sy"))))
3056 (build-system python-build-system)
3058 ;; FIXME: "ImportError: 'test' module incorrectly imported from
3059 ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
3060 ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
3061 ;; Is this module globally installed?"
3064 `(("python-setuptools-scm" ,python-setuptools-scm)))
3065 (home-page "https://github.com/pytest-dev/py")
3066 (synopsis "Python library for parsing, I/O, instrospection, and logging")
3068 "Py is a Python library for file name parsing, .ini file parsing, I/O,
3069 code introspection, and logging.")
3070 (license license:expat)))
3072 (define-public python-py-next
3079 (uri (pypi-uri "py" version))
3082 "1lqvkqk3b440g9z82gqbzlzas84wrm6ir8kplzhzavmn2pd1pf11"))))))
3084 (define-public python2-py
3085 (package-with-python2 python-py))
3087 ;; Recent versions of python-fixtures and python-testrepository need
3088 ;; python-pbr for packaging, which itself needs these two packages for
3090 ;; To fix this circular dependency, we use a build of python-pbr, based on the
3091 ;; same source, just without any test dependencies and with tests disabled.
3092 ;; python-pbr-minmal is then used to package python-fixtures and
3093 ;; python-testrepository.
3094 ;; Strictly speaking we currently could remove the test-requirements from the
3095 ;; normal python-pbr package (and save this package) since test are disabled
3096 ;; there anyway. But this may change in future.
3097 (define-public python-pbr-minimal
3099 (name "python-pbr-minimal")
3104 (uri (pypi-uri "pbr" version))
3107 "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p"))))
3108 (build-system python-build-system)
3111 (home-page "https://docs.openstack.org/pbr/latest/")
3112 (synopsis "Minimal build of python-pbr used for bootstrapping")
3114 "Used only for bootstrapping python2-pbr, you should not need this.")
3115 (license license:asl2.0)))
3117 (define-public python-pbr
3119 (inherit python-pbr-minimal)
3122 `(#:tests? #f)) ;; Most tests seem to use the Internet.
3124 `(("git" ,git))) ;; pbr actually uses the "git" binary.
3126 `(("python-fixtures" ,python-fixtures-bootstrap)
3127 ;; discover, coverage, hacking, subunit
3128 ("python-mock" ,python-mock)
3129 ("python-six" ,python-six)
3130 ("python-sphinx" ,python-sphinx)
3131 ("python-testrepository" ,python-testrepository-bootstrap)
3132 ("python-testresources" ,python-testresources-bootstrap)
3133 ("python-testscenarios" ,python-testscenarios-bootstrap)
3134 ("python-testtools" ,python-testtools-bootstrap)
3135 ("python-virtualenv" ,python-virtualenv)))
3136 (synopsis "Enhance the default behavior of Python’s setuptools")
3138 "Python Build Reasonableness (PBR) is a library that injects some useful
3139 and sensible default behaviors into your setuptools run. It will set
3140 versions, process requirements files and generate AUTHORS and ChangeLog file
3141 from git information.
3144 (define-public python-pyrsistent
3146 (name "python-pyrsistent")
3148 (home-page "https://github.com/tobgu/pyrsistent")
3151 (uri (pypi-uri "pyrsistent" version))
3154 "1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
3155 (build-system python-build-system)
3157 '(#:phases (modify-phases %standard-phases
3158 ;; The package works fine with newer Pytest and Hypothesis, but
3159 ;; has pinned older versions to stay compatible with Python 2.
3160 (add-before 'check 'loosen-pytest-requirement
3162 (substitute* "setup.py"
3163 (("pytest<5") "pytest")
3164 (("hypothesis<5") "hypothesis"))
3167 `(("python-hypothesis" ,python-hypothesis)
3168 ("python-pytest" ,python-pytest)
3169 ("python-pytest-runner" ,python-pytest-runner)))
3171 `(("python-six" ,python-six)))
3172 (synopsis "Persistent data structures for Python")
3174 "Pyrsistent is a number of persistent collections (by some referred to as
3175 functional data structures). Persistent in the sense that they are immutable.
3177 All methods on a data structure that would normally mutate it instead return a
3178 new copy of the structure containing the requested updates. The original
3179 structure is left untouched.")
3180 (license license:expat)))
3182 (define-public python2-pyrsistent
3183 (package-with-python2 python-pyrsistent))
3185 (define-public python-exif-read
3187 (name "python-exif-read")
3191 (uri (pypi-uri "ExifRead" version))
3194 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
3195 (build-system python-build-system)
3196 (arguments `(#:tests? #f)) ; no tests
3197 (home-page "https://github.com/ianare/exif-py")
3198 (synopsis "Python library to extract EXIF data from image files")
3200 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
3202 (license license:bsd-3)))
3204 (define-public python2-exif-read
3205 (package-with-python2 python-exif-read))
3207 (define-public python-pyld
3209 (name "python-pyld")
3213 (uri (pypi-uri "PyLD" version))
3216 "1ywbdbsrkg533qh8xn9ifjh2mvam6v5msrjyqq73jfpvcp89qvff"))))
3217 (build-system python-build-system)
3218 (home-page "https://github.com/digitalbazaar/pyld")
3219 (synopsis "Python implementation of the JSON-LD specification")
3221 "PyLD is an implementation of the JSON-LD specification.")
3222 (license license:bsd-3)))
3224 (define-public python2-pyld
3225 (package-with-python2 python-pyld))
3227 (define-public python-cli-helpers
3229 (name "python-cli-helpers")
3233 ;; There's no source tarball on PyPI.
3236 (url "https://github.com/dbcli/cli_helpers")
3237 (commit (string-append "v" version))))
3238 (file-name (git-file-name name version))
3240 (base32 "1bg2iw9l5dip0kbs00hajdk2v18wvhssbnq8hdf71278qf0wks5l"))))
3241 (build-system python-build-system)
3243 `(("python-pytest" ,python-pytest)))
3245 `(("python-wcwidth" ,python-wcwidth)
3246 ("python-configobj" ,python-configobj)
3247 ("python-tabulate" ,python-tabulate)
3248 ("python-terminaltables" ,python-terminaltables)))
3249 (home-page "https://github.com/dbcli/cli_helpers")
3250 (synopsis "Helpers for building command-line apps")
3252 "CLI Helpers is a Python package that makes it easy to perform common
3253 tasks when building command-line apps. It's a helper library for command-line
3255 (license license:bsd-3)))
3257 (define-public python-click
3259 (name "python-click")
3264 (uri (pypi-uri "click" version))
3267 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
3268 (build-system python-build-system)
3271 (modify-phases %standard-phases
3272 (add-after 'unpack 'fix-paths
3273 (lambda* (#:key inputs #:allow-other-keys)
3274 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
3275 "cross-libc" "libc"))))
3276 (substitute* "src/click/_unicodefun.py"
3278 (string-append "'" glibc "/bin/locale'"))))
3282 (setenv "PYTHONPATH" (string-append "./src:" (getenv "PYTHONPATH")))
3283 (invoke "python" "-m" "pytest"))))))
3285 `(("python-pytest" ,python-pytest)))
3286 (home-page "https://palletsprojects.com/p/click/")
3287 (synopsis "Command line library for Python")
3289 "Click is a Python package for creating command line interfaces in a
3290 composable way with as little code as necessary. Its name stands for
3291 \"Command Line Interface Creation Kit\". It's highly configurable but comes
3292 with sensible defaults out of the box.")
3293 (license license:bsd-3)))
3295 (define-public python2-click
3296 (package-with-python2 python-click))
3298 (define-public python-click-5
3299 (package (inherit python-click)
3300 (name "python-click")
3305 (uri (pypi-uri "click" version))
3307 (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337"))))
3310 (define-public python-vcversioner
3312 (name "python-vcversioner")
3313 (version "2.16.0.0")
3317 (uri (pypi-uri "vcversioner" version))
3320 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
3321 (build-system python-build-system)
3322 (synopsis "Python library for version number discovery")
3323 (description "Vcversioner is a Python library that inspects tagging
3324 information in a variety of version control systems in order to discover
3326 (home-page "https://github.com/habnabit/vcversioner")
3327 (license license:isc)))
3329 (define-public python2-vcversioner
3330 (package-with-python2 python-vcversioner))
3332 (define-public python-jdcal
3334 (name "python-jdcal")
3339 (uri (pypi-uri "jdcal" version))
3342 "1ja6j2xq97bsl6rv09mhdx7n0xnrsfx0mj5xqza0mxghqmkm02pa"))))
3343 (build-system python-build-system)
3345 `(#:phases (modify-phases %standard-phases
3348 (invoke "pytest"))))))
3350 `(("python-pytest" ,python-pytest)))
3351 (home-page "https://github.com/phn/jdcal")
3352 (synopsis "Functions to convert between Julian dates Gregorian dates")
3353 (description "This Python library provides functions for converting
3354 between Julian dates and Gregorian dates.")
3355 (license license:bsd-2)))
3357 (define-public python2-jdcal
3358 (package-with-python2 python-jdcal))
3360 (define-public python-jsondiff
3362 (name "python-jsondiff")
3367 (uri (pypi-uri "jsondiff" version))
3370 "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l"))))
3371 (build-system python-build-system)
3373 `(("python-nose" ,python-nose)
3374 ("python-nose-random" ,python-nose-random)))
3376 "https://github.com/fzumstein/jsondiff")
3377 (synopsis "Compare JSON and JSON-like structures in Python")
3378 (description "@code{jsondiff} is a Python library which lets you
3379 compare, diff, and patch JSON and JSON-like structures in Python.")
3380 (license license:expat)))
3382 (define-public python-jsonschema
3384 (name "python-jsonschema")
3388 (uri (pypi-uri "jsonschema" version))
3391 "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
3392 (build-system python-build-system)
3395 (modify-phases %standard-phases
3397 (lambda* (#:key inputs outputs #:allow-other-keys)
3398 (add-installed-pythonpath inputs outputs)
3399 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
3400 (invoke "trial" "jsonschema"))))))
3402 `(("python-setuptools_scm" ,python-setuptools-scm)
3403 ("python-twisted" ,python-twisted)))
3405 `(("python-attrs" ,python-attrs)
3406 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
3407 ("python-pyrsistent" ,python-pyrsistent)
3408 ("python-six" ,python-six)))
3409 (home-page "https://github.com/Julian/jsonschema")
3410 (synopsis "Implementation of JSON Schema for Python")
3412 "Jsonschema is an implementation of JSON Schema for Python.")
3413 (license license:expat)
3414 (properties `((python2-variant . ,(delay python2-jsonschema))))))
3416 (define-public python2-jsonschema
3417 (let ((jsonschema (package-with-python2
3418 (strip-python2-variant python-jsonschema))))
3419 (package/inherit jsonschema
3421 `(("python2-functools32" ,python2-functools32)
3422 ,@(package-propagated-inputs jsonschema))))))
3424 (define-public python-schema
3426 (name "python-schema")
3431 (uri (pypi-uri "schema" version))
3434 "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
3435 (build-system python-build-system)
3437 `(("python-pytest" ,python-pytest)))
3438 (home-page "https://github.com/keleshev/schema")
3439 (synopsis "Simple data validation library")
3441 "@code{python-schema} is a library for validating Python data
3442 structures, such as those obtained from config-files, forms, external
3443 services or command-line parsing, converted from JSON/YAML (or
3444 something else) to Python data-types.")
3445 (license license:psfl)))
3447 (define-public python2-schema
3448 (package-with-python2 python-schema))
3450 (define-public python-schema-0.5
3451 (package (inherit python-schema)
3456 (uri (pypi-uri "schema" version))
3459 "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
3461 (define-public python2-schema-0.5
3462 (package-with-python2 python-schema-0.5))
3464 (define-public python-kitchen
3466 (name "python-kitchen")
3471 (uri (pypi-uri "kitchen" version))
3474 "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
3475 (build-system python-build-system)
3477 `(("python-chardet" ,python-chardet)))
3478 (home-page "https://github.com/fedora-infra/kitchen")
3479 (synopsis "Python API for snippets")
3480 (description "@code{kitchen} module provides a python API for all sorts of
3481 little useful snippets of code that everybody ends up writing for their projects
3482 but never seem big enough to build an independent release. Use kitchen and stop
3483 cutting and pasting that code over and over.")
3484 (license (list license:lgpl2.1+
3485 ;; subprocess.py, test_subprocess.py,
3486 ;; kitchen/pycompat25/defaultdict.py:
3489 (define-public python2-kitchen
3490 (package-with-python2 python-kitchen))
3492 (define-public python-roman
3494 (name "python-roman")
3499 (uri (pypi-uri "roman" version))
3502 "0gyp2bmw47jgpm8j64gydzqq838bgxz5gh6cm57lxlr7p26sqiic"))))
3503 (build-system python-build-system)
3504 (home-page "https://github.com/zopefoundation/roman")
3505 (synopsis "Integer to Roman numerals converter")
3507 "This package provides a small helper library to convert Arabic Numbers
3508 to Roman Numerals.")
3509 (license license:psfl)))
3511 (define-public python-unidecode
3513 (name "python-unidecode")
3517 (uri (pypi-uri "Unidecode" version))
3520 "1s6cp2lv4m0f00hjckjz8p6m7d3n3v16jvg353llf5ia1iqsnsib"))))
3521 (build-system python-build-system)
3522 (home-page "https://pypi.org/project/Unidecode/")
3523 (synopsis "ASCII transliterations of Unicode text")
3525 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
3526 useful when integrating with legacy code that doesn't support Unicode, or for
3527 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
3528 machine identifiers from human-readable Unicode strings that should still be
3529 somewhat intelligible.")
3530 (license license:gpl2+)))
3532 (define-public python2-unidecode
3533 (package-with-python2 python-unidecode))
3535 (define-public python-text-unidecode
3537 (name "python-text-unidecode")
3541 (uri (pypi-uri "text-unidecode" version))
3544 "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
3545 (build-system python-build-system)
3547 '(#:phases (modify-phases %standard-phases
3550 (setenv "PYTHONPATH"
3551 (string-append "./build/lib:"
3552 (getenv "PYTHONPATH")))
3553 (invoke "pytest" "-vv"))))))
3555 `(("python-pytest" ,python-pytest)))
3556 (home-page "https://github.com/kmike/text-unidecode/")
3557 (synopsis "Decode Unicode data")
3559 "@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
3560 Perl library. It can create ASCII representations of Unicode data. In general
3561 users should prefer the @code{python-unidecode} package which offers better
3562 memory usage and transliteration quality.")
3563 ;; The user can choose either license.
3564 (license (list license:clarified-artistic license:gpl2+))))
3566 (define-public python2-text-unidecode
3567 (package-with-python2 python-text-unidecode))
3569 (define-public python-pyjwt
3571 (name "python-pyjwt")
3576 (uri (pypi-uri "PyJWT" version))
3579 "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"))
3580 (modules '((guix build utils)))
3583 (for-each delete-file-recursively
3584 (find-files "." "\\.pyc$"))
3586 (build-system python-build-system)
3588 '(#:phases (modify-phases %standard-phases
3591 ;; Mimic upstream commit 3a20892442b34c7 to get
3592 ;; rid of dependency on pytest-runner < 5.0.
3593 ;; Remove substitution for PyJWT > 1.7.1.
3594 (substitute* "setup.py"
3595 ((".*pytest-runner.*")
3597 (invoke "pytest" "-vv"))))))
3599 `(("python-pytest" ,python-pytest)
3600 ("python-pytest-cov" ,python-pytest-cov)))
3601 (home-page "https://github.com/progrium/pyjwt")
3602 (synopsis "JSON Web Token implementation in Python")
3604 "PyJWT is a JSON Web Token implementation written in Python.")
3605 (license license:expat)))
3607 (define-public python2-pyjwt
3608 (package-with-python2 python-pyjwt))
3610 (define-public python-pymsgbox
3612 (name "python-pymsgbox")
3618 ;; LICENSE.txt is not present on pypi
3619 (url "https://github.com/asweigart/PyMsgBox")
3620 (commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
3621 (file-name (git-file-name name version))
3624 "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
3626 ;; Circular dependency to run tests:
3627 ;; Tests need pyautogui, which depends on pymsgbox.
3629 (build-system python-build-system)
3630 (home-page "https://github.com/asweigart/PyMsgBox")
3631 (synopsis "Python module for JavaScript-like message boxes")
3633 "PyMsgBox is a simple, cross-platform, pure Python module for
3634 JavaScript-like message boxes. Types of dialog boxes include:
3642 (license license:bsd-3)))
3644 (define-public python-pympler
3646 (name "python-pympler")
3647 (home-page "https://pythonhosted.org/Pympler/")
3651 (uri (pypi-uri "Pympler" version))
3654 "08mrpnb6cv2nvfncvr8a9a8bpwhnasa924anapnjvnaw5jcd4k7p"))))
3655 (build-system python-build-system)
3657 `(#:phases (modify-phases %standard-phases
3659 (add-after 'install 'check
3660 (lambda* (#:key inputs outputs #:allow-other-keys)
3661 (add-installed-pythonpath inputs outputs)
3662 (invoke "python" "setup.py" "test"))))))
3663 (synopsis "Measure, monitor and analyze memory behavior")
3665 "Pympler is a development tool to measure, monitor and analyze
3666 the memory behavior of Python objects in a running Python application.
3668 By pympling a Python application, detailed insight in the size and the
3669 lifetime of Python objects can be obtained. Undesirable or unexpected
3670 runtime behavior like memory bloat and other @samp{pymples} can easily
3673 A web profiling frontend exposes process statistics, garbage
3674 visualisation and class tracker statistics.")
3675 (license license:asl2.0)))
3677 (define-public python2-pympler
3678 (package-with-python2 python-pympler))
3680 (define-public python-itsdangerous
3682 (name "python-itsdangerous")
3687 (uri (pypi-uri "itsdangerous" version))
3690 "068zpbksq5q2z4dckh2k1zbcq43ay74ylqn77rni797j0wyh66rj"))))
3691 (build-system python-build-system)
3692 (home-page "https://palletsprojects.com/p/itsdangerous/")
3693 (synopsis "Python library for passing data to/from untrusted environments")
3695 "Itsdangerous provides various helpers to pass trusted data to untrusted
3696 environments and back.")
3697 (license license:bsd-3)))
3699 (define-public python2-itsdangerous
3700 (package-with-python2 python-itsdangerous))
3702 (define-public python-pyyaml
3704 (name "python-pyyaml")
3709 (uri (pypi-uri "PyYAML" version))
3712 "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0"))))
3713 (build-system python-build-system)
3715 `(("libyaml" ,libyaml)))
3716 (home-page "https://pyyaml.org")
3717 (synopsis "YAML parser and emitter for Python")
3719 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
3720 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
3721 API, and sensible error messages. PyYAML supports standard YAML tags and
3722 provides Python-specific tags that represent an arbitrary Python object.")
3723 (license license:expat)))
3725 (define-public python2-pyyaml
3726 (package-with-python2 python-pyyaml))
3728 (define-public python-vine
3730 (name "python-vine")
3735 (uri (pypi-uri "vine" version))
3738 "0wkskb2hb494v9gixqnf4bl972p4ibcmxdykzpwjlfa5picns4aj"))))
3739 (build-system python-build-system)
3741 `(("python-pytest" ,python-pytest)
3742 ("python-case" ,python-case)))
3743 (home-page "https://github.com/celery/vine")
3744 (synopsis "Promises for Python")
3746 "@code{vine} provides a special implementation of promises in that it can
3747 be used both for \"promise of a value\" and lazy evaluation. The biggest
3748 upside for this is that everything in a promise can also be a promise,
3749 e.g. filters, callbacks and errbacks can all be promises.")
3750 (license license:bsd-3)))
3752 (define-public python-virtualenv
3754 (name "python-virtualenv")
3759 (uri (pypi-uri "virtualenv" version))
3762 "1rd6wmymsgv0cdsn50jwybcvbbslzym3mzffcjbl42l8br9cgap0"))))
3763 (build-system python-build-system)
3765 `(("python-mock" ,python-mock)
3766 ("python-pytest" ,python-pytest)
3767 ;; NOTE: guix lint remarks that "python-setuptools should probably not
3768 ;; be an input at all". However, removing the input makes the build error:
3769 ;; File "setup.py", line 4, in <module>
3770 ;; raise RuntimeError("setuptools >= 41 required to build")
3771 ("python-setuptools" ,python-setuptools)
3772 ("python-setuptools-scm" ,python-setuptools-scm)))
3774 `(("python-appdirs" ,python-appdirs)
3775 ("python-distlib" ,python-distlib/next)
3776 ("python-filelock" ,python-filelock)
3777 ("python-six" ,python-six)
3778 ("python-importlib-metadata" ,python-importlib-metadata)))
3779 (home-page "https://virtualenv.pypa.io/")
3780 (synopsis "Virtual Python environment builder")
3782 "Virtualenv is a tool to create isolated Python environments.")
3783 (license license:expat)))
3785 (define-public python-markupsafe
3787 (name "python-markupsafe")
3792 (uri (pypi-uri "MarkupSafe" version))
3795 "0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
3796 (build-system python-build-system)
3798 `(#:modules ((ice-9 ftw)
3802 (guix build python-build-system))
3803 #:phases (modify-phases %standard-phases
3806 (let ((cwd (getcwd))
3807 (libdir (find (cut string-prefix? "lib." <>)
3808 (scandir "build"))))
3809 (setenv "PYTHONPATH"
3810 (string-append cwd "/build/" libdir ":"
3811 (getenv "PYTHONPATH")))
3812 (invoke "pytest" "-vv")))))))
3814 `(("python-pytest" ,python-pytest)))
3815 (home-page "https://github.com/mitsuhiko/markupsafe")
3816 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
3818 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
3820 (license license:bsd-3)))
3822 (define-public python2-markupsafe
3823 (package-with-python2 python-markupsafe))
3825 (define-public python-jinja2
3827 (name "python-jinja2")
3832 (uri (pypi-uri "Jinja2" version))
3835 "1c1v3djnr0ymp5xpy1h3h60abcaqxdlm4wsqmls9rxby88av5al9"))))
3836 (build-system python-build-system)
3838 '(#:phases (modify-phases %standard-phases
3840 (lambda* (#:key tests? #:allow-other-keys)
3843 (setenv "PYTHONPATH"
3844 (string-append "./build/lib:"
3845 (getenv "PYTHONPATH")))
3846 (invoke "pytest" "-vv"))
3847 (format #t "test suite not run~%"))
3850 `(("python-pytest" ,python-pytest)))
3852 `(("python-markupsafe" ,python-markupsafe)))
3853 (home-page "http://jinja.pocoo.org/")
3854 (synopsis "Python template engine")
3856 "Jinja2 is a small but fast and easy to use stand-alone template engine
3857 written in pure Python.")
3858 (license license:bsd-3)))
3860 (define-public python2-jinja2
3861 (package-with-python2 python-jinja2))
3863 (define-public python-jinja2-time
3865 (name "python-jinja2-time")
3870 (uri (pypi-uri "jinja2-time" version))
3873 "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
3874 (build-system python-build-system)
3876 `(("python-arrow" ,python-arrow)
3877 ("python-jinja2" ,python-jinja2)))
3879 "https://github.com/hackebrot/jinja2-time")
3880 (synopsis "Jinja2 Extension for Dates and Times")
3882 "This package provides an extension for the template engine Jinja2. It
3883 adds a 'now' tag providing a convenient access to the arrow.now() API from
3884 templates. A format string can be provided to control the output.")
3885 (license license:expat)))
3887 (define-public python-pystache
3889 (name "python-pystache")
3893 (uri (pypi-uri "pystache" version))
3896 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
3897 (build-system python-build-system)
3899 '(#:tests? #f)) ; FIXME: Python 3 tests are failing.
3900 (home-page "http://defunkt.io/pystache/")
3901 (synopsis "Python logic-less template engine")
3903 "Pystache is a Python implementation of the framework agnostic,
3904 logic-free templating system Mustache.")
3905 (license license:expat)
3906 (properties `((python2-variant . ,(delay python2-pystache))))))
3908 (define-public python2-pystache
3909 (let ((base (package-with-python2
3910 (strip-python2-variant python-pystache))))
3911 (package/inherit base
3913 `(#:python ,python-2
3915 (modify-phases %standard-phases
3918 (invoke "python" "test_pystache.py")))))))))
3920 (define-public python-joblib
3922 (name "python-joblib")
3926 (uri (pypi-uri "joblib" version))
3929 "1j464w137w6s367gl697j1l63g52akydrxgv4czlck36ynjfwc06"))))
3930 (build-system python-build-system)
3933 (modify-phases %standard-phases
3935 (lambda _ (invoke "pytest" "-v" "joblib"))))))
3937 `(("python-pytest" ,python-pytest)))
3938 (home-page "https://joblib.readthedocs.io/")
3939 (synopsis "Using Python functions as pipeline jobs")
3941 "Joblib is a set of tools to provide lightweight pipelining in Python.
3942 In particular, joblib offers: transparent disk-caching of the output values
3943 and lazy re-evaluation (memoize pattern), easy simple parallel computing
3944 logging and tracing of the execution.")
3945 (license license:bsd-3)))
3947 (define-public python2-joblib
3948 (package-with-python2 python-joblib))
3950 (define-public python-daemon
3952 (name "python-daemon")
3957 (uri (pypi-uri "python-daemon" version))
3960 "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg"))))
3961 (build-system python-build-system)
3964 (modify-phases %standard-phases
3965 (add-before 'check 'disable-tests
3967 ;; FIXME: Determine why test fails
3968 (substitute* "test/test_daemon.py"
3969 (("test_detaches_process_context")
3970 "skip_test_detaches_process_context"))
3973 `(("python-lockfile" ,python-lockfile)))
3975 `(("python-unittest2" ,python-unittest2)
3976 ("python-testtools" ,python-testtools)
3977 ("python-testscenarios" ,python-testscenarios)
3978 ("python-mock" ,python-mock)
3979 ("python-docutils" ,python-docutils)))
3980 (home-page "https://pagure.io/python-daemon/")
3981 (synopsis "Python library for making a Unix daemon process")
3982 (description "Python-daemon is a library that assists a Python program to
3983 turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
3985 This library provides a @code{DaemonContext} class that manages the following
3986 important tasks for becoming a daemon process:
3988 @item Detach the process into its own process group.
3989 @item Set process environment appropriate for running inside a chroot.
3990 @item Renounce suid and sgid privileges.
3991 @item Close all open file descriptors.
3992 @item Change the working directory, uid, gid, and umask.
3993 @item Set appropriate signal handlers.
3994 @item Open new file descriptors for stdin, stdout, and stderr.
3995 @item Manage a specified PID lock file.
3996 @item Register cleanup functions for at-exit processing.
3998 ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
3999 (license (list license:asl2.0 license:gpl3+))))
4001 (define-public python-anytree
4003 (name "python-anytree")
4007 (uri (pypi-uri "anytree" version))
4010 "1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
4011 (build-system python-build-system)
4013 `(("python-six" ,python-six)))
4016 ("graphviz" ,graphviz) ;for 'dot'
4017 ("python-nose" ,python-nose)))
4018 (home-page "https://github.com/c0fec0de/anytree")
4019 (synopsis "Lightweight tree data library")
4021 "@code{anytree} is a simple, lightweight, and extensible tree data
4022 structure for Python.")
4023 (license license:asl2.0)))
4025 (define-public python-docutils
4027 (name "python-docutils")
4032 (uri (pypi-uri "docutils" version))
4035 "1z3qliszqca9m719q3qhdkh0ghh90g500avzdgi7pl77x5h3mpn2"))))
4036 (build-system python-build-system)
4038 '(#:phases (modify-phases %standard-phases
4040 (lambda* (#:key tests? #:allow-other-keys)
4042 (invoke "python" "test/alltests.py")
4043 (format #t "test suite not run~%"))
4045 (home-page "http://docutils.sourceforge.net/")
4046 (synopsis "Python Documentation Utilities")
4048 "Docutils is a modular system for processing documentation into useful
4049 formats, such as HTML, XML, and LaTeX. It uses @dfn{reStructuredText}, an
4050 easy to use markup language, for input.
4052 This package provides tools for converting @file{.rst} files to other formats
4053 via commands such as @command{rst2man}, as well as supporting Python code.")
4054 ;; Most of the source code is public domain, but some source files are
4055 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
4056 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
4058 (define-public python2-docutils
4059 (package-with-python2 python-docutils))
4061 ;; python2-sphinx fails its test suite with newer versions.
4062 (define-public python2-docutils-0.14
4064 (inherit python2-docutils)
4068 (uri (pypi-uri "docutils" version))
4071 "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"))))))
4073 (define-public python-restructuredtext-lint
4075 (name "python-restructuredtext-lint")
4080 (uri (pypi-uri "restructuredtext-lint" version))
4083 "026rdy5h82ng4vqxk8fnprii9d6qxf7hkygiv0a8afjvdlsxmcwp"))))
4084 (build-system python-build-system)
4087 (modify-phases %standard-phases
4089 (add-after 'install 'check
4090 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4092 (add-installed-pythonpath inputs outputs)
4093 (invoke "nosetests" "-v"))
4096 `(("python-docutils" ,python-docutils)))
4098 `(("python-nose" ,python-nose)))
4099 (home-page "https://github.com/twolfson/restructuredtext-lint")
4100 (synopsis "reStructuredText linter")
4101 (description "This package provides a linter for the reStructuredText
4103 (license license:unlicense)))
4105 (define-public python-doc8
4107 (name "python-doc8")
4112 (uri (pypi-uri "doc8" version))
4115 "0hw5w8mpgsp51qg8nnq28p7y1jiksvz7a0axnn5bkgss3af9zy1d"))))
4116 (build-system python-build-system)
4119 (modify-phases %standard-phases
4121 (add-after 'install 'check
4122 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4124 (add-installed-pythonpath inputs outputs)
4125 (invoke "pytest" "-v"))
4128 `(("python-chardet" ,python-chardet)
4129 ("python-docutils" ,python-docutils)
4130 ("python-restructuredtext-lint" ,python-restructuredtext-lint)
4131 ("python-six" ,python-six)
4132 ("python-stevedore" ,python-stevedore)))
4134 `(("python-testtools" ,python-testtools)
4135 ("python-pytest" ,python-pytest)))
4136 (home-page "https://launchpad.net/doc8")
4138 "Style checker for Sphinx (or other) RST documentation")
4140 "Doc8 is an opinionated style checker for reStructured Text and plain
4141 text styles of documentation.")
4142 (license license:asl2.0)))
4144 (define-public python-pygments
4146 (name "python-pygments")
4151 (uri (pypi-uri "Pygments" version))
4154 "05mps9r966r3dpqw6zrs1nlwjdf5y4960hl9m7abwb3qyfnarwyc"))))
4155 (replacement python-pygments/fixed)
4156 (build-system python-build-system)
4158 ;; FIXME: Tests require sphinx, which depends on this.
4160 (home-page "https://pygments.org/")
4161 (synopsis "Syntax highlighting")
4163 "Pygments is a syntax highlighting package written in Python.")
4164 (license license:bsd-2)
4165 (properties `((python2-variant . ,(delay python2-pygments))))))
4167 (define python-pygments/fixed
4169 (inherit python-pygments)
4174 (uri (pypi-uri "Pygments" version))
4177 "0dy35ry5qa8dpklk4fkj9kfpw2qb4mh5ha9866kw30wf96dx0jfz"))))))
4179 ;; Pygments 2.6 and later does not support Python 2.
4180 (define-public python2-pygments
4181 (let ((base (package-with-python2 (strip-python2-variant python-pygments))))
4187 (uri (pypi-uri "Pygments" version))
4190 "1zmhnswy0wxfn0xprs9aqsvx2c3kmzfn2wx14q8cv3vpkxdamj4q")))))))
4192 (define-public python-pygments-github-lexers
4194 (name "python-pygments-github-lexers")
4199 (uri (pypi-uri "pygments-github-lexers" version))
4202 "0cz14clcc9z4pn79ll8hp3xzgsrfjscak5zfsvlgrz6ngkkmgjma"))))
4203 (build-system python-build-system)
4205 `(("python-pygments" ,python-pygments)))
4206 (home-page "https://github.com/liluo/pygments-github-lexers")
4207 (synopsis "Pygments Github custom lexers")
4208 (description "This package installs Github custom lexers to Pygments.")
4209 (license license:bsd-3)))
4211 (define-public python-bump2version
4213 (name "python-bump2version")
4218 (uri (pypi-uri "bump2version" version))
4220 (base32 "1rinm4gv1fyh7xjv3v6r1p3zh5kl4ry2qifz5f7frx31mnzv4b3n"))))
4221 (build-system python-build-system)
4223 ;; XXX: Tests fail with "bumpversion: error: the following arguments are
4224 ;; required: --new-version".
4226 (home-page "https://github.com/c4urself/bump2version")
4227 (synopsis "Version-bump your software with a single command!")
4229 "This package provides a small command line tool to simplify releasing
4230 software by updating all version strings in your source code by the correct
4231 increment. It also creates commits and tags.")
4232 (license license:expat)))
4234 (define-public python-bumpversion
4236 (name "python-bumpversion")
4241 (uri (pypi-uri "bumpversion" version))
4244 "0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37"))))
4245 (build-system python-build-system)
4246 (home-page "https://github.com/peritus/bumpversion")
4247 (synopsis "Tool to bump software version")
4248 (description "This tool provides a command-line interface (CLI) to bump a
4249 software version simply.")
4250 (license license:expat)))
4252 (define-public python-deprecated
4254 (name "python-deprecated")
4260 (url "https://github.com/tantale/deprecated")
4261 (commit (string-append "v" version))))
4262 (file-name (git-file-name name version))
4265 "14909glxxwwc4b9qpz2b9jdriwzi5n65ichw85xqppap5f79wcwz"))))
4266 (build-system python-build-system)
4268 `(#:phases (modify-phases %standard-phases
4271 (invoke "pytest"))))))
4273 `(("python-wrapt" ,python-wrapt)))
4275 `(("python-bumpversion" ,python-bumpversion)
4276 ("python-pytest" ,python-pytest)
4277 ("python-pytest-cov" ,python-pytest-cov)
4278 ("python-sphinx" ,python-sphinx)
4279 ("python-tox" ,python-tox)))
4280 (home-page "https://github.com/tantale/deprecated")
4281 (synopsis "Python decorator to deprecate classes, functions or methods")
4282 (description "The @code{deprecated} decorator provides a convenient way to deprecate
4283 to deprecate classes, functions or methods.")
4284 (license license:expat)))
4286 (define-public python-pygithub
4288 (name "python-pygithub")
4291 ;; We fetch from the Git repo because there are no tests in the PyPI
4296 (url "https://github.com/PyGithub/PyGithub")
4297 (commit (string-append "v" version))))
4298 (file-name (git-file-name name version))
4300 (base32 "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq"))))
4301 (build-system python-build-system)
4304 (modify-phases %standard-phases
4306 (lambda* (#:key tests? #:allow-other-keys)
4311 `(("python-cryptography" ,python-cryptography)
4312 ("python-deprecated" ,python-deprecated)
4313 ("python-pyjwt" ,python-pyjwt)
4314 ("python-requests" ,python-requests)))
4316 `(("python-httpretty" ,python-httpretty)
4317 ("python-pytest" ,python-pytest)))
4318 (home-page "https://pygithub.readthedocs.io/en/latest/")
4319 (synopsis "Python library for the GitHub API")
4320 (description "This library allows managing GitHub resources such as
4321 repositories, user profiles, and organizations in your Python applications,
4322 using version 3 of the GitHub application programming interface (API).")
4323 (license license:lgpl3+)))
4325 (define-public python-rellu
4327 (name "python-rellu")
4332 (uri (pypi-uri "rellu" version))
4335 "1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x"))))
4336 (build-system python-build-system)
4338 `(("python-invoke" ,python-invoke)
4339 ("python-pygithub" ,python-pygithub)))
4340 (home-page "https://github.com/robotframework/rellu")
4341 (synopsis "Utilities to create PyPI releases")
4342 (description "This collection of utilities contains tooling and templates
4343 to assist in creating releases on GitHub and publishing them on PyPI. It is
4344 designed to be used by Robot Framework and tools and libraries in its
4345 ecosystem, but can naturally be used also by other projects.")
4346 (license license:asl2.0)))
4348 (define-public python-robotframework
4350 (name "python-robotframework")
4352 ;; There are no tests in the PyPI archive.
4357 (url "https://github.com/robotframework/robotframework")
4358 (commit (string-append "v" version))))
4359 (file-name (git-file-name name version))
4361 (base32 "0if0h3myb9m3hgmn1phrhq8pfp89kfqsaq32vmfdjkyjdj7y59ds"))
4362 (patches (search-patches
4363 "python-robotframework-source-date-epoch.patch"))))
4364 (build-system python-build-system)
4366 `(#:phases (modify-phases %standard-phases
4367 (add-before 'build 'build-and-install-doc
4368 (lambda* (#:key outputs #:allow-other-keys)
4369 (let* ((doc-output (assoc-ref outputs "doc"))
4370 (doc (string-append doc-output "/share/"
4371 ,name "-" ,version "/")))
4372 (invoke "invoke" "library-docs" "all")
4374 (copy-recursively "doc/libraries"
4375 (string-append doc "/libraries"))
4378 (lambda* (#:key inputs #:allow-other-keys)
4379 ;; Some tests require timezone data. Otherwise, they
4380 ;; look up /etc/localtime, which doesn't exist, and fail
4383 ;; OverflowError: mktime argument out of range
4385 (string-append (assoc-ref inputs "tzdata")
4387 (setenv "TZ" "Europe/Paris")
4389 (invoke "python" "utest/run.py"))))))
4391 `(("python-invoke" ,python-invoke)
4392 ("python-rellu" ,python-rellu)
4393 ("python:tk" ,python "tk") ;used when building the HTML doc
4394 ("tzdata" ,tzdata-for-tests)))
4395 (outputs '("out" "doc"))
4396 (home-page "https://robotframework.org")
4397 (synopsis "Generic automation framework")
4398 (description "Robot Framework is a generic automation framework for
4399 acceptance testing, acceptance test driven development (ATDD), and robotic
4400 process automation (RPA).")
4401 (license license:asl2.0)))
4403 (define-public python-robotframework-lint
4404 ;; There is no properly tagged release; the commit below seems to correspond
4405 ;; to the 0.9 stable release available from PyPI. The tests are not
4406 ;; included in the PyPI archive, so we fetch the sources from the upstream
4408 (let ((commit "b0619ac58a8b1be125f9c98856a664594614570f")
4411 (name "python-robotframework-lint")
4412 (version (git-version "1.1" ;version taken from 'rflint/version.py'
4418 (url "https://github.com/boakley/robotframework-lint")
4420 (file-name (git-file-name name version))
4423 "180npmvzqync25b2scs878gv8q4y17dsinxyjcc10bw22msfap6b"))))
4424 (build-system python-build-system)
4427 (modify-phases %standard-phases
4430 (invoke "python" "-m" "robot" "-A"
4431 "tests/conf/default.args" "tests"))))))
4433 `(("python-robotframework" ,python-robotframework)))
4434 (home-page "https://github.com/boakley/robotframework-lint/")
4435 (synopsis "Static analysis tool (linter) for Robot Framework")
4436 (description "This package provides the @code{rflint} command-line
4437 utility, a static analysis tool (linter) for Robot Framework source files.")
4438 (license license:asl2.0))))
4440 (define-public python-robotframework-sshlibrary
4442 (name "python-robotframework-sshlibrary")
4444 ;; There are no tests in the PyPI archive.
4449 (url "https://github.com/robotframework/SSHLibrary")
4450 (commit (string-append "v" version))))
4451 (file-name (git-file-name name version))
4454 "1mk6dz2jqqndbx4yji09012q6rmadnqdywi7czvj62b0s07dr3r2"))))
4455 (build-system python-build-system)
4458 (modify-phases %standard-phases
4459 (add-before 'build 'build-and-install-doc
4460 (lambda* (#:key outputs #:allow-other-keys)
4461 (let* ((doc-output (assoc-ref outputs "doc"))
4462 (doc (string-append doc-output "/share/"
4463 ,name "-" ,version "/")))
4464 (invoke "chmod" "-R" "+w" "docs")
4465 (invoke "invoke" "kw-docs" "project-docs")
4467 (for-each delete-file (find-files "docs" "\\.rst"))
4468 (copy-recursively "docs" doc)
4472 ;; Some tests require an SSH server; we remove them.
4473 (delete-file "utest/test_client_api.py")
4474 (delete-file "utest/test_scp.py")
4475 (invoke "python" "utest/run.py"))))))
4477 `(("python-robotframework" ,python-robotframework)
4478 ("python-paramiko" ,python-paramiko)
4479 ("python-scp" ,python-scp)))
4481 `(("openssh" ,openssh)
4483 ;; To generate the documentation
4484 ("python-docutils" ,python-docutils)
4485 ("python-invoke" ,python-invoke)
4486 ("python-pygments" ,python-pygments)
4487 ("python-rellu" ,python-rellu)))
4488 (outputs '("out" "doc"))
4489 (home-page "https://github.com/robotframework/SSHLibrary")
4490 (synopsis "Robot Framework library for SSH and SFTP")
4491 (description "SSHLibrary is a Robot Framework library providing support
4492 for SSH and SFTP. It has the following main usages:
4494 @item Executing commands on the remote machine, either blocking or non-blocking.
4495 @item Writing and reading in an interactive shell.
4496 @item Transferring files and directories over SFTP.
4497 @item Ensuring that files and directories exist on the remote machine.
4499 (license license:asl2.0)))
4501 (define-public python-rstr
4503 (name "python-rstr")
4508 (uri (pypi-uri "rstr" version))
4511 "197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx"))))
4512 (build-system python-build-system)
4513 (home-page "https://github.com/leapfrogonline/rstr")
4514 (synopsis "Generate random strings in Python")
4515 (description "This package provides a python module for generating
4516 random strings of various types. It could be useful for fuzz testing,
4517 generating dummy data, or other applications. It has no dependencies
4518 outside the standard library.")
4519 (license license:bsd-3)))
4521 (define-public python-scp
4528 (uri (pypi-uri "scp" version))
4530 (base32 "1m2v09m407p097cy3xy5rxicqfzrqjwf8v5rd4qhfqkk7lllimwb"))))
4531 (build-system python-build-system)
4533 '(#:tests? #f)) ;tests require an SSH server
4535 `(("python-paramiko" ,python-paramiko)))
4536 (home-page "https://github.com/jbardin/scp.py")
4537 (synopsis "SCP protocol module for Python and Paramiko")
4538 (description "The scp module extends the Paramiko library to send and
4539 receive files via the SCP1 protocol, as implemented by the OpenSSH
4540 @command{scp} program.")
4541 (license license:gpl2+)))
4543 (define-public python-rst.linker
4545 (name "python-rst.linker")
4550 (uri (pypi-uri "rst.linker" version))
4552 (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
4553 (build-system python-build-system)
4555 `(("python-dateutil" ,python-dateutil)
4556 ("python-six" ,python-six)))
4558 `(("python-setuptools-scm" ,python-setuptools-scm)))
4559 ;; Test would require path.py, which would introduce a cyclic dependence.
4560 (arguments `(#:tests? #f))
4561 ;; Note: As of version 1.7 the documentation is not worth building.
4562 (home-page "https://github.com/jaraco/rst.linker")
4563 (synopsis "Sphinx plugin to add links and timestamps")
4564 (description "rst.linker automatically replaces text by a
4565 reStructuredText external reference or timestamps. It's primary purpose is to
4566 augment the changelog, but it can be used for other documents, too.")
4567 (license license:expat)))
4569 (define-public python2-rst.linker
4570 (package-with-python2 python-rst.linker))
4572 (define-public python-sshpubkeys
4574 (name "python-sshpubkeys")
4576 (home-page "https://github.com/ojarva/python-sshpubkeys")
4581 (commit (string-append "v" version))))
4582 (file-name (git-file-name name version))
4585 "1h4gwmcfn84kkqh83km1vfz8sc5kr2g4gzgzmr8gz704jmqiv7nq"))))
4586 (build-system python-build-system)
4588 `(("python-cryptography" ,python-cryptography)
4589 ("python-ecdsa" ,python-ecdsa)))
4590 (synopsis "OpenSSH public key parser")
4592 "This package provides a library for parsing and validating OpenSSH
4594 (license license:bsd-3)))
4596 (define-public python-feedgenerator
4598 (name "python-feedgenerator")
4603 (uri (pypi-uri "feedgenerator" version))
4606 "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
4607 (modules '((guix build utils)))
4610 ;; Remove pre-compiled .pyc files from source.
4611 (for-each delete-file-recursively
4612 (find-files "." "__pycache__" #:directories? #t))
4613 (for-each delete-file (find-files "." "\\.pyc$"))
4615 (build-system python-build-system)
4617 `(("python-pytz" ,python-pytz)
4618 ("python-six" ,python-six)))
4619 (home-page "https://github.com/getpelican/feedgenerator")
4621 "Standalone version of Django's Atom/RSS feed generator")
4623 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
4624 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
4625 (license license:bsd-3)))
4627 (define-public python2-feedgenerator
4628 (package-with-python2 python-feedgenerator))
4630 (define-public python-jsonrpc-server
4632 (name "python-jsonrpc-server")
4637 (uri (pypi-uri "python-jsonrpc-server" version))
4640 "1585ybn3djvx5r5zbxkzlhz2wb1d47y4wrfwaxdyq0gi87jl7ib2"))))
4641 (build-system python-build-system)
4643 `(("python-mock" ,python-mock)
4644 ("python-pytest" ,python-pytest)
4645 ("python-ujson" ,python-ujson)))
4647 "https://github.com/palantir/python-jsonrpc-server")
4648 (synopsis "JSON RPC 2.0 server library")
4650 "This package provides a JSON RPC 2.0 server library for Python.")
4651 (license license:expat)))
4653 (define-public python-pydantic
4655 (name "python-pydantic")
4661 (url "https://github.com/samuelcolvin/pydantic")
4662 (commit (string-append "v" version))))
4663 (file-name (git-file-name name version))
4665 (base32 "06162dss6mvi7wiy2lzxwvzajwxgy8b2fyym7qipaj7zibcqalq2"))))
4666 (build-system python-build-system)
4669 (modify-phases %standard-phases
4670 (add-before 'check 'disable-test
4672 ;; Reported upstream:
4673 ;; <https://github.com/samuelcolvin/pydantic/issues/1580>.
4674 ;; Disable the faulty test as the fix is unclear.
4675 (substitute* "tests/test_validators.py"
4676 (("test_assert_raises_validation_error")
4677 "_test_assert_raises_validation_error"))
4679 ;; These fail because of <https://bugs.python.org/issue40398>.
4680 ;; Remove after Python has been upgraded to >= 3.9.
4681 (substitute* "tests/test_generics.py"
4682 (("assert replace_types\\(Callable, \\{T: int\\}\\) == Callable")
4684 (substitute* "tests/test_schema.py"
4685 (("test_unenforced_constraints_schema")
4686 "_test_unenforced_constraints_schema"))
4688 ;; Disable tests for the Hypothesis plugin because it is tricky
4689 ;; to configure in the build container.
4690 (delete-file "tests/test_hypothesis_plugin.py")))
4692 (lambda _ (invoke "pytest" "-vv"))))))
4694 `(("python-pytest" ,python-pytest)
4695 ("python-pytest-mock" ,python-pytest-mock)))
4697 `(("python-typing-extensions" ,python-typing-extensions)))
4698 (home-page "https://github.com/samuelcolvin/pydantic")
4699 (synopsis "Python data validation and settings management")
4701 "Pydantic enforces type hints at runtime, and provides user friendly
4702 errors when data is invalid.")
4703 (license license:expat)))
4705 (define-public python-pydocstyle
4707 (name "python-pydocstyle")
4712 (uri (pypi-uri "pydocstyle" version))
4715 "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap"))))
4716 (build-system python-build-system)
4718 `(("python-six" ,python-six)
4719 ("python-snowballstemmer" ,python-snowballstemmer)))
4721 "https://github.com/PyCQA/pydocstyle/")
4722 (synopsis "Python docstring style checker")
4724 "This package provides a style checker for the Python Language
4726 (license license:expat)))
4728 (define-public python-language-server
4730 (name "python-language-server")
4735 (uri (pypi-uri "python-language-server" version))
4738 "1c0pnk2aibfhfaanrs0a5gkabkvz81gj20z7r0152b7fcx5ci14r"))))
4739 (build-system python-build-system)
4742 (modify-phases %standard-phases
4743 (add-after 'unpack 'relax-deps
4745 (substitute* "setup.py" (("pycodestyle>=2.6.0,<2.7.0")
4747 (substitute* "setup.py" (("pyflakes>=2.2.0,<2.3.0") "pyflakes"))
4749 (add-before 'check 'set-HOME
4750 (lambda _ (setenv "HOME" "/tmp") #t))
4753 ;; Disable failing test.
4754 (invoke "python" "-m" "pytest" "-k"
4755 "not test_pyqt_completion"))))))
4757 `(("python-autopep8" ,python-autopep8)
4758 ("python-configparser" ,python-configparser)
4759 ("python-pydocstyle" ,python-pydocstyle)
4760 ("python-flake8" ,python-flake8)
4761 ("python-future" ,python-future)
4762 ("python-jedi" ,python-jedi)
4763 ("python-jsonrpc-server" ,python-jsonrpc-server)
4764 ("python-pluggy" ,python-pluggy)
4765 ("python-pycodestyle" ,python-pycodestyle)
4766 ("python-pyflakes" ,python-pyflakes)
4767 ("python-rope" ,python-rope)
4768 ("python-ujson" ,python-ujson)
4769 ("python-yapf" ,python-yapf)))
4771 `(("python-coverage" ,python-coverage)
4772 ("python-flaky" ,python-flaky)
4773 ("python-matplotlib" ,python-matplotlib)
4774 ("python-mock" ,python-mock)
4775 ("python-numpy" ,python-numpy)
4776 ("python-pandas" ,python-pandas)
4777 ("python-pylint" ,python-pylint)
4778 ("python-pytest" ,python-pytest)
4779 ("python-pytest-cov" ,python-pytest-cov)
4780 ("python-versioneer" ,python-versioneer)))
4781 (home-page "https://github.com/palantir/python-language-server")
4782 (synopsis "Python implementation of the Language Server Protocol")
4784 "The Python Language Server (pyls) is an implementation of the Python 3
4785 language specification for the Language Server Protocol (LSP). This tool is
4786 used in text editing environments to provide a complete and integrated
4787 feature-set for programming Python effectively.")
4788 (license license:expat)))
4790 (define-public python-pathspec
4792 (name "python-pathspec")
4797 (uri (pypi-uri "pathspec" version))
4800 "15lvs4awlg8xzl0l4gk9y53xx4yqmqvsv44pglv39m70y85afajn"))))
4801 (build-system python-build-system)
4802 (home-page "https://github.com/cpburnz/python-path-specification")
4803 (synopsis "Utility library for gitignore style pattern matching of file paths")
4805 "This package provides a utility library for gitignore style pattern
4806 matching of file paths.")
4807 (license license:mpl2.0)))
4809 (define-public python-black
4811 (name "python-black")
4816 (uri (pypi-uri "black" version))
4819 "1spv6sldp3mcxr740dh3ywp25lly9s8qlvs946fin44rl1x5a0hw"))))
4820 (build-system python-build-system)
4823 (modify-phases %standard-phases
4824 (add-after 'patch-source-shebangs 'patch-extra-shebangs
4826 (let ((python3 (which "python3")))
4827 (substitute* '("tests/data/fmtonoff.py"
4828 "tests/data/string_prefixes.py"
4829 "tests/data/function.py"
4830 "tests/data/python37.py")
4831 (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
4832 (string-append "#!" python3 (if (string? minor-version)
4836 (add-after 'unpack 'disable-broken-tests
4837 (lambda* (#:key outputs inputs #:allow-other-keys)
4838 ;; Make installed package available for running the tests
4839 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
4840 ":" (getenv "PATH")))
4842 ;; These tests are supposed to be skipped when the blackd
4843 ;; dependencies are missing, but this doesn't quite work.
4844 (substitute* "tests/test_black.py"
4845 (("( *)class BlackDTestCase.*" match indent)
4846 (string-append indent "@unittest.skip(\"no blackd deps\")\n"
4847 indent "class BlackDTestCase(unittest.TestCase):\n"))
4848 (("web.Application") "False")
4849 (("@unittest_run_loop") ""))
4851 ;; Patching the above file breaks the self test
4852 (substitute* "tests/test_black.py"
4853 (("( *)def test_self" match indent)
4854 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4856 (substitute* "tests/test_black.py"
4857 (("( *)def test_python38" match indent)
4858 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4861 `(("python-click" ,python-click)
4862 ("python-attrs" ,python-attrs)
4863 ("python-appdirs" ,python-appdirs)
4864 ("python-pathspec" ,python-pathspec)
4865 ("python-mypy-extensions" ,python-mypy-extensions)
4866 ("python-regex" ,python-regex)
4867 ("python-toml" ,python-toml)
4868 ("python-typed-ast" ,python-typed-ast)
4869 ("python-typing-extensions" ,python-typing-extensions)))
4871 `(("python-setuptools-scm" ,python-setuptools-scm)))
4872 (home-page "https://github.com/ambv/black")
4873 (synopsis "The uncompromising code formatter")
4874 (description "Black is the uncompromising Python code formatter.")
4875 (license license:expat)))
4877 (define-public python-black-macchiato
4879 (name "python-black-macchiato")
4884 (uri (pypi-uri "black-macchiato" version))
4887 "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
4888 (build-system python-build-system)
4890 `(("python-black" ,python-black)))
4891 (home-page "https://github.com/wbolster/black-macchiato")
4892 (synopsis "Partial @code{python-black} formatting")
4894 "This package is built on top the @{python-black} code formatter to
4895 enable formatting of partial files.")
4896 (license license:bsd-3)))
4898 (define-public python-blinker
4900 (name "python-blinker")
4905 (uri (pypi-uri "blinker" version))
4908 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
4909 (build-system python-build-system)
4910 (home-page "https://pythonhosted.org/blinker/")
4911 (synopsis "Fast, simple object-to-object and broadcast signaling")
4913 "Blinker provides a fast dispatching system that allows any number of
4914 interested parties to subscribe to events, or \"signals\".")
4915 (license license:expat)))
4917 (define-public python2-blinker
4918 (package-with-python2 python-blinker))
4920 (define-public pelican
4927 (uri (pypi-uri "pelican" version))
4930 "0mp7hjyhs38ag1hyfcy882g400z0babqi72pnli46dqijfhajzmy"))))
4931 (build-system python-build-system)
4933 `(("python-blinker" ,python-blinker)
4934 ("python-dateutil" ,python-dateutil)
4935 ("python-docutils" ,python-docutils)
4936 ("python-feedgenerator" ,python-feedgenerator)
4937 ("python-jinja2" ,python-jinja2)
4938 ("python-markdown" ,python-markdown)
4939 ("python-pygments" ,python-pygments)
4940 ("python-pytz" ,python-pytz)
4941 ("python-six" ,python-six)
4942 ("python-unidecode" ,python-unidecode)))
4943 (home-page "https://getpelican.com/")
4945 `(;; XXX Requires a lot more packages to do unit tests :P
4947 (synopsis "Python-based static site publishing system")
4949 "Pelican is a tool to generate a static blog from reStructuredText,
4950 Markdown input files, and more. Pelican uses Jinja2 for templating
4951 and is very extensible.")
4952 (license license:agpl3+)))
4954 (define-public mallard-ducktype
4956 (name "mallard-ducktype")
4961 ;; git-reference because tests are not included in pypi source tarball
4962 ;; https://issues.guix.gnu.org/issue/36755#2
4964 (url "https://github.com/projectmallard/mallard-ducktype")
4966 (file-name (git-file-name name version))
4969 "1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
4970 (build-system python-build-system)
4973 (modify-phases %standard-phases
4976 (with-directory-excursion "tests"
4977 (invoke "sh" "runtests")))))))
4978 (home-page "http://projectmallard.org")
4979 (synopsis "Convert Ducktype to Mallard documentation markup")
4981 "Ducktype is a lightweight syntax that can represent all the semantics
4982 of the Mallard XML documentation system. Ducktype files can be converted to
4983 Mallard using the @command{ducktype} tool. The yelp-tools package
4984 provides additional functionality on the produced Mallard documents.")
4985 (license license:expat)))
4987 (define-public python-cython
4989 (name "python-cython")
4994 (uri (pypi-uri "Cython" version))
4996 (base32 "01jl3544qwsi8lp6anbl55566xqkjd53x452i7m6gnfilv3q6syz"))))
4997 (build-system python-build-system)
4998 ;; we need the full python package and not just the python-wrapper
4999 ;; because we need libpython3.3m.so
5001 `(("python" ,python)))
5004 (modify-phases %standard-phases
5005 (add-before 'check 'set-HOME
5006 ;; some tests require access to "$HOME/.cython"
5007 (lambda _ (setenv "HOME" "/tmp") #t))
5010 ;; Disable compiler optimizations to greatly reduce the running
5011 ;; time of the test suite.
5012 (setenv "CFLAGS" "-O0")
5014 (invoke "python" "runtests.py" "-vv"
5015 "-j" (number->string (parallel-job-count))
5016 ;; XXX: On 32-bit architectures, running the parallel tests
5017 ;; fails on many-core systems, see
5018 ;; <https://github.com/cython/cython/issues/2807>.
5019 ,@(if (not (target-64bit?))
5020 '("-x" "run.parallel")
5022 (home-page "https://cython.org/")
5023 (synopsis "C extensions for Python")
5024 (description "Cython is an optimising static compiler for both the Python
5025 programming language and the extended Cython programming language. It makes
5026 writing C extensions for Python as easy as Python itself.")
5027 (license license:asl2.0)
5028 (properties `((python2-variant . ,(delay python2-cython))))))
5030 (define-public python2-cython
5031 (let ((base (package-with-python2 (strip-python2-variant python-cython))))
5032 (package/inherit base
5033 (name "python2-cython")
5035 `(("python-2" ,python-2))) ;this is not automatically changed
5037 (substitute-keyword-arguments (package-arguments base)
5039 `(modify-phases ,phases
5040 (add-before 'check 'adjust-test_embed
5042 (substitute* "runtests.py"
5043 ;; test_embed goes great lengths to find the static libpythonX.Y.a
5044 ;; so it can give the right -L flag to GCC when embedding static
5045 ;; builds of Python. It is unaware that the Python "config"
5046 ;; directory (where the static library lives) was renamed in
5047 ;; Python 3, and falls back to sysconfig.get_config_var('LIBDIR'),
5048 ;; which works fine, because that is where the shared library is.
5050 ;; It also appears to be unaware that the Makefile in Demos/embed
5051 ;; already unconditionally pass the static library location to GCC,
5052 ;; after checking sysconfig.get_config_var('LIBPL).
5054 ;; The effect is that the linker is unable to resolve libexpat
5055 ;; symbols when building for Python 2, because neither the Python 2
5056 ;; shared library nor Expat is available. To fix it, we can either
5057 ;; add Expat as an input and make it visible to the linker, or just
5058 ;; prevent it from overriding the Python shared library location.
5059 ;; The end result is identical, so we take the easy route.
5060 ((" or libname not in os\\.listdir\\(libdir\\)")
5064 ;; NOTE: when upgrading numpy please make sure that python-pandas and
5065 ;; python-scipy still build, as these three packages are often used together.
5066 (define-public python-numpy
5068 (name "python-numpy")
5074 "https://github.com/numpy/numpy/releases/download/v"
5075 version "/numpy-" version ".tar.gz"))
5078 "1ak9dmjja0q90a7fsxli51ypcwssh8c4pb6f8wkrsnf2xgdk6dy9"))))
5079 (build-system python-build-system)
5081 `(("openblas" ,openblas)))
5083 `(("python-cython" ,python-cython)
5084 ("python-pytest" ,python-pytest)
5085 ("gfortran" ,gfortran)))
5088 (modify-phases %standard-phases
5089 (add-before 'build 'configure-blas-lapack
5090 (lambda* (#:key inputs #:allow-other-keys)
5091 (call-with-output-file "site.cfg"
5095 libraries = openblas
5096 library_dirs = ~a/lib
5097 include_dirs = ~a/include
5099 # backslash-n to make emacs happy
5101 lapack_libs = lapack
5102 library_dirs = ~a/lib
5103 include_dirs = ~a/include
5105 (assoc-ref inputs "openblas")
5106 (assoc-ref inputs "openblas")
5107 (assoc-ref inputs "lapack")
5108 (assoc-ref inputs "lapack"))))
5110 (add-before 'build 'fix-executable-paths
5111 (lambda* (#:key inputs #:allow-other-keys)
5112 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
5113 ;; instead of /bin/sh.
5114 (substitute* "numpy/distutils/exec_command.py"
5115 (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end)
5116 (string-append match-start (assoc-ref inputs "bash") match-end)))
5117 ;; Use "gcc" executable, not "cc".
5118 (substitute* "numpy/distutils/system_info.py"
5119 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
5120 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
5122 ;; Tests can only be run after the library has been installed and not
5123 ;; within the source directory.
5125 (add-after 'install 'check
5126 (lambda* (#:key outputs inputs #:allow-other-keys)
5127 ;; Make installed package available for running the tests
5128 (add-installed-pythonpath inputs outputs)
5129 ;; Make sure "f2py" etc is found.
5130 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
5131 ":" (getenv "PATH")))
5132 (with-directory-excursion "/tmp"
5133 (invoke "python" "-c"
5134 "import numpy; numpy.test(verbose=2)")))))))
5135 (home-page "https://numpy.org")
5136 (synopsis "Fundamental package for scientific computing with Python")
5137 (description "NumPy is the fundamental package for scientific computing
5138 with Python. It contains among other things: a powerful N-dimensional array
5139 object, sophisticated (broadcasting) functions, tools for integrating C/C++
5140 and Fortran code, useful linear algebra, Fourier transform, and random number
5142 (properties `((python2-variant . ,(delay python2-numpy))))
5143 (license license:bsd-3)))
5145 ;; Numpy 1.16.x are the last versions that support Python 2.
5146 (define-public python2-numpy
5147 (let ((numpy (package-with-python2
5148 (strip-python2-variant python-numpy))))
5155 "https://github.com/numpy/numpy/releases/download/v"
5156 version "/numpy-" version ".tar.gz"))
5159 "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb")))))))
5161 ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
5162 ;; interest only for legacy code going back to NumPy's predecessor
5164 (define-public python2-numpy-1.8
5165 (package (inherit python2-numpy)
5171 (url "https://github.com/numpy/numpy")
5172 (commit (string-append "v" version))))
5173 (file-name (git-file-name "numpy" version))
5176 "0ikgi15rsqwbkfsjjxrwh40lqyal2wvyp3923y6w6ch3dcr82sfk"))))
5178 (substitute-keyword-arguments (package-arguments python2-numpy)
5180 `(modify-phases ,phases
5181 (replace 'configure-blas-lapack
5182 (lambda* (#:key inputs #:allow-other-keys)
5183 (call-with-output-file "site.cfg"
5187 libraries = openblas,lapack
5188 library_dirs = ~a/lib:~a/lib
5189 include_dirs = ~a/include:~a/include
5191 (assoc-ref inputs "openblas")
5192 (assoc-ref inputs "lapack")
5193 (assoc-ref inputs "openblas")
5194 (assoc-ref inputs "lapack"))))
5197 `(("python2-nose" ,python2-nose)))
5198 (description "NumPy is the fundamental package for scientific computing
5199 with Python. It contains among other things: a powerful N-dimensional array
5200 object, sophisticated (broadcasting) functions, tools for integrating C/C++
5201 and Fortran code, useful linear algebra, Fourier transform, and random number
5202 capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API
5203 that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
5205 (license license:bsd-3)))
5207 (define-public python-munch
5209 (name "python-munch")
5214 (uri (pypi-uri "munch" version))
5217 "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l"))))
5218 (build-system python-build-system)
5219 (home-page "https://github.com/Infinidat/munch")
5220 (synopsis "Dot-accessible dictionary")
5221 (description "Munch is a dot-accessible dictionary similar to JavaScript
5223 (license license:expat)))
5225 (define-public python2-munch
5226 (package-with-python2 python-munch))
5228 (define-public python-colormath
5230 (name "python-colormath")
5235 (uri (pypi-uri "colormath" version))
5238 "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
5239 (build-system python-build-system)
5241 `(("python-networkx" ,python-networkx)
5242 ("python-numpy" ,python-numpy)))
5243 (home-page "https://github.com/gtaylor/python-colormath")
5244 (synopsis "Color math and conversion library")
5246 "This is a Python library for color math and conversions.")
5247 (license license:bsd-3)))
5249 (define-public python2-colormath
5250 (package-with-python2 python-colormath))
5252 (define-public python-sparse
5254 (name "python-sparse")
5259 (uri (pypi-uri "sparse" version))
5262 "05lmzckv69cvxavhdr36k803bgr5dl04cppglid1l880xswc759c"))))
5263 (build-system python-build-system)
5266 (modify-phases %standard-phases
5268 (lambda* (#:key tests? #:allow-other-keys)
5270 (invoke "python" "-m" "pytest" "-v")))))))
5272 `(("python-numba" ,python-numba)
5273 ("python-numpy" ,python-numpy)
5274 ("python-scipy" ,python-scipy)))
5276 `(("python-dask" ,python-dask)
5277 ("python-pytest" ,python-pytest)
5278 ("python-pytest-black" ,python-pytest-black)
5279 ("python-pytest-cov" ,python-pytest-cov)))
5280 (home-page "https://github.com/pydata/sparse/")
5281 (synopsis "Library for multi-dimensional sparse arrays")
5283 "This package implements sparse arrays of arbitrary dimension on top of
5284 @code{numpy} and @code{scipy.sparse}. Sparse array is a matrix in which most
5285 of the elements are zero. @code{python-sparse} generalizes the
5286 @code{scipy.sparse.coo_matrix} and @code{scipy.sparse.dok_matrix} layouts, but
5287 extends beyond just rows and columns to an arbitrary number of dimensions.
5288 Additionally, this project maintains compatibility with the
5289 @code{numpy.ndarray} interface rather than the @code{numpy.matrix} interface
5290 used in @code{scipy.sparse}. These differences make this project useful in
5291 certain situations where @code{scipy.sparse} matrices are not well suited, but
5292 it should not be considered a full replacement. It lacks layouts that are not
5293 easily generalized like @dfn{compressed sparse row/column}(CSR/CSC) and
5294 depends on @code{scipy.sparse} for some computations.")
5295 (license license:bsd-3)))
5297 (define-public python-spectra
5299 (name "python-spectra")
5304 (uri (pypi-uri "spectra" version))
5307 "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
5308 (build-system python-build-system)
5311 (modify-phases %standard-phases
5313 (lambda _ (invoke "nosetests" "-v"))))))
5315 `(("python-colormath" ,python-colormath)))
5317 `(("python-nose" ,python-nose)))
5318 (home-page "https://github.com/jsvine/spectra")
5319 (synopsis "Color scales and color conversion")
5321 "This package provides a Python library intended to make color math,
5322 color scales, and color space conversion easy. It has support for:
5327 @item Color blending
5328 @item Brightening/darkening colors
5329 @item Saturating/desaturating colors
5330 @item Conversion to/from multiple color spaces.
5332 (license license:expat)))
5334 (define-public python2-spectra
5335 (package-with-python2 python-spectra))
5337 (define-public python-pyspnego
5339 (name "python-pyspnego")
5343 (method git-fetch) ;no tests in PyPI release
5345 (url "https://github.com/jborean93/pyspnego")
5346 (commit (string-append "v" version))))
5347 (file-name (git-file-name name version))
5350 "0pfh2x0539f0k2qi2pbjm64b2fqp64c63xxpinvg1yfaw915kgpb"))))
5351 (build-system python-build-system)
5353 `(#:phases (modify-phases %standard-phases
5355 (lambda* (#:key tests? #:allow-other-keys)
5357 (invoke "pytest")))))))
5359 `(("python-pytest" ,python-pytest)
5360 ("python-pytest-mock" ,python-pytest-mock)))
5362 `(("python-cryptography" ,python-cryptography)
5363 ("python-gssapi" ,python-gssapi)
5364 ("python-ruamel.yaml" ,python-ruamel.yaml)))
5365 (home-page "https://github.com/jborean93/pyspnego")
5366 (synopsis "Python SPNEGO library")
5367 (description "The @code{pyspnego} Python library handles Negotiate, NTLM,
5368 Kerberos (SPNEGO) and CredSSP authentication. It also includes a packet
5369 parser that can be used to decode raw NTLM/SPNEGO/Kerberos tokens into a human
5371 (license license:expat)))
5373 (define-public python-numpy-documentation
5375 (name "python-numpy-documentation")
5376 (version (package-version python-numpy))
5377 (source (package-source python-numpy))
5378 (build-system python-build-system)
5380 `(("python-matplotlib" ,python-matplotlib)
5381 ("python-numpy" ,python-numpy)
5382 ("pkg-config" ,pkg-config)
5383 ("python-sphinx" ,python-sphinx)
5384 ("python-numpydoc" ,python-numpydoc)
5385 ("texlive" ,(texlive-union (list texlive-fonts-cm-super
5387 texlive-generic-ifxetex
5389 texlive-amsfonts/patched
5390 texlive-latex-capt-of
5392 texlive-latex-environ
5393 texlive-latex-eqparbox
5394 texlive-latex-etoolbox
5395 texlive-latex-expdlist
5396 texlive-latex-fancyhdr
5397 texlive-latex-fancyvrb
5398 texlive-latex-fncychap
5400 texlive-latex-framed
5401 texlive-latex-geometry
5402 texlive-latex-graphics
5403 texlive-latex-hyperref
5404 texlive-latex-mdwtools
5405 texlive-latex-multirow
5406 texlive-latex-needspace
5407 texlive-latex-oberdiek
5408 texlive-latex-parskip
5409 texlive-latex-preview
5410 texlive-latex-tabulary
5411 texlive-latex-threeparttable
5412 texlive-latex-titlesec
5413 texlive-latex-trimspaces
5415 texlive-latex-upquote
5417 texlive-latex-varwidth
5418 texlive-latex-wrapfig)))
5419 ("texinfo" ,texinfo)
5421 ("scipy-sphinx-theme"
5422 ,(let ((commit "c466764e2231ba132c09826b5b138fffa1cfcec3"))
5423 (origin ;the build script expects scipy-sphinx-theme as a git submodule
5426 (url "https://github.com/scipy/scipy-sphinx-theme")
5428 (file-name (git-file-name "python-scipy-sphinx-theme"
5429 (string-take commit 7)))
5432 "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))))
5433 ,@(package-native-inputs python-numpy)))
5435 `(#:tests? #f ; we're only generating the documentation
5437 (modify-phases %standard-phases
5440 (lambda* (#:key inputs outputs #:allow-other-keys)
5441 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
5443 data "/doc/" ,name "-"
5444 ,(package-version python-numpy)))
5445 (info-reader (string-append data "/info"))
5446 (html (string-append doc "/html"))
5447 (scipy-sphinx-theme "scipy-sphinx-theme")
5448 (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme))
5449 (pyver ,(string-append "PYVER=")))
5451 ;; FIXME: this is needed to for texlive-union to generate
5452 ;; fonts, which are not found.
5453 (setenv "HOME" "/tmp")
5455 (with-directory-excursion "doc"
5456 (copy-recursively sphinx-theme-checkout scipy-sphinx-theme)
5458 (invoke "make" "html" pyver)
5459 (invoke "make" "latex" "PAPER=a4" pyver)
5460 (invoke "make" "-C" "build/latex"
5461 "all-pdf" "PAPER=a4" pyver)
5462 ;; FIXME: Generation of the info file fails.
5463 ;; (invoke "make" "info" pyver)
5465 ;; (copy-file "build/texinfo/numpy.info"
5466 ;; (string-append info "/numpy.info"))
5467 (for-each (lambda (file)
5468 (copy-file (string-append "build/latex" file)
5469 (string-append doc file)))
5470 '("/numpy-ref.pdf" "/numpy-user.pdf"))
5471 (with-directory-excursion "build/html"
5472 (for-each (lambda (file)
5473 (let* ((dir (dirname file))
5474 (tgt-dir (string-append html "/" dir)))
5475 (unless (equal? "." dir)
5477 (install-file file html)))
5478 (find-files "." ".*")))))
5480 (home-page (package-home-page python-numpy))
5481 (synopsis "Documentation for the python-numpy package")
5482 (description (package-description python-numpy))
5483 (license (package-license python-numpy))))
5485 (define-public python-pygit2
5487 (name "python-pygit2")
5492 (uri (pypi-uri "pygit2" version))
5494 (base32 "0qjd5aqpmla64da4pb47vdnrmnqdbn7248a4fzs7f5q1ax7fmb3s"))))
5495 (build-system python-build-system)
5497 '(#:tests? #f)) ; tests don't run correctly in our environment
5499 `(("python-cached-property" ,python-cached-property)
5500 ("python-cffi" ,python-cffi)
5501 ("libgit2" ,libgit2)))
5503 `(("python-pytest" ,python-pytest)))
5504 (home-page "https://github.com/libgit2/pygit2")
5505 (synopsis "Python bindings for libgit2")
5506 (description "Pygit2 is a set of Python bindings to the libgit2 shared
5507 library, libgit2 implements Git plumbing.")
5508 ;; GPL2.0 only, with linking exception.
5509 (license license:gpl2)))
5511 (define-public python-patiencediff
5513 (name "python-patiencediff")
5518 (uri (pypi-uri "patiencediff" version))
5521 "0yjk50lsd4gnllxls925xbcdxwvmda37w2a1shk0p1nvl3fcha6q"))))
5522 (build-system python-build-system)
5523 (home-page "https://www.breezy-vcs.org/")
5524 (synopsis "Python implementation of the patiencediff algorithm")
5526 "This package contains a Python implementation of the @code{patiencediff}
5527 algorithm. Patiencediff provides a good balance of performance, nice output for
5528 humans, and implementation simplicity.")
5529 (license license:gpl2)))
5531 (define-public python-wmctrl
5533 (name "python-wmctrl")
5538 (uri (pypi-uri "wmctrl" version))
5541 "1q0l1sqnj5wma87k3dsgmsyph464syjc6fl8qcpa41nan1rgzjv6"))))
5542 (build-system python-build-system)
5544 `(#:phases (modify-phases %standard-phases
5545 (add-after 'unpack 'patch-paths
5546 (lambda* (#:key inputs #:allow-other-keys)
5547 (let ((wmctrl (assoc-ref inputs "wmctrl")))
5548 (substitute* "wmctrl.py"
5550 (string-append "'" wmctrl "/bin/wmctrl")))))))))
5551 (inputs `(("wmctrl" ,wmctrl)))
5552 (home-page "https://github.com/antocuni/wmctrl")
5553 (synopsis "Tool to programmatically control Xorg windows")
5554 (description "This package provides a library for programmatically
5555 controlling Xorg windows using Python. The library relies on the
5556 @command{wmctrl} to do so.")
5557 (license license:expat)))
5559 (define-public python-fancycompleter
5561 (name "python-fancycompleter")
5566 (uri (pypi-uri "fancycompleter" version))
5568 (base32 "0wkj4h01pxa8prv59zl09a0i3w26k835bfpjgvyvsai4mswgxq09"))))
5569 (build-system python-build-system)
5571 `(#:phases (modify-phases %standard-phases
5572 (add-after 'unpack 'fix-setup.py
5574 (substitute* "setup.py"
5578 (string-append "version='" ,version "',"))
5579 ((".*pyrepl.*") ;broken on Python 3
5581 (home-page "https://github.com/pdbpp/fancycompleter")
5582 (synopsis "TAB completion library for Python")
5583 (description "@code{fancycompleter} is a module that adds TAB completion
5584 to the interactive prompt. It is an extension of the @code{rlcompleter}
5585 module from the standard Python library.")
5586 (license license:bsd-3)))
5588 (define-public python-pdbpp
5590 (name "python-pdbpp")
5595 (uri (pypi-uri "pdbpp" version))
5598 "1xb9yvi30rb1cdpvfdk2kg79vh3anvkz91r8bwvfp3iqv97kzr6r"))))
5599 (build-system python-build-system)
5602 (modify-phases %standard-phases
5604 (lambda* (#:key tests? #:allow-other-keys)
5609 ;; These tests seem to require a real TTY.
5610 "not interaction_restores_previous_sigint_handler "
5611 "and not python_m_pdb_uses_pdbpp"))))))))
5613 `(("python-fancycompleter" ,python-fancycompleter)
5614 ("python-pygments" ,python-pygments)
5615 ("python-wmctrl" ,python-wmctrl)))
5617 `(("python-pytest" ,python-pytest)
5618 ("python-setuptools-scm" ,python-setuptools-scm)))
5619 (home-page "https://github.com/pdbpp/pdbpp")
5620 (synopsis "Drop-in replacement for pdb")
5621 (description "Pdb++ is a drop-in replacement for @code{pdb}. It
5622 includes the following improvements compared to @code{pdb}:
5624 @item auto-completion
5625 @item syntax highlighting of code listings
5627 @item new commands to be used from the interactive (Pdb++) prompt
5628 @item smart command parsing
5629 @item additional convenience functions in the @code{pdb} module.
5631 (license license:bsd-3)))
5633 (define-public python-pdftotext
5635 (name "python-pdftotext")
5640 (uri (pypi-uri "pdftotext" version))
5642 (base32 "1555wbgr5spj8xflrs4mwsrdmba2f9s72nk50xzqk9ghxaxdvy6a"))))
5643 (build-system python-build-system)
5645 `(("poppler" ,poppler)))
5646 (home-page "https://github.com/jalan/pdftotext")
5647 (synopsis "Simple PDF text extraction")
5648 (description "Pdftotext is a Python library of PDF text extraction.")
5649 (license license:expat)))
5651 (define-public python-pluginbase
5653 (name "python-pluginbase")
5658 (uri (pypi-uri "pluginbase" version))
5661 "11z2vvbp13828y0x3w39f29p9r9xcix7h7c4fff2w8yfiylk6v7z"))))
5662 (build-system python-build-system)
5664 `(#:phases (modify-phases %standard-phases
5666 (lambda* (#:key tests? #:allow-other-keys)
5668 (invoke "make" "test")))))))
5669 (native-inputs `(("python-pytest" ,python-pytest)))
5670 (home-page "https://github.com/mitsuhiko/pluginbase")
5671 (synopsis "Simple but flexible plugin system for Python")
5672 (description "PluginBase is a library useful in the development of
5673 flexible plugin systems in Python.")
5674 (license license:bsd-3)))
5676 (define-public python-node-semver
5678 (name "python-node-semver")
5683 (uri (pypi-uri "node-semver" version))
5686 "000ypfns5x72b41w5f9pk6k3jnr35scliqfbvmilyvv0178005i8"))))
5687 (build-system python-build-system)
5689 `(("python-pytest" ,python-pytest)))
5690 (home-page "https://github.com/podhmo/python-node-semver")
5691 (synopsis "Python port of node-semver")
5692 (description "This module provides a Python version of node-semver, a
5693 semantic version parser for Node.js.")
5694 (license license:expat)))
5696 (define-public python-patch-ng
5698 (name "python-patch-ng")
5702 (method git-fetch) ;no tests in PyPI archive
5704 (url "https://github.com/conan-io/python-patch-ng")
5706 (file-name (git-file-name name version))
5709 "0qxn4ss2s54qy87xrpcybz26kp2fwlaq41x4k9jcmp6d7p0w569m"))))
5710 (build-system python-build-system)
5712 `(#:phases (modify-phases %standard-phases
5714 (lambda* (#:key tests? #:allow-other-keys)
5716 (invoke "tests/run_tests.py" "-v")))))))
5717 (home-page "https://github.com/conan-io/python-patch-ng")
5718 (synopsis "Python library to parse and apply unified diffs")
5719 (description "Patch NG (New Generation) is a command and Python library to
5720 parse and apply unified diffs. It has features such as:
5722 @item automatic correction of common patch formatting corruption
5723 @item patch format detection (SVN, Hg, Git)
5724 @item nice diffstat histogram.
5726 (license license:expat)))
5728 (define-public python-pyparsing
5730 (name "python-pyparsing")
5735 (uri (pypi-uri "pyparsing" version))
5737 (base32 "17wn5zlijc9m9zj26gy3f541y7smpj8rfhl51d025c2gm210b0sc"))))
5738 (build-system python-build-system)
5739 (outputs '("out" "doc"))
5741 `(#:tests? #f ; no test target
5743 (modify-phases %standard-phases
5744 (add-after 'install 'install-doc
5745 (lambda* (#:key outputs #:allow-other-keys)
5746 (let* ((doc (string-append (assoc-ref outputs "doc")
5747 "/share/doc/" ,name "-" ,version))
5748 (html-doc (string-append doc "/html"))
5749 (examples (string-append doc "/examples")))
5755 (install-file file tgt))
5756 (find-files dir ".*")))
5757 (list "docs" "htmldoc" "examples")
5758 (list doc html-doc examples))
5760 (home-page "https://github.com/pyparsing/pyparsing")
5761 (synopsis "Python parsing class library")
5763 "The pyparsing module is an alternative approach to creating and
5764 executing simple grammars, vs. the traditional lex/yacc approach, or the use
5765 of regular expressions. The pyparsing module provides a library of classes
5766 that client code uses to construct the grammar directly in Python code.")
5767 (license license:expat)))
5769 (define-public python2-pyparsing
5770 (package-with-python2 python-pyparsing))
5772 (define-public python-pyparsing-2.4.7
5774 (inherit python-pyparsing)
5779 (uri (pypi-uri "pyparsing" version))
5781 (base32 "1hgc8qrbq1ymxbwfbjghv01fm3fbpjwpjwi0bcailxxzhf3yq0y2"))))))
5783 (define-public python-numpydoc
5785 (name "python-numpydoc")
5790 (uri (pypi-uri "numpydoc" version))
5793 "1zazxg3m8j4fksv3f7v7vpf4bj9qb1vj3r326am0vdip141vzx31"))))
5794 (build-system python-build-system)
5796 `(("python-sphinx" ,python-sphinx)))
5798 `(("python-nose" ,python-nose)))
5799 (home-page "https://pypi.org/project/numpydoc/")
5801 "Numpy's Sphinx extensions")
5803 "Sphinx extension to support docstrings in Numpy format.")
5804 (license license:bsd-2)
5805 (properties `((python2-variant . ,(delay python2-numpydoc))))))
5807 (define-public python2-numpydoc
5808 (let ((base (package-with-python2
5809 (strip-python2-variant python-numpydoc))))
5810 (package/inherit base
5812 `(("python2-jinja2" ,python2-jinja2)
5813 ,@(package-propagated-inputs base))))))
5815 (define-public python-numexpr
5817 (name "python-numexpr")
5822 (uri (pypi-uri "numexpr" version))
5825 "09d8yfsx33ddwfkpn8805w2mxnn4cvf47yc66g4azldpz4lnaqa3"))))
5826 (build-system python-build-system)
5827 (arguments `(#:tests? #f)) ; no tests included
5829 `(("python-numpy" ,python-numpy)))
5830 (home-page "https://github.com/pydata/numexpr")
5831 (synopsis "Fast numerical expression evaluator for NumPy")
5833 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
5834 expressions that operate on arrays are accelerated and use less memory than
5835 doing the same calculation in Python. In addition, its multi-threaded
5836 capabilities can make use of all your cores, which may accelerate
5837 computations, most specially if they are not memory-bounded (e.g. those using
5838 transcendental functions).")
5839 (license license:expat)))
5841 (define-public python2-numexpr
5842 (package-with-python2 python-numexpr))
5844 (define-public python-cycler
5846 (name "python-cycler")
5850 (uri (pypi-uri "cycler" version))
5853 "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
5854 (build-system python-build-system)
5856 ;; XXX: The current version requires 'coveralls' which we don't have.
5857 ;; Enable this for the next release which uses 'python-pytest'.
5860 `(("python-six" ,python-six)))
5861 (home-page "https://matplotlib.org/cycler/")
5862 (synopsis "Composable keyword argument iterator")
5864 "When using @code{matplotlib} and plotting more than one line, it is
5865 common to want to be able to want to be able to cycle over one or more artist
5866 styles; but the plotting logic can quickly become involved.
5867 To address this and enable easy cycling over arbitrary @code{kwargs}, the
5868 @code{Cycler} class was developed.")
5869 (license license:bsd-3)))
5871 (define-public python2-cycler
5872 (package-with-python2 python-cycler))
5874 (define-public python-colorspacious
5876 (name "python-colorspacious")
5882 (url "https://github.com/njsmith/colorspacious")
5883 (commit (string-append "v" version))))
5884 (file-name (git-file-name name version))
5886 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
5887 (build-system python-build-system)
5889 `(("python-numpy" ,python-numpy)))
5891 `(("python-nose" ,python-nose)))
5894 (modify-phases %standard-phases
5897 (invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
5898 (home-page "https://github.com/njsmith/colorspacious")
5899 (synopsis "Python library for colorspace conversions")
5900 (description "@code{colorspacious} is a Python library that lets you
5901 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
5902 (license license:expat)))
5904 (define-public python2-colorspacious
5905 (package-with-python2 python-colorspacious))
5907 (define-public python-matplotlib
5909 (name "python-matplotlib")
5914 (uri (pypi-uri "matplotlib" version))
5916 (base32 "1nmshfqh7wyg15i16hx1yiylcvzkws29ivn66n3i0wyqwcpjr3lf"))
5918 (search-patches "python-matplotlib-run-under-wayland-gtk3.patch"))))
5919 (build-system python-build-system)
5920 (propagated-inputs ; the following packages are all needed at run time
5921 `(("python-cycler" ,python-cycler)
5922 ("python-kiwisolver" ,python-kiwisolver)
5923 ("python-pyparsing" ,python-pyparsing)
5924 ("python-pygobject" ,python-pygobject)
5925 ("gobject-introspection" ,gobject-introspection)
5926 ("python-tkinter" ,python "tk")
5927 ("python-dateutil" ,python-dateutil)
5928 ("python-numpy" ,python-numpy)
5929 ("python-pillow" ,python-pillow)
5930 ("python-pytz" ,python-pytz)
5931 ("python-six" ,python-six)
5932 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
5933 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
5934 ;; object. For this reason we need to import both libraries.
5935 ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
5936 ("python-pycairo" ,python-pycairo)
5937 ("python-cairocffi" ,python-cairocffi)))
5939 `(("libpng" ,libpng)
5940 ("freetype" ,freetype)
5943 ;; FIXME: Add backends when available.
5944 ;("python-wxpython" ,python-wxpython)
5948 `(("pkg-config" ,pkg-config)
5949 ("python-pytest" ,python-pytest)
5950 ("python-mock" ,python-mock)
5955 (uri "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip")
5958 "0kb21xf38diqgxcdi1z3s9ssq36pldvyqxy56hn6pcva6rs3c8zq"))))))
5961 (modify-phases %standard-phases
5962 ;; XXX We disable all image comparison tests because we're using a
5963 ;; newer version of FreeType than matplotlib expects. This leads to
5964 ;; minor differences throughout the tests.
5965 (add-after 'unpack 'fix-and-disable-failing-tests
5967 (substitute* (append (find-files "lib/matplotlib/tests/"
5969 (find-files "lib/mpl_toolkits/tests"
5971 (("^from matplotlib" match)
5972 (string-append "import pytest\n" match))
5973 (("( *)@image_comparison" match indent)
5974 (string-append indent
5975 "@pytest.mark.skip(reason=\"unknown minor image differences\")\n"
5977 (substitute* "lib/matplotlib/tests/test_animation.py"
5978 (("/bin/sh") (which "sh")))
5979 (for-each delete-file
5980 ;; test_normal_axes, test_get_tightbbox_polar
5981 '("lib/matplotlib/tests/test_axes.py"
5982 ;; We don't use the webagg backend and this test forces it.
5983 "lib/matplotlib/tests/test_backend_webagg.py"
5984 ;; test_outward_ticks
5985 "lib/matplotlib/tests/test_tightlayout.py"
5986 ;; test_hidden_axes fails with minor extent
5987 ;; differences, possibly due to the use of a
5988 ;; different version of FreeType.
5989 "lib/matplotlib/tests/test_constrainedlayout.py"
5990 ;; Fontconfig returns no fonts.
5991 "lib/matplotlib/tests/test_font_manager.py"))
5993 (add-before 'install 'install-jquery-ui
5994 (lambda* (#:key outputs inputs #:allow-other-keys)
5995 (let* ((python-version (python-version
5996 (assoc-ref inputs "python")))
5997 (dir (string-append (assoc-ref outputs "out")
5998 "/lib/python" python-version "/site-packages"
5999 "/matplotlib/backends/web_backend/")))
6002 (assoc-ref inputs "jquery-ui")
6006 (lambda* (#:key outputs inputs #:allow-other-keys)
6007 (add-installed-pythonpath inputs outputs)
6008 (invoke "python" "tests.py" "-v"
6009 "-m" "not network and not webagg")))
6010 (add-before 'build 'configure-environment
6011 (lambda* (#:key outputs inputs #:allow-other-keys)
6012 (let ((cairo (assoc-ref inputs "cairo")))
6013 ;; Setting this directory in the 'basedirlist' of 'setup.cfg'
6015 (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib"))
6016 (setenv "HOME" (getcwd))
6017 ;; Fix rounding errors when using the x87 FPU.
6018 (when (string-prefix? "i686" ,(%current-system))
6019 (setenv "CFLAGS" "-ffloat-store"))
6020 (call-with-output-file "setup.cfg"
6022 (format port "[directories]~%
6023 basedirlist = ~a,~a~%
6026 (assoc-ref inputs "tcl")
6027 (assoc-ref inputs "tk")))))
6029 (home-page "https://matplotlib.org/")
6030 (synopsis "2D plotting library for Python")
6032 "Matplotlib is a Python 2D plotting library which produces publication
6033 quality figures in a variety of hardcopy formats and interactive environments
6034 across platforms. Matplotlib can be used in Python scripts, the python and
6035 ipython shell, web application servers, and six graphical user interface
6037 (license license:psfl)
6038 (properties `((python2-variant . ,(delay python2-matplotlib))))))
6040 (define-public python2-matplotlib
6041 (let ((matplotlib (package-with-python2
6042 (strip-python2-variant python-matplotlib))))
6043 (package (inherit matplotlib)
6048 (uri (pypi-uri "matplotlib" version))
6051 "09i1gnrra1590brc1f8d5rh2zvnknmfgzp613ab0462qkrwj15h2"))))
6053 (substitute-keyword-arguments (package-arguments matplotlib)
6055 `(modify-phases ,phases
6056 (replace 'install-jquery-ui
6057 (lambda* (#:key outputs inputs #:allow-other-keys)
6058 (let ((dir (string-append (assoc-ref outputs "out")
6059 "/lib/python2.7/site-packages/"
6060 "matplotlib/backends/web_backend/")))
6063 (assoc-ref inputs "jquery-ui")
6066 (delete 'fix-and-disable-failing-tests)
6067 (delete 'check))))) ; These tests weren't run the the past.
6068 ;; Make sure to use special packages for Python 2 instead
6069 ;; of those automatically rewritten by package-with-python2.
6071 `(("python2-pycairo" ,python2-pycairo)
6072 ("python2-backports-functools-lru-cache"
6073 ,python2-backports-functools-lru-cache)
6074 ("python2-functools32" ,python2-functools32)
6075 ("python2-pygobject-2" ,python2-pygobject-2)
6076 ("python2-subprocess32" ,python2-subprocess32)
6077 ("python2-tkinter" ,python-2 "tk")
6078 ,@(fold alist-delete (package-propagated-inputs matplotlib)
6079 '("python-cairocffi"
6082 "python-tkinter")))))))
6084 (define-public python-matplotlib-documentation
6086 (name "python-matplotlib-documentation")
6087 (version (package-version python-matplotlib))
6088 (source (package-source python-matplotlib))
6089 (build-system python-build-system)
6091 `(("python-matplotlib" ,python-matplotlib)
6092 ("python-colorspacious" ,python-colorspacious)
6093 ("python-sphinx" ,python-sphinx)
6094 ("python-sphinx-copybutton" ,python-sphinx-copybutton)
6095 ("python-sphinx-gallery" ,python-sphinx-gallery)
6096 ("python-numpydoc" ,python-numpydoc)
6097 ("python-ipython" ,python-ipython)
6098 ("python-ipykernel" ,python-ipykernel)
6099 ("python-mock" ,python-mock)
6100 ("graphviz" ,graphviz)
6101 ("texlive" ,(texlive-union (list texlive-amsfonts/patched
6102 texlive-latex-amsmath
6103 texlive-latex-enumitem
6104 texlive-latex-expdlist
6105 texlive-latex-geometry
6106 texlive-latex-preview
6107 texlive-latex-type1cm
6113 texlive-fonts-adobe-times
6114 texlive-fonts-txfonts)))
6115 ("texinfo" ,texinfo)
6116 ,@(package-native-inputs python-matplotlib)))
6118 `(#:tests? #f ; we're only generating documentation
6120 (modify-phases %standard-phases
6121 ;; The tests in python-matplotlib are run after the install phase, so
6122 ;; we need to delete the extra phase here.
6127 (setenv "PYTHONPATH"
6128 (string-append (getenv "PYTHONPATH")
6129 ":" (getcwd) "/../examples/units"))
6130 (substitute* "conf.py"
6132 (("^SHA = check_output.*")
6133 (string-append "SHA = \"" ,version "\"\n"))
6134 ;; Don't fetch intersphinx files from the Internet
6135 (("^explicit_order_folders" m)
6136 (string-append "intersphinx_mapping = {}\n" m))
6137 (("'sphinx.ext.intersphinx',") "")
6138 ;; Disable URL embedding which requires internet access.
6139 (("'https://docs.scipy.org/doc/numpy'") "None")
6140 (("'https://docs.scipy.org/doc/scipy/reference'") "None"))
6142 "SPHINXBUILD=sphinx-build"
6143 "SPHINXOPTS=" ; don't abort on warnings
6146 (lambda* (#:key inputs outputs #:allow-other-keys)
6147 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
6148 (doc (string-append data "/doc/python-matplotlib-" ,version))
6149 (info (string-append data "/info"))
6150 (html (string-append doc "/html")))
6153 (copy-recursively "build/html" html)
6154 (symlink (string-append html "/_images")
6155 (string-append info "/matplotlib-figures"))
6156 (with-directory-excursion "build/texinfo"
6157 (substitute* "matplotlib.texi"
6158 (("@image\\{([^,]*)" all file)
6159 (string-append "@image{matplotlib-figures/" file)))
6160 (symlink (string-append html "/_images")
6161 "./matplotlib-figures")
6162 (invoke "makeinfo" "--no-split"
6163 "-o" "matplotlib.info" "matplotlib.texi"))
6164 (install-file "build/texinfo/matplotlib.info" info))
6166 (home-page (package-home-page python-matplotlib))
6167 (synopsis "Documentation for the python-matplotlib package")
6168 (description (package-description python-matplotlib))
6169 (license (package-license python-matplotlib))))
6171 (define-public python-matplotlib-venn
6173 (name "python-matplotlib-venn")
6178 (uri (pypi-uri "matplotlib-venn" version ".zip"))
6181 "13w3i1wih0mij08hrgppzg0g9z50y54rc28l6gdi1r5w45l7l0dy"))))
6182 (build-system python-build-system)
6183 (arguments '(#:tests? #f)) ; tests are not included
6185 `(("python-matplotlib" ,python-matplotlib)
6186 ("python-numpy" ,python-numpy)
6187 ("python-scipy" ,python-scipy)))
6189 `(("unzip" ,unzip)))
6190 (home-page "https://github.com/konstantint/matplotlib-venn")
6191 (synopsis "Plot area-proportional Venn diagrams")
6193 "This package provides tools for plotting area-proportional two- and
6194 three-way Venn diagrams in @code{matplotlib}.")
6195 (license license:expat)))
6197 (define-public python-pysnptools
6199 (name "python-pysnptools")
6204 (uri (pypi-uri "pysnptools" version))
6207 "0gxr0bjix307wvk0qh7vkafbxbzfpdmq0wlswpxyyaymy0fwcypv"))))
6208 (build-system python-build-system)
6210 `(#:tests? #f ; no test data are included
6212 (modify-phases %standard-phases
6214 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
6217 (add-installed-pythonpath inputs outputs)
6218 (invoke "python3" "pysnptools/test.py"))
6221 `(("python-dill" ,python-dill)
6222 ("python-h5py" ,python-h5py)
6223 ("python-numpy" ,python-numpy)
6224 ("python-pandas" ,python-pandas)
6225 ("python-psutil" ,python-psutil)
6226 ("python-scipy" ,python-scipy)))
6228 `(("python-cython" ,python-cython)))
6229 (home-page "http://microsoftgenomics.github.io/PySnpTools/")
6230 (synopsis "Library for reading and manipulating genetic data")
6232 "PySnpTools is a library for reading and manipulating genetic data. It
6233 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
6234 those files. It can also efficiently manipulate ranges of integers using set
6235 operators such as union, intersection, and difference.")
6236 (license license:asl2.0)))
6238 (define-public python2-pysnptools
6239 (package-with-python2 python-pysnptools))
6241 (define-public python-pykdtree
6243 (name "python-pykdtree")
6248 (uri (pypi-uri "pykdtree" version))
6250 (base32 "0p8n2ljdacfixkiw092974dmhy4s1c0h032ii1z9kwi9h5h5rgmy"))))
6251 (build-system python-build-system)
6253 `(("python-nose" ,python-nose)))
6255 `(("python-numpy" ,python-numpy)))
6256 (home-page "https://github.com/storpipfugl/pykdtree")
6257 (synopsis "Fast kd-tree implementation with OpenMP-enabled queries")
6259 "@code{pykdtree} is a kd-tree implementation for fast nearest neighbour
6261 (license license:lgpl3+)))
6263 (define-public python-wurlitzer
6265 (name "python-wurlitzer")
6270 (uri (pypi-uri "wurlitzer" version))
6272 (base32 "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"))))
6273 (build-system python-build-system)
6276 (modify-phases %standard-phases
6279 (invoke "pytest" "-vv" "test.py"))))))
6281 `(("python-mock" ,python-mock)
6282 ("python-pytest" ,python-pytest)))
6283 (home-page "https://github.com/minrk/wurlitzer")
6284 (synopsis "Capture C-level output in context managers")
6286 "This library helps to redirect @code{sys.stdout} to a stream or a file
6287 while executing some piece of code, including C code running within a Python
6289 (license license:expat)))
6291 (define-public python-socksipy-branch
6293 (name "python-socksipy-branch")
6298 (uri (pypi-uri "SocksiPy-branch" version))
6301 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
6302 (build-system python-build-system)
6304 `(#:tests? #f)) ; There are no tests
6305 (home-page "https://code.google.com/archive/p/socksipy-branch/")
6306 (synopsis "Python SOCKS module")
6308 "SocksiPy - A Python SOCKS client module. It provides a
6309 socket-like interface that supports connections to any TCP
6310 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
6311 The original version was developed by Dan Haim, this is a
6312 branch created by Mario Vilas to address some open issues,
6313 as the original project seems to have been abandoned circa 2007.")
6314 (license license:bsd-3)))
6316 (define-public python2-socksipy-branch
6317 (package-with-python2 python-socksipy-branch))
6319 (define-public python-socksipychain
6321 (name "python-socksipychain")
6327 (url "https://github.com/pagekite/PySocksipyChain")
6328 (commit (string-append "v" version))))
6329 (file-name (git-file-name name version))
6332 "02pp994qmiivkdx4y6az5q80l6rzy8g6d2ipvp7kns7lsxvmc2y7"))))
6333 (build-system python-build-system)
6335 `(#:tests? #f)) ; Tests try to access the network.
6336 (home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
6337 (synopsis "Python SOCKS module with chained proxies support")
6339 "SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
6340 adds support for arbitrary chaining of proxy servers and various modes of
6341 TLS/SSL encryption. It was developed for use in PageKite, and also includes
6342 a simple netcat replacement with chaining support.")
6343 (license license:bsd-3)))
6345 (define-public python-pycodestyle
6347 (name "python-pycodestyle")
6352 (uri (pypi-uri "pycodestyle" version))
6355 "1vqwmzmjdv331kmfq3q9j3as2x7r2r49lf83r9w4147pdg8c32f3"))))
6356 (build-system python-build-system)
6359 (modify-phases %standard-phases
6362 (invoke "pytest" "-vv"))))))
6364 `(("python-pytest" ,python-pytest)))
6365 (home-page "https://pycodestyle.readthedocs.io/")
6366 (synopsis "Python style guide checker")
6367 (description "@code{pycodestyle} (formerly pep8) is a tool to check
6368 Python code against some of the style conventions in
6369 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
6370 (license license:expat)))
6372 (define-public python2-pycodestyle
6373 (package-with-python2 python-pycodestyle))
6375 (define-public python-pycodestyle-2.6
6377 (inherit python-pycodestyle)
6381 (uri (pypi-uri "pycodestyle" version))
6384 "0bhr6ia0hmgx3nhgibc9pmkzhlh1zcqk707i5fbxgs702ll7v2n5"))))))
6386 (define-public python-multidict
6388 (name "python-multidict")
6393 (uri (pypi-uri "multidict" version))
6396 "07ikq2c72kd263hpldw55y0px2l3g34hjk66ml9lryh1jv287qmf"))))
6397 (build-system python-build-system)
6399 '(#:modules ((ice-9 ftw)
6403 (guix build python-build-system))
6404 #:phases (modify-phases %standard-phases
6406 (lambda* (#:key tests? #:allow-other-keys)
6409 (let ((libdir (find (cut string-prefix? "lib." <>)
6410 (scandir "build"))))
6411 (setenv "PYTHONPATH"
6412 (string-append "./build/" libdir ":"
6413 (getenv "PYTHONPATH")))
6414 (invoke "pytest" "-vv")))
6415 (format #t "test suite not run~%"))
6418 `(("python-pytest" ,python-pytest)
6419 ("python-pytest-cov" ,python-pytest-cov)))
6420 (home-page "https://github.com/aio-libs/multidict/")
6421 (synopsis "Multidict implementation")
6422 (description "Multidict is dict-like collection of key-value pairs
6423 where key might be occurred more than once in the container.")
6424 (license license:asl2.0)))
6426 (define-public python-orderedmultidict
6428 (name "python-orderedmultidict")
6433 (uri (pypi-uri "orderedmultidict" version))
6436 "1idjbl933avgaadscrjw1np3xkvnz3phq0l8vw5qs0rqcjx9b65q"))))
6437 (build-system python-build-system)
6440 (modify-phases %standard-phases
6441 (add-after 'unpack 'fix-tests
6443 ;; The package uses nosetest for running the tests.
6444 ;; Adding this initfile allows to run the test suite
6445 ;; without requiring nosetest.
6446 (with-output-to-file "tests/__init__.py" newline)
6449 `(("python-six" ,python-six)))
6451 `(("python-pycodestyle" ,python-pycodestyle)))
6452 (home-page "https://github.com/gruns/orderedmultidict")
6453 (synopsis "Python Ordered Multivalue Dictionary - omdict")
6454 (description "This package contains a library for ordered multivalue
6455 dictionaries. A multivalue dictionary is a dictionary that can store
6456 multiple values for the same key. An ordered multivalue dictionary is a
6457 multivalue dictionary that retains the order of insertions and deletions.")
6458 (license license:unlicense)))
6460 (define-public python2-orderedmultidict
6461 (package-with-python2 python-orderedmultidict))
6463 (define-public python-autopep8
6465 (name "python-autopep8")
6470 (uri (pypi-uri "autopep8" version))
6473 "1w6vh627vrmgfbvrdcxrc3k4gxcldrb2lpgxv9irkdds851qrzb0"))))
6474 (build-system python-build-system)
6476 `(("python-pycodestyle" ,python-pycodestyle)
6477 ("python-toml" ,python-toml)))
6478 (home-page "https://github.com/hhatto/autopep8")
6479 (synopsis "Format Python code according to the PEP 8 style guide")
6481 "@code{autopep8} automatically formats Python code to conform to
6482 the PEP 8 style guide. It uses the pycodestyle utility to determine
6483 what parts of the code needs to be formatted. @code{autopep8} is
6484 capable of fixing most of the formatting issues that can be reported
6486 (license (license:non-copyleft
6487 "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
6489 (define-public python2-autopep8
6490 (package-with-python2 python-autopep8))
6492 (define-public python-distlib
6494 (name "python-distlib")
6499 (uri (pypi-uri "distlib" version ".zip"))
6502 "08fyi2r246733vharl2yckw20rilci28r91mzrnnvcr638inw5if"))))
6503 (build-system python-build-system)
6506 (modify-phases %standard-phases
6507 (add-before 'build 'no-/bin/sh
6509 (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
6510 (("/bin/sh") (which "sh")))
6512 (add-before 'check 'prepare-test-env
6514 (setenv "HOME" "/tmp")
6515 ;; NOTE: Any value works, the variable just has to be present.
6516 (setenv "SKIP_ONLINE" "1")
6518 (native-inputs `(("unzip" ,unzip)))
6519 (home-page "https://bitbucket.org/pypa/distlib")
6520 (synopsis "Distribution utilities")
6521 (description "Distlib is a library which implements low-level functions that
6522 relate to packaging and distribution of Python software. It is intended to be
6523 used as the basis for third-party packaging tools.")
6524 (license license:psfl)))
6526 ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
6527 (define-public python-distlib/next
6529 (inherit python-distlib)
6534 (uri (pypi-uri "distlib" version ".zip"))
6537 "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))))
6539 (define-public python-distutils-extra
6541 (name "python-distutils-extra")
6546 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
6547 version "/+download/python-distutils-extra-"
6551 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
6552 (build-system python-build-system)
6553 (home-page "https://launchpad.net/python-distutils-extra/")
6554 (synopsis "Enhancements to Python's distutils")
6556 "The python-distutils-extra module enables you to easily integrate
6557 gettext support, themed icons, and scrollkeeper-based documentation into
6558 Python's distutils.")
6559 (license license:gpl2)))
6561 (define-public python2-distutils-extra
6562 (package-with-python2 python-distutils-extra))
6564 (define-public python2-elib.intl
6566 (name "python2-elib.intl")
6570 ;; This project doesn't tag releases or publish tarballs, so we take
6571 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
6574 (url "https://github.com/dieterv/elib.intl")
6575 (commit "d09997cfef")))
6576 (file-name (string-append name "-" version "-checkout"))
6579 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
6580 (build-system python-build-system)
6582 ;; incompatible with Python 3 (exception syntax)
6583 `(#:python ,python-2
6585 (home-page "https://github.com/dieterv/elib.intl")
6586 (synopsis "Enhanced internationalization for Python")
6588 "The elib.intl module provides enhanced internationalization (I18N)
6589 services for your Python modules and applications.")
6590 (license license:lgpl3+)))
6592 (define-public python-olefile
6594 (name "python-olefile")
6599 (uri (string-append "https://github.com/decalage2/olefile/releases/"
6600 "download/v" version "/olefile-" version ".tar.gz"))
6601 (file-name (string-append name "-" version ".tar.gz"))
6604 "1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
6605 (build-system python-build-system)
6606 (home-page "https://www.decalage.info/python/olefileio")
6607 (synopsis "Read and write Microsoft OLE2 files.")
6609 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
6610 Storage or Compound Document, Microsoft Office). It is an improved version of
6611 the OleFileIO module from PIL, the Python Image Library.")
6612 (license license:bsd-3)))
6614 (define-public python2-olefile
6615 (package-with-python2 python-olefile))
6617 (define-public python-pikepdf
6619 (name "python-pikepdf")
6624 (uri (pypi-uri "pikepdf" version))
6626 (base32 "1phdpi9cm2pbvgcxqvwr8ck327sxhdw4dnxmzhrbf7hzydmgykg2"))))
6627 (build-system python-build-system)
6629 `(#:tests? #false)) ;require python-xmp-toolkit
6631 `(("pybind11" ,pybind11)
6632 ("python-setuptools" ,python-setuptools)
6633 ("python-setuptools-scm" ,python-setuptools-scm/next)
6634 ("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)
6635 ("python-toml" ,python-toml)
6636 ("python-wheel" ,python-wheel)))
6640 `(("python-lxml" ,python-lxml)
6641 ("python-pillow" ,python-pillow)))
6642 (home-page "https://github.com/pikepdf/pikepdf")
6643 (synopsis "Read and write PDFs with Python")
6645 "pikepdf is a Python library for reading and writing PDF files.")
6646 (license license:mpl2.0)))
6648 (define-public python-pillow
6650 (name "python-pillow")
6655 (uri (pypi-uri "Pillow" version))
6658 "086g7nhv52wclrwnzbzs2x3nvyzs2hfq1bvgivsrp5f7r7wiiz7n"))))
6659 (build-system python-build-system)
6661 `(("python-pytest" ,python-pytest)))
6663 `(("freetype" ,freetype)
6665 ("libjpeg" ,libjpeg-turbo)
6666 ("libtiff" ,libtiff)
6667 ("libwebp" ,libwebp)
6668 ("openjpeg" ,openjpeg)
6671 `(("python-olefile" ,python-olefile)))
6674 (modify-phases %standard-phases
6675 (add-after 'unpack 'patch-ldconfig
6677 (substitute* "setup.py"
6678 (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
6680 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
6683 (setenv "HOME" (getcwd))
6684 ;; Make installed package available for running the tests.
6685 (add-installed-pythonpath inputs outputs)
6686 (invoke "python" "selftest.py" "--installed")
6687 (invoke "python" "-m" "pytest" "-vv"))
6689 (home-page "https://python-pillow.org")
6690 (synopsis "Fork of the Python Imaging Library")
6692 "The Python Imaging Library adds image processing capabilities to your
6693 Python interpreter. This library provides extensive file format support, an
6694 efficient internal representation, and fairly powerful image processing
6695 capabilities. The core image library is designed for fast access to data
6696 stored in a few basic pixel formats. It should provide a solid foundation for
6697 a general image processing tool.")
6698 (properties `((python2-variant . ,(delay python2-pillow))))
6699 (license (license:x11-style
6700 "http://www.pythonware.com/products/pil/license.htm"
6701 "The PIL Software License"))))
6703 (define-public python2-pillow
6704 (package-with-python2
6706 (inherit (strip-python2-variant python-pillow))
6707 ;; Version 6 is the last series with Python 2 support.
6712 (uri (pypi-uri "Pillow" version))
6715 "0l5rv8jkdrb5q846v60v03mcq64yrhklidjkgwv6s1pda71g17yv")))))))
6717 (define-public python-pillow-2.9
6719 (inherit python-pillow)
6724 (uri (pypi-uri "Pillow" version))
6727 "0ada7lf3lmbdsqm3b7ja920p1pllyfhmqndr85ikpj77fmz9s5qg"))))
6729 (substitute-keyword-arguments (package-arguments python-pillow)
6730 ((#:tests? _ #f) #f)))
6731 (properties '((hidden? #t)))))
6733 (define-public python-pillow-simd
6735 (inherit python-pillow)
6736 (name "python-pillow-simd")
6738 ;; The PyPI tarball does not include test files.
6743 (url "https://github.com/uploadcare/pillow-simd")
6745 (file-name (git-file-name name version))
6747 (base32 "0w11np4cybamry3jsg70x747c79zwjzfq0xiprfp6c186rd6nzp9"))))
6749 (substitute-keyword-arguments
6750 (package-arguments python-pillow)
6752 `(modify-phases ,phases
6753 (add-after 'unpack 'make-tests-writable
6755 (for-each make-file-writable (find-files "Tests"))
6758 `(("libraqm" ,libraqm)
6759 ("libimagequant" ,libimagequant)
6760 ,@(package-inputs python-pillow)))
6761 (home-page "https://github.com/uploadcare/pillow-simd")
6762 (synopsis "Fork of the Python Imaging Library (Pillow)")
6763 (description "This package is a fork of Pillow which adds support for SIMD
6766 (define-public python-imagecodecs
6768 (name "python-imagecodecs")
6769 (version "2021.3.31")
6773 (uri (pypi-uri "imagecodecs" version))
6776 "0q7pslb6wd56vbcq2mdxwsiha32mxjr7mgqqfbq5w42q601p9pi0"))
6777 (modules '((guix build utils)))
6780 ;; Unbundle 3rd party modules.
6781 (delete-file-recursively "3rdparty")
6782 ;; Delete pre-generated Cython files.
6783 (for-each delete-file (find-files "imagecodecs" "_.*\\.c$"))
6785 (build-system python-build-system)
6787 `(#:tests? #f ; Tests are disabled, because dependencies are missing.
6789 (modify-phases %standard-phases
6790 (add-after 'unpack 'create-configuration
6791 (lambda* (#:key inputs #:allow-other-keys)
6792 ;; By default everything is enabled. We can selectively disable
6793 ;; extensions (and thus dependencies) by deleting them from the
6794 ;; EXTENSIONS dictionary. This is upstream’s preferred way.
6795 (call-with-output-file "imagecodecs_distributor_setup.py"
6798 def customize_build(EXTENSIONS, OPTIONS):
6799 del EXTENSIONS['aec']
6800 del EXTENSIONS['avif']
6801 del EXTENSIONS['bitshuffle']
6802 del EXTENSIONS['deflate']
6803 del EXTENSIONS['jpeg2k']
6804 del EXTENSIONS['jpeg12']
6805 del EXTENSIONS['jpegls']
6806 del EXTENSIONS['jpegxl']
6807 del EXTENSIONS['jpegxr']
6808 del EXTENSIONS['lerc']
6809 del EXTENSIONS['ljpeg']
6810 del EXTENSIONS['lzf']
6811 del EXTENSIONS['zfp']
6812 del EXTENSIONS['zopfli']
6813 OPTIONS['cythonize']
6817 `(("c-blosc" ,c-blosc)
6819 ("google-brotli" ,google-brotli)
6820 ("libjpeg-turbo" ,libjpeg-turbo)
6822 ("libtiff" ,libtiff)
6823 ("libwebp" ,libwebp)
6828 ("zstd" ,zstd "lib")))
6830 `(("python-numpy" ,python-numpy)))
6833 `(("python-cython" ,python-cython)
6834 ;; For testing. Incomplete.
6835 ;("python-numcodecs" ,python-numcodecs)
6836 ;("python-zarr" ,python-zarr)
6837 ;("python-pytest" ,python-pytest)
6839 (home-page "https://www.lfd.uci.edu/~gohlke/")
6841 "Image transformation, compression, and decompression codecs")
6843 "Imagecodecs is a Python library that provides block-oriented, in-memory
6844 buffer transformation, compression, and decompression functions for use in the
6845 tifffile, czifile, and other scientific image input/output modules.")
6846 (license license:bsd-3)))
6848 (define-public python-roifile
6850 (name "python-roifile")
6851 (version "2020.11.28")
6855 (uri (pypi-uri "roifile" version))
6858 "04argnc7qccybkrj9ww18bf81ghsghhh93hnqy3p111rcdlyn66p"))))
6859 (build-system python-build-system)
6860 (arguments `(#:tests? #f)) ; there are none
6862 `(("python-numpy" ,python-numpy)))
6863 (home-page "https://www.lfd.uci.edu/~gohlke/")
6864 (synopsis "Read and write ImageJ ROI format")
6865 (description "Roifile is a Python library to read, write, create, and plot
6866 ImageJ ROIs, an undocumented and ImageJ application specific format to store
6867 regions of interest, geometric shapes, paths, text, etc for image overlays.")
6868 (license license:bsd-3)))
6870 (define-public python-tifffile
6872 (name "python-tifffile")
6873 (version "2021.4.8")
6877 (uri (pypi-uri "tifffile" version))
6880 "16r0hw7shka1bqf28bv198lj2jhf2r9gy3s5zv4nf5cfsfm8pajm"))))
6881 (build-system python-build-system)
6882 ;; Tests require lfdfiles, which depends on tifffile
6883 (arguments `(#:tests? #f))
6885 `(("python-numpy" ,python-numpy)
6886 ("python-imagecodecs" ,python-imagecodecs)))
6887 (home-page "https://www.lfd.uci.edu/~gohlke/")
6888 (synopsis "Read and write TIFF(r) files")
6889 (description "This package lets you read image and metadata from many
6890 bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,
6891 NIH, ImageJ, MicroManager, MD GEL, and FluoView files. It also lets you write
6892 numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
6893 (license license:bsd-3)))
6895 (define-public python-lfdfiles
6897 (name "python-lfdfiles")
6898 (version "2021.2.22")
6902 (uri (pypi-uri "lfdfiles" version))
6905 "12fxm4v805dgjrih7x6jnl1wd7y7jw1rkhjs3d4am8s6qk1cbar2"))
6906 (modules '((guix build utils)))
6909 ;; Delete pre-generated Cython files.
6910 (for-each delete-file (find-files "lfdfiles" "_.*\\.c$"))
6912 (build-system python-build-system)
6914 `(#:tests? #f)) ; No tests exist, despite a test dependency on pytest.
6916 `(("python-click" ,python-click)
6917 ("python-numpy" ,python-numpy)
6918 ("python-tifffile" ,python-tifffile)))
6919 (native-inputs `(("python-cython" ,python-cython)))
6920 (home-page "https://www.lfd.uci.edu/~gohlke/")
6921 (synopsis "Work with LFD data files")
6923 "Lfdfiles is a Python library and console script for reading, writing,
6924 converting, and viewing many of the proprietary file formats used to store
6925 experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
6926 (license license:bsd-3)))
6928 (define-public python-imageio
6930 (name "python-imageio")
6935 (uri (pypi-uri "imageio" version))
6938 "1ksjl523fm0fikrd85llxfba35rc1qsgwadgr6mbn9kis79xcpzv"))))
6939 (build-system python-build-system)
6941 `(#:tests? #f ; many tests require online data
6943 (modify-phases %standard-phases
6945 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
6948 ;; Make installed package available for running the tests.
6949 (add-installed-pythonpath inputs outputs)
6950 (invoke "pytest" "-vv"))
6953 `(("python-numpy" ,python-numpy)
6954 ("python-pillow" ,python-pillow)
6955 ("python-psutil" ,python-psutil)))
6957 `(("python-pytest" ,python-pytest)))
6958 (home-page "https://imageio.github.io/")
6959 (synopsis "Library for reading and writing a wide range of image data")
6961 "Imageio is a Python library that provides an easy interface to read and
6962 write a wide range of image data, including animated images, video, volumetric
6963 data, and scientific formats.")
6964 (license license:bsd-2)))
6966 (define-public python-pycparser
6968 (name "python-pycparser")
6973 (uri (pypi-uri "pycparser" version))
6976 "1w0m3xvlrzq4lkbvd1ngfm8mdw64r1yxy6n7djlw6qj5d0km6ird"))))
6977 (outputs '("out" "doc"))
6978 (build-system python-build-system)
6980 `(("pkg-config" ,pkg-config)))
6983 (modify-phases %standard-phases
6986 (with-directory-excursion "tests"
6987 (invoke "python" "all_tests.py"))
6989 (add-after 'install 'install-doc
6990 (lambda* (#:key outputs #:allow-other-keys)
6991 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6992 (doc (string-append data "/doc/" ,name "-" ,version))
6993 (examples (string-append doc "/examples")))
6995 (for-each (lambda (file)
6996 (copy-file (string-append "." file)
6997 (string-append doc file)))
6998 '("/README.rst" "/CHANGES" "/LICENSE"))
6999 (copy-recursively "examples" examples)
7001 (home-page "https://github.com/eliben/pycparser")
7002 (synopsis "C parser in Python")
7004 "Pycparser is a complete parser of the C language, written in pure Python
7005 using the PLY parsing library. It parses C code into an AST and can serve as
7006 a front-end for C compilers or analysis tools.")
7007 (license license:bsd-3)))
7009 (define-public python2-pycparser
7010 (package-with-python2 python-pycparser))
7012 (define-public python-xlsxwriter
7014 (name "python-xlsxwriter")
7018 ;; There are no tests in the PyPI tarball.
7021 (url "https://github.com/jmcnamara/XlsxWriter")
7022 (commit (string-append "RELEASE_" version))))
7023 (file-name (git-file-name name version))
7025 (base32 "04idf331rp0iyhlnh7268jmim8ydw4jjb81hr5rh548sqnq4bhpl"))))
7026 (build-system python-build-system)
7027 (home-page "https://github.com/jmcnamara/XlsxWriter")
7028 (synopsis "Python module for creating Excel XLSX files")
7030 "XlsxWriter is a Python module that can be used to write text, numbers,
7031 formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
7032 (license license:bsd-2)))
7034 (define-public python-pywavelets
7036 (name "python-pywavelets")
7038 (home-page "https://github.com/PyWavelets/pywt")
7041 (uri (pypi-uri "PyWavelets" version))
7044 "1j88c0r4j1d4mb3f8qhz6nalyx21qrzmsm70rjngnkybd87v8r0s"))))
7045 (build-system python-build-system)
7047 '(#:modules ((ice-9 ftw)
7051 (guix build python-build-system))
7053 (modify-phases %standard-phases
7056 (let ((cwd (getcwd))
7057 (libdir (find (cut string-prefix? "lib." <>)
7058 (scandir "build"))))
7059 (with-directory-excursion (string-append cwd "/build/" libdir)
7060 (invoke "pytest" "-vv"))))))))
7062 `(("python-matplotlib" ,python-matplotlib) ;for tests
7063 ("python-pytest" ,python-pytest)))
7065 `(("python-numpy" ,python-numpy)))
7066 (synopsis "Wavelet transforms in Python")
7068 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
7069 mathematical basis functions that are localized in both time and frequency.
7070 Wavelet transforms are time-frequency transforms employing wavelets. They are
7071 similar to Fourier transforms, the difference being that Fourier transforms are
7072 localized only in frequency instead of in time and frequency.")
7073 (license license:expat)))
7075 (define-public python-pywal
7077 (name "python-pywal")
7083 (url "https://github.com/dylanaraps/pywal")
7085 (file-name (git-file-name name version))
7087 (base32 "039m7dch479hlwddynacdrr0klz6a5bdly5swqbs94hfimficiyf"))))
7088 (build-system python-build-system)
7091 (modify-phases %standard-phases
7092 (add-before 'check 'fix-home-directory
7094 ;; Tests fail with "Permission denied: '/homeless-shelter'".
7095 (setenv "HOME" "/tmp")
7098 `(("imagemagick" ,imagemagick)))
7099 (home-page "https://github.com/dylanaraps/pywal")
7100 (synopsis "Color palette generator and applicator")
7102 "Pywal is a tool that generates a color palette from the dominant colors
7103 in an image. It then applies the colors system-wide and on-the-fly in all of
7104 your favourite programs.")
7105 (license license:expat)))
7107 (define-public python-pywinrm
7109 (name "python-pywinrm")
7114 (uri (pypi-uri "pywinrm" version))
7117 "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
7118 (build-system python-build-system)
7120 `(("python-six" ,python-six)
7121 ("python-requests_ntlm" ,python-requests_ntlm)
7122 ("python-xmltodict" ,python-xmltodict)
7123 ("python-kerberos" ,python-kerberos)))
7125 `(("python-mock" ,python-mock)
7126 ("python-pytest" ,python-pytest)))
7127 (home-page "https://github.com/diyan/pywinrm/")
7129 "Python library for Windows Remote Management (WinRM)")
7131 "pywinrm is a Python client for the Windows Remote Management (WinRM)
7132 service. It allows you to invoke commands on target Windows machines from
7133 any machine that can run Python.")
7134 (license license:expat)))
7136 (define-public python-xcffib
7138 (name "python-xcffib")
7143 (uri (pypi-uri "xcffib" version))
7146 "04k91yxyb3pgc5lvxmivh8w71yjrap2g57yk3s73x4rm4nvjq51n"))))
7147 (build-system python-build-system)
7149 `(("libxcb" ,libxcb)))
7151 `(("python-cffi" ,python-cffi) ; used at run time
7152 ("python-six" ,python-six)))
7154 `(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
7157 (modify-phases %standard-phases
7158 (add-after 'unpack 'fix-libxcb-path
7159 (lambda* (#:key inputs #:allow-other-keys)
7160 (let ((libxcb (assoc-ref inputs "libxcb")))
7161 (substitute* '("xcffib/__init__.py")
7162 (("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
7164 (add-after 'install 'install-doc
7165 (lambda* (#:key outputs #:allow-other-keys)
7166 (let ((doc (string-append (assoc-ref outputs "out") "/share"
7167 "/doc/" ,name "-" ,version)))
7169 (copy-file "README.md"
7170 (string-append doc "/README.md"))
7172 (home-page "https://github.com/tych0/xcffib")
7173 (synopsis "XCB Python bindings")
7175 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
7176 support for Python 3 and PyPy. It is based on cffi.")
7177 (license license:expat)))
7179 (define-public python2-xcffib
7180 (package-with-python2 python-xcffib))
7182 (define-public python-cairocffi
7184 (name "python-cairocffi")
7188 ;; The PyPI archive does not include the documentation, so use Git.
7191 (url "https://github.com/Kozea/cairocffi")
7192 (commit (string-append "v" version))))
7193 (file-name (git-file-name name version))
7196 "1ypw0c2lr43acn57hbmckk183zq4h477j7p4ig2zjvw0mcpvia50"))))
7197 (build-system python-build-system)
7198 (outputs '("out" "doc"))
7202 ("gdk-pixbuf" ,gdk-pixbuf)
7205 `(("python-numpy" ,python-numpy)
7206 ("python-pytest" ,python-pytest)
7207 ("python-pytest-cov" ,python-pytest-cov)
7208 ("python-pytest-runner" ,python-pytest-runner)
7209 ("python-sphinx" ,python-sphinx)
7210 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
7212 `(("python-xcffib" ,python-xcffib))) ; used at run time
7215 (modify-phases %standard-phases
7216 (add-after 'unpack 'patch-paths
7217 (lambda* (#:key inputs #:allow-other-keys)
7218 (substitute* "cairocffi/__init__.py"
7219 ;; Hack the dynamic library loading mechanism.
7220 (("find_library\\(library_name\\)")
7222 (("filenames = \\(library_filename,\\) \\+ filenames")
7225 (string-append (assoc-ref inputs "cairo")
7226 "/lib/libcairo.so.2")))
7227 (substitute* "cairocffi/pixbuf.py"
7228 (("libgdk_pixbuf-2.0.so.0")
7229 (string-append (assoc-ref inputs "gdk-pixbuf")
7230 "/lib/libgdk_pixbuf-2.0.so.0"))
7231 (("libgobject-2.0.so.0")
7232 (string-append (assoc-ref inputs "glib")
7233 "/lib/libgobject-2.0.so.0"))
7234 (("libglib-2.0.so.0")
7235 (string-append (assoc-ref inputs "glib")
7236 "/lib/libglib-2.0.so.0"))
7238 (string-append (assoc-ref inputs "gtk+")
7239 "/lib/libgdk-3.so.0")))
7241 (add-after 'unpack 'disable-linters
7242 ;; Their check fails; none of our business.
7244 (substitute* "setup.cfg"
7245 ((".*pytest-flake8.*") "")
7246 ((".*pytest-isort.*") "")
7250 (add-after 'install 'install-doc
7251 (lambda* (#:key inputs outputs #:allow-other-keys)
7252 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
7253 (doc (string-append data "/doc/" ,name "-" ,version))
7254 (html (string-append doc "/html")))
7255 (setenv "LD_LIBRARY_PATH"
7256 (string-append (assoc-ref inputs "cairo") "/lib" ":"
7257 (assoc-ref inputs "gdk-pixbuf") "/lib"))
7258 (setenv "LANG" "en_US.UTF-8")
7260 (for-each (lambda (file)
7261 (copy-file (string-append "." file)
7262 (string-append doc file)))
7263 '("/README.rst" "/NEWS.rst"))
7264 (system* "python" "setup.py" "build_sphinx")
7265 (copy-recursively "docs/_build/html" html)
7267 (home-page "https://github.com/Kozea/cairocffi")
7268 (synopsis "Python bindings and object-oriented API for Cairo")
7270 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
7271 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
7272 graphics library with support for multiple backends including image buffers,
7273 PNG, PostScript, PDF, and SVG file output.")
7274 (license license:bsd-3)))
7276 (define-public python-decorator
7278 (name "python-decorator")
7283 (uri (pypi-uri "decorator" version))
7285 (base32 "1mcy64hllgm938v8k1x2a4g0q9swsnrfnsvhz59kr28a6ajgpv3j"))))
7286 (build-system python-build-system)
7287 (home-page "https://pypi.org/project/decorator/")
7288 (synopsis "Python module to simplify usage of decorators")
7290 "The aim of the decorator module is to simplify the usage of decorators
7291 for the average programmer, and to popularize decorators usage giving examples
7292 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
7293 etc. The core of this module is a decorator factory.")
7294 (license license:expat)))
7296 (define-public python2-decorator
7297 (package-with-python2 python-decorator))
7299 (define-public python-drmaa
7301 (name "python-drmaa")
7306 (uri (pypi-uri "drmaa" version))
7308 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
7309 (build-system python-build-system)
7310 ;; The test suite requires libdrmaa which is provided by the cluster
7311 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
7312 ;; should be set to the path of the libdrmaa library.
7313 (arguments '(#:tests? #f))
7315 `(("python-nose" ,python-nose)))
7316 (home-page "https://pypi.org/project/drmaa/")
7317 (synopsis "Python bindings for the DRMAA library")
7319 "A Python package for Distributed Resource Management (DRM) job
7320 submission and control. This package is an implementation of the DRMAA 1.0
7321 Python language binding specification.")
7322 (license license:bsd-3)))
7324 (define-public python2-drmaa
7325 (package-with-python2 python-drmaa))
7327 (define-public python-grako
7329 (name "python-grako")
7335 (pypi-uri "grako" version ".zip"))
7338 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
7339 (build-system python-build-system)
7340 (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
7343 ("python-pytest" ,python-pytest)
7344 ("python-pytest-runner" ,python-pytest-runner)))
7345 (home-page "https://bitbucket.org/neogeny/grako")
7346 (synopsis "EBNF parser generator")
7348 "Grako takes a grammar in a variation of EBNF as input, and outputs a
7349 memoizing PEG/Packrat parser in Python.")
7350 (license license:bsd-3)))
7352 (define-public python2-grako
7353 (package-with-python2 python-grako))
7355 (define-public python-grandalf
7357 (name "python-grandalf")
7361 ;; There's no source tarball on PyPI.
7364 (url "https://github.com/bdcht/grandalf")
7365 (commit (string-append "v" version))))
7366 (file-name (git-file-name name version))
7369 "03p8w8ljpb87qbyldm3s6b7qi30hfcn43h33iwlgqcf31fjsyr4g"))))
7370 (build-system python-build-system)
7373 (modify-phases %standard-phases
7376 (invoke "python" "setup.py" "pytest"))))))
7378 `(("python-pytest" ,python-pytest)
7379 ("python-pytest-runner" ,python-pytest-runner)))
7381 `(("python-numpy" ,python-numpy)
7382 ("python-ply" ,python-ply)))
7383 (home-page "https://github.com/bdcht/grandalf")
7384 (synopsis "Graph and drawing algorithms framework")
7386 "Grandalf is a Python package made for experimentations with graphs
7387 drawing algorithms. It is written in pure Python, and currently implements
7388 two layouts: the Sugiyama hierarchical layout and the force-driven or energy
7389 minimization approach. While not as fast or featured as graphviz or other
7390 libraries like OGDF (C++), it provides a way to walk and draw graphs no larger
7391 than thousands of nodes, while keeping the source code simple enough to tweak
7392 and hack any part of it for experimental purpose. With a total of about 1500
7393 lines of Python, the code involved in drawing the Sugiyama (dot) layout fits
7394 in less than 600 lines. The energy minimization approach is comprised of only
7397 Grandalf does only 2 not-so-simple things:
7399 @item computing the nodes (x,y) coordinates (based on provided nodes
7400 dimensions, and a chosen layout)
7401 @item routing the edges with lines or nurbs
7404 It doesn’t depend on any GTK/Qt/whatever graphics toolkit. This means that it
7405 will help you find where to draw things like nodes and edges, but it’s up to
7406 you to actually draw things with your favorite toolkit.")
7407 ;; The user can choose either license.
7408 (license (list license:gpl2 license:epl1.0))))
7410 (define-public python-gridmap
7412 (name "python-gridmap")
7418 (url "https://github.com/pygridtools/gridmap")
7419 (commit (string-append "v" version))))
7420 (file-name (git-file-name name version))
7422 (base32 "0v0sgpg6pz8h61f9aqjf5xk0ipr512bbz8dxzjjylksj135qr19l"))))
7423 (build-system python-build-system)
7425 '(#:tests? #f)) ; FIXME: Requires python-cherrypy.
7427 `(("python-psutil" ,python-psutil)
7428 ("python-drmaa" ,python-drmaa)
7429 ("python-pyzmq" ,python-pyzmq)))
7430 (home-page "https://github.com/pygridtools/gridmap")
7431 (synopsis "Create jobs on a cluster directly from Python")
7433 "Gridmap is a Python package to allow you to easily create jobs on the
7434 cluster directly from Python. You can directly map Python functions onto the
7435 cluster without needing to write any wrapper code yourself.")
7436 (license license:gpl3+)))
7438 (define-public python-honcho
7440 (name "python-honcho")
7446 (url "https://github.com/nickstenning/honcho")
7447 (commit (string-append "v" version))))
7448 (file-name (git-file-name name version))
7450 (base32 "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b"))))
7451 (build-system python-build-system)
7453 `(("python-pytest" ,python-pytest)
7454 ("python-mock" ,python-mock)
7455 ("python-tox" ,python-tox)
7456 ("which" ,which))) ;for tests
7458 `(("python-jinja2" ,python-jinja2)))
7461 (modify-phases %standard-phases
7463 (add-after 'install 'check
7464 (lambda* (#:key outputs inputs #:allow-other-keys)
7465 ;; fix honcho path in testsuite
7466 (substitute* "tests/conftest.py"
7467 (("'honcho'") (string-append "'" (assoc-ref outputs "out")
7468 "/bin/honcho" "'")))
7469 ;; It's easier to run tests after install.
7470 ;; Make installed package available for running the tests
7471 (add-installed-pythonpath inputs outputs)
7472 (invoke "py.test" "-v"))))))
7473 (home-page "https://github.com/nickstenning/honcho")
7474 (synopsis "Manage Procfile-based applications")
7476 "A Procfile is a file which describes how to run an application
7477 consisting of several processes. honcho starts all listed processes.
7478 The output of all running processes is collected by honcho and
7480 (license license:expat)))
7482 (define-public python-pebble
7484 (name "python-pebble")
7489 (uri (pypi-uri "Pebble" version))
7491 (base32 "16siqc3brbk7dp4d9sg48bjl6a8wyy24aib3il1hf4y2624draxh"))))
7492 (build-system python-build-system)
7494 `(("python-pytest" ,python-pytest)))
7497 (modify-phases %standard-phases
7499 (lambda _ (invoke "python" "-m" "pytest" "-sv"))))))
7500 (home-page "https://github.com/noxdafox/pebble")
7501 (synopsis "Threading and multiprocessing for Python")
7503 "Pebble aims to help manage threads and processes in an easier way. It
7504 wraps Python's standard library threading and multiprocessing objects.")
7505 (license license:lgpl3+)))
7507 (define-public python-pexpect
7509 (name "python-pexpect")
7514 (uri (pypi-uri "pexpect" version))
7516 (base32 "032cg337h8awydgypz6f4wx848lw8dyrj4zy988x0lyib4ws8rgw"))))
7517 (build-system python-build-system)
7520 (modify-phases %standard-phases
7521 (add-before 'check 'prepare-tests
7523 (substitute* (find-files "tests")
7524 (("/bin/ls") (which "ls"))
7525 (("/bin/echo") (which "echo"))
7526 (("/bin/which") (which "which"))
7527 ;; Many tests try to use the /bin directory which
7528 ;; is not present in the build environment.
7529 ;; Use one that's non-empty and unlikely to change.
7531 ;; Disable failing test. See upstream bug report
7532 ;; https://github.com/pexpect/pexpect/issues/568
7533 (("def test_bash") "def _test_bash"))
7534 ;; XXX: Socket connection test gets "Connection reset by peer".
7535 ;; Why does it not work? Delete for now.
7536 (delete-file "tests/test_socket.py")
7538 (replace 'check (lambda _ (invoke "nosetests" "-v"))))))
7540 `(("python-nose" ,python-nose)
7541 ("python-pytest" ,python-pytest)
7544 ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
7546 `(("python-ptyprocess" ,python-ptyprocess)))
7547 (home-page "http://pexpect.readthedocs.org/")
7548 (synopsis "Controlling interactive console applications")
7550 "Pexpect is a pure Python module for spawning child applications;
7551 controlling them; and responding to expected patterns in their output.
7552 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
7553 child application and control it as if a human were typing commands.")
7554 (license license:isc)))
7556 (define-public python2-pexpect
7557 (package-with-python2 python-pexpect))
7559 (define-public python-setuptools-scm
7561 (name "python-setuptools-scm")
7565 (uri (pypi-uri "setuptools_scm" version))
7568 "083k93wi7mrmp1cn28hcbnr6sivbgls0y7zz2m5qzn1wg04a3f16"))))
7569 (build-system python-build-system)
7570 (home-page "https://github.com/pypa/setuptools_scm/")
7571 (synopsis "Manage Python package versions in SCM metadata")
7573 "Setuptools_scm handles managing your Python package versions in
7574 @dfn{software configuration management} (SCM) metadata instead of declaring
7575 them as the version argument or in a SCM managed file.")
7576 (license license:expat)))
7578 ;; TODO: Merge with 'python-setuptools-scm' on the next rebuild cycle.
7579 (define-public python-setuptools-scm/next
7581 (inherit python-setuptools-scm)
7586 (uri (pypi-uri "setuptools_scm" version))
7588 (base32 "0ahlrxxkx2xhmxskx57gc96w3bdndflxx30304ihvm7ds136nny8"))))))
7590 (define-public python2-setuptools-scm
7591 (package-with-python2 python-setuptools-scm))
7593 (define-public python-sexpdata
7595 (name "python-sexpdata")
7600 (uri (pypi-uri "sexpdata" version))
7603 "1q4lsjyzzqrdv64l0pv4ij9nd8gqhvxqcrpxc2xpxs652sk2gj0s"))))
7604 (build-system python-build-system)
7605 (home-page "https://github.com/jd-boyd/sexpdata")
7606 (synopsis "S-expression parser for Python")
7608 "Sexpdata is an S-expression parser/serializer. It has load and dump
7609 functions like pickle, json or PyYAML module.")
7610 (license license:bsd-3)))
7612 (define-public python-pathlib2
7614 (name "python-pathlib2")
7619 (uri (pypi-uri "pathlib2" version))
7622 "0hpp92vqqgcd8h92msm9slv161b1q160igjwnkf2ag6cx0c96695"))))
7623 (build-system python-build-system)
7625 `(("python-scandir" ,python-scandir)
7626 ("python-six" ,python-six)))
7627 (home-page "https://pypi.org/project/pathlib2/")
7628 (synopsis "Object-oriented file system paths")
7629 (description "The goal of pathlib2 is to provide a backport of the
7630 standard @code{pathlib} module which tracks the standard library module, so
7631 all the newest features of the standard @code{pathlib} can be used also on
7632 older Python versions.")
7633 (license license:expat)))
7635 (define-public python-importlib-resources
7637 (name "python-importlib-resources")
7642 (uri (pypi-uri "importlib_resources" version))
7645 "1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
7646 (build-system python-build-system)
7648 `(("python-setuptools-scm" ,python-setuptools-scm)
7649 ("python-toml" ,python-toml)))
7650 (home-page "http://importlib-resources.readthedocs.io/")
7651 (synopsis "Read resources from Python packages")
7653 "@code{importlib_resources} is a backport of Python 3's standard library
7654 @code{importlib.resources} module for Python 2.7, and Python 3.")
7655 (properties `((python2-variant . ,(delay python2-importlib-resources))))
7656 (license license:asl2.0)))
7658 (define-public python2-importlib-resources
7660 (name "python2-importlib-resources")
7664 (uri (pypi-uri "importlib_resources" version))
7667 "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
7668 (build-system python-build-system)
7670 `(#:python ,python-2
7671 #:phases (modify-phases %standard-phases
7672 ;; The build system tests for python-wheel, but it is
7673 ;; not required for Guix nor the test suite. Just drop
7674 ;; it to make bootstrapping pytest easier.
7675 (add-after 'unpack 'drop-wheel-dependency
7677 (substitute* "setup.cfg"
7678 (("^[[:blank:]]+wheel")
7682 `(("python-pathlib2" ,python2-pathlib2)
7683 ("python-typing" ,python2-typing)))
7684 (home-page "https://gitlab.com/python-devs/importlib_resources")
7685 (synopsis "Backport of @code{importlib.resources} from Python 3.7")
7687 "This package provides an implementation of @code{importlib.resources}
7688 for older versions of Python.")
7689 (license license:asl2.0)))
7691 ;; For importlib-metadata-bootstrap below.
7692 (define-public python2-importlib-resources-bootstrap
7695 python2-importlib-resources
7696 (name "python2-importlib-resources-bootstrap")
7698 `(("python-pathlib2-bootstrap" ,python2-pathlib2-bootstrap)
7699 ("python-typing" ,python2-typing))))))
7701 (define-public python-importlib-metadata
7703 (name "python-importlib-metadata")
7708 (uri (pypi-uri "importlib_metadata" version))
7711 "00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
7712 (build-system python-build-system)
7714 `(("python-zipp" ,python-zipp)))
7716 `(("python-setuptools-scm" ,python-setuptools-scm)
7717 ("python-pyfakefs" ,python-pyfakefs)
7718 ("python-packaging" ,python-packaging)))
7719 (home-page "https://importlib-metadata.readthedocs.io/")
7720 (synopsis "Read metadata from Python packages")
7722 "@code{importlib_metadata} is a library which provides an API for
7723 accessing an installed Python package's metadata, such as its entry points or
7724 its top-level name. This functionality intends to replace most uses of
7725 @code{pkg_resources} entry point API and metadata API. Along with
7726 @code{importlib.resources} in Python 3.7 and newer, this can eliminate the
7727 need to use the older and less efficient @code{pkg_resources} package.")
7728 (properties `((python2-variant . ,(delay python2-importlib-metadata))))
7729 (license license:asl2.0)))
7731 (define-public python2-importlib-metadata
7732 (let ((base (package-with-python2 (strip-python2-variant
7733 python-importlib-metadata))))
7736 (name "python2-importlib-metadata")
7738 `(("python-setuptools-scm" ,python2-setuptools-scm)
7739 ("python-pyfakefs" ,python2-pyfakefs-bootstrap)
7740 ("python-packaging" ,python2-packaging-bootstrap)))
7742 `(("python-configparser" ,python2-configparser)
7743 ("python-contextlib2" ,python2-contextlib2)
7744 ("python-importlib-resources" ,python2-importlib-resources)
7745 ("python-pathlib2" ,python2-pathlib2)
7746 ,@(package-propagated-inputs base))))))
7748 ;; This package is used by python2-pytest, and thus must not depend on it.
7749 (define-public python2-importlib-metadata-bootstrap
7752 python2-importlib-metadata
7753 (name "python2-importlib-metadata-bootstrap")
7756 ,@(package-arguments python2-importlib-metadata)))
7758 `(("python-zipp" ,python2-zipp-bootstrap)
7759 ("python-pathlib2" ,python2-pathlib2-bootstrap)
7760 ("python-configparser" ,python2-configparser)
7761 ("python-contextlib2" ,python2-contextlib2-bootstrap)
7762 ("python-importlib-resources" ,python2-importlib-resources-bootstrap))))))
7764 (define-public python-importmagic
7766 (name "python-importmagic")
7771 (uri (pypi-uri "importmagic" version))
7774 "1n7qxa1snj06aw45mcfz7bxc46zp7fxj687140g2k6jcnyjmfxrz"))))
7775 (build-system python-build-system)
7776 (home-page "https://github.com/alecthomas/importmagic")
7777 (synopsis "Library for adding, removing and managing Python imports")
7779 "Importmagic is a Python library for automatically managing imports by
7780 finding unresolved symbols in Python code and their corresponding imports.")
7781 (license license:bsd-3)))
7783 (define-public python-inotify-simple
7785 (name "python-inotify-simple")
7791 (url "https://github.com/chrisjbillington/inotify_simple")
7793 (file-name (git-file-name name version))
7795 (base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05"))))
7796 (build-system python-build-system)
7798 "https://github.com/chrisjbillington/inotify_simple")
7799 (synopsis "Simple wrapper around inotify library")
7801 "@code{inotify-simple} is a simple wrapper around inotify library.")
7802 (license license:bsd-3)))
7804 (define-public python-jaraco-packaging
7806 (name "python-jaraco-packaging")
7811 (uri (pypi-uri "jaraco.packaging" version))
7814 "0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
7815 (build-system python-build-system)
7817 `(("python-pytest" ,python-pytest)
7818 ("python-pytest-checkdocs" ,python-pytest-checkdocs)
7819 ("python-pytest-flake8" ,python-pytest-flake8)
7820 ("python-rst.linker" ,python-rst.linker)
7821 ("python-setuptools" ,python-setuptools)
7822 ("python-setuptools-scm" ,python-setuptools-scm)
7823 ("python-six" ,python-six)
7824 ("python-sphinx" ,python-sphinx)))
7825 (home-page "https://github.com/jaraco/jaraco.packaging")
7826 (synopsis "Tools to supplement packaging Python releases")
7828 "This package provides various tools to supplement packaging Python
7830 (license license:expat)))
7832 (define-public python-pathpy
7834 (name "python-pathpy")
7839 (uri (pypi-uri "path.py" version))
7841 (base32 "0ir9j1haq2jbi7aip6k2fa9l7q1l03k4hp1awxhjhcwzsnwp3ll8"))))
7842 (outputs '("out" "doc"))
7843 (build-system python-build-system)
7845 `(("python-appdirs" ,python-appdirs)
7846 ("python-importlib-metadata" ,python-importlib-metadata)))
7848 `(("python-setuptools-scm" ,python-setuptools-scm)
7849 ("python-sphinx" ,python-sphinx)
7850 ("python-rst.linker" ,python-rst.linker)
7851 ("python-pytest" ,python-pytest)
7852 ("python-pytest-runner" ,python-pytest-runner)
7853 ("python-jaraco-packaging" ,python-jaraco-packaging)))
7856 (modify-phases %standard-phases
7857 (add-after 'build 'build-doc
7859 (setenv "LANG" "en_US.UTF-8")
7860 (invoke "python" "setup.py" "build_sphinx")))
7861 (add-after 'install 'install-doc
7862 (lambda* (#:key outputs #:allow-other-keys)
7863 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
7864 (doc (string-append data "/doc/" ,name "-" ,version))
7865 (html (string-append doc "/html")))
7867 (for-each (lambda (file)
7868 (copy-file file (string-append doc "/" file)))
7869 '("README.rst" "CHANGES.rst"))
7870 (copy-recursively "build/sphinx/html" html)
7874 ;; The import time test aborts if an import takes longer than
7875 ;; 100ms. It may very well take a little longer than that.
7876 (invoke "pytest" "-v" "-k" "not test_import_time"))))))
7877 (home-page "https://github.com/jaraco/path.py")
7878 (synopsis "Python module wrapper for built-in os.path")
7880 "@code{path.py} implements path objects as first-class entities, allowing
7881 common operations on files to be invoked on those path objects directly.")
7882 (license license:expat)))
7884 (define-public python-simplegeneric
7886 (name "python-simplegeneric")
7891 (uri (pypi-uri "simplegeneric" version ".zip"))
7893 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
7894 (build-system python-build-system)
7896 `(("unzip" ,unzip)))
7897 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
7898 (synopsis "Python module for simple generic functions")
7900 "The simplegeneric module lets you define simple single-dispatch generic
7901 functions, akin to Python’s built-in generic functions like @code{len()},
7902 @code{iter()} and so on. However, instead of using specially-named methods,
7903 these generic functions use simple lookup tables, akin to those used by
7904 e.g. @code{pickle.dump()} and other generic functions found in the Python
7906 (license license:zpl2.1)))
7908 (define-public python2-simplegeneric
7909 (package-with-python2 python-simplegeneric))
7911 (define-public python-ipython-genutils
7912 ;; TODO: This package is retired, check if can be removed, see description.
7914 (name "python-ipython-genutils")
7919 (uri (pypi-uri "ipython_genutils" version))
7921 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
7922 (build-system python-build-system)
7923 (arguments `(#:tests? #f)) ; no tests
7924 (home-page "https://ipython.org")
7925 (synopsis "Vestigial utilities from IPython")
7927 "This package provides retired utilities from IPython. No packages
7928 outside IPython/Jupyter should depend on it.
7930 This package shouldn't exist. It contains some common utilities shared by
7931 Jupyter and IPython projects during The Big Split. As soon as possible, those
7932 packages will remove their dependency on this, and this package will go
7934 (license license:bsd-3)))
7936 (define-public python2-ipython-genutils
7937 (package-with-python2 python-ipython-genutils))
7939 (define-public python-ipyparallel
7941 (name "python-ipyparallel")
7946 (uri (pypi-uri "ipyparallel" version))
7949 "0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn"))))
7950 (build-system python-build-system)
7952 `(#:tests? #f ; RuntimeError: IO Loop failed to start
7954 (modify-phases %standard-phases
7955 (add-before 'check 'prepare-for-tests
7957 (setenv "HOME" (getcwd))
7960 `(("python-dateutil" ,python-dateutil)
7961 ("python-decorator" ,python-decorator)
7962 ("python-ipykernel" ,python-ipykernel)
7963 ("python-ipython" ,python-ipython)
7964 ("python-ipython-genutils" ,python-ipython-genutils)
7965 ("python-jupyter-client" ,python-jupyter-client)
7966 ("python-pyzmq" ,python-pyzmq)
7967 ("python-tornado" ,python-tornado)
7968 ("python-traitlets" ,python-traitlets)))
7970 `(("python-ipython" ,python-ipython)
7971 ("python-mock" ,python-mock)
7972 ("python-nose" ,python-nose)
7973 ("python-pytest" ,python-pytest)
7974 ("python-pytest-cov" ,python-pytest-cov)
7975 ("python-testpath" ,python-testpath)))
7976 (home-page "https://ipython.org/")
7977 (synopsis "Interactive Parallel Computing with IPython")
7979 "@code{ipyparallel} is a Python package and collection of CLI scripts for
7980 controlling clusters for Jupyter. @code{ipyparallel} contains the following
7983 @item ipcluster - start/stop a cluster
7984 @item ipcontroller - start a scheduler
7985 @item ipengine - start an engine
7987 (license license:bsd-3)))
7989 (define-public python-ipython-cluster-helper
7991 (name "python-ipython-cluster-helper")
7996 (uri (pypi-uri "ipython-cluster-helper" version))
7999 "1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj"))
8000 (modules '((guix build utils)))
8002 '(begin (substitute* "requirements.txt"
8003 (("ipython.*") "ipython\n"))
8005 (build-system python-build-system)
8007 `(#:tests? #f ; Test suite can't find IPython.
8009 (modify-phases %standard-phases
8011 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
8014 (setenv "HOME" (getcwd))
8015 (add-installed-pythonpath inputs outputs)
8016 (invoke "python" "example/example.py" "--local"))
8019 `(("python-ipyparallel" ,python-ipyparallel)
8020 ("python-ipython" ,python-ipython)
8021 ("python-netifaces" ,python-netifaces)
8022 ("python-pyzmq" ,python-pyzmq)
8023 ("python-setuptools" ,python-setuptools)
8024 ("python-six" ,python-six)))
8025 (home-page "https://github.com/roryk/ipython-cluster-helper")
8027 "Simplify IPython cluster start up and use for multiple schedulers")
8029 "@code{ipython-cluster-helper} creates a throwaway parallel IPython
8030 profile, launches a cluster and returns a view. On program exit it shuts the
8031 cluster down and deletes the throwaway profile.")
8032 (license license:expat)))
8034 (define-public python-traitlets
8036 (name "python-traitlets")
8041 (uri (pypi-uri "traitlets" version))
8044 "1xsrwgivpkxlbr4dfndfsi098s29yqgswgjc1qqn69yxklvfw8yh"))))
8045 (build-system python-build-system)
8048 (modify-phases %standard-phases
8049 (replace 'check (lambda _ (invoke "pytest" "-vv" "traitlets"))))))
8051 `(("python-ipython-genutils" ,python-ipython-genutils)
8052 ("python-decorator" ,python-decorator)
8053 ("python-six" ,python-six)))
8055 `(("python-pytest" ,python-pytest)))
8056 (properties `((python2-variant . ,(delay python2-traitlets))))
8057 (home-page "https://ipython.org")
8058 (synopsis "Configuration system for Python applications")
8060 "Traitlets is a framework that lets Python classes have attributes with
8061 type checking, dynamically calculated default values, and ‘on change’
8062 callbacks. The package also includes a mechanism to use traitlets for
8063 configuration, loading values from files or from command line arguments. This
8064 is a distinct layer on top of traitlets, so you can use traitlets in your code
8065 without using the configuration machinery.")
8066 (license license:bsd-3)))
8068 (define-public python2-traitlets
8069 (let ((traitlets (package-with-python2 (strip-python2-variant python-traitlets))))
8070 (package/inherit traitlets
8072 `(("python2-enum34" ,python2-enum34)
8073 ,@(package-propagated-inputs traitlets))))))
8075 (define-public python-jupyter-core
8077 (name "python-jupyter-core")
8082 (uri (string-append (pypi-uri "jupyter_core" version)))
8085 "1d12j5hkff0xiax87pnhmzbsph3jqqzhz16h8xld7z2y4armq0kr"))))
8086 (build-system python-build-system)
8089 (modify-phases %standard-phases
8091 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
8093 ; Some tests write to $HOME.
8094 (setenv "HOME" "/tmp")
8095 ; Some tests load the installed package.
8096 (add-installed-pythonpath inputs outputs)
8097 (invoke "pytest" "-vv"))))
8098 (add-after 'unpack 'patch-testsuite
8100 ;; test_not_on_path() and test_path_priority() try to run a test
8101 ;; that loads jupyter_core, so we need PYTHONPATH
8102 (substitute* "jupyter_core/tests/test_command.py"
8103 (("env = \\{'PATH': ''\\}")
8104 "env = {'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}")
8105 (("env = \\{'PATH': str\\(b\\)\\}")
8106 "env = {'PATH': str(b), 'PYTHONPATH': os.environ['PYTHONPATH']}"))
8108 ;; Migration is running whenever etc/jupyter exists, but the
8109 ;; Guix-managed directory will never contain any migratable IPython
8110 ;; config files and cannot be written to anyway, so just pretend we
8111 ;; already did that.
8112 (add-after 'install 'disable-migration
8113 (lambda* (#:key outputs #:allow-other-keys)
8114 (mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
8117 (assoc-ref outputs "out")
8118 "/etc/jupyter/migrated")))))))
8120 `(("python-traitlets" ,python-traitlets)))
8122 `(("python-six" ,python-six)
8123 ("python-pytest" ,python-pytest)))
8124 ;; This package provides the `jupyter` binary and thus also exports the
8126 (native-search-paths
8127 (list (search-path-specification
8128 (variable "JUPYTER_CONFIG_DIR")
8129 (files '("etc/jupyter")))
8130 (search-path-specification
8131 (variable "JUPYTER_PATH")
8132 (files '("share/jupyter")))))
8133 (home-page "https://jupyter.org/")
8134 (synopsis "Jupyter base package")
8136 "Jupyter core is the base package on which Jupyter projects rely.")
8137 (license license:bsd-3)))
8139 (define-public python-jupyter-client
8141 (name "python-jupyter-client")
8146 (uri (pypi-uri "jupyter_client" version))
8149 "10p7fcgvv9hvz9zical9wk68ks5ssak2ykbzx65wm1k1hk8a3g64"))))
8150 (build-system python-build-system)
8153 (modify-phases %standard-phases
8154 (add-after 'unpack 'set-tool-file-names
8155 (lambda* (#:key inputs #:allow-other-keys)
8156 (let ((iproute (assoc-ref inputs "iproute")))
8157 (substitute* "jupyter_client/localinterfaces.py"
8159 (string-append "'" iproute "/sbin/ip'")))
8162 (lambda* (#:key tests? #:allow-other-keys)
8164 ;; Some tests try to write to $HOME.
8165 (setenv "HOME" "/tmp")
8166 (invoke "pytest" "-vv")))))))
8168 `(("iproute" ,iproute)))
8170 `(("python-dateutil" ,python-dateutil)
8171 ("python-jupyter-core" ,python-jupyter-core)
8172 ("python-pyzmq" ,python-pyzmq)
8173 ("python-tornado" ,python-tornado-6)
8174 ("python-traitlets" ,python-traitlets)))
8176 `(("python-pytest" ,python-pytest)
8177 ("python-pytest-asyncio" ,python-pytest-asyncio)
8178 ("python-pytest-timeout" ,python-pytest-timeout)
8179 ("python-async-generator" ,python-async-generator)
8180 ("python-mock" ,python-mock)
8181 ("python-msgpack" ,python-msgpack)
8182 ("python-ipython" ,python-ipython)
8183 ("python-ipykernel" ,python-ipykernel-bootstrap)))
8184 (home-page "https://jupyter.org/")
8185 (synopsis "Jupyter protocol implementation and client libraries")
8187 "The @code{jupyter_client} package contains the reference implementation
8188 of the Jupyter protocol. It also provides client and kernel management APIs
8189 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
8190 installing @code{kernelspec}s for use with Jupyter frontends.")
8191 (license license:bsd-3)))
8193 ;; Bootstrap variant of jupyter-client, which breaks the loop between ipykernel
8194 ;; and jupyter-client by removing the former from its native-inputs and
8196 (define-public python-jupyter-client-bootstrap
8197 (let ((base python-jupyter-client))
8201 (name "python-jupyter-client-bootstrap")
8204 ,@(package-arguments base)))
8205 (native-inputs `())))))
8207 (define-public python-ipykernel
8209 (name "python-ipykernel")
8214 (uri (pypi-uri "ipykernel" version))
8216 (base32 "02f55cjkp5q64x7ikjxznbxwjpkdmfy237b9kg7dk1pxmzvy90m6"))))
8217 (build-system python-build-system)
8220 (modify-phases %standard-phases
8223 (setenv "HOME" "/tmp")
8224 (invoke "pytest" "-v")
8226 (add-after 'install 'set-python-file-name
8227 (lambda* (#:key outputs #:allow-other-keys)
8228 ;; Record the absolute file name of the 'python' executable in
8230 (let ((out (assoc-ref outputs "out")))
8231 (substitute* (string-append out "/share/jupyter"
8232 "/kernels/python3/kernel.json")
8234 (string-append "\"" (which "python") "\"")))
8237 `(("python-ipython" ,python-ipython)
8238 ("python-tornado" ,python-tornado-6)
8239 ("python-traitlets" ,python-traitlets)
8240 ;; imported at runtime during connect
8241 ("python-jupyter-client" ,python-jupyter-client)))
8243 `(("python-flaky" ,python-flaky)
8244 ("python-nose" ,python-nose)
8245 ("python-pytest" ,python-pytest)))
8246 (home-page "https://ipython.org")
8247 (synopsis "IPython Kernel for Jupyter")
8249 "This package provides the IPython kernel for Jupyter.")
8250 (license license:bsd-3)))
8252 ;; Bootstrap variant of ipykernel, which uses the bootstrap jupyter-client to
8253 ;; break the cycle between ipykernel and jupyter-client.
8254 (define-public python-ipykernel-bootstrap
8255 (let ((parent python-ipykernel))
8259 (name "python-ipykernel-bootstrap")
8261 `(("python-jupyter-client" ,python-jupyter-client-bootstrap)
8262 ,@(fold alist-delete (package-propagated-inputs parent)
8263 '("python-jupyter-client"))))))))
8265 (define-public python-pari-jupyter
8267 (name "python-pari-jupyter")
8272 (uri (pypi-uri "pari_jupyter" version))
8275 "1yash0p422nnin7z58b99d0p23nx79f5m0mainc9hsjg72jhdhr6"))))
8276 (build-system python-build-system)
8278 `(("python-ipykernel" ,python-ipykernel)))
8280 `(("pari-gp" ,pari-gp)
8281 ("readline" ,readline)))
8283 `(#:tests? #f)) ; no test suite
8285 "https://github.com/jdemeyer/pari_jupyter")
8286 (synopsis "A Jupyter kernel for PARI/GP")
8287 (description "The package provides a PARI/GP kernel for Jupyter.")
8288 (license license:gpl3+)))
8290 (define-public python-backcall
8292 (name "python-backcall")
8297 (uri (pypi-uri "backcall" version))
8300 "07jy4562lvnhkk6kfr3cphmizy88anlhmbwb8kdzlz2ypqkvzgaw"))))
8301 (build-system python-build-system)
8302 (home-page "https://github.com/takluyver/backcall/")
8303 (synopsis "Specifications for callback functions passed in to an API")
8305 "If your code lets other people supply callback functions, it's important
8306 to specify the function signature you expect, and check that functions support
8307 that. Adding extra parameters later would break other peoples code unless
8308 you're careful. The @code{backcall} package provides a way of specifying the
8309 callback signature using a prototype function.")
8310 (license license:bsd-3)))
8312 (define-public python-ipython
8314 (name "python-ipython")
8319 (uri (pypi-uri "ipython" version ".tar.gz"))
8321 (base32 "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz"))))
8322 (build-system python-build-system)
8324 `(("python-backcall" ,python-backcall)
8325 ("python-pyzmq" ,python-pyzmq)
8326 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
8327 ("python-terminado" ,python-terminado)
8328 ("python-matplotlib" ,python-matplotlib)
8329 ("python-numpy" ,python-numpy)
8330 ("python-numpydoc" ,python-numpydoc)
8331 ("python-jedi" ,python-jedi)
8332 ("python-jinja2" ,python-jinja2)
8333 ("python-mistune" ,python-mistune)
8334 ("python-pexpect" ,python-pexpect)
8335 ("python-pickleshare" ,python-pickleshare)
8336 ("python-simplegeneric" ,python-simplegeneric)
8337 ("python-jsonschema" ,python-jsonschema)
8338 ("python-traitlets" ,python-traitlets)
8339 ("python-nbformat" ,python-nbformat)
8340 ("python-pygments" ,python-pygments)))
8342 `(("readline" ,readline)
8345 `(("graphviz" ,graphviz)
8346 ("pkg-config" ,pkg-config)
8347 ("python-requests" ,python-requests) ;; for tests
8348 ("python-testpath" ,python-testpath)
8349 ("python-nose" ,python-nose)))
8352 (modify-phases %standard-phases
8353 (add-after 'unpack 'make-docs-reproducible
8355 (substitute* "IPython/sphinxext/ipython_directive.py"
8356 ((".*import datetime") "")
8357 ((".*datetime.datetime.now\\(\\)") "")
8358 (("%timeit") "# %timeit"))
8360 ;; Tests can only be run after the library has been installed and not
8361 ;; within the source directory.
8363 (add-after 'install 'check
8364 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
8367 ;; Make installed package available for running the tests
8368 (add-installed-pythonpath inputs outputs)
8369 (setenv "HOME" "/tmp/") ;; required by a test
8370 ;; We only test the core because one of the other tests
8371 ;; tries to import ipykernel.
8372 (invoke "python" "IPython/testing/iptest.py"
8373 "-v" "IPython/core/tests"))
8375 (add-before 'check 'fix-tests
8376 (lambda* (#:key inputs #:allow-other-keys)
8377 (substitute* "./IPython/utils/_process_posix.py"
8378 (("/usr/bin/env', 'which") (which "which")))
8379 (substitute* "./IPython/core/tests/test_inputtransformer.py"
8380 (("#!/usr/bin/env python")
8381 (string-append "#!" (which "python"))))
8382 ;; This test introduces a circular dependency on ipykernel
8383 ;; (which depends on ipython).
8384 (delete-file "IPython/core/tests/test_display.py")
8385 ;; AttributeError: module 'IPython.core' has no attribute 'formatters'
8386 (delete-file "IPython/core/tests/test_interactiveshell.py")
8388 (home-page "https://ipython.org")
8389 (synopsis "IPython is a tool for interactive computing in Python")
8391 "IPython provides a rich architecture for interactive computing with:
8392 Powerful interactive shells, a browser-based notebook, support for interactive
8393 data visualization, embeddable interpreters and tools for parallel
8395 (license license:bsd-3)))
8397 (define-public python-ipython-documentation
8399 (inherit python-ipython)
8400 (name "python-ipython-documentation")
8401 (version (package-version python-ipython))
8404 (modify-phases %standard-phases
8408 (lambda* (#:key outputs #:allow-other-keys)
8409 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
8410 (doc (string-append data "/doc/" ,name "-" ,version))
8411 (html (string-append doc "/html"))
8412 (man1 (string-append data "/man/man1"))
8413 (info (string-append data "/info"))
8414 (examples (string-append doc "/examples"))
8415 (python-arg (string-append "PYTHON=" (which "python"))))
8416 (setenv "LANG" "en_US.utf8")
8417 (with-directory-excursion "docs"
8418 ;; FIXME: pdf fails to build
8419 ;;(system* "make" "pdf" "PAPER=a4")
8420 (system* "make" python-arg "html")
8421 ;; FIXME: the generated texi file contains ^@^@, which trips
8423 ;; (system* "make" python-arg "info")
8425 (copy-recursively "docs/man" man1)
8426 (copy-recursively "examples" examples)
8427 (copy-recursively "docs/build/html" html)
8428 ;; (copy-file "docs/build/latex/ipython.pdf"
8429 ;; (string-append doc "/ipython.pdf"))
8431 ;; (copy-file "docs/build/texinfo/ipython.info"
8432 ;; (string-append info "/ipython.info"))
8433 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))
8436 `(("python-ipython" ,python-ipython)
8437 ("python-ipykernel" ,python-ipykernel)))
8439 `(("python-sphinx" ,python-sphinx)
8440 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
8441 ;; FIXME: It's possible that a smaller union would work just as well.
8442 ("texlive" ,(texlive-union (list texlive-amsfonts/patched
8444 texlive-generic-ifxetex
8446 texlive-latex-capt-of
8448 texlive-latex-environ
8449 texlive-latex-eqparbox
8450 texlive-latex-etoolbox
8451 texlive-latex-expdlist
8452 texlive-latex-fancyhdr
8453 texlive-latex-fancyvrb
8454 texlive-latex-fncychap
8456 texlive-latex-framed
8457 texlive-latex-geometry
8458 texlive-latex-graphics
8459 texlive-latex-hyperref
8460 texlive-latex-mdwtools
8461 texlive-latex-multirow
8462 texlive-latex-needspace
8463 texlive-latex-oberdiek
8464 texlive-latex-parskip
8465 texlive-latex-preview
8466 texlive-latex-tabulary
8467 texlive-latex-threeparttable
8468 texlive-latex-titlesec
8469 texlive-latex-trimspaces
8471 texlive-latex-upquote
8473 texlive-latex-varwidth
8474 texlive-latex-wrapfig)))
8475 ("texinfo" ,texinfo)))))
8477 (define-public python-urwid
8479 (name "python-urwid")
8484 (uri (pypi-uri "urwid" version))
8487 "1bky2bra6673xx8jy0826znw6cmxs89wcwwzda8d025j3jffx2sq"))))
8488 (build-system python-build-system)
8489 (home-page "http://urwid.org")
8490 (synopsis "Console user interface library for Python")
8492 "Urwid is a curses-based UI/widget library for Python. It includes many
8493 features useful for text console applications.")
8494 (properties `((python2-variant . ,(delay python2-urwid))))
8495 (license license:lgpl2.1+)))
8497 (define-public python2-urwid
8498 (let ((base (package-with-python2
8499 (strip-python2-variant python-urwid))))
8506 (uri (pypi-uri "urwid" version))
8509 "11ndnhxd41m13darf5s0c6bafdpkzq1l6mfb04wbzdmyc1hg75h8")))))))
8511 (define-public python-urwid-readline
8513 (name "python-urwid-readline")
8519 (url "https://github.com/rr-/urwid_readline")
8521 (file-name (git-file-name name version))
8524 "0sq5qgxj7gcfww3ww7idr87isnmp0hi36n241b3q395x1zafdv22"))))
8525 (build-system python-build-system)
8528 (modify-phases %standard-phases
8530 (lambda* (#:key tests? #:allow-other-keys)
8532 (invoke "python" "-m" "pytest"))
8535 `(("python-urwid" ,python-urwid)))
8537 `(("python-pytest" ,python-pytest)))
8538 (home-page "https://github.com/rr-/urwid_readline")
8539 (synopsis "Text input widget for urwid that supports readline shortcuts")
8541 "This package provides a textbox edit widget for @code{python-urwid} that
8542 supports @code{readline} shortcuts.")
8543 (license license:expat)))
8545 (define-public python-textdistance
8547 (name "python-textdistance")
8551 ;; There are no tests in the PyPI tarball.
8554 (url "https://github.com/life4/textdistance")
8555 (commit (string-append "v." version))))
8556 (file-name (git-file-name name version))
8558 (base32 "1g17i356fnny4k6hjr2ayy9k77jbvd6zzmngws2kbrnvhss1wgwf"))))
8559 (build-system python-build-system)
8561 `(#:test-target "pytest"
8563 (modify-phases %standard-phases
8564 (add-after 'unpack 'delete-external-test
8566 ;; All tests in this file require external libraries.
8567 (delete-file "tests/test_external.py")
8570 `(("python-hypothesis" ,python-hypothesis)
8571 ("python-isort" ,python-isort)
8572 ("python-numpy" ,python-numpy)
8573 ("python-pytest" ,python-pytest)
8574 ("python-pytest-runner" ,python-pytest-runner)
8575 ("python-tabulate" ,python-tabulate)))
8576 (home-page "https://github.com/life4/textdistance")
8577 (synopsis "Compute distance between the two texts")
8578 (description "@code{textdistance} is a pure Python library for comparing
8579 distance between two or more sequences by many algorithms.")
8580 (license license:expat)))
8582 (define-public python-urwidtrees
8584 (name "python-urwidtrees")
8589 ;; package author intends on distributing via github rather than pypi:
8590 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
8592 (url "https://github.com/pazz/urwidtrees")
8594 (file-name (git-file-name name version))
8597 "1n1kpidvkdnsqyb82vlvk78gmly96kh8351lqxn2pzgwwns6fml2"))))
8598 (build-system python-build-system)
8600 '(#:use-setuptools? #f
8601 #:tests? #f)) ; no tests
8602 (propagated-inputs `(("python-urwid" ,python-urwid)))
8603 (home-page "https://github.com/pazz/urwidtrees")
8604 (synopsis "Tree widgets for urwid")
8605 (description "Urwidtrees is a Widget Container API for the @code{urwid}
8606 toolkit. Use it to build trees of widgets.")
8607 (license license:gpl3+)))
8609 (define-public python2-urwidtrees
8610 (package-with-python2 python-urwidtrees))
8612 (define-public python-ua-parser
8614 (name "python-ua-parser")
8619 (uri (pypi-uri "ua-parser" version))
8622 "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp"))))
8623 (build-system python-build-system)
8625 `(#:tests? #f)) ;no test suite in release
8627 `(("python-pyyaml" ,python-pyyaml)))
8628 (home-page "https://github.com/ua-parser/uap-python")
8629 (synopsis "User agent parser")
8631 "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
8632 (license license:asl2.0)))
8634 (define-public python2-ua-parser
8635 (package-with-python2 python-ua-parser))
8637 (define-public python-user-agents
8639 (name "python-user-agents")
8644 (uri (pypi-uri "user-agents" version))
8647 "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4"))))
8648 (build-system python-build-system)
8650 `(#:tests? #f)) ;missing devices.json test file in release
8652 `(("python-ua-parser" ,python-ua-parser)))
8653 (home-page "https://github.com/selwin/python-user-agents")
8654 (synopsis "User Agent strings parsing library")
8656 "A library to identify devices (phones, tablets) and their capabilities by
8657 parsing (browser/HTTP) user agent strings.")
8658 (license license:expat)))
8660 (define-public python2-user-agents
8661 (package-with-python2 python-user-agents))
8663 (define-public python-dbus
8665 (name "python-dbus")
8670 (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
8671 "dbus-python-" version ".tar.gz"))
8673 (base32 "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi"))))
8674 (build-system gnu-build-system)
8676 `(("pkg-config" ,pkg-config)))
8678 `(("python" ,python-wrapper)
8679 ("dbus-glib" ,dbus-glib)))
8680 (synopsis "Python bindings for D-bus")
8681 (description "python-dbus provides bindings for libdbus, the reference
8682 implementation of D-Bus.")
8683 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
8684 (license license:expat)))
8686 (define-public python2-dbus
8687 (package/inherit python-dbus
8688 (name "python2-dbus")
8689 (inputs `(("python" ,python-2)
8690 ,@(alist-delete "python"
8691 (package-inputs python-dbus)
8694 (define-public python-notify2
8696 (name "python-notify2")
8701 (uri (pypi-uri "notify2" version))
8704 "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
8705 (build-system python-build-system)
8706 (arguments `(#:tests? #f)) ; tests depend on system state
8708 `(("python-dbus" ,python-dbus)))
8709 (home-page "https://bitbucket.org/takluyver/pynotify2")
8710 (synopsis "Python interface to D-Bus notifications")
8712 "Pynotify2 provides a Python interface for sending D-Bus notifications.
8713 It is a reimplementation of pynotify in pure Python, and an alternative to
8714 the GObject Introspection bindings to libnotify for non-GTK applications.")
8715 (license (list license:bsd-2
8716 license:lgpl2.1+))))
8718 (define-public python2-notify2
8719 (package-with-python2 python-notify2))
8721 ;; beautifulsoup4 has a totally different namespace than 3.x,
8722 ;; and pypi seems to put it under its own name, so I guess we should too
8723 (define-public python-beautifulsoup4
8725 (name "python-beautifulsoup4")
8730 (uri (pypi-uri "beautifulsoup4" version))
8733 "09gbd49mwz86k572r1231x2rdp82p42zlnw0bz9b9mfi58r9wwl4"))))
8734 (build-system python-build-system)
8737 (modify-phases %standard-phases
8738 ;; The Python 2 source is the definitive source of beautifulsoup4. We
8739 ;; must use this conversion script when building with Python 3. The
8740 ;; conversion script also runs the tests.
8741 ;; For more information, see the file 'convert-py3k' in the source
8744 (lambda _ (invoke "./convert-py3k"))))))
8746 `(("python-soupsieve" ,python-soupsieve)))
8748 "https://www.crummy.com/software/BeautifulSoup/bs4/")
8750 "Python screen-scraping library")
8752 "Beautiful Soup is a Python library designed for rapidly setting up
8753 screen-scraping projects. It offers Pythonic idioms for navigating,
8754 searching, and modifying a parse tree, providing a toolkit for
8755 dissecting a document and extracting what you need. It automatically
8756 converts incoming documents to Unicode and outgoing documents to UTF-8.")
8757 (license license:expat)
8758 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
8760 (define-public python2-beautifulsoup4
8761 (let ((base (package-with-python2
8762 (strip-python2-variant python-beautifulsoup4))))
8763 (package/inherit base
8764 (arguments `(#:python ,python-2)))))
8766 (define-public python-soupsieve
8768 (name "python-soupsieve")
8773 (uri (pypi-uri "soupsieve" version))
8776 "1k70gpn2d3vgdyxbdy536dgm4kchcraxz6lmgsfg3324iy2789q5"))))
8777 (build-system python-build-system)
8778 (arguments `(#:tests? #f))
8779 ;;XXX: 2 tests fail currently despite claming they were to be
8780 ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
8781 ;;don't want to create a circular dependency.
8782 (home-page "https://github.com/facelessuser/soupsieve")
8783 (synopsis "CSS selector library")
8785 "Soup Sieve is a CSS selector library designed to be used with Beautiful
8786 Soup 4. It aims to provide selecting, matching, and filtering using modern
8787 CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
8788 specifications up through the latest CSS level 4 drafts and beyond (though
8789 some are not yet implemented).")
8790 (properties `((python2-variant . ,(delay python2-soupsieve))))
8791 (license license:expat)))
8793 ;; This is the last version that supports python-2
8794 (define-public python2-soupsieve
8795 (let ((base (package-with-python2 (strip-python2-variant python-soupsieve))))
8802 (uri (pypi-uri "soupsieve" version))
8805 "1apgqxngi1216h1cyvrvj9gy3wf45mh1lz4n76j26jf3k36bm1br"))))
8807 `(("python2-backports-functools-lru-cache"
8808 ,python2-backports-functools-lru-cache)
8809 ,@(package-propagated-inputs base))))))
8811 (define-public python-netifaces
8813 (name "python-netifaces")
8818 (uri (pypi-uri "netifaces" version))
8821 "1wxby874kcr3pp4ygzk5aiarbzhg1yi093d56s1qg4k2s7yrzvid"))))
8822 (build-system python-build-system)
8823 (home-page "https://github.com/al45tair/netifaces")
8825 "Python module for portable network interface information")
8827 "Netifaces is a Python module providing information on network
8828 interfaces in an easy and portable manner.")
8829 (license license:expat)))
8831 (define-public python2-netifaces
8832 (package-with-python2 python-netifaces))
8834 (define-public python-networkx
8836 (name "python-networkx")
8841 (uri (pypi-uri "networkx" version))
8843 (base32 "1fqrq7gc0nn4rd4zqibw96cap75vb5nlixapkajwawp71jaz21i3"))))
8844 (build-system python-build-system)
8846 '(#:phases (modify-phases %standard-phases
8848 (lambda* (#:key tests? #:allow-other-keys)
8850 (invoke "pytest" "-vv" "--pyargs" "networkx")
8851 (format #t "test suite not run~%"))
8853 ;; python-decorator is needed at runtime.
8855 `(("python-decorator" ,python-decorator)))
8857 `(("python-pytest" ,python-pytest)))
8858 (home-page "https://networkx.github.io/")
8859 (synopsis "Python module for creating and manipulating graphs and networks")
8861 "NetworkX is a Python package for the creation, manipulation, and study
8862 of the structure, dynamics, and functions of complex networks.")
8863 (properties `((python2-variant . ,(delay python2-networkx))))
8864 (license license:bsd-3)))
8866 ;; NetworkX 2.2 is the last version with support for Python 2.
8867 (define-public python2-networkx
8868 (let ((base (package-with-python2 (strip-python2-variant python-networkx))))
8874 (uri (pypi-uri "networkx" version ".zip"))
8877 "12swxb15299v9vqjsq4z8rgh5sdhvpx497xwnhpnb0gynrx6zra5"))))
8879 `(#:python ,python-2))
8881 `(("python-nose" ,python2-nose)
8882 ("unzip" ,unzip))))))
8884 (define-public python-datrie
8886 (name "python-datrie")
8891 (uri (pypi-uri "datrie" version))
8894 "0pbn32flkrpjiwfcknmj6398qa81ba783kbcvwan3kym73v0hnsj"))))
8895 (build-system python-build-system)
8897 `(("python-cython" ,python-cython)
8898 ("python-hypothesis" ,python-hypothesis)
8899 ("python-pytest" ,python-pytest)
8900 ("python-pytest-runner" ,python-pytest-runner)))
8901 (home-page "https://github.com/kmike/datrie")
8902 (synopsis "Fast, efficiently stored trie for Python")
8904 "This package provides a fast, efficiently stored trie implementation for
8906 (license license:lgpl2.1+)))
8908 (define-public python-amply
8910 (name "python-amply")
8915 (uri (pypi-uri "amply" version))
8918 "0f1db9zp0rsfzxvaz55xwh8h5rfdgr9a2a715g06ic8nknsdq4nb"))))
8919 (build-system python-build-system)
8921 `(("python-docutils" ,python-docutils)
8922 ("python-pyparsing" ,python-pyparsing)))
8924 `(("python-setuptools-scm" ,python-setuptools-scm)))
8925 (home-page "https://github.com/willu47/amply")
8926 (synopsis "Load and manipulate AMPL/GLPK data as Python data structures")
8928 "Amply allows you to load and manipulate AMPL/GLPK data as Python data
8930 (license license:epl1.0)))
8932 (define-public python-pulp
8934 (name "python-pulp")
8939 (uri (pypi-uri "PuLP" version))
8942 "1dammrg0f1v0r028i3rpxbf2bsyxmjq0q6ihb4x2wsdki44z3bxj"))))
8943 (build-system python-build-system)
8945 `(("python-amply" ,python-amply)))
8946 (home-page "https://github.com/coin-or/pulp")
8947 (synopsis "Linear Programming modeler")
8949 "PuLP is a Linear Programming modeler written in Python. PuLP can
8950 generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to
8951 solve linear problems.")
8952 (license license:expat)))
8954 (define-public python-toposort
8956 (name "python-toposort")
8961 (uri (pypi-uri "toposort" version))
8964 "1b2hppzjg3p006qya3yfdnp76dwq8frl97lypdam0kw4xxb8yhm7"))))
8965 (build-system python-build-system)
8966 (home-page "https://gitlab.com/ericvsmith/toposort")
8967 (synopsis "Topological sort algorithm")
8969 "This package provides an implementation of a topological sort
8971 (license license:asl2.0)))
8973 (define-public python-three-merge
8975 (name "python-three-merge")
8979 ;; There are no tests in the PyPI tarball.
8982 (url "https://github.com/spyder-ide/three-merge")
8983 (commit (string-append "v" version))))
8984 (file-name (git-file-name name version))
8986 (base32 "1fw28swh6jq4myr09j7gv68l241b8vwg470ak5xv0x4xwh2a1m86"))))
8987 (build-system python-build-system)
8989 `(#:test-target "pytest"))
8991 `(("python-diff-match-patch" ,python-diff-match-patch)))
8993 `(("python-flaky" ,python-flaky)
8994 ("python-pytest" ,python-pytest)
8995 ("python-pytest-cov" ,python-pytest-cov)
8996 ("python-pytest-runner" ,python-pytest-runner)
8997 ("python-pytest-timeout" ,python-pytest-timeout)))
8998 (home-page "https://github.com/spyder-ide/three-merge")
8999 (synopsis "Library for merging two strings with respect to a base one")
9001 "This package provides a Python library to perform a 3-way merge between
9002 strings, based on @code{diff-match-patch}. This library performs merges at a
9003 character level, as opposed to most VCS systems, which opt for a line-based
9005 (license license:expat)))
9007 (define-public snakemake
9014 (uri (pypi-uri "snakemake" version))
9016 (base32 "13013gdavwvyj1qr9xfi9fpwhb3km8c3z53bja5b7ic3sb2z6dgz"))))
9017 (build-system python-build-system)
9019 ;; TODO: Package missing test dependencies.
9022 (modify-phases %standard-phases
9023 ;; For cluster execution Snakemake will call Python. Since there is
9024 ;; no suitable PYTHONPATH set, cluster execution will fail. We fix
9025 ;; this by calling the snakemake wrapper instead.
9026 (add-after 'unpack 'call-wrapper-not-wrapped-snakemake
9027 (lambda* (#:key outputs #:allow-other-keys)
9028 (substitute* "snakemake/executors/__init__.py"
9029 (("\\{sys.executable\\} -m snakemake")
9030 (string-append (assoc-ref outputs "out")
9034 `(("python-appdirs" ,python-appdirs)
9035 ("python-configargparse" ,python-configargparse)
9036 ("python-datrie" ,python-datrie)
9037 ("python-docutils" ,python-docutils)
9038 ("python-gitpython" ,python-gitpython)
9039 ("python-jinja2" ,python-jinja2)
9040 ("python-jsonschema" ,python-jsonschema)
9041 ("python-nbformat" ,python-nbformat)
9042 ("python-networkx" ,python-networkx)
9043 ("python-psutil" ,python-psutil)
9044 ("python-pulp" ,python-pulp)
9045 ("python-pyyaml" ,python-pyyaml)
9046 ("python-ratelimiter" ,python-ratelimiter)
9047 ("python-requests" ,python-requests)
9048 ("python-toposort" ,python-toposort)
9049 ("python-wrapt" ,python-wrapt)))
9050 (home-page "https://snakemake.readthedocs.io")
9051 (synopsis "Python-based execution environment for make-like workflows")
9053 "Snakemake aims to reduce the complexity of creating workflows by
9054 providing a clean and modern domain specific specification language (DSL) in
9055 Python style, together with a fast and comfortable execution environment.")
9056 (license license:expat)))
9058 (define-public python-pyqrcode
9060 (name "python-pyqrcode")
9065 (uri (pypi-uri "PyQRCode" version))
9068 "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
9069 (build-system python-build-system)
9071 "https://github.com/mnooner256/pyqrcode")
9072 (synopsis "QR code generator")
9074 "Pyqrcode is a QR code generator written purely in Python with
9075 SVG, EPS, PNG and terminal output.")
9076 (license license:bsd-3)))
9078 (define-public python-seaborn
9080 (name "python-seaborn")
9085 (uri (pypi-uri "seaborn" version))
9087 (base32 "1b81p9s6li3b606ivgbynrh102fclwlw74m8qxzsii9pv6p8xrs4"))
9088 (patches (search-patches "python-seaborn-kde-test.patch"))))
9089 (build-system python-build-system)
9092 (modify-phases %standard-phases
9093 (add-before 'check 'start-xserver
9095 ;; There must be a running X server and make check doesn't
9096 ;; start one. Therefore we must do it.
9097 (system "Xvfb :1 &")
9098 (setenv "DISPLAY" ":1")))
9100 (lambda* (#:key tests? #:allow-other-keys)
9102 (invoke "pytest" "seaborn")))))))
9104 `(("python-pandas" ,python-pandas)
9105 ("python-matplotlib" ,python-matplotlib)
9106 ("python-numpy" ,python-numpy)
9107 ("python-scipy" ,python-scipy)))
9109 `(("python-pytest" ,python-pytest)
9110 ("xorg-server" ,xorg-server-for-tests)))
9111 (home-page "https://seaborn.pydata.org/")
9112 (synopsis "Statistical data visualization")
9114 "Seaborn is a library for making attractive and informative statistical
9115 graphics in Python. It is built on top of matplotlib and tightly integrated
9116 with the PyData stack, including support for numpy and pandas data structures
9117 and statistical routines from scipy and statsmodels.")
9118 (properties `((python2-variant . ,(delay python2-seaborn))))
9119 (license license:bsd-3)))
9121 ;; 0.9.1 is the last release with support for Python 2.
9122 (define-public python2-seaborn
9123 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
9129 (uri (pypi-uri "seaborn" version))
9132 "1bjnshjz4d6z3vrwfwall1a3yh8h3a1h47c3fg7458x9426alcys")))))))
9134 (define-public python-mpmath
9136 (name "python-mpmath")
9140 (uri (pypi-uri "mpmath" version))
9141 (file-name (git-file-name name version))
9144 "1xlrcja213jpfhw25q1jl5pl10w1a2cc68x1c4mkicxsbzhan5zw"))))
9145 (build-system python-build-system)
9147 `(("python-pytest" ,python-pytest)))
9150 (modify-phases %standard-phases
9153 (invoke "python" "mpmath/tests/runtests.py" "-local"))))))
9154 (home-page "https://mpmath.org")
9155 (synopsis "Arbitrary-precision floating-point arithmetic in python")
9157 "@code{mpmath} can be used as an arbitrary-precision substitute for
9158 Python's float/complex types and math/cmath modules, but also does much
9159 more advanced mathematics.")
9160 (license license:bsd-3)))
9162 (define-public python2-mpmath
9163 (package-with-python2 python-mpmath))
9165 (define-public python-bigfloat
9167 (name "python-bigfloat")
9172 (uri (pypi-uri "bigfloat" version))
9174 (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6"))))
9175 (build-system python-build-system)
9178 (home-page "https://github.com/mdickinson/bigfloat")
9179 (synopsis "Arbitrary precision floating-point arithmetic for Python")
9181 "This package provides a Python interface to the MPFR library for
9182 multiprecision arithmetic.")
9183 (license license:lgpl3+)))
9185 (define-public python-sympy
9187 (name "python-sympy")
9192 (uri (pypi-uri "sympy" version))
9194 (base32 "0bkb4jf24yv5i4kjpsmg1xjjccfhqyi0syv0p0xvhdbmx5hr5pm3"))))
9195 (build-system python-build-system)
9198 (modify-phases %standard-phases
9200 (lambda* (#:key outputs #:allow-other-keys)
9202 (or (which "python3") (which "python"))
9203 "-c" "import sympy; sympy.test(\"/core\")"))))))
9205 `(("python-mpmath" ,python-mpmath)))
9206 (home-page "https://www.sympy.org/")
9207 (synopsis "Python library for symbolic mathematics")
9209 "SymPy is a Python library for symbolic mathematics. It aims to become a
9210 full-featured computer algebra system (CAS) while keeping the code as simple
9211 as possible in order to be comprehensible and easily extensible.")
9212 (license license:bsd-3)))
9214 (define-public python2-sympy
9216 (inherit (package-with-python2 python-sympy))
9217 (version "1.5.1") ; last release for python2
9221 (uri (pypi-uri "sympy" version))
9223 (base32 "0zjfbxlkazzh9z22gf62azrkipb2xw7mpzjz3wl1az9893bh2yfp"))))))
9225 (define-public python-q
9232 (uri (pypi-uri "q" version))
9235 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
9236 (build-system python-build-system)
9237 (home-page "https://github.com/zestyping/q")
9238 (synopsis "Quick-and-dirty debugging output for tired programmers")
9240 "q is a Python module for \"print\" style of debugging Python code. It
9241 provides convenient short API for print out of values, tracebacks, and
9242 falling into the Python interpreter.")
9243 (license license:asl2.0)))
9245 (define-public python2-q
9246 (package-with-python2 python-q))
9248 (define-public python-xlib
9250 (name "python-xlib")
9256 (url "https://github.com/python-xlib/python-xlib")
9258 (file-name (git-file-name name version))
9260 (base32 "17cwd2knqm2vwrii3kqii9abwsnydhpg4byqx1vy7rjs6i1vbqfc"))))
9261 (build-system python-build-system)
9264 (modify-phases %standard-phases
9265 (add-before 'check 'start-xserver
9266 (lambda* (#:key inputs #:allow-other-keys)
9267 (let ((xorg-server (assoc-ref inputs "xorg-server")))
9268 ;; There must be a running X server and make check doesn't
9269 ;; start one. Therefore we must do it.
9270 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
9271 (setenv "DISPLAY" ":1")
9274 `(("python-mock" ,python-mock)
9275 ("python-setuptools-scm" ,python-setuptools-scm)
9276 ("xorg-server" ,xorg-server)))
9278 `(("python-six" ,python-six)))
9279 (home-page "https://github.com/python-xlib/python-xlib")
9280 (synopsis "Python X11 client library")
9282 "The Python X Library is intended to be a fully functional
9283 X client library for Python programs. It is useful to implement
9284 low-level X clients. It is written entirely in Python.")
9285 (license license:gpl2+)))
9287 (define-public python2-xlib
9288 (package-with-python2 python-xlib))
9290 (define-public python-singledispatch
9292 (name "python-singledispatch")
9297 (uri (pypi-uri "singledispatch" version))
9300 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
9301 (build-system python-build-system)
9303 `(("python-six" ,python-six))) ; required for conversion, not at run-time
9305 "https://docs.python.org/3/library/functools.html#functools.singledispatch")
9306 (synopsis "Backport of singledispatch feature from Python 3.4")
9308 "This library brings functools.singledispatch from Python 3.4 to Python
9310 (license license:expat)))
9312 (define-public python2-singledispatch
9313 (package-with-python2 python-singledispatch))
9315 ;; the python- version can be removed with python-3.5
9316 (define-public python-backports-abc
9318 (name "python-backports-abc")
9323 (uri (pypi-uri "backports_abc" version))
9326 "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
9327 (build-system python-build-system)
9328 (home-page "https://github.com/cython/backports_abc")
9329 (synopsis "Backport of additions to the 'collections.abc' module")
9331 "Python-backports-abc provides a backport of additions to the
9332 @code{collections.abc} module in Python-3.5.")
9333 (license license:psfl)))
9335 (define-public python2-backports-abc
9336 (package-with-python2 python-backports-abc))
9338 (define-public python-backports-csv
9340 (name "python-backports-csv")
9345 (uri (pypi-uri "backports.csv" version))
9347 (base32 "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj"))))
9348 (build-system python-build-system)
9349 (home-page "https://github.com/ryanhiebert/backports.csv")
9350 (synopsis "Backport of Python 3's csv module for Python 2")
9352 "Provides a backport of Python 3's @code{csv} module for parsing
9353 comma separated values. The API of the @code{csv} module in Python 2
9354 is drastically different from the @code{csv} module in Python 3.
9355 This is due, for the most part, to the difference between str in
9356 Python 2 and Python 3.")
9357 (license license:psfl)))
9359 (define-public python2-backports-csv
9360 (package-with-python2 python-backports-csv))
9362 (define-public python2-backports-shutil-get-terminal-size
9364 (name "python2-backports-shutil-get-terminal-size")
9369 (uri (pypi-uri "backports.shutil_get_terminal_size" version))
9372 "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
9373 (build-system python-build-system)
9375 `(#:python ,python-2
9377 (modify-phases %standard-phases
9380 (setenv "PYTHONPATH" (string-append "./build/lib:"
9381 (getenv "PYTHONPATH")))
9382 (invoke "py.test" "-v"))))))
9384 `(("python2-pytest" ,python2-pytest)))
9385 (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
9386 (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
9388 "This package provides a backport of the @code{get_terminal_size
9389 function} from Python 3.3's @code{shutil}.
9390 Unlike the original version it is written in pure Python rather than C,
9391 so it might be a tiny bit slower.")
9392 (license license:expat)))
9394 (define-public python-waf
9400 (uri (string-append "https://waf.io/"
9401 "waf-" version ".tar.bz2"))
9404 "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
9405 (build-system python-build-system)
9408 (modify-phases %standard-phases
9411 ;; XXX: Find a way to add all extra tools.
9412 (let ((tools '("gccdeps"
9413 "clang_compilation_database")))
9414 (invoke "python" "waf-light" "configure" "build"
9415 (string-append "--tools="
9416 (string-join tools ","))))))
9419 (invoke "python" "waf" "--version")))
9421 (lambda* (#:key outputs #:allow-other-keys)
9422 (let ((out (assoc-ref outputs "out")))
9423 (install-file "waf" (string-append out "/bin")))
9425 ;; waf breaks when it is wrapped.
9427 (home-page "https://waf.io/")
9428 (synopsis "Python-based build system")
9430 "Waf is a Python-based framework for configuring, compiling and installing
9432 (license license:bsd-3)))
9434 (define-public python2-waf
9435 (package-with-python2 python-waf))
9437 (define-public python-pyzmq
9439 (name "python-pyzmq")
9444 (uri (pypi-uri "pyzmq" version))
9446 (base32 "0pa1y97z75xqyca9xfp9zrzksydbgzsxf8yh0hwp0rgahpfxch3h"))))
9447 (build-system python-build-system)
9450 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
9452 (modify-phases %standard-phases
9453 (add-before 'check 'build-extensions
9455 ;; Cython extensions have to be built before running the tests.
9456 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
9458 `(("zeromq" ,zeromq)))
9460 `(("pkg-config" ,pkg-config)
9461 ("python-cython" ,python-cython)
9462 ("python-pytest" ,python-pytest)))
9463 (home-page "https://github.com/zeromq/pyzmq")
9464 (synopsis "Python bindings for 0MQ")
9466 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
9467 (license license:bsd-4)))
9469 (define-public python-pep8
9470 ;; This package has been renamed to ‘pycodestyle’ and is no longer updated.
9471 ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking
9472 ;; some dependents' test suites, and nothing more.
9474 (name "python-pep8")
9479 (uri (pypi-uri "pep8" version))
9482 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))
9483 (patches (search-patches "python-pep8-stdlib-tokenize-compat.patch"))))
9484 (build-system python-build-system)
9485 (home-page "https://pep8.readthedocs.org/")
9486 (synopsis "Python style guide checker")
9488 "This tools checks Python code against some of the style conventions in
9490 (license license:expat)))
9492 (define-public python2-pep8
9493 (package-with-python2 python-pep8))
9495 (define-public python-pep8-naming
9497 (name "python-pep8-naming")
9502 (uri (pypi-uri "pep8-naming" version))
9505 "04kyh9hkpyc8jzj16d1kkk29b5n8miqdvbs0zm035n1z5z5kx6hz"))))
9506 (build-system python-build-system)
9508 `(("python-flake8" ,python-flake8)
9509 ("python-flake8-polyfill" ,python-flake8-polyfill)))
9510 (home-page "https://github.com/PyCQA/pep8-naming")
9511 (synopsis "Check PEP-8 naming conventions")
9513 "This package provides the @code{pep8-naming} Python module, a
9514 plugin for flake8 to check PEP-8 naming conventions.")
9515 (license license:expat)))
9517 (define-public python-pep517
9519 (inherit python-pep517-bootstrap)
9520 (name "python-pep517")
9523 (modify-phases %standard-phases
9525 (lambda* (#:key tests? #:allow-other-keys)
9526 (delete-file "pytest.ini")
9527 ;; This test tries to connect to the internet
9528 (delete-file "tests/test_meta.py")
9533 `(("python-mock" ,python-mock)
9534 ("python-pytest" ,python-pytest)
9535 ("python-testpath" ,python-testpath)))
9536 (properties `((python2-variant . ,(delay python2-pep517))))))
9538 ;; Skip the tests so we don't create a cyclical dependency with pytest.
9539 (define-public python2-pep517
9540 (let ((base (package-with-python2
9541 (strip-python2-variant python-pep517))))
9542 (package/inherit base
9543 (name "python2-pep517")
9546 ,@(package-arguments base)))
9547 (native-inputs `()))))
9549 (define-public python-pyflakes
9551 (name "python-pyflakes")
9556 (uri (pypi-uri "pyflakes" version))
9559 "1ny10364ciqh4ripasj4zzv4145l21l3s85m3qlrvfq5pk58xg7m"))))
9560 (build-system python-build-system)
9562 "https://github.com/pyflakes/pyflakes")
9563 (synopsis "Passive checker of Python programs")
9565 "Pyflakes statically checks Python source code for common errors.")
9566 (license license:expat)))
9568 (define-public python2-pyflakes
9569 (package-with-python2 python-pyflakes))
9571 (define-public python-pyflakes-2.2
9573 (inherit python-pyflakes)
9577 (uri (pypi-uri "pyflakes" version))
9580 "1j3zqbiwkyicvww499bblq33x0bjpzdrxajhaysr7sk7x5gdgcim"))))))
9582 (define-public python-mccabe
9584 (name "python-mccabe")
9589 (uri (pypi-uri "mccabe" version))
9592 "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
9593 (build-system python-build-system)
9595 `(("python-pytest" ,python-pytest-bootstrap)
9596 ("python-pytest-runner" ,python-pytest-runner)))
9597 (home-page "https://github.com/flintwork/mccabe")
9598 (synopsis "McCabe checker, plugin for flake8")
9600 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
9601 complexity of Python source code.")
9602 (license license:expat)))
9604 (define-public python2-mccabe
9605 (package-with-python2 python-mccabe))
9607 (define-public python-flake8
9609 (name "python-flake8")
9613 (uri (pypi-uri "flake8" version))
9616 "0y732h02n2aih8gzyfj4bbhg4jgahyv84mjwfindk2g6w45rka0s"))))
9617 (build-system python-build-system)
9620 (modify-phases %standard-phases
9622 (lambda* (#:key inputs outputs #:allow-other-keys)
9623 (add-installed-pythonpath inputs outputs)
9624 (invoke "pytest" "-v"))))))
9626 `(("python-pycodestyle" ,python-pycodestyle)
9627 ("python-entrypoints" ,python-entrypoints)
9628 ("python-pyflakes" ,python-pyflakes)
9629 ("python-mccabe" ,python-mccabe)))
9631 `(("python-mock" ,python-mock)
9632 ("python-pytest" ,python-pytest)))
9633 (home-page "https://gitlab.com/pycqa/flake8")
9635 "The modular source code checker: pep8, pyflakes and co")
9637 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
9638 (properties `((python2-variant . ,(delay python2-flake8))))
9639 (license license:expat)))
9641 (define-public python2-flake8
9642 (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
9643 (package/inherit base
9645 `(("python2-configparser" ,python2-configparser)
9646 ("python2-enum34" ,python2-enum34)
9647 ("python2-functools32" ,python2-functools32)
9648 ("python2-typing" ,python2-typing)
9649 ,@(package-propagated-inputs base))))))
9651 (define-public python-flake8-3.8
9653 (inherit python-flake8)
9657 (uri (pypi-uri "flake8" version))
9660 "0fvcrsbyzjpcli8ldbpsdbpmf238nkvwc1dy4hy82lf63rvfinma"))))
9662 `(("python-pycodestyle" ,python-pycodestyle-2.6)
9663 ("python-entrypoints" ,python-entrypoints)
9664 ("python-pyflakes" ,python-pyflakes-2.2)
9665 ("python-mccabe" ,python-mccabe)))))
9667 (define-public python-flake8-bugbear
9669 (name "python-flake8-bugbear")
9674 (uri (pypi-uri "flake8-bugbear" version))
9677 "0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx"))))
9678 (build-system python-build-system)
9681 (modify-phases %standard-phases
9682 (add-before 'check 'disable-test
9684 ;; This test fails on slow computers.
9685 (substitute* "tests/test_bugbear.py"
9686 (("def test_does_not_crash_on_any_valid_code")
9687 "def _test_does_not_crash_on_any_valid_code")))))))
9689 `(("python-hypothesis" ,python-hypothesis)
9690 ("python-hypothesmith" ,python-hypothesmith)))
9692 `(("python-attrs" ,python-attrs)
9693 ("python-flake8" ,python-flake8)))
9694 (home-page "https://github.com/PyCQA/flake8-bugbear")
9696 "Flake8 plugin for finding likely bugs and design problems in your program")
9698 "This package contains a plugin for Flake8 finding likely bugs and
9699 design problems in your program. It contains warnings that don't belong
9700 in pyflakes and pycodestyle.")
9701 (license license:expat)))
9703 (define-public python-flake8-continuation
9705 (name "python-flake8-continuation")
9710 (uri (pypi-uri "flake8-continuation" version))
9713 "0dzaw8jr7yhlabxhrblnrizxx17xa9ngjnbr1kidg5lapq6b9q1y"))))
9714 (build-system python-build-system)
9716 `(("python-flake8" ,python-flake8)
9717 ("python-pycodestyle" ,python-pycodestyle)
9718 ("python-six" ,python-six)))
9719 (home-page "https://github.com/planetlabs/flake8-continuation")
9720 (synopsis "Flake8 Line Continuation Plugin")
9721 (description "A Flake8 plugin that checks for the line continuation
9722 style to be in the preferred method according to PEP-8, specifically:
9724 The preferred way of wrapping long lines is by using Python's implied
9725 line continuation inside parentheses, brackets and braces. Long lines
9726 can be broken over multiple lines by wrapping expressions in parentheses.
9727 These should be used in preference to using a backslash for line continuation.
9729 (license license:asl2.0)))
9731 (define-public python-flake8-implicit-str-concat
9733 (name "python-flake8-implicit-str-concat")
9738 (uri (pypi-uri "flake8_implicit_str_concat" version))
9740 (base32 "1v0y29xlmbr2q12a4nnpm1dm9aw1mjiys1x8jif4z8c90d63cqm6"))))
9741 (build-system python-build-system)
9743 `(("python-attrs" ,python-attrs)
9744 ("python-more-itertools" ,python-more-itertools)))
9745 (home-page "https://github.com/keisheiled/flake8-implicit-str-concat")
9746 (synopsis "Flake8 plugin to encourage correct string literal concatenation")
9748 "This is a plugin for the Python code checking tool Flake8 to encourage
9749 correct string literal concatenation.
9751 It looks for style problems like implicitly concatenated string literals on
9752 the same line (which can be introduced by the code formatting tool Black), or
9753 unnecessary plus operators for explicit string literal concatenation.")
9754 (license license:expat)))
9756 (define-public python-flake8-polyfill
9758 (name "python-flake8-polyfill")
9763 (uri (pypi-uri "flake8-polyfill" version))
9766 "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"))))
9767 (build-system python-build-system)
9770 (modify-phases %standard-phases
9773 ;; Be compatible with Pytest 4:
9774 ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
9775 (substitute* "setup.cfg"
9779 (setenv "PYTHONPATH"
9780 (string-append (getcwd) "/build/lib:"
9781 (getenv "PYTHONPATH")))
9782 (invoke "py.test" "-v"))))))
9784 `(("python-flake8" ,python-flake8)
9785 ("python-mock" ,python-mock)
9786 ("python-pep8" ,python-pep8)
9787 ("python-pycodestyle" ,python-pycodestyle)
9788 ("python-pytest" ,python-pytest)))
9789 (home-page "https://gitlab.com/pycqa/flake8-polyfill")
9790 (synopsis "Polyfill package for Flake8 plugins")
9792 "This package that provides some compatibility helpers for Flake8
9793 plugins that intend to support Flake8 2.x and 3.x simultaneously.")
9794 (license license:expat)))
9796 (define-public python2-flake8-polyfill
9797 (package-with-python2 python-flake8-polyfill))
9799 (define-public python-flake8-print
9801 (name "python-flake8-print")
9806 (uri (pypi-uri "flake8-print" version))
9808 (base32 "05k5kkvyk6fdmvnacxfzypk74vbl3pmva13dqg1aljfwnxsc7yjs"))))
9809 (build-system python-build-system)
9811 `(("python-flake8" ,python-flake8)
9812 ("python-pycodestyle" ,python-pycodestyle)
9813 ("python-six" ,python-six)))
9814 (home-page "https://github.com/jbkahn/flake8-print")
9815 (synopsis "Print statement checker plugin for Flake8")
9817 "This plugin for Flake8 checks for @code{print} statements in Python
9819 (license license:expat)))
9821 (define-public python-flake8-pyi
9823 (name "python-flake8-pyi")
9828 (uri (pypi-uri "flake8-pyi" version))
9831 "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk"))))
9832 (build-system python-build-system)
9834 `(("python-attrs" ,python-attrs)
9835 ("python-flake8" ,python-flake8)
9836 ("python-pyflakes" ,python-pyflakes)))
9837 (home-page "https://github.com/ambv/flake8-pyi")
9839 "Flake8 plugin that provides specializations for type hinting stub files")
9841 "This package contains a plugin that provides specializations for
9842 type hinting stub files, especially interesting for linting typeshed. It
9843 adds the @file{.pyi} extension to the default value of the @code{--filename}
9844 command-line argument to Flake8. This means stubs are linted by default with
9845 this plugin enabled, without needing to explicitly list every file. It
9846 modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
9847 expressions after the entire file has been read. This enables support for
9848 first-class forward references that stub files use.")
9849 (license license:expat)))
9851 (define-public python-flake8-pie
9853 (name "python-flake8-pie")
9858 (uri (pypi-uri "flake8-pie" version))
9860 (base32 "0kgipl5gljlp7aa7ykx15pswpzkd0d0qiznihb2z0d9a73181dyd"))))
9861 (build-system python-build-system)
9862 (home-page "https://github.com/sbdchd/flake8-pie")
9863 (synopsis "Flake8 extension that implements lints")
9865 "This package provides a flake8 extension that implements miscellaneous
9867 (license license:bsd-2)))
9869 (define-public python-flake8-quotes
9871 (name "python-flake8-quotes")
9876 (uri (pypi-uri "flake8-quotes" version))
9879 "0ph5s6lxgpzz4an0ax6s5xjqypqmngwr5b1i0h9pqhzghplic49z"))))
9880 (build-system python-build-system)
9882 `(("python-flake8" ,python-flake8)))
9883 (home-page "https://github.com/zheller/flake8-quotes/")
9884 (synopsis "Flake8 lint for quotes")
9885 (description "This package provides a Flake8 lint for quotes.")
9886 (license license:expat)))
9888 (define-public python-flake8-todo
9890 (name "python-flake8-todo")
9895 (uri (pypi-uri "flake8-todo" version))
9898 "05arm0sch3r8248035kilmf01z0mxsahw6vpbbz0d343zy8m8k3f"))))
9899 (build-system python-build-system)
9901 `(("python-pycodestyle" ,python-pycodestyle)))
9902 (home-page "https://github.com/schlamar/flake8-todo")
9903 (synopsis "TODO notes checker, plugin for flake8")
9905 "This package provides the @code{flake8-todo} Python module, a
9906 TODO notes checker plugin for flake8.")
9907 (license license:expat)))
9909 (define-public python-autoflake
9911 (name "python-autoflake")
9916 (uri (pypi-uri "autoflake" version))
9918 (base32 "0nzr057dbmgprp4a52ymafdkdd5zp2wcqf42913xc7hhvvdbj338"))))
9919 (build-system python-build-system)
9921 `(("python-pyflakes" ,python-pyflakes)))
9922 (home-page "https://github.com/myint/autoflake")
9923 (synopsis "Removes unused imports and unused variables")
9925 "@code{autoflake} removes unused imports and unused variables from Python
9926 code as reported by @code{pyflakes}.
9928 By default, it only removes unused imports for modules that are part of the
9929 standard library. Removal of unused variables is also disabled by default.
9930 It also removes useless @code{pass} statements.")
9931 (license license:expat)))
9933 (define-public python-mistune
9935 (name "python-mistune")
9940 (uri (pypi-uri "mistune" version))
9943 "0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr"))))
9944 (build-system python-build-system)
9946 `(("python-nose" ,python-nose)
9947 ("python-cython" ,python-cython)))
9948 (home-page "https://github.com/lepture/mistune")
9949 (synopsis "Markdown parser in pure Python")
9950 (description "This package provides a fast markdown parser in pure
9952 (license license:bsd-3)))
9954 (define-public python2-mistune
9955 (package-with-python2 python-mistune))
9957 (define-public python-markdown
9959 (name "python-markdown")
9964 (uri (pypi-uri "Markdown" version))
9967 "0jbs73nincha8fkfxx267sfxac6pl0ckszjbqbb8gk4dhs8v9d9i"))))
9968 (build-system python-build-system)
9970 `(("python-nose" ,python-nose)
9971 ("python-pyyaml" ,python-pyyaml)))
9972 (home-page "https://python-markdown.github.io/")
9973 (synopsis "Python implementation of Markdown")
9975 "This package provides a Python implementation of John Gruber's
9976 Markdown. The library features international input, various Markdown
9977 extensions, and several HTML output formats. A command line wrapper
9978 markdown_py is also provided to convert Markdown files to HTML.")
9979 (properties `((python2-variant . ,(delay python2-markdown))))
9980 (license license:bsd-3)))
9982 ;; Markdown 3.2 dropped support for Python 2.
9983 (define-public python2-markdown
9984 (let ((base (package-with-python2 (strip-python2-variant python-markdown))))
9990 (uri (pypi-uri "Markdown" version))
9993 "0yhylk4ffqqs7x086fav4pnfsl1021v7lghznzkififprmmqfl1f")))))))
9995 (define-public python-ptyprocess
9997 (name "python-ptyprocess")
10002 (uri (pypi-uri "ptyprocess" version))
10005 "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
10006 (build-system python-build-system)
10008 `(("python-nose" ,python-nose)))
10011 (modify-phases %standard-phases
10013 (lambda _ (invoke "nosetests"))))))
10014 (home-page "https://github.com/pexpect/ptyprocess")
10015 (synopsis "Run a subprocess in a pseudo terminal")
10017 "This package provides a Python library used to launch a subprocess in a
10018 pseudo terminal (pty), and interact with both the process and its pty.")
10019 (license license:isc)))
10021 (define-public python2-ptyprocess
10022 (package-with-python2 python-ptyprocess))
10024 (define-public python-cram
10026 (name "python-cram")
10028 (home-page "https://bitheap.org/cram/")
10031 (uri (list (string-append home-page "cram-"
10033 (pypi-uri "cram" version)))
10036 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
10039 (modify-phases %standard-phases
10040 (add-after 'unpack 'patch-source
10042 (substitute* (find-files "cram" ".*\\.py$")
10043 ;; Replace default shell path.
10044 (("/bin/sh") (which "sh")))
10045 (substitute* (find-files "tests" ".*\\.t$")
10047 (("/bin/bash") (which "bash"))
10048 (("/bin/sh") (which "sh")))
10049 (substitute* "cram/_test.py"
10050 ;; This hack works around a bug triggered by substituting
10051 ;; the /bin/sh paths. "tests/usage.t" compares the output of
10052 ;; "cram -h", which breaks the output at 80 characters. This
10053 ;; causes the line showing the default shell to break into two
10054 ;; lines, but the test expects a single line...
10055 (("env\\['COLUMNS'\\] = '80'")
10056 "env['COLUMNS'] = '160'"))
10058 (substitute* "Makefile"
10059 ;; Recent versions of python-coverage have caused the test
10060 ;; coverage to decrease (as of version 0.7). Allow that.
10061 (("--fail-under=100")
10062 "--fail-under=90"))
10066 ;; The test phase uses the built library and executable.
10067 (lambda* (#:key inputs outputs #:allow-other-keys)
10068 (add-installed-pythonpath inputs outputs)
10069 (setenv "PATH" (string-append (getenv "PATH") ":"
10070 (assoc-ref outputs "out") "/bin"))
10071 (invoke "make" "test"))))))
10072 (build-system python-build-system)
10074 `(("python-coverage" ,python-coverage)
10076 (synopsis "Simple testing framework for command line applications")
10078 "Cram is a functional testing framework for command line applications.
10079 Cram tests look like snippets of interactive shell sessions. Cram runs each
10080 command and compares the command output in the test with the command’s actual
10082 (license license:gpl2+)))
10084 (define-public python2-cram
10085 (package-with-python2 python-cram))
10087 (define-public python-crashtest
10089 (name "python-crashtest")
10094 (uri (pypi-uri "crashtest" version))
10096 (base32 "1p9p7mn8x2j9psc4jxab98897v4i9s4fliyfw8rp8v4bx1n7pjj2"))))
10097 (build-system python-build-system)
10098 (home-page "https://github.com/sdispater/crashtest")
10099 (synopsis "Manage Python errors with ease")
10101 "Python library that makes exceptions handling and inspection easier.")
10102 (license license:expat)))
10104 (define-public python-stdlib-list
10106 (name "python-stdlib-list")
10110 (uri (pypi-uri "stdlib-list" version))
10113 "17vdn4q0sdlndc2fr9svapxx6366hnrhkn0fswp1xmr0jxqh7rd1"))))
10114 (build-system python-build-system)
10116 `(#:tests? #f)) ; Tests require more dependencies.
10118 `(("python-sphinx" ,python-sphinx)))
10119 (home-page "https://github.com/jackmaney/python-stdlib-list")
10120 (synopsis "Python Standard Libraries")
10121 (description "This package contains a list of Python Standard Libraries.")
10122 (license license:expat)))
10124 (define-public python-straight-plugin
10126 (name "python-straight-plugin")
10131 (uri (pypi-uri "straight.plugin" version))
10134 "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
10135 (build-system python-build-system)
10136 (home-page "https://github.com/ironfroggy/straight.plugin")
10137 (synopsis "Simple namespaced plugin facility")
10138 (description "Straight Plugin provides a type of plugin you can create from
10139 almost any existing Python modules, and an easy way for outside developers to
10140 add functionality and customization to your projects with their own plugins.")
10141 (license license:expat)))
10143 (define-public python2-straight-plugin
10144 (package-with-python2 python-straight-plugin))
10146 (define-public python-fonttools
10148 (name "python-fonttools")
10152 (uri (pypi-uri "fonttools" version ".zip"))
10155 "1mq9kdzhcsp96bhv7smnrpdg1s4z5wh70bsl99c0jmcrahqdisqq"))))
10156 (build-system python-build-system)
10159 ("python-pytest" ,python-pytest)
10160 ("python-pytest-runner" ,python-pytest-runner)))
10161 (home-page "https://github.com/fonttools/fonttools")
10162 (synopsis "Tools to manipulate font files")
10164 "FontTools/TTX is a library to manipulate font files from Python. It
10165 supports reading and writing of TrueType/OpenType fonts, reading and writing
10166 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
10167 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
10168 from an XML-based format.")
10169 (license license:expat)))
10171 ;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here.
10172 (define-public python2-fonttools
10173 (let ((base (package-with-python2 (strip-python2-variant python-fonttools))))
10179 (uri (pypi-uri "fonttools" version ".zip"))
10182 "0v6399g755f2hn1ry62i5b6gdinf2fpx2966v3bxh6bjw1accb5p")))))))
10184 (define-public python-ly
10191 (uri (pypi-uri name version))
10194 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
10195 (build-system python-build-system)
10197 ;; FIXME: Some tests need network access.
10199 (synopsis "Tool and library for manipulating LilyPond files")
10200 (description "This package provides a Python library to parse, manipulate
10201 or create documents in LilyPond format. A command line program ly is also
10202 provided that can be used to do various manipulations with LilyPond files.")
10203 (home-page "https://pypi.org/project/python-ly/")
10204 (license license:gpl2+)))
10206 (define-public python-appdirs
10208 (name "python-appdirs")
10213 (uri (pypi-uri "appdirs" version))
10216 "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
10217 (build-system python-build-system)
10218 (home-page "https://github.com/ActiveState/appdirs")
10220 "Determine platform-specific dirs, e.g. a \"user data dir\"")
10222 "This module provides a portable way of finding out where user data
10223 should be stored on various operating systems.")
10224 (license license:expat)))
10226 (define-public python2-appdirs
10227 (package-with-python2 python-appdirs))
10229 (define-public python-gorilla
10231 (name "python-gorilla")
10235 (uri (pypi-uri "gorilla" version))
10238 "0b40blcp6fih4nvqbilra4qw1dfccv1ahjmr41ac4d9rjadqkcpy"))))
10239 (build-system python-build-system)
10240 (home-page "https://github.com/christophercrouzet/gorilla")
10241 (synopsis "Convenient monkey patching with Python")
10243 "Gorilla is a Python library that provides a convenient approach to
10244 monkey patching. Monkey patching is the process of modifying module and
10245 class attributes at runtime with the purpose of replacing or extending
10246 third-party code.")
10247 (license license:expat)))
10249 (define-public python-llfuse
10251 (name "python-llfuse")
10255 (uri (pypi-uri "llfuse" version))
10258 "1g2cdhdqrb6m7655qp61pn61pwj1ql61cdzhr2jvl3w4i8877ddr"))))
10259 (build-system python-build-system)
10264 `(("pkg-config" ,pkg-config)))
10265 (synopsis "Python bindings for FUSE")
10267 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
10268 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
10269 (license license:lgpl2.0+)
10270 (properties `((python2-variant . ,(delay python2-llfuse))))))
10272 (define-public python2-llfuse
10273 (let ((base (package-with-python2
10274 (strip-python2-variant python-llfuse))))
10275 (package/inherit base
10276 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))))
10278 (define-public python-msgpack
10280 (name "python-msgpack")
10284 (uri (pypi-uri "msgpack" version))
10287 "1h5mxh84rcw04dvxy1qbfn2hisavfqgilh9k09rgyjhd936dad4m"))))
10288 (build-system python-build-system)
10290 `(#:modules ((guix build utils)
10291 (guix build python-build-system)
10296 (modify-phases %standard-phases
10299 (let ((cwd (getcwd)))
10300 (setenv "PYTHONPATH"
10301 (string-append cwd "/build/"
10302 (find (cut string-prefix? "lib" <>)
10303 (scandir (string-append cwd "/build")))
10305 (getenv "PYTHONPATH")))
10306 (invoke "pytest" "-v" "test")))))))
10308 `(("python-pytest" ,python-pytest)))
10309 (synopsis "MessagePack (de)serializer")
10310 (description "MessagePack is a fast, compact binary serialization format,
10311 suitable for similar data to JSON. This package provides CPython bindings for
10312 reading and writing MessagePack data.")
10313 (home-page "https://pypi.org/project/msgpack/")
10314 (license license:asl2.0)))
10316 ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
10317 ;; release 0.5. Some packages like borg still call it by the old name for now.
10318 ;; <https://bugs.gnu.org/30662>
10319 (define-public python-msgpack-transitional
10321 (inherit python-msgpack)
10322 (name "python-msgpack-transitional")
10326 (uri (pypi-uri "msgpack" version))
10329 "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
10331 (substitute-keyword-arguments (package-arguments python-msgpack)
10333 `(modify-phases ,phases
10334 (add-after 'unpack 'configure-transitional
10336 ;; Keep using the old name.
10337 (substitute* "setup.py"
10338 (("TRANSITIONAL = False")
10339 "TRANSITIONAL = 1"))
10342 (define-public python2-msgpack
10343 (package-with-python2 python-msgpack))
10345 (define-public python-netaddr
10347 (name "python-netaddr")
10352 (uri (pypi-uri "netaddr" version))
10355 "0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n"))))
10356 (build-system python-build-system)
10357 (arguments `(#:tests? #f)) ;; No tests.
10358 (home-page "https://github.com/drkjam/netaddr/")
10359 (synopsis "Pythonic manipulation of network addresses")
10361 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
10362 and MAC network addresses.")
10363 (license license:bsd-3)))
10365 (define-public python2-netaddr
10366 (package-with-python2 python-netaddr))
10368 (define-public python2-pyroute2
10370 (name "python2-pyroute2")
10375 (uri (pypi-uri "pyroute2" version))
10378 "1gmz4r1w0yzj6fjjypnalmfyy0lnfznydyn62gi3wk50j5hhxbny"))))
10379 (build-system python-build-system)
10381 `(#:python ,python-2)) ;Python 3.x is not supported
10382 (home-page "https://github.com/svinota/pyroute2")
10383 (synopsis "Python netlink library")
10385 "Pyroute2 is a pure Python netlink library with minimal dependencies.
10386 Supported netlink families and protocols include:
10388 @item rtnl, network settings - addresses, routes, traffic controls
10389 @item nfnetlink - netfilter API: ipset, nftables, ...
10390 @item ipq - simplest userspace packet filtering, iptables QUEUE target
10391 @item devlink - manage and monitor devlink-enabled hardware
10392 @item generic - generic netlink families
10394 @item nl80211 - wireless functions API (basic support)
10395 @item taskstats - extended process statistics
10396 @item acpi_events - ACPI events monitoring
10397 @item thermal_events - thermal events monitoring
10398 @item VFS_DQUOT - disk quota events monitoring
10401 (license license:gpl2+)))
10403 (define-public python-wrapt
10405 (name "python-wrapt")
10410 (uri (pypi-uri "wrapt" version))
10413 "1q81762dgsgrd12f8qc39zk8s5wll3m5xc32jdmlf6cls4gh4njn"))))
10414 (build-system python-build-system)
10416 ;; Tests are not included in the tarball, they are only available in the
10419 (home-page "https://github.com/GrahamDumpleton/wrapt")
10420 (synopsis "Module for decorators, wrappers and monkey patching")
10422 "The aim of the wrapt module is to provide a transparent object proxy for
10423 Python, which can be used as the basis for the construction of function
10424 wrappers and decorator functions.")
10425 (license license:bsd-2)))
10427 (define-public python2-wrapt
10428 (package-with-python2 python-wrapt))
10430 (define-public python-commentjson
10432 (name "python-commentjson")
10435 ;; The PyPI release is missing some test files.
10437 (uri (git-reference
10438 (url "https://github.com/vaidik/commentjson")
10439 (commit (string-append "v" version))))
10440 (file-name (git-file-name name version))
10443 "01iscgrc6bkyrxbzmf46csbf9c0n7g6dygdmxs3fq8fkzrrciybl"))))
10444 (build-system python-build-system)
10446 `(#:modules ((guix build python-build-system)
10449 (ice-9 textual-ports))
10451 (modify-phases %standard-phases
10452 (add-after 'unpack 'relax-requirements
10454 (substitute* "setup.py"
10455 (("lark-parser>=0.7.1,<0.8.0")
10456 "lark-parser>=0.7.1"))))
10457 (add-after 'unpack 'delete-unspported-tests
10458 ;; Some tests rely on the 'test' module of Python itself,
10459 ;; which is not available with the Python package in Guix;
10462 ;; XXX: Copied from (guix build dub-build-system).
10463 (define (grep string file-name)
10464 (string-contains (call-with-input-file file-name get-string-all)
10467 (with-directory-excursion "commentjson/tests/test_json"
10468 (let* ((dot? (lambda (x) (member x '("." ".."))))
10469 (test-files (scandir "." (negate dot?))))
10470 (for-each delete-file
10471 (filter (lambda (f) (grep "from test." f))
10472 test-files)))))))))
10474 `(("python-lark-parser" ,python-lark-parser)))
10476 `(("python-six" ,python-six)))
10477 (home-page "https://github.com/vaidik/commentjson")
10478 (synopsis "Python library for adding comments to JSON files")
10479 (description "Comment JSON is a Python package that helps you create JSON
10480 files with Python and JavaScript style inline comments. Its API is very
10481 similar to the Python standard library's @code{json} module.")
10482 (license license:expat)))
10484 (define-public python-resolvelib
10486 (name "python-resolvelib")
10490 ;; Tests are missing from the PyPI release.
10492 (uri (git-reference
10493 (url "https://github.com/sarugaku/resolvelib")
10495 (file-name (git-file-name name version))
10498 "1fqz75riagizihvf4j7wc3zjw6kmg1dd8sf49aszyml105kb33n8"))))
10499 (build-system python-build-system)
10502 (modify-phases %standard-phases
10504 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
10506 (add-installed-pythonpath inputs outputs)
10507 (invoke "pytest")))))))
10509 `(("python-commentjson" ,python-commentjson)
10510 ("python-packaging" ,python-packaging)
10511 ("python-pytest" ,python-pytest)))
10512 (home-page "https://github.com/sarugaku/resolvelib")
10513 (synopsis "Abstract dependencies resolver")
10514 (description "The ResolveLib library provides a @code{Resolver} class that
10515 includes dependency resolution logic.")
10516 (license license:isc)))
10518 ;;; This older version is required by ansible-core.
10519 (define-public python-resolvelib-0.5
10520 (package/inherit python-resolvelib
10521 (name "python-resolvelib")
10526 (uri (git-reference
10527 (url "https://github.com/sarugaku/resolvelib")
10529 (file-name (git-file-name name version))
10532 "0697y330sqhiclk25v151qxg7aixzpj434lbg5qib0qlna5zg9la"))))))
10534 (define-public python-commonmark
10536 (name "python-commonmark")
10541 (uri (pypi-uri "commonmark" version))
10543 (base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
10544 (build-system python-build-system)
10547 (modify-phases %standard-phases
10549 (lambda* (#:key inputs outputs #:allow-other-keys)
10550 (add-installed-pythonpath inputs outputs)
10551 (invoke "python" "setup.py" "test"))))))
10552 (home-page "https://github.com/readthedocs/commonmark.py")
10553 (synopsis "Python parser for the CommonMark Markdown spec")
10555 "This module is a pure Python port of jgm's @code{commonmark.js}, a
10556 Markdown parser and renderer for the CommonMark specification, using only
10558 (license license:bsd-3)))
10560 (define-public python-xlrd
10562 (name "python-xlrd")
10566 (uri (pypi-uri "xlrd" version))
10569 "1ci93fda4n67qhdvfl16zasyxrpygzk53hs6m8z0rd4dxrnb6vjl"))))
10570 (build-system python-build-system)
10573 (modify-phases %standard-phases
10574 ;; Some tests depend on writing a temporary file to the user's home
10576 (add-after 'unpack 'fix-tests
10578 (delete-file "tests/test_open_workbook.py")
10580 (home-page "http://www.python-excel.org/")
10581 (synopsis "Library for extracting data from Excel files")
10582 (description "This package provides a library to extract data from
10583 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
10584 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
10585 Unicode-aware. It is not intended as an end-user tool.")
10586 (license license:bsd-3)))
10588 (define-public python2-xlrd
10589 (package-with-python2 python-xlrd))
10591 (define-public python-xlwt
10593 (name "python-xlwt")
10598 (uri (pypi-uri "xlwt" version))
10600 (base32 "123c2pdamshkq75wwvck8fq0cjq1843xd3x9qaiz2a4vg9qi56f5"))))
10601 (build-system python-build-system)
10604 (modify-phases %standard-phases
10606 (lambda* (#:key tests? #:allow-other-keys)
10608 (setenv "PYTHONPATH"
10609 (string-append (getcwd) "/build/lib:"
10610 (getenv "PYTHONPATH")))
10611 (invoke "nosetests" "-v")))))))
10613 `(("nose" ,python-nose)))
10614 (home-page "http://www.python-excel.org/")
10615 (synopsis "Library for creating spreadsheet Excel files")
10616 (description "@code{xlwt} is a library for writing data and formatting
10617 information to older Excel files (i.e. .xls). The package itself is pure
10618 Python with no dependencies on modules or packages outside the standard Python
10619 distribution. It is not intended as an end-user tool.")
10620 (license license:bsd-3)))
10622 (define-public python-immutables
10624 (name "python-immutables")
10629 (uri (pypi-uri "immutables" version))
10631 (base32 "0y0aqw29g525frdnmv9paljzacpp4s21sadfbca5b137iciwr8d0"))))
10632 (build-system python-build-system)
10633 (home-page "https://github.com/MagicStack/immutables")
10634 (synopsis "High-performance immutable mapping type for Python")
10636 "An immutable mapping type for Python. The underlying datastructure is a
10637 Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other
10638 functional languages.")
10639 (license license:asl2.0)))
10641 (define-public python-prettytable
10643 (name "python-prettytable")
10648 (uri (pypi-uri "prettytable" version ".tar.bz2"))
10651 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
10652 (build-system python-build-system)
10653 (home-page "https://code.google.com/archive/p/prettytable/")
10654 (synopsis "Display tabular data in an ASCII table format")
10656 "A library designed to represent tabular data in visually appealing ASCII
10657 tables. PrettyTable allows for selection of which columns are to be printed,
10658 independent alignment of columns (left or right justified or centred) and
10659 printing of sub-tables by specifying a row range.")
10660 (license license:bsd-3)))
10662 (define-public python2-prettytable
10663 (package-with-python2 python-prettytable))
10665 (define-public python-curio
10667 (name "python-curio")
10672 (uri (pypi-uri "curio" version))
10674 (base32 "16wkww6kh511b9bzsfhpvrv0766cc6ssgbzz4lgpjnrzzgx21wwh"))))
10675 (build-system python-build-system)
10678 (modify-phases %standard-phases
10680 (lambda* (#:key inputs outputs #:allow-other-keys)
10681 (add-installed-pythonpath inputs outputs)
10682 (invoke "pytest" "-vv" "-k"
10683 ;; Tries to open an outgoing connection.
10684 "not test_ssl_outgoing"))))))
10686 `(("python-pytest" ,python-pytest)))
10687 (home-page "https://github.com/dabeaz/curio")
10688 (synopsis "Coroutine-based library for concurrent Python")
10690 "Curio is a coroutine-based library for concurrent Python systems
10691 programming. It provides standard programming abstractions such as as
10692 tasks, sockets, files, locks, and queues.")
10693 (license license:bsd-3)))
10695 (define-public python-tables
10697 (name "python-tables")
10702 (uri (pypi-uri "tables" version))
10705 "0j8vnxh2m5n0cyk9z3ndcj5n1zj5rdxgc1gb78bqlyn2lyw75aa9"))
10706 (modules '((guix build utils)))
10709 ;; Remove pre-compiled .pyc files from source.
10710 (for-each delete-file-recursively
10711 (find-files "." "__pycache__" #:directories? #t))
10712 (for-each delete-file (find-files "." "\\.pyc$"))
10714 (build-system python-build-system)
10716 `(;; FIXME: python-build-system does not pass configure-flags to "build"
10717 ;; or "check", so we must override the build and check phases.
10719 (modify-phases %standard-phases
10720 (add-after 'unpack 'use-gcc
10722 (substitute* "setup.py"
10723 (("^( +)compiler = new_compiler\\(\\)" line indent)
10724 (string-append line
10727 "compiler.set_executables(compiler='gcc',"
10728 "compiler_so='gcc',"
10729 "linker_exe='gcc',"
10730 "linker_so='gcc -shared')")))
10732 (add-after 'unpack 'disable-tuning
10734 (substitute* "setup.py"
10735 (("cpu_flags = .*")
10736 "cpu_flags = ['sse2']\n"))
10739 (lambda* (#:key inputs #:allow-other-keys)
10740 (invoke "python" "setup.py" "build"
10741 (string-append "--hdf5="
10742 (assoc-ref inputs "hdf5")))))
10744 (lambda* (#:key inputs #:allow-other-keys)
10745 (invoke "python" "setup.py" "check"
10746 (string-append "--hdf5="
10747 (assoc-ref inputs "hdf5"))))))))
10749 `(("python-numexpr" ,python-numexpr)
10750 ("python-numpy" ,python-numpy)))
10752 `(("python-cython" ,python-cython)
10753 ("pkg-config" ,pkg-config)))
10755 `(("hdf5" ,hdf5-1.10)
10758 (home-page "https://www.pytables.org/")
10759 (synopsis "Hierarchical datasets for Python")
10760 (description "PyTables is a package for managing hierarchical datasets and
10761 designed to efficiently cope with extremely large amounts of data.")
10762 (license license:bsd-3)))
10764 (define-public python-sniffio
10766 (name "python-sniffio")
10771 (uri (pypi-uri "sniffio" version))
10773 (base32 "1pnkvi6wvn4qd37y69n1ls6n8l63gfmn3pvb1jb50gqxxkn6wrn4"))))
10774 (build-system python-build-system)
10777 (modify-phases %standard-phases
10780 (invoke "pytest" "-vv"))))))
10782 `(("python-curio" ,python-curio)
10783 ("python-pytest" ,python-pytest)
10784 ("python-pytest-cov" ,python-pytest-cov)))
10785 (home-page "https://github.com/python-trio/sniffio")
10786 (synopsis "Detect which async library a program is running under")
10787 (description "This package detects which async library a program is
10788 running under. It supports multiple async I/O packages, like Trio, and
10790 ;; Either license applies.
10791 (license (list license:expat license:asl2.0))))
10793 (define-public python-pytest-black
10795 (name "python-pytest-black")
10800 (uri (pypi-uri "pytest-black" version))
10803 "04lppqydxm0f3f3x0l8hj7v0j6d8syj34jc37yzqwqcyqsnaga81"))))
10804 (build-system python-build-system)
10806 `(("python-pytest" ,python-pytest)
10807 ("python-black" ,python-black)
10808 ("python-toml" ,python-toml)))
10810 `(("python-setuptools-scm" ,python-setuptools-scm)))
10811 (home-page "https://github.com/shopkeep/pytest-black")
10812 (synopsis "Pytest plugin to enable format checking with black")
10814 "This package provides a pytest plugin to enable format checking with the
10815 Python code formatter \"black\".")
10816 (license license:expat)))
10818 (define-public python-get-version
10820 (name "python-get-version")
10825 (uri (pypi-uri "get_version" version))
10828 "1g15jyx33vkxavv9hwv275cs4g9bp2i1y942raw3fxamq8kbaml1"))))
10829 (build-system python-build-system)
10831 `(("python-pygments" ,python-pygments)
10832 ("python-pytest" ,python-pytest)
10833 ("python-pytest-black" ,python-pytest-black)
10834 ("python-pytest-cov" ,python-pytest-cov)
10835 ("python-setuptools" ,python-setuptools)
10836 ("python-testpath" ,python-testpath)))
10837 (home-page "https://github.com/flying-sheep/get_version")
10838 (synopsis "Version helper in the spirit of versioneer")
10840 "This package provides a version helper that lets you automatically use
10841 the latest @code{vX.X.X} Git tag as the version in your Python package. It
10842 also supports getting the version from Python source distributions or, once
10843 your package is installed, via @code{pkg_resources} (part of
10844 @code{setuptools}).")
10845 (license license:gpl3+)))
10847 (define-public python-legacy-api-wrap
10849 (name "python-legacy-api-wrap")
10854 (uri (pypi-uri "legacy-api-wrap" version))
10857 "06qhp0g543dy98vpa41hwdalvdbsjfc3ldk474yr9sd75mhl8jh3"))))
10858 (build-system python-build-system)
10860 `(("python-get-version" ,python-get-version)
10861 ("python-pytest" ,python-pytest)
10862 ("python-pytest-black" ,python-pytest-black)
10863 ("python-pytest-cov" ,python-pytest-cov)
10864 ("python-setuptools" ,python-setuptools)))
10865 (home-page "https://github.com/flying-sheep/legacy-api-wrap")
10866 (synopsis "Legacy API wrapper")
10867 (description "This module defines a decorator to wrap legacy APIs. The
10868 primary use case is APIs defined before keyword-only parameters existed.")
10869 (license license:gpl3+)))
10871 (define-public python-langdetect
10873 (name "python-langdetect")
10878 (uri (pypi-uri "langdetect" version))
10880 (base32 "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"))))
10881 (build-system python-build-system)
10883 `(("python-six" ,python-six)))
10884 (home-page "https://github.com/Mimino666/langdetect")
10885 (synopsis "Language detection library")
10887 "This library is a port of Nakatani Shuyo's language-detection library
10888 (version from 03/03/2014) to Python.")
10889 (license license:expat)))
10891 (define-public python-pyasn1
10893 (name "python-pyasn1")
10898 (uri (pypi-uri "pyasn1" version))
10901 "1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
10902 (build-system python-build-system)
10903 (home-page "http://pyasn1.sourceforge.net/")
10904 (synopsis "ASN.1 types and codecs")
10906 "This is an implementation of ASN.1 types and codecs in Python. It is
10907 suitable for a wide range of protocols based on the ASN.1 specification.")
10908 (license license:bsd-2)))
10910 (define-public python2-pyasn1
10911 (package-with-python2 python-pyasn1))
10913 (define-public python-pyasn1-modules
10915 (name "python-pyasn1-modules")
10920 (uri (pypi-uri "pyasn1-modules" version))
10923 "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0"))))
10924 (build-system python-build-system)
10926 `(("python-pyasn1" ,python-pyasn1)))
10927 (home-page "https://sourceforge.net/projects/pyasn1/")
10928 (synopsis "ASN.1 codec implementations")
10930 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
10931 implementations of ASN.1-based codecs and protocols.")
10932 (license license:bsd-3)))
10934 (define-public python2-pyasn1-modules
10935 (package-with-python2 python-pyasn1-modules))
10937 (define-public python2-ipaddress
10939 (name "python2-ipaddress")
10943 (uri (pypi-uri "ipaddress" version))
10946 "1qp743h30s04m3cg3yk3fycad930jv17q7dsslj4mfw0jlvf1y5p"))))
10947 (build-system python-build-system)
10949 `(#:python ,python-2))
10950 (home-page "https://github.com/phihag/ipaddress")
10951 (synopsis "IP address manipulation library")
10953 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
10954 in Python. This library is used to create, poke at, and manipulate IPv4 and
10955 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
10956 module to older versions of Python.")
10957 (license license:psfl)))
10959 (define-public python-asn1tools
10961 (name "python-asn1tools")
10962 (version "0.158.0")
10966 (uri (pypi-uri "asn1tools" version))
10968 (base32 "1k88a1azmyvp2ab6qcf2i40dig5abhyn7cmlyhmwwh8kr3syvma0"))))
10969 (build-system python-build-system)
10971 `(("python-bitstruct" ,python-bitstruct)
10972 ("python-diskcache" ,python-diskcache)
10973 ("python-prompt-toolkit" ,python-prompt-toolkit)
10974 ("python-pyparsing" ,python-pyparsing)))
10975 (home-page "https://github.com/eerimoq/asn1tools")
10976 (synopsis "ASN.1 parsing, encoding and decoding")
10977 (description "This package provides ASN.1 parsing, encoding and decoding
10978 for Python, including constraints checking. It supports several
10979 codecs (e.g. BER, PER, UPER, XER) as well as limited C source code generating
10980 for OER and UPER.")
10981 (license license:expat)))
10983 (define-public python2-ipaddr
10985 (name "python2-ipaddr")
10990 (uri (pypi-uri "ipaddr" version))
10992 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
10993 (build-system python-build-system)
10995 `(#:python ,python-2 ;version 2 only
10997 (modify-phases %standard-phases
10999 (lambda _ (invoke "python" "ipaddr_test.py"))))))
11000 (home-page "https://github.com/google/ipaddr-py")
11001 (synopsis "IP address manipulation library")
11003 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
11004 IPv6 addresses and networks.
11006 For new implementations you may prefer to use the standard module
11007 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
11008 versions of Python.")
11009 (license license:asl2.0)))
11011 (define-public python-idna
11013 (name "python-idna")
11018 (uri (pypi-uri "idna" version))
11021 "1xmk3s92d2vq42684p61wixfmh3qpr2mw762w0n6662vhlpqf1xk"))))
11022 (build-system python-build-system)
11023 (home-page "https://github.com/kjd/idna")
11024 (synopsis "Internationalized domain names in applications")
11026 "This is a library to support the Internationalised Domain Names in
11027 Applications (IDNA) protocol as specified in RFC 5891. This version of the
11028 protocol is often referred to as “IDNA2008” and can produce different results
11029 from the earlier standard from 2003. The library is also intended to act as a
11030 suitable drop-in replacement for the “encodings.idna” module that comes with
11031 the Python standard library but currently only supports the older 2003
11033 (license license:bsd-4)))
11035 (define-public python-idna-2.7
11036 (package (inherit python-idna)
11040 (uri (pypi-uri "idna" version))
11043 "05jam7d31767dr12x0rbvvs8lxnpb1mhdb2zdlfxgh83z6k3hjk8"))))))
11046 (define-public python2-idna
11047 (package-with-python2 python-idna))
11049 (define-public python-libsass
11051 (name "python-libsass")
11055 ;; PyPI tarball is missing some test files.
11057 (uri (git-reference
11058 (url "https://github.com/sass/libsass-python")
11060 (file-name (git-file-name name version))
11062 (base32 "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh"))))
11063 (build-system python-build-system)
11066 (modify-phases %standard-phases
11067 ;; Use Guix package of libsass instead of compiling from a checkout.
11068 (add-before 'build 'set-libsass
11070 (setenv "SYSTEM_SASS" (assoc-ref %build-inputs "libsass"))
11073 (lambda* (#:key inputs outputs #:allow-other-keys)
11074 (add-installed-pythonpath inputs outputs)
11075 (invoke "pytest" "sasstests.py"))))))
11077 `(("python-pytest" ,python-pytest)
11078 ("python-werkzeug" ,python-werkzeug)))
11080 `(("libsass" ,libsass)))
11082 `(("python-six" ,python-six)))
11083 (home-page "https://sass.github.io/libsass-python/")
11084 (synopsis "Straightforward binding of libsass for Python")
11086 "This package provides a simple Python extension module @code{sass} which
11087 is binding LibSass.")
11088 (license license:expat)))
11090 (define-public python-idna-ssl
11092 (name "python-idna-ssl")
11097 (uri (pypi-uri "idna-ssl" version))
11100 "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
11101 (build-system python-build-system)
11103 `(#:tests? #f)) ;circular dependency with python-aiohttp
11104 (home-page "https://github.com/aio-libs/idna-ssl")
11105 (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
11106 (description "Patch @code{ssl.match_hostname} for Unicode(idna)
11108 (license license:expat)))
11110 (define-public python-pretend
11112 (name "python-pretend")
11117 (uri (pypi-uri "pretend" version))
11120 "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
11121 (build-system python-build-system)
11122 (home-page "https://github.com/alex/pretend")
11123 (synopsis "Library for stubbing in Python")
11125 "Pretend is a library to make stubbing with Python easier. Stubbing is a
11126 technique for writing tests. You may hear the term mixed up with mocks,
11127 fakes, or doubles. Basically, a stub is an object that returns pre-canned
11128 responses, rather than doing any computation.")
11129 (license license:bsd-3)))
11131 (define-public python2-pretend
11132 (package-with-python2 python-pretend))
11134 (define-public python-pip
11136 (name "python-pip")
11141 (uri (pypi-uri "pip" version))
11144 "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
11145 (build-system python-build-system)
11147 '(#:tests? #f)) ; there are no tests in the pypi archive.
11148 (home-page "https://pip.pypa.io/")
11149 (synopsis "Package manager for Python software")
11151 "Pip is a package manager for Python software, that finds packages on the
11152 Python Package Index (PyPI).")
11153 (license license:expat)))
11155 (define-public python2-pip
11156 (package-with-python2 python-pip))
11158 (define-public python-tlsh
11160 (name "python-tlsh")
11162 (home-page "https://github.com/trendmicro/tlsh")
11166 (uri (git-reference
11167 (url "https://github.com/trendmicro/tlsh")
11168 (commit (string-append "v" version))))
11169 (file-name (git-file-name name version))
11171 (base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"))))
11172 (build-system cmake-build-system)
11174 '(#:out-of-source? #f
11175 #:phases (modify-phases %standard-phases
11178 (lambda* (#:key outputs #:allow-other-keys)
11179 ;; Build and install the Python bindings. The underlying
11180 ;; C++ library is apparently not meant to be installed.
11181 (let ((out (assoc-ref outputs "out")))
11182 (with-directory-excursion "py_ext"
11183 (and (system* "python" "setup.py" "build")
11184 (system* "python" "setup.py" "install"
11185 (string-append "--prefix=" out))))))))))
11186 (inputs `(("python" ,python-wrapper))) ;for the bindings
11187 (synopsis "Fuzzy matching library for Python")
11189 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
11190 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
11191 value which can be used for similarity comparisons. Similar objects have
11192 similar hash values, which allows for the detection of similar objects by
11193 comparing their hash values. The byte stream should have a sufficient amount
11194 of complexity; for example, a byte stream of identical bytes will not generate
11196 (license license:asl2.0)))
11198 (define-public python2-tlsh
11199 (package/inherit python-tlsh
11200 (name "python2-tlsh")
11201 (inputs `(("python" ,python-2)))))
11203 (define-public python-termcolor
11205 (name "python-termcolor")
11210 (uri (pypi-uri "termcolor" version))
11213 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
11214 (build-system python-build-system)
11216 ;; There are no tests.
11218 (home-page "https://pypi.org/project/termcolor/")
11219 (synopsis "ANSII Color formatting for terminal output")
11221 "This package provides ANSII Color formatting for output in terminals.")
11222 (license license:expat)))
11224 (define-public python2-termcolor
11225 (package-with-python2 python-termcolor))
11227 (define-public python-terminaltables
11229 (name "python-terminaltables")
11234 (uri (pypi-uri "terminaltables" version))
11237 "109vhldk6nv1z3hzp4dyqf6rjvlhl0y2k5k7qcm9fcrq5swhxszk"))))
11238 (build-system python-build-system)
11239 (home-page "https://github.com/Robpol86/terminaltables")
11241 "Generate simple tables in terminals from a nested list of strings")
11243 "This package makes it easy to draw tables in terminal/console
11244 applications from a list of lists of strings. It supports multi-line rows.")
11245 (license license:expat)))
11247 (define-public python-libarchive-c
11249 (name "python-libarchive-c")
11253 (uri (pypi-uri "libarchive-c" version))
11256 "0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
11257 (build-system python-build-system)
11259 '(#:phases (modify-phases %standard-phases
11261 'build 'reference-libarchive
11262 (lambda* (#:key inputs #:allow-other-keys)
11263 ;; Retain the absolute file name of libarchive.so.
11264 (let ((libarchive (assoc-ref inputs "libarchive")))
11265 (substitute* "libarchive/ffi.py"
11266 (("find_library\\('archive'\\)")
11267 (string-append "'" libarchive
11268 "/lib/libarchive.so'"))))))
11270 (lambda _ (invoke "pytest" "-vv"))))))
11272 `(("python-mock" ,python-mock)
11273 ("python-pytest" ,python-pytest)))
11275 `(("libarchive" ,libarchive)))
11276 (home-page "https://github.com/Changaco/python-libarchive-c")
11277 (synopsis "Python interface to libarchive")
11279 "This package provides Python bindings to libarchive, a C library to
11280 access possibly compressed archives in many different formats. It uses
11281 Python's @code{ctypes} foreign function interface (FFI).")
11282 (license license:lgpl2.0+)))
11284 (define-public python2-libarchive-c
11285 (package-with-python2 python-libarchive-c))
11287 (define-public python-file
11288 (package/inherit file
11289 (name "python-file")
11290 (build-system python-build-system)
11292 '(#:tests? #f ;no tests
11293 #:configure-flags '("--single-version-externally-managed" "--root=/")
11294 #:phases (modify-phases %standard-phases
11295 (add-before 'build 'change-directory
11299 (add-before 'build 'set-library-file-name
11300 (lambda* (#:key inputs #:allow-other-keys)
11301 (let ((file (assoc-ref inputs "file")))
11302 (substitute* "magic.py"
11303 (("find_library\\('magic'\\)")
11304 (string-append "'" file "/lib/libmagic.so'")))
11306 (inputs `(("file" ,file)))
11307 (native-inputs (if (%current-target-system)
11308 `(("self" ,this-package))
11310 (synopsis "Python bindings to the libmagic file type guesser")
11311 (description "This package provides Python bindings to the libmagic file
11314 Note that this module and the @code{python-magic} module both provide a
11315 @file{magic.py} file; these two modules, which are different and were
11316 developed separately, both serve the same purpose: provide Python bindings for
11319 (define-public python2-file
11320 (package-with-python2 python-file))
11322 (define-public python-debian
11324 (name "python-debian")
11325 (home-page "https://salsa.debian.org/python-debian-team/python-debian")
11329 ;; Use git-fetch, as pypi doesn't include test suite.
11331 (uri (git-reference
11334 (file-name (git-file-name name version))
11337 "0qy6x28bj6yfikhjww932v5xq4mf5bm1iczl7acy4c7zm6mwhqfa"))))
11338 (build-system python-build-system)
11340 `(#:phases (modify-phases %standard-phases
11341 (add-after 'unpack 'remove-debian-specific-tests
11342 ;; python-apt, apt and dpkg are not yet available in guix,
11343 ;; and these tests heavily depend on them.
11345 (delete-file "lib/debian/tests/test_deb822.py")
11346 (delete-file "lib/debian/tests/test_debfile.py")
11349 `(("python-six" ,python-six)
11350 ("python-chardet" ,python-chardet)))
11351 (synopsis "Debian package related modules")
11353 ;; XXX: Use @enumerate instead of @itemize to work around
11354 ;; <http://bugs.gnu.org/21772>.
11355 "This package provides Python modules that abstract many formats of
11356 Debian-related files, such as:
11359 @item Debtags information;
11360 @item @file{debian/changelog} files;
11361 @item packages files, pdiffs;
11362 @item control files of single or multiple RFC822-style paragraphs---e.g.
11363 @file{debian/control}, @file{.changes}, @file{.dsc};
11364 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
11365 contained files and meta-information.
11368 ;; Modules are either GPLv2+ or GPLv3+.
11369 (license license:gpl3+)))
11371 (define-public python-json-spec
11373 (name "python-json-spec")
11378 (uri (pypi-uri "json-spec" version))
11381 "06dpbsq61ja9r89wpa2pzdii47qh3xri9ajdrgn1awfl102znchb"))))
11382 (build-system python-build-system)
11384 `(("python-pathlib" ,python-pathlib)
11385 ("python-six" ,python-six)))
11387 `(("python-pytest" ,python-pytest)))
11388 (home-page "http://py.errorist.io/json-spec")
11390 "JSON Schema, JSON Pointer and JSON Reference for Python")
11392 "This Python library implements several JSON specs, like JSON Schema,
11393 JSON Reference and JSON Pointer.")
11394 (license license:bsd-3)))
11396 (define-public python-fastjsonschema
11398 (name "python-fastjsonschema")
11403 (uri (pypi-uri "fastjsonschema" version))
11405 (base32 "1ln2j60jzyn6p8i8ljygfgrji58hc23452g7nllkcjdk4p93c7v7"))))
11406 (build-system python-build-system)
11408 `(#:tests? #f ; Fail with a strange backtrace ending in importlib.
11410 (modify-phases %standard-phases
11412 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
11414 (invoke "pytest" "-vv" "-m" "not benchmark")))))))
11416 `(("python-colorama" ,python-colorama)
11417 ("python-json-spec" ,python-json-spec)
11418 ("python-jsonschema" ,python-jsonschema)
11419 ("python-pylint" ,python-pylint)
11420 ("python-pytest" ,python-pytest-6)
11421 ("python-pytest-benchmark"
11422 ,python-pytest-benchmark)
11423 ("python-pytest-cache" ,python-pytest-cache)
11424 ("python-validictory" ,python-validictory)))
11426 "https://github.com/horejsek/python-fastjsonschema")
11428 "Fast Python implementation of JSON schema")
11430 "This library implements validation of JSON documents by JSON schema for
11431 drafts 04, 06 and 07.")
11432 (license license:bsd-3)))
11434 (define-public python-nbformat
11436 (name "python-nbformat")
11438 ;; The PyPi release tarball lacks some test cases and test data.
11441 (uri (git-reference
11442 (url "https://github.com/jupyter/nbformat.git")
11446 "033v16cfmxzh3jn5phnil4p3silr49iwh9wiigzhv0crc6sanvwz"))
11447 (file-name (git-file-name name version))))
11448 (build-system python-build-system)
11451 (modify-phases %standard-phases
11453 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
11455 (invoke "pytest" "-vv")))))))
11457 `(("python-ipython-genutils" ,python-ipython-genutils)
11458 ("python-jsonschema" ,python-jsonschema)
11459 ("python-jupyter-core" ,python-jupyter-core)
11460 ("python-traitlets" ,python-traitlets)))
11462 `(("python-pytest" ,python-pytest)
11463 ("python-fastjsonschema" ,python-fastjsonschema) ; This is only active
11464 ; when setting NBFORMAT_VALIDATOR="fastjsonschema", so include it for
11466 ("python-testpath" ,python-testpath)))
11467 (home-page "https://jupyter.org")
11468 (synopsis "Jupyter Notebook format")
11469 (description "This package provides the reference implementation of the
11470 Jupyter Notebook format and Python APIs for working with notebooks.")
11471 (license license:bsd-3)))
11473 (define-public python-bleach
11475 (name "python-bleach")
11480 (uri (pypi-uri "bleach" version))
11482 (base32 "0jqa8f1ni10cyf4h7sjpf8mbqlcbkyvmsnli77qrxdcxvc7m4k1w"))))
11483 (build-system python-build-system)
11485 `(("python-webencodings" ,python-webencodings)
11486 ("python-six" ,python-six)))
11488 `(("python-datrie" ,python-datrie)
11489 ("python-genshi" ,python-genshi)
11490 ("python-lxml" ,python-lxml)
11491 ("python-pytest" ,python-pytest)))
11492 (home-page "https://github.com/mozilla/bleach")
11493 (synopsis "Whitelist-based HTML-sanitizing tool")
11494 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
11495 (license license:asl2.0)))
11497 (define-public python2-bleach
11498 (package-with-python2 python-bleach))
11500 (define-public python-entrypoints
11502 (name "python-entrypoints")
11507 (uri (pypi-uri "entrypoints" version))
11510 "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
11511 (build-system python-build-system)
11512 ;; The package does not come with a setup.py file, so we have to generate
11517 (modify-phases %standard-phases
11518 (add-after 'unpack 'create-setup.py
11520 (call-with-output-file "setup.py"
11523 from setuptools import setup
11524 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
11526 (home-page "https://github.com/takluyver/entrypoints")
11527 (synopsis "Discover and load entry points from installed Python packages")
11528 (description "Entry points are a way for Python packages to advertise
11529 objects with some common interface. The most common examples are
11530 @code{console_scripts} entry points, which define shell commands by
11531 identifying a Python function to run. The @code{entrypoints} module contains
11532 functions to find and load entry points.")
11533 (license license:expat)))
11535 (define-public python2-entrypoints
11536 (package-with-python2 python-entrypoints))
11538 (define-public python-epc
11540 (name "python-epc")
11545 (uri (pypi-uri "epc" version))
11548 "09bx1ln1bwa00917dndlgs4k589h8qx2x080xch5m58p92kjwkd1"))))
11549 (build-system python-build-system)
11551 `(("python-sexpdata" ,python-sexpdata)))
11553 `(("python-nose" ,python-nose)))
11554 (home-page "https://github.com/tkf/python-epc")
11555 (synopsis "Remote procedure call (RPC) stack for Emacs Lisp and Python")
11557 "Python-EPC can call elisp functions from Python and Python functions
11559 (license license:gpl3)))
11561 (define-public python-forex-python
11563 (name "python-forex-python")
11568 (uri (pypi-uri "forex-python" version))
11570 (base32 "1ma8cl1i2dh8aa99pifnlilyy4d1gd1s07fj0yd17wcbpsh532cj"))))
11571 (build-system python-build-system)
11573 ;; Tests are not included in the PyPI tarball. Also, the tests in the
11574 ;; repository require online data.
11577 `(("python-requests" ,python-requests)
11578 ("python-simplejson" ,python-simplejson)))
11579 (home-page "https://github.com/MicroPyramid/forex-python")
11580 (synopsis "Foreign exchange rates and currency conversion")
11582 "@code{python-forex-python} can be used to manipulate foreign
11583 exchange rates and to operate currency conversions.
11587 @item List all currency rates.
11588 @item BitCoin price for all currencies.
11589 @item Converting amount to BitCoins.
11590 @item Get historical rates for any day since 1999.
11591 @item Conversion rate for one currency(ex; USD to INR).
11592 @item Convert amount from one currency to other.('USD 10$' to INR).
11593 @item Currency symbols.
11594 @item Currency names.
11596 (license license:expat)))
11598 (define-public python-simpleeval
11600 (name "python-simpleeval")
11605 (uri (pypi-uri "simpleeval" version))
11607 (base32 "1skvl467kj83rzkhk01i0wm8m5vmh6j5znrfdizn6r18ii45a839"))))
11608 (build-system python-build-system)
11609 (home-page "https://github.com/danthedeckie/simpleeval")
11610 (synopsis "Simple, safe single expression evaluator library")
11612 "This package provides a quick single file library for easily adding
11613 evaluatable expressions into python projects. Say you want to allow a user
11614 to set an alarm volume, which could depend on the time of day, alarm level,
11615 how many previous alarms had gone off, and if there is music playing at the
11617 (license license:expat)))
11619 (define-public python-nbconvert
11621 (name "python-nbconvert")
11626 (uri (pypi-uri "nbconvert" version))
11629 "00lhqaxn481qvk2w5568asqlsnvrw2fm61p1vssx3m7vdnl17g6b"))))
11630 (build-system python-build-system)
11633 (modify-phases %standard-phases
11634 (add-after 'unpack 'fix-paths-and-tests
11636 ;; Use pandoc binary from input.
11637 (substitute* "nbconvert/utils/pandoc.py"
11638 (("'pandoc'") (string-append "'" (which "pandoc") "'")))
11640 (substitute* "nbconvert/exporters/pdf.py"
11641 (("\"xelatex\"") (string-append "\"" (which "xelatex") "\""))
11642 (("\"bibtex\"") (string-append "\"" (which "bibtex") "\"")))
11643 ;; Make sure tests are not skipped.
11644 (substitute* (find-files "." "test_.+\\.py$")
11645 (("@onlyif_cmds_exist\\(('(pandoc|xelatex)'(, )?)+\\)") ""))
11646 ;; Pandoc is never missing, disable test.
11647 (substitute* "nbconvert/utils/tests/test_pandoc.py"
11648 (("import os" all) (string-append all "\nimport pytest"))
11649 (("(.+)(def test_pandoc_available)" all indent def)
11650 (string-append indent "@pytest.mark.skip('disabled by guix')\n"
11652 ;; Not installing pyppeteer, delete test.
11653 (delete-file "nbconvert/exporters/tests/test_webpdf.py")
11654 (substitute* "nbconvert/tests/test_nbconvertapp.py"
11655 (("(.+)(def test_webpdf_with_chromium)" all indent def)
11656 (string-append indent "@pytest.mark.skip('disabled by guix')\n"
11659 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
11661 ;; Some tests invoke the installed nbconvert binary.
11662 (add-installed-pythonpath inputs outputs)
11663 ;; Tries to write to this path.
11664 (unsetenv "JUPYTER_CONFIG_DIR")
11665 ;; Tests depend on templates installed to output.
11666 (setenv "JUPYTER_PATH"
11668 (assoc-ref outputs "out")
11670 (getenv "JUPYTER_PATH")))
11671 ;; Some tests need HOME
11672 (setenv "HOME" "/tmp")
11673 (invoke "pytest" "-vv")))))))
11675 `(("pandoc" ,pandoc)
11676 ;; XXX: Disabled, needs substitute*.
11677 ;;("inkscape" ,inkscape)
11680 `(("python-ipykernel" ,python-ipykernel)
11681 ;; XXX: Disabled, not in guix.
11682 ;;("python-pyppeteer" ,python-pyppeteer)
11683 ("python-pytest" ,python-pytest)
11684 ("python-pytest-cov" ,python-pytest-cov)
11685 ("python-pytest-dependency" ,python-pytest-dependency)
11686 ("texlive" ,(texlive-union (list texlive-adjustbox
11687 texlive-amsfonts/patched
11692 texlive-generic-ulem
11695 texlive-latex-amsmath
11696 texlive-latex-enumitem
11697 texlive-latex-fancyvrb
11698 texlive-latex-float
11699 texlive-latex-fontspec
11700 texlive-latex-geometry
11701 texlive-latex-hyperref
11702 texlive-latex-jknapltx
11704 texlive-latex-oberdiek
11705 texlive-latex-parskip
11706 texlive-latex-trimspaces
11707 texlive-latex-upquote
11715 texlive-zapfding)))))
11717 `(("python-bleach" ,python-bleach)
11718 ("python-defusedxml" ,python-defusedxml)
11719 ("python-entrypoints" ,python-entrypoints)
11720 ("python-jinja2" ,python-jinja2)
11721 ("python-jupyter-core" ,python-jupyter-core)
11722 ("python-mistune" ,python-mistune)
11723 ("python-nbclient" ,python-nbclient)
11724 ("python-nbformat" ,python-nbformat)
11725 ("python-pandocfilters" ,python-pandocfilters)
11726 ("python-pygments" ,python-pygments)
11727 ("python-jupyterlab-pygments" ,python-jupyterlab-pygments)
11728 ("python-testpath" ,python-testpath)
11729 ("python-traitlets" ,python-traitlets)
11730 ;; Required, even if [serve] is not used.
11731 ("python-tornado" ,python-tornado-6)))
11732 (home-page "https://jupyter.org")
11733 (synopsis "Converting Jupyter Notebooks")
11734 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
11735 notebooks to various other formats via Jinja templates. It allows you to
11736 convert an @code{.ipynb} notebook file into various static formats including:
11743 @item Markdown (md)
11744 @item ReStructured Text (rst)
11745 @item executable script
11747 (license license:bsd-3)))
11749 (define-public python-notebook
11751 (name "python-notebook")
11755 (uri (pypi-uri "notebook" version))
11758 "0zfwr87ndjzmdp9adpc9lby1hdqdkjp2q7c9vff3wiw1dj6kkjfb"))))
11759 (build-system python-build-system)
11762 (modify-phases %standard-phases
11764 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
11765 ;; These tests require a browser
11766 (delete-file-recursively "notebook/tests/selenium")
11768 (add-installed-pythonpath inputs outputs)
11769 ;; Some tests do not expect all files to be installed in the
11770 ;; same directory, but JUPYTER_PATH contains multiple entries.
11771 (unsetenv "JUPYTER_PATH")
11772 ;; Some tests need HOME
11773 (setenv "HOME" "/tmp")
11774 (with-directory-excursion "/tmp"
11775 (invoke "pytest" "-vv"
11776 ;; TODO: This tests fails because nbconvert does not
11777 ;; list "python" as a format.
11778 "-k" "not test_list_formats"))))))))
11780 `(("python-argon2-cffi" ,python-argon2-cffi)
11781 ("python-ipykernel" ,python-ipykernel)
11782 ("python-ipython-genutils" ,python-ipython-genutils)
11783 ("python-jinja2" ,python-jinja2)
11784 ("python-jupyter-client" ,python-jupyter-client)
11785 ("python-jupyter-core" ,python-jupyter-core)
11786 ("python-nbconvert" ,python-nbconvert)
11787 ("python-nbformat" ,python-nbformat)
11788 ("python-prometheus-client" ,python-prometheus-client)
11789 ("python-pyzmq" ,python-pyzmq)
11790 ("python-send2trash" ,python-send2trash)
11791 ("python-terminado" ,python-terminado)
11792 ("python-tornado" ,python-tornado-6)
11793 ("python-traitlets" ,python-traitlets)))
11795 `(("python-coverage" ,python-coverage)
11796 ("python-nbval" ,python-nbval)
11797 ("python-pytest" ,python-pytest)
11798 ("python-pytest-cov" ,python-pytest-cov)
11799 ("python-requests" ,python-requests)
11800 ("python-requests-unixsocket" ,python-requests-unixsocket)))
11801 (home-page "https://jupyter.org/")
11802 (synopsis "Web-based notebook environment for interactive computing")
11804 "The Jupyter HTML notebook is a web-based notebook environment for
11805 interactive computing.")
11806 (license license:bsd-3)))
11808 (define-public python-widgetsnbextension
11810 (name "python-widgetsnbextension")
11815 (uri (pypi-uri "widgetsnbextension" version))
11818 "1ismyaxbv9d56yqqqb8xl58hg0iq0bbyy014a53y1g3hfbc8g7q7"))))
11819 (build-system python-build-system)
11821 `(("python-notebook" ,python-notebook)))
11822 (home-page "https://ipython.org")
11823 (synopsis "IPython HTML widgets for Jupyter")
11824 (description "This package provides interactive HTML widgets for Jupyter
11826 (license license:bsd-3)))
11828 (define-public python-ipywidgets
11830 (name "python-ipywidgets")
11835 (uri (pypi-uri "ipywidgets" version))
11838 "1w217j8i53x14l7b05fk300k222zs9vkcjaa1rbrw3sk43k466lz"))))
11839 (build-system python-build-system)
11841 `(("python-ipykernel" ,python-ipykernel)
11842 ("python-ipython" ,python-ipython)
11843 ("python-jupyterlab-widgets" ,python-jupyterlab-widgets)
11844 ("python-nbformat" ,python-nbformat)
11845 ("python-traitlets" ,python-traitlets)
11846 ("python-widgetsnbextension" ,python-widgetsnbextension)))
11848 `(("python-mock" ,python-mock)
11849 ("python-pytest" ,python-pytest)
11850 ("python-pytest-cov" ,python-pytest-cov)))
11851 (home-page "https://ipython.org")
11852 (synopsis "IPython HTML widgets for Jupyter")
11853 (description "Ipywidgets are interactive HTML widgets for Jupyter
11854 notebooks and the IPython kernel. Notebooks come alive when interactive
11855 widgets are used. Users gain control of their data and can visualize changes
11857 (license license:bsd-3)))
11859 (define-public python-jupyter-console
11861 (name "python-jupyter-console")
11866 (uri (pypi-uri "jupyter_console" version))
11869 "06s3kr5vx0l1y1b7fxb04dmrppscl7q69sl9yyfr0d057d1ssvkg"))))
11870 (build-system python-build-system)
11872 `(("python-ipykernel" ,python-ipykernel)
11873 ("python-jupyter-client" ,python-jupyter-client)
11874 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
11875 ("python-pygments" ,python-pygments)))
11877 `(("python-nose" ,python-nose)))
11878 (home-page "https://jupyter.org")
11879 (synopsis "Jupyter terminal console")
11880 (description "This package provides a terminal-based console frontend for
11881 Jupyter kernels. It also allows for console-based interaction with non-Python
11882 Jupyter kernels such as IJulia and IRKernel.")
11883 (license license:bsd-3)))
11885 ;; The python-ipython and python-jupyter-console require each other. To get
11886 ;; the functionality in both packages working, strip down the
11887 ;; python-jupyter-console package when using it as an input to python-ipython.
11888 (define python-jupyter-console-minimal
11889 (package/inherit python-jupyter-console
11890 (name "python-jupyter-console-minimal")
11892 (substitute-keyword-arguments
11893 (package-arguments python-jupyter-console)
11895 `(modify-phases ,phases
11896 (add-after 'install 'delete-bin
11897 (lambda* (#:key outputs #:allow-other-keys)
11898 ;; Delete the bin files, to avoid conflicts in profiles
11899 ;; where python-ipython and python-jupyter-console are
11901 (delete-file-recursively
11903 (assoc-ref outputs "out") "/bin"))))))))
11904 ;; Remove the python-ipython propagated input, to avoid the cycle
11908 (package-propagated-inputs python-jupyter-console)))))
11910 (define-public python-qtconsole
11912 (name "python-qtconsole")
11917 (uri (pypi-uri "qtconsole" version))
11920 "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw"))))
11921 (build-system python-build-system)
11923 ;; XXX: Tests are disabled, because this package needs python-ipython 7,
11924 ;; but we only have the LTS version 5.x. This means that there might be
11925 ;; runtime errors, but since this is a dependency of the Jupyter package,
11926 ;; and Jupyter can be used without the qtconsole we can overlook this for
11930 (modify-phases %standard-phases
11931 (add-before 'check 'pre-check
11933 (setenv "QT_QPA_PLATFORM" "offscreen")
11936 `(("python-ipykernel" ,python-ipykernel)
11937 ("python-ipython" ,python-ipython)))
11939 `(("python-pytest" ,python-pytest)))
11940 (home-page "https://jupyter.org")
11941 (synopsis "Jupyter Qt console")
11942 (description "This package provides a Qt-based console for Jupyter with
11943 support for rich media output.")
11944 (license license:bsd-3)))
11946 (define-public python-jsbeautifier
11948 (name "python-jsbeautifier")
11950 (home-page "https://github.com/beautify-web/js-beautify")
11953 (uri (git-reference
11955 (commit (string-append "v" version))))
11956 (file-name (git-file-name name version))
11959 "0wawb070ki1axb3jc9xvsrgpji52vcfif3zmjzc3z4g98m5xw4kg"))))
11960 (build-system python-build-system)
11962 `(#:phases (modify-phases %standard-phases
11963 (add-after 'unpack 'chdir
11965 ;; The upstream Git repository contains all the code,
11966 ;; but this package only builds the python code.
11969 (add-after 'unpack 'patch-python-six-requirements
11971 (substitute* "python/setup.py"
11976 `(("python-editorconfig" ,python-editorconfig)
11977 ("python-six" ,python-six)))
11979 `(("python-pytest" ,python-pytest)))
11980 (synopsis "JavaScript unobfuscator and beautifier")
11981 (description "Beautify, unpack or deobfuscate JavaScript, leveraging
11982 popular online obfuscators.")
11983 (license license:expat)))
11985 (define-public jupyter
11992 (uri (pypi-uri "jupyter" version))
11995 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
11996 (build-system python-build-system)
11997 (arguments '(#:tests? #f)) ; there are none.
11999 `(("python-ipykernel" ,python-ipykernel)
12000 ("python-ipywidgets" ,python-ipywidgets)
12001 ("python-jupyter-console" ,python-jupyter-console)
12002 ("python-nbconvert" ,python-nbconvert)
12003 ("python-notebook" ,python-notebook)
12004 ("python-qtconsole" ,python-qtconsole)))
12005 (home-page "https://jupyter.org")
12006 (synopsis "Web application for interactive documents")
12008 "The Jupyter Notebook is a web application that allows you to create and
12009 share documents that contain live code, equations, visualizations and
12010 explanatory text. Uses include: data cleaning and transformation, numerical
12011 simulation, statistical modeling, machine learning and much more.")
12012 (license license:bsd-3)))
12014 (define-public python-chardet
12016 (name "python-chardet")
12021 (uri (pypi-uri "chardet" version))
12024 "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"))))
12026 `(("python-hypothesis" ,python-hypothesis)
12027 ("python-pytest" ,python-pytest)
12028 ("python-pytest-runner" ,python-pytest-runner)))
12029 (build-system python-build-system)
12030 ;; XXX: Incompatible with Pytest 4: <https://github.com/chardet/chardet/issues/173>.
12031 (arguments `(#:tests? #f))
12032 (home-page "https://github.com/chardet/chardet")
12033 (synopsis "Universal encoding detector for Python 2 and 3")
12035 "This package provides @code{chardet}, a Python module that can
12036 automatically detect a wide range of file encodings.")
12037 (license license:lgpl2.1+)))
12039 (define-public python2-chardet
12040 (package-with-python2 python-chardet))
12042 (define-public python-charset-normalizer
12044 (name "python-charset-normalizer")
12049 (uri (pypi-uri "charset-normalizer" version))
12051 (base32 "0rr3iv2xw4rz5ijnfqk229fw85cq6p6rhqqsilm0ldzncblfg63h"))))
12052 (build-system python-build-system)
12054 `(("python-pytest" ,python-pytest)))
12055 (home-page "https://github.com/ousret/charset_normalizer")
12056 (synopsis "Universal Charset Detector, alternative to Chardet")
12057 (description "This library helps you read text from an unknown charset
12058 encoding. Motivated by @code{chardet}, it tries to resolve the issue by
12059 taking a new approach. All IANA character set names for which the Python core
12060 library provides codecs are supported.")
12061 (license license:expat)))
12063 (define-public python-docopt
12065 (name "python-docopt")
12070 ;; The release on PyPI does not include tests.
12071 (uri (git-reference
12072 (url "https://github.com/docopt/docopt")
12074 (file-name (git-file-name name version))
12077 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))))
12078 (build-system python-build-system)
12080 `(("python-pytest" ,python-pytest)))
12083 (modify-phases %standard-phases
12085 (lambda _ (invoke "py.test"))))))
12086 (home-page "http://docopt.org")
12087 (synopsis "Command-line interface description language for Python")
12088 (description "This library allows the user to define a command-line
12089 interface from a program's help message rather than specifying it
12090 programmatically with command-line parsers like @code{getopt} and
12092 (license license:expat)))
12094 (define-public python2-docopt
12095 (package-with-python2 python-docopt))
12097 (define-public python-pythondialog
12099 (name "python-pythondialog")
12104 (uri (pypi-uri "pythondialog" version))
12107 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
12108 (build-system python-build-system)
12111 (modify-phases %standard-phases
12112 (add-after 'unpack 'patch-path
12113 (lambda* (#:key inputs #:allow-other-keys)
12114 (let* ((dialog (assoc-ref inputs "dialog")))
12115 ;; Since this library really wants to grovel the search path, we
12116 ;; must hardcode dialog's store path into it.
12117 (substitute* "dialog.py"
12118 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
12119 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
12121 #:tests? #f)) ; no test suite
12123 `(("dialog" ,dialog)))
12124 (home-page "http://pythondialog.sourceforge.net/")
12125 (synopsis "Python interface to the UNIX dialog utility")
12126 (description "A Python wrapper for the dialog utility. Its purpose is to
12127 provide an easy to use, pythonic and comprehensive Python interface to dialog.
12128 This allows one to make simple text-mode user interfaces on Unix-like systems")
12129 (license license:lgpl2.1)
12130 (properties `((python2-variant . ,(delay python2-pythondialog))))))
12132 (define-public python2-pythondialog
12133 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
12136 (version (package-version python-pythondialog))
12139 (uri (pypi-uri "python2-pythondialog" version))
12142 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
12144 (define-public python-configobj
12146 (name "python-configobj")
12150 (uri (pypi-uri "configobj" version))
12153 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
12154 ;; Patch setup.py so it looks for python-setuptools, which is
12155 ;; required to parse the keyword 'install_requires' in setup.py.
12156 (patches (search-patches "python-configobj-setuptools.patch"))))
12157 (build-system python-build-system)
12159 `(("python-six" ,python-six)))
12160 (synopsis "Config file reading, writing and validation")
12161 (description "ConfigObj is a simple but powerful config file reader and
12162 writer: an ini file round tripper. Its main feature is that it is very easy to
12163 use, with a straightforward programmer’s interface and a simple syntax for
12165 (home-page "https://github.com/DiffSK/configobj")
12166 (license license:bsd-3)))
12168 (define-public python2-configobj
12169 (package-with-python2 python-configobj))
12171 (define-public python-configargparse
12173 (name "python-configargparse")
12177 (uri (pypi-uri "ConfigArgParse" version))
12180 "1p1pzpf5qpf80bfxsx1mbw9blyhhypjvhl3i60pbmhfmhvlpplgd"))))
12181 (build-system python-build-system)
12183 `(("python-pyyaml" ,python-pyyaml)))
12186 (modify-phases %standard-phases
12189 ;; Bypass setuptools-shim because one test relies on "setup.py"
12190 ;; being the first argument passed to the python call.
12192 ;; NOTE: Many tests do not run because they rely on Python's
12193 ;; built-in test.test_argparse, but we remove the unit tests from
12194 ;; our Python installation.
12195 (invoke "python" "setup.py" "test"))))))
12196 (synopsis "Replacement for argparse")
12197 (description "A drop-in replacement for argparse that allows options to also
12198 be set via config files and/or environment variables.")
12199 (home-page "https://github.com/bw2/ConfigArgParse")
12200 (license license:expat)))
12202 (define-public python-argparse-manpage
12204 (name "python-argparse-manpage")
12209 (uri (pypi-uri "argparse-manpage" version))
12212 "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p"))))
12213 (build-system python-build-system)
12214 (home-page "https://github.com/praiskup/argparse-manpage")
12215 (synopsis "Build manual page from Python's ArgumentParser object")
12217 "This package provides tools to build manual pages from Python's
12218 @code{ArgumentParser} object.")
12219 (license license:asl2.0)))
12221 (define-public python-contextlib2
12223 (name "python-contextlib2")
12224 (version "0.6.0.post1")
12228 (uri (pypi-uri "contextlib2" version))
12231 "0bhnr2ac7wy5l85ji909gyljyk85n92w8pdvslmrvc8qih4r1x01"))))
12232 (build-system python-build-system)
12233 (home-page "https://contextlib2.readthedocs.org/")
12234 (synopsis "Tools for decorators and context managers")
12235 (description "This module is primarily a backport of the Python
12236 3.2 contextlib to earlier Python versions. Like contextlib, it
12237 provides utilities for common tasks involving decorators and context
12238 managers. It also contains additional features that are not part of
12239 the standard library.")
12240 (properties `((python2-variant . ,(delay python2-contextlib2))))
12241 (license license:psfl)))
12243 (define-public python2-contextlib2
12244 (let ((base (package-with-python2
12245 (strip-python2-variant python-contextlib2))))
12246 (package/inherit base
12248 (substitute-keyword-arguments (package-arguments base)
12250 `(modify-phases ,phases
12252 (lambda _ (invoke "python" "test_contextlib2.py" "-v")))))))
12254 `(("python2-unittest2" ,python2-unittest2))))))
12256 ;; This package is used by python2-pytest via python2-importlib-metadata,
12257 ;; and thus can not depend on python-unittest2 (which depends on pytest).
12258 (define-public python2-contextlib2-bootstrap
12261 python2-contextlib2
12262 (name "python2-contextlib2-bootstrap")
12265 ,@(package-arguments python2-contextlib2)))
12266 (native-inputs '()))))
12268 (define-public python-texttable
12270 (name "python-texttable")
12275 (uri (pypi-uri "texttable" version))
12278 "1x5l77akfc20x52jma9573qp8l8r07q103pm4l0pbizvh4vp1wzg"))))
12279 (build-system python-build-system)
12282 (modify-phases %standard-phases
12284 (lambda _ (invoke "pytest" "tests.py"))))))
12286 `(("python-pytest" ,python-pytest)))
12287 (home-page "https://github.com/foutaise/texttable/")
12288 (synopsis "Python module for creating simple ASCII tables")
12289 (description "Texttable is a Python module for creating simple ASCII
12291 (license license:expat)))
12293 (define-public python2-texttable
12294 (package-with-python2 python-texttable))
12296 (define-public python-atomicwrites
12298 (name "python-atomicwrites")
12302 (uri (pypi-uri "atomicwrites" version))
12305 "19ngcscdf3jsqmpcxn6zl5b6anmsajb6izp1smcd1n02midl9abm"))))
12306 (build-system python-build-system)
12307 (synopsis "Atomic file writes in Python")
12308 (description "Library for atomic file writes using platform dependent tools
12309 for atomic file system operations.")
12310 (home-page "https://github.com/untitaker/python-atomicwrites")
12311 (license license:expat)))
12313 (define-public python2-atomicwrites
12314 (package-with-python2 python-atomicwrites))
12316 (define-public python-qstylizer
12318 (name "python-qstylizer")
12323 (uri (git-reference
12324 (url "https://github.com/blambright/qstylizer")
12326 (file-name (git-file-name name version))
12328 (base32 "0zvkn6g1dn51kkw33v8qrlnwlmf5h6sw1ay3bh14ifjr8b9xsjjz"))))
12329 (build-system python-build-system)
12331 `(#:test-target "pytest"
12333 (modify-phases %standard-phases
12334 (add-before 'build 'set-pbr-version
12336 (setenv "PBR_VERSION" "3.0.1"))))))
12338 `(("python-pbr" ,python-pbr)
12339 ("python-pytest" ,python-pytest)
12340 ("python-pytest-catchlog" ,python-pytest-catchlog)
12341 ("python-pytest-cov" ,python-pytest-cov)
12342 ("python-pytest-mock" ,python-pytest-mock)
12343 ("python-pytest-runner" ,python-pytest-runner)
12344 ("python-pytest-xdist" ,python-pytest-xdist)))
12346 `(("python-inflection" ,python-inflection)
12347 ("python-tinycss" ,python-tinycss)))
12348 (home-page "https://github.com/blambright/qstylizer")
12349 (synopsis "Qt stylesheet generation utility for PyQt/PySide")
12350 (description "@code{qstylizer} is a Python package designed to help with
12351 the construction of PyQt/PySide stylesheets.")
12352 (license license:expat)))
12354 (define-public python-click-threading
12356 (name "python-click-threading")
12360 (uri (pypi-uri "click-threading" version))
12363 "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j"))))
12364 (build-system python-build-system)
12366 `(("python-click" ,python-click)))
12367 (synopsis "Utilities for multithreading in Click")
12368 (description "This package provides utilities for multithreading in Click
12370 (home-page "https://github.com/click-contrib/click-threading")
12371 (license license:expat)))
12373 (define-public python-click-log
12375 (name "python-click-log")
12379 (uri (pypi-uri "click-log" version))
12382 "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
12383 (build-system python-build-system)
12385 `(("python-click" ,python-click)))
12386 (synopsis "Logging for click applications")
12387 (description "This package provides a Python library for logging Click
12389 (home-page "https://github.com/click-contrib/click-log")
12390 (license license:expat)))
12392 (define-public python-click-default-group
12394 (name "python-click-default-group")
12398 (uri (pypi-uri "click-default-group" version))
12401 "015r78jk8gznfw0dphpwaqcx5mhg5822b55w5xbb6i7sin70wmnr"))))
12402 (build-system python-build-system)
12404 `(#:tests? #f)) ; no target
12406 `(("python-click" ,python-click)))
12407 (synopsis "Extends click.Group")
12408 (description "This package extends click.Group to invoke a command without
12409 explicit subcommand name.")
12410 (home-page "https://github.com/click-contrib/click-default-group")
12411 (license license:bsd-3)))
12413 (define-public python-structlog
12415 (name "python-structlog")
12420 (uri (pypi-uri "structlog" version))
12423 "0x1i21vn3xjfa3j9ijbblia5z0jlzc9aqvpqc26sy16i8yjxyydg"))))
12424 (build-system python-build-system)
12427 (modify-phases %standard-phases
12429 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
12431 (add-installed-pythonpath inputs outputs)
12435 `(("python-coverage" ,python-coverage)
12436 ("python-freezegun" ,python-freezegun)
12437 ("python-pretend" ,python-pretend)
12438 ("python-pytest" ,python-pytest)
12439 ("python-pytest-asyncio" ,python-pytest-asyncio)
12440 ("python-simplejson" ,python-simplejson)
12441 ("python-twisted" ,python-twisted)))
12442 (home-page "https://www.structlog.org/")
12443 (synopsis "Structured Logging for Python")
12444 (description "@code{structlog} changes logging in Python by adding structure
12445 to your log entries.")
12446 (license (list license:asl2.0 license:expat))))
12448 (define-public python-apipkg
12450 (name "python-apipkg")
12454 (uri (pypi-uri "apipkg" version))
12457 "1xhak74yj3lqflvpijg15rnkklrigvsp5q7s4as4h6a157d8q8ip"))))
12458 (build-system python-build-system)
12460 `(("python-pytest" ,python-pytest)
12461 ("python-setuptools-scm" ,python-setuptools-scm)))
12462 (synopsis "Namespace control and lazy-import mechanism")
12463 (description "With apipkg you can control the exported namespace of a Python
12464 package and greatly reduce the number of imports for your users. It is a small
12465 pure Python module that works on virtually all Python versions.")
12466 (home-page "https://github.com/pytest-dev/apipkg")
12467 (license license:expat)))
12469 (define-public python-execnet
12471 (name "python-execnet")
12475 (uri (pypi-uri "execnet" version))
12478 "1ia7dvrh0gvzzpi758mx55f9flr16bzdqlmi12swm4ncm4xlyscg"))
12479 (patches (search-patches "python-execnet-read-only-fix.patch"))))
12480 (build-system python-build-system)
12483 (modify-phases %standard-phases
12485 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
12487 (add-installed-pythonpath inputs outputs)
12488 (invoke "pytest" "-vv")))))))
12490 `(("python-pytest" ,python-pytest)
12491 ("python-setuptools-scm" ,python-setuptools-scm)))
12492 (synopsis "Rapid multi-Python deployment")
12493 (description "Execnet provides a share-nothing model with
12494 channel-send/receive communication for distributing execution across many
12495 Python interpreters across version, platform and network barriers. It has a
12496 minimal and fast API targeting the following uses:
12498 @item distribute tasks to (many) local or remote CPUs
12499 @item write and deploy hybrid multi-process applications
12500 @item write scripts to administer multiple environments
12502 (home-page "https://codespeak.net/execnet/")
12503 (license license:expat)))
12505 (define-public python2-execnet
12506 (package-with-python2 python-execnet))
12508 (define-public python-icalendar
12510 (name "python-icalendar")
12514 (uri (pypi-uri "icalendar" version))
12517 "19574j3jwssm2dkqykih4568xqfgjsa3hcd79yl5s2vfys3qvh8g"))))
12518 (build-system python-build-system)
12520 `(("python-dateutil" ,python-dateutil)
12521 ("python-pytz" ,python-pytz)))
12522 (synopsis "Python library for parsing iCalendar files")
12523 (description "The icalendar package is a parser/generator of iCalendar
12524 files for use with Python.")
12525 (home-page "https://github.com/collective/icalendar")
12526 (license license:bsd-2)))
12528 (define-public python-args
12530 (name "python-args")
12534 (uri (pypi-uri "args" version))
12537 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
12538 (build-system python-build-system)
12539 (home-page "https://github.com/kennethreitz/args")
12540 (synopsis "Command-line argument parser")
12542 "This library provides a Python module to parse command-line arguments.")
12543 (license license:bsd-3)))
12545 (define-public python2-args
12546 (package-with-python2 python-args))
12548 (define-public python-clint
12550 (name "python-clint")
12554 (uri (pypi-uri "clint" version))
12557 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
12558 (build-system python-build-system)
12561 (modify-phases %standard-phases
12563 (lambda _ (invoke "py.test" "-v"))))))
12565 `(("python-pytest" ,python-pytest)))
12567 `(("python-args" ,python-args)))
12568 (home-page "https://github.com/kennethreitz/clint")
12569 (synopsis "Command-line interface tools")
12571 "Clint is a Python module filled with a set of tools for developing
12572 command-line applications, including tools for colored and indented
12573 output, progress bar display, and pipes.")
12574 (license license:isc)))
12576 (define-public python2-clint
12577 (package-with-python2 python-clint))
12579 (define-public python-rply
12581 (name "python-rply")
12585 (uri (pypi-uri "rply" version))
12588 "1j81nddvnb145x4p81bnfpyai6g26i2dc1633ycsk025bb18m01a"))))
12589 (build-system python-build-system)
12591 `(("python-appdirs" ,python-appdirs)))
12592 (home-page "https://github.com/alex/rply")
12593 (synopsis "Parser generator for Python")
12595 "This package provides a pure Python based parser generator, that also
12596 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
12597 with a new public API, and RPython support.")
12598 (license license:bsd-3)))
12600 (define-public python2-rply
12601 (package-with-python2 python-rply))
12603 (define-public python-hy
12609 (uri (pypi-uri "hy" version))
12612 "04dfwm336gw61fmgwikvh0cnxk682p19b4w555wl5d7mlym4rwj2"))))
12613 (build-system python-build-system)
12616 (modify-phases %standard-phases
12617 (add-before 'install 'set-HOME
12619 (setenv "HOME" "/tmp") #t))
12622 ;; Tests require write access to HOME.
12623 (setenv "HOME" "/tmp")
12624 (invoke "nosetests"))))))
12626 `(("python-coverage" ,python-coverage)
12627 ("python-nose" ,python-nose)))
12629 `(("python-astor" ,python-astor)
12630 ("python-colorama" ,python-colorama)
12631 ("python-rply" ,python-rply)
12632 ("python-funcparserlib"
12633 ,python-funcparserlib)))
12634 (home-page "http://hylang.org/")
12635 (synopsis "Lisp frontend to Python")
12637 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
12638 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
12639 Python at your fingertips, in Lisp form.")
12640 (license license:expat)))
12642 (define-public python-hissp
12644 (name "python-hissp")
12649 (uri (pypi-uri "hissp" version))
12652 "0yns7f0q699zn2ziagyas2nkndl7mp1hhssv9x9mpl7jxj2p5myw"))))
12653 (build-system python-build-system)
12654 (home-page "https://github.com/gilch/hissp")
12655 (synopsis "It's Python with a Lissp")
12656 (description "Hissp is a modular Lisp implementation that compiles to a
12657 functional subset of Python—Syntactic macro metaprogramming with full access
12658 to the Python ecosystem.")
12659 (license license:asl2.0)))
12661 (define-public python2-functools32
12663 (name "python2-functools32")
12664 (version "3.2.3-2")
12668 (uri (pypi-uri "functools32" version))
12671 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
12672 (build-system python-build-system)
12674 `(#:python ,python-2
12675 #:tests? #f)) ; no test target
12676 (home-page "https://github.com/MiCHiLU/python-functools32")
12678 "Backport of the functools module from Python 3.2.3")
12680 "This package is a backport of the @code{functools} module from Python
12681 3.2.3 for use with older versions of Python and PyPy.")
12682 (license license:expat)))
12684 (define-public python2-subprocess32
12686 (name "python2-subprocess32")
12690 (uri (pypi-uri "subprocess32" version))
12693 "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y"))
12695 (search-patches "python2-subprocess32-disable-input-test.patch"))))
12696 (build-system python-build-system)
12698 `(#:python ,python-2
12699 ;; The test suite fails with Python > 2.7.13:
12700 ;; import test.support
12701 ;; ImportError: No module named support
12704 (modify-phases %standard-phases
12705 (add-after 'unpack 'patch-/bin/sh
12707 (substitute* '("subprocess32.py"
12708 "test_subprocess32.py")
12709 (("/bin/sh") (which "sh")))
12711 (home-page "https://github.com/google/python-subprocess32")
12712 (synopsis "Backport of the subprocess module from Python 3.2")
12714 "This is a backport of the @code{subprocess} standard library module
12715 from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some
12716 new features. On POSIX systems it is guaranteed to be reliable when used
12717 in threaded applications. It includes timeout support from Python 3.3 but
12718 otherwise matches 3.2’s API.")
12719 (license license:psfl)))
12721 (define-public python2-futures
12723 (name "python2-futures")
12728 (uri (pypi-uri "futures" version))
12731 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y"))))
12732 (build-system python-build-system)
12734 `(#:python ,python-2
12736 (modify-phases %standard-phases
12739 (invoke "python" "test_futures.py")
12741 (home-page "https://github.com/agronholm/pythonfutures")
12743 "Backport of the concurrent.futures package from Python 3.2")
12745 "The concurrent.futures module provides a high-level interface for
12746 asynchronously executing callables. This package backports the
12747 concurrent.futures package from Python 3.2")
12748 (license license:bsd-3)))
12750 (define-public python-promise
12752 (name "python-promise")
12757 (uri (pypi-uri "promise" version))
12760 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
12761 (build-system python-build-system)
12762 ;; Tests wants python-futures, which is a python2 only program, and
12763 ;; can't be found by python-promise at test time.
12764 (arguments `(#:tests? #f))
12765 (home-page "https://github.com/syrusakbary/promise")
12766 (synopsis "Promises/A+ implementation for Python")
12768 "Promises/A+ implementation for Python")
12769 (properties `((python2-variant . ,(delay python2-promise))))
12770 (license license:expat)))
12772 (define-public python2-promise
12773 (let ((promise (package-with-python2
12774 (strip-python2-variant python-promise))))
12775 (package/inherit promise
12776 (arguments (substitute-keyword-arguments (package-arguments promise)
12777 ((#:tests? _) #t)))
12779 `(("python2-futures" ,python2-futures)
12780 ("python2-pytest" ,python2-pytest)
12781 ,@(package-native-inputs promise))))))
12783 (define-public python-progressbar2
12785 (name "python-progressbar2")
12790 (uri (pypi-uri "progressbar2" version))
12793 "0b2v3mim90rmfvixkaniz2qrs650sk230rzgd5zhcjfldmlqgxpc"))))
12794 (build-system python-build-system)
12796 `(("python-six" ,python-six)
12797 ("python-utils" ,python-utils)))
12799 `(("python-flake8" ,python-flake8)
12800 ("python-freezegun" ,python-freezegun)
12801 ("python-pycodestyle" ,python-pycodestyle)
12802 ("python-pytest" ,python-pytest)
12803 ("python-pytest-cache" ,python-pytest-cache)
12804 ("python-pytest-cov" ,python-pytest-cov)
12805 ("python-pytest-flakes" ,python-pytest-flakes)
12806 ("python-pytest-pep8" ,python-pytest-pep8)
12807 ("python-sphinx" ,python-sphinx)))
12808 (home-page "https://github.com/WoLpH/python-progressbar")
12809 (synopsis "Text progress bar library for Python")
12811 "This package provides a Python progressbar library to provide
12812 visual (yet text based) progress to long running operations.")
12813 (license license:bsd-3)))
12815 (define-public python-progressbar33
12817 (name "python-progressbar33")
12822 (uri (pypi-uri "progressbar33" version))
12825 "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji"))))
12826 (build-system python-build-system)
12827 (home-page "https://github.com/germangh/python-progressbar")
12828 (synopsis "Text progress bar library for Python")
12830 "This package provides a text progress bar library for Python. This
12831 version only differs from the original @code{progressbar} package in that it
12832 uses relative package imports instead of absolute imports, which is necessary
12833 for the module to work under Python 3.3.")
12834 ;; Either or both of these licenses may be selected.
12835 (license (list license:lgpl2.1+ license:bsd-3))))
12837 (define-public python-colorama
12839 (name "python-colorama")
12844 (uri (pypi-uri "colorama" version))
12846 (base32 "16w62sm95hmh55rqxn4zwdz0bkh3fqm1qnz9cwi3s510iasb4har"))))
12847 (build-system python-build-system)
12848 (synopsis "Colored terminal text rendering for Python")
12849 (description "Colorama is a Python library for rendering colored terminal
12851 (home-page "https://pypi.org/project/colorama/")
12852 (license license:bsd-3)))
12854 (define-public python2-colorama
12855 (package-with-python2 python-colorama))
12857 (define-public python-moto
12859 (name "python-moto")
12860 ;; XXX: Use a pre-release for compatibility with latest botocore & friends.
12861 (version "1.3.16.dev134")
12864 (uri (pypi-uri "moto" version))
12867 "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd"))))
12868 (build-system python-build-system)
12870 `(#:phases (modify-phases %standard-phases
12871 (add-after 'unpack 'patch-hardcoded-executable-names
12873 (substitute* "moto/batch/models.py"
12876 (substitute* (find-files "tests" "\\.py$")
12878 (string-append "#!" (which "bash"))))
12882 (setenv "PYTHONPATH" (string-append "./build/lib:"
12883 (getenv "PYTHONPATH")))
12884 (invoke "pytest" "-vv" "-m" "not network"
12885 ;; These tests require Docker.
12886 "-k" "not test_terminate_job \
12887 and not test_invoke_function_from_sqs_exception"))))))
12889 `(("python-flask" ,python-flask)
12890 ("python-flask-cors" ,python-flask-cors)
12891 ("python-freezegun" ,python-freezegun)
12892 ("python-parameterized" ,python-parameterized)
12893 ("python-pytest" ,python-pytest)
12894 ("python-sure" ,python-sure)))
12896 `(("python-aws-xray-sdk" ,python-aws-xray-sdk)
12897 ("python-boto" ,python-boto)
12898 ("python-boto3" ,python-boto3)
12899 ("python-botocore" ,python-botocore)
12900 ("python-cfn-lint" ,python-cfn-lint)
12901 ("python-cryptography" ,python-cryptography)
12902 ("python-dateutil" ,python-dateutil)
12903 ("python-docker" ,python-docker)
12904 ("python-idna" ,python-idna)
12905 ("python-jinja2" ,python-jinja2)
12906 ("python-jose" ,python-jose)
12907 ("python-jsondiff" ,python-jsondiff)
12908 ("python-mock" ,python-mock)
12909 ("python-pytz" ,python-pytz)
12910 ("python-pyyaml" ,python-pyyaml)
12911 ("python-requests" ,python-requests)
12912 ("python-responses" ,python-responses)
12913 ("python-six" ,python-six)
12914 ("python-sshpubkeys" ,python-sshpubkeys)
12915 ("python-werkzeug" ,python-werkzeug)
12916 ("python-xmltodict" ,python-xmltodict)))
12917 (home-page "https://github.com/spulec/moto")
12918 (synopsis "Mock out the boto library")
12920 "@code{moto} is a library designed to easily mock out the
12921 @code{boto} library.")
12922 (license license:asl2.0)))
12924 (define-public python-rsa
12926 (name "python-rsa")
12931 (uri (pypi-uri "rsa" version))
12934 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
12935 (build-system python-build-system)
12937 `(("python-pyasn1" ,python-pyasn1)))
12938 (synopsis "Pure-Python RSA implementation")
12939 (description "Python-RSA is a pure-Python RSA implementation. It supports
12940 encryption and decryption, signing and verifying signatures, and key
12941 generation according to PKCS#1 version 1.5. It can be used as a Python
12942 library as well as on the command line.")
12943 (home-page "https://stuvel.eu/rsa")
12944 (license license:asl2.0)))
12946 (define-public python2-rsa
12947 (package-with-python2 python-rsa))
12949 (define-public python-pluggy
12951 (name "python-pluggy")
12956 (uri (pypi-uri "pluggy" version))
12959 "1c35qyhvy27q9ih9n899f3h4sdnpgq027dbiilly2qb5cvgarchm"))))
12960 (build-system python-build-system)
12962 `(("python-setuptools-scm" ,python-setuptools-scm)))
12963 (synopsis "Plugin and hook calling mechanism for Python")
12964 (description "Pluggy is an extraction of the plugin manager as used by
12965 Pytest but stripped of Pytest specific details.")
12966 (home-page "https://pypi.org/project/pluggy/")
12967 (properties `((python2-variant . ,(delay python2-pluggy))))
12968 (license license:expat)))
12970 (define-public python2-pluggy
12971 (let ((base (package-with-python2 (strip-python2-variant
12976 `(("python-importlib-metadata" ,python2-importlib-metadata))))))
12978 ;; This package requires python2-importlib-metadata, but that package
12979 ;; ends up needing python2-pluggy via python2-pytest, so we need this
12980 ;; variant to solve the circular dependency.
12981 (define-public python2-pluggy-bootstrap
12985 (name "python2-pluggy-bootstrap")
12988 ,@(package-arguments python2-pluggy)))
12990 `(("python-importlib-metadata" ,python2-importlib-metadata-bootstrap))))))
12992 (define-public python-plumbum
12994 (name "python-plumbum")
12999 (uri (pypi-uri "plumbum" version))
13001 (base32 "1kidj821k79dw064rlxh84xamb9h79ychg3pgj81jlvm5hs48xri"))))
13002 (build-system python-build-system)
13004 `(#:tests? #f)) ;no tests
13006 ;; XXX: Not actually used since there are no tests but required for
13008 `(("python-pytest" ,python-pytest)))
13009 (home-page "https://plumbum.readthedocs.io")
13010 (synopsis "Python shell combinators library")
13012 "Plumbum is a library of tools for replacing shell scripts with Python
13014 (license license:expat)))
13016 (define-public python-deprecation
13018 (name "python-deprecation")
13023 (uri (pypi-uri "deprecation" version))
13026 "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
13027 (build-system python-build-system)
13029 `(("python-packaging" ,python-packaging)))
13031 `(("python-unittest2" ,python-unittest2)))
13032 (home-page "https://deprecation.readthedocs.io/")
13033 (synopsis "Python library to handle automated deprecations")
13035 "This is a library that enables automated deprecations. It offers the
13036 @code{deprecated()} decorator to wrap functions, providing proper warnings
13037 both in documentation and via Python’s warnings system, as well as the
13038 @code{deprecation.fail_if_not_removed()} decorator for test methods to ensure
13039 that deprecated code is eventually removed.")
13040 (license license:asl2.0)))
13042 (define-public python-tox
13044 (name "python-tox")
13049 (uri (pypi-uri "tox" version))
13052 "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb"))))
13053 (build-system python-build-system)
13055 ;; FIXME: Tests require pytest-timeout, which itself requires
13056 ;; pytest>=2.8.0 for installation.
13059 `(("python-filelock" ,python-filelock)
13060 ("python-packaging" ,python-packaging)
13061 ("python-pluggy" ,python-pluggy)
13062 ("python-py" ,python-py)
13063 ("python-six" ,python-six)
13064 ("python-toml" ,python-toml)
13065 ("python-virtualenv" ,python-virtualenv)))
13067 `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
13068 ("python-pytest" ,python-pytest) ; >= 2.3.5
13069 ("python-setuptools-scm" ,python-setuptools-scm)))
13070 (home-page "https://tox.readthedocs.io")
13071 (synopsis "Virtualenv-based automation of test activities")
13072 (description "Tox is a generic virtualenv management and test command line
13073 tool. It can be used to check that a package installs correctly with
13074 different Python versions and interpreters, or run tests in each type of
13075 supported environment, or act as a frontend to continuous integration
13077 (license license:expat)))
13079 (define-public python-jmespath
13081 (name "python-jmespath")
13086 (uri (pypi-uri "jmespath" version))
13089 "0k0765x1mybcrzajh3hiqkl8sy9hs0bmn4900frxy0j3ykvaxqmx"))))
13090 (build-system python-build-system)
13092 `(("python-nose" ,python-nose)))
13093 (synopsis "JSON Matching Expressions")
13094 (description "JMESPath (pronounced “james path”) is a Python library that
13095 allows one to declaratively specify how to extract elements from a JSON
13097 (home-page "https://github.com/jmespath/jmespath.py")
13098 (license license:expat)))
13100 (define-public python2-jmespath
13101 (package-with-python2 python-jmespath))
13103 (define-public python-symengine
13105 (name "python-symengine")
13110 (uri (pypi-uri "symengine" version))
13112 (base32 "1kn1w4dp9mrsq6kzmhf4pjmx3wicxc3dw1mwa924q8g48g77lr4c"))))
13113 (build-system python-build-system)
13116 ("python-cython" ,python-cython)))
13118 `(("symengine" ,symengine)))
13119 (home-page "https://github.com/symengine/symengine.py")
13120 (synopsis "Python library providing wrappers to SymEngine")
13122 "This library provides a Python wrapper to SymEngine, a fast C++ symbolic
13123 manipulation library.")
13124 (license license:expat)))
13126 (define-public python-uncertainties
13128 (name "python-uncertainties")
13133 (uri (pypi-uri "uncertainties" version))
13136 "00z9xl40czmqk0vmxjvmjvwb41r893l4dad7nj1nh6blw3kw28li"))))
13137 (build-system python-build-system)
13138 ;; While there are test files, there is no "tests" directory, so the tests
13140 (arguments '(#:tests? #false))
13142 `(("python-future" ,python-future)))
13144 `(("python-nose" ,python-nose)
13145 ("python-numpy" ,python-numpy)))
13146 (home-page "https://uncertainties-python-package.readthedocs.io/")
13147 (synopsis "Calculations with uncertainties")
13149 "The uncertainties package transparently handles calculations with
13150 numbers with uncertainties. It can also yield the derivatives of any
13152 (license license:bsd-3)))
13154 (define-public python-asteval
13156 (name "python-asteval")
13161 (uri (pypi-uri "asteval" version))
13164 "0f54sd4w1a72ij1bcxs2x7dk9xf8bzclawijf1z18bqx9f96l2gm"))))
13165 (build-system python-build-system)
13167 `(("python-pytest" ,python-pytest)))
13168 (home-page "https://github.com/newville/asteval")
13169 (synopsis "Minimalistic evaluator of Python expressions")
13171 "This package provides a minimalistic evaluator of Python expression
13172 using the @code{ast} module")
13173 (license license:expat)))
13175 (define-public python-lmfit
13177 (name "python-lmfit")
13182 (uri (pypi-uri "lmfit" version))
13185 "0iab33jjb60f8kn0k0cqb0vjp1mdskks2n3kpn97zkw5cvjhq2b7"))))
13186 (build-system python-build-system)
13188 `(("python-asteval" ,python-asteval)
13189 ("python-numpy" ,python-numpy)
13190 ("python-scipy" ,python-scipy)
13191 ("python-uncertainties" ,python-uncertainties)))
13193 `(("python-pytest" ,python-pytest)))
13194 (home-page "https://lmfit.github.io/lmfit-py/")
13195 (synopsis "Least-Squares minimization with bounds and constraints")
13197 "Lmfit provides a high-level interface to non-linear optimization and
13198 curve fitting problems for Python. It builds on and extends many of the
13199 optimization methods of @code{scipy.optimize}. Initially inspired by (and
13200 named for) extending the Levenberg-Marquardt method from
13201 @code{scipy.optimize.leastsq}, lmfit now provides a number of useful
13202 enhancements to optimization and data fitting problems.")
13203 (license license:bsd-3)))
13205 (define-public python-boto
13207 (name "python-boto")
13211 (uri (pypi-uri "boto" version))
13214 "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
13215 (build-system python-build-system)
13217 ;; XXX: This package is unmaintained and has problems with newer versions
13218 ;; of Python 3 as well as test libraries. 'python-moto' still uses a
13219 ;; subset of this library, so keep it around for now, but disable tests.
13222 `(("python-paramiko" ,python-paramiko)
13223 ("python-requests" ,python-requests)))
13224 (home-page "https://github.com/boto/boto")
13225 (synopsis "Python interfaces for Amazon Web Services")
13227 "This package provides various facilities for interacting with Amazon
13228 Web Services through Python.
13230 This software is unmaintained, and new projects should use @code{boto3} instead.")
13231 (license license:expat)))
13233 (define-public python-botocore
13234 ;; Note: When updating botocore, also make sure that boto3 and awscli
13237 (name "python-botocore")
13238 (version "1.19.22")
13242 (uri (pypi-uri "botocore" version))
13245 "0iim86x7c6hqmvd61ygz6x6x9glnsfbnyzv2y67qjdcdx8jpkmw7"))))
13246 (build-system python-build-system)
13248 ;; FIXME: Many tests are failing.
13251 `(("python-dateutil" ,python-dateutil)
13252 ("python-jmespath" ,python-jmespath)
13253 ("python-urllib3" ,python-urllib3)))
13254 (home-page "https://github.com/boto/botocore")
13255 (synopsis "Low-level interface to AWS")
13256 (description "Botocore is a Python library that provides a low-level
13257 interface to the Amazon Web Services (AWS) API.")
13258 (license license:asl2.0)))
13260 (define-public python2-botocore
13261 (package-with-python2 python-botocore))
13263 (define-public python-boto3
13265 (name "python-boto3")
13266 (version "1.16.22")
13267 (home-page "https://github.com/boto/boto3")
13270 (uri (git-reference (url home-page) (commit version)))
13271 (file-name (git-file-name name version))
13274 "0h20hgl4yfl58g75qhb6ibrdmzn47md3srgar7hask14cjmfhfy3"))))
13277 (modify-phases %standard-phases
13278 (add-after 'unpack 'delete-network-tests
13279 ;; Deleting integration tests because they are trying to connect to AWS.
13281 (delete-file-recursively "tests/integration")
13283 (build-system python-build-system)
13285 `(("python-nose" ,python-nose)
13286 ("python-mock" ,python-mock)))
13288 `(("python-botocore" ,python-botocore)
13289 ("python-jmespath" ,python-jmespath)
13290 ("python-s3transfer" ,python-s3transfer)))
13291 (synopsis "AWS SDK for Python")
13293 "Boto3 is a Python library for writing programs that interact with
13294 @acronym{AWS,Amazon Web Services}.")
13295 (license license:asl2.0)))
13297 (define-public python-pyfiglet
13299 (name "python-pyfiglet")
13300 (version "0.8.post1")
13304 (uri (pypi-uri "pyfiglet" version))
13307 "0f9n2076ga2ccsg174k2d7n0z4d44ml96yzc72s6g4nhalbk5hn6"))))
13308 (build-system python-build-system)
13309 (home-page "https://github.com/pwaller/pyfiglet")
13310 (synopsis "Draw ASCII art big letters in Python")
13311 (description "This module lets you draw large letter from ordinary characters
13313 (license license:expat)))
13315 (define-public python-xdo
13317 (name "python-xdo")
13321 (uri (string-append
13322 "http://http.debian.net/debian/pool/main/p/python-xdo/"
13323 "python-xdo_" version ".orig.tar.gz"))
13326 "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
13327 (build-system python-build-system)
13330 (modify-phases %standard-phases
13331 (add-before 'install 'patch-libxdo-path
13332 ;; Hardcode the path of dynamically loaded libxdo library.
13333 (lambda* (#:key inputs #:allow-other-keys)
13334 (let ((libxdo (string-append
13335 (assoc-ref inputs "xdotool")
13336 "/lib/libxdo.so")))
13337 (substitute* "xdo/_xdo.py"
13338 (("find_library\\(\"xdo\"\\)")
13339 (simple-format #f "\"~a\"" libxdo)))
13341 #:tests? #f)) ; no tests provided
13343 `(("python-six" ,python-six)))
13345 `(("xdotool" ,xdotool)
13346 ("libX11" ,libx11)))
13347 (home-page "https://tracker.debian.org/pkg/python-xdo")
13348 (synopsis "Python library for simulating X11 keyboard/mouse input")
13349 (description "Provides bindings to libxdo for manipulating X11 via simulated
13350 input. (Note that this is mostly a legacy library; you may wish to look at
13351 python-xdo for newer bindings.)")
13352 (license license:bsd-3)))
13354 (define-public python2-xdo
13355 (package-with-python2 python-xdo))
13357 (define-public python-mako
13359 (name "python-mako")
13364 (uri (pypi-uri "Mako" version))
13367 "09ywrmhr6gdyfx6d5727wwjnz73i6rklqcb4c14m7sqc830wi5c1"))))
13368 (build-system python-build-system)
13370 `(#:phases (modify-phases %standard-phases
13372 (lambda* (#:key tests? #:allow-other-keys)
13374 (invoke "nosetests" "-v")
13375 (format #t "test suite not run~%"))
13378 `(("python-markupsafe" ,python-markupsafe)))
13380 `(("python-mock" ,python-mock)
13381 ("python-nose" ,python-nose)))
13382 (home-page "https://www.makotemplates.org/")
13383 (synopsis "Templating language for Python")
13384 (description "Mako is a templating language for Python that compiles
13385 templates into Python modules.")
13386 (license license:expat)))
13388 (define-public python2-mako
13389 (package-with-python2 python-mako))
13391 (define-public python-waitress
13393 (name "python-waitress")
13398 (uri (pypi-uri "waitress" version))
13399 (patches (search-patches "python-waitress-fix-tests.patch"))
13402 "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
13403 (build-system python-build-system)
13404 (home-page "https://github.com/Pylons/waitress")
13405 (synopsis "Waitress WSGI server")
13406 (description "Waitress is meant to be a production-quality pure-Python WSGI
13407 server with very acceptable performance.")
13408 (license license:zpl2.1)))
13410 (define-public python2-waitress
13411 (package-with-python2 python-waitress))
13413 (define-public python-whichcraft
13415 (name "python-whichcraft")
13420 (uri (pypi-uri "whichcraft" version))
13423 "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
13424 (build-system python-build-system)
13426 `(("python-pytest" ,python-pytest)))
13427 (home-page "https://github.com/pydanny/whichcraft")
13428 (synopsis "Cross-platform cross-python shutil.which functionality")
13430 "This package provides a shim of the shutil.which function that's
13431 designed to work across multiple versions of Python.")
13432 (license license:bsd-3)))
13434 (define-public python-cookiecutter
13436 (name "python-cookiecutter")
13441 (uri (pypi-uri "cookiecutter" version))
13443 (base32 "0mx49whhwcxmvcak27zr7p7ndzkn3w7psfd7fzh3n91fi1r4v6kb"))))
13444 (build-system python-build-system)
13446 `(("python-freezegun" ,python-freezegun)
13447 ("python-pytest" ,python-pytest)
13448 ("python-pytest-catchlog" ,python-pytest-catchlog)
13449 ("python-pytest-cov" ,python-pytest-cov)
13450 ("python-pytest-mock" ,python-pytest-mock)))
13452 `(("python-binaryornot" ,python-binaryornot)
13453 ("python-click" ,python-click)
13454 ("python-future" ,python-future)
13455 ("python-jinja2" ,python-jinja2)
13456 ("python-jinja2-time" ,python-jinja2-time)
13457 ("python-poyo" ,python-poyo)
13458 ("python-requests" ,python-requests)
13459 ("python-slugify" ,python-slugify)
13460 ("python-text-unidecode" ,python-text-unidecode)
13461 ("python-whichcraft" ,python-whichcraft)))
13462 (home-page "https://github.com/cookiecutter/cookiecutter")
13464 "Command-line utility that creates projects from project templates")
13466 "This package provides a command-line utility that creates projects from
13467 project templates, e.g. creating a Python package project from a Python package
13468 project template.")
13469 (license license:bsd-3)))
13471 (define-public python-pyquery
13473 (name "python-pyquery")
13478 (uri (pypi-uri "pyquery" version))
13481 "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
13482 (build-system python-build-system)
13484 `(("python-webob" ,python-webob)
13485 ("python-webtest" ,python-webtest)))
13487 `(("python-lxml" ,python-lxml)
13488 ("python-cssselect" ,python-cssselect)))
13489 (home-page "https://github.com/gawel/pyquery")
13490 (synopsis "Make jQuery-like queries on xml documents")
13491 (description "pyquery allows you to make jQuery queries on xml documents.
13492 The API is as much as possible the similar to jQuery. pyquery uses lxml for
13493 fast xml and html manipulation.")
13494 (license license:bsd-3)))
13496 (define-public python-anyjson
13498 (name "python-anyjson")
13503 (uri (pypi-uri "anyjson" version))
13506 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
13507 (build-system python-build-system)
13509 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
13510 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
13511 ;; whatever) so this transformation needs to be done before the tests
13512 ;; can be run. Maybe we could add a build step to transform beforehand
13513 ;; but it could be annoying/difficult.
13514 ;; We can enable tests for the Python 2 version, though, and do below.
13516 (home-page "https://bitbucket.org/runeh/anyjson/")
13518 "Wraps best available JSON implementation in a common interface")
13520 "Anyjson loads whichever is the fastest JSON module installed
13521 and provides a uniform API regardless of which JSON implementation is used.")
13522 (license license:bsd-3)
13523 (properties `((python2-variant . ,(delay python2-anyjson))))))
13525 (define-public python2-anyjson
13526 (let ((anyjson (package-with-python2
13527 (strip-python2-variant python-anyjson))))
13528 (package/inherit anyjson
13529 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
13531 ,@(package-arguments anyjson)))
13532 (native-inputs `(("python2-nose" ,python2-nose))))))
13534 (define-public python-amqp
13536 (name "python-amqp")
13541 (uri (pypi-uri "amqp" version))
13544 "1sv600dgqwpimr6i1g59y9hpn50mc236gdqkr7zin13kvlpx0g87"))))
13545 (build-system python-build-system)
13547 `(("python-case" ,python-case)
13548 ("python-pytest-sugar" ,python-pytest-sugar)
13549 ("python-mock" ,python-mock)))
13551 `(("python-vine" ,python-vine)))
13552 (home-page "https://github.com/celery/py-amqp")
13554 "Low-level AMQP client for Python (fork of amqplib)")
13556 "This is a fork of amqplib which was originally written by Barry Pederson.
13557 It is maintained by the Celery project, and used by kombu as a pure python
13558 alternative when librabbitmq is not available.")
13559 (license license:lgpl2.1+)
13560 (properties `((python2-variant . ,(delay python2-amqp))))))
13562 (define-public python2-amqp
13563 (let ((amqp (package-with-python2
13564 (strip-python2-variant python-amqp))))
13565 (package/inherit amqp
13566 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
13567 ;; unmaintained. Weirdly, does not do this on the python 3
13570 ,@(package-arguments amqp))))))
13572 (define-public python-txamqp
13574 (name "python-txamqp")
13579 (uri (pypi-uri "txAMQP" version))
13582 "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4"))))
13583 (build-system python-build-system)
13585 `(("python-six" ,python-six)
13586 ("python-twisted" ,python-twisted)))
13587 (home-page "https://github.com/txamqp/txamqp")
13588 (synopsis "Communicate with AMQP peers and brokers using Twisted")
13590 "This package provides a Python library for communicating with AMQP peers
13591 and brokers using the asynchronous networking framework Twisted. It contains
13592 all the necessary code to connect, send and receive messages to/from an
13593 AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
13594 also includes support for using Thrift RPC over AMQP in Twisted
13596 (license license:asl2.0)))
13598 (define-public python2-txamqp
13599 (package-with-python2 python-txamqp))
13601 (define-public python-kombu
13603 (name "python-kombu")
13608 (uri (pypi-uri "kombu" version))
13611 "15k8f7mzqr049sg9vi48m19vjykviafk3f0p5xzgw9by0x0kyxjj"))))
13612 (build-system python-build-system)
13614 `(("python-mock" ,python-mock)
13615 ("python-case" ,python-case)
13616 ("python-pyro4" ,python-pyro4)
13617 ("python-pytest-sugar" ,python-pytest-sugar)
13618 ("python-pytz" ,python-pytz)))
13620 `(("python-anyjson" ,python-anyjson)
13621 ("python-amqp" ,python-amqp)
13622 ("python-redis" ,python-redis)))
13623 (home-page "https://kombu.readthedocs.io")
13624 (synopsis "Message passing library for Python")
13625 (description "The aim of Kombu is to make messaging in Python as easy as
13626 possible by providing an idiomatic high-level interface for the AMQ protocol,
13627 and also provide proven and tested solutions to common messaging problems.
13628 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
13629 message orientation, queuing, routing, reliability and security, for which the
13630 RabbitMQ messaging server is the most popular implementation.")
13631 (license license:bsd-3)
13632 (properties `((python2-variant . ,(delay python2-kombu))))))
13634 (define-public python2-kombu
13635 (let ((kombu (package-with-python2
13636 (strip-python2-variant python-kombu))))
13637 (package/inherit kombu
13638 (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2.
13639 ;; It works fine on the python3 variant.
13641 ,@(package-arguments kombu)))
13642 (native-inputs `(("python2-unittest2" ,python2-unittest2)
13643 ,@(package-native-inputs kombu))))))
13645 (define-public python-billiard
13647 (name "python-billiard")
13648 (version "3.5.0.5")
13652 (uri (pypi-uri "billiard" version))
13655 "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2"))))
13656 (build-system python-build-system)
13658 `(("python-case" ,python-case)
13659 ("python-pytest" ,python-pytest)))
13660 (home-page "https://github.com/celery/billiard")
13662 "Python multiprocessing fork with improvements and bugfixes")
13664 "Billiard is a fork of the Python 2.7 multiprocessing package. The
13665 multiprocessing package itself is a renamed and updated version of R Oudkerk's
13666 pyprocessing package. This standalone variant is intended to be compatible with
13667 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
13668 (license license:bsd-3)
13669 (properties `((python2-variant . ,(delay python2-billiard))))))
13671 (define-public python2-billiard
13672 (let ((billiard (package-with-python2
13673 (strip-python2-variant python-billiard))))
13674 (package/inherit billiard
13675 (native-inputs `(("python2-unittest2" ,python2-unittest2)
13676 ("python2-mock" ,python2-mock)
13677 ,@(package-native-inputs billiard))))))
13679 (define-public python-celery
13681 (name "python-celery")
13686 (uri (pypi-uri "celery" version))
13689 "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp"))))
13690 (build-system python-build-system)
13692 '(;; TODO The tests fail with Python 3.7
13693 ;; https://github.com/celery/celery/issues/4849
13696 (modify-phases %standard-phases
13697 (add-after 'unpack 'patch-requirements
13699 (substitute* "requirements/test.txt"
13700 (("pytest>=3\\.0,<3\\.3")
13704 `(("python-case" ,python-case)
13705 ("python-pytest" ,python-pytest)))
13707 `(("python-pytz" ,python-pytz)
13708 ("python-billiard" ,python-billiard)
13709 ("python-kombu" ,python-kombu)))
13710 (home-page "https://celeryproject.org")
13711 (synopsis "Distributed Task Queue")
13712 (description "Celery is an asynchronous task queue/job queue based on
13713 distributed message passing. It is focused on real-time operation, but
13714 supports scheduling as well. The execution units, called tasks, are executed
13715 concurrently on a single or more worker servers using multiprocessing,
13716 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
13717 synchronously (wait until ready).")
13718 (license license:bsd-3)
13719 (properties `((python2-variant . ,(delay python2-celery))))))
13721 (define-public python2-celery
13722 (let ((celery (package-with-python2
13723 (strip-python2-variant python-celery))))
13724 (package/inherit celery
13725 (native-inputs `(("python2-unittest2" ,python2-unittest2)
13726 ("python2-mock" ,python2-mock)
13727 ,@(package-native-inputs celery))))))
13729 (define-public python-translitcodec
13731 (name "python-translitcodec")
13736 (uri (pypi-uri "translitcodec" version))
13739 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
13740 (build-system python-build-system)
13742 `(#:tests? #f)) ; no tests provided
13744 "https://github.com/claudep/translitcodec")
13746 "Unicode to 8-bit charset transliteration codec")
13748 "This package contains codecs for transliterating ISO 10646 texts into
13749 best-effort representations using smaller coded character sets (ASCII,
13751 (license license:expat)))
13753 (define-public python2-translitcodec
13754 (package-with-python2 python-translitcodec))
13756 (define-public python-anyqt
13758 (name "python-anyqt")
13763 (uri (pypi-uri "AnyQt" version))
13765 (base32 "0gl2czirzjvhbq963i2awxp8kwbc1grh67lpcwfipyn9w3kdwdj4"))))
13766 (build-system python-build-system)
13768 `(#:tests? #f ;there are no tests
13770 (modify-phases %standard-phases
13771 (add-after 'unpack 'delete-files
13772 ;; Delete files related to other operating systems.
13774 (delete-file "AnyQt/QtMacExtras.py")
13775 (delete-file "AnyQt/QtWinExtras.py")
13777 (home-page "https://github.com/ales-erjavec/anyqt")
13778 (synopsis "PyQt4/PyQt5 compatibility layer")
13779 (description "AnyQt is a PyQt4/PyQt5 compatibility layer.")
13780 (license license:gpl3)))
13782 (define-public python-pyqtgraph
13784 (name "python-pyqtgraph")
13789 (uri (pypi-uri "pyqtgraph" version))
13791 (base32 "0kc7ncv0lr3spni29i9g8nszyr4xinswqi2zzs6v8kqqi593pvyj"))))
13792 (build-system python-build-system)
13795 (modify-phases %standard-phases
13796 (add-before 'check 'set-home-and-qpa
13798 (setenv "HOME" "/tmp")
13799 (setenv "QT_QPA_PLATFORM" "offscreen")
13802 (lambda* (#:key inputs outputs #:allow-other-keys)
13803 (add-installed-pythonpath inputs outputs)
13804 (invoke "pytest" "-vv" "-k"
13805 ;; These tests try to download online data.
13806 (string-append "not test_PolyLineROI"
13807 " and not test_getArrayRegion_axisorder"
13808 " and not test_getArrayRegion"
13809 " and not test_PlotCurveItem"
13810 " and not test_NonUniformImage_colormap"
13811 " and not test_NonUniformImage_lut"
13812 " and not test_ImageItem_axisorder"
13813 " and not test_ImageItem")))))))
13815 `(("python-pytest" ,python-pytest)
13816 ("python-pytest-cov" ,python-pytest-cov)
13817 ("python-pytest-xdist" ,python-pytest-xdist)))
13819 `(("qtbase" ,qtbase-5)))
13821 `(("python-h5py" ,python-h5py)
13822 ("python-numpy" ,python-numpy)
13823 ("python-pyopengl" ,python-pyopengl)
13824 ("python-scipy" ,python-scipy)
13825 ("python-pyqt" ,python-pyqt)))
13826 (home-page "http://www.pyqtgraph.org")
13827 (synopsis "Scientific graphics and GUI library for Python")
13829 "PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2
13830 and PySide6. It is intended for use in mathematics, scientific or engineering
13832 (license license:expat)))
13834 (define-public python-qasync
13836 (name "python-qasync")
13840 ;; There are no tests in the PyPI tarball.
13842 (uri (git-reference
13843 (url "https://github.com/CabbageDevelopment/qasync/")
13844 (commit (string-append "v" version))))
13845 (file-name (git-file-name name version))
13847 (base32 "0va9h6v102d7mxz608banjc0l0v02dq3ywhr5i4nqaxx3qkazc2l"))))
13848 (build-system python-build-system)
13850 `(#:test-target "pytest"
13852 (modify-phases %standard-phases
13853 (add-before 'check 'set-qpa
13855 (setenv "QT_QPA_PLATFORM" "offscreen")
13858 `(("python-pytest" ,python-pytest)
13859 ("python-pytest-runner" ,python-pytest-runner)))
13861 `(("python-pyqt" ,python-pyqt)))
13862 (home-page "https://github.com/CabbageDevelopment/qasync")
13863 (synopsis "Implementation of the PEP 3156 Event-Loop with Qt")
13865 "@code{qasync} allows coroutines to be used in PyQt/PySide applications
13866 by providing an implementation of the PEP 3156 event-loop.")
13867 (license license:bsd-2)))
13869 (define-public python-editor
13871 (name "python-editor")
13876 (uri (pypi-uri "python-editor" version))
13879 "0yrjh8w72ivqxi4i7xsg5b1vz15x8fg51xra7c3bgfyxqnyadzai"))))
13880 (build-system python-build-system)
13882 '(#:tests? #f)) ;XXX: needs a TTY and an editor
13883 (home-page "https://github.com/fmoo/python-editor")
13884 (synopsis "Programmatically open an editor, capture the result")
13886 "python-editor is a library that provides the editor module for
13887 programmatically interfacing with your system's $EDITOR.")
13888 (license license:asl2.0)))
13890 (define-public python2-editor
13891 (package-with-python2 python-editor))
13893 (define-public python-multiprocessing-logging
13895 (name "python-multiprocessing-logging")
13897 (home-page "https://github.com/jruere/multiprocessing-logging")
13900 (uri (git-reference
13902 (commit (string-append "v" version))))
13903 (file-name (git-file-name name version))
13906 "1625wy3djlr3b2fpd3vi822f8gw6b75mnls5a4318dbi9za5pf0y"))))
13907 (build-system python-build-system)
13908 (synopsis "Manage logs from multiple processes")
13910 "This Python module implements a multiprocessing-aware @code{Handler}
13911 that, when set on the root @code{Logger}, will tunnel log records to the
13912 main process so that they are handled correctly.")
13913 (license license:lgpl3+)))
13915 (define-public python-vobject
13917 (name "python-vobject")
13918 (version "0.9.6.1")
13921 (uri (pypi-uri "vobject" version))
13924 "0081g4gngw28j7vw8101jk600wz4gzfrhf5myrqvn2mrfkn2llcn"))))
13925 (build-system python-build-system)
13927 '(;; The test suite relies on some non-portable Windows interfaces.
13930 `(("python-dateutil" ,python-dateutil)
13931 ("python-pyicu" ,python-pyicu)))
13932 (synopsis "Parse and generate vCard and vCalendar files")
13933 (description "Vobject is intended to be a full featured Python package for
13934 parsing and generating vCard and vCalendar files. Currently, iCalendar files
13935 are supported and well tested. vCard 3.0 files are supported, and all data
13936 should be imported, but only a few components are understood in a sophisticated
13938 (home-page "https://eventable.github.io/vobject/")
13939 (license license:asl2.0)))
13941 (define-public python2-vobject
13942 (package-with-python2 python-vobject))
13944 (define-public python-munkres
13946 (name "python-munkres")
13950 (uri (pypi-uri "munkres" version))
13953 "00yvj8bxmhhhhd74v7j0x673is7vizmxwgb3dd5xmnkr74ybyi7w"))))
13954 (build-system python-build-system)
13955 (native-inputs `(("python-pytest" ,python-pytest-6)))
13956 (home-page "https://software.clapper.org/munkres/")
13957 (synopsis "Implementation of the Munkres algorithm")
13958 (description "The Munkres module provides an implementation of the Munkres
13959 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
13960 useful for solving the Assignment Problem.")
13961 (license license:bsd-3)))
13963 (define-public python2-munkres
13964 (package-with-python2 python-munkres))
13966 (define-public python-whoosh
13968 (name "python-whoosh")
13973 (uri (pypi-uri "Whoosh" version))
13976 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
13977 (build-system python-build-system)
13978 (arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
13980 `(("python-pytest" ,python-pytest)))
13981 (home-page "https://bitbucket.org/mchaput/whoosh")
13982 (synopsis "Full text indexing, search, and spell checking library")
13984 "Whoosh is a fast, pure-Python full text indexing, search, and spell
13985 checking library.")
13986 (license license:bsd-2)))
13988 (define-public python2-whoosh
13989 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
13990 (package/inherit whoosh
13992 `(("python2-backport-ssl-match-hostname"
13993 ,python2-backport-ssl-match-hostname)
13994 ,@(package-propagated-inputs whoosh))))))
13996 (define-public python-pathlib
13998 (name "python-pathlib")
14002 (uri (pypi-uri "pathlib" version))
14005 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
14006 (build-system python-build-system)
14007 ;; The tests depend on the internal "test" module, which does not provide
14008 ;; a stable interface.
14009 (arguments `(#:tests? #f))
14010 (home-page "https://pathlib.readthedocs.org/")
14011 (synopsis "Object-oriented file system paths")
14012 (description "Pathlib offers a set of classes to handle file system paths.
14013 It offers the following advantages over using string objects:
14016 @item No more cumbersome use of os and os.path functions. Everything can
14017 be done easily through operators, attribute accesses, and method calls.
14018 @item Embodies the semantics of different path types. For example,
14019 comparing Windows paths ignores casing.
14020 @item Well-defined semantics, eliminating any inconsistencies or
14021 ambiguities (forward vs. backward slashes, etc.).
14024 Note: In Python 3.4, pathlib is now part of the standard library. For other
14025 Python versions please consider python-pathlib2 instead, which tracks the
14026 standard library module. This module (python-pathlib) isn't maintained
14028 (license license:expat)))
14030 (define-public python2-pathlib
14031 (package-with-python2 python-pathlib))
14033 (define-public python2-pathlib2
14035 (name "python2-pathlib2")
14039 (uri (pypi-uri "pathlib2" version))
14042 "0s4qa8c082fdkb17izh4mfgwrjd1n5pya18wvrbwqdvvb5xs9nbc"))))
14043 (build-system python-build-system)
14044 ;; We only need the the Python 2 variant, since for Python 3 our minimum
14045 ;; version is 3.4 which already includes this package as part of the
14046 ;; standard library.
14048 `(#:python ,python-2))
14050 `(("python2-scandir" ,python2-scandir)
14051 ("python2-six" ,python2-six)))
14052 (home-page "https://pypi.org/project/pathlib2/")
14053 (synopsis "Object-oriented file system paths - backport of standard
14055 (description "The goal of pathlib2 is to provide a backport of standard
14056 pathlib module which tracks the standard library module, so all the newest
14057 features of the standard pathlib can be used also on older Python versions.
14059 Pathlib offers a set of classes to handle file system paths. It offers the
14060 following advantages over using string objects:
14063 @item No more cumbersome use of os and os.path functions. Everything can
14064 be done easily through operators, attribute accesses, and method calls.
14065 @item Embodies the semantics of different path types. For example,
14066 comparing Windows paths ignores casing.
14067 @item Well-defined semantics, eliminating any inconsistencies or
14068 ambiguities (forward vs. backward slashes, etc.).
14070 (license license:expat)))
14072 (define-public python2-pathlib2-bootstrap
14075 (inherit python2-pathlib2)
14076 (name "python2-pathlib2-bootstrap")
14078 `(("python2-scandir" ,python2-scandir)
14079 ("python2-six" ,python2-six-bootstrap))))))
14081 (define-public python-jellyfish
14083 (name "python-jellyfish")
14087 (uri (pypi-uri "jellyfish" version))
14090 "0p2s6b30sfffx8sya2i8kz0i0riw9fq1fi0k89s8kdgrmjf0h1h5"))))
14091 (build-system python-build-system)
14093 `(#:tests? #f ; XXX: Tests cannot find C coded version.
14095 (modify-phases %standard-phases
14097 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
14099 (add-installed-pythonpath inputs outputs)
14100 (invoke "pytest" "-vv" "jellyfish/test.py")))))))
14102 `(("python-pytest" ,python-pytest)))
14103 (home-page "https://github.com/jamesturk/jellyfish")
14104 (synopsis "Approximate and phonetic matching of strings")
14105 (description "Jellyfish uses a variety of string comparison and phonetic
14106 encoding algorithms to do fuzzy string matching.")
14107 (license license:bsd-2)))
14109 (define-public python2-unicodecsv
14111 (name "python2-unicodecsv")
14115 ;; The test suite is not included in the PyPi release.
14116 ;; https://github.com/jdunck/python-unicodecsv/issues/19
14117 (uri (git-reference
14118 (url "https://github.com/jdunck/python-unicodecsv")
14120 (file-name (git-file-name name version))
14123 "15hx2k41a2lpv4hcml9zp4cvlx1171mnb5s4s13xc1pxkq3vgdjy"))))
14124 (build-system python-build-system)
14126 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
14127 #:python ,python-2))
14129 `(("python2-unittest2" ,python2-unittest2)))
14130 (home-page "https://github.com/jdunck/python-unicodecsv")
14131 (synopsis "Unicode CSV module for Python 2")
14132 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
14133 module, adding support for Unicode strings.")
14134 (license license:bsd-2)))
14136 (define-public python-pdfminer-six
14138 (name "python-pdfminer-six")
14139 (version "20201018")
14140 ;; There are no tests in the PyPI tarball.
14144 (uri (git-reference
14145 (url "https://github.com/pdfminer/pdfminer.six")
14147 (file-name (git-file-name name version))
14149 (base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr"))))
14150 (build-system python-build-system)
14153 (modify-phases %standard-phases
14154 ;; Tests write to the source tree.
14155 (add-after 'unpack 'make-git-checkout-writable
14157 (for-each make-file-writable (find-files "."))
14161 (invoke "make" "test")))
14162 (add-before 'reset-gzip-timestamps 'make-files-writable
14163 (lambda* (#:key outputs #:allow-other-keys)
14164 (let ((out (assoc-ref outputs "out")))
14165 (for-each make-file-writable
14166 (find-files out "\\.gz$"))
14169 `(("python-chardet" ,python-chardet)
14170 ("python-cryptography" ,python-cryptography)
14171 ("python-sortedcontainers" ,python-sortedcontainers)))
14173 `(("python-nose" ,python-nose)
14174 ("python-tox" ,python-tox)))
14175 (home-page "https://github.com/pdfminer/pdfminer.six")
14176 (synopsis "PDF parser and analyzer")
14177 (description "@code{pdfminer.six} is a community maintained fork of
14178 the original PDFMiner. It is a tool for extracting information from PDF
14179 documents. It focuses on getting and analyzing text data. Pdfminer.six
14180 extracts the text from a page directly from the sourcecode of the PDF. It
14181 can also be used to get the exact location, font or color of the text.")
14182 (license license:expat)))
14184 (define-public python-rarfile
14186 (name "python-rarfile")
14190 (uri (pypi-uri "rarfile" version))
14193 "1882wv9szcm29mnyhjmspyflyr2l7z73srn14w4dlnww49lqfm37"))))
14194 (build-system python-build-system)
14196 `(#:tests? #f ;; The bsdtar utility is very limited and most tests fail.
14198 (modify-phases %standard-phases
14199 (add-after 'unpack 'patch
14200 (lambda* (#:key inputs #:allow-other-keys)
14201 (substitute* "rarfile.py"
14202 ;; Disable unrar and unar, which are unavailable on Guix.
14203 (("(unrar|unar)=True" all tool) (string-append tool "=False"))
14204 ;; Hardcode path to bsdtar
14206 (string-append "\"" (assoc-ref inputs "libarchive") "/bin/bsdtar\"")))
14209 (lambda* (#:key inputs tests? #:allow-other-keys)
14211 (invoke "pytest" "-vv")))))))
14212 (native-inputs `(("python-pytest" ,python-pytest)))
14213 (inputs `(("libarchive" ,libarchive)))
14214 (home-page "https://github.com/markokr/rarfile")
14215 (synopsis "RAR archive reader for Python")
14216 (description "This is Python module for RAR archive reading. The interface
14217 is made as zipfile like as possible.")
14218 (license license:isc)))
14220 (define-public python-rich
14222 (name "python-rich")
14226 (uri (pypi-uri "rich" version))
14229 "1z5m5brcdf3vndpavcqj5nl35xby4x5rfj48klhwqycfqf3g9cqp"))))
14230 (build-system python-build-system)
14233 (modify-phases %standard-phases
14235 (lambda* (#:key inputs tests? #:allow-other-keys)
14237 (copy-recursively (string-append
14238 (assoc-ref inputs "tests") "/tests")
14240 (invoke "python" "-m" "pytest" "-vv")))))))
14242 `(("python-attrs" ,python-attrs)
14243 ("python-colorama" ,python-colorama)
14244 ("python-commonmark" ,python-commonmark)
14245 ("python-ipywidgets" ,python-ipywidgets)
14246 ("python-pygments" ,python-pygments)
14247 ("python-typing-extensions" ,python-typing-extensions)))
14249 `(("python-pytest" ,python-pytest)
14251 ;; The release on pypi comes without tests. We can't build from this
14252 ;; checkout, though, because installation requires an invocation of
14256 (uri (git-reference
14257 (url "https://github.com/willmcgugan/rich")
14258 (commit (string-append "v" version))))
14259 (file-name (git-file-name name version))
14262 "19f4svb363sn5708qkpa6lakmiwzyb25h8kmh7bqrsbbrvi9hr70"))))))
14263 (home-page "https://github.com/willmcgugan/rich")
14264 (synopsis "Render rich text and more to the terminal")
14266 "This is a Python package for rendering rich text, tables, progress bars,
14267 syntax highlighting, markdown and more to the terminal.")
14268 (license license:expat)))
14270 (define-public python-magic
14272 (name "python-magic")
14277 (uri (pypi-uri "python-magic" version))
14280 "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
14281 (file-name (string-append name "-" version "-checkout"))))
14282 (build-system python-build-system)
14284 ;; The tests are unreliable, so don't run them. The tests fail
14285 ;; under Python3 because they were written for Python2 and
14286 ;; contain import statements that do not work in Python3. One of
14287 ;; the tests fails under Python2 because its assertions are
14288 ;; overly stringent; it relies on comparing output strings which
14289 ;; are brittle and can change depending on the version of
14290 ;; libmagic being used and the system on which the test is
14291 ;; running. In my case, under GuixSD 0.10.0, only one test
14292 ;; failed, and it seems to have failed only because the version
14293 ;; of libmagic that is packaged in Guix outputs a slightly
14294 ;; different (but not wrong) string than the one that the test
14297 #:phases (modify-phases %standard-phases
14298 ;; Replace a specific method call with a hard-coded
14299 ;; path to the necessary libmagic.so file in the
14300 ;; store. If we don't do this, then the method call
14301 ;; will fail to find the libmagic.so file, which in
14302 ;; turn will cause any application using
14303 ;; python-magic to fail.
14304 (add-before 'build 'hard-code-path-to-libmagic
14305 (lambda* (#:key inputs #:allow-other-keys)
14306 (let ((file (assoc-ref inputs "file")))
14307 (substitute* "magic.py"
14308 (("ctypes.util.find_library\\('magic'\\)")
14309 (string-append "'" file "/lib/libmagic.so'")))
14311 (add-before 'install 'disable-egg-compression
14313 (let ((port (open-file "setup.cfg" "a")))
14314 (display "\n[easy_install]\nzip_ok = 0\n"
14319 ;; python-magic needs to be able to find libmagic.so.
14322 "https://github.com/ahupp/python-magic")
14324 "File type identification using libmagic")
14326 "This module uses ctypes to access the libmagic file type
14327 identification library. It makes use of the local magic database and
14328 supports both textual and MIME-type output. Note that this module and
14329 the python-file module both provide a \"magic.py\" file; these two
14330 modules, which are different and were developed separately, both serve
14331 the same purpose: to provide Python bindings for libmagic.")
14332 (license license:expat)))
14334 (define-public python2-magic
14335 (package-with-python2 python-magic))
14337 (define-public python2-s3cmd
14339 (name "python2-s3cmd")
14344 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
14345 "s3cmd-" version ".tar.gz"))
14348 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
14349 (build-system python-build-system)
14351 ;; s3cmd is written for python2 only and contains no tests.
14352 `(#:python ,python-2
14355 `(("python2-dateutil" ,python2-dateutil)
14356 ;; The python-file package also provides a magic.py module.
14357 ;; This is an unfortunate state of affairs; however, s3cmd
14358 ;; fails to install if it cannot find specifically the
14359 ;; python-magic package. Thus we include it, instead of using
14360 ;; python-file. Ironically, s3cmd sometimes works better
14361 ;; without libmagic bindings at all:
14362 ;; https://github.com/s3tools/s3cmd/issues/198
14363 ("python2-magic" ,python2-magic)))
14364 (home-page "https://s3tools.org/s3cmd")
14365 (synopsis "Command line tool for S3-compatible storage services")
14367 "S3cmd is a command line tool for uploading, retrieving and managing data
14368 in storage services that are compatible with the Amazon Simple Storage
14369 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
14370 GnuPG encryption, and more. It also supports management of Amazon's
14371 CloudFront content delivery network.")
14372 (license license:gpl2+)))
14374 (define-public python-pkgconfig
14376 (name "python-pkgconfig")
14381 (uri (pypi-uri "pkgconfig" version))
14384 "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb"))))
14385 (build-system python-build-system)
14387 `(("python-nose" ,python-nose)))
14389 `(("pkg-config" ,pkg-config)))
14392 (modify-phases %standard-phases
14393 (add-before 'build 'patch
14394 ;; Hard-code the path to pkg-config.
14396 (substitute* "pkgconfig/pkgconfig.py"
14397 (("cmd = 'pkg-config")
14398 (string-append "cmd = '" (which "pkg-config"))))
14402 (invoke "nosetests" "test.py"))))))
14403 (home-page "https://github.com/matze/pkgconfig")
14404 (synopsis "Python interface for pkg-config")
14405 (description "This module provides a Python interface to pkg-config. It
14406 can be used to find all pkg-config packages, check if a package exists,
14407 check if a package meets certain version requirements, query CFLAGS and
14408 LDFLAGS and parse the output to build extensions with setup.py.")
14409 (license license:expat)))
14411 (define-public python2-pkgconfig
14412 (package-with-python2 python-pkgconfig))
14414 (define-public python-bz2file
14416 (name "python-bz2file")
14421 (uri (pypi-uri "bz2file" version))
14424 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
14425 (build-system python-build-system)
14427 `(#:tests? #f)) ; Tests use deprecated python modules.
14428 (home-page "https://github.com/nvawda/bz2file")
14429 (synopsis "Read and write bzip2-compressed files")
14431 "Bz2file is a Python library for reading and writing bzip2-compressed
14432 files. It contains a drop-in replacement for the I/O interface in the
14433 standard library's @code{bz2} module, including features from the latest
14434 development version of CPython that are not available in older releases.")
14435 (license license:asl2.0)))
14437 (define-public python2-bz2file
14438 (package-with-python2 python-bz2file))
14440 (define-public python-future
14442 (name "python-future")
14447 (uri (pypi-uri "future" version))
14450 "1f2rlqn9rh7adgir52dlbqz69gsab44x0mlm8gf1cs7xvhv54137"))))
14451 (build-system python-build-system)
14452 ;; Many tests connect to the network or are otherwise flawed.
14453 ;; https://github.com/PythonCharmers/python-future/issues/210
14456 (home-page "https://python-future.org")
14457 (synopsis "Single-source support for Python 3 and 2")
14459 "@code{python-future} is the missing compatibility layer between Python 2 and
14460 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
14461 to support both Python 2 and Python 3 with minimal overhead.")
14462 (license license:expat)))
14464 (define-public python2-future
14465 (package-with-python2 python-future))
14467 (define-public python-cysignals
14469 (name "python-cysignals")
14474 (uri (pypi-uri "cysignals" version))
14477 "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
14478 (build-system python-build-system)
14480 `(("python-cython" ,python-cython)
14481 ("python-sphinx" ,python-sphinx)))
14483 `(("pari-gp" ,pari-gp)))
14485 `(#:modules ((guix build python-build-system)
14486 ((guix build gnu-build-system) #:prefix gnu:)
14487 (guix build utils))
14488 ;; FIXME: Tests are executed after installation and currently fail
14489 ;; when not installing into standard locations; the author is working
14493 (modify-phases %standard-phases
14496 (assoc-ref gnu:%standard-phases 'configure)))))
14498 "https://github.com/sagemath/cysignals")
14500 "Handling of interrupts and signals for Cython")
14502 "The cysignals package provides mechanisms to handle interrupts (and
14503 other signals and errors) in Cython code, using two related approaches,
14504 for mixed Cython/Python code or external C libraries and pure Cython code,
14506 (license license:lgpl3+)))
14508 (define-public python2-cysignals
14509 (package-with-python2 python-cysignals))
14511 (define-public python2-shedskin
14513 (name "python2-shedskin")
14518 (uri (string-append "https://github.com/shedskin/shedskin/"
14519 "releases/download/v" version
14520 "/shedskin-" version ".tgz"))
14523 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
14524 (build-system python-build-system)
14526 `(#:python ,python-2
14527 #:phases (modify-phases %standard-phases
14528 (add-after 'unpack 'fix-resulting-include-libs
14529 (lambda* (#:key inputs #:allow-other-keys)
14530 (let ((libgc (assoc-ref inputs "libgc"))
14531 (pcre (assoc-ref inputs "pcre")))
14532 (substitute* "shedskin/makefile.py"
14533 (("variable == 'CCFLAGS':[ ]*")
14534 (string-append "variable == 'CCFLAGS':\n"
14535 " line += ' -I " pcre "/include"
14536 " -I " libgc "/include'"))
14537 (("variable == 'LFLAGS':[ ]*")
14538 (string-append "variable == 'LFLAGS':\n"
14539 " line += ' -L" pcre "/lib"
14540 " -L " libgc "/lib'")))
14542 (inputs `(("pcre" ,pcre)
14544 (home-page "https://shedskin.github.io/")
14545 (synopsis "Experimental Python-2 to C++ Compiler")
14546 (description (string-append "This is an experimental compiler for a subset of
14547 Python. It generates C++ code and a Makefile."))
14548 (license (list license:gpl3 license:bsd-3 license:expat))))
14550 (define-public python-rope
14552 (name "python-rope")
14557 (uri (pypi-uri "rope" version))
14560 "1nlhkmsfvn2p1msrmwqnypnvr993alzawnpc1605q7rfad3xgrk4"))))
14561 (build-system python-build-system)
14562 (home-page "https://github.com/python-rope/rope")
14563 (synopsis "Refactoring library for Python")
14564 (description "Rope is a refactoring library for Python. It facilitates
14565 the renaming, moving and extracting of attributes, functions, modules, fields
14566 and parameters in Python 2 source code. These refactorings can also be applied
14567 to occurrences in strings and comments.")
14568 (license license:lgpl3+)))
14570 (define-public python-py3status
14572 (name "python-py3status")
14577 (uri (pypi-uri "py3status" version))
14579 (base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262"))))
14580 (build-system python-build-system)
14585 (modify-phases %standard-phases
14586 ;; 'file' is used for detection of configuration file encoding
14587 ;; let's make link the dependency to particular input
14588 (add-before 'build 'patch-file-path
14589 (lambda* (#:key inputs #:allow-other-keys)
14590 (let ((file-path (assoc-ref inputs "file")))
14591 (substitute* "py3status/parse_config.py"
14592 (("\\[\"file\", \"-b\"")
14593 (string-append "['" file-path "/bin/file', '-b'")))
14595 #:tests? #f)) ; TODO: Requires many libraries not in Guix.
14596 (home-page "https://github.com/ultrabug/py3status")
14597 (synopsis "Extensible i3status wrapper written in Python")
14598 (description "py3status is an i3status wrapper which extends i3status
14599 functionality in a modular way, allowing you to extend your panel with your
14600 own code, responding to click events and updating clock every second.")
14601 (license license:bsd-3)))
14603 (define-public python-tblib
14605 (name "python-tblib")
14609 (uri (pypi-uri "tblib" version))
14612 "0i136n5pydmd202254wzrdbspkw0br0c9mbxhfs9hpfbahvyx6r2"))))
14613 (build-system python-build-system)
14616 (modify-phases %standard-phases
14619 ;; Upstream runs tests after installation and the package itself
14620 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
14622 (setenv "PYTHONPATH"
14623 (string-append (getcwd) "/build/lib:"
14624 (getenv "PYTHONPATH")))
14625 (invoke "py.test" "-vv" "tests" "README.rst"))))))
14627 `(("python-pytest" ,python-pytest)
14628 ("python-six" ,python-six)))
14629 (home-page "https://github.com/ionelmc/python-tblib")
14630 (synopsis "Traceback serialization library")
14632 "Traceback serialization allows you to:
14635 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
14636 different processes. This allows better error handling when running code over
14637 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
14639 @item Parse traceback strings and raise with the parsed tracebacks.
14641 (license license:bsd-3)))
14643 (define-public python2-tblib
14644 (package-with-python2 python-tblib))
14646 (define-public python-greenlet
14648 (name "python-greenlet")
14652 (uri (pypi-uri "greenlet" version))
14655 "10gllbrcbazxck84nr7dw3js3gq0rxrsr4kkvy5hg542rms2gwn0"))))
14656 (build-system python-build-system)
14657 (home-page "https://greenlet.readthedocs.io/")
14658 (synopsis "Lightweight in-process concurrent programming")
14660 "Greenlet package is a spin-off of Stackless, a version of CPython
14661 that supports micro-threads called \"tasklets\". Tasklets run
14662 pseudo-concurrently (typically in a single or a few OS-level threads) and
14663 are synchronized with data exchanges on \"channels\".")
14664 (license (list license:psfl license:expat))))
14666 (define-public python-objgraph
14668 (name "python-objgraph")
14673 (uri (pypi-uri "objgraph" version))
14676 "19qmqsh984zq1rzzjy4vqnmviaqnymcyl8h7z99pnicbgwnm2adz"))))
14677 (build-system python-build-system)
14679 `(("python-graphviz" ,python-graphviz)))
14681 `(("python-mock" ,python-mock)
14682 ("graphviz" ,graphviz)))
14683 (home-page "https://mg.pov.lt/objgraph/")
14684 (synopsis "Draw Python object reference graphs with graphviz")
14686 "This package provides tools to draw Python object reference graphs with
14688 (license license:expat)))
14690 (define-public python2-objgraph
14691 (package-with-python2 python-objgraph))
14693 (define-public python-gevent
14695 (name "python-gevent")
14699 (uri (pypi-uri "gevent" version))
14702 "10f9y899y9nmq51pv4r1zb51b4w5yxx00sz5whvg9vm956hc432j"))
14703 (modules '((guix build utils)))
14706 ;; unbunding libev and c-ares
14707 (delete-file-recursively "deps")))))
14708 (build-system python-build-system)
14710 `(#:modules ((ice-9 ftw)
14714 (guix build python-build-system))
14715 #:phases (modify-phases %standard-phases
14716 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
14718 (substitute* "src/gevent/subprocess.py"
14719 (("/bin/sh") (which "sh")))
14720 (for-each (lambda (file)
14722 (("/bin/sh") (which "sh"))
14723 (("/bin/true") (which "true"))))
14724 (find-files "src/greentest" "\\.py$"))))
14725 (add-before 'build 'do-not-use-bundled-sources
14727 (setenv "GEVENTSETUP_EMBED" "0")
14729 ;; Prevent building bundled libev.
14730 (substitute* "setup.py"
14731 (("run_make=_BUILDING")
14732 "run_make=False"))))
14733 (add-before 'build 'add-greenlet-on-C_INCLUDE_PATH
14734 (lambda* (#:key inputs #:allow-other-keys)
14735 (let ((greenlet (string-append
14736 (assoc-ref inputs "python-greenlet")
14738 (match (scandir greenlet
14740 (string-prefix? "python" item)))
14742 (setenv "C_INCLUDE_PATH"
14743 (string-append greenlet "/" python ":"
14744 (or (getenv "C_INCLUDE_PATH")
14746 (add-before 'check 'pretend-to-be-CI
14748 ;; A few tests are skipped due to network constraints or
14749 ;; get longer timeouts when running in a CI environment.
14750 ;; Piggy-back on that, as we need the same adjustments.
14751 (setenv "TRAVIS" "1")
14752 (setenv "APPVEYOR" "1")))
14753 (add-before 'check 'adjust-tests
14755 (let ((disabled-tests
14756 '(;; These tests relies on networking which is
14757 ;; not available in the build container.
14758 "test__getaddrinfo_import.py"
14759 "test__server_pywsgi.py"
14760 ;; XXX: These tests borrow functionality from the
14761 ;; Python builtin 'test' module, but it is not
14762 ;; installed with the Guix Python distribution.
14767 "test_threading.py"
14768 "test__threading_2.py"
14769 ;; These tests rely on KeyboardInterrupts which do not
14770 ;; work inside the build container for some reason
14771 ;; (lack of controlling terminal?).
14772 "test_subprocess.py"
14773 "test__issues461_471.py"
14774 ;; TODO: Patch out the tests that use getprotobyname, etc
14775 ;; instead of disabling all the tests from these files.
14776 "test__resolver_dnspython.py"
14777 "test__doctests.py"
14780 "test__execmodules.py")))
14781 (call-with-output-file "skipped_tests.txt"
14783 (format port "~a~%"
14784 (string-join disabled-tests "\n")))))))
14787 ;; Make sure the build directory is on PYTHONPATH.
14788 (setenv "PYTHONPATH"
14790 (getenv "PYTHONPATH") ":"
14792 (car (scandir "build" (cut string-prefix? "lib." <>)))))
14794 ;; Use the build daemons configured number of workers.
14795 (setenv "NWORKERS" (number->string (parallel-job-count)))
14797 (invoke "python" "-m" "gevent.tests" "-unone" "--config"
14798 "known_failures.py" "--ignore" "skipped_tests.txt"))))))
14800 `(("python-greenlet" ,python-greenlet)
14801 ("python-objgraph" ,python-objgraph)
14802 ("python-zope.event" ,python-zope-event)
14803 ("python-zope.interface" ,python-zope-interface)))
14805 `(("python-six" ,python-six)
14808 ("python-dnspython" ,python-dnspython)
14809 ("python-psutil" ,python-psutil)))
14811 `(("c-ares" ,c-ares)
14813 (home-page "https://www.gevent.org/")
14814 (synopsis "Coroutine-based network library")
14816 "@code{gevent} is a coroutine-based Python networking library that uses
14817 @code{greenlet} to provide a high-level synchronous API on top of the
14818 @code{libev} event loop.")
14819 (license license:expat)))
14821 (define-public python-fastimport
14823 (name "python-fastimport")
14828 (uri (pypi-uri "fastimport" version))
14830 (base32 "06gk14qgm9dxx3pzjn0ckdbywc8ial2bjfzddqwlr4bn1nnqkbll"))))
14831 (build-system python-build-system)
14832 (home-page "https://github.com/jelmer/python-fastimport")
14833 (synopsis "VCS fastimport parser and generator in Python")
14834 (description "This package provides a parser for and generator of the Git
14835 @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
14837 (license license:gpl2+)))
14839 (define-public python-twisted
14841 (name "python-twisted")
14845 (uri (pypi-uri "Twisted" version ".tar.bz2"))
14848 "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
14849 (build-system python-build-system)
14851 '(#:tests? #f)) ; FIXME: some tests fail
14853 `(("python-zope-interface" ,python-zope-interface)
14854 ("python-pyhamcrest" ,python-pyhamcrest)
14855 ("python-incremental" ,python-incremental)
14856 ("python-hyperlink" ,python-hyperlink)
14857 ("python-constantly" ,python-constantly)
14858 ("python-automat" ,python-automat)))
14859 (home-page "https://twistedmatrix.com/")
14860 (synopsis "Asynchronous networking framework written in Python")
14862 "Twisted is an extensible framework for Python programming, with special
14863 focus on event-based network programming and multiprotocol integration.")
14864 (license license:expat)))
14866 (define-public python2-twisted
14867 (package-with-python2 python-twisted))
14869 (define-public python-pika
14871 (name "python-pika")
14876 (uri (git-reference
14877 (url "https://github.com/pika/pika")
14879 (file-name (git-file-name name version))
14882 "0cm45xydk2jigydwszwik89qlbk6l3l18sxhzppzqmxw2rdkm22s"))))
14883 (build-system python-build-system)
14885 '(#:phases (modify-phases %standard-phases
14886 (add-before 'check 'disable-live-tests
14888 ;; Disable tests that require RabbitMQ, which is not
14889 ;; yet available in Guix.
14890 (substitute* "setup.cfg"
14891 (("tests/unit,tests/acceptance")
14893 (with-directory-excursion "tests"
14894 (for-each delete-file
14895 '("unit/base_connection_tests.py"
14896 "unit/threaded_test_wrapper_test.py")))))
14899 (invoke "nosetests"))))))
14901 `(("python-mock" ,python-mock)
14902 ("python-nose" ,python-nose)
14904 ;; These are optional at runtime, and provided here for tests.
14905 ("python-gevent" ,python-gevent)
14906 ("python-tornado" ,python-tornado)
14907 ("python-twisted" ,python-twisted)))
14908 (home-page "https://pika.readthedocs.org")
14909 (synopsis "Pure Python AMQP Client Library")
14911 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
14912 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
14913 network support library.")
14914 (license license:bsd-3)))
14916 (define-public python-ply
14918 (name "python-ply")
14923 (uri (pypi-uri "ply" version))
14926 "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
14927 (build-system python-build-system)
14928 (home-page "http://www.dabeaz.com/ply/")
14929 (synopsis "Python Lex & Yacc")
14930 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
14931 It uses LR parsing and does extensive error checking.")
14932 (license license:bsd-3)))
14934 (define-public python-tabulate
14936 (name "python-tabulate")
14940 (uri (pypi-uri "tabulate" version))
14943 "19qkdz8xwk5jxa5xn53mnk76qnh4ysm81vzj664jw1b0azr167gb"))))
14944 (build-system python-build-system)
14946 ;; FIXME: The pypi release tarball is missing a 'test/common.py'
14947 ;; and the latest release is not tagged in the upstream repository.
14949 (home-page "https://bitbucket.org/astanin/python-tabulate")
14950 (synopsis "Pretty-print tabular data")
14952 "Tabulate is a library and command-line utility to pretty-print tabular
14954 (license license:expat)))
14956 (define-public python2-tabulate
14957 (package-with-python2 python-tabulate))
14959 (define-public python-kazoo
14961 (name "python-kazoo")
14966 (uri (pypi-uri "kazoo" version))
14969 "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7"))))
14970 (build-system python-build-system)
14971 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
14973 `(("python-six" ,python-six)))
14974 (home-page "https://kazoo.readthedocs.org")
14975 (synopsis "High-level Zookeeper client library")
14977 "Kazoo is a Python client library for the Apache Zookeeper distributed
14978 application service. It is designed to be easy to use and to avoid common
14979 programming errors.")
14980 (license license:asl2.0)))
14982 (define-public python2-kazoo
14983 (package-with-python2 python-kazoo))
14985 (define-public python-pykafka
14987 (name "python-pykafka")
14991 (uri (pypi-uri "pykafka" version))
14994 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
14995 (build-system python-build-system)
14996 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
14998 `(("python-gevent" ,python-gevent)
14999 ("python-kazoo" ,python-kazoo)
15000 ("python-tabulate" ,python-tabulate)))
15002 `(("librdkafka" ,librdkafka)))
15003 (home-page "https://pykafka.readthedocs.io/")
15004 (synopsis "Apache Kafka client for Python")
15006 "PyKafka is a client for the Apache Kafka distributed messaging system.
15007 It includes Python implementations of Kafka producers and consumers, which
15008 are optionally backed by a C extension built on librdkafka.")
15009 (license license:asl2.0)))
15011 (define-public python-wcwidth
15013 (name "python-wcwidth")
15017 (uri (pypi-uri "wcwidth" version))
15020 "1a1pzds3xzfylm5mnc5f6c1p8kiig0daqjc9gygd9rc3cj53x2zj"))))
15021 (build-system python-build-system)
15022 (home-page "https://github.com/jquast/wcwidth")
15023 (synopsis "Measure number of terminal column cells of wide-character codes")
15024 (description "Wcwidth measures the number of terminal column cells of
15025 wide-character codes. It is useful for those implementing a terminal emulator,
15026 or programs that carefully produce output to be interpreted by one. It is a
15027 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
15028 specified in POSIX.1-2001 and POSIX.1-2008.")
15029 (license license:expat)))
15031 (define-public python2-wcwidth
15032 (package-with-python2 python-wcwidth))
15034 (define-public python2-jsonrpclib
15036 (name "python2-jsonrpclib")
15040 (uri (pypi-uri "jsonrpclib" version))
15043 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
15044 (build-system python-build-system)
15047 #:python ,python-2))
15048 (home-page "https://github.com/joshmarshall/jsonrpclib/")
15049 (synopsis "Implementation of JSON-RPC specification for Python")
15051 "This library is an implementation of the JSON-RPC specification.
15052 It supports both the original 1.0 specification, as well as the
15053 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
15055 (license license:asl2.0)))
15057 (define-public python-chai
15059 (name "python-chai")
15063 (uri (pypi-uri "chai" version))
15066 "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))))
15067 (build-system python-build-system)
15068 (home-page "https://github.com/agoragames/chai")
15069 (synopsis "Mocking framework for Python")
15071 "Chai provides an api for mocking, stubbing and spying your python
15072 objects, patterned after the Mocha library for Ruby.")
15073 (license license:bsd-3)))
15075 (define-public python2-chai
15076 (package-with-python2 python-chai))
15078 (define-public python-inflection
15080 (name "python-inflection")
15083 (origin (method url-fetch)
15084 (uri (pypi-uri "inflection" version))
15087 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
15088 (build-system python-build-system)
15090 `(("python-pytest" ,python-pytest)))
15091 (home-page "https://github.com/jpvanhal/inflection")
15092 (synopsis "Python string transformation library")
15094 "Inflection is a string transformation library. It singularizes
15095 and pluralizes English words, and transforms strings from CamelCase to
15096 underscored string.")
15097 (license license:expat)))
15099 (define-public python2-inflection
15100 (package-with-python2 python-inflection))
15102 (define-public python-pylev
15104 (name "python-pylev")
15108 (uri (pypi-uri "pylev" version))
15111 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
15112 (build-system python-build-system)
15113 (home-page "https://github.com/toastdriven/pylev")
15114 (synopsis "Levenshtein distance implementation in Python")
15115 (description "Pure Python Levenshtein implementation, based off the
15116 Wikipedia code samples at
15117 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
15118 (license license:bsd-3)))
15120 (define-public python2-pylev
15121 (package-with-python2 python-pylev))
15123 (define-public python-cleo
15125 (name "python-cleo")
15129 (uri (pypi-uri "cleo" version))
15132 "17q6wi3q280kxmxzb2iwnnqih2xbljn18v0bjx2ip18p079j43ix"))))
15133 (build-system python-build-system)
15136 ("python-mock" ,python-mock)
15137 ("python-pytest-mock" ,python-pytest-mock)
15138 ("python-pytest" ,python-pytest)))
15140 `(("python-backpack" ,python-backpack)
15141 ("python-clikit" ,python-clikit)
15142 ("python-pastel" ,python-pastel)
15143 ("python-pylev" ,python-pylev)))
15144 (home-page "https://github.com/sdispater/cleo")
15145 (synopsis "Command-line arguments library for Python")
15147 "Cleo allows you to create command-line commands with signature in
15148 docstring and colored output.")
15149 (license license:expat)))
15151 (define-public python2-cleo
15152 (package-with-python2 python-cleo))
15154 (define-public python-tomlkit
15156 (name "python-tomlkit")
15161 (uri (pypi-uri "tomlkit" version))
15163 (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
15164 (build-system python-build-system)
15166 `(("python-pytest" ,python-pytest)
15167 ("python-pyyaml" ,python-pyyaml)))
15168 (home-page "https://github.com/sdispater/tomlkit")
15169 (synopsis "Style-preserving TOML library")
15171 "TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that
15172 preserves all comments, indentations, whitespace and internal element ordering,
15173 and makes them accessible and editable via an intuitive API. It can also
15174 create new TOML documents from scratch using the provided helpers. Part of the
15175 implementation has been adapted, improved, and fixed from Molten.")
15176 (license license:expat)))
15178 (define-public python-shellingham
15180 (name "python-shellingham")
15185 (uri (pypi-uri "shellingham" version))
15187 (base32 "07kmia2hvd2q7wik89m82hig9mqr2faynvy38vxq5fm0ps11jv2p"))))
15188 (build-system python-build-system)
15191 (modify-phases %standard-phases
15192 (add-after 'unpack 'restore-setup.py
15193 ;; setup.py will return in the next release.
15194 ;; <https://github.com/sarugaku/shellingham/issues/33>
15196 (with-output-to-file "setup.py"
15198 (display "from setuptools import setup\nsetup()\n")))
15200 (home-page "https://github.com/sarugaku/shellingham")
15201 (synopsis "Tool to detect surrounding shell")
15203 "Shellingham detects what shell the current Python executable is
15205 (license license:isc)))
15207 (define-public python-memcached
15209 (name "python-memcached")
15214 (uri (pypi-uri "python-memcached" version))
15217 "0kvyapavbirk2x3n1jx4yb9nyigrj1s3x15nm3qhpvhkpqvqdqm2"))
15218 (patches (search-patches "python-memcached-syntax-warnings.patch"))))
15219 (build-system python-build-system)
15220 (propagated-inputs `(("python-six" ,python-six)))
15222 "https://github.com/linsomniac/python-memcached")
15223 (synopsis "Pure python memcached client")
15225 "This software is a pure Python interface to the memcached memory cache
15226 daemon. It is the client side software which allows storing values in one or
15227 more, possibly remote, memcached servers.")
15228 (license license:psfl)))
15230 (define-public python-clikit
15232 (name "python-clikit")
15237 (uri (pypi-uri "clikit" version))
15240 "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4"))))
15241 (build-system python-build-system)
15242 (arguments '(#:tests? #f)) ; no test in the PyPI tarball
15244 `(("python-crashtest" ,python-crashtest)
15245 ("python-pastel" ,python-pastel)
15246 ("python-pylev" ,python-pylev)))
15247 (home-page "https://github.com/sdispater/clikit")
15248 (synopsis "Group of utilities to build command line interfaces")
15250 "CliKit is a group of utilities to build testable command line
15252 (properties `((python2-variant . ,(delay python2-clikit))))
15253 (license license:expat)))
15255 (define-public python2-clikit
15256 (let ((base (package-with-python2 (strip-python2-variant python-clikit))))
15260 `(("python-enum34" ,python2-enum34)
15261 ("python-typing" ,python2-typing)
15262 ,@(package-propagated-inputs base))))))
15264 (define-public python-msgpack-python
15266 (name "python-msgpack-python")
15271 (uri (pypi-uri "msgpack-python" version))
15274 "16wh8qgybmfh4pjp8vfv78mdlkxfmcasg78lzlnm6nslsfkci31p"))))
15275 (build-system python-build-system)
15276 (home-page "https://msgpack.org/")
15277 (synopsis "Package to deserialize messages in MessagePack binary format")
15279 "MessagePack is an efficient binary serialization format. It lets you
15280 exchange data among multiple languages like JSON. But it's faster and
15281 smaller. Small integers are encoded into a single byte, and typical short
15282 strings require only one extra byte in addition to the strings themselves.")
15283 (license license:asl2.0)))
15285 (define-public python-cachy
15287 (name "python-cachy")
15292 (uri (pypi-uri "cachy" version))
15295 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
15296 (build-system python-build-system)
15299 (modify-phases %standard-phases
15301 (lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
15304 `(("memcached" ,memcached)
15305 ("python-fakeredis" ,python-fakeredis)
15306 ("python-flexmock" ,python-flexmock)
15307 ("python-pifpaf" ,python-pifpaf)
15308 ("python-pytest" ,python-pytest)))
15310 `(("python-memcached" ,python-memcached)
15311 ("python-msgpack-python" ,python-msgpack-python)
15312 ("python-redis" ,python-redis)))
15313 (home-page "https://github.com/sdispater/cachy")
15314 (synopsis "Simple yet effective caching library")
15316 "Cachy provides a simple yet effective caching library. A simple but
15317 powerful API: thread-safety; decorator syntax; support for memcached, redis,
15318 database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
15319 (license license:expat)))
15321 (define-public poetry
15325 ;; Poetry can only be built from source with Poetry.
15329 (uri (pypi-uri "poetry" version))
15332 "1dvx08ksv5wnsj45db23921rj136akmcnxa0kmlsddf3wbh6wcka"))))
15333 (build-system python-build-system)
15335 `(#:tests? #f ;; Pypi does not have tests.
15337 (modify-phases %standard-phases
15338 (add-before 'build 'patch-setup-py
15340 (substitute* "setup.py"
15341 ;; Allow newer versions of python-keyring.
15342 (("(keyring>=21.2.0),<22.0.0" _ keyring) keyring)
15343 ;; TODO: remove after the next release cycle,
15344 ;; when packaging has been updated.
15345 (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0"))
15348 `(("python-cachecontrol" ,python-cachecontrol)
15349 ("python-cachy" ,python-cachy)
15350 ("python-cleo" ,python-cleo)
15351 ("python-clikit" ,python-clikit)
15352 ("python-html5lib" ,python-html5lib)
15353 ("python-keyring" ,python-keyring)
15354 ("python-msgpack-transitional" ,python-msgpack-transitional)
15355 ("python-packaging" ,python-packaging)
15356 ("python-pexpect" ,python-pexpect)
15357 ("python-pip" ,python-pip)
15358 ("python-pkginfo" ,python-pkginfo)
15359 ("python-poetry-core" ,python-poetry-core)
15360 ("python-requests" ,python-requests)
15361 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
15362 ("python-shellingham" ,python-shellingham)
15363 ("python-tomlkit" ,python-tomlkit)
15364 ("python-virtualenv" ,python-virtualenv)))
15365 (home-page "https://python-poetry.org")
15366 (synopsis "Python dependency management and packaging made easy")
15367 (description "Poetry is a tool for dependency management and packaging
15368 in Python. It allows you to declare the libraries your project depends on and
15369 it will manage (install/update) them for you.")
15370 (license license:expat)))
15372 (define-public python-lark-parser
15374 (name "python-lark-parser")
15378 (uri (pypi-uri "lark-parser" version))
15381 "1kd61asrb3h9spgsj4bslfbgp8q4271sw3hblk6f2vbbblv8jxcy"))))
15382 (build-system python-build-system)
15383 (home-page "https://github.com/lark-parser/lark")
15384 (synopsis "Multi-language parser for Python")
15386 "Lark is a parser built with a focus on ergonomics, performance and
15387 resilience. Lark can parse all context-free languages. That means it is
15388 capable of parsing almost any programming language out there, and to
15389 some degree most natural languages too.")
15390 (license license:expat)))
15392 (define-public python-libcst
15394 (name "python-libcst")
15398 (uri (pypi-uri "libcst" version))
15401 "05zsc61gsd2pyb6wiyh58zczndxi6rm4d2jl94rpf5cv1fzw6ks8"))))
15402 (build-system python-build-system)
15405 (modify-phases %standard-phases
15406 (add-after 'unpack 'remove-failing-tests
15408 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>.
15409 (delete-file "libcst/tests/test_fuzz.py")
15410 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>.
15411 (delete-file "libcst/tests/test_pyre_integration.py")
15412 (delete-file "libcst/codemod/tests/test_codemod_cli.py")
15413 (delete-file "libcst/metadata/tests/test_full_repo_manager.py")
15414 (delete-file "libcst/metadata/tests/test_type_inference_provider.py")
15416 (add-before 'check 'generate-test-data
15418 (setenv "PYTHONPATH" (string-append (getcwd) ":" (getenv "PYTHONPATH")))
15419 (invoke "python" "-m" "libcst.codegen.generate" "visitors")
15420 (invoke "python" "-m" "libcst.codegen.generate" "return_types")))
15423 (invoke "python" "-m" "unittest")
15426 `(("python-black" ,python-black)
15427 ("python-isort" ,python-isort)))
15429 `(("python-typing-extensions" ,python-typing-extensions)
15430 ("python-typing-inspect" ,python-typing-inspect)
15431 ("python-pyyaml" ,python-pyyaml)))
15432 (home-page "https://github.com/Instagram/LibCST")
15433 (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python")
15435 "LibCST parses Python source code as a CST tree that keeps all
15436 formatting details (comments, whitespaces, parentheses, etc). It's useful
15437 for building automated refactoring (codemod) applications and linters.
15438 LibCST creates a compromise between an Abstract Syntax Tree (AST) and
15439 a traditional Concrete Syntax Tree (CST). By carefully reorganizing and
15440 naming node types and fields, LibCST creates a lossless CST that looks and
15441 feels like an AST.")
15442 (license (list license:expat
15443 ;; Some files unde libcst/_parser/ are under Python Software
15444 ;; Foundation license (see LICENSE file for details)
15446 ;; libcst/_add_slots.py
15449 (define-public python-typing-inspect
15451 (name "python-typing-inspect")
15455 (uri (pypi-uri "typing_inspect" version))
15458 "1dzs9a1pr23dhbvmnvms2jv7l7jk26023g5ysf0zvnq8b791s6wg"))))
15459 (build-system python-build-system)
15461 `(("python-mypy-extensions" ,python-mypy-extensions)
15462 ("python-typing-extensions" ,python-typing-extensions)))
15463 (home-page "https://github.com/ilevkivskyi/typing_inspect")
15464 (synopsis "API for inspection of types in the Python @code{typing} module")
15466 "The @code{typing_inspect} module defines experimental API for runtime
15467 inspection of types defined in the Python standard typing module.")
15468 (license license:expat)))
15470 (define-public python-lazy-object-proxy
15472 (name "python-lazy-object-proxy")
15476 (uri (pypi-uri "lazy-object-proxy" version))
15479 "0hwh29m9wa582ramj30p4pysckdrmki1z1b8iaaxk6mpfx2kc8wp"))))
15481 `(("python-setuptools-scm" ,python-setuptools-scm)))
15482 (build-system python-build-system)
15483 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
15484 (synopsis "Lazy object proxy for python")
15486 "Lazy object proxy is an object that wraps a callable but defers the call
15487 until the object is actually required, and caches the result of said call.")
15488 (license license:bsd-2)))
15490 (define-public python2-lazy-object-proxy
15491 (package-with-python2 python-lazy-object-proxy))
15493 (define-public python-dnspython
15495 (name "python-dnspython")
15499 (uri (pypi-uri "dnspython" version ".zip"))
15502 "1m0xvyby8baaxp6pfm0fgq8d2pq5dd8qm8bzfbrs009jaw5pza74"))))
15503 (build-system python-build-system)
15504 (native-inputs `(("unzip" ,unzip)))
15505 (arguments '(#:tests? #f)) ; XXX: requires internet access
15506 (home-page "https://www.dnspython.org")
15507 (synopsis "DNS toolkit for Python")
15509 "dnspython is a DNS toolkit for Python. It supports almost all record
15510 types. It can be used for queries, zone transfers, and dynamic updates.
15511 It supports TSIG authenticated messages and EDNS0.")
15512 (license license:expat)))
15514 (define-public python-dnspython-1.16
15516 (inherit python-dnspython)
15520 (uri (string-append "http://www.dnspython.org/kits/"
15521 version "/dnspython-" version ".tar.gz"))
15524 "1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
15525 (native-inputs '())))
15527 (define-public python2-dnspython-1.16
15528 (package-with-python2 python-dnspython-1.16))
15530 (define-public python-py3dns
15532 (name "python-py3dns")
15537 (uri (pypi-uri "py3dns" version))
15540 "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz"))))
15541 (build-system python-build-system)
15542 ;; This package wants to read /etc/resolv.conf. We can't patch it without
15543 ;; removing functionality so we copy from Nix and "just don't build it".
15546 (modify-phases %standard-phases
15547 (add-after 'unpack 'patch-source
15549 (substitute* "setup.py"
15550 (("import DNS") "")
15551 (("DNS.__version__") (string-append "\"" ,version "\"")))
15553 #:tests? #f)) ; Also skip the tests.
15554 (home-page "https://launchpad.net/py3dns")
15555 (synopsis "Python 3 DNS library")
15556 (description "This Python 3 module provides a DNS API for looking up DNS
15557 entries from within Python 3 modules and applications. This module is a
15558 simple, lightweight implementation.")
15559 (license license:psfl)))
15561 (define-public python-email-validator
15563 (name "python-email-validator")
15566 (origin (method url-fetch)
15567 (uri (pypi-uri "email_validator" version))
15570 "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
15571 (build-system python-build-system)
15574 (modify-phases %standard-phases
15575 (add-before 'build 'use-dnspython
15577 (substitute* "setup.py"
15578 (("dnspython3") "dnspython"))
15581 `(("python-dnspython" ,python-dnspython)
15582 ("python-idna" ,python-idna)))
15583 (home-page "https://github.com/JoshData/python-email-validator")
15584 (synopsis "Email address validation library for Python")
15586 "This library validates email address syntax and deliverability.")
15587 (license license:cc0)))
15589 (define-public python2-email-validator
15590 (package-with-python2 python-email-validator))
15592 (define-public python-ukpostcodeparser
15594 (name "python-ukpostcodeparser")
15598 (uri (pypi-uri "UkPostcodeParser" version))
15601 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
15602 (build-system python-build-system)
15603 (home-page "https://github.com/hamstah/ukpostcodeparser")
15604 (synopsis "UK Postcode parser for Python")
15606 "This library provides the @code{parse_uk_postcode} function for
15607 parsing UK postcodes.")
15608 (license license:expat)))
15610 (define-public python2-ukpostcodeparser
15611 (package-with-python2 python-ukpostcodeparser))
15613 (define-public python-faker
15615 (name "python-faker")
15619 (uri (pypi-uri "Faker" version))
15622 "13qq485ydxmdnqn3xbfv1xfyqbf9qfnfw33v1vw5l6jyy9p8cgrd"))))
15623 (build-system python-build-system)
15626 (modify-phases %standard-phases
15628 (lambda _ (invoke "python" "-m" "pytest" "-v"))))))
15631 ("python-freezegun" ,python-freezegun)
15632 ("python-pytest" ,python-pytest)
15633 ("python-random2" ,python-random2)
15634 ("python-ukpostcodeparser" ,python-ukpostcodeparser)
15635 ("python-validators" ,python-validators)))
15637 `(("python-dateutil" ,python-dateutil)
15638 ("python-text-unidecode" ,python-text-unidecode)))
15639 (home-page "https://github.com/joke2k/faker")
15640 (synopsis "Python package that generates fake data")
15642 "Faker is a Python package that generates fake data such as names,
15643 addresses, and phone numbers.")
15644 (license license:expat)
15645 (properties `((python2-variant . ,(delay python2-faker))))))
15647 ;; Faker 4.0 dropped Python 2 support, so we stick with this older version here.
15648 (define-public python2-faker
15649 (let ((base (package-with-python2 (strip-python2-variant
15656 (uri (pypi-uri "Faker" version))
15659 "11cr0qvspkdh6198rqy56qildk7bnp6llj8kyy1dan5sp5n4dxy7"))))
15661 `(("python-mock" ,python2-mock)
15662 ,@(package-native-inputs base)))
15664 `(("python2-ipaddress" ,python2-ipaddress)
15665 ("python2-six" ,python2-six)
15666 ,@(package-propagated-inputs base))))))
15668 (define-public python-pyaml
15670 (name "python-pyaml")
15671 (version "18.11.0")
15674 (uri (pypi-uri "pyaml" version))
15677 "0fi604ix8lbpj1266q7js6szm771saprdzzcdwmj43wy83694qmr"))))
15678 (build-system python-build-system)
15680 `(("python-unidecode" ,python-unidecode)))
15682 `(("python-pyyaml" ,python-pyyaml)))
15683 (home-page "https://github.com/mk-fg/pretty-yaml")
15684 (synopsis "YAML pretty-print library for Python")
15686 "pyaml is a PyYAML based python module to produce pretty and readable
15687 YAML-serialized data.")
15688 (license license:wtfpl2)))
15690 (define-public python2-pyaml
15691 (package-with-python2 python-pyaml))
15693 (define-public python-backpack
15695 (name "python-backpack")
15700 (uri (pypi-uri "backpack" version))
15703 "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
15704 (build-system python-build-system)
15706 `(("python-pytest" ,python-pytest)
15707 ("python-nose" ,python-nose)))
15709 `(("python-simplejson" ,python-simplejson)))
15710 (home-page "https://github.com/sdispater/backpack")
15711 (synopsis "Utilities for working with Python collections")
15712 (description "Backpack provides some useful utilities for working with
15713 collections of data.")
15714 (license license:expat)))
15716 (define-public python2-backpack
15717 (package-with-python2 python-backpack))
15719 (define-public python-prompt-toolkit
15721 (name "python-prompt-toolkit")
15726 (uri (pypi-uri "prompt_toolkit" version))
15728 (base32 "1g1kq1aimhm23k2dmlmnznfzc83l6ly65g0h32hqz8injcdz3d71"))))
15729 (build-system python-build-system)
15732 (modify-phases %standard-phases
15734 (add-after 'install 'post-install-check
15735 (lambda* (#:key inputs outputs #:allow-other-keys)
15736 ;; HOME is needed for the test
15737 ;; "test_pathcompleter_can_expanduser".
15738 (setenv "HOME" "/tmp")
15739 (add-installed-pythonpath inputs outputs)
15740 (invoke "py.test"))))))
15742 `(("python-wcwidth" ,python-wcwidth)))
15744 `(("python-pytest" ,python-pytest)))
15745 (home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
15746 (synopsis "Library for building command line interfaces in Python")
15748 "Prompt-Toolkit is a library for building interactive command line
15749 interfaces in Python. It's like GNU Readline but it also features syntax
15750 highlighting while typing, out-of-the-box multi-line input editing, advanced
15751 code completion, incremental search, support for Chinese double-width
15752 characters, mouse support, and auto suggestions.")
15753 (license license:bsd-3)
15754 (properties `((python2-variant . ,(delay python-prompt-toolkit-2))))))
15756 (define-public python-prompt-toolkit-2
15757 (package (inherit python-prompt-toolkit)
15758 (name "python-prompt-toolkit")
15763 (uri (pypi-uri "prompt_toolkit" version))
15766 "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
15768 `(("python-wcwidth" ,python-wcwidth)
15769 ("python-six" ,python-six)
15770 ("python-pygments" ,python-pygments)))
15773 (define-public python2-prompt-toolkit
15774 (package-with-python2 python-prompt-toolkit-2))
15776 (define-public python-prompt-toolkit-1
15777 (package (inherit python-prompt-toolkit-2)
15782 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
15785 "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))))
15787 (define-public python2-prompt-toolkit-1
15788 (package-with-python2 python-prompt-toolkit-1))
15790 (define-public python-jedi
15792 (name "python-jedi")
15797 (uri (pypi-uri "jedi" version))
15799 (base32 "080xyf97ifabdz7jp8clg00b8zv5g33fva1fb2xf80q6fndpvvc6"))))
15800 (build-system python-build-system)
15803 (modify-phases %standard-phases
15805 (lambda* (#:key tests? #:allow-other-keys)
15807 (setenv "HOME" "/tmp")
15808 (invoke "python" "-m" "pytest" "-vv"))
15811 `(("python-pytest" ,python-pytest)
15812 ("python-docopt" ,python-docopt)))
15814 `(("python-parso" ,python-parso)))
15815 (home-page "https://github.com/davidhalter/jedi")
15816 (synopsis "Autocompletion and static analysis library for Python")
15818 "Jedi is a static analysis tool for Python that can be used in Integrated
15819 Development Environments (@dfn{IDE}s) and text editors. It understands Python
15820 on a deeper level than many other static analysis frameworks for Python.
15822 Jedi understands docstrings and you can use Jedi autocompletion in your REPL as
15824 (license license:expat)))
15826 (define-public python2-jedi
15827 (package-with-python2 python-jedi))
15829 (define-public ptpython
15835 (uri (pypi-uri "ptpython" version))
15838 "1phk1grcvn456igjg8gwjjg8bf4kszddq5nd5sdlz3hslg62a7ci"))))
15839 (build-system python-build-system)
15841 `(#:tests? #f)) ;there are no tests
15843 `(("python-appdirs" ,python-appdirs)
15844 ("python-black" ,python-black)
15845 ("python-jedi" ,python-jedi)
15846 ("python-prompt-toolkit" ,python-prompt-toolkit)
15847 ("python-pygments" ,python-pygments)))
15848 (home-page "https://github.com/jonathanslenders/ptpython")
15849 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
15851 "ptpython is a Python read-eval-print loop with IDE-like features.
15852 It supports syntax highlighting, multiline editing, autocompletion, mouse,
15853 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
15855 (license license:bsd-3)
15856 (properties `((python2-variant . ,(delay ptpython-2))))))
15858 (define-public ptpython-2
15859 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
15860 (package/inherit base
15861 (name "ptpython2"))))
15863 (define-public python-easyprocess
15865 (name "python-easyprocess")
15870 (uri (pypi-uri "EasyProcess" version))
15872 (base32 "115rzzr0hx4af4m6krf7dxn8851n4l8jfxahjzjc2r0zq2m8v57v"))))
15873 (build-system python-build-system)
15875 ;; Tests require pyvirtualdisplay, which requires this package.
15877 (home-page "https://github.com/ponty/easyprocess")
15878 (synopsis "Python subprocess interface")
15880 "@code{easyprocess} is an easy to use Python subprocess interface.")
15881 (license license:bsd-3)))
15883 (define-public python-entrypoint2
15885 (name "python-entrypoint2")
15890 (uri (pypi-uri "entrypoint2" version))
15892 (base32 "1qyxq54r2fbh09ab5sffbxajy8arbk6czxz5lq3ccr9qrypw6w27"))))
15893 (build-system python-build-system)
15895 `(#:test-target "pytest"))
15897 `(("python-easyprocess" ,python-easyprocess)
15898 ("python-pytest" ,python-pytest)
15899 ("python-pytest-runner" ,python-pytest-runner)))
15900 (home-page "https://github.com/ponty/entrypoint2")
15901 (synopsis "Command-line interface for Python modules")
15903 "@code{entrypoint2} is an easy to use command-line interface for Python
15904 modules based on @code{argparse}. It translates function signature and
15905 documentation to argparse configuration.")
15906 (license license:bsd-3)))
15908 (define-public python-pyvirtualdisplay
15910 (name "python-pyvirtualdisplay")
15915 (uri (pypi-uri "PyVirtualDisplay" version))
15917 (base32 "1z2fzgiw3xv3m1d9ppn53g07zhnpj05addiz56sm6ircxibnjk4x"))))
15918 (build-system python-build-system)
15920 ;; Tests fail with:
15921 ;; FileNotFoundError: [Errno 2] No such file or directory: 'Xvnc'.
15924 `(("python-entrypoint2" ,python-entrypoint2)
15925 ("python-psutil" ,python-psutil)
15926 ("python-pytest" ,python-pytest)
15927 ("python-pytest-runner" ,python-pytest-runner)))
15929 `(("python-easyprocess" ,python-easyprocess)
15930 ("python-pillow" ,python-pillow)))
15931 (home-page "https://github.com/ponty/pyvirtualdisplay")
15932 (synopsis "Python wrapper for Xvfb, Xephyr and Xvnc")
15934 "@code{pyvirtualdisplay} is a Python wrapper for Xvfb, Xephyr and Xvnc.")
15935 (license license:bsd-3)))
15937 (define-public python-stem
15939 (name "python-stem")
15944 (uri (pypi-uri "stem" version))
15947 "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"))))
15948 (build-system python-build-system)
15951 (modify-phases %standard-phases
15954 (invoke "./run_tests.py" "--unit")
15957 `(("python-mock" ,python-mock)
15958 ("python-pycodestyle" ,python-pycodestyle)
15959 ("python-pyflakes" ,python-pyflakes)))
15960 (home-page "https://stem.torproject.org/")
15962 "Python controller library that allows applications to interact with Tor")
15964 "Stem is a Python controller library for Tor. With it you can use Tor's
15965 control protocol to script against the Tor process and read descriptor data
15966 relays publish about themselves.")
15967 (license license:lgpl3)))
15969 (define-public python-pyserial
15971 (name "python-pyserial")
15976 (uri (pypi-uri "pyserial" version))
15979 "1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw"))))
15980 (build-system python-build-system)
15982 '(#:tests? #f)) ; FIXME: 3/49 tests are failing.
15984 ;; (modify-phases %standard-phases
15987 ;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
15989 "https://github.com/pyserial/pyserial")
15990 (synopsis "Python Serial Port Bindings")
15991 (description "@code{pyserial} provide serial port bindings for Python. It
15992 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
15993 and/or Xon/Xoff. The port is accessed in RAW mode.")
15994 (license license:bsd-3)))
15996 (define-public python2-pyserial
15997 (package-with-python2 python-pyserial))
15999 (define-public python-kivy
16001 (name "python-kivy")
16006 (uri (pypi-uri "Kivy" version))
16007 (file-name (string-append name "-" version ".tar.gz"))
16010 "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw"))))
16011 (build-system python-build-system)
16013 `(#:tests? #f ; Tests require many optional packages
16015 (modify-phases %standard-phases
16016 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
16017 (lambda* (#:key inputs #:allow-other-keys)
16018 (setenv "KIVY_SDL2_PATH"
16019 (string-append (assoc-ref inputs "sdl-union")
16023 `(("pkg-config" ,pkg-config)
16024 ("python-cython" ,python-cython)))
16026 `(("gstreamer" ,gstreamer)
16029 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
16030 (home-page "https://kivy.org")
16032 "Multitouch application framework")
16034 "A software library for rapid development of
16035 hardware-accelerated multitouch applications.")
16036 (license license:expat)))
16038 (define-public python2-kivy
16039 (package-with-python2 python-kivy))
16041 (define-public python-binaryornot
16043 (name "python-binaryornot")
16047 (uri (pypi-uri "binaryornot" version))
16050 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
16051 (build-system python-build-system)
16054 (modify-phases %standard-phases
16055 (add-after 'unpack 'patch-tests
16057 ;; TypeError: binary() got an unexpected keyword argument
16059 (substitute* "tests/test_check.py"
16060 (("average_size=512") ""))
16063 `(("python-chardet" ,python-chardet)
16064 ("python-hypothesis" ,python-hypothesis)))
16065 (home-page "https://github.com/audreyr/binaryornot")
16066 (synopsis "Package to check if a file is binary or text")
16067 (description "Ultra-lightweight pure Python package to check if a file is
16069 (license license:bsd-3)
16070 (properties `((python2-variant . ,(delay python2-binaryornot))))))
16072 (define-public python2-binaryornot
16073 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
16074 (package/inherit base
16076 `(("python2-enum34" ,python2-enum34)
16077 ,@(package-propagated-inputs base))))))
16079 (define-public python-binwalk
16081 (name "python-binwalk")
16086 (uri (git-reference
16087 (url "https://github.com/ReFirmLabs/binwalk")
16088 (commit (string-append "v" version))))
16089 (file-name (git-file-name name version))
16092 "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc"))))
16093 (build-system python-build-system)
16096 (modify-phases %standard-phases
16097 (add-before 'check 'set-pythonpath
16099 (setenv "PYTHONPATH"
16102 ":" (getenv "PYTHONPATH")))
16106 `(("python-coverage" ,python-coverage)
16107 ("python-nose" ,python-nose)))
16108 (home-page "https://github.com/ReFirmLabs/binwalk")
16109 (synopsis "Firmware analysis tool")
16110 (description "Binwalk is a tool for analyzing, reverse engineering, and
16111 extracting firmware images")
16112 (license license:expat)))
16114 (define-public python-nltk
16116 (name "python-nltk")
16120 (uri (pypi-uri "nltk" version ".zip"))
16123 "1sq32lwgij9h8rsksymnxxr7bqfw3vgx5ijw4azbj6k2xnmmdmap"))))
16124 (build-system python-build-system)
16126 '(;; The tests require some extra resources to be downloaded.
16127 ;; TODO Try packaging these resources.
16130 `(("python-click" ,python-click)
16131 ("python-joblib" ,python-joblib)
16132 ("python-regex" ,python-regex)
16133 ("python-tqdm" ,python-tqdm)))
16135 `(("unzip" ,unzip)))
16136 (home-page "http://nltk.org/")
16137 (synopsis "Natural Language Toolkit")
16138 (description "It provides interfaces to over 50 corpora and lexical
16139 resources such as WordNet, along with a suite of text processing libraries
16140 for classification, tokenization, stemming, tagging, parsing, and semantic
16141 reasoning, wrappers for natural language processing libraries.")
16142 (license license:asl2.0)))
16144 ;; Versions >=3.5 breaks backward-compatibility,
16145 ;; so we keep version 3.4.x around for a while.
16146 (define-public python-nltk-3.4
16148 (inherit python-nltk)
16153 (uri (pypi-uri "nltk" version ".zip"))
16155 (base32 "153x2clrnigs74jdgnn3qmljdjj4gprmvpdvh49i18ls4m8mbm5y"))))
16156 (propagated-inputs `(("python-six" ,python-six)))))
16158 (define-public python2-nltk
16159 (package-with-python2 python-nltk))
16161 (define-public python-pymongo
16163 (name "python-pymongo")
16167 (uri (pypi-uri "pymongo" version))
16170 "0zis4707r9hdg5qgkhp3wss9camr9h56ixyfc8n9dxwlnnly4x4c"))))
16171 (build-system python-build-system)
16173 `(("python-certifi" ,python-certifi)))
16174 (home-page "https://github.com/mongodb/mongo-python-driver")
16175 (synopsis "Python driver for MongoDB")
16176 (description "Python driver for MongoDB.")
16177 (license license:asl2.0)))
16179 (define-public python2-pymongo
16180 (package-with-python2 python-pymongo))
16182 (define-public python-consul
16184 (name "python-consul")
16189 (uri (pypi-uri "python-consul" version))
16192 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
16193 (build-system python-build-system)
16195 '(#:tests? #f)) ; The tests are not distributed
16197 `(("python-requests" ,python-requests)
16198 ("python-six" ,python-six)))
16199 (home-page "https://github.com/cablehead/python-consul")
16200 (synopsis "Python client for Consul")
16202 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
16203 discovery, monitoring and configuration.")
16204 (license license:expat)))
16206 (define-public python2-consul
16207 (package-with-python2 python-consul))
16209 (define-public python-schematics
16211 (name "python-schematics")
16216 (uri (git-reference
16217 (url "https://github.com/schematics/schematics")
16218 (commit (string-append "v" version))))
16219 (file-name (git-file-name name version))
16221 (base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd"))))
16222 (build-system python-build-system)
16224 `(("python-six" ,python-six)))
16226 ;; The tests require a bunch of not very nice packages with fixed
16227 ;; version requirements (e.g. python-coveralls).
16229 (home-page "https://github.com/schematics/schematics")
16230 (synopsis "Python Data Structures for Humans")
16231 (description "Python Data Structures for Humans.")
16232 (license license:bsd-3)))
16234 (define-public python2-schematics
16235 (package-with-python2 python-schematics))
16237 (define-public python-odfpy
16239 (name "python-odfpy")
16243 (uri (pypi-uri "odfpy" version))
16246 "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv"))))
16249 (modify-phases %standard-phases
16252 (setenv "PYTHONPATH" (string-append "./build/lib:"
16253 (getenv "PYTHONPATH")))
16254 (invoke "pytest" "-vv"))))))
16255 (build-system python-build-system)
16257 `(("python-pytest" ,python-pytest)))
16259 `(("python-defusedxml" ,python-defusedxml)))
16260 (home-page "https://github.com/eea/odfpy")
16261 (synopsis "Python API and tools to manipulate OpenDocument files")
16262 (description "Collection of libraries and utility programs written in
16263 Python to manipulate OpenDocument 1.2 files.")
16265 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
16266 ;; number of files with other licenses.
16267 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
16269 (define-public python2-odfpy
16270 (package-with-python2 python-odfpy))
16272 (define-public python-natsort
16274 (name "python-natsort")
16278 (uri (pypi-uri "natsort" version))
16281 "00y49bfsi7rrsd1s42gc2w95a6arl9ipdsx2493hr0v54fj07ih0"))))
16282 (build-system python-build-system)
16284 `(#:modules ((guix build utils)
16285 (guix build python-build-system)
16290 (modify-phases %standard-phases
16293 (let ((cwd (getcwd)))
16294 (setenv "PYTHONPATH"
16297 (find (cut string-prefix? "lib" <>)
16298 (scandir (string-append cwd "/build")))
16300 (getenv "PYTHONPATH")))
16301 (invoke "pytest" "-v")))))))
16303 `(("python-hypothesis" ,python-hypothesis)
16304 ("python-pytest-cov" ,python-pytest-cov)
16305 ("python-pytest-mock" ,python-pytest-mock)
16306 ("python-pytest" ,python-pytest)))
16307 (propagated-inputs ; TODO: Add python-fastnumbers.
16308 `(("python-pyicu" ,python-pyicu)))
16309 (home-page "https://github.com/SethMMorton/natsort")
16310 (synopsis "Natural sorting for python and shell")
16312 "Natsort lets you apply natural sorting on lists instead of
16313 lexicographical. If you use the built-in @code{sorted} method in python
16314 on a list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4},
16315 @code{a10}]}, it would be returned as @code{[@code{a1}, @code{a10}, @code{a20},
16316 @code{a4}, @code{a9}]}. Natsort provides a function @code{natsorted} that
16317 identifies numbers and sorts them separately from strings. It can also sort
16318 version numbers, real numbers, mixed types and more, and comes with a shell
16319 command @command{natsort} that exposes this functionality in the command line.")
16320 (license license:expat)))
16322 (define-public glances
16329 (uri (pypi-uri "Glances" version))
16331 (base32 "020vb38qrb0m3sdr7xjr43cmcfxpnyg4hmb97wgxsa9zvwsjwa5x"))
16332 (modules '((guix build utils)))
16335 ;; Glances phones PyPI for weekly update checks by default.
16336 ;; Disable these. The user can re-enable them if desired.
16337 (substitute* "glances/outdated.py"
16338 (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
16339 (string-append indentation
16340 "self.args.disable_check_update = True\n"
16343 (build-system python-build-system)
16345 `(("python-future" ,python-future)
16346 ("python-psutil" ,python-psutil)))
16347 (home-page "https://github.com/nicolargo/glances")
16348 (synopsis "Cross-platform curses-based monitoring tool")
16350 "Glances is a curses-based monitoring tool for a wide variety of platforms.
16351 Glances uses the PsUtil library to get information from your system. It
16352 monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
16353 (license license:lgpl3+)))
16355 (define-public python-glances
16356 (deprecated-package "python-glances" glances))
16358 (define-public python-graphql-core
16360 (name "python-graphql-core")
16365 (uri (pypi-uri "graphql-core" version))
16368 "0fjv5w2wvgdr8gb27v241bavliipyir9fdz48rsgc3xapm644mn0"))))
16369 (build-system python-build-system)
16371 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
16373 (modify-phases %standard-phases
16374 (add-after 'unpack 'patch-hardcoded-version
16375 (lambda _ (substitute*
16377 (("'gevent==1.1rc1'") "'gevent'"))
16380 `(("python-gevent" ,python-gevent)
16381 ("python-mock" ,python-mock)
16382 ("python-pytest-mock" ,python-pytest-mock)))
16384 `(("python-promise" ,python-promise)
16385 ("python-six" ,python-six)))
16386 (home-page "https://github.com/graphql-python/graphql-core")
16387 (synopsis "GraphQL implementation for Python")
16389 "GraphQL implementation for Python. GraphQL is a data query language and
16390 runtime designed and used to request and deliver data to mobile and web apps.
16391 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
16393 (license license:expat)))
16395 (define-public python-graphql-relay
16397 (name "python-graphql-relay")
16402 (uri (pypi-uri "graphql-relay" version))
16405 "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7"))))
16406 (build-system python-build-system)
16408 '(#:tests? #f)) ; The tests are not distributed
16410 `(("python-graphql-core" ,python-graphql-core)
16411 ("python-promise" ,python-promise)
16412 ("python-six" ,python-six)))
16413 (home-page "https://github.com/graphql-python/graphql-relay-py")
16414 (synopsis "Relay implementation for Python")
16416 "This is a library to allow the easy creation of Relay-compliant servers
16417 using the GraphQL Python reference implementation of a GraphQL server. It
16418 should be noted that the code is a exact port of the original
16419 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
16421 (license license:expat)))
16423 (define-public python-graphene
16425 (name "python-graphene")
16430 (uri (pypi-uri "graphene" version))
16433 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
16434 (build-system python-build-system)
16436 `(("python-graphql-core" ,python-graphql-core)
16437 ("python-graphql-relay" ,python-graphql-relay)
16438 ("python-iso8601" ,python-iso8601)
16439 ("python-promise" ,python-promise)
16440 ("python-six" ,python-six)))
16442 `(#:tests? #f)) ; no tests/ in the PyPI tarball
16443 (home-page "https://graphene-python.org/")
16444 (synopsis "GraphQL Framework for Python")
16446 "Graphene is a Python library for building GraphQL schemas/types.
16447 A GraphQL schema describes your data model, and provides a GraphQL server
16448 with an associated set of resolve methods that know how to fetch data.")
16449 (license license:expat)))
16451 (define-public python-nautilus
16453 (name "python-nautilus")
16458 (uri (pypi-uri "nautilus" version))
16461 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
16462 (build-system python-build-system)
16463 (arguments `(#:tests? #f)) ; fails to import test modules
16465 `(("python-bcrypt" ,python-bcrypt)
16466 ("python-click" ,python-click)
16467 ("python-consul" ,python-consul)
16468 ("python-graphene" ,python-graphene)
16469 ("python-jinja2" ,python-jinja2)
16470 ("python-peewee" ,python-peewee)
16471 ("python-pika" ,python-pika)
16472 ("python-tornado" ,python-tornado)
16473 ("python-wtforms" ,python-wtforms)))
16475 `(("python-nose2" ,python-nose2)))
16476 (home-page "https://github.com/AlecAivazis/nautilus")
16477 (synopsis "Library for creating microservice applications")
16479 "Nautilus is a framework for flux based microservices that looks to
16480 provide extendible implementations of common aspects of a cloud so that you can
16481 focus on building massively scalable web applications.")
16482 (license license:expat)))
16484 (define-public python-random2
16486 (name "python-random2")
16490 (uri (pypi-uri "random2" version ".zip"))
16493 "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))))
16494 (build-system python-build-system)
16495 (native-inputs `(("unzip" ,unzip)))
16496 (home-page "http://pypi.python.org/pypi/random2")
16497 (synopsis "Python 3 version of the Python 2 @code{random} module")
16499 "This package provides a Python 3 ported version of Python 2.7’s
16500 @code{random} module. It has also been back-ported to work in Python 2.6.
16502 In Python 3, the implementation of @code{randrange()} was changed, so that
16503 even with the same seed you get different sequences in Python 2 and 3.
16505 This package closes that gap, allowing stable random number generation
16506 between the different Python versions.")
16507 (license license:psfl)))
16509 (define-public python2-random2
16510 (package-with-python2 python-random2))
16512 (define-public python-snowballstemmer
16514 (name "python-snowballstemmer")
16518 (uri (pypi-uri "snowballstemmer" version))
16521 "0ligk61idlz8kkgd5hpip5whm172riwglb6xydii7h62yhysqfyz"))))
16522 (build-system python-build-system)
16524 `(;; No tests exist
16526 (home-page "https://github.com/shibukawa/snowball_py")
16527 (synopsis "Snowball stemming library collection for Python")
16528 (description "This package provides 16 word stemmer algorithms generated
16529 from Snowball algorithms. It includes the 15 original ones plus the Poerter
16531 (license license:bsd-3)))
16533 (define-public python2-snowballstemmer
16534 (package-with-python2 python-snowballstemmer))
16536 (define-public python-setproctitle
16538 (name "python-setproctitle")
16543 (uri (pypi-uri "setproctitle" version))
16546 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
16547 (build-system python-build-system)
16550 (modify-phases %standard-phases
16551 (add-before 'check 'patch-Makefile
16552 ;; Stricly this is only required for the python2 variant.
16553 ;; But adding a phase in an inherited package seems to be
16554 ;; cumbersum. So we patch even for python3.
16556 (let ((nose (assoc-ref %build-inputs "python2-nose")))
16558 (substitute* "Makefile"
16559 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
16560 (string-append nose "/bin/nosetests "))))
16564 (setenv "PYTHON" (or (which "python3") (which "python")))
16565 (setenv "PYCONFIG" (if (which "python3-config")
16566 "python3-config --embed"
16568 (setenv "CC" "gcc")
16569 ;; No need to extend PYTHONPATH to find the built package, since
16570 ;; the Makefile will build anyway
16571 (invoke "make" "check"))))))
16573 `(("procps" ,procps))) ; required for tests
16574 (home-page "https://github.com/dvarrazzo/py-setproctitle")
16576 "Setproctitle implementation for Python to customize the process title")
16577 (description "The library allows a process to change its title (as displayed
16578 by system tools such as ps and top).
16580 Changing the title is mostly useful in multi-process systems, for
16581 example when a master process is forked: changing the children's title
16582 allows identifying the task each process is busy with. The technique
16583 is used by PostgreSQL and the OpenSSH Server for example.")
16584 (license license:bsd-3)
16585 (properties `((python2-variant . ,(delay python2-setproctitle))))))
16587 (define-public python2-setproctitle
16588 (let ((base (package-with-python2
16589 (strip-python2-variant python-setproctitle))))
16590 (package/inherit base
16591 (native-inputs `(("python2-nose" ,python2-nose)
16592 ,@(package-native-inputs base))))))
16594 (define-public python-validictory
16596 (name "python-validictory")
16601 (uri (pypi-uri "validictory" version))
16604 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
16605 (build-system python-build-system)
16608 (modify-phases %standard-phases
16609 (add-after 'unpack 'bootstrap
16610 ;; Move the tests out of the package directory to avoid
16613 (rename-file "validictory/tests" "tests")
16614 (delete-file "tests/__init__.py")))
16617 ;; Extend PYTHONPATH so the built package will be found.
16618 (setenv "PYTHONPATH"
16619 (string-append (getcwd) "/build/lib:"
16620 (getenv "PYTHONPATH")))
16621 (invoke "py.test" "-vv" ))))))
16623 `(("python-pytest" ,python-pytest)))
16625 "https://github.com/jamesturk/validictory")
16626 (synopsis "General purpose Python data validator")
16627 (description "It allows validation of arbitrary Python data structures.
16629 The schema format is based on the JSON Schema
16630 proposal (http://json-schema.org), so combined with json the library is also
16631 useful as a validator for JSON data.")
16632 (license license:expat)))
16634 (define-public python2-validictory
16635 (package-with-python2 python-validictory))
16637 (define-public python-pyelftools
16639 (name "python-pyelftools")
16644 (uri (pypi-uri "pyelftools" version))
16647 "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9"))))
16648 (build-system python-build-system)
16651 (modify-phases %standard-phases
16652 (add-before 'check 'set-pythonpath
16654 (setenv "PYTHONPATH"
16657 ":" (getenv "PYTHONPATH")))
16660 "https://github.com/eliben/pyelftools")
16662 "Analyze binary and library file information")
16663 (description "This Python library provides interfaces for parsing and
16664 analyzing two binary and library file formats; the Executable and Linking
16665 Format (ELF), and debugging information in the Debugging With Attributed
16666 Record Format (DWARF).")
16667 (license license:public-domain)))
16669 (define-public python-pyev
16671 (name "python-pyev")
16676 (uri (pypi-uri "pyev" version))
16679 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
16680 (build-system python-build-system)
16682 `(#:tests? #f ; no test suite
16684 (modify-phases %standard-phases
16685 (add-after 'unpack 'patch
16686 (lambda* (#:key inputs #:allow-other-keys)
16687 (let ((libev (string-append (assoc-ref inputs "libev")
16688 "/lib/libev.so.4")))
16689 (substitute* "setup.py"
16690 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
16691 (string-append "libev_dll_name = \"" libev "\"")))))))))
16693 `(("libev" ,libev)))
16694 (home-page "https://github.com/gabrielfalcao/pyev")
16695 (synopsis "Python libev interface")
16696 (description "Pyev provides a Python interface to libev.")
16697 (license license:gpl3)))
16699 (define-public python2-pyev
16700 (package-with-python2 python-pyev))
16702 (define-public python-imagesize
16704 (name "python-imagesize")
16709 (uri (pypi-uri "imagesize" version))
16712 "1cd24x0vqbd6c8ym1n21qc0aj54mfb7rzdqglmwk9xxixajbbxmi"))))
16713 (build-system python-build-system)
16714 (home-page "https://github.com/shibukawa/imagesize_py")
16715 (synopsis "Gets image size of files in various formats in Python")
16717 "This package allows determination of image size from
16718 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
16719 (license license:expat)))
16721 (define-public python2-imagesize
16722 (package-with-python2 python-imagesize))
16724 (define-public python-termstyle
16726 (name "python-termstyle")
16731 (uri (pypi-uri "termstyle" version))
16734 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
16735 (build-system python-build-system)
16738 (modify-phases %standard-phases
16741 (invoke "python" "test3.py"))))))
16742 (home-page "https://github.com/gfxmonk/termstyle")
16743 (synopsis "Console text coloring for Python")
16744 (description "This package provides console text coloring for Python.")
16745 (license license:bsd-3)))
16747 (define-public python-argcomplete
16749 (name "python-argcomplete")
16754 (uri (pypi-uri "argcomplete" version))
16757 "0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss"))
16758 (patches (search-patches "python-argcomplete-1.11.1-fish31.patch"))))
16759 (build-system python-build-system)
16761 `(("python-coverage" ,python-coverage)
16762 ("python-flake8" ,python-flake8)
16763 ("python-pexpect" ,python-pexpect)
16764 ("python-wheel" ,python-wheel)
16767 ("bash-full" ,bash))) ;full Bash for 'test_file_completion'
16768 (home-page "https://github.com/kislyuk/argcomplete")
16769 (synopsis "Shell tab completion for Python argparse")
16770 (description "argcomplete provides extensible command line tab completion
16771 of arguments and options for Python scripts using @code{argparse}. It's
16772 particularly useful for programs with many options or sub-parsers that can
16773 dynamically suggest completions; for example, when browsing resources over the
16775 (license license:asl2.0)
16776 (properties `((python2-variant . ,(delay python2-argcomplete))))))
16778 (define-public python2-argcomplete
16779 (let ((variant (package-with-python2
16780 (strip-python2-variant python-argcomplete))))
16781 (package/inherit variant
16783 (substitute-keyword-arguments (package-arguments variant)
16784 ((#:phases phases '%standard-phases)
16785 `(modify-phases ,phases
16786 (add-after 'unpack 'set-my-HOME
16787 (lambda _ (setenv "HOME" "/tmp")))))))
16789 `(("python2-importlib-metadata" ,python2-importlib-metadata)
16790 ,@(package-native-inputs variant))))))
16792 (define-public python-csscompressor
16794 (name "python-csscompressor")
16799 (uri (pypi-uri "csscompressor" version))
16802 "018ssffvlpnc1salmnpyl52c11glzzwj4k9f757hl4pkpjnjp8mg"))))
16803 (build-system python-build-system)
16806 (modify-phases %standard-phases
16809 (invoke "py.test"))))))
16811 `(("python-pytest" ,python-pytest)))
16812 (home-page "https://github.com/sprymix/csscompressor")
16813 (synopsis "Python port of YUI CSS Compressor")
16815 "This package provides a python port of YUI CSS Compressor.")
16816 (license license:bsd-3)))
16818 (define-public python-rcssmin
16820 (name "python-rcssmin")
16825 (uri (pypi-uri "rcssmin" version))
16828 "0w42l4dhxghcz7pj3q7hkxp015mvb8z2cq9sfxbl31npsfavd1ya"))))
16829 (build-system python-build-system)
16832 (modify-phases %standard-phases
16835 (invoke "python" "run_tests.py" "tests"))))))
16836 (home-page "http://opensource.perlig.de/rcssmin/")
16837 (synopsis "CSS Minifier")
16838 (description "The minifier is based on the semantics of the YUI compressor,
16839 which itself is based on the rule list by Isaac Schlueter.")
16840 (license license:asl2.0)))
16842 (define-public python-rjsmin
16844 (name "python-rjsmin")
16849 (uri (pypi-uri "rjsmin" version))
16852 "0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi"))
16853 (modules '((guix build utils)))
16856 (for-each delete-file (find-files "bench" "\\.js$"))
16858 (build-system python-build-system)
16860 '(#:tests? #f ; Not all test files included.
16862 (modify-phases %standard-phases
16864 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
16865 (add-installed-pythonpath inputs outputs)
16867 (invoke "py.test" "-vv" "tests")
16870 `(("python-pytest" ,python-pytest)))
16871 (home-page "http://opensource.perlig.de/rjsmin/")
16872 (synopsis "Javascript Minifier")
16873 (description "@code{rJSmin} is a javascript minifier written in Python. The
16874 minifier is based on the semantics of jsmin.c by Douglas Crockford. The module
16875 is a re-implementation aiming for speed, so it can be used at runtime (rather
16876 than during a preprocessing step).")
16877 (license license:asl2.0)))
16879 (define-public python-xopen
16881 (name "python-xopen")
16886 (uri (pypi-uri "xopen" version))
16889 "17xbrgi23l87yg6h0qcknssp2q812miiy33qw6v45v5gx0jwv5xh"))))
16890 (build-system python-build-system)
16892 `(("python-setuptools-scm" ,python-setuptools-scm)))
16893 (home-page "https://github.com/marcelm/xopen/")
16894 (synopsis "Open compressed files transparently")
16895 (description "This module provides an @code{xopen} function that works like
16896 Python's built-in @code{open} function, but can also deal with compressed files.
16897 Supported compression formats are gzip, bzip2 and, xz, and are automatically
16898 recognized by their file extensions. The focus is on being as efficient as
16899 possible on all supported Python versions.")
16900 (license license:expat)))
16902 (define-public python2-xopen
16903 (let ((base (package-with-python2
16904 (strip-python2-variant python-xopen))))
16905 (package/inherit base
16906 (propagated-inputs `(("python2-bz2file" ,python2-bz2file)
16907 ,@(package-propagated-inputs base))))))
16909 (define-public python-cheetah
16911 (name "python-cheetah")
16916 (uri (pypi-uri "Cheetah3" version))
16919 "0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
16920 (build-system python-build-system)
16922 `(#:modules ((guix build utils)
16923 (guix build python-build-system)
16927 #:phases (modify-phases %standard-phases
16928 (add-after 'unpack 'use-absolute-python
16930 (substitute* "Cheetah/CheetahWrapper.py"
16931 (("#!/usr/bin/env python")
16932 (string-append "#!" (which "python"))))
16934 (add-after 'unpack 'fix-tests
16936 (substitute* "Cheetah/Tests/ImportHooks.py"
16937 (("os.path.dirname\\(__file__\\)")
16938 (string-append "'" (getcwd) "/Cheetah/Tests'")))
16942 (let ((cwd (getcwd)))
16943 (setenv "PYTHONPATH"
16946 (find (cut string-prefix? "lib" <>)
16947 (scandir (string-append cwd "/build")))
16948 ":" (getenv "PYTHONPATH")))
16950 (string-append (getenv "PATH")
16952 (setenv "TMPDIR" "/tmp")
16954 (substitute* "Cheetah/Tests/Test.py"
16955 (("unittest.TextTestRunner\\(\\)")
16956 "unittest.TextTestRunner(verbosity=2)"))
16958 (invoke "python" "Cheetah/Tests/Test.py")))))))
16960 `(("python-markdown" ,python-markdown))) ;optional
16961 (home-page "https://cheetahtemplate.org/")
16962 (synopsis "Template engine")
16963 (description "Cheetah is a text-based template engine and Python code
16966 Cheetah can be used as a standalone templating utility or referenced as
16967 a library from other Python applications. It has many potential uses,
16968 but web developers looking for a viable alternative to ASP, JSP, PHP and
16969 PSP are expected to be its principle user group.
16973 @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
16975 @item Cleanly separates content, graphic design, and program code.
16976 @item Blends the power and flexibility of Python with a simple template language
16977 that non-programmers can understand.
16978 @item Gives template writers full access to any Python data structure, module,
16979 function, object, or method in their templates.
16980 @item Makes code reuse easy by providing an object-orientated interface to
16981 templates that is accessible from Python code or other Cheetah templates.
16982 One template can subclass another and selectively reimplement sections of it.
16983 @item Provides a simple, yet powerful, caching mechanism that can dramatically
16984 improve the performance of a dynamic website.
16985 @item Compiles templates into optimized, yet readable, Python code.
16987 (license (license:x11-style "file://LICENSE"))))
16989 (define-public python2-cheetah
16990 (package-with-python2 python-cheetah))
16992 (define-public python-dulwich
16994 (name "python-dulwich")
16995 (version "0.19.16")
16999 (uri (list (string-append "https://www.dulwich.io/releases/"
17000 "dulwich-" version ".tar.gz")
17001 (pypi-uri "dulwich" version)))
17004 "0l589jl0lxx59yq0p6vmgw0q0hmfh48iqwyy0x6g1dmz93262igp"))))
17005 (build-system python-build-system)
17008 (modify-phases %standard-phases
17009 (add-before 'check 'fix-tests
17010 (lambda* (#:key inputs #:allow-other-keys)
17011 ;; The tests use Popen with a custom environment which doesn't
17013 (substitute* "dulwich/tests/compat/utils.py"
17014 (("'git'") (string-append "'"
17017 (substitute* '("dulwich/tests/test_repository.py"
17018 "dulwich/tests/test_hooks.py")
17019 (("#!/bin/sh") (string-append "#!" (which "sh"))))
17020 (setenv "TEST_RUNNER" "unittest")
17021 (setenv "PYTHONHASHSEED" "random")
17024 `(("python-fastimport" ,python-fastimport)
17025 ("python-urllib3" ,python-urllib3)))
17027 `(("python-mock" ,python-mock)
17028 ("python-geventhttpclient" ,python-geventhttpclient)
17030 (home-page "https://www.dulwich.io/")
17031 (synopsis "Git implementation in Python")
17032 (description "Dulwich is an implementation of the Git file formats and
17033 protocols written in pure Python.")
17034 ;; Can be used with either license.
17035 (license (list license:asl2.0 license:gpl2+))))
17037 (define-public python-pbkdf2
17039 (name "python-pbkdf2")
17044 (uri (pypi-uri "pbkdf2" version))
17047 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
17048 (build-system python-build-system)
17051 (modify-phases %standard-phases
17054 (setenv "PYTHONPATH"
17055 (string-append (getcwd) "/build/lib:"
17056 (getenv "PYTHONPATH")))
17057 (invoke "python" "test/test_pbkdf2.py"))))))
17059 `(("python-pycrypto" ,python-pycrypto))) ; optional
17060 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
17061 (synopsis "Password-based key derivation")
17062 (description "This module implements the password-based key derivation
17063 function, PBKDF2, specified in RSA PKCS#5 v2.0.
17065 PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
17066 is part of the RSA Public Key Cryptography Standards series. The provided
17067 implementation takes a password or a passphrase and a salt value (and
17068 optionally a iteration count, a digest module, and a MAC module) and provides
17069 a file-like object from which an arbitrarily-sized key can be read.")
17070 (license license:expat)))
17072 (define-public python2-pbkdf2
17073 (package-with-python2 python-pbkdf2))
17075 (define-public python-qrcode
17077 (name "python-qrcode")
17082 (uri (pypi-uri "qrcode" version))
17084 (base32 "0sa3n298b9jpz6zn0birnjii3mg9sihjq28n9nzjlzv09y2m6ljh"))))
17085 (build-system python-build-system)
17087 ;; FIXME: Tests require packaging 'pymaging'.
17090 `(("python-lxml" ,python-lxml) ; for SVG output
17091 ("python-pillow" ,python-pillow) ; for PNG output
17092 ("python-six" ,python-six)))
17093 (home-page "https://github.com/lincolnloop/python-qrcode")
17094 (synopsis "QR Code image generator")
17095 (description "This package provides a pure Python QR Code generator
17096 module. It uses the Python Imaging Library (PIL) to allow for the generation
17099 In addition this package provides a command line tool to generate QR codes and
17100 either write these QR codes to a file or do the output as ascii art at the
17102 (license license:bsd-3)))
17104 (define-public python2-qrcode
17105 (package-with-python2 python-qrcode))
17107 (define-public python-rst2ansi
17109 (name "python-rst2ansi")
17114 (uri (pypi-uri "rst2ansi" version))
17117 "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
17118 (build-system python-build-system)
17120 `(("python-docutils" ,python-docutils)))
17121 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
17122 (synopsis "Convert RST to ANSI-decorated console output")
17124 "Python module dedicated to rendering RST (reStructuredText) documents
17125 to ansi-escaped strings suitable for display in a terminal.")
17126 (license license:expat)))
17128 (define-public python-ansi2html
17130 (name "python-ansi2html")
17135 (uri (pypi-uri "ansi2html" version))
17138 "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
17139 (build-system python-build-system)
17141 `(("python-mock" ,python-mock)
17142 ("python-nose" ,python-nose)))
17144 `(("python-six" ,python-six)))
17145 (home-page "https://github.com/ralphbean/ansi2html")
17146 (synopsis "Convert ANSI-decorated console output to HTML")
17148 "@command{ansi2html} is a Python library and command line utility for
17149 converting text with ANSI color codes to HTML or LaTeX.")
17150 (license license:gpl3+)))
17152 (define-public python2-ansi2html
17153 (package-with-python2 python-ansi2html))
17155 (define-public python-easy-ansi
17157 (name "python-easy-ansi")
17162 (uri (git-reference
17163 (url "https://gitlab.com/joeysbytes/easy-ansi")
17164 (commit (string-append "v" version))))
17165 (file-name (git-file-name name version))
17167 (base32 "0albh55ynzs98qy9pln4qaxw5qhhh3lk09jy9bx19gycrp1c3lc3"))))
17168 (build-system python-build-system)
17169 (home-page "https://gitlab.com/joeysbytes/easy-ansi")
17170 (synopsis "Terminal framework API")
17172 "Easy ANSI is a terminal framework API to give you an easy way to use
17173 colors, cursor control movements, and line/box drawing. It is not meant as a
17174 replacement to more full-featured frameworks (such as curses or urwid), but as
17175 a tool to quickly create nice-looking screens in your terminal window. You
17176 can even create animations with the cursor controls.")
17177 (license license:expat)))
17179 (define-public python-ddt
17181 (name "python-ddt")
17186 (uri (pypi-uri "ddt" version))
17189 "0y2k756qjz1rhpivi60hy29b4bf0bh3wck39i1mn6pkil9k779k4"))))
17190 (build-system python-build-system)
17192 `(("python-pytest" ,python-pytest)))
17194 `(("python-pyyaml" ,python-pyyaml)))
17195 (home-page "https://github.com/datadriventests/ddt")
17196 (synopsis "Data-Driven Tests")
17198 "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
17199 running it with different test data, and make it appear as multiple test
17201 (license license:expat)))
17203 (define-public python-pycountry
17205 (name "python-pycountry")
17206 (version "18.5.26")
17210 (uri (pypi-uri "pycountry" version))
17213 "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz"))))
17214 (build-system python-build-system)
17215 (home-page "https://bitbucket.org/flyingcircus/pycountry")
17216 (synopsis "ISO databases for languages, countries, currencies, etc.")
17218 "@code{pycountry} provides the ISO databases for the standards:
17220 @item 639-3 (Languages)
17221 @item 3166 (Countries)
17222 @item 3166-3 (Deleted Countries)
17223 @item 3166-2 (Subdivisions of countries)
17224 @item 4217 (Currencies)
17225 @item 15924 (Scripts)
17227 It includes a copy from Debian’s pkg-isocodes and makes the data accessible
17228 through a Python API.")
17229 (license license:lgpl2.1+)))
17231 (define-public python2-pycountry
17232 (package-with-python2 python-pycountry))
17234 (define-public python-pycosat
17236 (name "python-pycosat")
17241 (uri (pypi-uri "pycosat" version ".zip"))
17244 "1vg0f2fwcybpdqv92z0hwdl603n2safh3fqvjjxkksd78r4qg6ac"))))
17245 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
17246 (build-system python-build-system)
17248 `(("unzip" ,unzip)))
17249 (home-page "https://github.com/ContinuumIO/pycosat")
17250 (synopsis "Bindings to picosat (a SAT solver)")
17252 "This package provides efficient Python bindings to @code{picosat} on
17253 the C level. When importing pycosat, the @code{picosat} solver becomes part
17254 of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
17255 Problem} (SAT) solver.")
17256 (license license:expat)))
17258 (define-public python2-pycosat
17259 (package-with-python2 python-pycosat))
17261 (define-public python2-ruamel.ordereddict
17263 (name "python2-ruamel.ordereddict")
17268 (uri (pypi-uri "ruamel.ordereddict" version))
17271 "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
17272 (build-system python-build-system)
17274 `(#:python ,python-2
17276 (modify-phases %standard-phases
17278 (add-after 'install 'check
17279 (lambda* (#:key inputs outputs #:allow-other-keys)
17280 (add-installed-pythonpath inputs outputs)
17281 (invoke "python" "test/testordereddict.py"))))))
17282 (home-page "https://bitbucket.org/ruamel/ordereddict")
17283 (synopsis "Version of dict that keeps keys in insertion order")
17285 "This is an implementation of an ordered dictionary with @dfn{Key
17286 Insertion Order} (KIO: updates of values do not affect the position of the
17287 key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
17288 removed and put at the back). The standard library module @code{OrderedDict},
17289 implemented later, implements a subset of @code{ordereddict} functionality.
17290 Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
17291 Order} (KSO, no sorting function can be specified, but a transform can be
17292 specified to apply on the key before comparison (e.g. @code{string.lower})).")
17293 (license license:expat)))
17295 (define-public python-pypeg2
17297 (name "python-pypeg2")
17302 (uri (pypi-uri "pyPEG2" version))
17305 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
17306 (build-system python-build-system)
17307 (propagated-inputs `(("python-lxml" ,python-lxml)))
17309 ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
17311 (home-page "https://fdik.org/pyPEG/")
17312 (synopsis "Parsing Expression Grammars in Python")
17313 (description "PyPEG is an intrinsic parser interpreter framework for
17314 Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
17315 parse many formal languages.")
17316 (license license:gpl2)))
17318 (define-public python-incremental
17320 (name "python-incremental")
17325 (uri (pypi-uri "incremental" version))
17328 "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
17329 (build-system python-build-system)
17330 (home-page "https://github.com/hawkowl/incremental")
17331 (synopsis "Library for versioning Python projects")
17332 (description "Incremental is a small library that versions your Python
17334 (license license:expat)))
17336 (define-public python2-incremental
17337 (package-with-python2 python-incremental))
17339 (define-public python-invoke
17341 (name "python-invoke")
17342 (home-page "https://www.pyinvoke.org/")
17346 (uri (pypi-uri "invoke" version))
17349 "0l16v7zcbgi36z6pvmdrs5q4ks8lalcafi5d9nhrpcjzbc3n1igh"))))
17350 (build-system python-build-system)
17352 ;; XXX: Requires many dependencies that are not yet in Guix.
17355 (modify-phases %standard-phases
17356 (add-after 'unpack 'fix-bash-path
17357 (lambda* (#:key inputs #:allow-other-keys)
17358 (let ((bash (assoc-ref inputs "bash")))
17359 (substitute* "invoke/config.py"
17360 (("shell = \"/bin/bash\"")
17361 (string-append "shell = \"" bash "/bin/bash\""))
17365 `(("bash" ,bash-minimal)))
17366 (synopsis "Pythonic task execution")
17368 "Invoke is a Python task execution tool and library, drawing inspiration
17369 from various sources to arrive at a powerful and clean feature set. It is
17370 evolved from the Fabric project, but focuses on local and abstract concerns
17371 instead of servers and network commands.")
17372 (license license:bsd-3)))
17374 (define-public python2-invoke
17375 (package-with-python2 python-invoke))
17377 (define-public python-automat
17379 (name "python-automat")
17383 (uri (pypi-uri "Automat" version))
17386 "0cyzrcqiibwdsp4y0djkllnzab8m5faa4s0d1kpi23k1fhy80ybr"))))
17387 (build-system python-build-system)
17388 ;; We disable the tests because they require python-twisted, while
17389 ;; python-twisted depends on python-automat. Twisted is optional, but the
17390 ;; tests fail if it is not available. Also see
17391 ;; <https://github.com/glyph/automat/issues/71>.
17392 (arguments '(#:tests? #f))
17394 `(("python-m2r" ,python-m2r)
17395 ("python-setuptools-scm" ,python-setuptools-scm)
17396 ("python-graphviz" ,python-graphviz)))
17398 `(("python-six" ,python-six)
17399 ("python-attrs" ,python-attrs)))
17400 (home-page "https://github.com/glyph/Automat")
17401 (synopsis "Self-service finite-state machines")
17402 (description "Automat is a library for concise, idiomatic Python
17403 expression of finite-state automata (particularly deterministic finite-state
17405 (license license:expat)))
17407 (define-public python2-automat
17408 (package-with-python2 python-automat))
17410 (define-public python-m2r
17412 (name "python-m2r")
17416 (uri (pypi-uri "m2r" version))
17419 "16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))))
17420 (build-system python-build-system)
17422 `(("python-docutils" ,python-docutils)
17423 ("python-mistune" ,python-mistune)))
17425 `(("python-pygments" ,python-pygments)
17426 ("python-mock" ,python-mock)))
17427 (home-page "https://github.com/miyakogi/m2r")
17428 (synopsis "Markdown to reStructuredText converter")
17429 (description "M2R converts a markdown file including reST markups to valid
17431 (license license:expat)))
17433 (define-public python2-m2r
17434 (package-with-python2 python-m2r))
17436 (define-public python-constantly
17438 (name "python-constantly")
17442 (uri (pypi-uri "constantly" version))
17445 "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
17446 (build-system python-build-system)
17447 (home-page "https://github.com/twisted/constantly")
17448 (synopsis "Symbolic constants in Python")
17449 (description "Constantly is a Python library that provides symbolic
17450 constant support. It includes collections and constants with text, numeric,
17451 and bit flag values.")
17452 (license license:expat)))
17454 (define-public python2-constantly
17455 (package-with-python2 python-constantly))
17457 (define-public python-attrs
17459 (name "python-attrs")
17463 (uri (pypi-uri "attrs" version))
17466 "1yzmwi5d197p0qhl7rl4xi9q1w8mk9i3zn6hrl22knbcrb1slspg"))))
17467 (build-system python-build-system)
17469 `(#:modules ((guix build utils)
17470 (guix build python-build-system)
17475 (modify-phases %standard-phases
17477 (lambda* (#:key tests? #:allow-other-keys)
17479 (let ((cwd (getcwd)))
17480 (setenv "PYTHONPATH"
17483 (find (cut string-prefix? "lib" <>)
17484 (scandir (string-append cwd "/build")))
17486 (getenv "PYTHONPATH")))
17487 (invoke "python" "-m" "pytest"))))))))
17489 `(("python-coverage" ,python-coverage)
17490 ("python-hypothesis" ,python-hypothesis)
17491 ("python-pympler" ,python-pympler)
17492 ("python-pytest" ,python-pytest)
17493 ("python-six" ,python-six)
17494 ("python-sphinx" ,python-sphinx)
17495 ("python-zope-interface" ,python-zope-interface)))
17496 (home-page "https://github.com/python-attrs/attrs/")
17497 (synopsis "Attributes without boilerplate")
17498 (description "@code{attrs} is a Python package with class decorators that
17499 ease the chores of implementing the most common attribute-related object
17501 (license license:expat)))
17503 (define-public python2-attrs
17504 (package-with-python2 python-attrs))
17506 (define-public python-attrs-bootstrap
17508 (inherit python-attrs)
17509 (name "python-attrs-bootstrap")
17513 (uri (pypi-uri "attrs" version))
17516 "0wky4h28n7xnr6xv69p9z6kv8bzn50d10c3drmd9ds8gawbcxdzp"))))
17517 (native-inputs `())
17518 (arguments `(#:tests? #f))))
17520 (define-public python2-attrs-bootstrap
17521 (package-with-python2 python-attrs-bootstrap))
17523 (define-public python-cliapp
17525 (name "python-cliapp")
17526 (version "1.20180812.1")
17530 (uri (string-append
17531 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
17532 version ".tar.gz"))
17535 "1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
17536 (build-system python-build-system)
17538 `(;; XXX: The tests only do style and coverage checks, which
17539 ;; fails due to deprecation warnings, etc.
17542 `(("python-coverage-test-runner" ,python-coverage-test-runner)
17543 ("python-pep8" ,python-pep8)))
17545 `(("python-pyaml" ,python-pyaml)))
17546 (home-page "https://liw.fi/cliapp/")
17547 (synopsis "Python framework for command line programs")
17548 (description "@code{cliapp} is a Python framework for command line
17549 programs. It contains the typical stuff such programs need to do, such
17550 as parsing the command line for options, and iterating over input files.")
17551 (license license:gpl2+)))
17553 (define-public python2-cliapp
17554 (package-with-python2 python-cliapp))
17556 (define-public python-ttystatus
17558 (name "python-ttystatus")
17563 (uri (git-reference
17564 (url "http://git.liw.fi/ttystatus")
17565 ;; There are no tags after ttystatus-0.36.
17566 (commit "e9fc573326c5d1348f5fe56263b4f7a8c32f58c9")))
17568 (base32 "0v49q839nrwdm19c83wfmj6n2kw80xslwq9k0n5509r2h7wzjiqj"))
17569 (file-name (git-file-name name version))))
17570 (build-system python-build-system)
17572 `(("python-coverage-test-runner" ,python-coverage-test-runner)
17573 ("python-pep8" ,python-pep8)))
17576 (modify-phases %standard-phases
17577 ;; check phase needs to be run before the build phase. If not,
17578 ;; coverage-test-runner looks for tests for the built source files,
17581 (add-before 'build 'check
17582 (lambda _ (invoke "make" "check"))))))
17583 (home-page "https://liw.fi/ttystatus/")
17584 (synopsis "Python library for showing progress reporting and
17585 status updates on terminals")
17586 (description "@code{ttystatus} is a Python library for showing progress
17587 reporting and status updates on terminals, for command line programs.
17588 Output is automatically adapted to the width of the terminal: truncated
17589 if it does not fit, and resized if the terminal size changes.")
17590 (license license:gpl3+)))
17592 (define-public python2-ttystatus
17593 (package-with-python2 python-ttystatus))
17595 (define-public python2-tracing
17597 (name "python2-tracing")
17602 (uri (string-append
17603 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-"
17604 version ".tar.gz"))
17607 "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw"))))
17608 (build-system python-build-system)
17610 `(#:python ,python-2))
17611 (home-page "https://liw.fi/tracing/")
17612 (synopsis "Python debug logging helper")
17613 (description "@code{python2-tracing} is a python library for
17614 logging debug messages. It provides a way to turn debugging messages
17615 on and off, based on the filename they occur in. It is much faster
17616 than using @code{logging.Filter} to accomplish the same thing, which
17617 matters when code is run in production mode. The actual logging still
17618 happens using the @code{logging} library.")
17619 (license license:gpl3+)))
17621 (define-public python-astroid
17623 (name "python-astroid")
17628 (uri (pypi-uri "astroid" version))
17630 (base32 "00xp5gqxidxvgg1bwd91myqzdf2fpb9cjwbdl3p7gwqvlk17hh1g"))
17631 (modules '((guix build utils)))
17634 ;; Check to see if the version pinning has been removed.
17635 (substitute* "astroid/__pkginfo__.py"
17636 (("==1\\.4\\.\\*") ">=1.4.0"))
17638 (build-system python-build-system)
17640 `(("python-lazy-object-proxy" ,python-lazy-object-proxy)
17641 ("python-six" ,python-six)
17642 ("python-wrapt" ,python-wrapt)))
17644 `(("python-dateutil" ,python-dateutil)
17645 ("python-pytest" ,python-pytest)
17646 ("python-pytest-runner" ,python-pytest-runner)))
17647 (home-page "https://github.com/PyCQA/astroid")
17648 (synopsis "Common base representation of python source code for pylint and
17650 (description "@code{python-astroid} provides a common base representation
17651 of python source code for projects such as pychecker, pyreverse, pylint, etc.
17653 It provides a compatible representation which comes from the _ast module. It
17654 rebuilds the tree generated by the builtin _ast module by recursively walking
17655 down the AST and building an extended ast. The new node classes have
17656 additional methods and attributes for different usages. They include some
17657 support for static inference and local name scopes. Furthermore, astroid
17658 builds partial trees by inspecting living objects.")
17659 (license license:lgpl2.1+)
17660 (properties `((python2-variant . ,(delay python2-astroid))))))
17662 (define-public python2-astroid
17663 (let ((base (package-with-python2
17664 (strip-python2-variant python-astroid))))
17665 (package (inherit base)
17666 ;; Version 2.x removes python2 support.
17671 (uri (pypi-uri "astroid" version))
17674 "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
17676 (substitute-keyword-arguments (package-arguments base)
17678 `(modify-phases ,phases
17679 (add-after 'unpack 'remove-spurious-test
17681 ;; https://github.com/PyCQA/astroid/issues/276
17682 (delete-file "astroid/tests/unittest_brain.py")
17686 (invoke"python" "-m" "unittest" "discover"
17687 "-p" "unittest*.py")))))))
17688 (native-inputs `())
17690 `(("python2-backports-functools-lru-cache"
17691 ,python2-backports-functools-lru-cache)
17692 ("python2-enum34" ,python2-enum34)
17693 ("python2-singledispatch" ,python2-singledispatch)
17694 ,@(alist-delete "python-typed-ast"
17695 (package-propagated-inputs base)))))))
17697 (define-public python-isbnlib
17699 (name "python-isbnlib")
17704 (uri (pypi-uri "isbnlib" version))
17707 "0iin0x2xqwyphyyzd0mzrq5v5xm7b6dlbb294k4dywra5qvbrgzm"))))
17708 (build-system python-build-system)
17709 (arguments '(#:tests? #f)) ; No test
17710 (home-page "https://github.com/xlcnd/isbnlib")
17711 (synopsis "Python library to work with ISBN strings")
17712 (description "@code{python-isbnlib} is a (pure) python library that provides
17713 several useful methods and functions to validate, clean, transform, hyphenate and
17714 get metadata for ISBN strings. Its origin was as the core of isbntools. This short
17715 version, is suitable to be include as a dependency in other projects.")
17716 (license license:lgpl3+)))
17718 (define-public python-isort
17720 (name "python-isort")
17725 (uri (git-reference
17726 ;; Tests pass only from the Github sources
17727 (url "https://github.com/timothycrosley/isort")
17729 (file-name (git-file-name name version))
17732 "1q0mlrpki5vjbgwxag5rghljjcfg7mvb0pbkwid80p0sqrxlm2p6"))))
17733 (build-system python-build-system)
17735 `(("python-mock" ,python-mock)
17736 ("python-pytest" ,python-pytest)))
17737 (home-page "https://github.com/timothycrosley/isort")
17738 (synopsis "Python utility/library to sort python imports")
17739 (description "@code{python-isort} is a python utility/library to sort
17740 imports alphabetically, and automatically separated into sections. It
17741 provides a command line utility, a python library and plugins for various
17743 (license license:expat)
17744 (properties `((python2-variant . ,(delay python2-isort))))))
17746 (define-public python2-isort
17747 (let ((base (package-with-python2
17748 (strip-python2-variant python-isort))))
17749 (package/inherit base
17751 `(("python2-futures" ,python2-futures)
17752 ,@(package-native-inputs base))))))
17754 (define-public python2-backports-functools-lru-cache
17756 (name "python2-backports-functools-lru-cache")
17761 ;; only the pypi tarballs contain the necessary metadata
17762 (uri (pypi-uri "backports.functools_lru_cache" version))
17765 "0jidrkk2w6bhjm197plxiaxrav64mgcrign0bfyr7md2ilc5zplg"))))
17766 (build-system python-build-system)
17768 `(("python2-setuptools-scm" ,python2-setuptools-scm)))
17770 `(#:python ,python-2))
17771 (home-page "https://github.com/jaraco/backports.functools_lru_cache")
17772 (synopsis "Backport of functools.lru_cache from Python 3.3")
17773 (description "@code{python2-backports-functools-lru-cache} is a backport
17774 of @code{functools.lru_cache} from python 3.3.")
17775 (license license:expat)))
17777 (define-public python-configparser
17779 (name "python-configparser")
17784 (uri (pypi-uri "configparser" version))
17787 "1priacxym85yjcf68hh38w55nqswaxp71ryjyfdk222kg9l85ln7"))))
17789 `(("python-setuptools_scm" ,python-setuptools-scm)))
17790 (build-system python-build-system)
17791 (home-page "https://github.com/jaraco/configparser/")
17792 (synopsis "Backport of configparser from python 3.5")
17793 (description "@code{python-configparser} is a backport of
17794 @code{configparser} from Python 3.5 so that it can be used directly
17795 in other versions.")
17796 (license license:expat)))
17798 (define-public python2-configparser
17799 (package-with-python2 python-configparser))
17801 (define-public python-iniconfig
17803 (name "python-iniconfig")
17808 (uri (pypi-uri "iniconfig" version))
17811 "0ckzngs3scaa1mcfmsi1w40a1l8cxxnncscrxzjjwjyisx8z0fmw"))))
17812 (build-system python-build-system)
17813 (home-page "https://github.com/RonnyPfannschmidt/iniconfig")
17814 (synopsis "Simple INI-file parser")
17815 (description "The @code{iniconfig} package provides a small and simple
17816 INI-file parser module having a unique set of features; @code{iniconfig}
17818 @item maintains the order of sections and entries;
17819 @item supports multi-line values with or without line-continuations;
17820 @item supports \"#\" comments everywhere;
17821 @item raises errors with proper line-numbers;
17822 @item raises an error when two sections have the same name.
17824 (license license:expat)))
17826 (define-public python-mamba
17828 (name "python-mamba")
17832 (uri (pypi-uri "mamba" version))
17835 "15m4dpnpv9m60pdaygvwgi43fwqaivs3qxfxhspwrp47sbgwdkvm"))))
17836 (build-system python-build-system)
17837 (arguments `(#:tests? #f)) ; No test
17839 `(("python-clint" ,python-clint)
17840 ("python-coverage" ,python-coverage)))
17841 (home-page "https://nestorsalceda.com/mamba/")
17842 (synopsis "Test runner for Python")
17844 "Mamba is a Behaviour-Driven Development tool for Python developers.
17845 Is heavily influenced from RSpec, Mocha, Jasmine or Ginkgo.")
17846 (license license:expat)))
17848 (define-public python-mando
17850 (name "python-mando")
17854 (uri (pypi-uri "mando" version))
17857 "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr"))))
17858 (build-system python-build-system)
17860 `(("python-rst2ansi" ,python-rst2ansi)
17861 ("python-six" ,python-six)))
17863 `(("python-pytest" ,python-pytest)))
17864 (home-page "https://mando.readthedocs.org/")
17866 "Wrapper around argparse, allowing creation of complete CLI applications")
17868 "This package is a wrapper around argparse, allowing you to write complete CLI
17869 applications in seconds while maintaining all the flexibility.")
17870 (license license:expat)))
17872 (define-public python2-mando
17873 (package-with-python2 python-mando))
17875 (define-public python2-argparse
17877 (name "python2-argparse")
17882 (uri (pypi-uri "argparse" version))
17885 "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32"))))
17886 (build-system python-build-system)
17888 `(#:python ,python-2))
17889 (home-page "https://github.com/ThomasWaldmann/argparse/")
17890 (synopsis "Python command-line parsing library")
17892 "This package is mostly for people who want to have @code{argparse} on
17893 older Pythons because it was not part of the standard library back then.")
17894 (license license:psfl)))
17896 (define-public python-mwclient
17898 (name "python-mwclient")
17903 ;; The PyPI version wouldn't contain tests.
17904 (uri (git-reference
17905 (url "https://github.com/mwclient/mwclient")
17906 (commit (string-append "v" version))))
17907 (file-name (git-file-name name version))
17909 (base32 "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj"))))
17910 (build-system python-build-system)
17912 `(("python-requests-oauthlib" ,python-requests-oauthlib)
17913 ("python-six" ,python-six)))
17915 `(("python-mock" ,python-mock)
17916 ("python-pytest" ,python-pytest)
17917 ("python-pytest-cov" ,python-pytest-cov)
17918 ("python-pytest-runner" ,python-pytest-runner)
17919 ("python-responses" ,python-responses)))
17920 (home-page "https://github.com/btongminh/mwclient")
17921 (synopsis "MediaWiki API client")
17922 (description "This package provides a MediaWiki API client.")
17923 (license license:expat)))
17925 (define-public python-utils
17927 (name "python-utils")
17931 (uri (pypi-uri "python-utils" version))
17934 "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj"))))
17935 (build-system python-build-system)
17938 (modify-phases %standard-phases
17940 (lambda* (#:key inputs outputs #:allow-other-keys)
17941 (add-installed-pythonpath inputs outputs)
17942 (delete-file "pytest.ini")
17943 (invoke "pytest" "-vv"))))))
17945 `(("pytest-runner" ,python-pytest-runner)
17946 ("pytest" ,python-pytest)
17947 ("six" ,python-six)))
17948 (home-page "https://github.com/WoLpH/python-utils")
17949 (synopsis "Convenient utilities not included with the standard Python install")
17951 "Python Utils is a collection of small Python functions and classes which
17952 make common patterns shorter and easier.")
17953 (license license:bsd-2)))
17955 (define-public python-diff-match-patch
17957 (name "python-diff-match-patch")
17958 (version "20121119")
17962 (uri (pypi-uri "diff-match-patch" version))
17965 "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
17966 (build-system python-build-system)
17967 (home-page "https://code.google.com/p/google-diff-match-patch")
17968 (synopsis "Synchronize plain text")
17969 (description "Diff Match and Patch libraries offer robust algorithms to
17970 perform the operations required for synchronizing plain text.")
17971 (license license:asl2.0)))
17973 (define-public python2-diff-match-patch
17974 (package-with-python2 python-diff-match-patch))
17976 (define-public python-dirsync
17978 (name "python-dirsync")
17983 (uri (pypi-uri "dirsync" version))
17986 "1gm82jddm1lkazdi8lfsl1b3vi1z0252ng60mzjym8irnv94qfhy"))))
17987 (build-system python-build-system)
17989 `(("six" ,python-six)))
17990 (home-page "https://github.com/tkhyn/dirsync")
17991 (synopsis "Advanced directory tree synchronisation tool")
17992 (description "Advanced directory tree synchronisation tool.")
17993 (license license:expat)))
17995 (define-public python2-dirsync
17996 (package-with-python2 python-dirsync))
17998 (define-public python-levenshtein
18000 (name "python-levenshtein")
18005 (uri (pypi-uri "python-Levenshtein" version))
18008 "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"))))
18009 (build-system python-build-system)
18010 (home-page "https://github.com/ztane/python-Levenshtein")
18011 (synopsis "Fast computation of Levenshtein distance and string similarity")
18013 "The Levenshtein Python C extension module contains functions for fast computation of
18015 @item Levenshtein (edit) distance, and edit operations
18016 @item string similarity
18017 @item approximate median strings, and generally string averaging
18018 @item string sequence and set similarity
18020 It supports both normal and Unicode strings.")
18021 (license license:gpl2+)))
18023 (define-public python2-levenshtein
18024 (package-with-python2 python-levenshtein))
18026 (define-public python-scandir
18028 (name "python-scandir")
18033 (uri (pypi-uri "scandir" version))
18035 (base32 "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd"))))
18036 (build-system python-build-system)
18038 `(#:phases (modify-phases %standard-phases
18041 (invoke "python" "test/run_tests.py"))))))
18042 (home-page "https://github.com/benhoyt/scandir")
18043 (synopsis "Directory iteration function")
18045 "Directory iteration function like os.listdir(), except that instead of
18046 returning a list of bare filenames, it yields DirEntry objects that include
18047 file type and stat information along with the name. Using scandir() increases
18048 the speed of os.walk() by 2-20 times (depending on the platform and file
18049 system) by avoiding unnecessary calls to os.stat() in most cases.
18051 This package is part of the Python standard library since version 3.5.")
18052 (license license:bsd-3)))
18054 (define-public python2-scandir
18055 (package-with-python2 python-scandir))
18057 (define-public python2-stemming
18059 (name "python2-stemming")
18064 (uri (pypi-uri "stemming" version))
18066 (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr"))))
18067 (build-system python-build-system)
18069 `(#:python ,python-2))
18070 (home-page "https://bitbucket.org/mchaput/stemming/overview")
18071 (synopsis "Python implementations of various stemming algorithms")
18073 "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins
18074 stemming algorithms for English. These implementations are straightforward and
18075 efficient, unlike some Python versions of the same algorithms available on the
18076 Web. This package is an extraction of the stemming code included in the Whoosh
18078 (license license:public-domain)))
18080 (define-public python-factory-boy
18082 (name "python-factory-boy")
18087 (uri (pypi-uri "factory_boy" version))
18089 (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56"))))
18090 (build-system python-build-system)
18092 ;; Tests are not included in the tarball.
18095 `(("faker" ,python-faker)))
18096 (home-page "https://github.com/benhoyt/scandir")
18097 (synopsis "Versatile test fixtures replacement")
18099 "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl.
18101 As a fixtures replacement tool, it aims to replace static, hard to maintain
18102 fixtures with easy-to-use factories for complex object.
18104 Instead of building an exhaustive test setup with every possible combination
18105 of corner cases, factory_boy allows you to use objects customized for the
18106 current test, while only declaring the test-specific fields")
18107 (license license:expat)))
18109 (define-public python2-factory-boy
18110 (package-with-python2 python-factory-boy))
18112 (define-public python-translate-toolkit
18114 (name "python-translate-toolkit")
18119 (uri (pypi-uri "translate-toolkit" version ".tar.bz2"))
18121 (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq"))))
18122 (build-system python-build-system)
18124 `(("python-pytest" ,python-pytest)
18125 ("python-sphinx" ,python-sphinx)))
18127 `(("python-babel" ,python-babel)
18128 ("python-beautifulsoup4" ,python-beautifulsoup4)
18129 ("python-chardet" ,python-chardet)
18130 ("python-diff-match-patch" ,python-diff-match-patch)
18131 ("python-levenshtein" ,python-levenshtein)
18132 ("python-lxml" ,python-lxml)
18133 ("python-six" ,python-six)
18134 ("python-vobject" ,python-vobject)
18135 ("python-pyyaml" ,python-pyyaml)))
18137 ;; TODO: tests are not run, because they end with
18138 ;; TypeError: parse() missing 2 required positional arguments: 'tree' and
18140 ;; during test setup.
18142 (home-page "https://toolkit.translatehouse.org")
18143 (synopsis "Tools and API for translation and localization engineering")
18145 "Tools and API for translation and localization engineering. It contains
18146 several utilities, as well as an API for building localization tools.")
18147 (license license:gpl2+)))
18149 (define-public python2-translate-toolkit
18150 (package-with-python2 python-translate-toolkit))
18152 (define-public python-packaging
18154 (name "python-packaging")
18159 (uri (pypi-uri "packaging" version))
18160 ;; XXX: The URL in the patch file is wrong, it should be
18161 ;; <https://github.com/pypa/packaging/pull/256>.
18162 (patches (search-patches "python-packaging-test-arch.patch"))
18165 "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
18166 (build-system python-build-system)
18168 `(#:phases (modify-phases %standard-phases
18170 (lambda* (#:key tests? #:allow-other-keys)
18172 (invoke "py.test" "-vv")
18173 (format #t "test suite not run~%"))
18176 `(("python-pretend" ,python-pretend)
18177 ("python-pytest" ,python-pytest)))
18179 `(("python-pyparsing" ,python-pyparsing)
18180 ("python-six" ,python-six)))
18181 (home-page "https://github.com/pypa/packaging")
18182 (synopsis "Core utilities for Python packages")
18183 (description "Packaging is a Python module for dealing with Python packages.
18184 It offers an interface for working with package versions, names, and dependency
18186 ;; From 'LICENSE': This software is made available under the terms of
18187 ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
18188 ;; Contributions to this software is made under the terms of *both* these
18190 (license (list license:asl2.0 license:bsd-2))))
18192 (define-public python2-packaging
18193 (package-with-python2 python-packaging))
18195 ;; Variants with minimal dependencies, for bootstrapping Pytest.
18196 (define-public python-packaging-bootstrap
18200 (name "python-packaging-bootstrap")
18201 (native-inputs '())
18203 `(("python-pyparsing" ,python-pyparsing)))
18204 (arguments '(#:tests? #f)))))
18206 (define-public python2-packaging-bootstrap
18210 (name "python2-packaging-bootstrap")
18211 (native-inputs '())
18213 `(("python-pyparsing" ,python2-pyparsing)))
18216 ,@(package-arguments python2-packaging))))))
18218 (define-public python-relatorio
18220 (name "python-relatorio")
18225 (uri (pypi-uri "relatorio" version))
18228 "09nhrz80dfm60nssbvjgz4czzy4yzfa8gxczcdlzbgcnnvm914vb"))))
18229 (build-system python-build-system)
18231 `(("python-lxml" ,python-lxml)
18232 ("python-genshi" ,python-genshi)))
18234 `(("python-magic" ,python-magic)))
18235 (home-page "https://relatorio.tryton.org/")
18236 (synopsis "Templating library able to output ODT and PDF files")
18237 (description "Relatorio is a templating library which provides a way to
18238 easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
18239 for more filetypes can be easily added by creating plugins for them.")
18240 (license license:gpl3+)))
18242 (define-public python2-relatorio
18243 (package-with-python2 python-relatorio))
18245 (define-public python-radon
18247 (name "python-radon")
18252 (uri (pypi-uri "radon" version))
18255 "0vfxxzbnz5lxfvp0yxp35g6c8qqnnbhi4dm7shkm1d3d4192q22n"))))
18256 (build-system python-build-system)
18258 `(#:phases (modify-phases %standard-phases
18261 (invoke "python" "radon/tests/run.py"))))))
18263 `(("python-colorama" ,python-colorama)
18264 ("python-flake8-polyfill" ,python-flake8-polyfill)
18265 ("python-mando" ,python-mando)))
18267 `(("python-pytest" ,python-pytest)
18268 ("python-pytest-mock" ,python-pytest-mock)))
18269 (home-page "https://radon.readthedocs.org/")
18270 (synopsis "Code Metrics in Python")
18271 (description "Radon is a Python tool which computes various code metrics.
18272 Supported metrics are:
18274 @item raw metrics: SLOC, comment lines, blank lines, &c.
18275 @item Cyclomatic Complexity (i.e. McCabe’s Complexity)
18276 @item Halstead metrics (all of them)
18277 @item the Maintainability Index (a Visual Studio metric)
18279 (properties `((python2-variant . ,(delay python2-radon))))
18280 (license license:expat)))
18282 (define-public python2-radon
18283 (let ((base (package-with-python2 (strip-python2-variant python-radon))))
18284 (package/inherit base
18286 `(("python-configparser" ,python2-configparser)
18287 ("python-future" ,python2-future)
18288 ,@(package-propagated-inputs base))))))
18290 (define-public python-sure
18292 (name "python-sure")
18297 (uri (pypi-uri "sure" version))
18300 "1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w"))))
18301 (build-system python-build-system)
18303 `(("python-mock" ,python-mock)
18304 ("python-six" ,python-six)))
18306 `(("python-nose" ,python-nose)))
18307 (home-page "https://github.com/gabrielfalcao/sure")
18308 (synopsis "Automated testing library in python for python")
18310 "Sure is a python library that leverages a DSL for writing assertions.
18311 Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
18312 (license license:gpl3+)))
18314 (define-public python2-sure
18315 (package-with-python2 python-sure))
18317 (define-public python2-couleur
18318 ;; This package does not seem to support python3 at all, hence,
18319 ;; only the python2 variant definition is provided.
18321 (name "python2-couleur")
18326 (uri (pypi-uri "couleur" version))
18329 "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
18330 (build-system python-build-system)
18332 `(#:python ,python-2))
18333 (home-page "https://github.com/gabrielfalcao/couleur")
18335 "ANSI terminal tool for python, colored shell and other handy fancy features")
18337 "@code{Couleur} provides python programs a way to use the ANSI features in a unix
18338 terminal such as coloured output in the shell, overwriting output, indentation, etc.")
18339 ;; README.md says ASL2.0, but all source code headers are LGPL3+.
18340 ;; https://github.com/gabrielfalcao/couleur/issues/11
18341 (license license:lgpl3+)))
18343 (define-public python-misaka
18345 (name "python-misaka")
18350 (uri (pypi-uri "misaka" version))
18353 "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"))))
18354 (build-system python-build-system)
18356 `(;; Line 37 of setup.py calls self.run_command('develop')
18357 ;; in the 'check' phase. This command seems to be trying
18359 ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
18360 ;; for which it does not have the permission to write.
18363 `(("python-cffi" ,python-cffi)))
18364 (home-page "https://github.com/FSX/misaka")
18365 (synopsis "Python binding for Hoedown")
18367 "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
18368 library written in C. It features a fast HTML renderer and functionality to make custom
18369 renderers (e.g. man pages or LaTeX).")
18370 (license license:expat)))
18372 (define-public python2-misaka
18373 (package-with-python2 python-misaka))
18375 (define-public python2-steadymark
18376 ;; This is forced into being a python2 only variant
18377 ;; due to its dependence on couleur that has no support
18380 (name "python2-steadymark")
18385 (uri (pypi-uri "steadymark" version))
18388 "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
18389 (build-system python-build-system)
18391 `(("python-couleur" ,python2-couleur)
18392 ("python-sure" ,python2-sure)
18393 ("python-misaka" ,python2-misaka)))
18395 `(#:python ,python-2
18397 (modify-phases %standard-phases
18398 (add-before 'build 'patch-setup-py
18400 ;; Update requirements from dependency==version
18401 ;; to dependency>=version
18402 (substitute* "setup.py"
18405 (home-page "https://github.com/gabrielfalcao/steadymark")
18406 (synopsis "Markdown-based test runner for python")
18408 "@code{Steadymark} allows documentation to be written in github-flavoured
18409 markdown. The documentation may contain snippets of code surrounded by python
18410 code blocks and @code{Steadymark} will find these snippets and run them, making
18411 sure that there are no old malfunctional examples in the documentation examples.")
18412 (license license:expat)))
18414 (define-public python-jsonpointer
18416 (name "python-jsonpointer")
18421 (uri (pypi-uri "jsonpointer" version))
18424 "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
18425 (build-system python-build-system)
18426 (home-page "https://github.com/stefankoegl/python-json-pointer")
18427 (synopsis "Identify specific nodes in a JSON document")
18428 (description "@code{jsonpointer} allows you to access specific nodes
18429 by path in a JSON document (see RFC 6901).")
18430 (license license:bsd-3)))
18432 (define-public python2-jsonpointer
18433 (package-with-python2 python-jsonpointer))
18435 (define-public python-jsonpatch
18437 (name "python-jsonpatch")
18442 ;; pypi version lacks tests.js
18443 (uri (git-reference
18444 (url "https://github.com/stefankoegl/python-json-patch")
18445 (commit (string-append "v" version))))
18446 (file-name (git-file-name name version))
18449 "0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
18450 (build-system python-build-system)
18452 `(("python-jsonpointer" ,python-jsonpointer)))
18453 (home-page "https://github.com/stefankoegl/python-json-patch")
18454 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
18455 (description "@code{jsonpatch} is a library and program that allows
18456 applying JSON Patches according to RFC 6902.")
18457 (license license:bsd-3)))
18459 (define-public python2-jsonpatch
18460 (package-with-python2 python-jsonpatch))
18462 (define-public python-jsonpatch-0.4
18463 (package (inherit python-jsonpatch)
18464 (name "python-jsonpatch")
18469 (uri (git-reference
18470 (url "https://github.com/stefankoegl/python-json-patch")
18471 (commit (string-append "v" version))))
18472 (file-name (git-file-name name version))
18475 "1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
18477 (define-public python2-jsonpatch-0.4
18478 (package-with-python2 python-jsonpatch-0.4))
18480 (define-public python-rfc3986
18482 (name "python-rfc3986")
18486 (uri (pypi-uri "rfc3986" version))
18489 "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
18490 (build-system python-build-system)
18492 `(#:modules ((guix build utils)
18493 (guix build python-build-system)
18498 (modify-phases %standard-phases
18501 (let ((cwd (getcwd)))
18502 (setenv "PYTHONPATH"
18503 (string-append cwd "/build/"
18504 (find (cut string-prefix? "lib" <>)
18505 (scandir (string-append cwd "/build")))
18507 (getenv "PYTHONPATH")))
18508 (invoke "pytest" "-v")))))))
18510 `(("python-pytest" ,python-pytest)))
18511 (home-page "https://rfc3986.readthedocs.io/")
18512 (synopsis "Parse and validate URI references")
18514 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
18515 validation and authority parsing. This module also supports RFC@tie{}6874
18516 which adds support for zone identifiers to IPv6 addresses.")
18517 (license license:asl2.0)))
18519 (define-public python2-rfc3986
18520 (package-with-python2 python-rfc3986))
18522 (define-public python-rfc3987
18524 (name "python-rfc3987")
18529 (uri (pypi-uri "rfc3987" version))
18532 "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
18533 (build-system python-build-system)
18534 (home-page "https://pypi.org/project/rfc3987/")
18535 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
18536 (description "@code{rfc3987} provides routines for parsing and
18537 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
18538 (license license:gpl3+)))
18540 (define-public python2-rfc3987
18541 (package-with-python2 python-rfc3987))
18543 ;; The latest commit contains fixes for building with both python3 and python2.
18544 (define-public python-rfc6555
18545 (let ((commit "1a181b432312731f6742a5eb558dae4761d32361")
18548 (name "python-rfc6555")
18549 (version (git-version "0.0.0" revision commit))
18552 (uri (git-reference
18553 (url "https://github.com/sethmlarson/rfc6555")
18555 (file-name (git-file-name name version))
18558 "1bxl17j9vs69cshcqnlwamr03hnykxqnwz3mdgi6x3s2k4q18npp"))))
18559 (build-system python-build-system)
18562 (modify-phases %standard-phases
18564 (lambda* (#:key tests? #:allow-other-keys)
18566 ;; Other tests require network access.
18567 (invoke "pytest" "tests/test_ipv6.py")
18570 `(("python-pytest" ,python-pytest)))
18571 (home-page "https://pypi.org/project/rfc6555/")
18572 (synopsis "Python implementation of RFC 6555")
18574 "Python implementation of the Happy Eyeballs Algorithm described in RFC
18575 6555. Provided with a single file and dead-simple API to allow easy vendoring
18576 and integration into other projects.")
18577 (license license:asl2.0))))
18579 (define-public python-bagit
18581 (name "python-bagit")
18586 (uri (pypi-uri "bagit" version))
18589 "1m6y04qmig0b5hzb35lnaw3d2yfydb7alyr1579yblvgs3da6j7j"))))
18590 (build-system python-build-system)
18592 `(("python-setuptools-scm" ,python-setuptools-scm)
18593 ("python-coverage" ,python-coverage)
18594 ("python-mock" ,python-mock)))
18595 (home-page "https://libraryofcongress.github.io/bagit-python/")
18596 (synopsis "Create and validate BagIt packages")
18597 (description "Bagit is a Python library and command line utility for working
18598 with BagIt style packages. BagIt is a minimalist packaging format for digital
18600 (license license:cc0)))
18602 (define-public python-prov
18604 (name "python-prov")
18609 (uri (pypi-uri "prov" version))
18612 "1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
18613 (build-system python-build-system)
18615 `(("python-dateutil" ,python-dateutil)
18616 ("python-lxml" ,python-lxml)
18617 ("python-networkx" ,python-networkx)
18618 ("python-rdflib" ,python-rdflib)))
18620 `(("graphviz" ,graphviz)
18621 ("python-pydot" ,python-pydot)))
18622 (home-page "https://github.com/trungdong/prov")
18624 "W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
18626 "This package provides a library for W3C Provenance Data Model supporting
18627 PROV-O (RDF), PROV-XML, PROV-JSON import/export.")
18628 (license license:expat)))
18630 (define-public python-arcp
18632 (name "python-arcp")
18637 (uri (pypi-uri "arcp" version))
18640 "1p8mfyjssa6pbn5dp6pyzv9yy6kwm2rz5jn2kjbq5vy9f9wsq5sw"))))
18641 (build-system python-build-system)
18643 `(("python-pytest" ,python-pytest)))
18644 (home-page "http://arcp.readthedocs.io/")
18646 "Archive and Package URI parser and generator")
18648 "@acronym{arcp, Archive and Package} provides functions for creating
18649 @code{arcp_} URIs, which can be used for identifying or parsing hypermedia files
18650 packaged in an archive or package, like a ZIP file. arcp URIs can be used to
18651 consume or reference hypermedia resources bundled inside a file archive or an
18652 application package, as well as to resolve URIs for archive resources within a
18653 programmatic framework. This URI scheme provides mechanisms to generate a
18654 unique base URI to represent the root of the archive, so that relative URI
18655 references in a bundled resource can be resolved within the archive without
18656 having to extract the archive content on the local file system. An arcp URI can
18657 be used for purposes of isolation (e.g. when consuming multiple archives),
18658 security constraints (avoiding \"climb out\" from the archive), or for
18659 externally identiyfing sub-resources referenced by hypermedia formats.")
18660 (license license:asl2.0)))
18662 (define-public python-shellescape
18664 (name "python-shellescape")
18669 (uri (git-reference
18670 (url "https://github.com/chrissimpkins/shellescape")
18671 (commit (string-append "v" version))))
18672 (file-name (git-file-name name version))
18675 "0wzccxk139qx1lb2g70f5b2yh9zq15nr2mgvqdbfabg5zm0vf1qw"))))
18676 (build-system python-build-system)
18679 (modify-phases %standard-phases
18681 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
18683 (add-installed-pythonpath inputs outputs)
18684 (invoke "python" "tests/test_shellescape.py"))
18687 `(("python-pytest" ,python-pytest)))
18688 (home-page "https://github.com/chrissimpkins/shellescape")
18690 "Shell escape a string to safely use it as a token in a shell command")
18692 "The shellescape Python module defines the @code{shellescape.quote()}
18693 function that returns a shell-escaped version of a Python string. This is a
18694 backport of the @code{shlex.quote()} function from Python 3.8 that makes it
18695 accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
18696 (license license:expat)))
18698 (define-public python-validators
18700 (name "python-validators")
18704 (uri (pypi-uri "validators" version))
18707 "024m15j33szd0v8k5l4ccish6n0b4knq81gmb4fq25ynwyyyd4mi"))))
18708 (build-system python-build-system)
18710 '(#:phases (modify-phases %standard-phases
18713 (invoke "pytest" "-vv"))))))
18715 `(("python-decorator" ,python-decorator)
18716 ("python-six" ,python-six)))
18718 `(("python-flake8" ,python-flake8)
18719 ("python-isort" ,python-isort)
18720 ("python-pytest" ,python-pytest)))
18721 (home-page "https://github.com/kvesteri/validators")
18722 (synopsis "Data validation library")
18724 "This package contains validators for different things such as email
18725 addresses, IP addresses, URLs, hashes and more. It has been designed to
18726 be easy to use and not require defining a schema or form just to validate
18728 (license license:expat)))
18730 (define-public python2-validators
18731 (package-with-python2 python-validators))
18733 (define-public python-validate-email
18735 (name "python-validate-email")
18740 (uri (pypi-uri "validate_email" version))
18743 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
18744 (build-system python-build-system)
18745 (home-page "https://github.com/syrusakbary/validate_email")
18746 (synopsis "Verifies if an email address is valid and really exists")
18747 (description "@code{validate_email} can be used to verify if an email
18748 address is valid and really exists.")
18749 (license license:lgpl3+)))
18751 (define-public python2-validate-email
18752 (package-with-python2 python-validate-email))
18754 (define-public python-flex
18756 (name "python-flex")
18761 (uri (pypi-uri "flex" version))
18764 "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
18765 (build-system python-build-system)
18767 `(("python-click" ,python-click)
18768 ("python-iso8601" ,python-iso8601)
18769 ("python-jsonpointer" ,python-jsonpointer)
18770 ("python-pyyaml" ,python-pyyaml)
18771 ("python-requests" ,python-requests)
18772 ("python-rfc3987" ,python-rfc3987)
18773 ("python-six" ,python-six)
18774 ("python-validate-email" ,python-validate-email)))
18775 (home-page "https://github.com/pipermerriam/flex")
18776 (synopsis "Validates Swagger schemata")
18777 (description "@code{flex} can be used to validate Swagger schemata.")
18778 (license license:bsd-3)))
18780 (define-public python2-flex
18781 (package-with-python2 python-flex))
18783 (define-public python-marshmallow
18785 (name "python-marshmallow")
18790 (uri (pypi-uri "marshmallow" version))
18793 "0kizhh3mnhpa08wfnsv1gagy22bpxzxszgbiylkhpz1d8qvwrykk"))))
18794 (build-system python-build-system)
18796 `(("python-dateutil" ,python-dateutil)
18797 ("python-simplejson" ,python-simplejson)))
18799 `(("python-pytest" ,python-pytest)
18800 ("python-pytz" ,python-pytz)))
18801 (home-page "https://github.com/marshmallow-code/marshmallow")
18802 (synopsis "Convert complex datatypes to and from native
18803 Python datatypes.")
18804 (description "@code{marshmallow} provides a library for converting
18805 complex datatypes to and from native Python datatypes.")
18806 (license license:expat)))
18808 (define-public python-apispec
18810 (name "python-apispec")
18815 (uri (pypi-uri "apispec" version))
18818 "12n4w5zkn4drcn8izq68vmixmqvz6abviqkdn4ip0kaax3jjh3in"))))
18819 (build-system python-build-system)
18821 '(#:phases (modify-phases %standard-phases
18822 (add-after 'unpack 'disable-prance-tests
18824 ;; Disable validation tests since they require the
18825 ;; optional 'prance' library which is not yet in Guix.
18826 (substitute* "tests/test_ext_marshmallow_openapi.py"
18827 (("def test_openapi_tools_validate.*" all)
18828 (string-append "@pytest.mark.xfail\n" all)))))
18831 (setenv "PYTHONPATH"
18832 (string-append "./build/lib:"
18833 (getenv "PYTHONPATH")))
18834 (invoke "pytest" "-vv"))))))
18836 `(("python-pyyaml" ,python-pyyaml)))
18838 `(("python-pytest" ,python-pytest)
18839 ("python-marshmallow" ,python-marshmallow)))
18840 (home-page "https://github.com/marshmallow-code/apispec")
18841 (synopsis "Swagger/OpenAPI specification generator")
18842 (description "@code{python-apispec} is a pluggable API specification
18843 generator. It currently supports the OpenAPI specification, formerly known
18845 (license license:expat)))
18847 (define-public python-flasgger
18849 (name "python-flasgger")
18854 (uri (git-reference
18855 (url "https://github.com/rochacbruno/flasgger")
18857 (file-name (git-file-name name version))
18859 (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn"))))
18860 (build-system python-build-system)
18863 (modify-phases %standard-phases
18865 (lambda* (#:key inputs outputs #:allow-other-keys)
18866 (substitute* "Makefile"
18867 (("flake8 flasgger --ignore=F403")
18868 "flake8 flasgger --ignore=E731,F403"))
18869 (setenv "PYTHONPATH" (string-append (getcwd)
18871 (getenv "PYTHONPATH")))
18872 (invoke "py.test"))))))
18874 `(("python-flask" ,python-flask)
18875 ("python-pyyaml" ,python-pyyaml)
18876 ("python-jsonschema" ,python-jsonschema)
18877 ("python-mistune" ,python-mistune)
18878 ("python-six" ,python-six)))
18880 `(("python-decorator" ,python-decorator)
18881 ("python-flake8" ,python-flake8)
18882 ("python-flask-restful" ,python-flask-restful)
18883 ("python-flex" ,python-flex)
18884 ("python-pytest" ,python-pytest)
18885 ("python-pytest-cov" ,python-pytest-cov)
18886 ("python-marshmallow" ,python-marshmallow)
18887 ("python-apispec" ,python-apispec)))
18888 (home-page "https://github.com/rochacbruno/flasgger/")
18889 (synopsis "Extract Swagger specs from your Flask project")
18890 (description "@code{python-flasgger} allows extracting Swagger specs
18891 from your Flask project. It is a fork of Flask-Swagger.")
18892 (license license:expat)))
18894 (define-public python-swagger-spec-validator
18896 (name "python-swagger-spec-validator")
18901 (uri (pypi-uri "swagger-spec-validator" version))
18904 "11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp"))))
18905 (build-system python-build-system)
18907 `(("python-jsonschema" ,python-jsonschema)
18908 ("python-pyyaml" ,python-pyyaml)
18909 ("python-six" ,python-six)))
18911 "https://github.com/Yelp/swagger_spec_validator")
18912 (synopsis "Validation of Swagger specifications")
18913 (description "@code{swagger_spec_validator} provides a library for
18914 validating Swagger API specifications.")
18915 (license license:asl2.0)))
18917 (define-public python2-swagger-spec-validator
18918 (package-with-python2 python-swagger-spec-validator))
18920 (define-public python-apache-libcloud
18922 (name "python-apache-libcloud")
18927 (uri (pypi-uri "apache-libcloud" version))
18930 "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v"))))
18931 (build-system python-build-system)
18934 (modify-phases %standard-phases
18935 (add-after 'unpack 'patch-ssh
18936 (lambda* (#:key inputs #:allow-other-keys)
18937 (substitute* "libcloud/compute/ssh.py"
18938 (("'ssh'") (string-append "'" (assoc-ref inputs "openssh")
18941 (add-after 'unpack 'patch-tests
18943 (substitute* "libcloud/test/compute/test_ssh_client.py"
18944 (("class ShellOutSSHClientTests")
18945 "@unittest.skip(\"Guix container doesn't have ssh service\")
18946 class ShellOutSSHClientTests"))
18948 (add-before 'check 'copy-secret
18950 (copy-file "libcloud/test/secrets.py-dist"
18951 "libcloud/test/secrets.py")
18954 `(("openssh" ,openssh)))
18956 `(("python-paramiko" ,python-paramiko)
18957 ("python-requests" ,python-requests)))
18959 `(("python-lockfile" ,python-lockfile)
18960 ("python-mock" ,python-mock)
18961 ("python-pytest" ,python-pytest)
18962 ("python-pytest-runner" ,python-pytest-runner)
18963 ("python-requests-mock" ,python-requests-mock)))
18964 (home-page "https://libcloud.apache.org/")
18965 (synopsis "Unified Cloud API")
18966 (description "@code{libcloud} is a Python library for interacting with
18967 many of the popular cloud service providers using a unified API.")
18968 (license license:asl2.0)))
18970 (define-public python-smmap
18972 (name "python-smmap")
18977 (uri (pypi-uri "smmap" version))
18979 (base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
18980 (build-system python-build-system)
18982 `(("python-nosexcover" ,python-nosexcover)))
18983 (home-page "https://github.com/Byron/smmap")
18984 (synopsis "Python sliding window memory map manager")
18985 (description "@code{smmap} is a pure Python implementation of a sliding
18986 window memory map manager.")
18987 (license license:bsd-3)))
18989 (define-public python-smmap2
18990 (deprecated-package "python-smmap2" python-smmap))
18992 (define-public python2-smmap
18993 (package-with-python2 python-smmap))
18995 (define-public python2-smmap2
18996 (deprecated-package "python2-smmap2" python2-smmap))
18998 (define-public python-regex
19000 (name "python-regex")
19001 (version "2020.6.8")
19004 (uri (pypi-uri "regex" version))
19007 "1b3k0zi1pd99q5mk7ri7vcx2y1mq5inm9hk8dryqyhrpkmh4xdp9"))))
19008 (build-system python-build-system)
19011 (modify-phases %standard-phases
19013 (lambda* (#:key inputs outputs #:allow-other-keys)
19014 (add-installed-pythonpath inputs outputs)
19015 (invoke "python" "-c"
19016 "from regex.test_regex import test_main; test_main()"))))))
19017 (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
19018 (synopsis "Alternative regular expression module")
19019 (description "This regular expression implementation is backwards-
19020 compatible with the standard @code{re} module, but offers additional
19021 functionality like full case-folding for case-insensitive matches in Unicode.")
19022 (license license:psfl)))
19024 (define-public python2-regex
19025 (package-with-python2 python-regex))
19027 (define-public python-pyopengl
19029 (name "python-pyopengl")
19034 (uri (pypi-uri "PyOpenGL" version))
19037 "091lp9bpqi8yf1nmyg19xmvw611lrzq2q94cl1k5gnlh0c6vl1s1"))))
19038 (build-system python-build-system)
19041 ("freeglut" ,freeglut)
19044 `(#:tests? #f ; Tests fail: AttributeError: 'GLXPlatform' object has no
19045 ;attribute 'OSMesa'
19047 (modify-phases %standard-phases
19048 (add-before 'build 'fix-paths
19049 (lambda* (#:key inputs outputs #:allow-other-keys)
19050 (substitute* '("OpenGL/platform/ctypesloader.py")
19051 (("filenames_to_try = \\[\\]") "filenames_to_try = [name]"))
19052 (substitute* '("OpenGL/platform/glx.py" "tests/check_glut_load.py")
19054 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'"))
19056 (string-append "'" (assoc-ref inputs "glu") "/lib/libGLU.so'"))
19058 (string-append "'" (assoc-ref inputs "freeglut") "/lib/libglut.so',"))
19060 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv1_CM.so'"))
19062 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv2.so'")))
19063 ;; Not providing libgle. It seems to be very old.
19065 (home-page "http://pyopengl.sourceforge.net")
19066 (synopsis "Standard OpenGL bindings for Python")
19068 "PyOpenGL is the most common cross platform Python binding to OpenGL and
19069 related APIs. The binding is created using the standard @code{ctypes}
19071 (license license:bsd-3)))
19073 (define-public python-pyopengl-accelerate
19075 (inherit python-pyopengl)
19076 (name "python-pyopengl-accelerate")
19081 (uri (pypi-uri "PyOpenGL-accelerate" version))
19084 "01iggy5jwxv7lxnj51zbmlbhag9wcb7dvrbwgi97i90n0a5m3r8j"))))
19087 ("python-numpy" ,python-numpy))) ; for cython module
19088 ; numpy_formathandler, thus not propagated
19092 (modify-phases %standard-phases
19093 (delete 'fix-paths))))
19094 (synopsis "Acceleration code for PyOpenGL")
19096 "This is the Cython-coded accelerator module for PyOpenGL.")))
19098 (define-public python-rencode
19100 (name "python-rencode")
19105 (uri (pypi-uri "rencode" version))
19108 "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
19109 (build-system python-build-system)
19112 (modify-phases %standard-phases
19113 (add-before 'check 'delete-bogus-test
19114 ;; This test requires /home/aresch/Downloads, which is not provided by
19115 ;; the build environment.
19117 (delete-file "rencode/t.py")
19119 (native-inputs `(("pkg-config" ,pkg-config)
19120 ("python-cython" ,python-cython)))
19121 (home-page "https://github.com/aresch/rencode")
19122 (synopsis "Serialization of heterogeneous data structures")
19124 "The @code{rencode} module is a data structure serialization library,
19125 similar to @code{bencode} from the BitTorrent project. For complex,
19126 heterogeneous data structures with many small elements, r-encoding stake up
19127 significantly less space than b-encodings. This version of rencode is a
19128 complete rewrite in Cython to attempt to increase the performance over the
19129 pure Python module.")
19130 (license license:bsd-3)))
19132 (define-public python2-rencode
19133 (package-with-python2 python-rencode))
19135 (define-public python-xenon
19137 (name "python-xenon")
19142 (uri (pypi-uri "xenon" version))
19145 "0nv207ql2wmh9q62503np056c4vf1c1hlsi5cvv5p5kx574k6r2y"))))
19146 (build-system python-build-system)
19148 `(("python-pyyaml" ,python-pyyaml)
19149 ("python-radon" ,python-radon)
19150 ("python-requests" ,python-requests)
19151 ("python-flake8" ,python-flake8)
19152 ("python-tox" ,python-tox)))
19154 `(#:tests? #f ;test suite not shipped with the PyPI archive
19156 (modify-phases %standard-phases
19157 (add-before 'build 'patch-test-requirements
19159 ;; Remove httpretty dependency for tests.
19160 (substitute* "setup.py"
19161 (("httpretty") ""))
19163 (home-page "https://xenon.readthedocs.org/")
19164 (synopsis "Monitor code metrics for Python on your CI server")
19166 "Xenon is a monitoring tool based on Radon. It monitors code complexity.
19167 Ideally, @code{xenon} is run every time code is committed. Through command
19168 line options, various thresholds can be set for the complexity of code. It
19169 will fail (i.e. it will exit with a non-zero exit code) when any of these
19170 requirements is not met.")
19171 (license license:expat)))
19173 (define-public python-pysocks
19175 (name "python-pysocks")
19180 (uri (pypi-uri "PySocks" version))
19183 "184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
19184 (build-system python-build-system)
19185 (arguments `(#:tests? #f))
19186 (home-page "https://github.com/Anorov/PySocks")
19187 (synopsis "SOCKS client module")
19188 (description "@code{pysocks} is an updated and semi-actively maintained
19189 version of @code{SocksiPy} with bug fixes and extra features.")
19190 (license license:bsd-3)))
19192 (define-public python2-pysocks
19193 (package-with-python2 python-pysocks))
19195 (define-public python-pydiff
19197 (name "python-pydiff")
19202 (uri (pypi-uri "pydiff" version))
19205 "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
19206 (build-system python-build-system)
19207 (home-page "https://github.com/myint/pydiff")
19208 (synopsis "Library to diff two Python files at the bytecode level")
19210 "@code{pydiff} makes it easy to look for actual code changes while
19211 ignoring formatting changes.")
19212 (license license:expat)))
19214 (define-public python2-pydiff
19215 (package-with-python2 python-pydiff))
19217 (define-public python-pydub
19219 (name "python-pydub")
19224 (uri (pypi-uri "pydub" version))
19227 "0sfwfq7yjv4bl3yqbmizszscafvwf4zr40hzbsy7rclvzyznh333"))))
19228 (build-system python-build-system)
19231 (modify-phases %standard-phases
19232 (add-after 'unpack 'fix-ffmpeg-path
19233 (lambda* (#:key inputs #:allow-other-keys)
19234 (let ((ffmpeg (assoc-ref inputs "ffmpeg")))
19235 (substitute* '("pydub/utils.py")
19236 (("return \"ffmpeg\"")
19237 (string-append "return \"" ffmpeg "/bin/ffmpeg\""))
19238 (("return \"ffplay\"")
19239 (string-append "return \"" ffmpeg "/bin/ffplay\""))
19240 (("return \"ffprobe\"")
19241 (string-append "return \"" ffmpeg "/bin/ffprobe\""))
19242 (("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't find ff"))
19244 (home-page "https://pydub.com")
19246 `(("ffmpeg" ,ffmpeg)))
19248 `(("python-scipy" ,python-scipy)))
19249 (synopsis "Manipulate audio with a high level interface in Python")
19251 "@code{pydub} makes it easy to manipulate audio in Python. It relies on
19252 @code{ffmpeg} to open various audio formats.")
19253 (license license:expat))) ; MIT license
19255 (define-public python-tqdm
19257 (name "python-tqdm")
19262 (uri (pypi-uri "tqdm" version))
19265 "093v4c2x5hpigv47zvyxl8wh10y2yd2gvz3l9vchn0zsp8hv2pzk"))))
19266 (build-system python-build-system)
19268 '(#:phases (modify-phases %standard-phases
19270 (lambda* (#:key inputs outputs #:allow-other-keys)
19271 (add-installed-pythonpath inputs outputs)
19272 ;; This invokation is taken from tox.ini.
19273 (invoke "nosetests" "--ignore-files=\"test_perf.py\""
19274 "-d" "-v" "tqdm/"))))))
19276 `(("python-nose" ,python-nose)))
19277 (home-page "https://github.com/tqdm/tqdm")
19278 (synopsis "Fast, extensible progress meter")
19280 "Make loops show a progress bar on the console by just wrapping any
19281 iterable with @code{|tqdm(iterable)|}. Offers many options to define
19282 design and layout.")
19283 (license (list license:mpl2.0 license:expat))))
19285 (define-public python2-tqdm
19286 (package-with-python2 python-tqdm))
19288 (define-public python-pkginfo
19290 (name "python-pkginfo")
19295 (uri (pypi-uri "pkginfo" version))
19298 "1d1xn1xmfvz0jr3pj8irdwnwby3r13g0r2gwklr1q5y68p5p16h2"))))
19299 (build-system python-build-system)
19302 (modify-phases %standard-phases
19303 (add-before 'check 'patch-tests
19305 (substitute* "pkginfo/tests/test_installed.py"
19306 (("test_ctor_w_package_no_PKG_INFO")
19307 "_test_ctor_w_package_no_PKG_INFO"))
19310 "https://code.launchpad.net/~tseaver/pkginfo/trunk")
19312 "Query metadatdata from sdists, bdists, and installed packages")
19314 "API to query the distutils metadata written in @file{PKG-INFO} inside a
19315 source distriubtion (an sdist) or a binary distribution (e.g., created by
19316 running bdist_egg). It can also query the EGG-INFO directory of an installed
19317 distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
19318 created by running @code{python setup.py develop}).")
19319 (license license:expat)))
19321 (define-public python2-pkginfo
19322 (package-with-python2 python-pkginfo))
19324 (define-public python-twine
19326 (name "python-twine")
19331 (uri (pypi-uri "twine" version))
19333 (base32 "11rpd653zcgzkq3sgwkzs3mpxl3r5rij59745ni84ikv8smjmlm3"))))
19334 (build-system python-build-system)
19336 `(("python-tqdm" ,python-tqdm)
19337 ("python-packaging" ,python-packaging)
19338 ("python-pkginfo" ,python-pkginfo)
19339 ("python-readme-renderer" ,python-readme-renderer)
19340 ("python-requests" ,python-requests)
19341 ("python-requests-toolbelt" ,python-requests-toolbelt)))
19342 (home-page "https://github.com/pypa/twine")
19343 (synopsis "Collection of utilities for interacting with PyPI")
19345 "@code{twine} currently supports registering projects and uploading
19346 distributions. It authenticates the user over HTTPS, allows them to pre-sign
19347 their files and supports any packaging format (including wheels).")
19348 (license license:asl2.0)))
19350 (define-public python2-twine
19351 (package-with-python2 python-twine))
19353 (define-public python-linecache2
19355 (name "python-linecache2")
19360 (uri (pypi-uri "linecache2" version))
19363 "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
19364 (build-system python-build-system)
19366 `(;; The tests depend on unittest2, and our version is a bit too old.
19369 `(("python-pbr" ,python-pbr-minimal)))
19371 "https://github.com/testing-cabal/linecache2")
19372 (synopsis "Backports of the linecache module")
19374 "The linecache module allows one to get any line from any file, while
19375 attempting to optimize internally, using a cache, the common case where many
19376 lines are read from a single file.")
19377 (license license:psfl)))
19379 (define-public python2-linecache2
19380 (package-with-python2 python-linecache2))
19382 (define-public python-traceback2
19384 (name "python-traceback2")
19389 (uri (pypi-uri "traceback2" version))
19392 "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
19393 (build-system python-build-system)
19395 `(;; python-traceback2 and python-unittest2 depend on one another.
19398 `(("python-pbr" ,python-pbr-minimal)))
19400 `(("python-linecache2" ,python-linecache2)))
19402 "https://github.com/testing-cabal/traceback2")
19403 (synopsis "Backports of the traceback module")
19405 "This module provides a standard interface to extract, format and print
19406 stack traces of Python programs. It exactly mimics the behavior of the Python
19407 interpreter when it prints a stack trace.")
19408 (license license:psfl)))
19410 (define-public python2-traceback2
19411 (package-with-python2 python-traceback2))
19413 (define-public python-ratelimiter
19415 (name "python-ratelimiter")
19420 (uri (pypi-uri "ratelimiter" version))
19423 "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
19424 (build-system python-build-system)
19426 '(#:tests? #f)) ; There are no tests in the pypi archive.
19427 (home-page "https://github.com/RazerM/ratelimiter")
19428 (synopsis "Simple rate limiting object")
19430 "The @code{ratelimiter} module ensures that an operation will not be
19431 executed more than a given number of times during a given period.")
19432 (license license:asl2.0)))
19434 (define-public python2-ratelimiter
19435 (package-with-python2 python-ratelimiter))
19437 (define-public python-dukpy
19439 (name "python-dukpy")
19444 (uri (git-reference
19445 (url "https://github.com/kovidgoyal/dukpy")
19446 (commit (string-append "v" version))))
19447 (file-name (git-file-name name version))
19449 (base32 "13h21nqzasv4zj32xs61brmc106pr2cx243672crcmwxxnjgaxls"))))
19450 (build-system python-build-system)
19451 (home-page "https://github.com/kovidgoyal/dukpy")
19452 (synopsis "Run JavaScript in python")
19454 "dukpy is a JavaScript runtime environment for Python using the duktape
19455 embeddable JavaScript engine.")
19456 ;; Dukpy is licensed under MIT like the embedded duktape library,
19457 ;; with 'errors.c' as GPL3.
19458 (license (list license:expat license:gpl3))))
19460 (define-public python2-dukpy
19461 (package-with-python2 python-dukpy))
19463 (define-public python-jsonrpclib-pelix
19465 (name "python-jsonrpclib-pelix")
19470 (uri (pypi-uri "jsonrpclib-pelix" version))
19473 "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
19474 (build-system python-build-system)
19476 `(#:tests? #f)) ; no tests in PyPI tarball
19477 (home-page "https://github.com/tcalmant/jsonrpclib/")
19478 (synopsis "JSON-RPC 2.0 client library for Python")
19480 "This library implements the JSON-RPC v2.0
19481 specification (backwards-compatible) as a client library for Python. This
19482 version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
19484 (license license:asl2.0)))
19486 (define-public python2-jsonrpclib-pelix
19487 (package-with-python2 python-jsonrpclib-pelix))
19489 (define-public python-setuptools-scm-git-archive
19491 (name "python-setuptools-scm-git-archive")
19496 (uri (pypi-uri "setuptools_scm_git_archive" version))
19499 "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
19500 (build-system python-build-system)
19502 `(("python-pytest" ,python-pytest)))
19504 `(("python-setuptools-scm" ,python-setuptools-scm)))
19505 (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
19506 (synopsis "Setuptools_scm plugin for git archives")
19508 "The setuptools_scm_git_archive package is a plugin to
19509 setuptools_scm, which supports obtaining versions from git archives that
19510 belong to tagged versions.")
19511 (license license:expat)))
19513 (define-public python2-setuptools-scm-git-archive
19514 (package-with-python2 python-setuptools-scm-git-archive))
19516 (define-public python-setuptools-git
19518 (name "python-setuptools-git")
19523 (uri (pypi-uri "setuptools-git" version))
19526 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
19527 (build-system python-build-system)
19530 (modify-phases %standard-phases
19531 ;; This is needed for tests.
19532 (add-after 'unpack 'configure-git
19534 (setenv "HOME" "/tmp")
19535 (invoke "git" "config" "--global" "user.email" "guix")
19536 (invoke "git" "config" "--global" "user.name" "guix")
19539 `(("git" ,git-minimal)))
19540 (home-page "https://github.com/msabramo/setuptools-git")
19541 (synopsis "Setuptools revision control system plugin for Git")
19543 "This package provides a plugin for Setuptools for revision control with
19545 (license license:bsd-3)))
19547 (define-public python-pyclipper
19549 (name "python-pyclipper")
19550 (version "1.1.0.post3")
19554 (uri (pypi-uri "pyclipper" version ".zip"))
19556 (base32 "164yksvqwqvwzh8f8lq92asg87hd8rvcy2xb5vm4y4ccvd5xgb7i"))
19557 (modules '((guix build utils)))
19560 ;; This file is generated by Cython.
19561 (delete-file "pyclipper/pyclipper.cpp") #t))))
19562 (build-system python-build-system)
19565 (modify-phases %standard-phases
19566 (add-before 'build 'cythonize-sources
19568 (with-directory-excursion "pyclipper"
19569 (invoke "cython" "--cplus" "pyclipper.pyx")))))))
19571 `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
19573 `(("python-cython" ,python-cython)
19574 ("python-pytest" ,python-pytest)
19575 ("python-pytest-runner" ,python-pytest-runner)
19576 ("python-unittest2" ,python-unittest2)
19578 (home-page "https://github.com/greginvm/pyclipper")
19579 (synopsis "Wrapper for Angus Johnson's Clipper library")
19581 "Pyclipper is a Cython wrapper for the C++ translation of the
19582 Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
19583 (license license:expat)))
19585 (define-public python2-pyclipper
19586 (package-with-python2 python-pyclipper))
19588 (define-public python2-booleanoperations
19590 (name "python2-booleanoperations")
19595 (uri (pypi-uri "booleanOperations" version ".zip"))
19598 "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn"))))
19599 (build-system python-build-system)
19601 `(#:python ,python-2))
19604 ("python2-pytest" ,python2-pytest)
19605 ("python2-pytest-runner" ,python2-pytest-runner)))
19607 `(("python-fonttools" ,python2-fonttools)
19608 ("python-pyclipper" ,python2-pyclipper)
19609 ("python-ufolib" ,python2-ufolib)))
19610 (home-page "https://github.com/typemytype/booleanOperations")
19611 (synopsis "Boolean operations on paths")
19613 "BooleanOperations provides a Python library that enables
19614 boolean operations on paths.")
19615 (license license:expat)))
19617 (define-public python-tempdir
19619 (name "python-tempdir")
19624 (uri (pypi-uri "tempdir" version))
19627 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
19628 (build-system python-build-system)
19629 (home-page "https://pypi.org/project/tempdir/")
19631 ;; the package has no tests
19633 (synopsis "Python library for managing temporary directories")
19635 "This library manages temporary directories that are automatically
19636 deleted with all their contents when they are no longer needed. It is
19637 particularly convenient for use in tests.")
19638 (license license:expat)))
19640 (define-public python2-tempdir
19641 (package-with-python2 python-tempdir))
19643 (define-public python-activepapers
19645 (name "python-activepapers")
19650 (uri (pypi-uri "ActivePapers.Py" version))
19653 "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
19654 (build-system python-build-system)
19656 `(#:modules ((ice-9 ftw)
19659 (guix build python-build-system))
19662 (modify-phases %standard-phases
19663 (add-after 'unpack 'delete-python2-code
19665 (for-each delete-file
19666 '("lib/activepapers/builtins2.py"
19667 "lib/activepapers/standardlib2.py"
19668 "lib/activepapers/utility2.py"))))
19671 ;; Deactivate the test cases that download files
19672 (setenv "NO_NETWORK_ACCESS" "1")
19673 ;; For some strange reason, some tests fail if nosetests runs all
19674 ;; test modules in a single execution. They pass if each test
19675 ;; module is run individually.
19676 (for-each (lambda (filename)
19677 (invoke "nosetests"
19678 (string-append "tests/" filename)))
19681 (string-suffix? ".py" filename)))))))))
19683 `(("python-tempdir" ,python-tempdir)
19684 ("python-nose" ,python-nose)))
19686 `(("python-h5py" ,python-h5py)))
19687 (home-page "https://www.activepapers.org/")
19688 (synopsis "Executable papers for scientific computing")
19690 "ActivePapers is a tool for working with executable papers, which
19691 combine data, code, and documentation in single-file packages,
19692 suitable for publication as supplementary material or on repositories
19693 such as figshare or Zenodo.")
19694 (properties `((python2-variant . ,(delay python2-activepapers))))
19695 (license license:bsd-3)))
19697 (define-public python2-activepapers
19698 (let ((base (package-with-python2
19699 (strip-python2-variant python-activepapers))))
19700 (package/inherit base
19702 (substitute-keyword-arguments (package-arguments base)
19704 `(modify-phases ,phases
19705 (delete 'delete-python2-code)
19706 (add-after 'unpack 'delete-python3-code
19708 (for-each delete-file
19709 '("lib/activepapers/builtins3.py"
19710 "lib/activepapers/standardlib3.py"
19711 "lib/activepapers/utility3.py")))))))))))
19713 (define-public python-semver
19715 (name "python-semver")
19720 (uri (pypi-uri "semver" version))
19723 "183kg1rhzz3hqizvphkd8hlbf1zxfx8737zhfkmqzxi71jmdw7pd"))))
19724 (build-system python-build-system)
19726 `(#:phases (modify-phases %standard-phases
19729 (delete-file "setup.cfg")
19730 (invoke "py.test"))))))
19732 `(("python-pytest" ,python-pytest)))
19733 (home-page "https://github.com/k-bx/python-semver")
19734 (synopsis "Python helper for Semantic Versioning")
19735 (description "This package provides a Python library for
19736 @url{Semantic Versioning, http://semver.org/}.")
19737 (license license:bsd-3)))
19739 (define-public python2-semver
19740 (package-with-python2 python-semver))
19742 (define-public python-pyro4
19744 (name "python-pyro4")
19749 (uri (pypi-uri "Pyro4" version))
19751 (base32 "0gsjg869y4gpy265s1gj1f2qy6jn5iz8r2bwwnq78r1r5yi15zib"))))
19752 (build-system python-build-system)
19754 '(#:tests? #f)) ;FIXME: Some tests require network access.
19756 `(("python-cloudpickle" ,python-cloudpickle)
19757 ("python-dill" ,python-dill)
19758 ("python-msgpack" ,python-msgpack)))
19760 `(("python-serpent" ,python-serpent)))
19761 (home-page "https://pyro4.readthedocs.io")
19762 (synopsis "Distributed object middleware for Python")
19764 "Pyro enables you to build applications in which objects can talk to each
19765 other over the network. You can just use normal Python method calls to call
19766 objects on other machines, also known as remote procedure calls (RPC).")
19767 (license license:expat)))
19769 (define-public python2-pyro
19771 (name "python2-pyro")
19776 (uri (pypi-uri "Pyro" version))
19777 (file-name (string-append "Pyro-" version ".tar.gz"))
19780 "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v"))))
19781 (build-system python-build-system)
19783 ;; Pyro is not compatible with Python 3
19784 `(#:python ,python-2
19785 ;; Pyro has no test cases for automatic execution
19787 (home-page "https://pythonhosted.org/Pyro/")
19788 (synopsis "Distributed object manager for Python")
19789 (description "Pyro is a Distributed Object Technology system
19790 written in Python that is designed to be easy to use. It resembles
19791 Java's Remote Method Invocation (RMI). It has less similarity to CORBA,
19792 which is a system and language independent Distributed Object Technology
19793 and has much more to offer than Pyro or RMI. Pyro 3.x is no
19794 longer maintained. New projects should use Pyro4 instead, which
19795 is the new Pyro version that is actively developed.")
19796 (license license:expat)))
19798 (define-public python2-scientific
19800 (name "python2-scientific")
19805 (uri (git-reference
19806 (url "https://github.com/khinsen/ScientificPython")
19807 (commit (string-append "rel" version))))
19808 (file-name (git-file-name name version))
19811 "16l48aj9fps9r7jyk8gpxppwrv0fqvlc13sayxskz28r5s6sjwbl"))))
19812 (build-system python-build-system)
19814 `(("netcdf" ,netcdf)))
19816 `(("python-numpy" ,python2-numpy-1.8)
19817 ("python-pyro" ,python2-pyro)))
19819 ;; ScientificPython is not compatible with Python 3
19820 `(#:python ,python-2
19821 #:tests? #f ; No test suite
19823 (modify-phases %standard-phases
19825 (lambda* (#:key inputs #:allow-other-keys)
19826 (invoke "python" "setup.py" "build"
19827 (string-append "--netcdf_prefix="
19828 (assoc-ref inputs "netcdf"))))))))
19829 (home-page "http://dirac.cnrs-orleans.fr/ScientificPython")
19830 (synopsis "Python modules for scientific computing")
19831 (description "ScientificPython is a collection of Python modules that are
19832 useful for scientific computing. Most modules are rather general (Geometry,
19833 physical units, automatic derivatives, ...) whereas others are more
19834 domain-specific (e.g. netCDF and PDB support). The library is currently
19835 not actively maintained and works only with Python 2 and NumPy < 1.9.")
19836 (license license:cecill-c)))
19838 (define-public python2-mmtk
19840 (name "python2-mmtk")
19845 (uri (git-reference
19846 (url "https://github.com/khinsen/MMTK")
19847 (commit (string-append "rel" version))))
19848 (file-name (git-file-name name version))
19851 "1fqwh3ba9jd42nigvn5shndgwb1zy7kh9520ncvqci7n8ffjr6p1"))))
19852 (build-system python-build-system)
19854 `(("netcdf" ,netcdf)))
19856 `(("python-scientific" ,python2-scientific)
19857 ("python-tkinter" ,python-2 "tk")))
19859 `(#:python ,python-2
19862 (modify-phases %standard-phases
19863 (add-before 'build 'includes-from-scientific
19864 (lambda* (#:key inputs #:allow-other-keys)
19865 (mkdir-p "Include/Scientific")
19868 (assoc-ref inputs "python-scientific")
19869 "/include/python2.7/Scientific")
19870 "Include/Scientific"))))))
19871 (home-page "http://dirac.cnrs-orleans.fr/MMTK")
19872 (synopsis "Python library for molecular simulation")
19873 (description "MMTK is a library for molecular simulations with an emphasis
19874 on biomolecules. It provides widely used methods such as Molecular Dynamics
19875 and normal mode analysis, but also basic routines for implementing new methods
19876 for simulation and analysis. The library is currently not actively maintained
19877 and works only with Python 2 and NumPy < 1.9.")
19878 (license license:cecill-c)))
19880 (define-public python-phonenumbers
19882 (name "python-phonenumbers")
19887 (uri (pypi-uri "phonenumbers" version))
19890 "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
19891 (build-system python-build-system)
19893 "https://github.com/daviddrysdale/python-phonenumbers")
19895 "Python library for dealing with international phone numbers")
19897 "This package provides a Python port of Google's libphonenumber library.")
19898 (license license:asl2.0)))
19900 (define-public python2-phonenumbers
19901 (package-with-python2 python-phonenumbers))
19903 (define-public python-heapdict
19905 (name "python-heapdict")
19910 (uri (pypi-uri "HeapDict" version))
19913 "1dnd7v9adqd21bf4ih2wzn9a7b41m0nccb0vbxny9n037rxzb5c4"))))
19914 (build-system python-build-system)
19915 (home-page "http://stutzbachenterprises.com/")
19916 (synopsis "Heap with decrease-key and increase-key operations")
19918 "heapdict implements the MutableMapping ABC, meaning it works pretty much
19919 like a regular Python @code{dict}. It’s designed to be used as a priority
19921 (license license:bsd-3)))
19923 (define-public python-zict
19925 (name "python-zict")
19930 (uri (pypi-uri "zict" version))
19933 "05pd1hyhqvpw87rnbvl3vdyf619snpyccbswaxisdj17frwnjacf"))))
19934 (build-system python-build-system)
19936 `(("python-heapdict" ,python-heapdict)))
19938 `(("python-pytest" ,python-pytest)))
19939 (home-page "https://zict.readthedocs.io/en/latest/")
19940 (synopsis "Composable mutable mapping tools")
19941 (description "This package provides abstract @code{MutableMapping} classes
19942 that consume and build on other @code{MutableMappings}. Several of these can
19943 be composed with one another to form intuitive interfaces over complex storage
19944 systems policies.")
19945 (license license:bsd-3)))
19947 (define-public python-send2trash
19949 (name "python-send2trash")
19952 (origin (method git-fetch)
19953 ;; Source tarball on PyPI doesn't include tests.
19954 (uri (git-reference
19955 (url "https://github.com/hsoft/send2trash")
19957 (file-name (git-file-name name version))
19960 "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v"))))
19961 (build-system python-build-system)
19964 (modify-phases %standard-phases
19965 (add-before 'check 'pre-check
19967 (mkdir-p "/tmp/foo")
19968 (setenv "HOME" "/tmp/foo")
19970 (home-page "https://github.com/hsoft/send2trash")
19971 (synopsis "Send files to the user's @file{~/Trash} directory")
19972 (description "This package provides a Python library to send files to the
19973 user's @file{~/Trash} directory.")
19974 (properties `((python2-variant . ,(delay python2-send2trash))))
19975 (license license:bsd-3)))
19977 (define-public python2-send2trash
19978 (let ((base (package-with-python2
19979 (strip-python2-variant python-send2trash))))
19980 (package/inherit base
19982 (substitute-keyword-arguments (package-arguments python-send2trash)
19984 `(modify-phases ,phases
19985 (add-before 'check 'setenv
19987 (setenv "PYTHONPATH"
19988 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
19991 (define-public python-pyfavicon
19993 (name "python-pyfavicon")
19998 (uri (pypi-uri "pyfavicon" version))
20000 (base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
20001 (build-system python-build-system)
20003 ;; There are no tests in the PyPI tarball and the tests from the
20004 ;; repository require online data.
20007 `(("python-aiohttp" ,python-aiohttp)
20008 ("python-beautifulsoup4" ,python-beautifulsoup4)
20009 ("python-pillow" ,python-pillow)))
20010 (home-page "https://github.com/bilelmoussaoui/pyfavicon")
20011 (synopsis "Async favicon fetcher")
20013 "@code{pyfavicon} is an async favicon fetcher.")
20014 (license license:expat)))
20016 (define-public python-yamllint
20018 (name "python-yamllint")
20023 (uri (pypi-uri "yamllint" version))
20025 (base32 "090krlxj7az0d9yl8i20vjrqi66dfxx7y5xakjhxzsfp7qmldnc7"))))
20026 (build-system python-build-system)
20028 `(("python-pathspec" ,python-pathspec)
20029 ("python-pyyaml" ,python-pyyaml)
20030 ("python-setuptools" ,python-setuptools)))
20031 (home-page "https://github.com/adrienverge/yamllint")
20032 (synopsis "Linter for YAML files")
20034 "Yamllint is a linter for YAML files. yamllint does not only check for
20035 syntax validity, but for weirdnesses like key repetition and cosmetic problems
20036 such as lines length, trailing spaces, indentation, etc.")
20037 (license license:gpl3+)))
20039 (define-public python-yapf
20041 (name "python-yapf")
20046 (uri (pypi-uri "yapf" version))
20049 "1pj3xzblmbssshi889b6n9hwqbjpabw6j0fimlng2sshd3226bki"))))
20050 (build-system python-build-system)
20051 (home-page "https://github.com/google/yapf")
20052 (synopsis "Formatter for Python code")
20053 (description "YAPF is a formatter for Python code. It's based off of
20054 @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
20055 takes the code and reformats it to the best formatting that conforms to the
20056 style guide, even if the original code didn't violate the style guide.")
20057 (license license:asl2.0)))
20059 (define-public python2-yapf
20060 (package-with-python2 python-yapf))
20062 (define-public python-yq
20069 (uri (pypi-uri "yq" version))
20072 "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl"))))
20073 (build-system python-build-system)
20076 (modify-phases %standard-phases
20077 (add-after 'unpack 'patch
20078 (lambda* (#:key inputs #:allow-other-keys)
20079 (substitute* "yq/__init__.py"
20080 (("Popen\\(\\[\"jq")
20083 (assoc-ref inputs "jq")
20087 `(("python-argcomplete" ,python-argcomplete)
20088 ("python-pyyaml" ,python-pyyaml)
20089 ("python-xmltodict" ,python-xmltodict)
20092 `(("python-coverage" ,python-coverage)
20093 ("python-flake8" ,python-flake8)
20094 ("python-wheel" ,python-wheel)))
20095 (home-page "https://github.com/kislyuk/yq")
20096 (synopsis "Command-line YAML/XML processor")
20098 "This package provides @command{yq} and @command{xq} for processing YAML
20099 and XML respectively. The processing is done through @command{jq}, @command{jq}
20100 filters can be used to process the data as it passes through.")
20101 (license license:asl2.0)))
20103 (define-public python-gyp
20104 (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
20107 (name "python-gyp")
20108 ;; Google does not release versions,
20109 ;; based on second most recent commit date.
20110 (version (git-version "0.0.0" revision commit))
20113 ;; Google does not release tarballs,
20114 ;; git checkout is needed.
20116 (uri (git-reference
20117 (url "https://chromium.googlesource.com/external/gyp")
20119 (file-name (git-file-name name version))
20122 "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
20123 (build-system python-build-system)
20124 (home-page "https://gyp.gsrc.io/")
20125 (synopsis "GYP is a Meta-Build system")
20127 "GYP builds build systems for large, cross platform applications.
20128 It can be used to generate XCode projects, Visual Studio projects, Ninja build
20129 files, and Makefiles.")
20130 (license license:bsd-3))))
20132 (define-public python2-gyp
20133 (package-with-python2 python-gyp))
20135 (define-public python-whatever
20137 (name "python-whatever")
20142 (uri (git-reference
20143 (url "https://github.com/Suor/whatever")
20145 (file-name (git-file-name name version))
20147 (base32 "1q7ajgqjfivxqsqgnhp4lc4p6jxyh4zprcsdbpd6dw54inaf0av5"))))
20148 (build-system python-build-system)
20151 (modify-phases %standard-phases
20154 (invoke "py.test"))))))
20156 `(("python-pytest" ,python-pytest)))
20157 (home-page "https://github.com/Suor/whatever")
20158 (synopsis "Make anonymous functions by partial application of operators")
20159 (description "@code{whatever} provides an easy way to make anonymous
20160 functions by partial application of operators.")
20161 (license license:bsd-3)))
20163 (define-public python2-whatever
20164 (package-with-python2 python-whatever))
20166 (define-public python-funcy
20168 (name "python-funcy")
20173 (uri (git-reference
20174 (url "https://github.com/Suor/funcy")
20177 (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
20178 (file-name (git-file-name name version))))
20179 (build-system python-build-system)
20182 (modify-phases %standard-phases
20185 (invoke "py.test"))))))
20187 `(("python-pytest" ,python-pytest)
20188 ("python-whatever" ,python-whatever)))
20189 (home-page "https://github.com/Suor/funcy")
20190 (synopsis "Functional tools")
20191 (description "@code{funcy} is a library that provides functional tools.
20194 @item merge - Merges collections of the same type
20195 @item walk - Type-preserving map
20196 @item select - Selects a part of a collection
20197 @item take - Takes the first n items of a collection
20198 @item first - Takes the first item of a collection
20199 @item remove - Predicated-removes items of a collection
20200 @item concat - Concatenates two collections
20201 @item flatten - Flattens a collection with subcollections
20202 @item distinct - Returns only distinct items
20203 @item split - Predicated-splits a collection
20204 @item split_at - Splits a collection at a given item
20205 @item group_by - Groups items by group
20206 @item pairwise - Pairs off adjacent items
20207 @item partial - Partially-applies a function
20208 @item curry - Curries a function
20209 @item compose - Composes functions
20210 @item complement - Complements a predicate
20211 @item all_fn - \"all\" with predicate
20213 (license license:bsd-3)))
20215 (define-public python2-funcy
20216 (package-with-python2 python-funcy))
20218 (define-public python-isoweek
20220 (name "python-isoweek")
20225 (uri (pypi-uri "isoweek" version))
20228 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
20229 (build-system python-build-system)
20230 (home-page "https://github.com/gisle/isoweek")
20231 (synopsis "Objects representing a week")
20232 (description "The @code{isoweek} module provide the class Week that
20233 implements the week definition of ISO 8601. This standard also defines
20234 a notation for identifying weeks; yyyyWww (where the W is a literal).
20235 Week instances stringify to this form.")
20236 (license license:bsd-3)))
20238 (define-public python2-isoweek
20239 (package-with-python2 python-isoweek))
20241 (define-public python-pyzbar
20243 (name "python-pyzbar")
20247 ;; There's no source tarball on PyPI.
20249 (uri (git-reference
20250 (url "https://github.com/NaturalHistoryMuseum/pyzbar")
20251 (commit (string-append "v" version))))
20252 (file-name (git-file-name name version))
20254 (base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
20255 (build-system python-build-system)
20258 (modify-phases %standard-phases
20259 (add-after 'unpack 'remove-failing-test
20261 ;; This tests if find_library was called once, but we remove
20262 ;; the call in the stage below to make the library find libzbar.
20263 (delete-file "pyzbar/tests/test_zbar_library.py")
20265 (add-before 'build 'set-library-file-name
20266 (lambda* (#:key inputs #:allow-other-keys)
20267 (let ((libzbar (assoc-ref inputs "zbar")))
20268 (substitute* "pyzbar/zbar_library.py"
20269 (("find_library\\('zbar'\\)")
20270 (string-append "'" libzbar "/lib/libzbar.so.0'")))
20273 `(("pkg-config" ,pkg-config)
20274 ("python-numpy" ,python-numpy)
20275 ("python-pillow" ,python-pillow)))
20278 (home-page "https://github.com/NaturalHistoryMuseum/pyzbar/")
20279 (synopsis "Read one-dimensional barcodes and QR codes")
20281 "Read one-dimensional barcodes and QR codes using the zbar library.
20287 @item Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
20288 @item Decodes locations of barcodes
20289 @item No dependencies, other than the zbar library itself
20291 (license license:expat)))
20293 (define-public python-tokenize-rt
20295 (name "python-tokenize-rt")
20300 (uri (pypi-uri "tokenize-rt" version))
20303 "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
20304 (build-system python-build-system)
20305 (home-page "https://github.com/asottile/tokenize-rt")
20306 (synopsis "Wrapper around the stdlib tokenize which roundtrips.")
20308 "This Python library is a wrapper around @code{tokenize} from the Python
20309 standard library. It provides two additional tokens @code{ESCAPED_NL} and
20310 @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
20311 and @code{tokens_to_src} to roundtrip.")
20312 (license license:expat)))
20314 (define-public python-future-fstrings
20316 (name "python-future-fstrings")
20321 (uri (pypi-uri "future_fstrings" version))
20324 "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
20325 (build-system python-build-system)
20327 `(("python-tokenize-rt" ,python-tokenize-rt)))
20328 (home-page "https://github.com/asottile/future-fstrings")
20329 (synopsis "Backport of fstrings to Python < 3.6")
20331 "This package provides a UTF-8 compatible encoding
20332 @code{future_fstrings}, which performs source manipulation. It decodes the
20333 source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
20334 @code{f} strings.")
20335 (license license:expat)))
20337 (define-public python-typed-ast
20339 (name "python-typed-ast")
20344 (uri (git-reference
20345 (url "https://github.com/python/typed_ast")
20348 (base32 "0l0hz809f7i356kmqkvfsaswiidb98j9hs9rrjnfawzqcbffzgyb"))
20349 (file-name (git-file-name name version))))
20350 (build-system python-build-system)
20352 `(#:modules ((guix build utils)
20353 (guix build python-build-system)
20358 (modify-phases %standard-phases
20361 (let ((cwd (getcwd)))
20362 (setenv "PYTHONPATH"
20363 (string-append cwd "/build/"
20364 (find (cut string-prefix? "lib" <>)
20365 (scandir (string-append cwd "/build")))
20367 (getenv "PYTHONPATH"))))
20370 (native-inputs `(("python-pytest" ,python-pytest)))
20371 (home-page "https://github.com/python/typed_ast")
20372 (synopsis "Fork of Python @code{ast} modules with type comment support")
20373 (description "This package provides a parser similar to the standard
20374 @code{ast} library. Unlike @code{ast}, the parsers in @code{typed_ast}
20375 include PEP 484 type comments and are independent of the version of Python
20376 under which they are run. The @code{typed_ast} parsers produce the standard
20377 Python AST (plus type comments), and are both fast and correct, as they are
20378 based on the CPython 2.7 and 3.7 parsers.")
20379 ;; See the file "LICENSE" for the details.
20380 (license (list license:psfl
20382 license:expat)))) ;ast27/Parser/spark.py
20384 (define-public python-typer
20386 (name "python-typer")
20390 ;; Building `python-typer` from the git repository requires the `flit-core`
20391 ;; Python package that is not installed by `python-flit`.
20393 (uri (pypi-uri "typer" version))
20395 (base32 "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal"))))
20396 (build-system python-build-system)
20399 (modify-phases %standard-phases
20400 (add-before 'check 'disable-failing-tests
20402 (substitute* "tests/test_completion/test_completion.py"
20403 (("def test_show_completion")
20404 "def _test_show_completion")
20405 (("def test_install_completion")
20406 "def _test_install_completion"))
20407 (substitute* "tests/test_completion/test_completion_install.py"
20408 (("def test_completion_install_bash")
20409 "def _test_completion_install_bash")
20410 (("def test_completion_install_zsh")
20411 "def _test_completion_install_zsh")
20412 (("def test_completion_install_fish")
20413 "def _test_completion_install_fish")
20414 (("def test_completion_install_powershell")
20415 "def _test_completion_install_powershell"))
20419 (setenv "PYTHONPATH"
20420 (string-append (getcwd) ":"
20421 (getenv "PYTHONPATH")))
20422 (invoke "python" "-m" "pytest" "tests/")
20425 `(("python-click" ,python-click)))
20427 `(("python-coverage" ,python-coverage)
20428 ("python-pytest" ,python-pytest)
20429 ("python-shellingham" ,python-shellingham)))
20430 (home-page "https://github.com/tiangolo/typer")
20432 "Typer builds CLI based on Python type hints")
20434 "Typer is a library for building CLI applications. It's based on
20435 Python 3.6+ type hints.")
20437 (license license:expat)))
20439 (define-public python-typing
20441 (name "python-typing")
20442 (version "3.7.4.3")
20446 (uri (pypi-uri "typing" version))
20448 (base32 "1j8wnz8c9s049w9xbf7ssr1dmgg4rz7vdfq7m880srzxhafgp1qi"))))
20449 (build-system python-build-system)
20450 (home-page "https://docs.python.org/3/library/typing.html")
20451 (synopsis "Type hints for Python")
20452 (description "This is a backport of the standard library @code{typing}
20453 module to Python versions older than 3.5. Typing defines a standard notation
20454 for Python function and variable type annotations. The notation can be used
20455 for documenting code in a concise, standard format, and it has been designed
20456 to also be used by static and runtime type checkers, static analyzers, IDEs
20458 (license license:psfl)))
20460 (define-public python2-typing
20461 (package-with-python2 python-typing))
20463 (define-public python-typing-extensions
20465 (name "python-typing-extensions")
20466 (version "3.7.4.3")
20470 (uri (pypi-uri "typing_extensions" version))
20473 "0356ljrrplm917dqgpn8wjkw6j3mpp916gwxas7jhc3xc4xhgm4r"))))
20474 (build-system python-build-system)
20476 "https://github.com/python/typing/blob/master/typing_extensions/README.rst")
20477 (synopsis "Experimental type hints for Python")
20479 "The typing_extensions module contains additional @code{typing} hints not
20480 yet present in the of the @code{typing} standard library.
20481 Included are implementations of:
20484 @item ContextManager
20495 @item TYPE_CHECKING
20496 @item AsyncGenerator
20498 (license license:psfl)))
20500 (define-public bpython
20507 (uri (pypi-uri "bpython" version))
20509 (base32 "00vmkkc79mlnkyvwww1cr7bpwmf4p61704dhayz6kd0kc203hxvf"))))
20510 (build-system python-build-system)
20513 (modify-phases %standard-phases
20514 (add-after 'unpack 'remove-failing-test
20516 ;; Remove failing test. FIXME: make it pass
20517 (delete-file "bpython/test/test_args.py")
20519 (add-after 'wrap 'add-aliases
20520 ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
20521 (lambda* (#:key outputs #:allow-other-keys)
20522 (let ((out (assoc-ref outputs "out")))
20525 (symlink old (string-append out "/bin/" new)))
20526 '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
20527 '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
20530 `(("python-pygments" ,python-pygments)
20531 ("python-requests" ,python-requests)
20532 ("python-curtsies" ,python-curtsies)
20533 ("python-greenlet" ,python-greenlet)
20534 ("python-six" ,python-six)
20535 ("python-wcwidth" ,python-wcwidth)
20536 ;; optional dependencies
20537 ("python-urwid" ,python-urwid) ; for bpython-urwid only
20538 ("python-watchdog" ,python-watchdog)
20539 ("python-jedi" ,python-jedi)))
20541 `(("python-sphinx" ,python-sphinx)
20542 ("python-mock" ,python-mock)))
20543 (home-page "https://bpython-interpreter.org/")
20544 (synopsis "Fancy interface to the Python interpreter")
20545 (description "Bpython is a fancy interface to the Python
20546 interpreter. bpython's main features are
20549 @item in-line syntax highlighting,
20550 @item readline-like autocomplete with suggestions displayed as you type,
20551 @item expected parameter list for any Python function,
20552 @item \"rewind\" function to pop the last line of code from memory and
20554 @item send the code you've entered off to a pastebin,
20555 @item save the code you've entered to a file, and
20556 @item auto-indentation.
20558 (license license:expat)))
20560 (define-public python-pyinotify
20562 (name "python-pyinotify")
20566 (uri (pypi-uri "pyinotify" version))
20569 "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
20570 (build-system python-build-system)
20571 (arguments `(#:tests? #f)) ;no tests
20572 (home-page "https://github.com/seb-m/pyinotify")
20573 (synopsis "Python library for monitoring inotify events")
20575 "@code{pyinotify} provides a Python interface for monitoring
20576 file system events on Linux.")
20577 (license license:expat)))
20579 (define-public python2-pyinotify
20580 (package-with-python2 python-pyinotify))
20582 ;; Ada parser uses this version.
20583 (define-public python2-quex-0.67.3
20585 (name "python2-quex")
20590 (uri (string-append "mirror://sourceforge/quex/HISTORY/"
20591 (version-major+minor version)
20592 "/quex-" version ".zip"))
20595 "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw"))))
20596 (build-system python-build-system)
20598 `(("unzip" ,unzip)))
20600 `(#:python ,python-2
20603 (modify-phases %standard-phases
20604 (delete 'configure)
20607 (lambda* (#:key outputs #:allow-other-keys)
20608 (let* ((out (assoc-ref outputs "out"))
20609 (share/quex (string-append out "/share/quex"))
20610 (bin (string-append out "/bin")))
20611 (copy-recursively "." share/quex)
20613 (symlink (string-append share/quex "/quex-exe.py")
20614 (string-append bin "/quex"))
20616 (native-search-paths
20617 (list (search-path-specification
20618 (variable "QUEX_PATH")
20619 (files '("share/quex")))))
20620 (home-page "http://quex.sourceforge.net/")
20621 (synopsis "Lexical analyzer generator in Python")
20622 (description "@code{quex} is a lexical analyzer generator in Python.")
20623 (license license:lgpl2.1+))) ; Non-military
20625 (define-public python2-quex
20626 (package (inherit python2-quex-0.67.3)
20627 (name "python2-quex")
20632 (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz"))
20635 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j"))
20636 (file-name (string-append name "-" version ".tar.gz"))))))
20638 (define-public python-more-itertools
20640 (name "python-more-itertools")
20645 (uri (pypi-uri "more-itertools" version))
20648 "01x5nwm1zxmnd06cllbdd095xxc2nd25ing1a726m2kd30rbkpdi"))))
20649 (build-system python-build-system)
20650 (home-page "https://github.com/erikrose/more-itertools")
20651 (synopsis "More routines for operating on iterables, beyond itertools")
20652 (description "Python's built-in @code{itertools} module implements a
20653 number of iterator building blocks inspired by constructs from APL, Haskell,
20654 and SML. @code{more-itertools} includes additional building blocks for
20655 working with iterables.")
20656 (properties `((python2-variant . ,(delay python2-more-itertools))))
20657 (license license:expat)))
20659 ;; The 5.x series are the last versions supporting Python 2.7.
20660 (define-public python2-more-itertools
20662 (inherit python-more-itertools)
20663 (name "python2-more-itertools")
20667 (uri (pypi-uri "more-itertools" version))
20670 "1r12cm6mcdwdzz7d47a6g4l437xsvapdlgyhqay3i2nrlv03da9q"))))
20672 `(#:python ,python-2))
20674 `(("python2-six" ,python2-six-bootstrap)))))
20676 (define-public python-latexcodec
20678 (name "python-latexcodec")
20683 (uri (pypi-uri "latexcodec" version))
20685 (base32 "0wnp3yqcgx0rpy8dz51vh75lbp2qif67da19zi7m3ca98n887hgb"))))
20686 (build-system python-build-system)
20688 `(("python-six" ,python-six)))
20689 (home-page "https://readthedocs.org/projects/latexcodec/")
20690 (synopsis "Work with LaTeX code in Python")
20691 (description "Lexer and codec to work with LaTeX code in Python.")
20692 (license license:expat)))
20694 (define-public python-pybtex
20696 (name "python-pybtex")
20701 (uri (pypi-uri "pybtex" version))
20703 (base32 "070wfcmxrd7xg1si421mi9150gmx2qwx431nwf69sq3hhmgnx080"))))
20704 (build-system python-build-system)
20706 `(("python-nose" ,python-nose)))
20708 `(("python-latexcodec" ,python-latexcodec)
20709 ("python-pyyaml" ,python-pyyaml)
20710 ("python-six" ,python-six)))
20712 `(#:test-target "nosetests"))
20713 (home-page "https://pybtex.org/")
20714 (synopsis "BibTeX-compatible bibliography processor")
20715 (description "Pybtex is a BibTeX-compatible bibliography processor written
20716 in Python. You can simply type pybtex instead of bibtex.")
20717 (license license:expat)))
20719 (define-public python-onetimepass
20721 (name "python-onetimepass")
20726 (uri (pypi-uri "onetimepass" version))
20728 (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
20729 (build-system python-build-system)
20730 (propagated-inputs `(("python-six" ,python-six)))
20731 (home-page "https://github.com/tadeck/onetimepass/")
20732 (synopsis "One-time password library")
20733 (description "Python one-time password library for HMAC-based (HOTP) and
20734 time-based (TOTP) passwords.")
20735 (license license:expat)))
20737 (define-public python-parso
20739 (name "python-parso")
20744 (uri (pypi-uri "parso" version))
20746 (base32 "1f9fc99mjx0h2ad4mgsid728nnmw58hvnq3411g8ljlr9dr49fna"))))
20748 `(("python-pytest" ,python-pytest)))
20749 (build-system python-build-system)
20751 `(#:phases (modify-phases %standard-phases
20753 (lambda _ (invoke "pytest" "-vv"))))))
20754 (home-page "https://github.com/davidhalter/parso")
20755 (synopsis "Python Parser")
20756 (description "Parso is a Python parser that supports error recovery and
20757 round-trip parsing for different Python versions (in multiple Python versions).
20758 Parso is also able to list multiple syntax errors in your Python file.")
20759 (license license:expat)))
20761 (define-public python2-parso
20762 (package-with-python2 python-parso))
20764 (define-public python-async-generator
20766 (name "python-async-generator")
20771 (uri (pypi-uri "async_generator" version))
20774 "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
20775 (build-system python-build-system)
20777 `(("python-pytest" ,python-pytest)))
20778 (home-page "https://github.com/python-trio/async_generator")
20779 (synopsis "Async generators and context managers for Python 3.5+")
20780 (description "@code{async_generator} back-ports Python 3.6's native async
20781 generators and Python 3.7's context managers into Python 3.5.")
20783 (license (list license:expat license:asl2.0))))
20785 (define-public python-async-timeout
20787 (name "python-async-timeout")
20792 (uri (pypi-uri "async-timeout" version))
20795 "0pscbyr840m7fyfc3r8zv9kgkwdcn9f78p7zsrczciwd09m82g0c"))))
20796 (build-system python-build-system)
20797 (home-page "https://github.com/aio-libs/async_timeout/")
20798 (synopsis "Timeout context manager for asyncio programs")
20799 (description "@code{async-timeout} provides a timeout timeout context
20800 manager compatible with @code{asyncio}.")
20801 (license license:asl2.0)))
20803 (define-public python-glob2
20805 (name "python-glob2")
20810 (uri (git-reference
20811 (url "https://github.com/miracle2k/python-glob2")
20812 (commit (string-append "v" version))))
20813 (file-name (git-file-name name version))
20815 (base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
20816 (build-system python-build-system)
20817 (home-page "https://github.com/miracle2k/python-glob2/")
20818 (synopsis "Extended Version of the python buildin glob module")
20819 (description "This is an extended version of the Python
20820 @url{http://docs.python.org/library/glob.html, built-in glob module} which
20824 @item The ability to capture the text matched by glob patterns, and return
20825 those matches alongside the file names.
20826 @item A recursive @code{**} globbing syntax, akin for example to the
20827 @code{globstar} option of Bash.
20828 @item The ability to replace the file system functions used, in order to glob
20829 on virtual file systems.
20830 @item Compatible with Python 2 and Python 3 (tested with 3.3).
20833 Glob2 currently based on the glob code from Python 3.3.1.")
20834 (license license:bsd-2)))
20836 (define-public python2-glob2
20837 (package-with-python2 python-glob2))
20839 (define-public python-gipc
20841 (name "python-gipc")
20846 (uri (pypi-uri "gipc" version ".zip"))
20849 "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
20850 (build-system python-build-system)
20852 `(("unzip" ,unzip)))
20854 `(("python-gevent" ,python-gevent)))
20855 (home-page "https://gehrcke.de/gipc/")
20856 (synopsis "Child process management in the context of gevent")
20857 (description "Usage of Python's multiprocessing package in a
20858 gevent-powered application may raise problems. With @code{gipc},
20859 process-based child processes can safely be created anywhere within a
20860 gevent-powered application.")
20861 (license license:expat)))
20863 (define-public python-beautifultable
20865 (name "python-beautifultable")
20870 (uri (pypi-uri "beautifultable" version))
20873 "0wwlbifcbpzy3wfv6yzsxncarsngzizmmxbn6cy5gazlcq7h4k5x"))))
20874 (build-system python-build-system)
20876 `(("python-wcwidth" ,python-wcwidth)))
20879 (modify-phases %standard-phases
20880 (add-after 'unpack 'patch-setup.py
20882 (substitute* "setup.py"
20884 "setup(\n test_suite=\"test\",")))))))
20885 (home-page "https://github.com/pri22296/beautifultable")
20886 (synopsis "Print ASCII tables for terminals")
20887 (description "@code{python-beautifultable} provides a class for easily
20888 printing tabular data in a visually appealing ASCII format to a terminal.
20890 Features include, but are not limited to:
20892 @item Full customization of the look and feel of the table
20893 @item Row and column accessors.
20894 @item Full support for colors using ANSI sequences or any library.
20895 @item Plenty of predefined styles and option to create custom ones.
20896 @item Support for Unicode characters.
20897 @item Supports streaming table when data is slow to retrieve.
20899 (license license:expat)))
20901 (define-public python-globber
20903 (name "python-globber")
20908 (uri (git-reference
20909 (url "https://github.com/asharov/globber")
20911 (file-name (git-file-name name version))
20914 "055xf7ja7zjhxis0ab5fnfsx16fsvr5fvc6mixqybanwxh8sgfjk"))))
20915 (build-system python-build-system)
20916 (home-page "https://github.com/asharov/globber")
20917 (synopsis "Library for string matching with glob patterns")
20919 "Globber is a Python library for matching file names against glob patterns.
20920 In contrast to other glob-matching libraries, it matches arbitrary strings and
20921 doesn't require the matched names to be existing files. In addition, it
20922 supports the globstar @code{**} operator to match an arbitrary number of
20924 (license license:asl2.0)))
20926 (define-public python-git-hammer
20928 (name "python-git-hammer")
20933 (uri (git-reference
20934 (url "https://github.com/asharov/git-hammer")
20936 (file-name (git-file-name name version))
20939 "0f9xlk86ijzpdj25hr1q4wcy8k72v3w470ngwm9mpdkfj8ng84wr"))))
20940 (build-system python-build-system)
20943 (modify-phases %standard-phases
20944 (add-after 'unpack 'patch-setup.py
20946 (substitute* "setup.py"
20948 "setup(\n test_suite=\"test\",")))))))
20950 `(("python-beautifultable" ,python-beautifultable)
20951 ("python-dateutil" ,python-dateutil)
20952 ("python-gitpython" ,python-gitpython)
20953 ("python-globber" ,python-globber)
20954 ("python-matplotlib" ,python-matplotlib)
20955 ("python-sqlalchemy" ,python-sqlalchemy)
20956 ("python-sqlalchemy-utils"
20957 ,python-sqlalchemy-utils)))
20958 (home-page "https://github.com/asharov/git-hammer")
20959 (synopsis "Provide statistics for git repositories")
20961 "Git Hammer is a statistics tool for projects in git repositories.
20962 Its major feature is tracking the number of lines authored by each person for every
20963 commit, but it also includes some other useful statistics.")
20964 (license license:asl2.0)))
20966 (define-public python-fusepy
20968 (name "python-fusepy")
20973 (uri (pypi-uri "fusepy" version))
20976 "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
20977 (build-system python-build-system)
20980 (modify-phases %standard-phases
20981 (add-before 'build 'set-library-file-name
20982 (lambda* (#:key inputs #:allow-other-keys)
20983 (let ((fuse (assoc-ref inputs "fuse")))
20984 (substitute* "fuse.py"
20985 (("find_library\\('fuse'\\)")
20986 (string-append "'" fuse "/lib/libfuse.so'")))
20990 (home-page "https://github.com/fusepy/fusepy")
20991 (synopsis "Simple ctypes bindings for FUSE")
20992 (description "Python module that provides a simple interface to FUSE and
20993 MacFUSE. The binding is created using the standard @code{ctypes} library.")
20994 (license license:isc)))
20996 (define-public python2-fusepy
20997 (package-with-python2 python-fusepy))
20999 (define-public python-fusepyng
21001 (name "python-fusepyng")
21006 (uri (pypi-uri "fusepyng" version))
21009 "17w9iw6m6zjbmnhs4ikd27pq4mb1nan6k4ahlwyz40463vw6wkwb"))))
21010 (build-system python-build-system)
21013 (modify-phases %standard-phases
21014 (add-after 'unpack 'set-libfuse-path
21015 (lambda* (#:key inputs #:allow-other-keys)
21016 (let ((fuse (assoc-ref inputs "fuse")))
21017 (substitute* "fusepyng.py"
21018 (("os.environ.get\\('FUSE_LIBRARY_PATH'\\)")
21019 (string-append "\"" fuse "/lib/libfuse.so\""))))
21024 `(("python-paramiko" ,python-paramiko)))
21025 (home-page "https://github.com/rianhunter/fusepyng")
21026 (synopsis "Simple ctypes bindings for FUSE")
21027 (description "@code{fusepyng} is a Python module that provides a simple
21028 interface to FUSE on various operating systems. It's just one file and is
21029 implemented using @code{ctypes}.")
21030 (license license:isc)))
21032 (define-public python-userspacefs
21034 (name "python-userspacefs")
21039 (uri (pypi-uri "userspacefs" version))
21042 "1v6saf62ml3j63adalvlkj4iavxjbsbapl20b21mn73p7kvn4ayf"))))
21043 (build-system python-build-system)
21045 `(("python-fusepyng" ,python-fusepyng)))
21046 (home-page "https://github.com/rianhunter/userspacefs")
21047 (synopsis "User-space file systems for Python")
21049 "@code{userspacefs} is a library that allows you to easily write
21050 user-space file systems in Python.")
21051 (license license:gpl3+)))
21053 (define-public python-stone
21055 (name "python-stone")
21060 (uri (pypi-uri "stone" version))
21063 "0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"))))
21064 (build-system python-build-system)
21067 (modify-phases %standard-phases
21068 (add-after 'unpack 'change-version-requirements
21070 ;; Match the requirement in test/requirements.txt
21071 (substitute* "setup.py"
21072 (("pytest < 5") "pytest < 7"))
21073 ;; We don't care about a coverage report.
21074 (substitute* "test/requirements.txt"
21075 (("coverage.*") "coverage\n"))
21078 (lambda* (#:key tests? #:allow-other-keys)
21080 ;; These tests don't import currectly.
21081 (delete-file "test/test_js_client.py")
21082 (delete-file "test/test_tsd_types.py")
21083 (delete-file "test/test_python_gen.py")
21084 (setenv "PYTHONPATH"
21085 (string-append (getcwd) ":"
21086 (getenv "PYTHONPATH")))
21090 `(("python-ply" ,python-ply)
21091 ("python-six" ,python-six)))
21093 `(("python-coverage" ,python-coverage)
21094 ("python-mock" ,python-mock)
21095 ("python-pytest" ,python-pytest)
21096 ("python-pytest-runner" ,python-pytest-runner)))
21097 (home-page "https://github.com/dropbox/stone")
21098 (synopsis "Official Api Spec Language for Dropbox")
21100 "Stone is an interface description language (IDL) for APIs.")
21101 (license license:expat)))
21103 (define-public pybind11
21109 (uri (git-reference
21110 (url "https://github.com/pybind/pybind11")
21111 (commit (string-append "v" version))))
21114 "1lsacpawl2gb5qlh0cawj9swsyfbwhzhwiv6553a7lsigdbadqpy"))
21115 (file-name (git-file-name name version))))
21116 (build-system cmake-build-system)
21118 `(("python" ,python-wrapper)
21120 ;; The following dependencies are used for tests.
21121 ("python-pytest" ,python-pytest)
21122 ("catch" ,catch-framework2-1)
21125 `(#:configure-flags
21126 (list (string-append "-DCATCH_INCLUDE_DIR="
21127 (assoc-ref %build-inputs "catch")
21130 #:phases (modify-phases %standard-phases
21131 (add-after 'install 'install-python
21132 (lambda* (#:key outputs #:allow-other-keys)
21133 (let ((out (assoc-ref outputs "out")))
21134 (with-directory-excursion "../source"
21135 (setenv "PYBIND11_USE_CMAKE" "yes")
21136 (invoke "python" "setup.py" "install"
21137 "--single-version-externally-managed"
21139 (string-append "--prefix=" out)))))))
21141 #:test-target "check"))
21142 (home-page "https://github.com/pybind/pybind11/")
21143 (synopsis "Seamless operability between C++11 and Python")
21145 "@code{pybind11} is a lightweight header-only library that exposes C++
21146 types in Python and vice versa, mainly to create Python bindings of existing
21147 C++ code. Its goals and syntax are similar to the @code{Boost.Python}
21148 library: to minimize boilerplate code in traditional extension modules by
21149 inferring type information using compile-time introspection.")
21150 (license license:bsd-3)))
21152 (define-public python-pooch
21154 (name "python-pooch")
21159 (uri (pypi-uri "pooch" version))
21161 (base32 "1618adsg9r8fsv422sv35z1i723q3a1iir5v7dv2sklh4pl4im1h"))))
21162 (build-system python-build-system)
21164 `(#:tests? #f)) ;requires online data
21166 `(("python-appdirs" ,python-appdirs)
21167 ("python-packaging" ,python-packaging)
21168 ("python-requests" ,python-requests)))
21169 (home-page "https://github.com/fatiando/pooch")
21170 (synopsis "Manage your Python library's sample data files")
21172 "Pooch manages your Python library's sample data files: it automatically
21173 downloads and stores them in a local directory, with support for versioning
21174 and corruption checks.")
21175 (license license:bsd-3)))
21177 (define-public python-fasteners
21179 (name "python-fasteners")
21184 (uri (pypi-uri "fasteners" version))
21187 "1vzmz1xh38b84dv0f4hlp7arwmx8wjlih6lf964bpy8dnyk6s5rs"))))
21188 (build-system python-build-system)
21190 `(("python-monotonic" ,python-monotonic)
21191 ("python-six" ,python-six)))
21193 `(("python-testtools" ,python-testtools)))
21194 (home-page "https://github.com/harlowja/fasteners")
21195 (synopsis "Python package that provides useful locks")
21197 "This package provides a Python program that provides following locks:
21200 @item Locking decorator
21201 @item Reader-writer locks
21202 @item Inter-process locks
21203 @item Generic helpers
21205 (license license:asl2.0)))
21207 (define-public python-requests-file
21209 (name "python-requests-file")
21214 (uri (pypi-uri "requests-file" version))
21217 "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
21218 (build-system python-build-system)
21220 `(("python-requests" ,python-requests)
21221 ("python-six" ,python-six)))
21223 "https://github.com/dashea/requests-file")
21224 (synopsis "File transport adapter for Requests")
21226 "Requests-File is a transport adapter for use with the Requests Python
21227 library to allow local file system access via @code{file://} URLs.")
21228 (license license:asl2.0)))
21230 (define-public python2-requests-file
21231 (package-with-python2 python-requests-file))
21233 (define-public python-identify
21235 (name "python-identify")
21239 ;; There are no tests in the PyPI tarball.
21241 (uri (git-reference
21242 (url "https://github.com/chriskuehl/identify")
21243 (commit (string-append "v" version))))
21244 (file-name (git-file-name name version))
21246 (base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz"))))
21247 (build-system python-build-system)
21250 (modify-phases %standard-phases
21253 (invoke "pytest" "-vv"))))))
21255 `(("python-coverage" ,python-coverage)
21256 ("python-pytest" ,python-pytest)))
21258 `(("python-editdistance" ,python-editdistance)))
21259 (home-page "https://github.com/chriskuehl/identify")
21260 (synopsis "File identification library for Python")
21262 "@code{identify} is a file identification library for Python. Given
21263 a file (or some information about a file), return a set of standardized tags
21264 identifying what the file is.")
21265 (license license:expat)))
21267 (define-public python-tldextract
21269 (name "python-tldextract")
21274 (uri (pypi-uri "tldextract" version))
21277 "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"))))
21278 (build-system python-build-system)
21280 `(("python-pytest" ,python-pytest)
21281 ("python-responses" ,python-responses)))
21283 `(("python-idna" ,python-idna)
21284 ("python-requests" ,python-requests)
21285 ("python-requests-file" ,python-requests-file)))
21287 "https://github.com/john-kurkowski/tldextract")
21289 "Separate the TLD from the registered domain and subdomains of a URL")
21291 "TLDExtract accurately separates the TLD from the registered domain and
21292 subdomains of a URL, using the Public Suffix List. By default, this includes
21293 the public ICANN TLDs and their exceptions. It can optionally support the
21294 Public Suffix List's private domains as well.")
21295 (license license:bsd-3)))
21297 (define-public python2-tldextract
21298 (package-with-python2 python-tldextract))
21300 (define-public python-tldr
21302 (name "python-tldr")
21306 ;; There's no test in PyPI.
21308 (uri (git-reference
21309 (url "https://github.com/tldr-pages/tldr-python-client")
21311 (file-name (git-file-name name version))
21313 (base32 "0n9wqvjxspm18vlxf9j9slrcydshk4rkv5nwkrqhfq606n6zvks4"))))
21314 (build-system python-build-system)
21317 (modify-phases %standard-phases
21319 (lambda* (#:key tests? #:allow-other-keys)
21321 ;; This test fails. It tries to open a network socket.
21322 (invoke "pytest" "-vv" "-k" "not test_error_message")))))))
21324 `(("python-pytest" ,python-pytest)
21325 ("python-pytest-runner" ,python-pytest-runner)))
21327 `(("python-argcomplete" ,python-argcomplete)
21328 ("python-colorama" ,python-colorama)
21329 ("python-termcolor" ,python-termcolor)))
21330 (home-page "https://github.com/tldr-pages/tldr-python-client")
21331 (synopsis "Python command-line client for tldr pages")
21332 (description "This package provides the @code{tldr} command allowing users
21333 to view @code{tldr} pages from a shell. The @code{tldr} pages are a community
21334 effort to simplify the man pages with practical examples.")
21335 (license license:expat))) ; MIT license
21337 (define-public python-nodeenv
21339 (name "python-nodeenv")
21343 ;; There's no tarball in PyPI.
21345 (uri (git-reference
21346 (url "https://github.com/ekalinin/nodeenv")
21348 (file-name (git-file-name name version))
21350 (base32 "0y443icx0w7jlzmxmmcm4q8dqfiwgafbb9cp8jpm68mbqxbz40a7"))))
21351 (build-system python-build-system)
21354 (modify-phases %standard-phases
21357 ;; This test fails. It tries to open a network socket.
21358 (invoke "pytest" "-vv" "-k" "not test_smoke"))))))
21360 `(("python-coverage" ,python-coverage)
21361 ("python-mock" ,python-mock)
21362 ("python-pytest" ,python-pytest)))
21363 (home-page "https://ekalinin.github.io/nodeenv/")
21364 (synopsis "Create isolated node.js environments")
21366 "Nodeenv (node.js virtual environment) is a tool to create isolated
21367 node.js environments. It creates an environment that has its own installation
21368 directories, that doesn't share libraries with other node.js virtual
21370 (license license:bsd-3)))
21372 (define-public python-pynamecheap
21374 (name "python-pynamecheap")
21379 (uri (pypi-uri "PyNamecheap" version))
21382 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
21383 (build-system python-build-system)
21385 `(("python-requests" ,python-requests)))
21387 "https://github.com/Bemmu/PyNamecheap")
21389 "Namecheap API client in Python")
21391 "PyNamecheap is a Namecheap API client in Python.")
21392 (license license:expat)))
21394 (define-public python2-pynamecheap
21395 (package-with-python2 python-pynamecheap))
21397 (define-public python-dns-lexicon
21399 (name "python-dns-lexicon")
21404 (uri (pypi-uri "dns-lexicon" version))
21407 "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
21408 (build-system python-build-system)
21410 `(#:tests? #f)) ;requires internet access
21412 `(("python-future" ,python-future)
21413 ("python-pynamecheap" ,python-pynamecheap)
21414 ("python-requests" ,python-requests)
21415 ("python-tldextract" ,python-tldextract)
21416 ("python-urllib3" ,python-urllib3)))
21417 (home-page "https://github.com/AnalogJ/lexicon")
21419 "Manipulate DNS records on various DNS providers")
21421 "Lexicon provides a way to manipulate DNS records on multiple DNS
21422 providers in a standardized way. It has a CLI but it can also be used as a
21423 Python library. It was designed to be used in automation, specifically with
21425 (license license:expat)))
21427 (define-public python2-dns-lexicon
21428 (package-with-python2 python-dns-lexicon))
21430 (define-public python-cfgv
21432 (name "python-cfgv")
21436 ;; There are no tests in the PyPI tarball.
21438 (uri (git-reference
21439 (url "https://github.com/asottile/cfgv")
21440 (commit (string-append "v" version))))
21441 (file-name (git-file-name name version))
21443 (base32 "1vvkkqw92sak4b28bpscpppq483amy52ch2yqy1i2m23q7xjkabx"))))
21444 (build-system python-build-system)
21447 (modify-phases %standard-phases
21450 (invoke "pytest" "-vv"))))))
21452 `(("python-covdefaults" ,python-covdefaults)
21453 ("python-coverage" ,python-coverage)
21454 ("python-pytest" ,python-pytest)))
21455 (home-page "https://github.com/asottile/cfgv")
21456 (synopsis "Configuration validation library")
21458 "This library helps to validate configuration files and produce human
21459 readable error messages.")
21460 (license license:expat)))
21462 (define-public python-commandlines
21464 (name "python-commandlines")
21469 (uri (pypi-uri "commandlines" version))
21472 "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
21473 (build-system python-build-system)
21474 (home-page "https://github.com/chrissimpkins/commandlines")
21475 (synopsis "Command line argument to object parsing library")
21477 "@code{Commandlines} is a Python library for command line application
21478 development that supports command line argument parsing, command string
21479 validation testing and application logic.")
21480 (license license:expat)))
21482 ;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
21483 ;; python-numba. They have a very unflexible relationship.
21484 (define-public python-numba
21486 (name "python-numba")
21491 (uri (pypi-uri "numba" version))
21494 "0s0777m8kq4l96i88zj78np7283v1n4878qfc1gvzb8l45bmkg8n"))))
21495 (build-system python-build-system)
21498 (modify-phases %standard-phases
21499 (add-after 'unpack 'disable-proprietary-features
21501 (setenv "NUMBA_DISABLE_HSA" "1")
21502 (setenv "NUMBA_DISABLE_CUDA" "1")
21505 (lambda* (#:key inputs outputs #:allow-other-keys)
21506 (add-installed-pythonpath inputs outputs)
21507 ;; Something is wrong with the PYTHONPATH when running the
21508 ;; tests from the build directory, as it complains about not being
21509 ;; able to import certain modules.
21510 (with-directory-excursion "/tmp"
21511 (setenv "HOME" (getcwd))
21512 (invoke "python3" "-m" "numba.runtests" "-v" "-m")))))))
21514 `(("python-llvmlite" ,python-llvmlite)
21515 ("python-numpy" ,python-numpy)
21516 ("python-singledispatch" ,python-singledispatch)))
21517 (native-inputs ;for tests
21518 `(("python-jinja2" ,python-jinja2)
21519 ("python-pygments" ,python-pygments)))
21520 (home-page "https://numba.pydata.org")
21521 (synopsis "Compile Python code using LLVM")
21522 (description "Numba gives you the power to speed up your applications with
21523 high performance functions written directly in Python. With a few
21524 annotations, array-oriented and math-heavy Python code can be just-in-time
21525 compiled to native machine instructions, similar in performance to C, C++ and
21526 Fortran, without having to switch languages or Python interpreters.
21528 Numba works by generating optimized machine code using the LLVM compiler
21529 infrastructure at import time, runtime, or statically (using the included pycc
21531 (license license:bsd-3)))
21533 (define-public python-numcodecs
21535 (name "python-numcodecs")
21540 (uri (pypi-uri "numcodecs" version))
21543 "0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))))
21544 (build-system python-build-system)
21546 `(("python-numpy" ,python-numpy)
21547 ("python-msgpack" ,python-msgpack)))
21549 `(("python-pytest" ,python-pytest)
21550 ("python-setuptools-scm" ,python-setuptools-scm)))
21551 (home-page "https://github.com/zarr-developers/numcodecs")
21552 (synopsis "Buffer compression and transformation codecs")
21554 "This Python package provides buffer compression and transformation
21555 codecs for use in data storage and communication applications.")
21556 (license license:expat)))
21558 (define-public python-asciitree
21560 (name "python-asciitree")
21565 (uri (pypi-uri "asciitree" version))
21568 "0vhgri2m2xlnibhz4xwn4hpbc7xacisxjqrk6k5kyppq96vbk92a"))))
21569 (build-system python-build-system)
21570 (home-page "https://github.com/mbr/asciitree")
21571 (synopsis "Draws ASCII trees")
21572 (description "This package draws tree structures using characters.")
21573 (license license:expat)))
21575 (define-public python-zarr
21577 (name "python-zarr")
21582 (uri (pypi-uri "zarr" version))
21585 "026n3sjzjv2gmwx6y72b8ij0hk42bc8zdbvfj5gdqzd4i6wj3ajk"))))
21586 (build-system python-build-system)
21589 (modify-phases %standard-phases
21590 (add-after 'unpack 'disable-service-tests
21592 (setenv "ZARR_TEST_ABS" "0")
21593 (setenv "ZARR_TEST_MONGO" "0")
21594 (setenv "ZARR_TEST_REDIS" "0")
21598 (invoke "pytest" "-vv" "-k" "not lmdb")
21601 `(("python-asciitree" ,python-asciitree)
21602 ("python-fasteners" ,python-fasteners)
21603 ("python-numcodecs" ,python-numcodecs)
21604 ("python-numpy" ,python-numpy)))
21606 `(("python-pytest" ,python-pytest)
21607 ("python-setuptools-scm" ,python-setuptools-scm)))
21608 (home-page "https://github.com/zarr-developers/zarr-python")
21609 (synopsis "Chunked, compressed, N-dimensional arrays for Python")
21611 "This package provides an implementation of chunked, compressed,
21612 N-dimensional arrays for Python.")
21613 (license license:expat)))
21615 (define-public python-anndata
21617 (name "python-anndata")
21621 ;; The tarball from PyPi doesn't include tests.
21623 (uri (git-reference
21624 (url "https://github.com/theislab/anndata")
21626 (file-name (git-file-name name version))
21629 "1q30bsfsq9xfqm8nmabg3bjh9gix3yng0170xiiyw1lin4xncf0q"))))
21630 (build-system python-build-system)
21633 (modify-phases %standard-phases
21635 (add-before 'build 'relax-dependency-requirements
21637 ;; We need to upgrade python-pandas to avoid
21638 ;; https://github.com/pandas-dev/pandas/issues/35446
21639 (substitute* "pyproject.toml"
21640 (("pandas>=1.1.1") "pandas>=1.0.5"))))
21643 (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
21644 ;; ZIP does not support timestamps before 1980.
21645 (setenv "SOURCE_DATE_EPOCH" "315532800")
21646 (invoke "flit" "build")))
21648 (lambda* (#:key inputs outputs #:allow-other-keys)
21649 (add-installed-pythonpath inputs outputs)
21650 (let ((out (assoc-ref outputs "out")))
21651 (for-each (lambda (wheel)
21652 (format #true wheel)
21653 (invoke "python" "-m" "pip" "install"
21654 wheel (string-append "--prefix=" out)))
21655 (find-files "dist" "\\.whl$")))
21658 `(("python-h5py" ,python-h5py)
21659 ("python-importlib-metadata" ,python-importlib-metadata)
21660 ("python-natsort" ,python-natsort)
21661 ("python-numcodecs" ,python-numcodecs)
21662 ("python-packaging" ,python-packaging)
21663 ("python-pandas" ,python-pandas)
21664 ("python-scipy" ,python-scipy)
21665 ("python-zarr" ,python-zarr)))
21667 `(("python-joblib" ,python-joblib)
21668 ("python-pytest" ,python-pytest)
21669 ("python-toml" ,python-toml)
21670 ("python-flit" ,python-flit)
21671 ("python-setuptools-scm" ,python-setuptools-scm)))
21672 (home-page "https://github.com/theislab/anndata")
21673 (synopsis "Annotated data for data analysis pipelines")
21674 (description "Anndata is a package for simple (functional) high-level APIs
21675 for data analysis pipelines. In this context, it provides an efficient,
21676 scalable way of keeping track of data together with learned annotations and
21677 reduces the code overhead typically encountered when using a mostly
21678 object-oriented library such as @code{scikit-learn}.")
21679 (license license:bsd-3)))
21681 (define-public python-dill
21683 (name "python-dill")
21684 (version "0.3.1.1")
21688 (uri (pypi-uri "dill" version))
21690 (base32 "1704g8z70d210ksgbccs2v545v9w0wc6lx15m296alb7jf0yzn22"))))
21691 (build-system python-build-system)
21694 (modify-phases %standard-phases
21697 (with-directory-excursion "/tmp"
21698 (invoke "nosetests" "-v"))
21701 `(("python-nose" ,python-nose)))
21702 (home-page "https://pypi.org/project/dill/")
21703 (synopsis "Serialize all of Python")
21704 (description "Dill extends Python's @code{pickle} module for serializing
21705 and de-serializing Python objects to the majority of the built-in Python
21706 types. Dill provides the user the same interface as the @code{pickle} module,
21707 and also includes some additional features. In addition to pickling Python
21708 objects, @code{dill} provides the ability to save the state of an interpreter
21709 session in a single command. Hence, it would be feasible to save a
21710 interpreter session, close the interpreter, ship the pickled file to another
21711 computer, open a new interpreter, unpickle the session and thus continue from
21712 the saved state of the original interpreter session.")
21713 (license license:bsd-3)))
21715 (define-public python-multiprocess
21717 (name "python-multiprocess")
21722 (uri (pypi-uri "multiprocess" version))
21725 "1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
21726 (build-system python-build-system)
21729 (modify-phases %standard-phases
21730 (add-after 'unpack 'disable-broken-tests
21732 ;; This test is broken as there is no keyboard interrupt.
21733 (substitute* "py3.7/multiprocess/tests/__init__.py"
21734 (("^(.*)def test_wait_result"
21736 (string-append indent
21737 "@unittest.skip(\"Disabled by Guix\")\n"
21740 ;; Tests must be run after installation.
21742 (add-after 'install 'check
21743 (lambda* (#:key inputs outputs #:allow-other-keys)
21744 (add-installed-pythonpath inputs outputs)
21745 (invoke "python" "-m" "multiprocess.tests")
21748 `(("python-dill" ,python-dill)))
21749 (home-page "https://pypi.org/project/multiprocess/")
21750 (synopsis "Multiprocessing and multithreading in Python")
21752 "This package is a fork of the multiprocessing Python package, a package
21753 which supports the spawning of processes using the API of the standard
21754 library's @code{threading} module.")
21755 (license license:bsd-3)))
21757 (define-public python-toolz
21759 (name "python-toolz")
21764 (uri (pypi-uri "toolz" version))
21767 "1grz3zvw5ixwqqlbv0n7j11mlcxb66cirh5i9x9zw8kqy0hpk967"))))
21768 (build-system python-build-system)
21771 (modify-phases %standard-phases
21773 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
21775 (add-installed-pythonpath inputs outputs)
21776 (invoke "python" "-m" "pytest" "--doctest-modules"
21777 "--pyargs" "toolz")))))))
21779 `(("python-pytest" ,python-pytest)))
21780 (home-page "https://github.com/pytoolz/toolz/")
21781 (synopsis "List processing tools and functional utilities")
21783 "This package provides a set of utility functions for iterators,
21784 functions, and dictionaries.")
21785 (license license:bsd-3)))
21787 (define-public python-cytoolz
21789 (name "python-cytoolz")
21790 (version "0.9.0.1")
21794 (uri (pypi-uri "cytoolz" version))
21797 "1r80p88hm3f3r4zpixzr047y5hw4bzy41m4xywnhycda83x0dk44"))))
21798 (build-system python-build-system)
21799 ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
21801 (arguments '(#:tests? #f))
21803 `(("python-toolz" ,python-toolz)))
21805 `(("python-cython" ,python-cython)))
21806 (home-page "https://github.com/pytoolz/cytoolz")
21807 (synopsis "High performance functional utilities")
21809 "The cytoolz package implements the same API as provided by toolz. The
21810 main differences are that @code{cytoolz} is faster and cytoolz offers a C API
21811 that is accessible to other projects developed in Cython.")
21812 (license license:bsd-3)))
21814 (define-public python-sortedcollections
21816 (name "python-sortedcollections")
21821 (uri (pypi-uri "sortedcollections" version))
21824 "1kfabpnjyjm5ml2zspry9jy3xq49aybchgaa4ahic2jqdjfn1sfq"))))
21825 (build-system python-build-system)
21827 `(("python-sortedcontainers" ,python-sortedcontainers)))
21828 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
21829 (home-page "http://www.grantjenks.com/docs/sortedcollections/")
21830 (synopsis "Python Sorted Collections")
21831 (description "Sorted Collections is a Python sorted collections library.")
21832 (license license:asl2.0)))
21834 (define-public python-sortedcontainers
21836 (name "python-sortedcontainers")
21841 (uri (pypi-uri "sortedcontainers" version))
21844 "0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
21845 (build-system python-build-system)
21847 ;; FIXME: Tests require many extra dependencies, and would introduce
21848 ;; a circular dependency on hypothesis, which uses this package.
21851 `(("python-appdirs" ,python-appdirs)
21852 ("python-distlib" ,python-distlib)
21853 ("python-filelock" ,python-filelock)
21854 ("python-six" ,python-six-bootstrap)))
21855 (home-page "http://www.grantjenks.com/docs/sortedcontainers/")
21856 (synopsis "Sorted List, Sorted Dict, Sorted Set")
21858 "This package provides a sorted collections library, written in
21860 (license license:asl2.0)))
21862 (define-public python2-sortedcontainers
21863 (package-with-python2 python-sortedcontainers))
21865 (define python-cloudpickle-testpkg
21867 (name "python-cloudpickle-testpkg")
21871 ;; Archive on pypi does not include test infrastructure.
21873 (uri (git-reference
21874 (url "https://github.com/cloudpipe/cloudpickle")
21875 (commit (string-append "v" version))))
21876 (file-name (git-file-name name version))
21879 "1584d21d4rcpryn8yfz0pjnjprk4zm367m0razdcz8cjbsh0dxp6"))))
21880 (build-system python-build-system)
21883 (modify-phases %standard-phases
21884 (add-after 'unpack 'chdir
21885 (lambda _ (chdir "tests/cloudpickle_testpkg"))))))
21886 (home-page "https://github.com/cloudpipe/cloudpickle")
21887 (synopsis "Extended pickling support for Python objects")
21889 "Cloudpickle makes it possible to serialize Python constructs not
21890 supported by the default pickle module from the Python standard library. It
21891 is especially useful for cluster computing where Python expressions are
21892 shipped over the network to execute on remote hosts, possibly close to the
21894 (license license:bsd-3)))
21896 (define-public python-cloudpickle
21898 (inherit python-cloudpickle-testpkg)
21899 (name "python-cloudpickle")
21900 (build-system python-build-system)
21903 (modify-phases %standard-phases
21904 (add-before 'check 'do-not-override-PYTHONPATH
21906 ;; Append to PYTHONPATH instead of overriding it so
21907 ;; that dependencies from Guix can be found.
21908 (substitute* "tests/testutils.py"
21909 (("env\\['PYTHONPATH'\\] = pythonpath")
21910 "env['PYTHONPATH'] += os.pathsep + pythonpath"))))
21912 (lambda* (#:key tests? #:allow-other-keys)
21914 (invoke "pytest" "-s" "-vv")
21915 (format #t "test suite not run~%")))))))
21918 ("python-cloudpickle-testpkg" ,python-cloudpickle-testpkg)
21919 ("python-psutil" ,python-psutil)
21920 ("python-pytest" ,python-pytest)
21921 ("python-tornado" ,python-tornado-6)))
21922 (home-page "https://github.com/cloudpipe/cloudpickle")
21923 (synopsis "Extended pickling support for Python objects")
21925 "Cloudpickle makes it possible to serialize Python constructs not
21926 supported by the default pickle module from the Python standard library. It
21927 is especially useful for cluster computing where Python expressions are
21928 shipped over the network to execute on remote hosts, possibly close to the
21930 (properties `((python2-variant . ,(delay python2-cloudpickle))))
21931 (license license:bsd-3)))
21933 (define-public python2-cloudpickle
21934 (let ((base (package-with-python2 (strip-python2-variant python-cloudpickle))))
21935 (package/inherit base
21940 (uri (pypi-uri "cloudpickle" version))
21943 "0lx7gy9clp427qwcm7b23zdsldpr03gy3vxxhyi8fpbhwz859brq"))))
21946 ("python-mock" ,python2-mock)
21947 ("python-psutil" ,python2-psutil)
21948 ("python-pytest" ,python2-pytest)
21949 ("python-tornado" ,python2-tornado)))
21951 `(("python-futures" ,python2-futures)
21952 ,@(package-propagated-inputs base))))))
21954 (define-public python-locket
21956 (name "python-locket")
21961 (uri (pypi-uri "locket" version))
21964 "1d4z2zngrpqkrfhnd4yhysh66kjn4mblys2l06sh5dix2p0n7vhz"))))
21965 (build-system python-build-system)
21966 (home-page "https://github.com/mwilliamson/locket.py")
21967 (synopsis "File-based locks for Python")
21969 "Locket implements a lock that can be used by multiple processes provided
21970 they use the same path.")
21971 (license license:bsd-2)))
21973 (define-public python2-locket
21974 (package-with-python2 python-locket))
21976 (define-public python-blosc
21978 (name "python-blosc")
21983 (uri (pypi-uri "blosc" version))
21986 "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
21987 (build-system python-build-system)
21988 ;; FIXME: all tests pass, but then this error is printed:
21989 ;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
21990 (arguments '(#:tests? #f))
21992 `(("python-numpy" ,python-numpy)))
21993 (home-page "https://github.com/blosc/python-blosc")
21994 (synopsis "Python wrapper for the Blosc data compressor library")
21995 (description "Blosc is a high performance compressor optimized for binary
21996 data. It has been designed to transmit data to the processor cache faster
21997 than the traditional, non-compressed, direct memory fetch approach via a
21998 @code{memcpy()} system call.
22000 Blosc works well for compressing numerical arrays that contains data with
22001 relatively low entropy, like sparse data, time series, grids with
22002 regular-spaced values, etc.
22004 This Python package wraps the Blosc library.")
22005 (license license:bsd-3)))
22007 (define-public python2-blosc
22008 (package-with-python2 python-blosc))
22010 (define-public python-partd
22012 (name "python-partd")
22017 (uri (pypi-uri "partd" version))
22020 "1sy3vdfyyx3bc5590zb7gwpsmimqz8m992x9hsydq8nmhixqjrxa"))))
22021 (build-system python-build-system)
22023 `(("python-blosc" ,python-blosc)
22024 ("python-locket" ,python-locket)
22025 ("python-numpy" ,python-numpy)
22026 ("python-pandas" ,python-pandas)
22027 ("python-pyzmq" ,python-pyzmq)
22028 ("python-toolz" ,python-toolz)))
22029 (home-page "https://github.com/dask/partd/")
22030 (synopsis "Appendable key-value storage")
22031 (description "Partd stores key-value pairs. Values are raw bytes. We
22032 append on old values. Partd excels at shuffling operations.")
22033 (license license:bsd-3)))
22035 (define-public python-fsspec
22037 (name "python-fsspec")
22042 (uri (pypi-uri "fsspec" version))
22045 "1g9ba8v04s1nrh7pvzfm2md7ivl2mrz3hcq3y9d1a44gd62h17zj"))))
22046 (build-system python-build-system)
22047 (arguments '(#:tests? #f)) ; there are none
22048 (home-page "https://github.com/intake/filesystem_spec")
22049 (synopsis "File-system specification")
22050 (description "The purpose of this package is to produce a template or
22051 specification for a file-system interface, that specific implementations
22052 should follow, so that applications making use of them can rely on a common
22053 behavior and not have to worry about the specific internal implementation
22054 decisions with any given backend.")
22055 (license license:bsd-3)))
22057 (define-public python-dask
22059 (name "python-dask")
22060 (version "2021.7.1")
22064 (uri (pypi-uri "dask" version))
22066 (base32 "131c1bp193d7wp4gx09j6wark1c322c8sqjy22i0jaafl5rqfbz7"))))
22067 (build-system python-build-system)
22070 (modify-phases %standard-phases
22071 (add-after 'unpack 'disable-broken-tests
22073 ;; This test is marked as xfail when pytest-xdist is used.
22074 (substitute* "dask/tests/test_threaded.py"
22075 (("def test_interrupt\\(\\)" m)
22076 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
22079 (lambda _ (invoke "pytest" "-vv"))))))
22081 `(("python-cloudpickle" ,python-cloudpickle)
22082 ("python-fsspec" ,python-fsspec)
22083 ("python-numpy" ,python-numpy)
22084 ("python-packaging" ,python-packaging)
22085 ("python-pandas" ,python-pandas)
22086 ("python-partd" ,python-partd)
22087 ("python-toolz" ,python-toolz)
22088 ("python-pyyaml" ,python-pyyaml)))
22090 `(("python-pytest" ,python-pytest)
22091 ("python-pytest-runner" ,python-pytest-runner)))
22092 (home-page "https://github.com/dask/dask/")
22093 (synopsis "Parallel computing with task scheduling")
22095 "Dask is a flexible parallel computing library for analytics. It
22096 consists of two components: dynamic task scheduling optimized for computation,
22097 and large data collections like parallel arrays, dataframes, and lists that
22098 extend common interfaces like NumPy, Pandas, or Python iterators to
22099 larger-than-memory or distributed environments. These parallel collections
22100 run on top of the dynamic task schedulers. ")
22101 (license license:bsd-3)))
22103 (define-public python-ilinkedlist
22105 (name "python-ilinkedlist")
22110 (uri (pypi-uri "ilinkedlist" version))
22113 "0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l"))))
22114 (build-system python-build-system)
22115 (native-inputs `(("python-pytest" ,python-pytest)))
22116 (inputs `(("python" ,python)))
22117 (home-page "https://github.com/luther9/ilinkedlist-py")
22118 (synopsis "Immutable linked list library")
22120 "This is a implementation of immutable linked lists for Python. It
22121 contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
22122 Since a linked list is treated as immutable, it is hashable, and its length
22123 can be retrieved in constant time. Some of the terminology is inspired by
22124 LISP. It is possible to create an improper list by creating a @code{Pair}
22125 with a non-list @code{cdr}.")
22126 (license license:gpl3+)))
22128 (define-public python-readlike
22130 (name "python-readlike")
22135 (uri (pypi-uri "readlike" version))
22137 (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
22138 (build-system python-build-system)
22139 (home-page "https://github.com/jangler/readlike")
22140 (synopsis "GNU Readline-like line editing module")
22142 "This Python module provides line editing functions similar to the default
22143 Emacs-style ones of GNU Readline. Unlike the Python standard library's
22144 @code{readline} package, this one allows access to those capabilities in settings
22145 outside of a standard command-line interface. It is especially well-suited to
22146 interfacing with Urwid, due to a shared syntax for describing key inputs.
22148 Currently, all stateless Readline commands are implemented. Yanking and history
22149 are not supported.")
22150 (license license:expat)))
22152 (define-public python2-readlike
22153 (package-with-python2 python-readlike))
22155 (define-public python-reparser
22157 (name "python-reparser")
22162 (uri (pypi-uri "ReParser" version))
22164 (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
22165 (build-system python-build-system)
22166 (home-page "https://github.com/xmikos/reparser")
22167 (synopsis "Simple lexer/parser for inline markup based on regular expressions")
22169 "This Python library provides a simple lexer/parser for inline markup based
22170 on regular expressions.")
22171 (license license:expat)))
22173 (define-public python2-reparser
22174 (let ((reparser (package-with-python2
22175 (strip-python2-variant python-reparser))))
22176 (package/inherit reparser
22178 `(("python2-enum34" ,python2-enum34)
22179 ,@(package-propagated-inputs reparser))))))
22181 (define-public python-retrying
22183 (name "python-retrying")
22188 (uri (git-reference
22189 (url "https://github.com/rholder/retrying")
22190 (commit (string-append "v" version))))
22191 (file-name (git-file-name name version))
22194 "1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
22195 (build-system python-build-system)
22197 `(("python-six" ,python-six)))
22198 (home-page "https://github.com/rholder/retrying")
22199 (synopsis "Library for adding retry behavior")
22200 (description "Retrying is a general-purpose retrying library to simplify
22201 the task of adding retry behavior to just about anything.
22206 @item Generic Decorator API.
22207 @item Specify stop condition (i.e. limit by number of attempts).
22208 @item Specify wait condition (i.e. exponential backoff sleeping between attempts).
22209 @item Customize retrying on Exceptions.
22210 @item Customize retrying on expected returned result.
22212 (license license:asl2.0)))
22214 (define-public python-pre-commit
22216 (name "python-pre-commit")
22221 (uri (pypi-uri "pre_commit" version))
22223 (base32 "1ycf6wpxrhxhdzz0vpryhbdxlwik5khgcvp3hxwvfr447a6k84zl"))))
22224 (build-system python-build-system)
22226 ;; Tests fail with "AttributeError: module 'pre_commit.resources' has no
22227 ;; attribute 'empty_template_setup'".
22228 `(#:tests? #false))
22230 `(("python-cfgv" ,python-cfgv)
22231 ("python-identify" ,python-identify)
22232 ("python-importlib-metadata" ,python-importlib-metadata)
22233 ("python-importlib-resources" ,python-importlib-resources)
22234 ("python-nodeenv" ,python-nodeenv)
22235 ("python-pyyaml" ,python-pyyaml)
22236 ("python-toml" ,python-toml)
22237 ("python-virtualenv" ,python-virtualenv)))
22238 (home-page "https://github.com/pre-commit/pre-commit")
22239 (synopsis "Framework for managing multi-language pre-commit hooks")
22241 "This package provides a framework for managing and maintaining
22242 multi-language pre-commit hooks.")
22243 (license license:expat)))
22245 (define-public python-precis-i18n
22247 (name "python-precis-i18n")
22252 (uri (pypi-uri "precis_i18n" version))
22255 "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2"))))
22256 (build-system python-build-system)
22257 (home-page "https://github.com/byllyfish/precis_i18n")
22258 (synopsis "Implementation of the PRECIS framework")
22260 "This module implements the PRECIS Framework as described in RFC 8264,
22261 RFC 8265 and RFC 8266.")
22262 (license license:expat)))
22264 (define-public python-absl-py
22266 (name "python-absl-py")
22271 (uri (pypi-uri "absl-py" version))
22274 "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
22275 (build-system python-build-system)
22277 `(("python-six" ,python-six)))
22278 (home-page "https://github.com/abseil/abseil-py")
22279 (synopsis "Abseil Python common libraries")
22281 "This package provides the Abseil Python Common Libraries, a collection
22282 of Python libraries for building Python applications.")
22283 (license license:asl2.0)))
22285 (define-public python-astor
22287 (name "python-astor")
22292 (uri (pypi-uri "astor" version))
22295 "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka"))))
22296 (build-system python-build-system)
22297 ;; FIXME: There are two errors and two test failures.
22298 (arguments `(#:tests? #f))
22299 (home-page "https://github.com/berkerpeksag/astor")
22300 (synopsis "Read and write Python ASTs")
22301 (description "Astor is designed to allow easy manipulation of Python
22302 source via the Abstract Syntax Tree.")
22303 (license license:bsd-3)))
22305 (define-public python2-astor
22306 (package-with-python2 python-astor))
22308 (define-public python-astunparse
22310 (name "python-astunparse")
22315 (uri (pypi-uri "astunparse" version))
22317 (base32 "0rzbc44xcvzjhhiy7wac96mgal5mcjz1mfq8rmvgswskf4kf9cys"))))
22318 (build-system python-build-system)
22319 (arguments '(#:tests? #f)) ; there are none
22321 `(("python-six" ,python-six)
22322 ("python-wheel" ,python-wheel)))
22323 (home-page "https://github.com/simonpercivall/astunparse")
22324 (synopsis "AST unparser for Python")
22325 (description "This package provides an AST unparser for Python. It is a
22326 factored out version of @code{unparse} found in the Python source
22328 (license license:bsd-3)))
22330 (define-public python-gast
22332 (name "python-gast")
22337 (uri (pypi-uri "gast" version))
22339 (base32 "0mrvvfzqafj1wzd0xxfmjf4vphnlxypbhpic1m283aj9i8lfz0dq"))))
22340 (build-system python-build-system)
22342 `(("python-astunparse" ,python-astunparse)))
22343 (home-page "https://pypi.org/project/gast/")
22344 (synopsis "Generic Python AST that abstracts the underlying Python version")
22346 "GAST provides a compatibility layer between the AST of various Python
22347 versions, as produced by @code{ast.parse} from the standard @code{ast}
22349 (license license:bsd-3)))
22351 (define-public python-wikidata
22353 (name "python-wikidata")
22358 (uri (pypi-uri "Wikidata" version))
22361 "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
22362 (build-system python-build-system)
22364 `(("python-babel" ,python-babel)))
22365 (home-page "https://github.com/dahlia/wikidata")
22366 (synopsis "Wikidata client library")
22368 "This package provides a Python interface to
22369 @url{https://www.wikidata.org/, Wikidata}.")
22370 (properties '((upstream-name . "Wikidata")))
22371 (license license:gpl3+)))
22373 (define-public python-doctest-ignore-unicode
22375 (name "python-doctest-ignore-unicode")
22380 (uri (pypi-uri "doctest-ignore-unicode" version))
22383 "1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w"))))
22384 (build-system python-build-system)
22386 `(("python-nose" ,python-nose)))
22387 (home-page "https://github.com/gnublade/doctest-ignore-unicode")
22388 (synopsis "Ignore Unicode literal prefixes in doctests")
22390 "This package adds support for a flag to ignore Unicode literal prefixes
22392 (license license:asl2.0)))
22394 (define-public python-attr
22396 (name "python-attr")
22401 (uri (pypi-uri "attr" version))
22404 "0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch"))))
22405 (build-system python-build-system)
22406 (home-page "https://github.com/denis-ryzhkov/attr")
22407 (synopsis "Decorator for attributes of target function or class")
22408 (description "Simple decorator to set attributes of target function or
22409 class in a @acronym{DRY, Don't Repeat Yourself} way.")
22410 (license license:expat)))
22412 (define-public python-construct
22414 (name "python-construct")
22415 (version "2.10.56")
22419 (uri (pypi-uri "construct" version))
22422 "0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp"))))
22423 (build-system python-build-system)
22425 `(#:tests? #f)) ; No tests exist.
22427 `(("python-extras" ,python-extras)
22428 ("python-arrow" ,python-arrow)
22429 ("python-numpy" ,python-numpy)
22430 ("python-ruamel.yaml" ,python-ruamel.yaml)))
22431 (home-page "https://construct.readthedocs.io")
22432 (synopsis "Declarative and symmetrical parser and builder for binary data")
22434 "This package provides both simple, atomic constructs (such as
22435 integers of various sizes), as well as composite ones which allow you
22436 form hierarchical and sequential structures of increasing complexity.
22437 It features bit and byte granularity, easy debugging and testing, an
22438 easy-to-extend subclass system, and lots of primitive constructs to
22439 make your work easier.")
22440 (license license:expat)))
22442 (define-public python-outcome
22444 (name "python-outcome")
22449 (uri (pypi-uri "outcome" version))
22451 (base32 "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
22452 (build-system python-build-system)
22455 (modify-phases %standard-phases
22457 (lambda* (#:key inputs outputs #:allow-other-keys)
22458 (add-installed-pythonpath inputs outputs)
22459 (invoke "pytest" "-vv"))))))
22461 `(("python-pytest" ,python-pytest)
22462 ("python-pytest-cov" ,python-pytest-cov)
22463 ("python-pytest-asyncio" ,python-pytest-asyncio)))
22465 `(("python-async-generator" ,python-async-generator)
22466 ("python-attrs" ,python-attrs)))
22467 (home-page "https://github.com/python-trio/outcome")
22468 (synopsis "Capture the outcome of Python function calls")
22470 "Capture the outcome of Python function calls. Extracted from the Trio
22472 ;; Either license applies.
22473 (license (list license:expat license:asl2.0))))
22475 (define-public python-trio
22477 (name "python-trio")
22482 (uri (pypi-uri "trio" version))
22484 (base32 "0zcxirpdvvl54pbfkgw7vz984879xwvdygqfpggnam24is2zjp78"))))
22485 (build-system python-build-system)
22488 (modify-phases %standard-phases
22489 (add-before 'check 'change-home
22491 ;; Tests require a writable home.
22492 (setenv "HOME" "/tmp")
22496 (invoke "pytest" "-vv" "-k"
22498 ;; This test times out.
22499 "not test_ki_protection_works"
22500 ;; Assertion errors.
22501 " and not test_guest_mode_ki"
22502 " and not test_run_in_trio_thread_ki"
22503 ;; These try to raise KeyboardInterrupt which does not work
22504 ;; in the build environment.
22505 " and not test_ki_self"
22506 " and not test_ki_wakes_us_up"
22507 ;; Failure in name resolution.
22508 " and not test_getnameinfo"
22509 " and not test_SocketType_resolve"
22510 ;; OSError: protocol not found.
22511 " and not test_getprotobyname")))))))
22513 `(("python-astor" ,python-astor)
22514 ("python-ipython" ,python-ipython)
22515 ("python-jedi" ,python-jedi)
22516 ("python-pylint" ,python-pylint)
22517 ("python-pyopenssl" ,python-pyopenssl)
22518 ("python-pytest" ,python-pytest)
22519 ("python-pytest-cov" ,python-pytest-cov)
22520 ("python-trustme" ,python-trustme)))
22522 `(("python-attrs" ,python-attrs)
22523 ("python-idna" ,python-idna)
22524 ("python-outcome" ,python-outcome)
22525 ("python-sniffio" ,python-sniffio)
22526 ("python-sortedcontainers"
22527 ,python-sortedcontainers)))
22528 (home-page "https://github.com/python-trio/trio")
22529 (synopsis "Friendly Python library for async concurrency and I/O")
22531 "Trio strives to be a production-quality, async/await-native I/O library
22532 for Python. Like all async libraries, its main purpose is to help you write
22533 programs that do multiple things at the same time with parallelized I/O.")
22534 ;; Either license applies.
22535 (license (list license:expat license:asl2.0))))
22537 (define-public python-trio-typing
22539 (name "python-trio-typing")
22544 (uri (pypi-uri "trio-typing" version))
22546 (base32 "1yvlj4vf3wyvp16dw6vyfm4i2idm8lvdc3fvjhi6mhm62zv7s07j"))))
22547 (build-system python-build-system)
22550 (modify-phases %standard-phases
22553 (invoke "pytest" "-vv"))))))
22555 `(("python-attrs" ,python-attrs)
22556 ("python-pytest" ,python-pytest)))
22558 `(("python-mypy" ,python-mypy)
22559 ("python-mypy-extensions"
22560 ,python-mypy-extensions)
22561 ("python-trio" ,python-trio)
22562 ("python-typing-extensions"
22563 ,python-typing-extensions)))
22564 (home-page "https://github.com/python-trio/trio-typing")
22565 (synopsis "Static type checking support for Trio and related projects")
22567 "This package provides:
22570 @item PEP 561 typing stubs packages for the Trio project packages:
22573 @item trio (@code{trio-stubs})
22574 @item outcome (@code{outcome-stubs})
22575 @item async_generator (@code{async_generator-stubs})
22578 @item A package @code{trio_typing} containing types that Trio programs often
22579 want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
22580 a mypy plugin that smooths over some limitations in the basic type hints.
22582 ;; Either license applies.
22583 (license (list license:expat license:asl2.0))))
22585 (define-public python-humanize
22587 (name "python-humanize")
22592 (uri (pypi-uri "humanize" version))
22595 "06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4"))))
22597 '(#:tests? #f)) ; tests not in pypi archive
22598 (build-system python-build-system)
22599 (home-page "https://github.com/jmoiron/humanize")
22600 (synopsis "Print numerical information in a human-readable form")
22601 (description "This package provides a Python module that displays numbers
22602 and dates in \"human readable\" forms. For example, it would display
22603 \"12345591313\" as \"12.3 billion\".")
22604 (license license:expat)))
22606 (define-public python-txaio
22608 (name "python-txaio")
22613 (uri (pypi-uri "txaio" version))
22616 "1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7"))))
22617 (build-system python-build-system)
22619 `(("python-twisted" ,python-twisted)
22620 ("python-six" ,python-six)))
22621 (home-page "https://github.com/crossbario/txaio")
22622 (synopsis "Compatibility layer between Python asyncio and Twisted")
22623 (description "Txaio provides a compatibility layer between the Python
22624 @code{asyncio} module and @code{Twisted}.")
22625 (license license:expat)))
22627 (define-public python-toolshed
22629 (name "python-toolshed")
22634 (uri (pypi-uri "toolshed" version))
22637 "14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3"))))
22638 (build-system python-build-system)
22640 `(("python-nose" ,python-nose)))
22641 (home-page "https://github.com/brentp/toolshed/")
22642 (synopsis "Collection of modules and functions for working with data")
22643 (description "This is a collection of well-tested, simple modules and
22644 functions that aim to reduce boilerplate when working with data.")
22645 (license license:bsd-2)))
22647 (define-public python-annoy
22649 (name "python-annoy")
22654 (uri (pypi-uri "annoy" version))
22657 "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
22658 (build-system python-build-system)
22660 `(("python-nose" ,python-nose)))
22661 (home-page "https://github.com/spotify/annoy/")
22662 (synopsis "Approximate nearest neighbors library")
22664 "Annoy is a C++ library with Python bindings to search for points in
22665 space that are close to a given query point. It also creates large read-only
22666 file-based data structures that are @code{mmap}ped into memory so that many
22667 processes may share the same data.")
22668 (license license:asl2.0)))
22670 (define-public python-croniter
22672 (name "python-croniter")
22676 (uri (pypi-uri "croniter" version))
22679 "0r79cx4v2dw4hzr0annkkxxis46c8hivq61sr39z6p7lcjsbk1ki"))))
22680 (build-system python-build-system)
22682 `(("python-dateutil" ,python-dateutil)
22683 ("python-natsort" ,python-natsort)))
22684 (home-page "https://github.com/kiorky/croniter")
22685 (synopsis "Iterate datetime objects with cron-like syntax")
22687 "@code{croniter} provides iteration for datetime object with cron-like
22689 (license license:expat)))
22691 (define-public python-crontab
22693 (name "python-crontab")
22698 (uri (pypi-uri name version))
22700 (base32 "0cccrqc10r8781ba81x8r2frs3pl2m4hkm599k5358ak0xr7xgjb"))))
22701 (build-system python-build-system)
22703 ;; Comptability tests fail so they are disabled.
22706 `(("python-dateutil" ,python-dateutil)))
22707 (home-page "https://gitlab.com/doctormo/python-crontab/")
22708 (synopsis "Module for reading and writing crontab files")
22709 (description "This Python module can read, write crontab files, and
22710 access the system cron automatically and simply using a direct API.")
22711 (license license:lgpl3+)))
22713 (define-public python-pylzma
22715 (name "python-pylzma")
22720 (uri (pypi-uri "pylzma" version))
22723 "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
22724 (build-system python-build-system)
22725 (home-page "https://www.joachim-bauch.de/projects/pylzma/")
22726 (synopsis "Python bindings for the LZMA library by Igor Pavlov.")
22727 (description "This package provides Python bindings for the LZMA library
22729 (license license:lgpl2.1+)))
22731 (define-public python2-pylzma
22732 (package-with-python2 python-pylzma))
22734 (define-public python-ifaddr
22736 (name "python-ifaddr")
22741 (uri (pypi-uri "ifaddr" version))
22744 "150sxdlicwrphmhnv03ykxplyd2jdrxz0mikgnivavgilrn8m7hz"))))
22745 (build-system python-build-system)
22748 (modify-phases %standard-phases
22750 (lambda _ (invoke "nosetests"))))))
22752 `(("python-nose" ,python-nose)))
22753 (home-page "https://github.com/pydron/ifaddr")
22754 (synopsis "Network interface and IP address enumeration library")
22755 (description "This package provides a network interface and IP address
22756 enumeration library in Python.")
22757 (license license:expat)))
22759 (define-public python-zeroconf
22761 (name "python-zeroconf")
22766 (uri (pypi-uri "zeroconf" version))
22769 "0narq8haa3b375vfblbyil77n8bw0wxqnanl91pl0wwwm884mqjb"))))
22770 (build-system python-build-system)
22772 `(("python-nose" ,python-nose)))
22774 `(("python-ifaddr" ,python-ifaddr)))
22777 (modify-phases %standard-phases
22779 (lambda _ ;; Networking isn't available for these tests.
22780 (invoke "nosetests" "-v"
22781 "--exclude" "test_integration_with_listener_ipv6"
22782 "--exclude" "test_launch_and_close_v6_only"
22783 "--exclude" "test_launch_and_close_v4_v6"
22784 "--exclude" "test_launch_and_close"))))))
22785 (home-page "https://github.com/jstasiak/python-zeroconf")
22786 (synopsis "Pure Python mDNS service discovery")
22788 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
22790 (license license:lgpl2.1+)))
22792 (define-public python2-zeroconf
22794 (name "python2-zeroconf")
22796 ;; This is the last version that supports Python 2.x.
22801 (uri (pypi-uri "zeroconf" version))
22804 "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3"))))
22805 (build-system python-build-system)
22807 `(#:python ,python-2
22809 (modify-phases %standard-phases
22810 (add-after 'unpack 'patch-requires
22811 (lambda* (#:key inputs #:allow-other-keys)
22812 (substitute* "setup.py"
22817 `(("python2-six" ,python2-six)
22818 ("python2-enum32" ,python2-enum34)
22819 ("python2-netifaces" ,python2-netifaces)
22820 ("python2-typing" ,python2-typing)))
22821 (home-page "https://github.com/jstasiak/python-zeroconf")
22822 (synopsis "Pure Python mDNS service discovery")
22824 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
22826 (license license:lgpl2.1+)))
22828 (define-public python-bsddb3
22830 (name "python-bsddb3")
22835 (uri (pypi-uri "bsddb3" version))
22838 "019db2y6bfmiqbrgg9x9f6h72qjmqh05czdn2v5sy9bl0gs23mj2"))))
22839 (build-system python-build-system)
22844 (modify-phases %standard-phases
22845 (add-after 'unpack 'configure-locations
22846 (lambda* (#:key inputs #:allow-other-keys)
22847 (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
22848 (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")
22852 (invoke "python3" "test3.py" "-v"))))))
22853 (home-page "https://www.jcea.es/programacion/pybsddb.htm")
22854 (synopsis "Python bindings for Oracle Berkeley DB")
22856 "This module provides a nearly complete wrapping of the Oracle/Sleepycat
22857 C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
22858 Transaction objects, and each of these is exposed as a Python type in the
22859 bsddb3.db module. The database objects can use various access methods: btree,
22860 hash, recno, and queue. Complete support of Berkeley DB distributed
22861 transactions. Complete support for Berkeley DB Replication Manager.
22862 Complete support for Berkeley DB Base Replication. Support for RPC.")
22863 (license license:bsd-3)))
22865 (define-public python-dbfread
22867 (name "python-dbfread")
22871 (uri (pypi-uri "dbfread" version))
22874 "0gdpwdzf1fngsi6jrdyj4qdf6cr7gnnr3zp80dpkzbgz0spskj07"))))
22875 (build-system python-build-system)
22877 `(("python-pytest" ,python-pytest)))
22878 (home-page "https://dbfread.readthedocs.io")
22879 (synopsis "Read DBF Files with Python")
22881 "This library reads DBF files and returns the data as native Python data
22882 types for further processing. It is primarily intended for batch jobs and
22884 (license license:expat)))
22886 (define-public python-cached-property
22888 (name "python-cached-property")
22893 (uri (pypi-uri "cached-property" version))
22896 "0c51i6yzg6dlq6zhk4c6nv33mg8gv05kkan36k9b5jzf71c7b9cz"))))
22897 (build-system python-build-system)
22900 (modify-phases %standard-phases
22901 ;; https://github.com/pydanny/cached-property/issues/131
22902 ;; recent versions of freezegun break one test
22903 (add-after 'unpack 'disable-broken-test
22905 (substitute* "tests/test_cached_property.py"
22906 (("def test_threads_ttl_expiry\\(self\\)" m)
22907 (string-append "@unittest.skip(\"Disabled by Guix\")\n"
22911 `(("python-freezegun" ,python-freezegun)))
22913 "https://github.com/pydanny/cached-property")
22915 "Decorator for caching properties in classes")
22917 "This package provides a decorator which makes caching
22918 time-or-computationally-expensive properties quick and easy and works in Python
22920 (license license:bsd-3)))
22922 (define-public python-folium
22924 (name "python-folium")
22928 ;; PyPI has a ".whl" file but not a proper source release.
22929 ;; Thus, fetch code from Git.
22931 (uri (git-reference
22932 (url "https://github.com/python-visualization/folium")
22933 (commit (string-append "v" version))))
22934 (file-name (git-file-name name version))
22936 (base32 "0yi5y9pfpbc4bc4ibr8cblif8ls1wf3k0zawyx86r2qwxxkkyd6k"))))
22937 (build-system python-build-system)
22939 `(("python-branca" ,python-branca)
22940 ("python-jinja2" ,python-jinja2)
22941 ("python-numpy" ,python-numpy)
22942 ("python-requests" ,python-requests)))
22944 `(("python-pytest" ,python-pytest)))
22945 (home-page "https://github.com/python-visualization/folium")
22946 (synopsis "Make beautiful maps with Leaflet.js & Python")
22947 (description "@code{folium} makes it easy to visualize data that’s been
22948 manipulated in Python on an interactive leaflet map. It enables both the
22949 binding of data to a map for @code{choropleth} visualizations as well as
22950 passing rich vector/raster/HTML visualizations as markers on the map.
22952 The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
22953 Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
22954 supports Image, Video, GeoJSON and TopoJSON overlays.")
22955 (license license:expat)))
22957 (define-public jube
22959 ;; This is a command-line tool, so no "python-" prefix.
22964 (uri (string-append
22965 "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
22969 "0xq4k1q63s1p6swgyp61vahlrd1fqmgbm0gm5kpj8ikwy0yc0nqk"))
22970 (file-name (string-append "jube-" version ".tar.gz"))))
22971 (build-system python-build-system)
22972 (home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
22973 (synopsis "Benchmarking environment")
22975 "JUBE helps perform and analyze benchmarks in a systematic way. For each
22976 benchmarked application, benchmark data is stored in a format that allows JUBE
22977 to deduct the desired information. This data can be parsed by automatic pre-
22978 and post-processing scripts that draw information and store it more densely
22979 for manual interpretation.")
22980 (license license:gpl3+)))
22982 (define-public python-pyroutelib3
22984 (name "python-pyroutelib3")
22985 (version "1.3.post1")
22989 (uri (pypi-uri "pyroutelib3" version))
22992 "1hpbydpn2alyswiajfbvhzq4c7f36vdmvxy91hgv8l1lb2g2vfrj"))))
22993 (build-system python-build-system)
22995 `(("python-dateutil" ,python-dateutil)))
22996 (home-page "https://github.com/MKuranowski/pyroutelib3")
22997 (synopsis "Library for simple routing on OSM data")
22998 (description "Library for simple routing on OSM data")
22999 (license license:gpl3+)))
23001 (define-public python-bibtexparser
23003 (name "python-bibtexparser")
23008 (uri (pypi-uri "bibtexparser" version))
23011 "0zwhfkrzf3n5847dbnfng92k7ak199l9v6x6ax3dgdidfpm6d2fz"))))
23012 (build-system python-build-system)
23014 `(("python-pyparsing" ,python-pyparsing)))
23016 `(("python-future" ,python-future)))
23017 (home-page "https://github.com/sciunto-org/python-bibtexparser")
23018 (synopsis "Python library to parse BibTeX files")
23019 (description "BibtexParser is a Python library to parse BibTeX files.")
23020 (license (list license:bsd-3 license:lgpl3))))
23022 (define-public python-distro
23024 (name "python-distro")
23029 (uri (pypi-uri "distro" version))
23032 "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n"))))
23033 (build-system python-build-system)
23035 `(("python-pytest" ,python-pytest)))
23036 (home-page "https://github.com/nir0s/distro")
23038 "OS platform information API")
23040 "@code{distro} provides information about the OS distribution it runs on,
23041 such as a reliable machine-readable ID, or version information.
23043 It is the recommended replacement for Python's original
23044 `platform.linux_distribution` function (which will be removed in Python 3.8).
23045 @code{distro} also provides a command-line interface to output the platform
23046 information in various formats.")
23047 (license license:asl2.0)))
23049 (define-public python-cairosvg
23051 (name "python-cairosvg")
23056 (uri (pypi-uri "CairoSVG" version))
23058 (base32 "1ylsisha2cc4w0yydxwhy7idkfw1inl9fsipxsrm7vyby080vi9z"))))
23059 (build-system python-build-system)
23062 (modify-phases %standard-phases
23064 (lambda _ (invoke "pytest"))))))
23066 `(("python-cairocffi" ,python-cairocffi)
23067 ("python-cssselect2" ,python-cssselect2)
23068 ("python-defusedxml" ,python-defusedxml)
23069 ("python-pillow" ,python-pillow)
23070 ("python-tinycss2" ,python-tinycss2)))
23072 `(("python-pytest-flake8" ,python-pytest-flake8)
23073 ("python-pytest-isort" ,python-pytest-isort)
23074 ("python-pytest-runner" ,python-pytest-runner)))
23075 (home-page "https://cairosvg.org/")
23076 (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
23077 (description "CairoSVG is a SVG converter based on Cairo. It can export
23078 SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
23079 SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
23080 parsed, the result is drawn to a Cairo surface that can be exported to
23081 qvarious formats: PDF, PostScript, PNG and even SVG.")
23082 (license license:lgpl3+)))
23084 (define-public python-pyphen
23086 (name "python-pyphen")
23091 (uri (pypi-uri "Pyphen" version))
23093 (base32 "0a1iwrgs4hzwzz60q4i1813kbzimhm0i4q8grh8vqkxhnkgj36vi"))))
23094 (build-system python-build-system)
23095 ;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
23096 ;; embedded set provided by upstream - like Debian does.
23097 (home-page "https://github.com/Kozea/Pyphen")
23098 (synopsis "Pure Python module to hyphenate text")
23099 (description "Pyphen is a pure Python module to hyphenate text using
23100 existing Hunspell hyphenation dictionaries.")
23101 (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
23103 (define-public python-intelhex
23105 (name "python-intelhex")
23110 (uri (pypi-uri "intelhex" version))
23113 "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780"))))
23114 (build-system python-build-system)
23115 (arguments '(#:tests? #f)) ;issue with version
23116 (home-page "https://pypi.org/project/IntelHex/")
23117 (synopsis "Python library for Intel HEX files manipulations")
23118 (description "The Intel HEX file format is widely used in microprocessors
23119 and microcontrollers area (embedded systems etc.) as the de facto standard for
23120 representation of code to be programmed into microelectronic devices. This
23121 package provides an intelhex Python library to read, write, create from
23122 scratch and manipulate data from Intel HEX file format. It also includes
23123 several convenience Python scripts, including \"classic\" hex2bin and bin2hex
23124 converters and more, those based on the library itself.")
23125 (license license:bsd-3)))
23127 (define-public python-pykwalify
23129 (name "python-pykwalify")
23134 (uri (pypi-uri "pykwalify" version))
23137 "1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"))))
23138 (build-system python-build-system)
23139 (arguments '(#:tests? #f)) ;missing dependencies
23141 `(("python-dateutil" ,python-dateutil)
23142 ("python-docopt" ,python-docopt)
23143 ("python-pyyaml" ,python-pyyaml)))
23144 (home-page "https://github.com/grokzen/pykwalify")
23146 "Python lib/cli for JSON/YAML schema validation")
23148 "This package provides a parser, schema validator, and data binding tool
23149 for YAML and JSON.")
23150 (license license:expat)))
23152 (define-public python-dbusmock
23154 (name "python-dbusmock")
23159 (uri (pypi-uri "python-dbusmock" version))
23162 "0hp2kyac88nh9iv6l8hlmv7s1sa1s5f1a3wc2pmlmmxnd211fjlr"))))
23163 (build-system python-build-system)
23166 (modify-phases %standard-phases
23167 (add-after 'unpack 'patch-shell-path
23169 (substitute* "tests/test_code.py"
23170 (("/bin/bash") (which "bash")))
23174 ("dbus" ,dbus) ; for dbus-daemon
23175 ("python-nose" ,python-nose)
23178 `(("python-dbus" ,python-dbus)
23179 ("python-pygobject" ,python-pygobject)))
23180 (home-page "https://github.com/martinpitt/python-dbusmock")
23181 (synopsis "Python library for mock D-Bus objects")
23182 (description "python-dbusmock allows for the easy creation of mock objects on
23183 D-Bus. This is useful for writing tests for software which talks to D-Bus
23184 services such as upower, systemd, logind, gnome-session or others, and it is
23185 hard (or impossible without root privileges) to set the state of the real
23186 services to what you expect in your tests.")
23187 (license license:lgpl3+)))
23189 (define-public python-jsonplus
23191 (name "python-jsonplus")
23193 (home-page "https://github.com/randomir/jsonplus")
23196 (uri (pypi-uri "jsonplus" version))
23199 "05yv3dw813zwas9snz124k2hki49y268b3mx0gj9w7v1nrjmglq1"))))
23200 (build-system python-build-system)
23201 ;; XXX: No tests on PyPI, and the repository has no tags.
23202 (arguments '(#:tests? #f))
23204 `(("python-dateutil" ,python-dateutil)
23205 ("python-simplejson" ,python-simplejson)
23206 ("python-sortedcontainers" ,python-sortedcontainers)))
23207 (synopsis "Serialize Python types to/from JSON")
23209 "This package provides functionality to serialize arbitrary data types
23210 to and from JSON. Common data types are implemented and it is easy to
23211 register custom encoders and decoders.")
23212 (license license:expat)))
23214 (define-public python-ujson
23216 (name "python-ujson")
23221 (uri (pypi-uri "ujson" version))
23224 "0k9w0kypy7vlskzzp2vsjswaw8lbqdrplzkbflxki9vqwglsj5f6"))
23225 (modules '((guix build utils)))
23227 '(begin (delete-file-recursively "deps") #t))))
23228 (build-system python-build-system)
23231 (modify-phases %standard-phases
23232 (add-after 'unpack 'link-to-system-double-conversion
23233 (lambda* (#:key inputs #:allow-other-keys)
23234 (let ((d-c (assoc-ref inputs "double-conversion")))
23235 (substitute* "setup.py"
23236 (("./deps/double-conversion/double-conversion\"")
23237 (string-append d-c "/include/double-conversion\""))
23239 (string-append "-L" d-c "/lib\","
23240 " \"-ldouble-conversion\","
23244 (lambda* (#:key inputs outputs #:allow-other-keys)
23245 (add-installed-pythonpath inputs outputs)
23246 (invoke "pytest"))))))
23248 `(("double-conversion" ,double-conversion)
23249 ("python-setuptools-scm" ,python-setuptools-scm)
23250 ("python-pytest" ,python-pytest)))
23251 (home-page "https://github.com/ultrajson/ultrajson")
23252 (synopsis "Ultra fast JSON encoder and decoder for Python")
23254 "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
23255 bindings for Python 3.")
23256 (license license:bsd-3)))
23258 (define-public python-iocapture
23259 ;; The latest release is more than a year older than this commit.
23260 (let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
23263 (name "python-iocapture")
23268 (uri (git-reference
23269 (url "https://github.com/oinume/iocapture")
23271 (file-name (git-file-name name version))
23274 "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
23275 (build-system python-build-system)
23278 (modify-phases %standard-phases
23280 (add-after 'install 'check
23281 (lambda* (#:key inputs outputs #:allow-other-keys)
23282 (add-installed-pythonpath inputs outputs)
23283 (invoke "py.test" "-v" "tests")
23286 `(("python-flexmock" ,python-flexmock)
23287 ("python-pytest" ,python-pytest)
23288 ("python-pytest-cov" ,python-pytest-cov)
23289 ("python-six" ,python-six)))
23290 (home-page "https://github.com/oinume/iocapture")
23291 (synopsis "Python capturing tool for stdout and stderr")
23293 "This package helps you to capture the standard out (stdout) and the
23294 standard error channel (stderr) in your program.")
23295 (license license:expat))))
23297 (define-public python-anyio
23299 (name "python-anyio")
23304 (uri (pypi-uri "anyio" version))
23307 "0x03hsprdrs86wjjkj96zm2jswy3a5bgyrknyi58pzz5hdsscmxf"))))
23308 (build-system python-build-system)
23311 (modify-phases %standard-phases
23312 (add-after 'unpack 'fix-compatibility
23314 (substitute* "tests/test_taskgroups.py"
23316 "import pytest\nimport _pytest\nfrom _pytest import logging")
23317 (("pytest.LogCaptureFixture")
23318 "_pytest.logging.LogCaptureFixture"))))
23320 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
23322 (add-installed-pythonpath inputs outputs)
23323 (invoke "pytest" "-vv" "-p" "no:asyncio"
23327 "not test_is_block_device"
23329 ;; These fail because of network (or specifically
23330 ;; IPv6 network) access.
23331 " and not test_accept"
23332 " and not test_accept_after_close"
23333 " and not test_close_during_receive"
23334 " and not test_close_from_other_task"
23335 " and not test_concurrent_receive"
23336 " and not test_concurrent_send"
23337 " and not test_connect_tcp_with_tls"
23338 " and not test_connect_tcp_with_tls_cert_check_fail"
23339 " and not test_connection_refused"
23340 " and not test_extra_attributes"
23341 " and not test_getaddrinfo"
23342 " and not test_getnameinfo"
23343 " and not test_happy_eyeballs"
23344 " and not test_iterate"
23345 " and not test_receive_after_close"
23346 " and not test_receive_timeout"
23347 " and not test_reuse_port"
23348 " and not test_run_process"
23349 " and not test_send_after_close"
23350 " and not test_send_after_eof"
23351 " and not test_send_after_peer_closed"
23352 " and not test_send_eof"
23353 " and not test_send_large_buffer"
23354 " and not test_send_receive"
23355 " and not test_socket_options"))))))))
23357 `(("python-idna" ,python-idna)
23358 ("python-sniffio" ,python-sniffio)
23359 ("python-typing-extensions" ,python-typing-extensions)))
23361 `(("python-coverage" ,python-coverage)
23362 ("python-hypothesis" ,python-hypothesis)
23363 ("python-iniconfig" ,python-iniconfig)
23364 ("python-mock" ,python-mock)
23365 ("python-pytest" ,python-pytest-6)
23366 ("python-pytest-mock" ,python-pytest-mock)
23367 ("python-pytest-trio" ,python-pytest-trio)
23368 ("python-setuptools-scm" ,python-setuptools-scm)
23369 ("python-trustme" ,python-trustme)
23370 ("python-uvloop" ,python-uvloop)))
23371 (home-page "https://github.com/agronholm/anyio")
23372 (synopsis "Compatibility layer for multiple asynchronous event loops")
23374 "AnyIO is an asynchronous networking and concurrency library that works
23375 on top of either asyncio or trio. It implements trio-like structured
23376 concurrency on top of asyncio, and works in harmony with the native SC of trio
23378 (license license:expat)))
23380 (define-public python-argh
23381 ;; There are 21 commits since the latest release containing important
23383 (let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4")
23386 (name "python-argh")
23387 (version (git-version "0.26.2" revision commit))
23391 (uri (git-reference
23392 (url "https://github.com/neithere/argh")
23394 (file-name (git-file-name name version))
23397 "1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
23398 (build-system python-build-system)
23400 `(("python-iocapture" ,python-iocapture)
23401 ("python-mock" ,python-mock)
23402 ("python-pytest" ,python-pytest)
23403 ("python-pytest-cov" ,python-pytest-cov)
23404 ("python-pytest-xdist" ,python-pytest-xdist)))
23405 (home-page "https://github.com/neithere/argh/")
23406 (synopsis "Argparse wrapper with natural syntax")
23408 "python-argh is a small library that provides several layers of
23409 abstraction on top of @code{python-argparse}. The layers can be mixed. It is
23410 always possible to declare a command with the highest possible (and least
23411 flexible) layer and then tune the behaviour with any of the lower layers
23412 including the native API of @code{python-argparse}.")
23413 (license license:lgpl3+))))
23415 (define-public python-ppft
23417 (name "python-ppft")
23418 (version "1.6.6.1")
23422 (uri (pypi-uri "ppft" version))
23425 "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
23426 (build-system python-build-system)
23427 (arguments '(#:tests? #f)) ; there are none
23429 `(("python-six" ,python-six)))
23430 (home-page "https://pypi.org/project/ppft/")
23431 (synopsis "Fork of Parallel Python")
23433 "This package is a fork of Parallel Python. The Parallel Python
23434 module (@code{pp}) provides an easy and efficient way to create
23435 parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
23436 computers and clusters. It features cross-platform portability and dynamic
23438 (license license:bsd-3)))
23440 (define-public python-pox
23442 (name "python-pox")
23447 (uri (pypi-uri "pox" version))
23450 "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
23451 (build-system python-build-system)
23454 (modify-phases %standard-phases
23457 (mkdir-p "/tmp/guix")
23458 (setenv "SHELL" "bash")
23459 (setenv "USERNAME" "guix")
23460 (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
23461 (invoke "py.test" "-vv")
23464 `(("python-pytest" ,python-pytest)
23466 (home-page "https://pypi.org/project/pox/")
23467 (synopsis "Python utilities for file system exploration and automated builds")
23469 "Pox provides a collection of utilities for navigating and manipulating
23470 file systems. This module is designed to facilitate some of the low-level
23471 operating system interactions that are useful when exploring a file system on a
23472 remote host. Pox provides Python equivalents of several shell commands such
23473 as @command{which} and @command{find}. These commands allow automated
23474 discovery of what has been installed on an operating system, and where the
23475 essential tools are located.")
23476 (license license:bsd-3)))
23478 (define-public python-pathos
23480 (name "python-pathos")
23485 (uri (pypi-uri "pathos" version))
23488 "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
23489 (build-system python-build-system)
23492 (modify-phases %standard-phases
23495 (setenv "PYTHONPATH"
23496 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
23497 (invoke "python" "./tests/__main__.py"))))))
23499 `(("python-dill" ,python-dill)
23500 ("python-multiprocess" ,python-multiprocess)
23501 ("python-pox" ,python-pox)
23502 ("python-ppft" ,python-ppft)))
23504 `(("python-pytest" ,python-pytest)))
23505 (home-page "https://pypi.org/project/pathos/")
23507 "Parallel graph management and execution in heterogeneous computing")
23509 "Python-pathos is a framework for heterogeneous computing. It provides a
23510 consistent high-level interface for configuring and launching parallel
23511 computations across heterogeneous resources. Python-pathos provides configurable
23512 launchers for parallel and distributed computing, where each launcher contains
23513 the syntactic logic to configure and launch jobs in an execution environment.")
23514 (license license:bsd-3)))
23516 (define-public python-flit
23518 (name "python-flit")
23520 ;; We fetch the sources via git because on pypi the package is split into
23521 ;; two parts: flit and flit_core; flit_core cannot be built without flit.
23524 (uri (git-reference
23525 (url "https://github.com/takluyver/flit")
23527 (file-name (git-file-name name version))
23530 "0fpqxpz5bv2xpv1akmc0c8yfss6sj09wdzxrlf3qw1lp1jhbzpyc"))))
23531 (build-system python-build-system)
23534 (modify-phases %standard-phases
23535 (add-before 'build 'bootstrap
23536 (lambda* (#:key inputs #:allow-other-keys)
23537 (let ((home (string-append (getcwd) "/home")))
23539 (setenv "HOME" home))
23540 (for-each make-file-writable (find-files "."))
23541 (copy-recursively (assoc-ref inputs "python-testpath")
23542 (string-append (getcwd) "/testpath"))
23543 (substitute* "pyproject.toml"
23544 (("\"testpath\",") ""))
23545 (invoke "python" "bootstrap_dev.py")))
23548 ;; A ZIP archive should be generated, but it fails with "ZIP does
23549 ;; not support timestamps before 1980". Luckily,
23550 ;; SOURCE_DATE_EPOCH is respected, which we set to some time in
23552 (setenv "SOURCE_DATE_EPOCH" "315532800")
23553 (for-each (lambda (toml)
23554 (invoke "python3" "-m" "flit"
23555 "--debug" "--ini-file" toml
23557 '("testpath/pyproject.toml"
23559 (with-directory-excursion "flit_core"
23560 (invoke "python" "build_dists.py"))))
23562 (lambda* (#:key inputs outputs #:allow-other-keys)
23563 (add-installed-pythonpath inputs outputs)
23564 (let ((out (assoc-ref outputs "out")))
23565 (delete-file-recursively "./home")
23566 (for-each (lambda (wheel)
23567 (format #true wheel)
23568 (invoke "python" "-m" "pip" "install"
23569 wheel (string-append "--prefix=" out)))
23571 (find-files "flit_core/dist" "\\.whl$")
23572 (find-files "dist" "\\.whl$")))))))
23573 #:tests? #f)) ; XXX: Check requires network access.
23575 `(("python-pytoml" ,python-pytoml)
23576 ("python-toml" ,python-toml)))
23578 `(("python-docutils" ,python-docutils)
23579 ("python-responses" ,python-responses)
23580 ("python-pygments-github-lexers" ,python-pygments-github-lexers)
23581 ("python-pytest" ,python-pytest)
23582 ("python-pytest-cov" ,python-pytest-cov)
23583 ("python-sphinx" ,python-sphinx)
23584 ("python-sphinxcontrib-github-alt" ,python-sphinxcontrib-github-alt)
23585 ;; This package needs testpath, but testpath also needs flit...
23587 ,(let ((name "python-testpath")
23591 (uri (git-reference
23592 (url "https://github.com/jupyter/testpath")
23594 (file-name (git-file-name name version))
23597 "1fwv4d3p54xx1x942s104irr35lszvv6jnr4nn1scsfvc0m1qmbk")))))))
23598 (home-page "https://flit.readthedocs.io/")
23600 "Simple packaging tool for simple packages")
23602 "Flit is a simple way to put Python packages and modules on PyPI. Flit
23603 packages a single importable module or package at a time, using the import
23604 name as the name on PyPI. All subpackages and data files within a package
23605 are included automatically.")
23606 (license license:bsd-3)))
23608 (define-public python-pathtools
23610 (name "python-pathtools")
23615 (uri (pypi-uri "pathtools" version))
23618 "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
23619 (build-system python-build-system)
23621 "https://github.com/gorakhargosh/pathtools")
23622 (synopsis "Path utilities for Python")
23623 (description "Pattern matching and various utilities for file systems
23625 (license license:expat)))
23627 (define-public python-fastentrypoints
23629 (name "python-fastentrypoints")
23634 (uri (pypi-uri "fastentrypoints" version))
23637 "02s1j8i2dzbpbwgq2a3fiqwm3cnmhii2qzc0k42l0rdxd4a4ya7z"))))
23638 (build-system python-build-system)
23640 "https://github.com/ninjaaron/fast-entry_points")
23642 "Makes entry_points specified in setup.py load more quickly")
23644 "Using entry_points in your setup.py makes scripts that start really
23645 slowly because it imports pkg_resources. This package allows such setup
23646 scripts to load entry points more quickly.")
23647 (license license:bsd-3)))
23649 (define-public python-funcparserlib
23651 (name "python-funcparserlib")
23656 (uri (pypi-uri "funcparserlib" version))
23659 "07f9cgjr3h4j2m67fhwapn8fja87vazl58zsj4yppf9y3an2x6dp"))))
23661 `(("python-tox" ,python-tox)))
23664 (modify-phases %standard-phases
23667 (invoke "tox"))))))
23668 (build-system python-build-system)
23670 "https://github.com/vlasovskikh/funcparserlib")
23672 "Recursive descent parsing library based on functional combinators")
23674 "This package is a recursive descent parsing library for Python based on
23675 functional combinators. Parser combinators are just higher-order functions
23676 that take parsers as their arguments and return them as result values.")
23677 (license license:expat)))
23679 (define-public python-speg
23681 (name "python-speg")
23686 (uri (pypi-uri "speg" version ".zip"))
23688 (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
23690 `(#:tests? #f)) ;FIXME: tests fail, not sure why
23692 `(("unzip" ,unzip)))
23693 (build-system python-build-system)
23694 (home-page "https://github.com/avakar/speg")
23695 (synopsis "PEG-based parser interpreter with memoization")
23696 (description "This package is a PEG-based parser and interpreter with
23698 (license license:expat)))
23700 (define-public python-cson
23702 (name "python-cson")
23707 (uri (pypi-uri "cson" version))
23709 (base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
23710 (build-system python-build-system)
23712 `(("python-speg" ,python-speg)))
23713 (home-page "https://github.com/avakar/pycson")
23714 (synopsis "Parser for Coffeescript Object Notation (CSON)")
23715 (description "This package is a parser for Coffeescript Object
23717 (license license:expat)))
23719 (define-public python-asynctest
23721 (name "python-asynctest")
23726 (uri (pypi-uri "asynctest" version))
23729 "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
23730 (build-system python-build-system)
23733 (modify-phases %standard-phases
23736 (invoke "python" "-X" "dev" "-m" "unittest" "-v" "test")))
23737 (add-after 'unpack 'disable-tests
23739 ;; XXX: 7 tests fail out of 220. Disable them for now.
23740 (substitute* (list "test/test_selector.py"
23741 "test/test_mock.py")
23742 (("def test_events_watched_outside_test_are_ignored")
23743 "@unittest.skip('disabled by guix')
23744 def test_events_watched_outside_test_are_ignored")
23745 (("def test_awaited_from_autospec_mock.*" line)
23746 (string-append line " return True\n"))
23747 (("def test_create_autospec_on_coroutine_and_using_assert_methods.*" line)
23748 (string-append line " return True\n"))
23749 (("def test_patch_coroutine_with_multiple_scopes.*" line)
23750 (string-append line " return True\n"))
23751 (("def test_multiple_patches_on_coroutine.*" line)
23752 (string-append line " return True\n"))
23753 (("def test_patch_coroutine_only_when_running.*" line)
23754 (string-append line " return True\n")))
23756 (home-page "https://github.com/Martiusweb/asynctest")
23757 (synopsis "Extension of unittest for testing asyncio libraries")
23759 "The package asynctest is built on top of the standard unittest module
23760 and cuts down boilerplate code when testing libraries for asyncio.")
23761 (license license:asl2.0)))
23763 (define-public python-aionotify
23765 (name "python-aionotify")
23769 ;; Source tarball on PyPi lacks tests
23771 (uri (git-reference
23772 (url "https://github.com/rbarrois/aionotify")
23773 (commit (string-append "v" version))))
23774 (file-name (git-file-name name version))
23776 (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))
23777 (patches (search-patches "python-aionotify-0.2.0-py3.8.patch"))))
23778 (build-system python-build-system)
23779 (home-page "https://github.com/rbarrois/aionotify")
23780 (synopsis "Asyncio-powered inotify library")
23782 "@code{aionotify} is a simple, asyncio-based inotify library.")
23783 (license license:bsd-3)))
23785 (define-public python-forbiddenfruit
23787 (name "python-forbiddenfruit")
23791 ;; Source tarball on PyPi lacks Makefile that builds and runs tests
23793 (uri (git-reference
23794 (url "https://github.com/clarete/forbiddenfruit")
23796 (file-name (git-file-name name version))
23798 (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
23799 (build-system python-build-system)
23802 (modify-phases %standard-phases
23805 (invoke "make" "SKIP_DEPS=1"))))))
23807 `(("python-nose" ,python-nose)
23808 ("python-coverage" ,python-coverage)))
23809 (home-page "https://github.com/clarete/forbiddenfruit")
23810 (synopsis "Patch python built-in objects")
23811 (description "This project allows Python code to extend built-in types.")
23812 (license (list license:gpl3+ license:expat))))
23814 (define-public python-k5test
23816 (name "python-k5test")
23821 (uri (pypi-uri "k5test" version))
23824 "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
23825 (build-system python-build-system)
23827 `(("python-six" ,python-six)
23828 ;; `which`, `kadmin.local` binaries called inside library
23830 ("mit-krb5" ,mit-krb5)))
23831 (native-inputs `(("mit-krb5" ,mit-krb5)))
23834 (modify-phases %standard-phases
23835 (add-after 'unpack 'apply-upstream-fixes
23837 (substitute* "k5test/realm.py"
23838 ;; Upstream commit f6b302d94dbdce37a1b81cc3faeeac4dc637b0e9.
23839 (("'kadmin_local'") "'kadmin.local'")
23840 ;; Upstream commit 3aef84515cf3d1a171c66856c898d0a5cbbd03ea.
23841 (("\\.stop_daemon") "._stop_daemon")))))))
23842 (home-page "https://github.com/pythongssapi/k5test")
23843 (synopsis "Library for setting up self-contained Kerberos 5 environments")
23845 "@code{k5test} is a library for setting up self-contained Kerberos 5
23846 environments, and running Python unit tests inside those environments. It is
23847 based on the file of the same name found alongside the MIT Kerberos 5 unit
23849 (license license:isc)))
23851 (define-public python-gssapi
23853 (name "python-gssapi")
23858 (uri (pypi-uri "gssapi" version))
23861 "1j2idrbrbczykzlb56q1bn0ivc9c0rjjljpk4yz86xn3gxfkpv8n"))))
23862 (build-system python-build-system)
23864 `(("python-decorator" ,python-decorator)
23865 ("python-six" ,python-six)))
23867 `(("mit-krb5" ,mit-krb5)))
23870 `(("python-parameterized" ,python-parameterized)
23871 ("python-k5test" ,python-k5test)
23872 ("python-nose" ,python-nose)))
23873 (home-page "https://github.com/pythongssapi/python-gssapi")
23874 (synopsis "Python GSSAPI Wrapper")
23876 "Python-GSSAPI provides both low-level and high level wrappers around the
23877 GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
23878 also be usable with other GSSAPI mechanisms.")
23879 (license license:isc)))
23881 (define-public python-check-manifest
23883 (name "python-check-manifest")
23888 (uri (pypi-uri "check-manifest" version))
23891 "0lk45ifdv2cpkl6ayfyix7jwmnxa1rha7xvb0ih5999k115wzqs4"))))
23892 (build-system python-build-system)
23894 `(("python-mock" ,python-mock)
23896 (home-page "https://github.com/mgedmin/check-manifest")
23897 (synopsis "Check MANIFEST.in in a Python source package for completeness")
23898 (description "Python package can include a MANIFEST.in file to help with
23899 sending package files to the Python Package Index. This package checks that
23900 file to ensure it completely and accurately describes your project.")
23901 (license license:expat)))
23903 (define-public python-android-stringslib
23905 (name "python-android-stringslib")
23910 (uri (git-reference
23911 (url "https://framagit.org/tyreunom/python-android-strings-lib")
23912 (commit (string-append "v" version))))
23913 (file-name (git-file-name name version))
23916 "0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
23917 (build-system python-build-system)
23920 (home-page "https://framagit.org/tyreunom/python-android-strings-lib")
23921 (synopsis "Android strings.xml support")
23922 (description "Android Strings Lib provides support for android's strings.xml
23923 files. These files are used to translate strings in android apps.")
23924 (license license:expat)))
23926 (define-public python-watchdog
23928 (name "python-watchdog")
23933 (uri (pypi-uri "watchdog" version))
23936 "07cnvvlpif7a6cg4rav39zq8fxa5pfqawchr46433pij0y6napwn"))))
23937 (build-system python-build-system)
23940 (modify-phases %standard-phases
23941 (add-before 'check 'remove-failing
23943 (delete-file "tests/test_inotify_buffer.py")
23944 (delete-file "tests/test_snapshot_diff.py")
23947 `(("python-argh" ,python-argh)
23948 ("python-pathtools" ,python-pathtools)
23949 ("python-pyyaml" ,python-pyyaml)))
23951 `(("python-pytest-cov" ,python-pytest-cov)
23952 ("python-pytest-timeout" ,python-pytest-timeout)))
23953 (home-page "https://github.com/gorakhargosh/watchdog")
23954 (synopsis "File system events monitoring")
23955 (description "This package provides a way to monitor file system events
23956 such as a file modification and trigger an action. This is similar to inotify,
23958 (license license:asl2.0)))
23960 (define-public python-watchgod
23962 (name "python-watchgod")
23966 ;; There are no tests in the PyPI tarball.
23968 (uri (git-reference
23969 (url "https://github.com/samuelcolvin/watchgod")
23970 (commit (string-append "v" version))))
23971 (file-name (git-file-name name version))
23973 (base32 "1lqx44wkryakgpyqj3m0hsz61bqr07vc7smgzh188374hwvscp66"))))
23974 (build-system python-build-system)
23977 (modify-phases %standard-phases
23979 (lambda* (#:key tests? #:allow-other-keys)
23981 (invoke "pytest" "-vv")))))))
23983 `(("python-coverage" ,python-coverage)
23984 ("python-docutils" ,python-docutils)
23985 ("python-flake8" ,python-flake8)
23986 ("python-isort" ,python-isort)
23987 ("python-pycodestyle" ,python-pycodestyle)
23988 ("python-pyflakes" ,python-pyflakes)
23989 ("python-pygments" ,python-pygments)
23990 ("python-pytest" ,python-pytest)
23991 ("python-pytest-cov" ,python-pytest-cov)
23992 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
23993 ("python-pytest-mock" ,python-pytest-mock)
23994 ("python-pytest-sugar" ,python-pytest-sugar)
23995 ("python-pytest-toolbox" ,python-pytest-toolbox)))
23996 (home-page "https://github.com/samuelcolvin/watchgod")
23997 (synopsis "Simple, modern file watching and code reload in Python")
23999 "Simple, modern file watching and code reload in Python inspired by
24000 @code{watchdog}. Among the differences are a unified approach for each
24001 operating systems and an elegant approach to concurrency using threading.")
24002 (license license:expat)))
24004 (define-public python-wget
24006 (name "python-wget")
24011 (uri (pypi-uri "wget" version ".zip"))
24014 "0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
24015 (build-system python-build-system)
24016 (native-inputs `(("unzip" ,unzip)))
24017 (home-page "https://bitbucket.org/techtonik/python-wget/")
24018 (synopsis "Pure Python download utility")
24019 (description "The python-wget library provides an API to download files
24020 with features similar to the @command{wget} utility.")
24021 (license license:unlicense)))
24023 (define-public offlate
24030 (uri (git-reference
24031 (url "https://framagit.org/tyreunom/offlate")
24033 (file-name (git-file-name name version))
24036 "13pqnbl05wcyldfvl75fp89vjgwsvxyc69vhnb17kkha2rc2k1h7"))))
24037 (build-system python-build-system)
24042 `(("python-android-stringslib" ,python-android-stringslib)
24043 ("python-dateutil" ,python-dateutil)
24044 ("python-gitlab" ,python-gitlab)
24045 ("python-lxml" ,python-lxml)
24046 ("python-polib" ,python-polib)
24047 ("python-pyenchant" ,python-pyenchant)
24048 ("python-pygit2" ,python-pygit2)
24049 ("python-pygithub" ,python-pygithub)
24050 ("python-pyqt" ,python-pyqt)
24051 ("python-requests" ,python-requests)
24052 ("python-ruamel.yaml" ,python-ruamel.yaml)
24053 ("python-translation-finder" ,python-translation-finder)
24054 ("python-watchdog" ,python-watchdog)))
24056 `(("qttools" ,qttools)))
24057 (home-page "https://framagit.org/tyreunom/offlate")
24058 (synopsis "Offline translation interface for online translation tools")
24059 (description "Offlate offers a unified interface for different translation
24060 file formats, as well as many different online translation platforms. You can
24061 use it to get work from online platforms, specialized such as the Translation
24062 Project, or not such a gitlab instance when your upstream doesn't use any
24063 dedicated platform. The tool proposes a unified interface for any format and
24064 an upload option to send your work back to the platform.")
24065 (license license:gpl3+)))
24067 (define-public python-titlecase
24069 (name "python-titlecase")
24074 (uri (pypi-uri "titlecase" version))
24077 "0486i99wf8ssa7sgn81fn6fv6i4rhhq6n751bc740b3hzfbpmpl4"))))
24078 (build-system python-build-system)
24080 `(("python-nose" ,python-nose)))
24081 (home-page "https://github.com/ppannuto/python-titlecase")
24082 (synopsis "Capitalize strings similar to book titles")
24084 "Python-Titlecase is a Python port of John Gruber's titlecase.pl.
24085 It capitalizes (predominantly English) strings in a way that is similar to
24086 book titles, using the New York Times Manual of Style to leave certain words
24088 (license license:expat)))
24090 (define-public python-pypng
24092 (name "python-pypng")
24097 (uri (pypi-uri "pypng" version))
24099 (base32 "02qpa22ls41vwsrzw9r9qhj1nhq05p03hb5473pay6y980s86chh"))))
24100 (build-system python-build-system)
24101 (home-page "https://github.com/drj11/pypng")
24102 (synopsis "Pure Python PNG image encoder/decoder")
24104 "The PyPNG module implements support for PNG images. It reads and writes
24105 PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
24106 pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
24107 LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
24108 images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
24109 A number of optional chunks can be specified (when writing) and
24110 understood (when reading): tRNS, bKGD, gAMA.
24112 PyPNG is not a high level toolkit for image processing (like PIL) and does not
24113 aim at being a replacement or competitor. Its strength lies in fine-grained
24114 extensive support of PNG features. It can also read and write Netpbm PAM
24115 files, with a focus on its use as an intermediate format for implementing
24116 custom PNG processing.")
24117 (license license:expat)))
24119 (define-public python-fuzzywuzzy
24121 (name "python-fuzzywuzzy")
24126 (uri (pypi-uri "fuzzywuzzy" version))
24129 "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"))))
24130 (build-system python-build-system)
24132 `(("python-hypothesis" ,python-hypothesis)
24133 ("python-pycodestyle" ,python-pycodestyle)
24134 ("python-pytest" ,python-pytest)))
24136 `(("python-levenshtein" ,python-levenshtein)))
24137 (home-page "https://github.com/seatgeek/fuzzywuzzy")
24138 (synopsis "Fuzzy string matching in Python")
24139 (description "Approximate string matching using
24140 @emph{Levenshtein Distance} to calculate the differences between
24142 (license license:gpl2)))
24144 (define-public python2-fuzzywuzzy
24145 (package-with-python2 python-fuzzywuzzy))
24147 (define-public python-block-tracing
24149 (name "python-block-tracing")
24154 (uri (pypi-uri "block_tracing" version))
24157 "0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
24158 (build-system python-build-system)
24159 (arguments '(#:tests? #f)) ; no tests
24160 (home-page "https://github.com/rianhunter/block_tracing")
24161 (synopsis "Protect process memory")
24163 "@code{block_tracing} is a tiny Python library that can be used to
24164 prevent debuggers and other applications from inspecting the memory within
24166 (license license:expat)))
24168 (define-public python-gcovr
24170 (name "python-gcovr")
24175 (uri (pypi-uri "gcovr" version))
24178 "0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs"))))
24179 (build-system python-build-system)
24181 `(("python-lxml" ,python-lxml)
24182 ("python-jinja2" ,python-jinja2)))
24183 (home-page "https://gcovr.com/")
24184 (synopsis "Utility for generating code coverage results")
24186 "Gcovr provides a utility for managing the use of the GNU gcov
24187 utility and generating summarized code coverage results. It is inspired
24188 by the Python coverage.py package, which provides a similar utility for
24190 (license license:bsd-3)))
24192 (define-public python-owslib
24194 (name "python-owslib")
24199 (uri (pypi-uri "OWSLib" version))
24201 (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
24202 (build-system python-build-system)
24204 '(#:tests? #f)) ; TODO: package dependencies required for tests.
24205 (synopsis "Interface for Open Geospatial Consortium web service")
24207 "OWSLib is a Python package for client programming with Open Geospatial
24208 Consortium (OGC) web service (hence OWS) interface standards, and their related
24210 (home-page "https://geopython.github.io/OWSLib/")
24211 (license license:bsd-3)))
24213 (define-public python-docusign-esign
24215 (name "python-docusign-esign")
24219 (uri (pypi-uri "docusign_esign" version))
24222 "01f3h03vc97syjlmqyl7xa5j90pzgmwpspc5a0gra9saynnbkx37"))))
24223 (build-system python-build-system)
24224 ;; Testing requires undocumented setup changes, and so testing is disabled here.
24225 (arguments `(#:tests? #f))
24227 `(("python-certifi" ,python-certifi)
24228 ("python-six" ,python-six)
24229 ("python-dateutil" ,python-dateutil)
24230 ("python-urllib3" ,python-urllib3)
24231 ("python-pyjwt" ,python-pyjwt)
24232 ("python-cryptography" ,python-cryptography)
24233 ("python-nose" ,python-nose)))
24234 (synopsis "DocuSign Python Client")
24235 (description "The Official DocuSign Python Client Library used to interact
24236 with the eSign REST API. Send, sign, and approve documents using this client.")
24237 (home-page "https://www.docusign.com/devcenter")
24238 (license license:expat)))
24240 (define-public python-xattr
24242 (name "python-xattr")
24247 (uri (pypi-uri "xattr" version))
24250 "0i4xyiqbhjz2g16zbim17zjdbjkw79xsw8k59942vvq4is1cmfxh"))))
24251 (build-system python-build-system)
24253 `(("python-cffi" ,python-cffi)))
24254 (home-page "https://github.com/xattr/xattr")
24256 "Python wrapper for extended file system attributes")
24257 (description "This package provides a Python wrapper for using extended
24258 file system attributes. Extended attributes extend the basic attributes of files
24259 and directories in the file system. They are stored as name:data pairs
24260 associated with file system objects (files, directories, symlinks, etc).")
24261 (license license:expat)))
24263 (define-public python-json-logger
24265 (name "python-json-logger")
24270 (uri (pypi-uri "python-json-logger" version))
24273 "10g2ya6nsvn5vxzvq2wb8q4d43i3d7756i5rxyjna6d0y9i138xp"))))
24274 (build-system python-build-system)
24276 "https://github.com/madzak/python-json-logger")
24277 (synopsis "JSON log formatter in Python")
24278 (description "This library allows standard Python logging to output log data
24279 as JSON objects. With JSON we can make our logs more readable by machines and
24280 we can stop writing custom parsers for syslog-type records.")
24281 (license license:bsd-3)))
24283 (define-public python-daiquiri
24285 (name "python-daiquiri")
24290 (uri (pypi-uri "daiquiri" version))
24293 "1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
24294 (build-system python-build-system)
24296 `(("python-json-logger" ,python-json-logger)))
24298 `(("python-mock" ,python-mock)
24299 ("python-pytest" ,python-pytest)
24300 ("python-setuptools-scm" ,python-setuptools-scm)
24301 ("python-six" ,python-six)))
24302 (home-page "https://github.com/jd/daiquiri")
24304 "Library to configure Python logging easily")
24305 (description "The daiquiri library provides an easy way to configure
24306 logging in Python. It also provides some custom formatters and handlers.")
24307 (license license:asl2.0)))
24309 (define-public python-pifpaf
24311 (name "python-pifpaf")
24316 (uri (pypi-uri "pifpaf" version))
24319 "1gy9p4nqf70fh38wn4icyfm7i9wrvx22wnjpg71g89wxbz27igaa"))))
24320 (build-system python-build-system)
24323 (modify-phases %standard-phases
24326 (invoke "python" "setup.py" "testr" "--slowest"
24327 "--testr-args=until-failure"))))))
24329 `(("python-click" ,python-click)
24330 ("python-daiquiri" ,python-daiquiri)
24331 ("python-fixtures" ,python-fixtures)
24332 ("python-jinja2" ,python-jinja2)
24333 ("python-pbr" ,python-pbr)
24334 ("python-psutil" ,python-psutil)
24335 ("python-six" ,python-six)
24336 ("python-xattr" ,python-xattr)))
24338 `(("python-mock" ,python-mock)
24339 ("python-os-testr" ,python-os-testr)
24340 ("python-requests" ,python-requests)
24341 ("python-testrepository" ,python-testrepository)
24342 ("python-testtools" ,python-testtools)))
24343 (home-page "https://github.com/jd/pifpaf")
24344 (synopsis "Tools and fixtures to manage daemons for testing in Python")
24345 (description "Pifpaf is a suite of fixtures and a command-line tool that
24346 starts and stops daemons for a quick throw-away usage. This is typically
24347 useful when needing these daemons to run integration testing. It originally
24348 evolved from its precursor @code{overtest}.")
24349 (license license:asl2.0)))
24351 (define-public python-pytest-check-links
24353 (name "python-pytest-check-links")
24358 ;; URI uses underscores
24359 (uri (pypi-uri "pytest_check_links" version))
24362 "12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
24363 (build-system python-build-system)
24365 `(("python-docutils" ,python-docutils)
24366 ("python-html5lib" ,python-html5lib)
24367 ("python-nbconvert" ,python-nbconvert)
24368 ("python-nbformat" ,python-nbformat)
24369 ("python-pytest" ,python-pytest)
24370 ("python-six" ,python-six)))
24372 `(("python-pbr-minimal" ,python-pbr-minimal)))
24373 (home-page "https://github.com/minrk/pytest-check-links")
24374 (synopsis "Check links in files")
24375 (description "This package provides a pytest plugin that checks URLs for
24376 HTML-containing files.")
24377 (license license:bsd-3)))
24379 (define-public python-json5
24381 (name "python-json5")
24385 ;; sample.json5 is missing from PyPi source tarball
24387 (uri (git-reference
24388 (url "https://github.com/dpranke/pyjson5")
24389 (commit (string-append "v" version))))
24390 (file-name (git-file-name name version))
24392 (base32 "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn"))))
24393 (build-system python-build-system)
24394 (home-page "https://github.com/dpranke/pyjson5")
24396 "Python implementation of the JSON5 data format")
24398 "JSON5 extends the JSON data interchange format to make it slightly more
24399 usable as a configuration language. This Python package implements parsing and
24400 dumping of JSON5 data structures.")
24401 (license license:asl2.0)))
24403 (define-public python-frozendict
24405 (name "python-frozendict")
24410 (uri (pypi-uri "frozendict" version))
24412 (base32 "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"))))
24413 (build-system python-build-system)
24414 (home-page "https://github.com/slezica/python-frozendict")
24415 (synopsis "Simple immutable mapping for Python")
24417 "@dfn{frozendict} is an immutable wrapper around dictionaries that
24418 implements the complete mapping interface. It can be used as a drop-in
24419 replacement for dictionaries where immutability is desired.")
24420 (license license:expat)))
24422 (define-public python-unpaddedbase64
24424 (name "python-unpaddedbase64")
24429 (uri (git-reference
24430 (url "https://github.com/matrix-org/python-unpaddedbase64")
24431 (commit (string-append "v" version))))
24432 (file-name (git-file-name name version))
24435 "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd"))))
24436 (build-system python-build-system)
24437 (home-page "https://pypi.org/project/unpaddedbase64/")
24438 (synopsis "Encode and decode Base64 without “=” padding")
24440 "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
24441 using “=” characters. However this conveys no benefit so many protocols
24442 choose to use Base64 without the “=” padding.")
24443 (license license:asl2.0)))
24445 (define-public python-py-cpuinfo
24447 (name "python-py-cpuinfo")
24452 (uri (pypi-uri "py-cpuinfo" version))
24455 "0045y6832gqjg63jmw0qj2jwyypgjwr7sfdq3lfv49b6fxpl5xic"))))
24456 (build-system python-build-system)
24457 (home-page "https://github.com/workhorsy/py-cpuinfo")
24458 (synopsis "Get CPU info with Python")
24460 "This Python module returns the CPU info by using the best sources of
24461 information for your operating system.")
24462 (license license:expat)))
24464 (define-public python-canonicaljson
24466 (name "python-canonicaljson")
24471 (uri (pypi-uri "canonicaljson" version))
24473 (base32 "0c86g0vvzdcg3nrcsqnbzlfhpprc2i894p8i14hska56yl27d6w9"))))
24474 (build-system python-build-system)
24476 `(("python-six" ,python-six)
24477 ("python-frozendict" ,python-frozendict)
24478 ("python-simplejson" ,python-simplejson)))
24479 (home-page "https://github.com/matrix-org/python-canonicaljson")
24480 (synopsis "Canonical JSON")
24482 "Deterministically encode JSON.
24485 @item Encodes objects and arrays as RFC 7159 JSON.
24486 @item Sorts object keys so that you get the same result each time.
24487 @item Has no insignificant whitespace to make the output as small as possible.
24488 @item Escapes only the characters that must be escaped, U+0000 to
24489 U+0019 / U+0022 / U+0056, to keep the output as small as possible.
24490 @item Uses the shortest escape sequence for each escaped character.
24491 @item Encodes the JSON as UTF-8.
24492 @item Can encode frozendict immutable dictionaries.
24494 (license license:asl2.0)))
24496 (define-public python-signedjson
24498 (name "python-signedjson")
24503 (uri (pypi-uri "signedjson" version))
24505 (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
24506 (build-system python-build-system)
24508 `(("python-canonicaljson" ,python-canonicaljson)
24509 ("python-importlib-metadata" ,python-importlib-metadata)
24510 ("python-pynacl" ,python-pynacl)
24511 ("python-typing-extensions" ,python-typing-extensions)
24512 ("python-unpaddedbase64" ,python-unpaddedbase64)))
24514 `(("python-setuptools-scm" ,python-setuptools-scm)))
24515 (home-page "https://github.com/matrix-org/python-signedjson")
24516 (synopsis "Sign JSON objects with ED25519 signatures")
24518 "Sign JSON objects with ED25519 signatures.
24521 @item More than one entity can sign the same object.
24522 @item Each entity can sign the object with more than one key making it easier to
24524 @item ED25519 can be replaced with a different algorithm.
24525 @item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
24528 (license license:asl2.0)))
24530 (define-public python-daemonize
24532 (name "python-daemonize")
24537 (uri (pypi-uri "daemonize" version))
24539 (base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
24540 (build-system python-build-system)
24541 (home-page "https://github.com/thesharp/daemonize")
24542 (synopsis "Library for writing system daemons in Python")
24543 (description "Daemonize is a library for writing system daemons in Python.")
24544 (license license:expat)))
24546 (define-public python-pymacaroons
24548 (name "python-pymacaroons")
24553 (uri (pypi-uri "pymacaroons" version))
24555 (base32 "1f0357a6g1h96sk6wy030xmc1p4rd80a999qvxd28v7nlm1blsqy"))))
24556 (build-system python-build-system)
24558 `(("python-six" ,python-six)
24559 ("python-pynacl" ,python-pynacl)))
24560 (home-page "https://github.com/ecordell/pymacaroons")
24561 (synopsis "Python Macaroon Library")
24563 "Macaroons, like cookies, are a form of bearer credential. Unlike opaque
24564 tokens, macaroons embed caveats that define specific authorization
24565 requirements for the target service, the service that issued the root macaroon
24566 and which is capable of verifying the integrity of macaroons it receives.
24568 Macaroons allow for delegation and attenuation of authorization. They are
24569 simple and fast to verify, and decouple authorization policy from the
24570 enforcement of that policy.")
24571 (license license:expat)))
24573 (define-public python-ldap3
24575 (name "python-ldap3")
24577 (home-page "https://github.com/cannatag/ldap3")
24581 (uri (git-reference (url home-page)
24582 (commit (string-append "v" version))))
24583 (file-name (git-file-name name version))
24585 (base32 "0xw9fkqld21xsvdpaqir8ccc2l805xnn9gxahsnl70xzp3mwl0xv"))))
24586 (build-system python-build-system)
24588 '(#:tests? #f ;TODO: Tests need a real LDAP server to run
24589 #:phases (modify-phases %standard-phases
24591 (lambda* (#:key tests? #:allow-other-keys)
24593 (invoke "nosetests" "-s" "test"))
24596 `(("python-nose" ,python-nose)))
24598 `(("python-gssapi" ,python-gssapi)
24599 ("python-pyasn1" ,python-pyasn1)))
24600 (synopsis "Python LDAP client")
24602 "LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
24604 (license license:lgpl3+)))
24606 (define-public python-boltons
24608 (name "python-boltons")
24613 (uri (pypi-uri "boltons" version))
24616 "0lrr40qqj3ch8xarvyzbnbjs79pz5aywklllq53l347h1b8xnkg4"))))
24617 (build-system python-build-system)
24618 (home-page "https://github.com/mahmoud/boltons")
24619 (synopsis "Extensions to the Python standard library")
24621 "Boltons is a set of over 230 pure-Python utilities in the same spirit
24622 as — and yet conspicuously missing from — the standard library, including:
24625 @item Atomic file saving, bolted on with fileutils
24626 @item A highly-optimized OrderedMultiDict, in dictutils
24627 @item Two types of PriorityQueue, in queueutils
24628 @item Chunked and windowed iteration, in iterutils
24629 @item Recursive data structure iteration and merging, with iterutils.remap
24630 @item Exponential backoff functionality, including jitter, through
24632 @item A full-featured TracebackInfo type, for representing stack traces, in
24635 (license license:bsd-3)))
24637 (define-public python-eliot
24639 (name "python-eliot")
24644 (uri (pypi-uri "eliot" version))
24646 (base32 "0wabv7hk63l12881f4zw02mmj06583qsx2im0yywdjlj8f56vqdn"))))
24647 (build-system python-build-system)
24650 (modify-phases %standard-phases
24651 (add-after 'unpack 'remove-journald-support
24653 (for-each delete-file
24654 '("eliot/tests/test_journald.py"
24655 "eliot/journald.py"))
24657 (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
24658 ;; remove command-line tool's tests. TODO eliot-prettyprint should
24659 ;; be installed and these tests should pass.
24661 (delete-file "eliot/tests/test_prettyprint.py")
24664 `(("python-boltons" ,python-boltons)
24665 ("python-pyrsistent" ,python-pyrsistent)
24666 ("python-six" ,python-six)
24667 ("python-zope-interface" ,python-zope-interface)))
24669 `(("python-black" ,python-black)
24670 ("python-coverage" ,python-coverage)
24671 ("python-dask" ,python-dask)
24672 ("python-flake8" ,python-flake8)
24673 ("python-hypothesis" ,python-hypothesis)
24674 ("python-pytest" ,python-pytest)
24675 ("python-setuptools" ,python-setuptools)
24676 ("python-sphinx" ,python-sphinx)
24677 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
24678 ("python-testtools" ,python-testtools)
24679 ("python-twine" ,python-twine)
24680 ("python-twisted" ,python-twisted)))
24681 (home-page "https://github.com/itamarst/eliot/")
24682 (synopsis "Eliot: the logging system that tells you why it happened")
24684 "@dfn{eliot} is a Python logging system that outputs causal chains of
24685 actions: actions can spawn other actions, and eventually they either succeed
24686 or fail. The resulting logs tell you the story of what your software did: what
24687 happened, and what caused it.")
24688 (license license:asl2.0)))
24690 (define-public python-pem
24692 (name "python-pem")
24697 (uri (pypi-uri "pem" version))
24700 "1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7"))))
24701 (build-system python-build-system)
24703 `(("python-certifi" ,python-certifi)
24704 ("python-coverage" ,python-coverage)
24705 ("python-pretend" ,python-pretend)
24706 ("python-pyopenssl" ,python-pyopenssl)
24707 ("python-pytest" ,python-pytest)
24708 ("python-sphinx" ,python-sphinx)
24709 ("python-twisted" ,python-twisted)))
24710 (home-page "https://pem.readthedocs.io/")
24711 (synopsis "Easy PEM file parsing in Python")
24713 "This package provides a Python module for parsing and splitting PEM files.")
24714 (license license:expat)))
24716 (define-public python-txsni
24717 ;; We need a few commits on top of 0.1.9 for compatibility with newer
24718 ;; Python and OpenSSL.
24719 (let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
24722 (name "python-txsni")
24723 (version (git-version "0.1.9" revision commit))
24724 (home-page "https://github.com/glyph/txsni")
24728 (uri (git-reference (url home-page) (commit commit)))
24729 (file-name (git-file-name name version))
24732 "0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
24733 (build-system python-build-system)
24735 `(("python-pyopenssl" ,python-pyopenssl)
24736 ("python-service-identity" ,python-service-identity)
24737 ("python-twisted" ,python-twisted)))
24738 (synopsis "Run TLS servers with Twisted")
24740 "This package provides an easy-to-use SNI endpoint for use
24741 with the Twisted web framework.")
24742 (license license:expat))))
24744 (define-public python-txacme
24746 (name "python-txacme")
24751 (uri (pypi-uri "txacme" version))
24753 (base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
24754 (build-system python-build-system)
24756 `(("python-acme" ,python-acme)
24757 ("python-attrs" ,python-attrs)
24758 ("python-eliot" ,python-eliot)
24759 ("python-josepy" ,python-josepy)
24760 ("python-pem" ,python-pem)
24761 ("python-treq" ,python-treq)
24762 ("python-twisted" ,python-twisted)
24763 ("python-txsni" ,python-txsni)))
24765 `(("python-fixtures" ,python-fixtures)
24766 ("python-hypothesis" ,python-hypothesis)
24767 ("python-mock" ,python-mock)
24768 ("python-service-identity"
24769 ,python-service-identity)
24770 ("python-testrepository" ,python-testrepository)
24771 ("python-testscenarios" ,python-testscenarios)
24772 ("python-testtools" ,python-testtools)))
24773 (home-page "https://github.com/twisted/txacme")
24774 (synopsis "Twisted implexmentation of the ACME protocol")
24776 "ACME is Automatic Certificate Management Environment, a protocol that
24777 allows clients and certificate authorities to automate verification and
24778 certificate issuance. The ACME protocol is used by the free Let's Encrypt
24779 Certificate Authority.
24781 txacme is an implementation of the protocol for Twisted, the event-driven
24782 networking engine for Python.")
24783 (license license:expat)))
24785 (define-public python-pysaml2
24787 (name "python-pysaml2")
24792 (uri (pypi-uri "pysaml2" version))
24795 "1xk2x0slz1f8cqv7vn77qx99xfd1mshhswiwrljk9m72w2m9iivd"))))
24796 (build-system python-build-system)
24798 `(("python-cryptography" ,python-cryptography)
24799 ("python-dateutil" ,python-dateutil)
24800 ("python-defusedxml" ,python-defusedxml)
24801 ("python-importlib-resources"
24802 ,python-importlib-resources)
24803 ("python-pyopenssl" ,python-pyopenssl)
24804 ("python-pytz" ,python-pytz)
24805 ("python-requests" ,python-requests)
24806 ("python-six" ,python-six)
24807 ("python-xmlschema" ,python-xmlschema)))
24808 (home-page "https://idpy.org")
24809 (synopsis "Python implementation of SAML Version 2 Standard")
24811 "PySAML2 is a pure python implementation of SAML Version 2 Standard.
24812 It contains all necessary pieces for building a SAML2 service provider or
24813 an identity provider. The distribution contains examples of both.
24815 This package was originally written to work in a WSGI environment, but
24816 there are extensions that allow you to use it with other frameworks.")
24817 (license license:asl2.0)))
24819 (define-public python-click-plugins
24821 (name "python-click-plugins")
24826 (uri (pypi-uri "click-plugins" version))
24828 (base32 "0jr6bxj67vg988vkm6nz8jj98v9lg46bn49lkhak3n598jbrkas6"))))
24829 (build-system python-build-system)
24831 `(("python-pytest" ,python-pytest)))
24833 `(("python-click" ,python-click)))
24834 (synopsis "Extension for Click to register external CLI commands")
24835 (description "This package provides n extension module for Click to
24836 register external CLI commands via setuptools entry-points.")
24837 (home-page "https://github.com/click-contrib/click-plugins")
24838 (license license:bsd-3)))
24840 (define-public python-diceware
24842 (name "python-diceware")
24847 (uri (pypi-uri "diceware" version))
24850 "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby"))))
24851 (build-system python-build-system)
24853 `(("python-coverage" ,python-coverage)
24854 ("python-pytest" ,python-pytest)
24855 ("python-pytest-runner" ,python-pytest-runner)))
24856 (home-page "https://github.com/ulif/diceware/")
24857 (synopsis "Generates memorable passphrases")
24858 (description "This package generates passphrases by concatenating words
24859 randomly picked from wordlists. It supports several sources of
24860 randomness (including real life dice) and different wordlists (including
24861 cryptographically signed ones).")
24862 (license license:gpl3+)))
24864 (define-public python-dictdiffer
24866 (name "python-dictdiffer")
24870 (uri (pypi-uri "dictdiffer" version))
24873 "1lk3qmy1hkaphk4n7ayfk0wl6m2yvd6r7qkam6yncqfzgkbc1phs"))))
24874 (build-system python-build-system)
24876 `(("python-check-manifest" ,python-check-manifest)
24877 ("python-coverage" ,python-coverage)
24878 ("python-isort" ,python-isort)
24879 ("python-mock" ,python-mock)
24880 ("python-pydoctstyle" ,python-pydocstyle)
24881 ("python-pytest-cache" ,python-pytest-cache)
24882 ("python-pytest-cov" ,python-pytest-cov)
24883 ("python-pytest-pep8" ,python-pytest-pep8)
24884 ("python-pytest-runner" ,python-pytest-runner)
24885 ("python-pytest" ,python-pytest)
24886 ("python-setuptools-scm" ,python-setuptools-scm)
24887 ("python-tox" ,python-tox)))
24888 (home-page "https://github.com/inveniosoftware/dictdiffer")
24889 (synopsis "Diff and patch Python dictionary objects")
24891 "Dictdiffer is a Python module that helps you to diff and patch
24893 (license license:expat)))
24895 (define-public pyzo
24902 (uri (pypi-uri "pyzo" version))
24904 (base32 "1jk5f79lj09vnsdk9h01w21p9h49z2hhf8xhkx8471pjbg9vrlzr"))))
24905 (build-system python-build-system)
24908 (modify-phases %standard-phases
24909 (add-before 'check 'fix-home-directory
24911 ;; Tests fail with "Permission denied: '/homeless-shelter'".
24912 (setenv "HOME" "/tmp")
24914 ;; Tests fail with "Uncaught Python exception: python: undefined
24915 ;; symbol: objc_getClass".
24918 `(("python-pyqt" ,python-pyqt)))
24919 (home-page "https://pyzo.org")
24921 "Python IDE for scientific computing")
24923 "Pyzo is a Python IDE focused on interactivity and introspection,
24924 which makes it very suitable for scientific computing. Its practical
24925 design is aimed at simplicity and efficiency.
24927 It consists of two main components, the editor and the shell, and uses
24928 a set of pluggable tools to help the programmer in various ways. Some
24929 example tools are source structure, project manager, interactive help,
24931 (license license:bsd-2)))
24933 (define-public python-osc
24935 (name "python-osc")
24940 (uri (pypi-uri "python-osc" version))
24943 "0cnh0z5lnng7fh48nmfaqqn8j25k13gkd4rhxd3m6sjqiix9s3vn"))))
24944 (build-system python-build-system)
24945 (home-page "https://github.com/attwad/python-osc")
24946 (synopsis "Open Sound Control server and client implementations")
24948 "@code{python-osc} is a pure Python library with no external
24949 dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
24950 Open Sound Control 1.0} specification.")
24951 (license license:unlicense)))
24953 (define-public python-voluptuous
24955 (name "python-voluptuous")
24960 (uri (pypi-uri "voluptuous" version))
24963 "0mplkcpb5d8wjf8vk195fys4y6a3wbibiyf708imw33lphfk9g1a"))))
24964 (build-system python-build-system)
24966 `(("python-nose" ,python-nose)))
24967 (home-page "https://github.com/alecthomas/voluptuous")
24968 (synopsis "Python data validation library")
24970 "Voluptuous is a Python data validation library. It is primarily
24971 intended for validating data coming into Python as JSON, YAML, etc.")
24972 (license license:bsd-3)))
24974 (define-public python-cmd2
24976 (name "python-cmd2")
24981 (uri (pypi-uri "cmd2" version))
24984 "1f18plbc9yyvhn0js3d2bii9yld8zfl775gxsaw9jza5pmlg9ss2"))))
24985 (build-system python-build-system)
24987 `(("python-attrs" ,python-attrs)
24988 ("python-colorama" ,python-colorama)
24989 ("python-pyperclip" ,python-pyperclip)
24990 ("python-wcwidth" ,python-wcwidth)))
24992 `(("python-codecov" ,python-codecov)
24993 ("python-coverage" ,python-coverage)
24994 ("python-doc8" ,python-doc8)
24995 ("python-flake8" ,python-flake8)
24996 ("python-invoke" ,python-invoke)
24997 ("python-mock" ,python-mock)
24998 ("python-pytest" ,python-pytest)
24999 ("python-pytest-cov" ,python-pytest-cov)
25000 ("python-pytest-mock" ,python-pytest-mock)
25001 ("python-setuptools-scm" ,python-setuptools-scm)
25002 ("python-sphinx" ,python-sphinx)
25003 ("python-sphinx-autobuild" ,python-sphinx-autobuild)
25004 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
25005 ("python-tox" ,python-tox)
25006 ("python-twine" ,python-twine)
25008 (home-page "https://github.com/python-cmd2/cmd2")
25009 (synopsis "Tool for building interactive command line applications")
25011 "Cmd2 is a tool for building interactive command line applications in
25012 Python. Its goal is to make it quick and easy for developers to build
25013 feature-rich and user-friendly interactive command line applications. It
25014 provides a simple API which is an extension of Python's built-in @code{cmd}
25015 module. @code{cmd2} provides a wealth of features on top of @code{cmd} to
25016 make your life easier and eliminates much of the boilerplate code which would
25017 be necessary when using @code{cmd}.")
25018 (license license:expat)))
25020 (define-public python-pytidylib
25022 (name "python-pytidylib")
25026 (uri (pypi-uri "pytidylib" version))
25029 "1wqa9dv5d7swka14rnky862hc7dgk2g3dhlrz57hdn3hb7bwic92"))))
25030 (build-system python-build-system)
25033 (modify-phases %standard-phases
25034 (add-before 'build 'qualify-libtidy
25035 (lambda* (#:key inputs #:allow-other-keys)
25036 (let ((libtidy (string-append (assoc-ref inputs "tidy")
25037 "/lib/libtidy.so")))
25038 (substitute* "tidylib/tidy.py"
25039 (("ctypes\\.util\\.find_library\\('tidy'\\)")
25040 (format #f "'~a'" libtidy)))
25042 (inputs `(("tidy" ,tidy)))
25043 (home-page "https://github.com/countergram/pytidylib")
25044 (synopsis "Python wrapper for HTML Tidy library")
25046 "PyTidyLib is a Python package that wraps the HTML Tidy library. This
25047 allows you, from Python code, to “fix” invalid (X)HTML markup.")
25048 (license license:expat)))
25050 (define-public python2-pytidylib
25051 (package-with-python2 python-pytidylib))
25053 (define-public python-mujson
25055 (name "python-mujson")
25060 (uri (pypi-uri "mujson" version))
25063 "0wbj6r8yzsdx2b0kbldlkznr1a9nn33za2q9x3g0hbg420dwzn97"))))
25064 (build-system python-build-system)
25065 (home-page "https://github.com/mattgiles/mujson")
25066 (synopsis "Use the fastest JSON functions available at import time")
25067 (description "This package selects the fastest JSON functions available
25069 (license license:expat)))
25071 (define-public python-bashlex
25073 (name "python-bashlex")
25078 (uri (pypi-uri "bashlex" version))
25081 "1z9g96fgsfpdwawp4sb5x6hbdhmda7kgmcrqlf9xx4bs1f8f14js"))))
25082 (build-system python-build-system)
25085 (modify-phases %standard-phases
25086 (add-before 'build 'pregenerate-yacc-tables
25088 ;; parser.py caches tables, which attempts to write to site lib
25089 ;; see https://github.com/idank/bashlex/issues/51
25090 (invoke "python" "-c" "import bashlex"))))))
25092 "https://github.com/idank/bashlex")
25093 (synopsis "Python parser for bash")
25094 (description "@code{bashlex} is a Python port of the parser used
25095 internally by GNU bash.
25097 For the most part it's transliterated from C, the major differences are:
25100 @item it does not execute anything
25101 @item it is reentrant
25102 @item it generates a complete AST
25105 (license license:gpl3+)))
25107 (define-public python-jinxed
25109 (name "python-jinxed")
25114 (uri (pypi-uri "jinxed" version))
25117 "1n7vl03rhjd0xhjgbjlh8x9f8yfbhamcwkgvs4jg7g5qj8f0wk89"))))
25118 (build-system python-build-system)
25121 (modify-phases %standard-phases
25122 (add-before 'check 'set-environment-variables
25123 (lambda* (#:key inputs #:allow-other-keys)
25124 (let ((ncurses (assoc-ref inputs "ncurses")))
25125 (setenv "TERM" "LINUX")
25126 (setenv "TERMINFO" (string-append ncurses "/share/terminfo"))
25128 #:tests? #f)) ; _curses.error: setupterm: could not find terminal
25130 `(("ncurses" ,ncurses)))
25131 (home-page "https://github.com/Rockhopper-Technologies/jinxed")
25132 (synopsis "Jinxed Terminal Library")
25134 "Jinxed is an implementation of a subset of the Python curses library.")
25135 (license license:mpl2.0)))
25137 (define-public python-svgutils
25139 (name "python-svgutils")
25144 (uri (pypi-uri "svgutils" version))
25147 "0lz0w2ajdvwd269a7ppnzawmx8px0116j0nx8xvhlihxrd28zx4y"))))
25148 (build-system python-build-system)
25150 `(("python-lxml" ,python-lxml)))
25151 (home-page "https://svgutils.readthedocs.io")
25152 (synopsis "Python SVG editor")
25153 (description "This is an utility package that helps with editing and
25154 concatenating SVG files. It is especially directed at scientists preparing
25155 final figures for submission to journals. So far it supports arbitrary
25156 placement and scaling of SVG figures and adding markers, such as labels.")
25157 (license license:expat)))
25159 (define-public python-blessed
25161 (name "python-blessed")
25166 (uri (pypi-uri "blessed" version))
25169 "1wdj342sk22hfrg0n91x2qnqsbzbiyq9y009v3pxnvfzn9bx0wbn"))
25170 (modules '((guix build utils)))
25173 ;; Don't get hung up on Windows test failures.
25174 (delete-file "blessed/win_terminal.py") #t))))
25175 (build-system python-build-system)
25177 `(("python-jinxed" ,python-jinxed)
25178 ("python-six" ,python-six)
25179 ("python-wcwidth" ,python-wcwidth)))
25181 `(("python-mock" ,python-mock)
25182 ("python-pytest" ,python-pytest)))
25183 (home-page "https://github.com/jquast/blessed")
25184 (synopsis "Wrapper around terminal capabilities")
25186 "Blessed is a thin, practical wrapper around terminal styling, screen
25187 positioning, and keyboard input.")
25188 (license license:expat)))
25190 (define-public python-readme-renderer
25192 (name "python-readme-renderer")
25197 (uri (pypi-uri "readme_renderer" version))
25200 "13fnrv7z3y0yfafzcjbl55cqxncvbxadr72ql4l29pgyvrqxpsfb"))))
25201 (build-system python-build-system)
25203 `(("python-bleach" ,python-bleach)
25204 ("python-docutils" ,python-docutils)
25205 ("python-pygments" ,python-pygments)
25206 ("python-six" ,python-six)))
25208 `(("python-mock" ,python-mock)
25209 ("python-pytest" ,python-pytest)))
25210 (home-page "https://github.com/pypa/readme_renderer")
25211 (synopsis "Render README files in Warehouse")
25213 "Readme Renderer is a library that will safely render arbitrary README
25214 files into HTML. It is designed to be used in Warehouse to render the
25215 @code{long_description} for packages. It can handle Markdown, reStructuredText,
25217 (license license:asl2.0)))
25219 (define-public python-lazr-delegates
25221 (name "python-lazr-delegates")
25226 (uri (pypi-uri "lazr.delegates" version))
25229 "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx"))))
25230 (build-system python-build-system)
25233 (modify-phases %standard-phases
25236 (invoke "python" "setup.py" "nosetests"))))))
25238 `(("python-nose" ,python-nose)))
25240 `(("python-zope-interface" ,python-zope-interface)))
25241 (home-page "https://launchpad.net/lazr.delegates")
25242 (synopsis "Easily write objects that delegate behavior")
25244 "The @code{lazr.delegates} package makes it easy to write objects that
25245 delegate behavior to another object. The new object adds some property or
25246 behavior on to the other object, while still providing the underlying interface,
25247 and delegating behavior.")
25248 (license license:lgpl3)))
25250 (define-public python-lazr-config
25252 (name "python-lazr-config")
25257 (uri (pypi-uri "lazr.config" version))
25260 "11xpddgyhyj7sf27wbmrq5lnqk21wnprx3ajycgwlxjamh6sgffd"))))
25261 (build-system python-build-system)
25264 (modify-phases %standard-phases
25267 (invoke "python" "-s" "-m" "nose" "-P" "lazr"))))))
25269 `(("python-nose" ,python-nose)))
25271 `(("python-lazr-delegates" ,python-lazr-delegates)
25272 ("python-zope-interface" ,python-zope-interface)))
25273 (home-page "https://launchpad.net/lazr.config")
25274 (synopsis "Create configuration schemas and process and validate configurations")
25276 "The LAZR config system is typically used to manage process configuration.
25277 Process configuration is for saying how things change when we run systems on
25278 different machines, or under different circumstances. This system uses ini-like
25279 file format of section, keys, and values. The config file supports inheritance
25280 to minimize duplication of information across files. The format supports schema
25282 (license license:lgpl3)))
25284 (define-public python-flufl-bounce
25286 (name "python-flufl-bounce")
25291 (uri (pypi-uri "flufl.bounce" version))
25294 "01lg1b0jpf8605mzaz9miq3nray6s7a7gc8n4wzg5nsxl8fglcp4"))))
25295 (build-system python-build-system)
25297 `(("python-atpublic" ,python-atpublic)
25298 ("python-zope-interface" ,python-zope-interface)))
25300 `(("python-nose2" ,python-nose2)))
25301 (home-page "https://fluflbounce.readthedocs.io/en/latest/")
25302 (synopsis "Email bounce detectors")
25303 (description "The @code{flufl.bounce} library provides a set of heuristics
25304 and an API for detecting the original bouncing email addresses from a bounce
25305 message. Many formats found in the wild are supported, as are VERP and
25307 (license (list license:asl2.0
25308 license:lgpl3)))) ; only for setup_headers.py
25310 (define-public python-flufl-i18n
25312 (name "python-flufl-i18n")
25317 (uri (pypi-uri "flufl.i18n" version))
25320 "1flwpn1xhgc957zj3zxw92dhdjh0lsy0hdvzq32dzqpsajfsvq1r"))))
25321 (build-system python-build-system)
25323 `(("python-atpublic" ,python-atpublic)))
25324 (home-page "https://flufli18n.readthedocs.io")
25325 (synopsis "API for Python internationalization")
25327 "This package provides a high-level, convenient API for managing
25328 internationalization/translation contexts in Python applications. There is a
25329 simple API for single-context applications, such as command line scripts which
25330 only need to translate into one language during the entire course of their
25331 execution. There is a more flexible, but still convenient API for multi-context
25332 applications, such as servers, which may need to switch language contexts for
25334 (license license:asl2.0)))
25336 (define-public python-flufl-lock
25338 (name "python-flufl-lock")
25343 (uri (pypi-uri "flufl.lock" version))
25346 "055941zyma3wfx25jhm8wcsghpv3jc3iwi1gdrdjhzcnfhn62lxq"))))
25347 (build-system python-build-system)
25349 `(("python-atpublic" ,python-atpublic)
25350 ("python-psutil" ,python-psutil)))
25351 (home-page "https://flufllock.readthedocs.io")
25352 (synopsis "NFS-safe file locking with timeouts for POSIX systems")
25354 "The @dfn{flufl.lock} package provides NFS-safe file locking with
25355 timeouts for POSIX systems. It is similar to the @code{O_EXCL} option of the
25356 @code{open} system call but uses a lockfile. Lock objects support lock-breaking
25357 and have a maximum lifetime built-in.")
25358 (license (list license:asl2.0
25359 license:lgpl3)))) ; only for setup_helpers.py
25361 (define-public python-flufl-testing
25363 (name "python-flufl-testing")
25368 (uri (pypi-uri "flufl.testing" version))
25371 "1nkm95mhcfhl4x5jgs6y97ikszaxsfh07nyawsih6cxxm6l62641"))))
25372 (build-system python-build-system)
25374 `(("python-nose2" ,python-nose2)))
25375 (home-page "https://gitlab.com/warsaw/flufl.testing")
25376 (synopsis "Collection of test tool plugins")
25378 "This package contains a small collection of test tool plugins for
25379 @code{nose2} and @code{flake8}.")
25380 (license license:asl2.0)))
25382 (define-public python-devtools
25384 (name "python-devtools")
25389 (uri (git-reference
25390 (url "https://github.com/samuelcolvin/python-devtools")
25391 (commit (string-append "v" version))))
25392 (file-name (git-file-name name version))
25394 (base32 "15zczdcm90wl54c68f1qjb05nkd5bjsc9xjl3lk4frs7k7wkmrvp"))))
25395 (build-system python-build-system)
25397 `(("python-pytest" ,python-pytest)
25398 ("python-pytest-mock" ,python-pytest-mock)))
25400 `(("python-pygments" ,python-pygments)))
25402 `(#:phases (modify-phases %standard-phases
25407 (home-page "https://github.com/samuelcolvin/python-devtools")
25408 (synopsis "Debug command and development tools")
25410 "This package provides a debug print command and other development tools.
25411 It adds a simple and readable way to print stuff during development.")
25412 (license license:expat)))
25414 (define-public python-dateparser
25416 (name "python-dateparser")
25421 (uri (pypi-uri "dateparser" version))
25424 "1ypbyqxlk7n6zibk90js3ybz37xmin3kk0i35g8c51bwqpcfyxg8"))))
25425 (build-system python-build-system)
25427 `(("python-dateutil" ,python-dateutil)
25428 ("python-pytz" ,python-pytz)
25429 ("python-regex" ,python-regex)
25430 ("python-ruamel.yaml" ,python-ruamel.yaml)
25431 ("python-tzlocal" ,python-tzlocal)))
25433 `(("python-mock" ,python-mock)
25434 ("python-parameterized" ,python-parameterized)
25435 ("tzdata" ,tzdata-for-tests)))
25437 `(;; TODO: Of 23320 tests, 6 fail and 53 error.
25440 (modify-phases %standard-phases
25441 (add-before 'check 'set-check-environment
25442 (lambda* (#:key inputs #:allow-other-keys)
25443 (setenv "TZ" "UTC")
25445 (string-append (assoc-ref inputs "tzdata")
25446 "/share/zoneinfo"))
25448 (home-page "https://github.com/scrapinghub/dateparser")
25450 "Date parsing library designed to parse dates from HTML pages")
25452 "@code{python-dateparser} provides modules to easily parse localized
25453 dates in almost any string formats commonly found on web pages.")
25454 (license license:bsd-3)))
25456 (define-public python-dparse
25458 (name "python-dparse")
25463 (uri (pypi-uri "dparse" version))
25466 "0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1"))))
25467 (build-system python-build-system)
25469 `(("python-pytest" ,python-pytest)))
25471 `(("python-packaging" ,python-packaging)
25472 ("python-pyyaml" ,python-pyyaml)
25473 ("python-toml" ,python-toml)))
25474 (home-page "https://github.com/pyupio/dparse")
25475 (synopsis "Parser for Python dependency files")
25476 (description "This package provides a parser for Python dependency files.")
25477 (license license:expat)))
25479 (define-public python-dpath
25481 (name "python-dpath")
25486 (uri (pypi-uri "dpath" version))
25489 "1ymi9ssk7i0mx3mviplf4csfvzibdd6wyj4qzj6s487n9xgnp85y"))))
25490 (build-system python-build-system)
25492 `(("python-hypothesis" ,python-hypothesis)
25493 ("python-mock" ,python-mock)
25494 ("python-nose" ,python-nose)))
25497 (modify-phases %standard-phases
25499 (lambda* (#:key inputs outputs #:allow-other-keys)
25500 (add-installed-pythonpath inputs outputs)
25501 ;; This invokation is taken from tox.ini.
25502 (invoke "nosetests" "-d" "-v" "tests/"))))))
25503 (home-page "https://github.com/akesterson/dpath-python")
25504 (synopsis "File-system-like pathing and searching for dictionaries")
25506 "@code{python-dpath} is a library for accessing and searching
25507 dictionaries via /slashed/paths ala xpath.
25509 Basically it lets you glob over a dictionary as if it were a file system. It
25510 allows you to specify globs (ala the bash eglob syntax, through some advanced
25511 fnmatch.fnmatch magic) to access dictionary elements, and provides some
25512 facility for filtering those results.")
25513 (license license:expat)))
25515 (define-public python-safety
25517 (name "python-safety")
25522 (uri (pypi-uri "safety" version))
25525 "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
25526 (build-system python-build-system)
25529 (modify-phases %standard-phases
25530 (add-after 'unpack 'disable-tests
25532 (substitute* "tests/test_safety.py"
25533 ;; requires network
25534 (("def test_check_live") "def _test_check_live"))
25537 `(("python-click" ,python-click)
25538 ("python-dparse" ,python-dparse)
25539 ("python-packaging" ,python-packaging)
25540 ("python-requests" ,python-requests)))
25541 (home-page "https://github.com/pyupio/safety")
25542 (synopsis "Check installed dependencies for known vulnerabilities")
25543 (description "Safety checks installed dependencies for known vulnerabilities.
25544 By default it uses the open Python vulnerability database Safety DB.")
25545 (license license:expat)))
25547 (define-public python-pypandoc
25549 (name "python-pypandoc")
25554 (uri (pypi-uri "pypandoc" version))
25557 "1zvn9764cf7kkjkmr9gw6wc8adpk06qxr1rhxwa9pg0zmdvrk90l"))))
25558 (build-system python-build-system)
25560 `(("pandoc" ,pandoc)
25561 ("pandoc-citeproc" ,pandoc-citeproc)))
25563 `(("wheel" ,python-wheel)))
25565 `(("texlive" ,(texlive-union (list texlive-amsfonts/patched
25567 texlive-latex-hyperref
25568 texlive-latex-oberdiek
25570 texlive-xcolor)))))
25573 (modify-phases %standard-phases
25574 (add-before 'check 'disable-tests
25576 ;; Disable test requiring network access
25577 (substitute* "tests.py"
25578 (("test_basic_conversion_from_http_url")
25579 "skip_test_basic_conversion_from_http_url"))
25580 ;; Needed by texlive-union to generate fonts
25581 (setenv "HOME" "/tmp")
25583 (home-page "https://github.com/bebraw/pypandoc")
25584 (synopsis "Python wrapper for pandoc")
25585 (description "pypandoc is a thin Python wrapper around pandoc
25586 and pandoc-citeproc.")
25587 (license license:expat)))
25589 (define-public python-rnc2rng
25591 (name "python-rnc2rng")
25596 (uri (pypi-uri "rnc2rng" version))
25599 "1kmp3iwxxyzjsd47j2sprd47ihhkwhb3yydih3af5bbfq0ibh1w8"))))
25600 (build-system python-build-system)
25602 `(("python-rply" ,python-rply)))
25604 `(#:phases (modify-phases %standard-phases
25607 (invoke "python" "test.py"))))))
25608 (home-page "https://github.com/djc/rnc2rng")
25609 (synopsis "Convert RELAX NG Compact to regular syntax")
25611 "This package provides the @command{rnc2rng} command-line tool as well as
25612 a Python library to convert RELAX NG schemata in Compact syntax (rnc) to
25613 equivalent schemata in the XML-based default RELAX NG syntax.")
25614 (license license:expat)))
25616 (define-public python-telethon
25618 (name "python-telethon")
25623 (uri (git-reference
25624 (url "https://github.com/LonamiWebs/Telethon")
25625 (commit (string-append "v" version))))
25626 (file-name (git-file-name name version))
25628 (base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))))
25629 (build-system python-build-system)
25632 (modify-phases %standard-phases
25634 (lambda* (#:key tests? #:allow-other-keys)
25636 (invoke "py.test" "-v"))
25639 `(("python-rsa" ,python-rsa)
25640 ("python-pyaes" ,python-pyaes)))
25642 `(("python-pytest" ,python-pytest)
25643 ("python-pytest-asyncio" ,python-pytest-asyncio)
25644 ("python-pytest-trio" ,python-pytest-trio)))
25645 (home-page "https://docs.telethon.dev")
25646 (synopsis "Full-featured Telegram client library for Python 3")
25647 (description "This library is designed to make it easy to write Python
25648 programs that can interact with Telegram.")
25649 (license license:expat)))
25651 (define-public python-citeproc-py
25653 (name "python-citeproc-py")
25658 (uri (pypi-uri "citeproc-py" version))
25661 "00aaff50jy4j0nakdzq9258z1gzrac9baarli2ymgspj88jg5968"))))
25662 (build-system python-build-system)
25664 `(("python-lxml" ,python-lxml)
25665 ("python-rnc2rng" ,python-rnc2rng)))
25667 "https://github.com/brechtm/citeproc-py")
25668 (synopsis "Citations and bibliography formatter")
25670 "Citeproc-py is a CSL processor for Python. It aims to implement the
25671 CSL 1.0.1 specification. citeproc-py can output styled citations and
25672 bibliographies in a number of different output formats. Currently supported
25673 are plain text, reStructuredText and HTML.")
25674 (license license:bsd-2)))
25676 (define-public python-inform
25678 (name "python-inform")
25683 (uri (pypi-uri "inform" version))
25686 "0dvc5klbnbryrvspp45nmlg02g40j7xspcz7lqsm0c0dj0z29zdz"))))
25687 (build-system python-build-system)
25689 `(#:tests? #f)) ; PyPI tarball lacks tests
25691 `(("python-hypothesis" ,python-hypothesis)
25692 ("python-pytest-cov" ,python-pytest-cov)
25693 ("python-pytest-runner" ,python-pytest-runner)))
25695 `(("python-arrow" ,python-arrow)
25696 ("python-six" ,python-six)))
25697 (home-page "https://inform.readthedocs.io")
25698 (synopsis "Print & logging utilities for communicating with user")
25700 "Inform is designed to display messages from programs that are typically run from
25701 a console. It provides a collection of ‘print’ functions that allow you to simply and
25702 cleanly print different types of messages.")
25703 (license license:gpl3+)))
25705 (define-public python-nestedtext
25707 (name "python-nestedtext")
25712 (uri (pypi-uri "nestedtext" version))
25715 "0xjx863n7yd1xmkwhy48lhmqrmlzgbx3civhk386hvrzyq4sx148"))))
25716 (build-system python-build-system)
25718 `(#:tests? #f)) ; PyPI tarball lacks tests
25720 `(("python-inform" ,python-inform)))
25721 (home-page "https://nestedtext.org")
25722 (synopsis "Human readable and writable data interchange format")
25724 "NestedText is a file format for holding data that is to be entered, edited, or
25725 viewed by people. It allows data to be organized into a nested collection of
25726 dictionaries, lists, and strings. In this way it is similar to JSON and YAML, but
25727 without the complexity and risk of YAML and without the syntactic clutter of JSON.
25728 NestedText is both simple and natural. Only a small number of concepts and rules must
25729 be kept in mind when creating it. It is easily created, modified, or viewed with
25730 a text editor and easily understood and used by both programmers and non-programmers.")
25731 (license license:expat))) ; MIT license
25733 (define-public python-nest-asyncio
25735 (name "python-nest-asyncio")
25740 (uri (pypi-uri "nest_asyncio" version))
25743 "1anha29fcijminn5bh2icnx8x7nk39lna9wkc72262i12p2s3idg"))))
25744 (build-system python-build-system)
25745 (home-page "https://github.com/erdewit/nest_asyncio")
25746 (synopsis "Patch asyncio to allow nested event loops")
25748 "By design @code{asyncio} does not allow its event loop to be nested.
25749 This presents a practical problem: when in an environment where the event loop
25750 is already running it's impossible to run tasks and wait for the result. This
25751 module patches @code{asyncio} to allow nested use of @code{asyncio.run} and
25752 @code{loop.run_until_complete}.")
25753 (license license:bsd-3)))
25755 (define-public python-simpervisor
25757 (name "python-simpervisor")
25761 ;; Tests not included in release.
25763 (uri (git-reference
25764 (url "https://github.com/yuvipanda/simpervisor")
25765 (commit (string-append "v" version))))
25766 (file-name (git-file-name name version))
25768 (base32 "1brsisx7saf4ic0dih1n5y7rbdbwn1ywv9pl32bch3061r46prvv"))))
25769 (build-system python-build-system)
25771 `(#:tests? #f ; Test suite can't find aiohttp.
25773 (modify-phases %standard-phases
25775 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
25777 (add-installed-pythonpath inputs outputs)
25778 (invoke "pytest" "--maxfail" "3" "--verbose"))
25781 `(("python-aiohttp" ,python-aiohttp)
25782 ("python-pytest" ,python-pytest)
25783 ("python-pytest-asyncio" ,python-pytest-asyncio)))
25784 (home-page "https://github.com/yuvipanda/simpervisor")
25785 (synopsis "Simple async process supervisor")
25787 "This package provides a simple async process supervisor in Python.")
25788 (license license:bsd-3)))
25790 (define-public python-parallel
25792 (name "python-parallel")
25793 (version "1.6.4.4")
25797 (uri (string-append
25798 "https://www.parallelpython.com/downloads/pp/pp-"
25802 "1mzk4yabxj6r149fswhis18hd8dnag5sj8i4wb06450zq3pi8dh7"))))
25804 `(("unzip" ,unzip)))
25805 (build-system python-build-system)
25806 (arguments '(#:tests? #f)) ; No test suite.
25807 (home-page "https://www.parallelpython.com")
25808 (synopsis "Parallel and distributed programming for Python")
25809 (description "Parallel Python module (PP) provides an easy and efficient
25810 way to create parallel-enabled applications for SMP computers and clusters.
25811 PP module features cross-platform portability and dynamic load balancing.
25812 Thus applications written with PP will parallelize efficiently even on
25813 heterogeneous and multi-platform clusters (including clusters running other
25814 applications with variable CPU loads).")
25815 (license license:bsd-3)))
25817 (define-public python2-parallel
25818 (package-with-python2 python-parallel))
25820 (define-public python-djvulibre
25822 (name "python-djvulibre")
25827 (uri (pypi-uri "python-djvulibre" version))
25829 (base32 "089smpq29ll0z37lnq26r2f72d31i33xm9fw9pc6hlcsm6nbjbiv"))))
25830 (build-system python-build-system)
25832 `(("ghostscript" ,ghostscript)
25833 ("pkg-config" ,pkg-config)
25834 ("python-nose" ,python-nose)))
25836 `(("djvulibre" ,djvulibre)
25837 ("python-cython" ,python-cython)))
25840 (modify-phases %standard-phases
25841 (add-after 'unpack 'fix-tests
25843 ;; Unit tests try to load the 'dllpath.py' and fail, because it
25844 ;; doesn't make sense on GNU/Linux.
25845 (delete-file "djvu/dllpath.py")
25847 (synopsis "Python bindings for DjVuLibre")
25848 (description "This is a set of Python bindings for the DjVuLibre library.")
25849 (home-page "https://jwilk.net/software/python-djvulibre")
25850 (license license:gpl2)))
25852 (define-public python2-djvulibre
25853 (package-with-python2 python-djvulibre))
25855 (define-public python-versioneer
25857 (name "python-versioneer")
25862 (uri (pypi-uri "versioneer" version))
25865 "1bmg8y78am371rd9b4clf11b8g1h7xvq8q58z03jvgdwpsdx7zm4"))))
25866 (build-system python-build-system)
25868 "https://github.com/python-versioneer/python-versioneer")
25870 "Version-string management for VCS-controlled trees")
25872 "@code{versioneer} is a tool for managing a recorded version number in
25873 distutils-based python projects. The goal is to remove the tedious and
25874 error-prone \"update the embedded version string\" step from your release
25876 (license license:public-domain)))
25878 (define-public python2-gamera
25880 (name "python2-gamera")
25885 (uri (string-append "https://gamera.informatik.hsnr.de/download/"
25886 "gamera-" version ".tar.gz"))
25888 (base32 "1g4y1kxk1hmxfsiz682hbxvwryqilnb21ci509m559yp7hcliiyy"))
25889 (modules '((guix build utils)))
25892 ;; Remove bundled libraries.
25893 (for-each delete-file-recursively
25894 '("src/libpng-1.2.5"
25896 "src/zlib-1.2.8"))))))
25897 (build-system python-build-system)
25899 `(("libpng" ,libpng)
25900 ("libtiff" ,libtiff)
25901 ("python2-wxpython" ,python2-wxpython)
25904 `(#:python ,python-2))
25905 (synopsis "Framework for building document analysis applications")
25907 "Gamera is a toolkit for building document image recognition systems.")
25908 (home-page "https://gamera.informatik.hsnr.de/")
25909 (license license:gpl2+)))
25911 (define-public python-contextvars
25913 (name "python-contextvars")
25918 (uri (pypi-uri "contextvars" version))
25921 "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
25922 (build-system python-build-system)
25924 `(("python-immutables" ,python-immutables)))
25926 "https://github.com/MagicStack/contextvars")
25927 (synopsis "PEP 567 Backport")
25928 (description "This package implements a backport of Python 3.7
25929 @code{contextvars} module (see PEP 567) for Python 3.6.")
25930 (license license:asl2.0)))
25932 (define-public python-aiofiles
25934 (name "python-aiofiles")
25939 (uri (pypi-uri "aiofiles" version))
25942 "14m01kjxm2j7zyljjj6xlhlgygcsriymbx730gc5jp9xglaina70"))))
25943 (build-system python-build-system)
25944 (home-page "https://github.com/Tinche/aiofiles")
25945 (synopsis "File support for @code{asyncio}")
25946 (description "@code{python-aiofiles} is a library for handling local
25947 disk files in asyncio applications.")
25948 (license license:asl2.0)))
25950 (define-public python-pyre-extensions
25952 (name "python-pyre-extensions")
25957 (uri (pypi-uri "pyre-extensions" version))
25960 "0c5cbbqrfyjwakdh3kbwxis6mbrbwky1z1fqslgszgpcj4g43q30"))))
25961 (build-system python-build-system)
25963 `(("python-typing-extensions"
25964 ,python-typing-extensions)
25965 ("python-typing-inspect" ,python-typing-inspect)))
25966 (home-page "https://pyre-check.org")
25968 "Type system extensions for use with @code{python-pyre}")
25970 "@code{python-pyre-extensions} defines extensions to the standard
25971 @code{typing} module that are supported by the Pyre typechecker.")
25972 (license license:expat)))
25974 (define-public python-dataclasses
25976 (name "python-dataclasses")
25981 (uri (pypi-uri "dataclasses" version))
25984 "15sc12nrc7gxwb30vfa6frzdnpmbap9ibi1fr1yrbkra6izhcyc4"))))
25985 (build-system python-build-system)
25987 "https://github.com/ericvsmith/dataclasses")
25989 "Backport of the @code{dataclasses} module for Python 3.6")
25991 "This is an implementation of PEP 557, Data Classes. It is a
25992 backport of the @code{dataclasses} module for Python 3.6.")
25993 (license license:asl2.0)))
25995 (define-public python-pywatchman
25997 (name "python-pywatchman")
26002 (uri (pypi-uri "pywatchman" version))
26005 "1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h"))))
26006 (build-system python-build-system)
26008 `(#:tests? #f)) ;there are none
26010 "https://facebook.github.io/watchman/")
26011 (synopsis "Watchman client for python")
26012 (description "@code{python-pywatchman} is a library to connect and
26013 query Watchman to discover file changes.")
26014 (license license:bsd-3)))
26016 (define-public python-helpdev
26018 (name "python-helpdev")
26023 (uri (pypi-uri "helpdev" version))
26026 "0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
26027 (build-system python-build-system)
26030 (modify-phases %standard-phases
26032 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
26034 (add-installed-pythonpath inputs outputs)
26035 (invoke "pytest" "tests"))
26038 `(("python-importlib-metadata" ,python-importlib-metadata)))
26040 `(("python-pytest" ,python-pytest)))
26041 (home-page "https://gitlab.com/dpizetta/helpdev")
26043 "Extract information about the Python environment easily")
26045 "Helpdev is a library to easily extract information about the Python
26047 (license license:expat)))
26049 (define-public python-logutils
26051 (name "python-logutils")
26056 (uri (pypi-uri "logutils" version))
26059 "10lsi5wv5ysnvf9ya4ncbix6mmipnv5067sf2cglc2f2sljql1dw"))))
26060 (build-system python-build-system)
26061 (home-page "https://bitbucket.org/vinay.sajip/logutils/")
26062 (synopsis "Logging utilities")
26063 (description "This package provides a set of handlers for the Python
26064 standard library logging package. Some of these handlers are out-of-scope
26065 for the standard library, and so they are packaged here. Others are updated
26066 versions which have appeared in recent Python releases, but are usable with
26067 older versions of Python and so are packaged here.")
26068 (license license:bsd-3)))
26070 (define-public python-helper
26072 (name "python-helper")
26076 (uri (pypi-uri "helper" version))
26079 "1d2j64wgbggzv5rhvil10zndp2w78wa5np5w0psj122ws9qr9wsa"))))
26080 (build-system python-build-system)
26082 `(("python-mock" ,python-mock)))
26084 `(("python-logutils" ,python-logutils)
26085 ("python-pyyaml" ,python-pyyaml)))
26086 (home-page "https://github.com/gmr/helper")
26087 (synopsis "Library for writing configurable applications and daemons")
26089 "This package provides procedures for quickly writing configurable
26090 applications and daemons.")
26091 (license license:bsd-3)))
26093 (define-public python-qtsass
26095 (name "python-qtsass")
26099 ;; There are no tests in the PyPI tarball.
26101 (uri (git-reference
26102 (url "https://github.com/spyder-ide/qtsass/")
26103 (commit (string-append "v" version))))
26104 (file-name (git-file-name name version))
26106 (base32 "09s04aa14d8jqbh71clrb5y7vcmkxlp94mwmvzrkxahry3bk03cb"))))
26107 (build-system python-build-system)
26109 `(#:test-target "pytest"
26111 (modify-phases %standard-phases
26112 ;; Tests need to read and write files.
26113 (add-before 'check 'make-git-checkout-writable
26115 (for-each make-file-writable (find-files "."))
26118 `(("python-pytest" ,python-pytest)
26119 ("python-pytest-cov" ,python-pytest-cov)
26120 ("python-pytest-runner" ,python-pytest-runner)))
26122 `(("python-libsass" ,python-libsass)))
26123 (home-page "https://github.com/spyder-ide/qtsass")
26124 (synopsis "Compile SCSS files to valid Qt stylesheets")
26126 "Besides being used in web development, CSS is also the way to stylize
26127 Qt-based desktop applications. However, Qt's CSS has a few variations that
26128 prevent the direct use of SASS compiler.
26130 The purpose of this tool is to fill the gap between SASS and Qt-CSS by
26131 handling those variations.")
26132 (license license:expat)))
26134 (define-public python-qdarkstyle
26136 (name "python-qdarkstyle")
26141 (uri (pypi-uri "QDarkStyle" version))
26144 "0883vzg35fzpyl1aiijzpfcdfvpq5vi325w0m7xkx7nxplh02fym"))))
26145 (build-system python-build-system)
26147 `(;; Fails unable to detect valid Qt bindings even when
26148 ;; added as native-inputs.
26151 `(("python-helpdev" ,python-helpdev)
26152 ("python-qtpy" ,python-qtpy)))
26154 "https://github.com/ColinDuquesnoy/QDarkStyleSheet")
26156 "Complete dark stylesheet for Python and Qt applications")
26157 (description "QDarkStyle is the most complete dark stylesheet for Python and
26159 (license license:expat)))
26161 (define-public python-bitstring
26163 (name "python-bitstring")
26168 (uri (pypi-uri "bitstring" version))
26171 "0jl6192dwrlm5ybkbh7ywmyaymrc3cmz9y07nm7qdli9n9rfpwzx"))))
26172 (build-system python-build-system)
26175 (modify-phases %standard-phases
26177 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
26179 (add-installed-pythonpath inputs outputs)
26180 (with-directory-excursion "test"
26181 (invoke "pytest")))
26184 `(("python-pytest" ,python-pytest)))
26185 (home-page "https://github.com/scott-griffiths/bitstring")
26187 "Simple construction, analysis and modification of binary data")
26189 "Bitstring is a library for simple construction, analysis and modification
26191 (license license:expat)))
26193 (define-public python-confuse
26195 (name "python-confuse")
26200 (uri (pypi-uri "confuse" version))
26203 "0bh2kyj8wd7h9gg4nsvrbykl5ly0f70f0wi3fbm204b1f0fcmywj"))))
26204 (build-system python-build-system)
26206 `(("python-pyyaml" ,python-pyyaml)))
26207 (home-page "https://github.com/beetbox/confuse")
26208 (synopsis "Painless YAML configuration")
26209 (description "Confuse is a configuration library for Python that uses
26210 YAML. It takes care of defaults, overrides, type checking, command-line
26211 integration, human-readable errors, and standard OS-specific locations.")
26212 (license license:expat)))
26214 (define-public python-reflink
26216 (name "python-reflink")
26221 (uri (pypi-uri "reflink" version))
26224 "0fkf3sd958g9hvr3jwlhnhqqzrwxljrc3grsf3yknh94vf13a9f9"))))
26225 (build-system python-build-system)
26227 `(#:tests? #false)) ; almost all tests want to run mkfs.btrfs
26229 `(("python-cffi" ,python-cffi)))
26231 `(("python-pytest" ,python-pytest)
26232 ("python-pytest-runner" ,python-pytest-runner)))
26233 (home-page "https://gitlab.com/rubdos/pyreflink")
26234 (synopsis "Python wrapper around reflink system call")
26236 "Python reflink wraps around platform specific @code{reflink}
26238 (license license:expat)))
26240 (define-public python-pivy
26242 (name "python-pivy")
26247 (uri (git-reference
26248 (url "https://github.com/coin3d/pivy")
26250 (file-name (git-file-name name version))
26252 (base32 "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx"))))
26253 (build-system python-build-system)
26255 `(;; The test suite fails due to an import cycle between 'pivy' and '_coin'
26258 (modify-phases %standard-phases
26259 (add-after 'unpack 'patch-cmake-include-dirs
26261 ;; Patch buildsystem to respect Coin3D include directory
26262 (substitute* "CMakeLists.txt"
26263 (("\\$\\{SoQt_INCLUDE_DIRS}")
26264 "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}"))
26270 `(("python-wrapper" ,python-wrapper)
26271 ("qtbase" ,qtbase-5)
26276 ("coin3D" ,coin3D-4)))
26277 (home-page "https://github.com/coin3d/pivy")
26278 (synopsis "Python bindings to Coin3D")
26280 "Pivy provides python bindings for Coin, a 3D graphics library with an
26281 Application Programming Interface based on the Open Inventor 2.1 API.")
26282 (license license:isc)))
26284 (define-public python-crayons
26286 (name "python-crayons")
26291 (uri (pypi-uri "crayons" version))
26294 "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx"))))
26295 (build-system python-build-system)
26297 `(("python-colorama" ,python-colorama)))
26298 (home-page "https://github.com/MasterOdin/crayons")
26299 (synopsis "TextUI colors for Python")
26300 (description "This package gives you colored strings for the terminal.
26301 Crayons automatically wraps a given string in the foreground color and
26302 restores the original state after the string is printed.")
26303 (license license:expat)))
26305 (define-public python-sane
26307 (name "python-sane")
26312 (uri (pypi-uri name version))
26315 "1pi597z94n2mkd821ln52fq0g727n2jxfskf280ip3kf7jw8w294"))))
26316 (build-system python-build-system)
26318 `(("python-pytest" ,python-pytest)))
26320 `(("sane-backends" ,sane-backends)))
26321 (home-page "https://github.com/python-pillow/Sane")
26322 (synopsis "Python interface to the SANE scanner")
26323 (description "This package provides Python interface to the SANE scanner
26324 and frame grabber interface.")
26325 (license (license:non-copyleft
26326 ;; Yet another variant of the X/MIT license.
26327 "https://github.com/python-pillow/Sane/blob/master/COPYING"))))
26329 (define-public python-screenkey
26331 (name "python-screenkey")
26336 (uri (git-reference
26337 (url "https://gitlab.com/screenkey/screenkey")
26338 (commit (string-append "v" version))))
26339 (file-name (git-file-name name version))
26342 "1rfngmkh01g5192pi04r1fm7vsz6hg9k3qd313sn9rl9xkjgp11l"))))
26343 (build-system python-build-system)
26346 (modify-phases %standard-phases
26347 (add-after 'unpack 'fix-dlopen-paths
26348 (lambda* (#:key inputs outputs #:allow-other-keys)
26349 (let* ((x11 (assoc-ref inputs "libx11"))
26350 (xtst (assoc-ref inputs "libxtst")))
26351 (substitute* "Screenkey/xlib.py"
26353 (string-append x11 "/lib/libX11.so.6")))
26354 (substitute* "Screenkey/xlib.py"
26356 (string-append xtst "/lib/libXtst.so.6")))
26358 (add-after 'install 'wrap-screenkey
26359 (lambda* (#:key outputs #:allow-other-keys)
26361 (string-append (assoc-ref outputs "out") "/bin/screenkey")
26362 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
26363 `("GI_TYPELIB_PATH"
26364 ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
26367 `(("python-distutils-extra" ,python-distutils-extra)
26368 ("python-tokenize-rt" ,python-tokenize-rt)
26370 ("libxtst" ,libxtst)
26372 ("python-pygobject" ,python-pygobject)
26373 ("python-pycairo" ,python-pycairo)
26374 ("python-setuptools-git" ,python-setuptools-git)
26375 ("python-babel" ,python-babel)))
26376 (home-page "https://www.thregr.org/~wavexx/software/screenkey/")
26378 "Screencast tool to display pressed keys")
26380 "A screencast tool to display your keys inspired by Screenflick.")
26381 (license license:gpl3+)))
26383 (define-public python-jinja2-cli
26385 (name "python-jinja2-cli")
26390 (uri (pypi-uri "jinja2-cli" version))
26393 "0vikx7v6fbvww6kfrv0k5a24jyv3ak7nindg60906pdd1m9qvkcw"))))
26394 (build-system python-build-system)
26396 `(("python-jinja2" ,python-jinja2)))
26398 `(("python-flake8" ,python-flake8)
26399 ("python-jinja2" ,python-jinja2)
26400 ("python-pytest" ,python-pytest)))
26401 (home-page "https://github.com/mattrobenolt/jinja2-cli")
26402 (synopsis "Command-line interface to Jinja2")
26404 "This package provides a command-line interface (CLI) to the Jinja2
26406 (license license:bsd-3)))
26408 (define-public python-readability
26410 (name "python-readability")
26415 (uri (pypi-uri "readability" version))
26418 "1b8gq3g2zwvx0aivvdg56cc0bn7xw6f2v6psmxdx9aiipkw0s0zr"))))
26419 (build-system python-build-system)
26421 "https://github.com/andreasvc/readability/")
26423 "Measure the readability of a given text using surface
26426 "This package provides a Python library that is an implementation of
26427 traditional readability measures based on simple surface
26428 characteristics. These measures are basically linear regressions based on the
26429 number of words, syllables, and sentences.")
26430 (license license:asl2.0)))
26432 (define-public python-listparser
26434 (name "python-listparser")
26439 (uri (pypi-uri "listparser" version))
26442 "0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b"))))
26443 (build-system python-build-system)
26445 "https://github.com/kurtmckee/listparser")
26447 "Parse subscription lists in Python")
26449 "This package provides a Python library that can parse OPML, FOAF, and
26450 iGoogle subscription lists.")
26451 (license license:expat)))
26453 (define-public python-smartypants
26455 (name "python-smartypants")
26459 ;; There's no source tarball for 2.0.1 on PyPI.
26461 (uri (git-reference
26462 (url "https://github.com/leohemsted/smartypants.py")
26463 (commit (string-append "v" version))))
26464 (file-name (git-file-name name version))
26466 (base32 "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"))))
26467 (build-system python-build-system)
26470 (modify-phases %standard-phases
26472 ;; Its `setup.py test` doesn't report failure with exit status, so
26473 ;; we use `nose` instead.
26475 (invoke "nosetests" "-v" "--exclude=^load_tests$"))))))
26478 `(("python-docutils" ,python-docutils)
26479 ("python-nose" ,python-nose)
26480 ("python-pygments" ,python-pygments)))
26481 (home-page "https://github.com/leohemsted/smartypants.py")
26482 (synopsis "Translate punctuation characters into smart quotes")
26484 "@command{smartpants} can perform the following transformations:
26486 @item Straight quotes ( \" and ' ) into \"curly\" quote HTML entities
26487 @item Backticks-style quotes (``like this'') into \"curly\" quote HTML
26489 @item Dashes (-- and ---) into en- and em-dash entities
26490 @item Three consecutive dots (... or . . .) into an ellipsis entity
26492 (license license:bsd-3)))
26494 (define-public python-typogrify
26496 (name "python-typogrify")
26500 (uri (pypi-uri "typogrify" version))
26503 "0f6b2gnnxjbx1fbmkcscc6qjr4hi78kwm1wx4b766ha3va66dr4b"))))
26504 (build-system python-build-system)
26507 (modify-phases %standard-phases
26510 (invoke "nosetests" "-v"))))))
26512 `(("python-smartypants" ,python-smartypants)))
26515 `(("python-nose" ,python-nose)))
26516 (home-page "https://github.com/mintchaos/typogrify")
26517 (synopsis "Filters to transform text into typographically-improved HTML")
26519 "@code{typogrify} provides a set of custom filters that automatically
26520 apply various transformations to plain text in order to yield
26521 typographically-improved HTML. While often used in conjunction with Jinja and
26522 Django template systems, the filters can be used in any environment.")
26523 (license license:bsd-3)))
26525 (define-public python-ld
26532 (uri (pypi-uri "ld" version))
26535 "1k4ydp5rgkv4985v459kcl06i1igjm1ywvh2vkbi9ck1zyyri1z5"))))
26536 (build-system python-build-system)
26538 `(("python-six" ,python-six)))
26539 (home-page "https://github.com/nir0s/ld")
26540 (synopsis "OS platform information API")
26542 "The ld package provides information about the GNU/Linux distribution it
26543 runs on, such as a reliable machine-readable ID, or version information.")
26544 (license license:asl2.0)))
26546 (define-public python-quicktions
26548 (name "python-quicktions")
26553 (uri (pypi-uri "quicktions" version))
26556 "1px21a6x527i1bsr2p6bbf3jziqpvd1vjkvvzh13gsy4iip0yvzn"))
26557 (modules '((guix build utils)))
26560 ;; This file is generated by Cython.
26561 (delete-file "src/quicktions.c") #t))))
26562 (build-system python-build-system)
26565 (modify-phases %standard-phases
26566 (add-before 'build 'cythonize-sources
26568 (with-directory-excursion "src"
26569 (invoke "cython" "quicktions.pyx"))))
26571 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
26573 (add-installed-pythonpath inputs outputs)
26577 `(("python-cython" ,python-cython)
26578 ("python-pytest" ,python-pytest)))
26579 (home-page "https://github.com/scoder/quicktions")
26580 (synopsis "Fast fractions data type for rational numbers")
26582 "This package provides fast fractions data type for rational numbers. It
26583 is the cythonized version of @code{fractions.Fraction}.")
26584 (license license:psfl)))
26586 (define-public python-pathvalidate
26588 (name "python-pathvalidate")
26593 (uri (pypi-uri "pathvalidate" version))
26595 (base32 "0s14ycjgb44lxr2wg8lrq3b7kybmmrbf7yqz47xrqgn2gr6dk6rw"))))
26596 (build-system python-build-system)
26599 ;; Tests disabled because of circular dependencies.
26600 ;; pathvalidate tests depend on pytest-md-report, which
26601 ;; depends on pathvalidate.
26603 `(("python-allpairspy" ,python-allpairspy)
26604 ("python-click" ,python-click)
26605 ("python-faker" ,python-faker)
26606 ("python-pytest" ,python-pytest)))
26607 (home-page "https://github.com/thombashi/pathvalidate")
26608 (synopsis "Sanitize strings representing paths")
26610 "@code{pathvalidate} is a Python library to sanitize/validate strings
26611 representing paths or filenames.")
26612 (license license:expat)))
26614 (define-public python-escapism
26616 (name "python-escapism")
26621 (uri (pypi-uri "escapism" version))
26624 "1v74243wifcwhj5zkdiispxc9kb1xvnfzilg8bq308pjnkgnn9bk"))))
26625 (build-system python-build-system)
26626 (home-page "https://github.com/minrk/escapism")
26627 (synopsis "Simple, generic library for escaping strings")
26629 "This Python library provides a programming interface to, given a set of
26630 safe characters and an escape character, escape safe strings and unescape the
26632 (license license:expat)))
26634 (define-public python-recommonmark
26636 (name "python-recommonmark")
26641 (uri (pypi-uri "recommonmark" version))
26644 "0rvdd2ikdr0yg6cx6594fdzn53cmdc0g0i6qsbcdq8i2kxjdpd5x"))))
26645 (build-system python-build-system)
26647 `(("python-commonmark" ,python-commonmark)
26648 ("python-docutils" ,python-docutils)
26649 ("python-sphinx" ,python-sphinx)))
26651 '(#:phases (modify-phases %standard-phases
26652 (add-after 'unpack 'delete-test-sphinx
26653 (lambda* (#:key outputs #:allow-other-keys)
26654 (let* ((out (assoc-ref outputs "out")))
26655 (delete-file "tests/test_sphinx.py")))))))
26656 (home-page "https://github.com/readthedocs/recommonmark")
26657 (synopsis "Docutils-compatibility bridge to CommonMark")
26659 "This packages provides a docutils-compatibility bridge to CommonMark,
26660 enabling you to write CommonMark inside of Docutils & Sphinx projects.")
26661 (license license:expat)))
26663 (define-public python-pyhull
26665 (name "python-pyhull")
26666 (version "2015.2.1")
26670 (uri (pypi-uri "pyhull" version))
26673 "091sph52c4yk1jlm5w8xidxpzbia9r7s42bnb23q4m4b56ihmzyj"))))
26674 (build-system python-build-system)
26676 `(("python-numpy" ,python-numpy)))
26677 (home-page "https://github.com/materialsvirtuallab/pyhull")
26678 (synopsis "Python wrapper to Qhull")
26680 "This package provides a Python wrapper to @uref{http://www.qhull.org/,
26681 Qhull} for the computation of the convex hull, Delaunay triangulation, and
26683 (license license:expat)))
26685 (define-public python-opcodes
26686 ;; There are no tags in this repo, but 'opcodes/__init__.py' specifies a
26687 ;; version number, which is what we use here.
26688 (let ((commit "0f7c7d63f5e13ce5a89d9acc3934f1b6e247ec1f"))
26690 (name "python-opcodes")
26691 (version "0.3.14") ;from 'opcodes/__init__.py'
26692 (home-page "https://github.com/Maratyszcza/Opcodes")
26695 (uri (git-reference (url home-page) (commit commit)))
26696 (file-name (git-file-name name version))
26699 "1fvxkr83gfl9f0ikd2wl2lzazzya2qz1hk4yn2a0pq742brbwpys"))))
26700 (build-system python-build-system)
26701 (synopsis "Database of processor instructions and opcodes")
26703 "This project documents instruction sets in a format convenient for
26704 tools development. An instruction set is represented by three files:
26707 @item an XML file that describes instructions;
26708 @item an XSD file that describes the structure of the XML file;
26709 @item a Python module that reads the XML file and represents it as a set of
26713 It currently provides descriptions for most user-mode x86, x86_64, and k1om
26714 instructions up to AVX-512 and SHA (including 3dnow!+, XOP, FMA3, FMA4, TBM
26716 (license license:bsd-2))))
26718 (define-public python-peachpy
26719 ;; There is no tag in this repo.
26720 (let ((commit "906d578266dc7188bf61e4cdbc9f8ea7d69edec0")
26721 (version "0.2.0") ;from 'peachpy/__init__.py'
26724 (name "python-peachpy")
26725 (version (git-version version revision commit))
26726 (home-page "https://github.com/Maratyszcza/PeachPy")
26729 (uri (git-reference (url home-page) (commit commit)))
26730 (file-name (git-file-name name version))
26733 "1yy62k3cjr6556nbp651w6v4hzl7kz4y75wy2dfqgndgbnixskx2"))))
26734 (build-system python-build-system)
26736 '(#:phases (modify-phases %standard-phases
26738 (lambda* (#:key tests? #:allow-other-keys)
26740 (invoke "python" "setup.py" "nosetests")))))))
26742 `(("python-nose" ,python-nose)
26743 ("python-rednose" ,python-rednose)))
26745 `(("python-six" ,python-six)
26746 ("python-opcodes" ,python-opcodes)))
26747 (synopsis "Efficient assembly code generation in Python")
26749 "PeachPy is a Python framework for writing high-performance assembly kernels.
26750 PeachPy aims to simplify writing optimized assembly kernels while preserving
26751 all optimization opportunities of traditional assembly.
26753 PeachPy can generate ELF, MS-COFF, Mach-O object files, and assembly listings
26754 for the Go language tool chain; it adapts to different calling conventions and
26755 application binary interfaces (ABIs); it takes care of register allocation; it
26756 supports x86_64 instructions up to AVX-512 and SHA.")
26757 (license license:bsd-2))))
26759 (define-public python-pyan3
26761 (name "python-pyan3")
26765 ;; Source tarball on PyPI lacks tests.
26767 (uri (git-reference
26768 (url "https://github.com/Technologicat/pyan")
26769 (commit (string-append "v" version))))
26770 (file-name (git-file-name name version))
26773 "1367x25rcy2y8f0x9c2dbxl2qgdln3arr7ddyzybz2c28g6jrv5z"))
26774 (patches (search-patches "python-pyan3-fix-positional-arguments.patch"
26775 "python-pyan3-fix-absolute-path-bug.patch"))))
26776 (build-system python-build-system)
26779 (modify-phases %standard-phases
26781 (lambda* (#:key tests? #:allow-other-keys)
26783 ;; Extend PYTHONPATH so the built package will be found.
26784 (setenv "PYTHONPATH"
26785 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
26786 (invoke "pytest")))))))
26788 `(("python-pytest" ,python-pytest)
26789 ("python-pytest-cov" ,python-pytest-cov)
26790 ("python-wheel" ,python-wheel)))
26792 `(("python-jinja2" ,python-jinja2)))
26793 (home-page "https://github.com/Technologicat/pyan")
26794 (synopsis "Offline call graph generator for Python 3")
26795 (description "Pyan takes one or more Python source files, performs
26796 a (rather superficial) static analysis, and constructs a directed graph of the
26797 objects in the combined source, and how they define or use each other. The
26798 graph can be output for rendering by GraphViz or yEd.")
26799 (license license:gpl2)))
26801 (define-public date2name
26802 (let ((commit "6c8f37277e8ec82aa50f90b8921422be30c4e798")
26806 (version (git-version "0.0" revision commit))
26810 (uri (git-reference
26811 (url "https://github.com/novoid/date2name")
26813 (file-name (git-file-name name version))
26816 "1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
26817 (build-system python-build-system)
26819 `(#:tests? #f ; no tests
26821 (modify-phases %standard-phases
26824 (lambda* (#:key outputs #:allow-other-keys)
26825 (let* ((bindir (string-append (assoc-ref outputs "out") "/bin"))
26826 (binary (string-append bindir "/date2name")))
26828 (copy-file "date2name/__init__.py" binary)
26829 (chmod binary #o555)))))))
26830 (synopsis "Handling time-stamps and date-stamps in file names")
26831 (description "By default, date2name gets the modification time of matching
26832 files and directories and adds a datestamp in standard ISO 8601+ format
26833 YYYY-MM-DD at the beginning of the file or directory name.")
26834 (home-page "https://github.com/novoid/date2name")
26835 (license license:gpl3+))))
26837 (define-public python-braintree
26839 (name "python-braintree")
26844 (uri (pypi-uri "braintree" version))
26846 (base32 "19kli85q18p80nsn8fm4ql6axpr7bllfqg5chv2ywhr8zr8bssll"))))
26847 (build-system python-build-system)
26849 `(("python-requests" ,python-requests)))
26851 "https://developers.braintreepayments.com/python/sdk/server/overview")
26852 (synopsis "Braintree Python Library")
26853 (description "The Braintree Python SDK provides integration access to the
26854 Braintree Gateway. Braintree is a US-based payments service provider.")
26855 (license license:expat)))
26857 (define-public python-markuppy
26859 (name "python-markuppy")
26864 (uri (pypi-uri "MarkupPy" version))
26866 (base32 "0pqdmpxbr8iq22b4css2gz5z6s01ddpzyj25x27kgbs2lp0f5phs"))))
26867 (build-system python-build-system)
26868 (home-page "https://github.com/tylerbakke/MarkupPy")
26869 (synopsis "A pythonic HTML/XML generator")
26870 (description "This Python module attempts to make it easier to generate
26871 HTML/XML from a Python program in an intuitive, lightweight, customizable and
26873 (license license:expat)))
26875 (define-public python-tablib
26877 (name "python-tablib")
26882 (uri (pypi-uri "tablib" version))
26884 (base32 "03f1z6jq6rf67gwhbm9ma4rydm8h447a5nh5lcs5l8jg8l4aqg7q"))))
26885 (build-system python-build-system)
26888 (modify-phases %standard-phases
26890 (lambda* (#:key tests? #:allow-other-keys)
26892 (setenv "PYTHONPATH"
26893 (string-append (getcwd) "/build/lib:"
26894 (getenv "PYTHONPATH")))
26895 (invoke "pytest")))))))
26897 `(("python-pandas" ,python-pandas) ;; required for test-suite
26898 ("python-pytest" ,python-pytest)
26899 ("python-pytest-cov" ,python-pytest-cov)
26900 ("python-setuptools-scm" ,python-setuptools-scm)))
26902 `(("python-markuppy" ,python-markuppy)
26903 ("python-odfpy" ,python-odfpy)
26904 ("python-openpyxl" ,python-openpyxl)
26905 ("python-pyyaml" ,python-pyyaml)
26906 ("python-tabulate" ,python-tabulate)
26907 ("python-xlrd" ,python-xlrd)
26908 ("python-xlwt" ,python-xlwt)))
26909 (home-page "https://tablib.readthedocs.io")
26910 (synopsis "Format agnostic tabular data library")
26911 (description "@code{tablib} is a format-agnostic tabular dataset library,
26912 written in Python. Supported output formats are Excel (Sets + Books),
26913 JSON (Sets + Books), YAML (Sets + Books), HTML (Sets), Jira (Sets),
26914 TSV (Sets), ODS (Sets), CSV (Sets), and DBF (Sets).
26916 @code{tablib} also supports Pandas DataFrames (Sets). Anyhow, since pandas is
26917 quite huge, this Guix package doesn't depend on pandas. In case, just also
26918 install @code{python-pandas}.")
26919 (license license:expat)))
26921 (define-public python-csb43
26923 (name "python-csb43")
26928 (uri (pypi-uri "csb43" version))
26930 (base32 "0r0csl9npncnkfafg3rg6xr38d1qr0sxvq7wn7mg9bq41hvvh1si"))))
26931 (build-system python-build-system)
26933 `(("python-lxml" ,python-lxml)))
26935 `(("python-pycountry" ,python-pycountry)
26936 ("python-pyyaml" ,python-pyyaml)
26937 ("python-tablib" ,python-tablib)))
26938 (home-page "https://bitbucket.org/wmj/csb43")
26939 (synopsis "Tools for converting from the Spanish banks' format CSB norm
26941 (description "This package provides tools to convert files in the format
26942 used by multiple Spanish banks (standard 43 of the Spanish Banking Council
26943 [CSB43] / Spanish Banking Association [AEB43]) to other formats.
26945 Supported output formats are: OFX, HomeBank CSV, HTML, JSON, ODS (OpenDocument
26946 spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.")
26947 (license license:lgpl3)))
26949 (define-public python-febelfin-coda
26951 (name "python-febelfin-coda")
26956 (uri (pypi-uri "febelfin-coda" version))
26958 (base32 "10nf4hdwldqgdmh4g613vx55sbsw1x1yzpvs3crwlggbp75fjjfi"))))
26959 (build-system python-build-system)
26960 (home-page "https://coda.b2ck.com/")
26961 (synopsis "A module to parse Belgian CODA files")
26962 (description "This package provides a module to parse Coded statement of
26963 account (CODA) files as defined be the Belgian Febelfin bank standard.")
26964 (license license:bsd-3)))
26966 (define-public python-ofxparse
26968 (name "python-ofxparse")
26973 (uri (pypi-uri "ofxparse" version))
26975 (base32 "19y4sp5l9jqiqzzlbqdfiab42qx7d84n4xm4s7jfq397666vcyh5"))))
26976 (build-system python-build-system)
26979 (modify-phases %standard-phases
26981 (lambda* (#:key tests? #:allow-other-keys)
26983 (invoke "nosetests" "-v")))))))
26985 `(("python-nose" ,python-nose)))
26987 `(("python-beautifulsoup4" ,python-beautifulsoup4)
26988 ("python-lxml" ,python-lxml)
26989 ("python-six" ,python-six)))
26990 (home-page "http://sites.google.com/site/ofxparse")
26991 (synopsis "Tools for working with the OFX (Open Financial Exchange) file
26993 (description "@code{ofxparse} is a parser for Open Financial
26994 Exchange (.ofx) format files. OFX files are available from almost any online
26995 banking site, so they work well if you want to pull together your finances
26996 from multiple sources. Online trading accounts also often provide account
26997 statements in OFX files.")
26998 (license license:expat)))
27000 (define-public python-stripe
27002 (name "python-stripe")
27007 (uri (pypi-uri "stripe" version))
27009 (base32 "0258lzh4qikhinfggnlfh5aklcvg7lrvl8giqrh0yf0l61wvfrl9"))))
27010 (build-system python-build-system)
27012 '(#:tests? #f)) ;; tests require network
27014 `(("python-requests" ,python-requests)))
27015 (home-page "https://github.com/stripe/stripe-python")
27016 (synopsis "Python bindings for the Stripe financial services' API")
27017 (description "This package provides access to the Stripe financial
27018 services' API. It includes a pre-defined set of classes for API resources
27019 that initialize themselves dynamically from API responses which makes it
27020 compatible with a wide range of versions of the Stripe API.")
27021 (license license:expat)))
27023 (define-public python-platformdirs
27025 (name "python-platformdirs")
27030 (uri (pypi-uri "platformdirs" version))
27032 (base32 "07hq5qrp7pqj63iczg01wbf5ii6f0ncd0dq5mzkdhsslmg9slbb3"))))
27033 (build-system python-build-system)
27035 `(("python-appdirs" ,python-appdirs)
27036 ("python-pytest" ,python-pytest)
27037 ("python-pytest-cov" ,python-pytest-cov)
27038 ("python-pytest-mock" ,python-pytest-mock)))
27039 (home-page "https://github.com/platformdirs/platformdirs")
27040 (synopsis "Determine the appropriate platform-specific directories")
27041 (description "When writing applications, finding the right location to
27042 store user data and configuration varies per platform. Even for
27043 single-platform apps, there may by plenty of nuances in figuring out the right
27044 location. This small Python module determines the appropriate
27045 platform-specific directories, e.g. the ``user data dir''.")
27046 (license license:expat)))
27048 (define-public python-box
27050 (name "python-box")
27055 (uri (pypi-uri "python-box" version))
27058 "0jhrdif57khx2hsw1q6a9x42knwcvq8ijgqyq1jmll6y6ifyzm2f"))))
27059 (build-system python-build-system)
27061 `(("python-msgpack" ,python-msgpack)
27062 ("python-ruamel.yaml" ,python-ruamel.yaml)
27063 ("python-toml" ,python-toml)))
27064 (home-page "https://github.com/cdgriffith/Box")
27065 (synopsis "Advanced Python dictionaries with dot notation access")
27067 "This package provides the @code{python-box} Python module.
27068 It implements advanced Python dictionaries with dot notation access.")
27069 (license license:expat)))