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 Christopher Allan Webber <cwebber@dustycloud.org>
12 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
13 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
14 ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
17 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2015, 2017, 2020 Kyle Meyer <kyle@kyleam.com>
19 ;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
20 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
21 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
22 ;;; Copyright © 2016, 2018, 2019, 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 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
46 ;;; Copyright © 2017, 2019, 2021 Brendan Tildesley <mail@brendan.scot>
47 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
48 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
49 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
50 ;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
51 ;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
52 ;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
53 ;;; Copyright © 2018, 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
54 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
55 ;;; Copyright © 2018, 2019 Clément Lassieur <clement@lassieur.org>
56 ;;; Copyright © 2018, 2019, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
57 ;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
58 ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
59 ;;; Copyright © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
60 ;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
61 ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
62 ;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
63 ;;; Copyright © 2019, 2020, 2021 Guillaume Le Vaillant <glv@posteo.net>
64 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
65 ;;; Copyright © 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
66 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
67 ;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
68 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
69 ;;; Copyright © 2019, 2020 Tanguy Le Carrour <tanguy@bioneland.org>
70 ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
71 ;;; Copyright © 2020 Riku Viitanen <riku.viitanen@protonmail.com>
72 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
73 ;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
74 ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
75 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
76 ;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
77 ;;; Copyright © 2020, 2021 Alexandros Theodotou <alex@zrythm.org>
78 ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
79 ;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
80 ;;; Copyright © 2020 Matthew Kraai <kraai@ftbfs.org>
81 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
82 ;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
83 ;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
84 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
85 ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
86 ;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
87 ;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
88 ;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
89 ;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
90 ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
91 ;;; Copyright © 2020, 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
92 ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
93 ;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
94 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
95 ;;; Copyright © 2019 Kristian Trandem <kristian@devup.no>
96 ;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
97 ;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
98 ;;; Copyright © 2020 EuAndreh <eu@euandre.org>
99 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
100 ;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
101 ;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
102 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
104 ;;; This file is part of GNU Guix.
106 ;;; GNU Guix is free software; you can redistribute it and/or modify it
107 ;;; under the terms of the GNU General Public License as published by
108 ;;; the Free Software Foundation; either version 3 of the License, or (at
109 ;;; your option) any later version.
111 ;;; GNU Guix is distributed in the hope that it will be useful, but
112 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
113 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
114 ;;; GNU General Public License for more details.
116 ;;; You should have received a copy of the GNU General Public License
117 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
119 (define-module (gnu packages python-xyz)
120 #:use-module ((guix licenses) #:prefix license:)
121 #:use-module (gnu packages)
122 #:use-module (gnu packages algebra)
123 #:use-module (gnu packages adns)
124 #:use-module (gnu packages aidc)
125 #:use-module (gnu packages attr)
126 #:use-module (gnu packages backup)
127 #:use-module (gnu packages bash)
128 #:use-module (gnu packages check)
129 #:use-module (gnu packages cmake)
130 #:use-module (gnu packages compression)
131 #:use-module (gnu packages crypto)
132 #:use-module (gnu packages databases)
133 #:use-module (gnu packages dbm)
134 #:use-module (gnu packages djvu)
135 #:use-module (gnu packages docker)
136 #:use-module (gnu packages enchant)
137 #:use-module (gnu packages file)
138 #:use-module (gnu packages fontutils)
139 #:use-module (gnu packages gcc)
140 #:use-module (gnu packages geo)
141 #:use-module (gnu packages ghostscript)
142 #:use-module (gnu packages gl)
143 #:use-module (gnu packages glib)
144 #:use-module (gnu packages gnome)
145 #:use-module (gnu packages gnupg)
146 #:use-module (gnu packages graphviz)
147 #:use-module (gnu packages graphics)
148 #:use-module (gnu packages gsasl)
149 #:use-module (gnu packages gstreamer)
150 #:use-module (gnu packages gtk)
151 #:use-module (gnu packages haskell-xyz)
152 #:use-module (gnu packages icu4c)
153 #:use-module (gnu packages image)
154 #:use-module (gnu packages imagemagick)
155 #:use-module (gnu packages jupyter)
156 #:use-module (gnu packages kerberos)
157 #:use-module (gnu packages libevent)
158 #:use-module (gnu packages libffi)
159 #:use-module (gnu packages libidn)
160 #:use-module (gnu packages linux)
161 #:use-module (gnu packages llvm)
162 #:use-module (gnu packages man)
163 #:use-module (gnu packages markup)
164 #:use-module (gnu packages maths)
165 #:use-module (gnu packages monitoring)
166 #:use-module (gnu packages multiprecision)
167 #:use-module (gnu packages networking)
168 #:use-module (gnu packages ncurses)
169 #:use-module (gnu packages openstack)
170 #:use-module (gnu packages pcre)
171 #:use-module (gnu packages pdf)
172 #:use-module (gnu packages perl)
173 #:use-module (gnu packages photo)
174 #:use-module (gnu packages pkg-config)
175 #:use-module (gnu packages python)
176 #:use-module (gnu packages python-build)
177 #:use-module (gnu packages python-check)
178 #:use-module (gnu packages python-compression)
179 #:use-module (gnu packages python-crypto)
180 #:use-module (gnu packages python-science)
181 #:use-module (gnu packages python-web)
182 #:use-module (gnu packages qt)
183 #:use-module (gnu packages rdf)
184 #:use-module (gnu packages readline)
185 #:use-module (gnu packages regex)
186 #:use-module (gnu packages sdl)
187 #:use-module (gnu packages search)
188 #:use-module (gnu packages scanner)
189 #:use-module (gnu packages shells)
190 #:use-module (gnu packages sphinx)
191 #:use-module (gnu packages ssh)
192 #:use-module (gnu packages swig)
193 #:use-module (gnu packages terminals)
194 #:use-module (gnu packages tex)
195 #:use-module (gnu packages texinfo)
196 #:use-module (gnu packages textutils)
197 #:use-module (gnu packages time)
198 #:use-module (gnu packages tls)
199 #:use-module (gnu packages version-control)
200 #:use-module (gnu packages video)
201 #:use-module (gnu packages web)
202 #:use-module (gnu packages wxwidgets)
203 #:use-module (gnu packages base)
204 #:use-module (gnu packages xml)
205 #:use-module (gnu packages xorg)
206 #:use-module (gnu packages xdisorg)
207 #:use-module (gnu packages tcl)
208 #:use-module (gnu packages bdw-gc)
209 #:use-module (gnu packages serialization)
210 #:use-module (guix packages)
211 #:use-module (guix download)
212 #:use-module (guix git-download)
213 #:use-module (guix hg-download)
214 #:use-module (guix utils)
215 #:use-module (guix build-system gnu)
216 #:use-module (guix build-system cmake)
217 #:use-module (guix build-system python)
218 #:use-module (guix build-system trivial)
219 #:use-module (srfi srfi-1)
220 #:use-module (srfi srfi-26))
222 (define-public python-argopt
224 (name "python-argopt")
228 (uri (pypi-uri "argopt" version))
231 "0ybs7kkp0cpl8zn1lvf7481xhssg1bbhh5la2cjzdm5yibashyxa"))))
232 (build-system python-build-system)
234 `(("python-coverage" ,python-coverage)
235 ("python-nose" ,python-nose)
236 ("python-setuptools" ,python-setuptools) ; Won't build without this.
237 ("python-setuptools-scm" ,python-setuptools-scm)))
239 `(("python-toml" ,python-toml)
240 ("python-flake8" ,python-flake8)))
241 (home-page "https://github.com/casperdcl/argopt")
242 (synopsis "Generate a command-line interface from a docstring")
243 (description "This package provides tools to define a command line interface
244 from a docstring rather than the other way around.")
245 (license license:mpl2.0)))
247 (define-public python-cachetools
249 (name "python-cachetools")
253 (uri (pypi-uri "cachetools" version))
256 "1zqc098gk6y614lxwqd9z2gm8lldgvrpid133pnlm4m048gfvdb1"))))
257 (build-system python-build-system)
258 (home-page "https://github.com/tkem/cachetools/")
259 (synopsis "Extensible memoizing collections and decorators")
260 (description "This module provides various memoizing collections and
261 decorators, including variants of the Python standard library's
262 @code{lru_cache} function decorator.")
263 (license license:expat)))
265 (define-public python-colorful
267 (name "python-colorful")
273 (pypi-uri "colorful" version))
275 (base32 "1sh7g2cn1fyz2hzmzs933razdxi2bna9i1lxa790r9pdwba8m146"))))
276 (build-system python-build-system)
277 ;; FIXME: tests cannot be computed:
278 ;; "Can't perform this operation for unregistered loader type"
282 `(("python-coverage" ,python-coverage)
283 ("python-flake8" ,python-flake8)
284 ("python-pytest" ,python-pytest)))
286 `(("python-colorama" ,python-colorama)))
287 (home-page "http://github.com/timofurrer/colorful")
288 (synopsis "Terminal string styling")
289 (description "Colorful provides an array of text styles, that can be used
290 as functions or string constants to form colored terminal output.")
291 (license license:expat)))
293 (define-public python-yaspin
295 (name "python-yaspin")
301 (pypi-uri "yaspin" version))
303 (base32 "1iirah0kydrdp505qnjj6gi54avcr7z0hbkfx9vmh8myr30rpz6q"))))
304 (build-system python-build-system)
306 `(("python-pytest" ,python-pytest)))
307 (home-page "https://github.com/pavdmyt/yaspin")
308 (synopsis "Yet Another Terminal Spinner")
309 (description "Yaspin provides a terminal spinner to indicate the progress
310 during long operations.")
311 (license license:expat)))
313 (define-public python-lunr
321 (pypi-uri "lunr" version))
323 (base32 "106akalywfmnypzkdrhgz4n4740a8xayspybsw59kq06vz8i2qrc"))))
324 (build-system python-build-system)
326 `(("python-mock" ,python-mock)
327 ("python-pytest" ,python-pytest)))
329 `(("python-nltk" ,python-nltk-3.4)))
331 "https://github.com/yeraydiazdiaz/lunr.py")
332 (synopsis "Full-text search library")
333 (description "This package provides python library for full-text search.
334 It indexes documents and provides a search interface for retrieving documents
335 that best match text queries.")
336 (license license:expat)))
338 (define-public python-mkdocs
340 (name "python-mkdocs")
346 (pypi-uri "mkdocs" version))
348 (base32 "0fgv5zawpyyv0vd4j5y8m4h058lh9jkwfcm0xy4pg7dr09a1xdph"))))
349 (build-system python-build-system)
352 (modify-phases %standard-phases
353 ;; Requirements refer to a specific version of dependencies,
354 ;; which are too old. So we patch to refer to any later version.
355 (add-after 'unpack 'patch-requirements
357 (substitute* "setup.py"
360 `(("python-click" ,python-click)
361 ("python-jinja2" ,python-jinja2)
362 ("python-livereload" ,python-livereload)
363 ("python-lunr" ,python-lunr)
364 ("python-markdown" ,python-markdown)
365 ("python-pyyaml" ,python-pyyaml)
366 ("python-tornado" ,python-tornado)))
367 (home-page "https://www.mkdocs.org")
368 (synopsis "Project documentation with Markdown")
369 (description "MkDocs is a static site generator geared towards building
370 project documentation. Documentation source files are written in Markdown, and
371 configured with a single YAML configuration file.")
372 (license license:bsd-3)))
374 (define-public python-pymdown-extensions
376 (name "python-pymdown-extensions")
382 (pypi-uri "pymdown-extensions" version))
384 (base32 "0d8pdndrl1kj105lq7r6kw2dnhcvll6h2qs07w71mcpi7gx728v3"))))
385 (build-system python-build-system)
386 ;; FIXME: "AssertionError: False is not true"
390 `(("python-markdown" ,python-markdown)))
391 (home-page "https://github.com/facelessuser/pymdown-extensions")
392 (synopsis "Extension pack for Python Markdown")
393 (description "PyMdown Extensions is a collection of extensions for Python
394 Markdown. All extensions are found under the module namespace of pymdownx.")
395 (license license:expat)))
397 (define-public python-mkdocs-material
399 (name "python-mkdocs-material")
405 (pypi-uri "mkdocs-material" version))
407 (base32 "0ci9xiasq9nfn09v11m7p49vzazdbgslw7rpzjd6y3hsmn9vljz3"))))
408 (build-system python-build-system)
411 (modify-phases %standard-phases
412 ;; Requirement mkdocs-material-extensions
413 ;; in-turn requires mkdocs-material. This causes
414 ;; circular dependency, so we remove this requirement.
415 (add-after 'unpack 'patch-requirements
417 (substitute* "requirements.txt"
418 (("mkdocs-material-extensions.*$") "")))))))
420 `(("python-markdown" ,python-markdown)
421 ("python-mkdocs" ,python-mkdocs)
422 ("python-pygments" ,python-pygments)
423 ("python-pymdown-extensions"
424 ,python-pymdown-extensions)))
425 (home-page "https://squidfunk.github.io/mkdocs-material/")
426 (synopsis "Material Design theme for MkDocs")
427 (description "This package provides a theme plugin for the static site
429 (license license:expat)))
431 (define-public python-slixmpp
433 (name "python-slixmpp")
440 (url "https://lab.louiz.org/poezio/slixmpp.git")
442 (string-append "slix-" version))))
444 (git-file-name name version))
446 (base32 "15mqxcws14bjvh5jcfwl86zsvrymkdw3ya07vb44md7vfnsnclwx"))))
447 (build-system python-build-system)
450 (modify-phases %standard-phases
451 (add-after 'unpack 'patch
453 (substitute* "setup.py"
458 `(("cython" ,python-cython)
460 ("pkg-config" ,pkg-config)))
462 `(("python-aiodns" ,python-aiodns)
463 ("python-aiohttp" ,python-aiohttp)
464 ("python-pyasn1" ,python-pyasn1)
465 ("python-pyasn1-modules" ,python-pyasn1-modules)))
468 ("python" ,python))) ; We are building a Python extension.
469 (synopsis "XMPP library without threads")
470 (description "Slixmpp is a XMPP library for Python 3.7+. It is a fork of
471 SleekXMPP. Its goal is to only rewrite the core of the library (the low level
472 socket handling, the timers, the events dispatching) in order to remove all
474 (home-page "https://lab.louiz.org/poezio/slixmpp")
475 (license license:expat)))
477 (define-public python-tenacity
479 (name "python-tenacity")
483 (uri (pypi-uri "tenacity" version))
486 "1j36v9fcpmmd4985ix0cwnvcq71rkrn5cjiiv0id9vkl4kpxh0gv"))))
487 (build-system python-build-system)
489 `(("python-setuptools-scm" ,python-setuptools-scm)
490 ("python-sphinx" ,python-sphinx)
491 ("python-tornado" ,python-tornado)
492 ("python-pytest" ,python-pytest)))
494 `(("python-six" ,python-six)))
496 `(#:phases (modify-phases %standard-phases
501 (home-page "https://github.com/jd/tenacity")
502 (synopsis "Retrying library for python")
503 (description "Tenacity is a general-purpose python library to simplify the
504 task of adding retry behavior to just about anything.")
505 (license license:asl2.0)))
507 (define-public python-pytelegrambotapi
509 (name "python-pytelegrambotapi")
515 (url "https://github.com/eternnoir/pyTelegramBotAPI")
517 (file-name (git-file-name name version))
519 (base32 "0r7g5zs0fk3g2dxvbpl0pi730x7r2kalrhn30fs0pvc15a59fmxz"))))
520 (build-system python-build-system)
523 (modify-phases %standard-phases
525 (lambda* (#:key tests? #:allow-other-keys)
527 (with-directory-excursion "tests"
531 `(("python-requests" ,python-requests)))
533 `(("python-pytest" ,python-pytest)))
534 (home-page "https://github.com/eternnoir/pyTelegramBotAPI")
535 (synopsis "Python Telegram bot api")
536 (description "This package provides a simple, but extensible Python
537 implementation for the Telegram Bot API.")
538 (license license:gpl2)))
540 (define-public python-colorlog
542 (name "python-colorlog")
546 (uri (pypi-uri "colorlog" version))
549 "1lpk8zmfv8vz090h5d0hzb4n39wgasxdd3x3bpn3v1x1n9dfzaih"))))
550 (build-system python-build-system)
552 `(("python-pytest" ,python-pytest)))
554 `(#:phases (modify-phases %standard-phases
557 ;; Extend PYTHONPATH so the built package will be found.
559 (string-append (getcwd) "/build/lib:"
560 (getenv "PYTHONPATH")))
561 (invoke "pytest" "-p" "no:logging")
563 (home-page "https://github.com/borntyping/python-colorlog")
564 (synopsis "Log formatting with colors for python")
565 (description "The @code{colorlog.ColoredFormatter} is a formatter for use
566 with Python's logging module that outputs records using terminal colors.")
567 (license license:expat)))
569 (define-public python-pyprind
571 (name "python-pyprind")
575 (uri (pypi-uri "PyPrind" version))
578 "1gscnlvj37m421ch3akm3kddxqkrgbg5zrpwy2ky1j59w6vclzg3"))))
579 (build-system python-build-system)
581 `(("python-psutil" ,python-psutil)))
582 (home-page "https://github.com/rasbt/pyprind")
583 (synopsis "Python Progress Bar and Percent Indicator Utility")
584 (description "The PyPrind (Python Progress Indicator) module provides a
585 progress bar and a percentage indicator object that let you track the progress
586 of a loop structure or other iterative computation.")
587 (license license:bsd-3)))
589 (define-public python-gphoto2
591 (name "python-gphoto2")
595 (uri (pypi-uri "gphoto2" version))
598 "118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
599 (build-system python-build-system)
601 `(("pkg-config" ,pkg-config)))
603 `(("libgphoto2" ,libgphoto2)))
604 (home-page "https://github.com/jim-easterbrook/python-gphoto2")
605 (synopsis "Python interface to libgphoto2")
606 (description "@code{python-gphoto2} is a comprehensive Python interface
607 (or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
608 automatically generate the interface code.")
609 (license license:gpl3+)))
611 (define-public python-colour
613 (name "python-colour")
617 (uri (pypi-uri "colour" version))
620 "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
621 (build-system python-build-system)
623 `(("python-d2to1" ,python-d2to1)))
624 (home-page "https://github.com/vaab/colour")
625 (synopsis "Convert and manipulate various color representations")
626 (description "Pythonic way to manipulate color representations (HSL, RVB,
628 (license license:expat)))
630 (define-public python-d2to1
632 (name "python-d2to1")
633 (version "0.2.12.post1")
636 (uri (pypi-uri "d2to1" version))
639 "09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
640 (build-system python-build-system)
642 `(("python-nose" ,python-nose)))
643 (home-page "https://github.com/embray/d2to1")
644 (synopsis "Allows for distutils2-like setup.cfg files as package metadata
646 (description "The python package d2to1 (the d is for distutils) allows
647 using distutils2-like setup.cfg files for a package's metadata with a
648 distribute/setuptools setup.py script.")
649 (license license:bsd-2)))
651 (define-public python-rawkit
653 (name "python-rawkit")
657 (uri (pypi-uri "rawkit" version))
660 "0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
661 (build-system python-build-system)
663 `(("python-pytest" ,python-pytest)
664 ("python-mock" ,python-mock)))
666 `(("libraw" ,libraw)))
667 (home-page "https://rawkit.readthedocs.io")
668 (synopsis "Ctypes-based LibRaw binding for Python")
669 (description "The rawkit package provides two modules: rawkit and libraw.
670 The rawkit module provides a high-level Pythonic interface for developing raw
671 photos, while the libraw module provides a CTypes based interface for
672 interacting with the low-level LibRaw C APIs.")
673 (license license:expat)))
675 (define-public python-easygui
677 (name "python-easygui")
681 (uri (pypi-uri "easygui" version))
684 "1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
685 (build-system python-build-system)
687 `(("python-tkinter" ,python "tk")))
688 (home-page "https://github.com/robertlugg/easygui")
689 (synopsis "GUI programming module for Python")
690 (description "EasyGUI is a module for very simple, very easy GUI
691 programming in Python. EasyGUI is different from other GUI generators in that
692 EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
693 simple function calls.")
694 (license license:bsd-3)))
696 (define-public python-pymd4c
698 (name "python-pymd4c")
699 (version "0.4.6.0b1")
703 (uri (pypi-uri "pymd4c" version))
705 (base32 "07s3arn85ri92im6x3ipljdmrxmpik7irs06i6lm17j1x6j9841d"))))
706 (build-system python-build-system)
710 `(("python-flake8" ,python-flake8)
711 ("python-pkgconfig" ,python-pkgconfig)
712 ("pkg-config" ,pkg-config)))
713 (home-page "https://github.com/dominickpastore/pymd4c")
714 (synopsis "Python bindings for MD4C")
716 "PyMD4C provides Python bindings for MD4c, a C Markdown parser, compliant
718 (license license:expat)))
720 (define-public python-pymediainfo
722 (name "python-pymediainfo")
727 (uri (pypi-uri "pymediainfo" version))
730 "0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
731 (build-system python-build-system)
733 `(("python-setuptools-scm" ,python-setuptools-scm)
734 ("python-pytest" ,python-pytest)))
736 `(("libmediainfo" ,libmediainfo)))
739 (modify-phases %standard-phases
740 (add-after 'unpack 'patch-libmediainfo
742 (substitute* "pymediainfo/__init__.py"
743 (("libmediainfo.so.0")
744 (string-append (assoc-ref %build-inputs "libmediainfo")
745 "/lib/libmediainfo.so.0")))
749 ;; Extend PYTHONPATH so the built package will be found.
751 (string-append (getcwd) "/build/lib:"
752 (getenv "PYTHONPATH")))
753 ;; Skip the only failing test "test_parse_url"
754 (invoke "pytest" "-vv" "-k" "not test_parse_url")
757 "https://github.com/sbraz/pymediainfo")
759 "Python wrapper for the mediainfo library")
761 "Python wrapper for the mediainfo library to access the technical and tag
762 data for video and audio files.")
763 (license license:expat)))
765 (define-public python-psutil
767 (name "python-psutil")
772 (uri (pypi-uri "psutil" version))
774 (base32 "1immnj532bnnrh1qmk5q3lsw3san8qfk9kxy1cpmy0knmfcwp70c"))))
775 (build-system python-build-system)
777 ;; FIXME: some tests do not return and time out. Some tests fail because
778 ;; some processes survive kill().
780 (home-page "https://github.com/giampaolo/psutil")
781 (synopsis "Library for retrieving information on running processes")
783 "@code{psutil} (Python system and process utilities) is a library for
784 retrieving information on running processes and system utilization (CPU,
785 memory, disks, network) in Python. It is useful mainly for system monitoring,
786 profiling and limiting process resources and management of running processes.
787 It implements many functionalities offered by command line tools such as: ps,
788 top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
789 iotop, uptime, pidof, tty, taskset, pmap.")
790 (properties `((python2-variant . ,(delay python2-psutil))))
791 (license license:bsd-3)))
793 (define-public python2-psutil
794 (let ((base (package-with-python2 (strip-python2-variant python-psutil))))
795 (package/inherit base
797 `(("python2-enum34" ,python2-enum34) ;optional
798 ,@(package-propagated-inputs base))))))
800 (define-public python-shapely
802 (name "python-shapely")
807 (uri (pypi-uri "Shapely" version))
810 "0adiz4jwmwxk7k1awqifb1a9bj5x4nx4gglb5dz9liam21674h8n"))
811 (modules '((guix build utils)))
814 (delete-file "shapely/speedups/_speedups.c")
815 (delete-file "shapely/vectorized/_vectorized.c")
817 (build-system python-build-system)
819 `(("python-cython" ,python-cython)
820 ("python-matplotlib" ,python-matplotlib)
821 ("python-pytest" ,python-pytest)
822 ("python-pytest-cov" ,python-pytest-cov)))
826 `(("python-numpy" ,python-numpy)))
829 (modify-phases %standard-phases
830 (add-after 'unpack 'patch-geos-path
831 (lambda* (#:key inputs #:allow-other-keys)
832 (let ((geos (assoc-ref inputs "geos"))
833 (glibc (assoc-ref inputs ,(if (%current-target-system)
834 "cross-libc" "libc"))))
835 (substitute* '("shapely/geos.py" "shapely/_buildcfg.py")
836 (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
837 (string-append "_lgeos = load_dll('geos_c', fallbacks=['"
838 geos "/lib/libgeos_c.so'])"))
839 (("free = load_dll\\('c'\\)\\.free")
840 (string-append "free = load_dll('c', fallbacks=['"
841 glibc "/lib/libc.so.6']).free"))
842 (("free = load_dll\\('c', fallbacks=.*\\)\\.free")
843 (string-append "free = load_dll('c', fallbacks=['"
844 glibc "/lib/libc.so.6']).free"))))
846 (home-page "https://github.com/Toblerity/Shapely")
847 (synopsis "Library for the manipulation and analysis of geometric objects")
848 (description "Shapely is a Python package for manipulation and analysis of
849 planar geometric objects. It is based on the @code{GEOS} library.")
850 (license license:bsd-3)))
852 (define-public python-shortuuid
854 (name "python-shortuuid")
859 (uri (pypi-uri "shortuuid" version))
862 "1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh"))))
863 (build-system python-build-system)
865 `(("python-pep8" ,python-pep8)))
866 (home-page "https://github.com/skorokithakis/shortuuid")
867 (synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
869 "@code{shortuuid} is a Python library for generating concise, unambiguous
870 and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
871 module and then similar looking characters are removed.")
872 (license license:bsd-3)))
874 (define-public python-logwrap
876 (name "python-logwrap")
877 (version "8.2.0.post0")
881 (uri (pypi-uri "logwrap" version))
884 "1dv7gny3rfci5cal2ipr6d0pcz3yhka7af96dfsd3ir1mxy8p1j9"))))
885 (build-system python-build-system)
887 `(#:tests? #f ; Tests not included in pypi release.
889 (modify-phases %standard-phases
891 (lambda* (#:key tests? #:allow-other-keys)
896 `(("python-cython" ,python-cython)
897 ("python-pytest" ,python-pytest)
898 ("python-setuptools-scm" ,python-setuptools-scm)
899 ("python-toml" ,python-toml)
900 ("python-wheel" ,python-wheel)))
901 (home-page "https://github.com/python-useful-helpers/logwrap")
902 (synopsis "Decorator for logging function arguments")
903 (description "This package provides a decorator to log function arguments
904 and function call return values in a human-readable way.")
905 (license license:asl2.0)))
907 (define-public python-clyent
909 (name "python-clyent")
914 (uri (pypi-uri "clyent" version))
917 "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
918 (build-system python-build-system)
920 `(("python-mock" ,python-mock)))
921 (home-page "https://github.com/Anaconda-Platform/clyent")
922 (synopsis "Command line client library")
923 (description "Clyent is a Python command line utility library. It is used
924 by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
925 (license license:bsd-3)))
927 (define-public python2-clyent
928 (package-with-python2 python-clyent))
930 (define-public python-babel
932 (name "python-babel")
937 (uri (pypi-uri "Babel" version))
940 "018yg7g2pa6vjixx1nx41cfispgfi0azzp0a1chlycbj8jsil0ys"))))
941 (build-system python-build-system)
943 `(("python-freezegun" ,python-freezegun)
944 ("python-pytest" ,python-pytest)))
946 `(("python-pytz" ,python-pytz)))
948 `(#:phases (modify-phases %standard-phases
951 (invoke "pytest" "-vv"))))))
952 (home-page "http://babel.pocoo.org/")
954 "Tools for internationalizing Python applications")
956 "Babel is composed of two major parts:
957 - tools to build and work with gettext message catalogs
958 - a Python interface to the CLDR (Common Locale Data Repository), providing
959 access to various locale display names, localized number and date formatting,
961 (license license:bsd-3)))
963 (define-public python2-babel
964 (package-with-python2 python-babel))
966 (define-public python2-backport-ssl-match-hostname
968 (name "python2-backport-ssl-match-hostname")
973 (uri (pypi-uri "backports.ssl_match_hostname" version))
976 "1wndipik52cyqy0677zdgp90i435pmvwd89cz98lm7ri0y3xjajh"))))
977 (build-system python-build-system)
980 #:tests? #f)) ; no test target
981 (home-page "https://bitbucket.org/brandon/backports.ssl_match_hostname")
982 (synopsis "Backport of ssl.match_hostname() function from Python 3.5")
984 "This backport brings the ssl.match_hostname() function to users of
985 earlier versions of Python. The function checks the hostname in the
986 certificate returned by the server to which a connection has been established,
987 and verifies that it matches the intended target hostname.")
988 (license license:psfl)))
990 (define-public python-bidict
992 (name "python-bidict")
997 (uri (pypi-uri "bidict" version))
1000 "02dy0b1k7qlhn7ajyzkrvxhyhjj0hzcq6ws3zjml9hkdz5znz92g"))))
1001 (build-system python-build-system)
1003 `(("python-coverage" ,python-coverage)
1004 ("python-hypothesis" ,python-hypothesis-5.23) ; use_true_random=... from >=5.19.0
1005 ("python-pre-commit" ,python-pre-commit)
1006 ("python-py" ,python-py)
1007 ("python-pytest" ,python-pytest)
1008 ("python-pytest-benchmark" ,python-pytest-benchmark)
1009 ("python-pytest-cov" ,python-pytest-cov)
1010 ("python-setuptools-scm" ,python-setuptools-scm)
1011 ("python-sortedcollections" ,python-sortedcollections)
1012 ("python-sortedcontainers" ,python-sortedcontainers)
1013 ("python-sphinx" ,python-sphinx)
1014 ("python-sphinx-autodoc-typehints" ,python-sphinx-autodoc-typehints)
1015 ("python-tox" ,python-tox)))
1017 `(#:phases (modify-phases %standard-phases
1018 (add-after 'unpack 'relax-reqs
1020 (substitute* "setup.py"
1021 (("sortedcollections < 2") "sortedcollections"))
1024 (lambda _ (invoke "./run_tests.py"))))))
1025 (home-page "https://bidict.readthedocs.io")
1026 (synopsis "Bidirectional mapping library")
1027 (description "The @code{bidict} library provides several data structures
1028 for working with bidirectional mappings in Python.")
1029 (license license:mpl2.0)))
1031 (define-public python-bitarray
1033 (name "python-bitarray")
1037 (uri (pypi-uri "bitarray" version))
1040 "177fj6wbw5jln54wpp6plcqy2329wjkwqwvgz7022rrg3xfrq49g"))))
1041 (build-system python-build-system)
1042 (home-page "https://github.com/ilanschnell/bitarray")
1043 (synopsis "Efficient arrays of booleans")
1044 (description "This package provides an object type which efficiently
1045 represents an array of booleans. Bitarrays are sequence types and behave very
1046 much like usual lists. Eight bits are represented by one byte in a contiguous
1047 block of memory. The user can select between two representations:
1048 little-endian and big-endian. All of the functionality is implemented in C.
1049 Methods for accessing the machine representation are provided. This can be
1050 useful when bit level access to binary files is required, such as portable
1051 bitmap image files. Also, when dealing with compressed data which uses
1052 variable bit length encoding, you may find this module useful.")
1053 (license license:psfl)))
1055 (define-public python-boolean.py
1057 (name "python-boolean.py")
1061 ;; There's no source tarball on PyPI.
1064 (url "https://github.com/bastikr/boolean.py")
1065 (commit (string-append "v" version))))
1066 (file-name (git-file-name name version))
1068 (base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
1069 (build-system python-build-system)
1070 (home-page "https://github.com/bastikr/boolean.py")
1071 (synopsis "Boolean algebra in one Python module")
1073 "This is a small Python library that implements boolean algebra.
1074 It defines two base elements, @code{TRUE} and @code{FALSE}, and a
1075 @code{Symbol} class that can take on one of these two values. Calculations
1076 are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
1077 compositions like @code{XOR} and @code{NAND} are emulated on top of them.
1078 Expressions are constructed from parsed strings or directly in Python.")
1079 (license license:bsd-2)))
1081 (define-public python-hdf4
1083 (name "python-hdf4")
1088 (uri (pypi-uri name version))
1091 "1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
1092 (build-system python-build-system)
1093 (native-inputs `(("nose" ,python-nose)))
1094 (propagated-inputs `(("numpy" ,python-numpy)))
1097 ("libjpeg" ,libjpeg-turbo)
1101 (modify-phases %standard-phases
1104 ;; The 'runexamples' script sets PYTHONPATH to CWD, then goes
1105 ;; on to import numpy. Somehow this works on their CI system.
1106 ;; Let's just manage PYTHONPATH here instead.
1107 (substitute* "runexamples.sh"
1108 (("export PYTHONPATH=.*") ""))
1109 (setenv "PYTHONPATH"
1110 (string-append (getcwd) ":"
1111 (getenv "PYTHONPATH")))
1112 (invoke "./runexamples.sh")
1113 (invoke "nosetests" "-v"))))))
1114 (home-page "https://github.com/fhs/python-hdf4")
1115 (synopsis "Python interface to the NCSA HDF4 library")
1117 "Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
1118 which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
1119 NetCDF files can also be read and modified. Python-HDF4 is a fork of
1120 @url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
1121 (license license:expat)))
1123 (define-public python-h5py
1125 (name "python-h5py")
1130 (uri (pypi-uri "h5py" version))
1133 "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4"))))
1134 (build-system python-build-system)
1136 `(#:tests? #f ; no test target
1138 (modify-phases %standard-phases
1139 (add-after 'unpack 'fix-hdf5-paths
1140 (lambda* (#:key inputs #:allow-other-keys)
1141 (let ((prefix (assoc-ref inputs "hdf5")))
1142 (substitute* "setup_build.py"
1143 (("\\['/opt/local/lib', '/usr/local/lib'\\]")
1144 (string-append "['" prefix "/lib" "']"))
1145 (("'/opt/local/include', '/usr/local/include'")
1146 (string-append "'" prefix "/include" "'")))
1147 (substitute* "setup_configure.py"
1148 (("\\['/usr/local/lib', '/opt/local/lib'\\]")
1149 (string-append "['" prefix "/lib" "']")))
1152 `(("python-six" ,python-six)
1153 ("python-numpy" ,python-numpy)))
1155 `(("hdf5" ,hdf5-1.10)))
1157 `(("python-cython" ,python-cython)
1158 ("python-pkgconfig" ,python-pkgconfig)
1159 ("pkg-config" ,pkg-config)))
1160 (home-page "https://www.h5py.org/")
1161 (synopsis "Read and write HDF5 files from Python")
1163 "The h5py package provides both a high- and low-level interface to the
1164 HDF5 library from Python. The low-level interface is intended to be a
1165 complete wrapping of the HDF5 API, while the high-level component supports
1166 access to HDF5 files, datasets and groups using established Python and NumPy
1168 (license license:bsd-3)))
1170 (define-public python2-h5py
1171 (package-with-python2 python-h5py))
1173 (define-public python-pyls-black
1175 (name "python-pyls-black")
1179 ;; There are no tests in the PyPI tarball.
1182 (url "https://github.com/rupert/pyls-black/")
1183 (commit (string-append "v" version))))
1184 (file-name (git-file-name name version))
1186 (base32 "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj"))))
1187 (build-system python-build-system)
1189 `(#:test-target "pytest"))
1191 `(("python-black" ,python-black)
1192 ("python-language-server"
1193 ,python-language-server)
1194 ("python-toml" ,python-toml)))
1196 `(("python-flake8" ,python-flake8)
1197 ("python-isort" ,python-isort)
1198 ("python-mypy" ,python-mypy)
1199 ("python-pytest" ,python-pytest)
1200 ("python-pytest-runner" ,python-pytest-runner)))
1201 (home-page "https://github.com/rupert/pyls-black")
1202 (synopsis "Black plugin for the Python Language Server")
1203 (description "Black plugin for the Python Language Server.")
1204 (license license:expat)))
1206 (define-public python-sh
1213 (uri (pypi-uri "sh" version))
1216 "1z2hx357xp3v4cv44xmqp7lli3frndqpyfmpbxf7n76h7s1zaaxm"))))
1217 (build-system python-build-system)
1220 (modify-phases %standard-phases
1223 ;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
1224 (setenv "HOME" "/tmp")
1225 (invoke "python" "sh.py" "test"))))))
1227 `(("python-coverage" ,python-coverage)))
1228 (home-page "https://github.com/amoffat/sh")
1229 (synopsis "Python subprocess replacement")
1230 (description "This package provides a replacement for Python's
1231 @code{subprocess} feature.")
1232 (license license:expat)))
1234 (define-public python-cftime
1236 (name "python-cftime")
1241 (uri (pypi-uri "cftime" version))
1243 (base32 "0w0gi6jnch38hiygl62j4xkcirv4y3dcwrvxl9p7bsk6j27lzihs"))))
1244 (build-system python-build-system)
1246 `(("python-numpy" ,python-numpy)))
1248 `(("python-coveralls" ,python-coveralls)
1249 ("python-cython" ,python-cython)
1250 ("python-pytest-cov" ,python-pytest-cov)))
1251 (home-page "https://github.com/Unidata/cftime")
1252 (synopsis "Library for time handling")
1254 "This package provides time-handling functionality that used to be part
1255 of the netcdf4 package before.")
1256 ;; This package claims to include code under the GPLv3 but is released
1258 (license (list license:isc license:gpl3+))))
1260 (define-public python-netcdf4
1262 (name "python-netcdf4")
1267 (uri (pypi-uri "netCDF4" version))
1270 "1gn35mb2yc263pci720aik8ymz41lrvxlrn3z83vyjwghiashg1a"))))
1271 (build-system python-build-system)
1274 (modify-phases %standard-phases
1275 (add-after 'unpack 'configure-locations
1276 (lambda* (#:key inputs #:allow-other-keys)
1277 (setenv "HDF5_DIR" (assoc-ref inputs "hdf5"))
1280 `(("python-cython" ,python-cython)))
1282 `(("python-numpy" ,python-numpy)
1283 ("python-cftime" ,python-cftime)))
1285 `(("netcdf" ,netcdf)
1288 (home-page "https://github.com/Unidata/netcdf4-python")
1289 (synopsis "Python/numpy interface to the netCDF library")
1290 (description "Netcdf4-python is a Python interface to the netCDF C
1291 library. netCDF version 4 has many features not found in earlier
1292 versions of the library and is implemented on top of HDF5. This module
1293 can read and write files in both the new netCDF 4 and the old netCDF 3
1294 format, and can create files that are readable by HDF5 clients. The
1295 API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
1296 to users of that module.")
1297 ;; The software is mainly ISC, but includes some files covered
1298 ;; by the Expat license.
1299 (license (list license:isc license:expat))))
1301 (define-public python-license-expression
1303 (name "python-license-expression")
1308 (uri (pypi-uri "license-expression" version))
1310 (base32 "1g0sgphss8hbi1rpl4avy1nmbixmy9v194xdbvkjgl90vzgy2q3r"))))
1311 (build-system python-build-system)
1313 `(("python-boolean.py" ,python-boolean.py)))
1314 (home-page "https://github.com/nexB/license-expression")
1315 (synopsis "Apply boolean logic to license expressions")
1317 "This Python module defines a tiny language to evaluate and compare
1318 license expressions using boolean logic. Logical combinations of licenses can
1319 be tested for equality, containment, and equivalence. They can be normalised
1320 and simplified. It supports SPDX license expressions as well as other naming
1321 conventions and aliases in the same expression.")
1322 (license license:gpl2+)))
1324 (define-public python-lockfile
1326 (name "python-lockfile")
1331 (uri (pypi-uri "lockfile" version))
1334 "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
1335 (build-system python-build-system)
1336 (arguments '(#:test-target "check"))
1338 `(("python-pbr" ,python-pbr)))
1339 (home-page "https://launchpad.net/pylockfile")
1340 (synopsis "Platform-independent file locking module")
1342 "The lockfile package exports a LockFile class which provides a simple
1343 API for locking files.")
1344 (license license:expat)))
1346 (define-public python-fb-re2
1348 (name "python-fb-re2")
1354 (url "https://github.com/facebook/pyre2")
1355 (commit (string-append "v" version))))
1356 (file-name (git-file-name name version))
1359 "0snprxdnh3m45r3b0az4v0l28h90ycmfbybzla6xg1qviwv9w1ak"))))
1360 (build-system python-build-system)
1363 (home-page "https://github.com/facebook/pyre2")
1364 (synopsis "Python wrapper for RE2")
1365 (description "This package provides a Python extension that wraps Google's
1366 RE2 regular expression library. It implements many of the features of
1367 Python's built-in @code{re} module with compatible interfaces.")
1368 (license license:bsd-3)))
1370 (define-public python-filelock
1372 (name "python-filelock")
1377 (uri (pypi-uri "filelock" version))
1380 "0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
1381 (build-system python-build-system)
1383 "https://github.com/benediktschmitt/py-filelock")
1384 (synopsis "Platform independent file lock")
1385 (description "@code{filelock} contains a single module implementing
1386 a platform independent file lock in Python, which provides a simple way of
1387 inter-process communication.")
1388 (license license:unlicense)))
1390 (define-public python-semantic-version
1392 (name "python-semantic-version")
1397 (uri (pypi-uri "semantic_version" version))
1400 "0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
1401 (build-system python-build-system)
1402 (home-page "https://github.com/rbarrois/python-semanticversion")
1403 (synopsis "Semantic versioning module for Python")
1405 "The @code{semantic_version} class is a small library for handling
1406 @uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
1408 It can compare versions, generate a new version that represents a bump in one of
1409 the version levels, and check whether any given string is a proper semantic
1410 version identifier.")
1411 (license license:bsd-3)))
1413 (define-public python2-semantic-version
1414 (package-with-python2 python-semantic-version))
1416 (define-public python-serpent
1418 (name "python-serpent")
1423 (uri (pypi-uri "serpent" version))
1425 (base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk"))))
1426 (build-system python-build-system)
1428 `(("python-attrs" ,python-attrs)
1429 ("python-pytz" ,python-pytz)))
1430 (home-page "https://github.com/irmen/Serpent")
1431 (synopsis "Serializer for literal Python expressions")
1433 "Serpent provides @code{ast.literal_eval()}-compatible object tree
1434 serialization. It serializes an object tree into bytes (an utf-8 encoded
1435 string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
1436 to rebuild the original object tree.
1438 Because only safe literals are encoded, it is safe to send serpent data to
1439 other machines, such as over the network.")
1440 (properties `((python2-variant . ,(delay python2-serpent))))
1441 (license license:expat)))
1443 (define-public python2-serpent
1444 (let ((base (package-with-python2 (strip-python2-variant python-serpent))))
1445 (package/inherit base
1447 `(("python-enum34" ,python2-enum34)
1448 ,@(package-propagated-inputs base))))))
1450 (define-public python-setuptools
1452 (name "python-setuptools")
1457 (uri (pypi-uri "setuptools" version))
1460 "15ibjdjhkwgj6qbmpsxikkqdfsb1550z46fly7dm15ah4bk1wfpv"))
1461 (modules '((guix build utils)))
1464 ;; Remove included binaries which are used to build self-extracting
1465 ;; installers for Windows.
1466 ;; TODO: Find some way to build them ourself so we can include them.
1467 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1469 (build-system python-build-system)
1470 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1471 ;; One could bootstrap with an internal untested setuptools.
1474 (home-page "https://pypi.org/project/setuptools/")
1476 "Library designed to facilitate packaging Python projects")
1478 "Setuptools is a fully-featured, stable library designed to facilitate
1479 packaging Python projects, where packaging includes:
1480 Python package and module definitions,
1481 distribution package metadata,
1483 project installation,
1484 platform-specific details,
1486 ;; TODO: setuptools now bundles the following libraries:
1487 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1488 (license (list license:psfl ; setuptools itself
1489 license:expat ; six, appdirs, pyparsing
1490 license:asl2.0 ; packaging is dual ASL2/BSD-2
1492 (properties `((python2-variant . ,(delay python2-setuptools))))))
1494 ;; Newer versions of setuptools no longer support Python 2.
1495 (define-public python2-setuptools
1497 (name "python2-setuptools")
1502 (uri (pypi-uri "setuptools" version ".zip"))
1505 "04sns22y2hhsrwfy1mha2lgslvpjsjsz8xws7h2rh5a7ylkd28m2"))
1506 (modules '((guix build utils)))
1509 ;; Remove included binaries which are used to build self-extracting
1510 ;; installers for Windows.
1511 ;; TODO: Find some way to build them ourself so we can include them.
1512 (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
1514 (build-system python-build-system)
1515 ;; FIXME: Tests require pytest, which itself relies on setuptools.
1516 ;; One could bootstrap with an internal untested setuptools.
1520 `(("unzip" ,unzip)))
1521 (home-page "https://pypi.org/project/setuptools/")
1523 "Library designed to facilitate packaging Python projects")
1525 "Setuptools is a fully-featured, stable library designed to facilitate
1526 packaging Python projects, where packaging includes:
1527 Python package and module definitions,
1528 distribution package metadata,
1530 project installation,
1531 platform-specific details,
1533 ;; TODO: setuptools now bundles the following libraries:
1534 ;; packaging, pyparsing, six and appdirs. How to unbundle?
1535 (license (list license:psfl ; setuptools itself
1536 license:expat ; six, appdirs, pyparsing
1537 license:asl2.0 ; packaging is dual ASL2/BSD-2
1540 (define-public python-setuptools-declarative-requirements
1542 (name "python-setuptools-declarative-requirements")
1548 "setuptools-declarative-requirements"
1552 "1l8zmcnp9h8sp8hsw7b81djaa1a9yig0y7i4phh5pihqz1gdn7yi"))))
1553 (build-system python-build-system)
1555 `(("python-pytest" ,python-pytest)
1556 ("python-setuptools-scm" ,python-setuptools-scm)))
1558 `(("python-toml" ,python-toml)
1559 ("python-wheel" ,python-wheel)))
1561 "https://github.com/s0undt3ch/setuptools-declarative-requirements")
1562 (synopsis "File support for setuptools declarative setup.cfg")
1564 "This package provides file support for setuptools declarative
1566 (license license:asl2.0)))
1568 ;; The setuptools provided by Python 3.7.4 is too new for Tensorflow.
1569 (define-public python-setuptools-for-tensorflow
1572 (inherit python-setuptools)
1575 (inherit (package-source python-setuptools))
1576 (uri (pypi-uri "setuptools" version ".zip"))
1579 "1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65")))))))
1581 (define-public python-uniseg
1583 (name "python-uniseg")
1588 (uri (pypi-uri "uniseg" version ".zip"))
1591 "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
1592 (build-system python-build-system)
1594 '(#:tests? #f)) ; The test suite requires network access.
1596 `(("unzip" ,unzip)))
1598 "https://bitbucket.org/emptypage/uniseg-python")
1600 "Python library to determine Unicode text segmentations")
1602 "Uniseg is a Python package used to determine Unicode text segmentations.
1603 Supported segmentations include:
1605 @item @dfn{Code point} (any value in the Unicode codespace)
1606 @item @dfn{Grapheme cluster} (user-perceived character made of a single or
1607 multiple Unicode code points, e.g. \"G\" + acute-accent)
1609 @item Sentence break
1612 (license license:expat)))
1614 (define-public python2-uniseg
1615 (package-with-python2 python-uniseg))
1617 (define-public python-humanfriendly
1619 (name "python-humanfriendly")
1624 (uri (pypi-uri "humanfriendly" version))
1627 "04ixg8b7p6xc8x8lffhi7wfl77xhszakhd0s6j0cf6a84j8yqlmz"))))
1628 (build-system python-build-system)
1630 `(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
1632 (home-page "https://humanfriendly.readthedocs.io")
1633 (synopsis "Human-friendly input and output in Python")
1635 "The functions and classes in @code{humanfriendly} can be used to make
1636 text interfaces more user-friendly. It includes tools to parse and format
1637 numbers, file sizes, and timespans, timers for long-running operations, menus
1638 to allow the user to choose from a list of options, and terminal interaction
1640 (properties `((python2-variant . ,(delay python2-humanfriendly))))
1641 (license license:expat)))
1643 (define-public python2-humanfriendly
1644 (let ((base (package-with-python2
1645 (strip-python2-variant python-humanfriendly))))
1646 (package/inherit base
1648 `(("python2-monotonic" ,python2-monotonic)
1649 ,@(package-propagated-inputs base))))))
1651 (define-public python-textparser
1653 (name "python-textparser")
1658 (uri (pypi-uri "textparser" version))
1661 "0w5lyhrsvzs5a9q1l3sjgxgljrvd3ybf796w93kc39wayzvd02gh"))))
1662 (build-system python-build-system)
1663 (home-page "https://github.com/eerimoq/textparser")
1664 (synopsis "Fast text parser for Python")
1665 (description "This library provides a text parser written in the Python
1666 language. It aims to be fast.")
1667 (license license:expat)))
1669 (define-public python-aenum
1671 (name "python-aenum")
1676 (uri (pypi-uri "aenum" version))
1678 (base32 "0r1812bjm72x73pl7y4yhffr4zbdjgxa08avsy4b3di0pqgqv0l1"))))
1679 (build-system python-build-system)
1681 `(#:phases (modify-phases %standard-phases
1684 (format #t "current working dir ~s~%" (getcwd))
1685 (setenv "PYTHONPATH"
1686 (string-append ".:" (getenv "PYTHONPATH")))
1687 ;; We must run the test suite module directly, as it
1688 ;; fails to define the 'tempdir' variable in scope for
1689 ;; the tests otherwise
1690 ;; (see:https://bitbucket.org/stoneleaf/aenum/\
1691 ;; issues/32/running-tests-with-python-setuppy-test).
1692 (invoke "python3" "aenum/test.py")
1693 ;; This one fails with "NameError: name
1694 ;; 'test_pickle_dump_load' is not defined" (see:
1695 ;; https://bitbucket.org/stoneleaf/aenum/issues/33
1696 ;; /error-running-the-test_v3py-test-suite).
1697 ;; (invoke "python3" "aenum/test_v3.py")
1699 (home-page "https://bitbucket.org/stoneleaf/aenum")
1700 (synopsis "Advanced enumerations, namedtuples and constants for Python")
1701 (description "The aenum library includes an @code{Enum} base class, a
1702 metaclass-based @code{NamedTuple} implementation and a @code{NamedConstant}
1704 (license license:bsd-3)))
1706 (define-public python-can
1713 (uri (pypi-uri "python-can" version))
1716 "123lz1bl6xf3d0fvxzr4bg4884yg4m9s21z6xd2m68zhnbv9rmpc"))))
1717 (build-system python-build-system)
1719 `(#:phases (modify-phases %standard-phases
1720 (add-after 'unpack 'relax-version-requirements
1722 (substitute* "setup.py"
1723 (("mock~=2\\.0") "mock")
1724 (("coverage<5") "coverage")
1725 (("pytest~=4\\.3") "pytest")
1726 (("hypothesis~=4\\.56") "hypothesis"))
1728 (add-after 'unpack 'fix-broken-tests
1729 ;; The tests try to run two scripts it expects should be
1730 ;; in PATH, but they aren't at this time (see:
1731 ;; https://github.com/hardbyte/python-can/issues/805).
1733 (substitute* "test/test_scripts.py"
1734 (("\"can_logger\\.py --help\"") "")
1735 (("\"can_player\\.py --help\"") ""))
1738 `(("python-aenum" ,python-aenum)
1739 ("python-wrapt" ,python-wrapt)))
1741 `(("python-codecov" ,python-codecov)
1742 ("python-coverage" ,python-coverage)
1743 ("python-future" ,python-future)
1744 ("python-hypothesis" ,python-hypothesis)
1745 ("python-mock" ,python-mock)
1746 ("python-pyserial" ,python-pyserial)
1747 ("python-pytest" ,python-pytest)
1748 ("python-pytest-cov" ,python-pytest-cov)
1749 ("python-pytest-runner" ,python-pytest-runner)
1750 ("python-pytest-timeout" ,python-pytest-timeout)))
1751 (home-page "https://github.com/hardbyte/python-can")
1752 (synopsis "Controller Area Network (CAN) interface module for Python")
1753 (description "This package defines the @code{can} module, which provides
1754 controller area network (CAN) support for Python developers; providing common
1755 abstractions to different hardware devices, and a suite of utilities for
1756 sending and receiving messages on a CAN bus.")
1757 (license license:lgpl3+)))
1759 (define-public python-caniusepython3
1761 (name "python-caniusepython3")
1766 (uri (pypi-uri "caniusepython3" version))
1769 "0a755444ln38j8d7xb3yw0wzpd0mjrzfn6zqvsh06nw1vdaq4l28"))))
1770 (build-system python-build-system)
1772 `(#:phases (modify-phases %standard-phases
1773 (add-after 'unpack 'relax-requirements
1775 (substitute* "setup.py"
1776 ;; These are for compatibility with Python 2.
1777 ((".*'argparse', 'backports.functools_lru_cache',.*")
1779 (substitute* "dev_requirements.txt"
1780 ((".*pylint.*") "")) ;not actually required
1784 (invoke "py.test" "-k" "not NetworkTests"))))))
1786 `(("python-distlib" ,python-distlib)
1787 ("python-packaging" ,python-packaging)
1788 ("python-requests" ,python-requests)))
1790 `(("python-mock" ,python-mock)
1791 ("python-pytest" ,python-pytest)))
1792 (home-page "https://github.com/brettcannon/caniusepython3")
1793 (synopsis "Check for Python 3-incompatible Python libraries")
1794 (description "The @command{caniusepython3} command scans your project and
1795 reports the Python 3-incompatible libraries it found. It can also be used as
1797 (license license:asl2.0)))
1799 (define-public python-diskcache
1801 (name "python-diskcache")
1806 (uri (pypi-uri "diskcache" version))
1809 "1q2wz5sj16zgyy1zpq516qgbnfwsavk1pl2qks0f4r62z5cmmvmw"))))
1810 (build-system python-build-system)
1812 `(#:tests? #f)) ;test suite not included in the release
1813 (home-page "http://www.grantjenks.com/docs/diskcache/")
1814 (synopsis "Disk and file backed cache library")
1815 (description "DiskCache is a disk and file backed persistent cache.")
1816 (license license:asl2.0)))
1818 (define-public python-bitstruct
1820 (name "python-bitstruct")
1825 (uri (pypi-uri "bitstruct" version))
1828 "1fpc1qh1vss05ap29xvhjp200fm0q4pvgcjl0qpryh7ay6xgr5vx"))))
1829 (build-system python-build-system)
1830 (home-page "https://github.com/eerimoq/bitstruct")
1831 (synopsis "Python values to and C bit field structs converter")
1832 (description "This module performs conversions between Python values and C
1833 bit field structs represented as Python byte strings. It is intended to have
1834 a similar interface as the @code{struct} module from Python, but working on
1835 bits instead of primitive data types like @code{char}, @code{int}, etc.")
1836 (license license:expat)))
1838 (define-public python-cantools
1840 (name "python-cantools")
1844 ;; We take the sources from the Git repository as the documentation is
1845 ;; not included with the PyPI archive.
1848 (url "https://github.com/eerimoq/cantools")
1850 (file-name (git-file-name name version))
1853 "1aad137yd8b4jkfvlv812qsxmxcgra7g1p4wbxfsjy1cbf8fbq9q"))))
1854 (build-system python-build-system)
1857 (modify-phases %standard-phases
1858 (add-after 'build 'build-doc
1860 ;; See: https://github.com/eerimoq/cantools/issues/190.
1861 (substitute* "README.rst"
1862 (("https://github.com/eerimoq/cantools/raw/master\
1865 (with-directory-excursion "docs"
1866 (invoke "make" "man" "info"))))
1867 (add-after 'install 'install-doc
1868 (lambda* (#:key outputs #:allow-other-keys)
1869 (let* ((out (assoc-ref outputs "out"))
1870 (info (string-append out "/share/info"))
1871 (man1 (string-append out "/share/man/man1")))
1872 (format #t "CWD: ~s~%" (getcwd))
1873 (install-file "docs/_build/texinfo/cantools.info" info)
1874 (install-file "docs/_build/man/cantools.1" man1)
1877 `(("sphinx" ,python-sphinx)
1878 ("texinfo" ,texinfo)))
1880 `(("python-bitstruct" ,python-bitstruct)
1881 ("python-can" ,python-can)
1882 ("python-diskcache" ,python-diskcache)
1883 ("python-textparser" ,python-textparser)))
1884 (home-page "https://github.com/eerimoq/cantools")
1885 (synopsis "Tools for the Controller Area Network (CAN) bus protocol")
1886 (description "This package includes Controller Area Network (CAN) related
1887 tools that can be used to:
1889 @item parse DBC, KCD, SYM, ARXML 4 and CDD files
1890 @item encode and decode CAN messages
1891 @item multiplex simple and extended signals
1892 @item diagnose DID encoding and decoding
1893 @item dump the CAN decoder output
1894 @item test CAN nodes
1895 @item generate C source code
1896 @item monitor the CAN bus
1898 (license license:expat)))
1900 (define-public python-capturer
1902 (name "python-capturer")
1907 (uri (pypi-uri "capturer" version))
1910 "05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
1911 (build-system python-build-system)
1915 `(("python-humanfriendly" ,python-humanfriendly)))
1916 (home-page "https://capturer.readthedocs.io")
1917 (synopsis "Capture stdout and stderr streams of the current process")
1919 "The capturer package makes it easy to capture the stdout and stderr
1920 streams of the current process and subprocesses. Output can be relayed
1921 to the terminal in real time but is also available to the Python program
1922 for additional processing.")
1923 (license license:expat)))
1925 (define-public python2-capturer
1926 (package-with-python2 python-capturer))
1928 (define-public python-case
1930 (name "python-case")
1935 (uri (pypi-uri "case" version))
1938 "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
1939 (build-system python-build-system)
1941 `(("python-mock" ,python-mock)
1942 ("python-nose" ,python-nose)
1943 ("python-six" ,python-six)
1944 ("python-unittest2" ,python-unittest2)))
1946 `(("python-coverage" ,python-coverage)))
1947 (home-page "https://github.com/celery/case")
1948 (synopsis "Unittest utilities and convenience methods")
1950 "The @code{case} package provides utilities on top of unittest, including
1951 some helpful Python 2 compatibility convenience methods.")
1952 (license license:bsd-3)))
1954 (define-public python-verboselogs
1956 (name "python-verboselogs")
1961 (uri (pypi-uri "verboselogs" version))
1964 "09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
1965 (build-system python-build-system)
1968 (modify-phases %standard-phases
1971 ;; Do not run pylint plugin test, as astroid is an old
1972 ;; unsupported version.
1973 (invoke "pytest" "-v" "-k" "not test_pylint_plugin"
1974 "verboselogs/tests.py"))))))
1976 `(("python-mock" ,python-mock)
1977 ("python-pytest" ,python-pytest)))
1978 (home-page "https://verboselogs.readthedocs.io")
1979 (synopsis "Verbose logging level for Python's logging module")
1981 "The @code{verboselogs} package extends Python's @code{logging} module to
1982 add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
1983 (license license:expat)))
1985 (define-public python2-verboselogs
1986 (package-with-python2 python-verboselogs))
1988 (define-public python-coloredlogs
1990 (name "python-coloredlogs")
1995 (uri (pypi-uri "coloredlogs" version))
1998 "0dkw6xp0r1dwgz4s2f58npx5nxfq51wf4l6qkm5ib27slgfs4sdq"))))
1999 (build-system python-build-system)
2001 `(;Tests require some updated modules
2004 `(("python-capturer" ,python-capturer)))
2005 (home-page "https://coloredlogs.readthedocs.io")
2006 (synopsis "Colored stream handler for Python's logging module")
2008 "The @code{coloredlogs} package enables colored terminal output for
2009 Python's logging module. The @code{ColoredFormatter} class inherits from
2010 @code{logging.Formatter} and uses ANSI escape sequences to render your logging
2011 messages in color.")
2012 (license license:expat)))
2014 (define-public python2-coloredlogs
2015 (package-with-python2 python-coloredlogs))
2017 (define-public python-editorconfig
2019 (name "python-editorconfig")
2024 (uri (pypi-uri "EditorConfig" version))
2027 "0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv"))))
2028 (build-system python-build-system)
2029 (home-page "https://editorconfig.org/")
2030 (synopsis "EditorConfig bindings for python")
2031 (description "The EditorConfig project consists of a file format for
2032 defining coding styles and a collection of text editor plugins that enable
2033 editors to read the file format and adhere to defined styles. EditorConfig
2034 files are easily readable and they work nicely with version control systems.")
2035 ;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
2036 (license (list license:bsd-2 license:psfl))))
2038 (define-public dosage
2045 (uri (pypi-uri "dosage" version))
2048 "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"))))
2049 (build-system python-build-system)
2051 `(("python2-backports-functools-lru-cache"
2052 ,python2-backports-functools-lru-cache)
2053 ("python2-backports-shutil-get-terminal-size"
2054 ,python2-backports-shutil-get-terminal-size)
2055 ("python-cached-property" ,python-cached-property)
2056 ("python-colorama" ,python-colorama)
2057 ("python-imagesize" ,python-imagesize)
2058 ("python-importlib-metadata" ,python-importlib-metadata)
2059 ("python-lxml" ,python-lxml)
2060 ("python-requests" ,python-requests)
2061 ("python-six" ,python-six)))
2063 `(("python-pytest-cov" ,python-pytest-cov)
2064 ("python-pytest-xdist" ,python-pytest-xdist)
2065 ("python-responses" ,python-responses)
2066 ("python-setuptools-scm" ,python-setuptools-scm)))
2067 (home-page "https://github.com/webcomics/dosage")
2068 (synopsis "Comic strip downloader and archiver")
2069 (description "Dosage is designed to keep a local copy of specific webcomics and other
2070 picture-based content such as Picture of the Day sites. With the @command{dosage}
2071 command-line script you can get the latest strip of a webcomic, catch-up to the last strip
2072 downloaded, or download a strip for a particular date or index, if possible.")
2073 (license license:expat)))
2075 (define-public python-et-xmlfile
2077 (name "python-et-xmlfile")
2082 (uri (pypi-uri "et_xmlfile" version))
2085 "0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1"))))
2086 (build-system python-build-system)
2088 `(#:phases (modify-phases %standard-phases
2091 (invoke "pytest"))))))
2093 `(("python-pytest" ,python-pytest)
2094 ("python-lxml" ,python-lxml))) ;used for the tests
2095 (home-page "https://bitbucket.org/openpyxl/et_xmlfile")
2096 (synopsis "Low memory implementation of @code{lxml.xmlfile}")
2097 (description "This Python library is based upon the @code{xmlfile} module
2098 from @code{lxml}. It aims to provide a low memory, compatible implementation
2099 of @code{xmlfile}.")
2100 (license license:expat)))
2102 (define-public python2-et-xmlfile
2103 (package-with-python2 python-et-xmlfile))
2105 (define-public python-openpyxl
2107 (name "python-openpyxl")
2111 ;; We use the upstream repository, as the tests are not included in the
2115 (url "https://foss.heptapod.net/openpyxl/openpyxl")
2116 (changeset version)))
2117 (file-name (string-append name "-" version "-checkout"))
2119 (base32 "0s6fgwwkcfz1bnrp5gjd4g2lcbl4a76147ylkrmkbabi2nf4xlli"))))
2120 (build-system python-build-system)
2122 `(#:phases (modify-phases %standard-phases
2125 (invoke "pytest"))))))
2127 ;; For the test suite.
2128 `(("python-lxml" ,python-lxml)
2129 ("python-pillow" ,python-pillow)
2130 ("python-pytest" ,python-pytest)))
2132 `(("python-et-xmlfile" ,python-et-xmlfile)
2133 ("python-jdcal" ,python-jdcal)))
2134 (home-page "https://openpyxl.readthedocs.io")
2135 (synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
2136 (description "This Python library allows reading and writing to the Excel XLSX, XLSM,
2137 XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
2139 (properties `((python2-variant . ,(delay python2-openpyxl))))
2140 (license license:expat)))
2142 (define-public python2-openpyxl
2143 (let ((base (package-with-python2
2144 (strip-python2-variant python-openpyxl))))
2147 ;; This is the latest version that has python2 support
2152 (uri (pypi-uri "openpyxl" version))
2155 "1qzjj8nwj4dn0mhq1j64f136afiqqb81lvqiikipz3g1g0b80lqx"))))
2156 (arguments '(#:tests? #f))))) ; No test suite.
2158 (define-public python-eventlet
2160 (name "python-eventlet")
2165 (uri (pypi-uri "eventlet" version))
2168 "1hgz8jq19wlz8vwqj900ry8cjv578nz4scc91mlc8944yid6573c"))))
2169 (build-system python-build-system)
2171 `(("python-dnspython" ,python-dnspython)
2172 ("python-greenlet" ,python-greenlet)
2173 ("python-monotonic" ,python-monotonic)))
2175 ;; TODO: Requires unpackaged 'enum-compat'.
2177 (home-page "https://eventlet.net")
2178 (synopsis "Concurrent networking library for Python")
2180 "Eventlet is a concurrent networking library for Python that
2181 allows you to change how you run your code, not how you write it.
2182 It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
2183 Coroutines ensure that the developer uses a blocking style of programming
2184 that is similar to threading, but provide the benefits of non-blocking I/O.
2185 The event dispatch is implicit, which means you can easily use @code{Eventlet}
2186 from the Python interpreter, or as a small part of a larger application.")
2187 (license license:expat)))
2189 (define-public python-sinfo
2191 (name "python-sinfo")
2195 (uri (pypi-uri "sinfo" version))
2198 "0kdsp883mx0lfyykv0p12bvs203kdm3skb8bw5wf2pc7kb393sl1"))))
2199 (build-system python-build-system)
2201 `(("python-stdlib-list" ,python-stdlib-list)))
2202 (home-page "https://gitlab.com/joelostblom/session_info")
2203 (synopsis "Output module version information loaded in a Python session")
2204 (description "This package outputs version information for modules loaded
2205 in the current session, Python, and the OS.")
2206 (license license:bsd-3)))
2208 (define-public python-six
2215 (uri (pypi-uri "six" version))
2218 "02lw67hprv57hyg3cfy02y3ixjk3nzwc0dx3c4ynlvkfwkfdnsr3"))))
2219 (build-system python-build-system)
2222 (modify-phases %standard-phases
2225 (invoke "py.test" "-v"))))))
2227 `(("python-pytest" ,python-pytest-bootstrap)))
2228 (home-page "https://pypi.org/project/six/")
2229 (synopsis "Python 2 and 3 compatibility utilities")
2231 "Six is a Python 2 and 3 compatibility library. It provides utility
2232 functions for smoothing over the differences between the Python versions with
2233 the goal of writing Python code that is compatible on both Python versions.
2234 Six supports every Python version since 2.5. It is contained in only one
2235 Python file, so it can be easily copied into your project.")
2236 (license license:x11)))
2238 (define-public python2-six
2239 (package-with-python2 python-six))
2241 (define-public python-six-bootstrap
2243 (inherit python-six)
2244 (name "python-six-bootstrap")
2246 (arguments `(#:tests? #f))))
2248 (define-public python2-six-bootstrap
2249 (package-with-python2 python-six-bootstrap))
2251 (define-public python-schedule
2253 (name "python-schedule")
2258 (uri (pypi-uri "schedule" version))
2261 "0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
2262 (build-system python-build-system)
2264 `(("python-pytest" ,python-pytest)
2265 ("python-mock" ,python-mock)))
2266 (home-page "https://github.com/dbader/schedule")
2267 (synopsis "Schedule periodic function calls in Python")
2269 "Schedule is an in-process scheduler for periodic jobs that uses the
2270 builder pattern for configuration. Schedule lets you run Python functions (or
2271 any other callable) periodically at pre-determined intervals using a simple,
2272 human-friendly syntax.")
2273 (license license:expat)))
2275 (define-public python2-schedule
2276 (package-with-python2 python-schedule))
2278 (define-public python-scour
2280 (name "python-scour")
2287 (url "https://github.com/scour-project/scour")
2289 (string-append "v" version))))
2290 (file-name (git-file-name name version))
2292 (base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k"))))
2294 `(("python-six" ,python-six)))
2295 (build-system python-build-system)
2296 (home-page "https://github.com/scour-project/scour")
2297 (synopsis "Scour is an SVG optimizer/cleaner written in Python")
2298 (description "The goal of Scour is to output a file that renders
2299 identically at a fraction of the size by removing a lot of redundant
2300 information created by most SVG editors. Optimization options are typically
2301 lossless but can be tweaked for more aggressive cleaning.")
2302 (license license:asl2.0)))
2304 (define-public python-mechanize
2306 (name "python-mechanize")
2311 (uri (pypi-uri "mechanize" version))
2314 "1z9kqcwb8gfq2l6i42z624kxpd8692a0c8gw2x5bbm7n848w2mb3"))))
2315 (build-system python-build-system)
2317 `(("python-html5lib" ,python-html5lib)))
2318 (home-page "https://github.com/python-mechanize/mechanize")
2320 "Stateful programmatic web browsing in Python")
2322 "Mechanize implements stateful programmatic web browsing in Python,
2323 after Andy Lester’s Perl module WWW::Mechanize.")
2324 (license license:bsd-3)))
2326 (define-public python2-mechanize
2327 (package-with-python2 python-mechanize))
2329 (define-public python-simpleaudio
2331 (name "python-simpleaudio")
2336 (uri (pypi-uri "simpleaudio" version))
2339 "07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739"))))
2340 (build-system python-build-system)
2344 `(("alsa-lib" ,alsa-lib)))
2346 "https://github.com/hamiltron/py-simple-audio")
2347 (synopsis "Simple, asynchronous audio playback for Python 3")
2349 "The @code{simplaudio} package provides cross-platform, dependency-free
2350 audio playback capability for Python 3 on OSX, Windows, and Linux.")
2351 (license license:expat))) ; MIT license
2353 (define-public python-simplejson
2355 (name "python-simplejson")
2360 (uri (pypi-uri "simplejson" version))
2363 "108yf3252fy4ndqab7h46raksxfhcn113bzy2yd8369vidrjnjrb"))))
2364 (build-system python-build-system)
2365 (home-page "http://simplejson.readthedocs.org/en/latest/")
2367 "Json library for Python")
2369 "JSON (JavaScript Object Notation) is a subset of JavaScript
2370 syntax (ECMA-262 3rd edition) used as a lightweight data interchange
2373 Simplejson exposes an API familiar to users of the standard library marshal
2374 and pickle modules. It is the externally maintained version of the json
2375 library contained in Python 2.6, but maintains compatibility with Python 2.5
2376 and (currently) has significant performance advantages, even without using
2377 the optional C extension for speedups. Simplejson is also supported on
2379 (license license:x11)))
2381 (define-public python2-simplejson
2382 (package-with-python2 python-simplejson))
2385 (define-public python-pyicu
2387 (name "python-pyicu")
2392 (uri (pypi-uri "PyICU" version))
2395 "075bw66b3w0nw6mc5k32fwmrhyrmq3d7da3q2mw212qfmm0pgjn0"))))
2396 (build-system python-build-system)
2398 `(("icu4c" ,icu4c)))
2400 `(("python-pytest" ,python-pytest)
2401 ("python-six" ,python-six)))
2402 (home-page "https://github.com/ovalhub/pyicu")
2403 (synopsis "Python extension wrapping the ICU C++ API")
2405 "PyICU is a python extension wrapping the ICU C++ API.")
2406 (license license:x11)))
2408 (define-public python2-pyicu
2409 (package-with-python2 python-pyicu))
2411 (define-public python-dogtail
2413 (name "python-dogtail")
2419 "https://gitlab.com/dogtail/dogtail/-/raw/released/"
2420 "dogtail-" version ".tar.gz"))
2423 "0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0"))))
2424 (build-system python-build-system)
2426 `(#:tests? #f ; TODO Launching dbus for the tests
2429 (modify-phases %standard-phases
2431 (lambda* (#:key tests? #:allow-other-keys)
2433 (system "Xvfb :1 &")
2434 (setenv "DISPLAY" ":1")
2435 (invoke "dbus-run-session" "--" "nosetests" "-v" "tests/"))
2438 `(("python-pygobject" ,python-pygobject)
2439 ("python-pycairo" ,python-pycairo)
2440 ("python-pyatspi" ,python-pyatspi)))
2442 `(("python-nose" ,python-nose)
2444 ("xvfb" ,xorg-server)
2446 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
2447 ("gobject-introspection" ,gobject-introspection)))
2448 (home-page "https://gitlab.com/dogtail/dogtail/")
2449 (synopsis "GUI test tool and automation framework written in Python")
2451 "Dogtail is a GUI test tool and automation framework written in Python.
2452 It uses Accessibility (a11y) technologies to communicate with desktop
2453 applications. dogtail scripts are written in Python and executed like any
2454 other Python program.")
2455 (license license:gpl2+)))
2457 (define-public python2-dogtail
2458 (package-with-python2 python-dogtail))
2460 (define-public python-empy
2462 (name "python-empy")
2466 (uri (string-append "http://www.alcyone.com/software/empy/empy-"
2470 "1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq"))))
2471 (build-system python-build-system)
2473 `(#:tests? #f)) ; python2 only
2474 (home-page "http://www.alcyone.com/software/empy/")
2475 (synopsis "Templating system for Python")
2477 "EmPy is a system for embedding Python expressions and statements in
2478 template text; it takes an EmPy source file, processes it, and produces
2479 output. This is accomplished via expansions, which are special signals to the
2480 EmPy system and are set off by a special prefix (by default the at sign, @@).
2481 EmPy can expand arbitrary Python expressions and statements in this way, as
2482 well as a variety of special forms. Textual data not explicitly delimited in
2483 this way is sent unaffected to the output, allowing Python to be used in
2484 effect as a markup language. Also supported are callbacks via hooks,
2485 recording and playback via diversions, and dynamic, chainable filters. The
2486 system is highly configurable via command line options and embedded
2488 (license license:lgpl2.1+)))
2490 (define-public python2-empy
2491 (let ((base (package-with-python2 (strip-python2-variant python-empy))))
2492 (package/inherit base
2493 (arguments `(,@(package-arguments base)
2496 (define-public python2-element-tree
2498 (name "python2-element-tree")
2503 "http://effbot.org/media/downloads/elementtree-"
2504 version "-20050316.tar.gz"))
2507 "016bphqnlg0l4vslahhw4r0aanw95bpypy65r1i1acyb2wj5z7dj"))))
2508 (build-system python-build-system)
2510 `(#:python ,python-2 ; seems to be part of Python 3
2511 #:tests? #f)) ; no 'test' sub-command
2512 (synopsis "Toolkit for XML processing in Python")
2514 "ElementTree is a Python library supporting lightweight XML processing.")
2515 (home-page "https://effbot.org/zone/element-index.htm")
2516 (license (license:x11-style
2517 "http://docs.python.org/2/license.html"
2518 "Like \"CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2\"."))))
2520 (define-public python2-pybugz
2522 (name "python2-pybugz")
2527 "http://bits.liquidx.net/projects/pybugz/pybugz-"
2531 "17ni00p08gp5lkxlrrcnvi3x09fmajnlbz4da03qcgl9q21ym4jd"))
2532 (patches (search-patches "pybugz-stty.patch"
2533 "pybugz-encode-error.patch"))))
2534 (build-system python-build-system)
2536 `(#:python ,python-2 ; SyntaxError with Python 3
2537 #:tests? #f)) ; no 'test' sub-command
2539 `(("element-tree" ,python2-element-tree)))
2540 (synopsis "Python and command-line interface to Bugzilla")
2542 "PyBugz is a Python library and command-line tool to query the Bugzilla
2543 bug tracking system. It is meant as an aid to speed up interaction with the
2545 (home-page "http://www.liquidx.net/pybugz/")
2546 (license license:gpl2)))
2548 (define-public python2-enum
2550 (name "python2-enum")
2554 (uri (pypi-uri "enum" version))
2557 "13lk3yrwj42vl30kw3c194f739nrfrdg64s6i0v2p636n4k8brsl"))))
2558 (build-system python-build-system)
2560 `(#:python ,python-2))
2561 (home-page "https://pypi.org/project/enum/")
2562 (synopsis "Robust enumerated type support in Python")
2564 "This provides a module for robust enumerations in Python. It has
2565 been superseded by the Python standard library and is provided only for
2567 ;; Choice of either license.
2568 (license (list license:gpl3+ license:psfl))))
2570 (define-public python-enum34
2572 (name "python-enum34")
2577 (uri (pypi-uri "enum34" version))
2580 "1cgm5ng2gcfrkrm3hc22brl6chdmv67b9zvva9sfs7gn7dwc9n4a"))))
2581 (build-system python-build-system)
2582 (home-page "https://pypi.org/project/enum34/")
2583 (synopsis "Backported Python 3.4 Enum")
2585 "Enum34 is the new Python stdlib enum module available in Python 3.4
2586 backported for previous versions of Python from 2.4 to 3.3.")
2587 (license license:bsd-3)))
2589 (define-public python2-enum34
2590 (package-with-python2 python-enum34))
2592 (define-public python-parse-type
2594 (name "python-parse-type")
2599 (uri (pypi-uri "parse_type" version))
2602 "0g3b6gsdwnm8dpkh2vn34q6dzxm9gl908ggyzcv31n9xbp3vv5pm"))))
2603 (build-system python-build-system)
2605 `(("python-six" ,python-six)
2606 ("python-parse" ,python-parse)))
2608 `(("python-pytest" ,python-pytest)
2609 ("python-pytest-runner" ,python-pytest-runner)))
2610 (home-page "https://github.com/jenisys/parse_type")
2611 (synopsis "Extended parse module")
2613 "Parse_type extends the python parse module.")
2615 `((python2-variant . ,(delay python2-parse-type))))
2616 (license license:bsd-3)))
2618 (define-public python2-parse-type
2619 (let ((base (package-with-python2
2620 (strip-python2-variant python-parse-type))))
2621 (package/inherit base
2623 `(("python2-enum34" ,python2-enum34)
2624 ,@(package-propagated-inputs base))))))
2626 (define-public python-parse
2628 (name "python-parse")
2633 (uri (pypi-uri "parse" version))
2636 "19063x4xdjpaf7rfxai6jpgm2k4yvkq7wha8aa8cagbjsqr60rli"))))
2637 (build-system python-build-system)
2640 (modify-phases %standard-phases
2642 (lambda _ (invoke "python" "test_parse.py"))))))
2643 (home-page "https://github.com/r1chardj0n3s/parse")
2644 (synopsis "Parse strings")
2646 "Parse strings using a specification based on the Python @code{format()}
2648 (license license:x11)))
2650 (define-public python-polib
2652 (name "python-polib")
2656 (uri (pypi-uri "polib" version))
2659 "0aikb8gcarhifn3sadrbbs5czagih9hjv250gsrgy9v1d49pvn7s"))))
2660 (build-system python-build-system)
2661 (home-page "https://bitbucket.org/izi/polib/wiki/Home")
2662 (synopsis "Manipulate, create and modify gettext files")
2663 (description "Polib can manipulate any gettext format (po, pot and mo)
2664 files. It can be used to create po files from scratch or to modify
2666 (license license:expat)))
2668 (define-public python2-polib
2669 (let ((base (package-with-python2 (strip-python2-variant python-polib))))
2670 (package/inherit base
2671 (arguments `(,@(package-arguments base)
2672 ;; Tests don't work with python2.
2675 (define-public python-poyo
2677 (name "python-poyo")
2682 (uri (pypi-uri "poyo" version))
2685 "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
2686 (build-system python-build-system)
2687 (home-page "https://github.com/hackebrot/poyo")
2688 (synopsis "Lightweight YAML Parser for Python")
2690 "This package provides a lightweight YAML Parser for Python. It supports
2691 only a chosen subset of the YAML format that is required to parse cookiecutter
2692 user configuration files. It does not have support for serializing into YAML
2693 and is not compatible with JSON.")
2694 (license license:expat)))
2696 (define-public scons
2703 (url "https://github.com/SCons/scons")
2705 (file-name (git-file-name name version))
2708 "1xy8jrwz87y589ihcld4hv7wn122sjbz914xn8h50ww77wbhk8hn"))))
2709 (build-system python-build-system)
2711 `(#:use-setuptools? #f ; still relies on distutils
2712 #:tests? #f ; no 'python setup.py test' command
2714 (modify-phases %standard-phases
2715 (add-before 'build 'bootstrap
2717 (substitute* "src/engine/SCons/compat/__init__.py"
2718 (("sys.modules\\[new\\] = imp.load_module\\(old, \\*imp.find_module\\(old\\)\\)")
2719 "sys.modules[new] = __import__(old)"))
2720 (substitute* "src/engine/SCons/Platform/__init__.py"
2721 (("mod = imp.load_module\\(full_name, file, path, desc\\)")
2722 "mod = __import__(full_name)"))
2723 (invoke "python" "bootstrap.py" "build/scons" "DEVELOPER=guix")
2724 (chdir "build/scons")
2726 (home-page "https://scons.org/")
2727 (synopsis "Software construction tool written in Python")
2729 "SCons is a software construction tool. Think of SCons as an improved,
2730 cross-platform substitute for the classic Make utility with integrated
2731 functionality similar to autoconf/automake and compiler caches such as ccache.
2732 In short, SCons is an easier, more reliable and faster way to build
2734 (license license:x11)))
2736 (define-public scons-python2
2738 (inherit (package-with-python2 scons))
2739 (name "scons-python2")))
2741 (define-public python-extension-helpers
2743 (name "python-extension-helpers")
2748 (uri (pypi-uri "extension-helpers" version))
2750 (base32 "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"))))
2751 (build-system python-build-system)
2753 `(("coverage" ,python-coverage)
2754 ("pytest" ,python-pytest-astropy)
2755 ("pytest-cov" ,python-pytest-cov)
2756 ("setuptools-scm" ,python-setuptools-scm)))
2757 (home-page "https://github.com/astropy/astropy-helpers")
2759 "Utilities for building and installing packages in the Astropy ecosystem")
2761 "The extension-helpers package includes many build, installation, and
2762 documentation-related tools used by the Astropy project.")
2763 (license license:bsd-3)))
2765 (define-public python-extras
2767 (name "python-extras")
2772 (uri (pypi-uri "extras" version))
2775 "0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
2776 (build-system python-build-system)
2778 ;; FIXME: Circular dependency on testtools.
2780 (home-page "https://github.com/testing-cabal/extras")
2781 (synopsis "Useful extensions to the Python standard library")
2783 "Extras is a set of extensions to the Python standard library.")
2784 (license license:expat)))
2786 (define-public python2-extras
2787 (package-with-python2 python-extras))
2789 (define-public python-mimeparse
2791 (name "python-mimeparse")
2796 (uri (pypi-uri "python-mimeparse" version))
2799 "0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
2800 (build-system python-build-system)
2803 (modify-phases %standard-phases
2806 (invoke "./mimeparse_test.py"))))))
2808 "https://github.com/dbtsai/python-mimeparse")
2809 (synopsis "Python library for parsing MIME types")
2811 "Mimeparse provides basic functions for parsing MIME type names and
2812 matching them against a list of media-ranges.")
2813 (license license:expat)))
2815 (define-public python2-mimeparse
2816 (package-with-python2 python-mimeparse))
2818 (define-public python-miniboa
2820 (name "python-miniboa")
2825 (uri (pypi-uri "miniboa" version))
2828 "002c1aki9hsrwj5plrwdrf3sk8rn95fqylqyjx2arrjfpsih4dgs"))))
2829 (build-system python-build-system)
2830 (home-page "https://github.com/shmup/miniboa")
2831 (synopsis "Simple, single-threaded Telnet server")
2833 "Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
2835 (license license:asl2.0)))
2837 (define-public python2-miniboa
2838 (package-with-python2 python-miniboa))
2840 (define-public python-pafy
2842 (name "python-pafy")
2847 (uri (pypi-uri "pafy" version))
2850 "1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
2851 (build-system python-build-system)
2853 `(#:tests? #f)) ; Currently pafy can not find itself in the tests
2855 ;; Youtube-dl is a python package which is imported in the file
2856 ;; "backend_youtube_dl.py", therefore it needs to be propagated.
2857 `(("youtube-dl" ,youtube-dl)))
2858 (home-page "https://np1.github.io/pafy/")
2859 (synopsis "Retrieve YouTube content and metadata")
2861 "@code{pafy} is a python library to retrieve YouTube content and metadata.")
2862 (license license:lgpl3+)))
2864 (define-public python2-funcsigs
2866 (name "python2-funcsigs")
2870 (uri (pypi-uri "funcsigs" version))
2873 "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7"))))
2874 (build-system python-build-system)
2876 `(#:python ,python-2))
2878 `(("python2-unittest2" ,python2-unittest2)))
2879 (home-page "http://funcsigs.readthedocs.org")
2880 (synopsis "Python function signatures from PEP362")
2882 "Backport of @code{funcsigs} which was introduced in Python 3.3.")
2883 (license license:asl2.0)))
2885 (define-public python2-funcsigs-bootstrap
2887 (inherit python2-funcsigs)
2888 (name "python2-funcsigs-bootstrap")
2892 ,@(package-arguments python2-funcsigs)))))
2894 (define-public python-py
2901 (uri (pypi-uri "py" version))
2904 "1ajjazg3913n0sp3vjyva9c2qh5anx8ziryng935f89604a0h9sy"))))
2905 (build-system python-build-system)
2907 ;; FIXME: "ImportError: 'test' module incorrectly imported from
2908 ;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
2909 ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
2910 ;; Is this module globally installed?"
2913 `(("python-setuptools-scm" ,python-setuptools-scm)))
2914 (home-page "https://github.com/pytest-dev/py")
2915 (synopsis "Python library for parsing, I/O, instrospection, and logging")
2917 "Py is a Python library for file name parsing, .ini file parsing, I/O,
2918 code introspection, and logging.")
2919 (license license:expat)))
2921 (define-public python-py-next
2928 (uri (pypi-uri "py" version))
2931 "0hpk0gzd4v1pcnq7zinwg5n219czi23qghcswykqskkbwly8i9lw"))))))
2933 (define-public python2-py
2934 (package-with-python2 python-py))
2936 ;; Recent versions of python-fixtures and python-testrepository need
2937 ;; python-pbr for packaging, which itself needs these two packages for
2939 ;; To fix this circular dependency, we use a build of python-pbr, based on the
2940 ;; same source, just without any test dependencies and with tests disabled.
2941 ;; python-pbr-minmal is then used to package python-fixtures and
2942 ;; python-testrepository.
2943 ;; Strictly speaking we currently could remove the test-requirements from the
2944 ;; normal python-pbr package (and save this package) since test are disabled
2945 ;; there anyway. But this may change in future.
2946 (define-public python-pbr-minimal
2948 (name "python-pbr-minimal")
2953 (uri (pypi-uri "pbr" version))
2956 "14fs5acnalnb3h62s7q7av239j541fk0n0z0lawh4h09b1s93s6p"))))
2957 (build-system python-build-system)
2960 (home-page "https://docs.openstack.org/pbr/latest/")
2961 (synopsis "Minimal build of python-pbr used for bootstrapping")
2963 "Used only for bootstrapping python2-pbr, you should not need this.")
2964 (license license:asl2.0)))
2966 (define-public python-pbr
2968 (inherit python-pbr-minimal)
2971 `(#:tests? #f)) ;; Most tests seem to use the Internet.
2973 `(("git" ,git))) ;; pbr actually uses the "git" binary.
2975 `(("python-fixtures" ,python-fixtures-bootstrap)
2976 ;; discover, coverage, hacking, subunit
2977 ("python-mock" ,python-mock)
2978 ("python-six" ,python-six)
2979 ("python-sphinx" ,python-sphinx)
2980 ("python-testrepository" ,python-testrepository-bootstrap)
2981 ("python-testresources" ,python-testresources-bootstrap)
2982 ("python-testscenarios" ,python-testscenarios-bootstrap)
2983 ("python-testtools" ,python-testtools-bootstrap)
2984 ("python-virtualenv" ,python-virtualenv)))
2985 (synopsis "Enhance the default behavior of Python’s setuptools")
2987 "Python Build Reasonableness (PBR) is a library that injects some useful
2988 and sensible default behaviors into your setuptools run. It will set
2989 versions, process requirements files and generate AUTHORS and ChangeLog file
2990 from git information.
2993 (define-public python-pyrsistent
2995 (name "python-pyrsistent")
2997 (home-page "https://github.com/tobgu/pyrsistent")
3000 (uri (pypi-uri "pyrsistent" version))
3003 "1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
3004 (build-system python-build-system)
3006 '(#:phases (modify-phases %standard-phases
3007 ;; The package works fine with newer Pytest and Hypothesis, but
3008 ;; has pinned older versions to stay compatible with Python 2.
3009 (add-before 'check 'loosen-pytest-requirement
3011 (substitute* "setup.py"
3012 (("pytest<5") "pytest")
3013 (("hypothesis<5") "hypothesis"))
3016 `(("python-hypothesis" ,python-hypothesis)
3017 ("python-pytest" ,python-pytest)
3018 ("python-pytest-runner" ,python-pytest-runner)))
3020 `(("python-six" ,python-six)))
3021 (synopsis "Persistent data structures for Python")
3023 "Pyrsistent is a number of persistent collections (by some referred to as
3024 functional data structures). Persistent in the sense that they are immutable.
3026 All methods on a data structure that would normally mutate it instead return a
3027 new copy of the structure containing the requested updates. The original
3028 structure is left untouched.")
3029 (license license:expat)))
3031 (define-public python2-pyrsistent
3032 (package-with-python2 python-pyrsistent))
3034 (define-public python-exif-read
3036 (name "python-exif-read")
3040 (uri (pypi-uri "ExifRead" version))
3043 "1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
3044 (build-system python-build-system)
3045 (arguments `(#:tests? #f)) ; no tests
3046 (home-page "https://github.com/ianare/exif-py")
3047 (synopsis "Python library to extract EXIF data from image files")
3049 "ExifRead is a Python library to extract EXIF data from tiff and jpeg
3051 (license license:bsd-3)))
3053 (define-public python2-exif-read
3054 (package-with-python2 python-exif-read))
3056 (define-public python-pyld
3058 (name "python-pyld")
3062 (uri (pypi-uri "PyLD" version))
3065 "1ywbdbsrkg533qh8xn9ifjh2mvam6v5msrjyqq73jfpvcp89qvff"))))
3066 (build-system python-build-system)
3067 (home-page "https://github.com/digitalbazaar/pyld")
3068 (synopsis "Python implementation of the JSON-LD specification")
3070 "PyLD is an implementation of the JSON-LD specification.")
3071 (license license:bsd-3)))
3073 (define-public python2-pyld
3074 (package-with-python2 python-pyld))
3076 (define-public python-cli-helpers
3078 (name "python-cli-helpers")
3082 ;; There's no source tarball on PyPI.
3085 (url "https://github.com/dbcli/cli_helpers")
3086 (commit (string-append "v" version))))
3087 (file-name (git-file-name name version))
3089 (base32 "1bg2iw9l5dip0kbs00hajdk2v18wvhssbnq8hdf71278qf0wks5l"))))
3090 (build-system python-build-system)
3092 `(("python-pytest" ,python-pytest)))
3094 `(("python-wcwidth" ,python-wcwidth)
3095 ("python-configobj" ,python-configobj)
3096 ("python-tabulate" ,python-tabulate)
3097 ("python-terminaltables" ,python-terminaltables)))
3098 (home-page "https://github.com/dbcli/cli_helpers")
3099 (synopsis "Helpers for building command-line apps")
3101 "CLI Helpers is a Python package that makes it easy to perform common
3102 tasks when building command-line apps. It's a helper library for command-line
3104 (license license:bsd-3)))
3106 (define-public python-click
3108 (name "python-click")
3113 (uri (pypi-uri "click" version))
3116 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
3117 (build-system python-build-system)
3120 (modify-phases %standard-phases
3121 (add-after 'unpack 'fix-paths
3122 (lambda* (#:key inputs #:allow-other-keys)
3123 (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
3124 "cross-libc" "libc"))))
3125 (substitute* "src/click/_unicodefun.py"
3127 (string-append "'" glibc "/bin/locale'"))))
3131 (setenv "PYTHONPATH" (string-append "./src:" (getenv "PYTHONPATH")))
3132 (invoke "python" "-m" "pytest"))))))
3134 `(("python-pytest" ,python-pytest)))
3135 (home-page "https://palletsprojects.com/p/click/")
3136 (synopsis "Command line library for Python")
3138 "Click is a Python package for creating command line interfaces in a
3139 composable way with as little code as necessary. Its name stands for
3140 \"Command Line Interface Creation Kit\". It's highly configurable but comes
3141 with sensible defaults out of the box.")
3142 (license license:bsd-3)))
3144 (define-public python2-click
3145 (package-with-python2 python-click))
3147 (define-public python-click-5
3148 (package (inherit python-click)
3149 (name "python-click")
3154 (uri (pypi-uri "click" version))
3156 (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337"))))
3159 (define-public python-vcversioner
3161 (name "python-vcversioner")
3162 (version "2.16.0.0")
3166 (uri (pypi-uri "vcversioner" version))
3169 "16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
3170 (build-system python-build-system)
3171 (synopsis "Python library for version number discovery")
3172 (description "Vcversioner is a Python library that inspects tagging
3173 information in a variety of version control systems in order to discover
3175 (home-page "https://github.com/habnabit/vcversioner")
3176 (license license:isc)))
3178 (define-public python2-vcversioner
3179 (package-with-python2 python-vcversioner))
3181 (define-public python-jdcal
3183 (name "python-jdcal")
3188 (uri (pypi-uri "jdcal" version))
3191 "1ja6j2xq97bsl6rv09mhdx7n0xnrsfx0mj5xqza0mxghqmkm02pa"))))
3192 (build-system python-build-system)
3194 `(#:phases (modify-phases %standard-phases
3197 (invoke "pytest"))))))
3199 `(("python-pytest" ,python-pytest)))
3200 (home-page "https://github.com/phn/jdcal")
3201 (synopsis "Functions to convert between Julian dates Gregorian dates")
3202 (description "This Python library provides functions for converting
3203 between Julian dates and Gregorian dates.")
3204 (license license:bsd-2)))
3206 (define-public python2-jdcal
3207 (package-with-python2 python-jdcal))
3209 (define-public python-jsondiff
3211 (name "python-jsondiff")
3216 (uri (pypi-uri "jsondiff" version))
3219 "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l"))))
3220 (build-system python-build-system)
3222 `(("python-nose" ,python-nose)
3223 ("python-nose-random" ,python-nose-random)))
3225 "https://github.com/fzumstein/jsondiff")
3226 (synopsis "Compare JSON and JSON-like structures in Python")
3227 (description "@code{jsondiff} is a Python library which lets you
3228 compare, diff, and patch JSON and JSON-like structures in Python.")
3229 (license license:expat)))
3231 (define-public python-jsonschema
3233 (name "python-jsonschema")
3237 (uri (pypi-uri "jsonschema" version))
3240 "0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
3241 (build-system python-build-system)
3244 (modify-phases %standard-phases
3246 (lambda* (#:key inputs outputs #:allow-other-keys)
3247 (add-installed-pythonpath inputs outputs)
3248 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
3249 (invoke "trial" "jsonschema"))))))
3251 `(("python-setuptools_scm" ,python-setuptools-scm)
3252 ("python-twisted" ,python-twisted)))
3254 `(("python-attrs" ,python-attrs)
3255 ("python-importlib-metadata" ,python-importlib-metadata) ;; python < 3.8
3256 ("python-pyrsistent" ,python-pyrsistent)
3257 ("python-six" ,python-six)))
3258 (home-page "https://github.com/Julian/jsonschema")
3259 (synopsis "Implementation of JSON Schema for Python")
3261 "Jsonschema is an implementation of JSON Schema for Python.")
3262 (license license:expat)
3263 (properties `((python2-variant . ,(delay python2-jsonschema))))))
3265 (define-public python2-jsonschema
3266 (let ((jsonschema (package-with-python2
3267 (strip-python2-variant python-jsonschema))))
3268 (package/inherit jsonschema
3270 `(("python2-functools32" ,python2-functools32)
3271 ,@(package-propagated-inputs jsonschema))))))
3273 (define-public python-schema
3275 (name "python-schema")
3280 (uri (pypi-uri "schema" version))
3283 "1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
3284 (build-system python-build-system)
3286 `(("python-pytest" ,python-pytest)))
3287 (home-page "https://github.com/keleshev/schema")
3288 (synopsis "Simple data validation library")
3290 "@code{python-schema} is a library for validating Python data
3291 structures, such as those obtained from config-files, forms, external
3292 services or command-line parsing, converted from JSON/YAML (or
3293 something else) to Python data-types.")
3294 (license license:psfl)))
3296 (define-public python2-schema
3297 (package-with-python2 python-schema))
3299 (define-public python-schema-0.5
3300 (package (inherit python-schema)
3305 (uri (pypi-uri "schema" version))
3308 "10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
3310 (define-public python2-schema-0.5
3311 (package-with-python2 python-schema-0.5))
3313 (define-public python-kitchen
3315 (name "python-kitchen")
3320 (uri (pypi-uri "kitchen" version))
3323 "1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
3324 (build-system python-build-system)
3326 `(("python-chardet" ,python-chardet)))
3327 (home-page "https://github.com/fedora-infra/kitchen")
3328 (synopsis "Python API for snippets")
3329 (description "@code{kitchen} module provides a python API for all sorts of
3330 little useful snippets of code that everybody ends up writing for their projects
3331 but never seem big enough to build an independent release. Use kitchen and stop
3332 cutting and pasting that code over and over.")
3333 (license (list license:lgpl2.1+
3334 ;; subprocess.py, test_subprocess.py,
3335 ;; kitchen/pycompat25/defaultdict.py:
3338 (define-public python2-kitchen
3339 (package-with-python2 python-kitchen))
3341 (define-public python-roman
3343 (name "python-roman")
3348 (uri (pypi-uri "roman" version))
3351 "0gyp2bmw47jgpm8j64gydzqq838bgxz5gh6cm57lxlr7p26sqiic"))))
3352 (build-system python-build-system)
3353 (home-page "https://github.com/zopefoundation/roman")
3354 (synopsis "Integer to Roman numerals converter")
3356 "This package provides a small helper library to convert Arabic Numbers
3357 to Roman Numerals.")
3358 (license license:psfl)))
3360 (define-public python-unidecode
3362 (name "python-unidecode")
3366 (uri (pypi-uri "Unidecode" version))
3369 "1s6cp2lv4m0f00hjckjz8p6m7d3n3v16jvg353llf5ia1iqsnsib"))))
3370 (build-system python-build-system)
3371 (home-page "https://pypi.org/project/Unidecode/")
3372 (synopsis "ASCII transliterations of Unicode text")
3374 "Unidecode provides ASCII transliterations of Unicode text. Unidecode is
3375 useful when integrating with legacy code that doesn't support Unicode, or for
3376 ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
3377 machine identifiers from human-readable Unicode strings that should still be
3378 somewhat intelligible.")
3379 (license license:gpl2+)))
3381 (define-public python2-unidecode
3382 (package-with-python2 python-unidecode))
3384 (define-public python-text-unidecode
3386 (name "python-text-unidecode")
3390 (uri (pypi-uri "text-unidecode" version))
3393 "14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
3394 (build-system python-build-system)
3396 '(#:phases (modify-phases %standard-phases
3399 (setenv "PYTHONPATH"
3400 (string-append "./build/lib:"
3401 (getenv "PYTHONPATH")))
3402 (invoke "pytest" "-vv"))))))
3404 `(("python-pytest" ,python-pytest)))
3405 (home-page "https://github.com/kmike/text-unidecode/")
3406 (synopsis "Decode Unicode data")
3408 "@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
3409 Perl library. It can create ASCII representations of Unicode data. In general
3410 users should prefer the @code{python-unidecode} package which offers better
3411 memory usage and transliteration quality.")
3412 ;; The user can choose either license.
3413 (license (list license:clarified-artistic license:gpl2+))))
3415 (define-public python2-text-unidecode
3416 (package-with-python2 python-text-unidecode))
3418 (define-public python-pyjwt
3420 (name "python-pyjwt")
3425 (uri (pypi-uri "PyJWT" version))
3428 "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"))
3429 (modules '((guix build utils)))
3432 (for-each delete-file-recursively
3433 (find-files "." "\\.pyc$"))
3435 (build-system python-build-system)
3437 '(#:phases (modify-phases %standard-phases
3440 ;; Mimic upstream commit 3a20892442b34c7 to get
3441 ;; rid of dependency on pytest-runner < 5.0.
3442 ;; Remove substitution for PyJWT > 1.7.1.
3443 (substitute* "setup.py"
3444 ((".*pytest-runner.*")
3446 (invoke "pytest" "-vv"))))))
3448 `(("python-pytest" ,python-pytest)
3449 ("python-pytest-cov" ,python-pytest-cov)))
3450 (home-page "https://github.com/progrium/pyjwt")
3451 (synopsis "JSON Web Token implementation in Python")
3453 "PyJWT is a JSON Web Token implementation written in Python.")
3454 (license license:expat)))
3456 (define-public python2-pyjwt
3457 (package-with-python2 python-pyjwt))
3459 (define-public python-pymsgbox
3461 (name "python-pymsgbox")
3467 ;; LICENSE.txt is not present on pypi
3468 (url "https://github.com/asweigart/PyMsgBox")
3469 (commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
3470 (file-name (git-file-name name version))
3473 "0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
3475 ;; Circular dependency to run tests:
3476 ;; Tests need pyautogui, which depends on pymsgbox.
3478 (build-system python-build-system)
3479 (home-page "https://github.com/asweigart/PyMsgBox")
3480 (synopsis "Python module for JavaScript-like message boxes")
3482 "PyMsgBox is a simple, cross-platform, pure Python module for
3483 JavaScript-like message boxes. Types of dialog boxes include:
3491 (license license:bsd-3)))
3493 (define-public python-pympler
3495 (name "python-pympler")
3496 (home-page "https://pythonhosted.org/Pympler/")
3500 (uri (pypi-uri "Pympler" version))
3503 "08mrpnb6cv2nvfncvr8a9a8bpwhnasa924anapnjvnaw5jcd4k7p"))))
3504 (build-system python-build-system)
3506 `(#:phases (modify-phases %standard-phases
3508 (add-after 'install 'check
3509 (lambda* (#:key inputs outputs #:allow-other-keys)
3510 (add-installed-pythonpath inputs outputs)
3511 (invoke "python" "setup.py" "test"))))))
3512 (synopsis "Measure, monitor and analyze memory behavior")
3514 "Pympler is a development tool to measure, monitor and analyze
3515 the memory behavior of Python objects in a running Python application.
3517 By pympling a Python application, detailed insight in the size and the
3518 lifetime of Python objects can be obtained. Undesirable or unexpected
3519 runtime behavior like memory bloat and other @samp{pymples} can easily
3522 A web profiling frontend exposes process statistics, garbage
3523 visualisation and class tracker statistics.")
3524 (license license:asl2.0)))
3526 (define-public python2-pympler
3527 (package-with-python2 python-pympler))
3529 (define-public python-itsdangerous
3531 (name "python-itsdangerous")
3536 (uri (pypi-uri "itsdangerous" version))
3539 "068zpbksq5q2z4dckh2k1zbcq43ay74ylqn77rni797j0wyh66rj"))))
3540 (build-system python-build-system)
3541 (home-page "https://palletsprojects.com/p/itsdangerous/")
3542 (synopsis "Python library for passing data to/from untrusted environments")
3544 "Itsdangerous provides various helpers to pass trusted data to untrusted
3545 environments and back.")
3546 (license license:bsd-3)))
3548 (define-public python2-itsdangerous
3549 (package-with-python2 python-itsdangerous))
3551 (define-public python-pyyaml
3553 (name "python-pyyaml")
3558 (uri (pypi-uri "PyYAML" version))
3561 "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0"))))
3562 (build-system python-build-system)
3564 `(("libyaml" ,libyaml)))
3565 (home-page "https://pyyaml.org")
3566 (synopsis "YAML parser and emitter for Python")
3568 "PyYAML is a YAML parser and emitter for Python. PyYAML features a
3569 complete YAML 1.1 parser, Unicode support, pickle support, capable extension
3570 API, and sensible error messages. PyYAML supports standard YAML tags and
3571 provides Python-specific tags that represent an arbitrary Python object.")
3572 (license license:expat)))
3574 (define-public python2-pyyaml
3575 (package-with-python2 python-pyyaml))
3577 (define-public python-vine
3579 (name "python-vine")
3584 (uri (pypi-uri "vine" version))
3587 "0wkskb2hb494v9gixqnf4bl972p4ibcmxdykzpwjlfa5picns4aj"))))
3588 (build-system python-build-system)
3590 `(("python-pytest" ,python-pytest)
3591 ("python-case" ,python-case)))
3592 (home-page "https://github.com/celery/vine")
3593 (synopsis "Promises for Python")
3595 "@code{vine} provides a special implementation of promises in that it can
3596 be used both for \"promise of a value\" and lazy evaluation. The biggest
3597 upside for this is that everything in a promise can also be a promise,
3598 e.g. filters, callbacks and errbacks can all be promises.")
3599 (license license:bsd-3)))
3601 (define-public python-virtualenv
3603 (name "python-virtualenv")
3608 (uri (pypi-uri "virtualenv" version))
3611 "1rd6wmymsgv0cdsn50jwybcvbbslzym3mzffcjbl42l8br9cgap0"))))
3612 (build-system python-build-system)
3614 `(("python-mock" ,python-mock)
3615 ("python-pytest" ,python-pytest)
3616 ;; NOTE: guix lint remarks that "python-setuptools should probably not
3617 ;; be an input at all". However, removing the input makes the build error:
3618 ;; File "setup.py", line 4, in <module>
3619 ;; raise RuntimeError("setuptools >= 41 required to build")
3620 ("python-setuptools" ,python-setuptools)
3621 ("python-setuptools-scm" ,python-setuptools-scm)))
3623 `(("python-appdirs" ,python-appdirs)
3624 ("python-distlib" ,python-distlib/next)
3625 ("python-filelock" ,python-filelock)
3626 ("python-six" ,python-six)
3627 ("python-importlib-metadata" ,python-importlib-metadata)))
3628 (home-page "https://virtualenv.pypa.io/")
3629 (synopsis "Virtual Python environment builder")
3631 "Virtualenv is a tool to create isolated Python environments.")
3632 (license license:expat)))
3634 (define-public python-markupsafe
3636 (name "python-markupsafe")
3641 (uri (pypi-uri "MarkupSafe" version))
3644 "0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
3645 (build-system python-build-system)
3647 `(#:modules ((ice-9 ftw)
3651 (guix build python-build-system))
3652 #:phases (modify-phases %standard-phases
3655 (let ((cwd (getcwd))
3656 (libdir (find (cut string-prefix? "lib." <>)
3657 (scandir "build"))))
3658 (setenv "PYTHONPATH"
3659 (string-append cwd "/build/" libdir ":"
3660 (getenv "PYTHONPATH")))
3661 (invoke "pytest" "-vv")))))))
3663 `(("python-pytest" ,python-pytest)))
3664 (home-page "https://github.com/mitsuhiko/markupsafe")
3665 (synopsis "XML/HTML/XHTML markup safe string implementation for Python")
3667 "Markupsafe provides an XML/HTML/XHTML markup safe string implementation
3669 (license license:bsd-3)))
3671 (define-public python2-markupsafe
3672 (package-with-python2 python-markupsafe))
3674 (define-public python-jinja2
3676 (name "python-jinja2")
3681 (uri (pypi-uri "Jinja2" version))
3684 "1c1v3djnr0ymp5xpy1h3h60abcaqxdlm4wsqmls9rxby88av5al9"))))
3685 (build-system python-build-system)
3687 '(#:phases (modify-phases %standard-phases
3689 (lambda* (#:key tests? #:allow-other-keys)
3692 (setenv "PYTHONPATH"
3693 (string-append "./build/lib:"
3694 (getenv "PYTHONPATH")))
3695 (invoke "pytest" "-vv"))
3696 (format #t "test suite not run~%"))
3699 `(("python-pytest" ,python-pytest)))
3701 `(("python-markupsafe" ,python-markupsafe)))
3702 (home-page "http://jinja.pocoo.org/")
3703 (synopsis "Python template engine")
3705 "Jinja2 is a small but fast and easy to use stand-alone template engine
3706 written in pure Python.")
3707 (license license:bsd-3)))
3709 (define-public python2-jinja2
3710 (package-with-python2 python-jinja2))
3712 (define-public python-jinja2-time
3714 (name "python-jinja2-time")
3719 (uri (pypi-uri "jinja2-time" version))
3722 "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
3723 (build-system python-build-system)
3725 `(("python-arrow" ,python-arrow)
3726 ("python-jinja2" ,python-jinja2)))
3728 "https://github.com/hackebrot/jinja2-time")
3729 (synopsis "Jinja2 Extension for Dates and Times")
3731 "This package provides an extension for the template engine Jinja2. It
3732 adds a 'now' tag providing a convenient access to the arrow.now() API from
3733 templates. A format string can be provided to control the output.")
3734 (license license:expat)))
3736 (define-public python-pystache
3738 (name "python-pystache")
3742 (uri (pypi-uri "pystache" version))
3745 "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
3746 (build-system python-build-system)
3748 '(#:tests? #f)) ; FIXME: Python 3 tests are failing.
3749 (home-page "http://defunkt.io/pystache/")
3750 (synopsis "Python logic-less template engine")
3752 "Pystache is a Python implementation of the framework agnostic,
3753 logic-free templating system Mustache.")
3754 (license license:expat)
3755 (properties `((python2-variant . ,(delay python2-pystache))))))
3757 (define-public python2-pystache
3758 (let ((base (package-with-python2
3759 (strip-python2-variant python-pystache))))
3760 (package/inherit base
3762 `(#:python ,python-2
3764 (modify-phases %standard-phases
3767 (invoke "python" "test_pystache.py")))))))))
3769 (define-public python-joblib
3771 (name "python-joblib")
3775 (uri (pypi-uri "joblib" version))
3778 "1j464w137w6s367gl697j1l63g52akydrxgv4czlck36ynjfwc06"))))
3779 (build-system python-build-system)
3782 (modify-phases %standard-phases
3784 (lambda _ (invoke "pytest" "-v" "joblib"))))))
3786 `(("python-pytest" ,python-pytest)))
3787 (home-page "https://joblib.readthedocs.io/")
3788 (synopsis "Using Python functions as pipeline jobs")
3790 "Joblib is a set of tools to provide lightweight pipelining in Python.
3791 In particular, joblib offers: transparent disk-caching of the output values
3792 and lazy re-evaluation (memoize pattern), easy simple parallel computing
3793 logging and tracing of the execution.")
3794 (license license:bsd-3)))
3796 (define-public python2-joblib
3797 (package-with-python2 python-joblib))
3799 (define-public python-daemon
3801 (name "python-daemon")
3806 (uri (pypi-uri "python-daemon" version))
3809 "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg"))))
3810 (build-system python-build-system)
3813 (modify-phases %standard-phases
3814 (add-before 'check 'disable-tests
3816 ;; FIXME: Determine why test fails
3817 (substitute* "test/test_daemon.py"
3818 (("test_detaches_process_context")
3819 "skip_test_detaches_process_context"))
3822 `(("python-lockfile" ,python-lockfile)))
3824 `(("python-unittest2" ,python-unittest2)
3825 ("python-testtools" ,python-testtools)
3826 ("python-testscenarios" ,python-testscenarios)
3827 ("python-mock" ,python-mock)
3828 ("python-docutils" ,python-docutils)))
3829 (home-page "https://pagure.io/python-daemon/")
3830 (synopsis "Python library for making a Unix daemon process")
3831 (description "Python-daemon is a library that assists a Python program to
3832 turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
3834 This library provides a @code{DaemonContext} class that manages the following
3835 important tasks for becoming a daemon process:
3837 @item Detach the process into its own process group.
3838 @item Set process environment appropriate for running inside a chroot.
3839 @item Renounce suid and sgid privileges.
3840 @item Close all open file descriptors.
3841 @item Change the working directory, uid, gid, and umask.
3842 @item Set appropriate signal handlers.
3843 @item Open new file descriptors for stdin, stdout, and stderr.
3844 @item Manage a specified PID lock file.
3845 @item Register cleanup functions for at-exit processing.
3847 ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
3848 (license (list license:asl2.0 license:gpl3+))))
3850 (define-public python-anytree
3852 (name "python-anytree")
3856 (uri (pypi-uri "anytree" version))
3859 "1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
3860 (build-system python-build-system)
3862 `(("python-six" ,python-six)))
3865 ("graphviz" ,graphviz) ;for 'dot'
3866 ("python-nose" ,python-nose)))
3867 (home-page "https://github.com/c0fec0de/anytree")
3868 (synopsis "Lightweight tree data library")
3870 "@code{anytree} is a simple, lightweight, and extensible tree data
3871 structure for Python.")
3872 (license license:asl2.0)))
3874 (define-public python-docutils
3876 (name "python-docutils")
3881 (uri (pypi-uri "docutils" version))
3884 "1z3qliszqca9m719q3qhdkh0ghh90g500avzdgi7pl77x5h3mpn2"))))
3885 (build-system python-build-system)
3887 '(#:phases (modify-phases %standard-phases
3889 (lambda* (#:key tests? #:allow-other-keys)
3891 (invoke "python" "test/alltests.py")
3892 (format #t "test suite not run~%"))
3894 (home-page "http://docutils.sourceforge.net/")
3895 (synopsis "Python Documentation Utilities")
3897 "Docutils is a modular system for processing documentation into useful
3898 formats, such as HTML, XML, and LaTeX. It uses @dfn{reStructuredText}, an
3899 easy to use markup language, for input.
3901 This package provides tools for converting @file{.rst} files to other formats
3902 via commands such as @command{rst2man}, as well as supporting Python code.")
3903 ;; Most of the source code is public domain, but some source files are
3904 ;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
3905 (license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
3907 (define-public python2-docutils
3908 (package-with-python2 python-docutils))
3910 ;; python2-sphinx fails its test suite with newer versions.
3911 (define-public python2-docutils-0.14
3913 (inherit python2-docutils)
3917 (uri (pypi-uri "docutils" version))
3920 "0x22fs3pdmr42kvz6c654756wja305qv6cx1zbhwlagvxgr4xrji"))))))
3922 (define-public python-restructuredtext-lint
3924 (name "python-restructuredtext-lint")
3929 (uri (pypi-uri "restructuredtext-lint" version))
3932 "026rdy5h82ng4vqxk8fnprii9d6qxf7hkygiv0a8afjvdlsxmcwp"))))
3933 (build-system python-build-system)
3936 (modify-phases %standard-phases
3938 (add-after 'install 'check
3939 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3941 (add-installed-pythonpath inputs outputs)
3942 (invoke "nosetests" "-v"))
3945 `(("python-docutils" ,python-docutils)))
3947 `(("python-nose" ,python-nose)))
3948 (home-page "https://github.com/twolfson/restructuredtext-lint")
3949 (synopsis "reStructuredText linter")
3950 (description "This package provides a linter for the reStructuredText
3952 (license license:unlicense)))
3954 (define-public python-doc8
3956 (name "python-doc8")
3961 (uri (pypi-uri "doc8" version))
3964 "0hw5w8mpgsp51qg8nnq28p7y1jiksvz7a0axnn5bkgss3af9zy1d"))))
3965 (build-system python-build-system)
3968 (modify-phases %standard-phases
3970 (add-after 'install 'check
3971 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3973 (add-installed-pythonpath inputs outputs)
3974 (invoke "pytest" "-v"))
3977 `(("python-chardet" ,python-chardet)
3978 ("python-docutils" ,python-docutils)
3979 ("python-restructuredtext-lint" ,python-restructuredtext-lint)
3980 ("python-six" ,python-six)
3981 ("python-stevedore" ,python-stevedore)))
3983 `(("python-testtools" ,python-testtools)
3984 ("python-pytest" ,python-pytest)))
3985 (home-page "https://launchpad.net/doc8")
3987 "Style checker for Sphinx (or other) RST documentation")
3989 "Doc8 is an opinionated style checker for reStructured Text and plain
3990 text styles of documentation.")
3991 (license license:asl2.0)))
3993 (define-public python-pygments
3995 (name "python-pygments")
4000 (uri (pypi-uri "Pygments" version))
4003 "05mps9r966r3dpqw6zrs1nlwjdf5y4960hl9m7abwb3qyfnarwyc"))))
4004 (replacement python-pygments/fixed)
4005 (build-system python-build-system)
4007 ;; FIXME: Tests require sphinx, which depends on this.
4009 (home-page "https://pygments.org/")
4010 (synopsis "Syntax highlighting")
4012 "Pygments is a syntax highlighting package written in Python.")
4013 (license license:bsd-2)
4014 (properties `((python2-variant . ,(delay python2-pygments))))))
4016 (define python-pygments/fixed
4018 (inherit python-pygments)
4023 (uri (pypi-uri "Pygments" version))
4026 "0dy35ry5qa8dpklk4fkj9kfpw2qb4mh5ha9866kw30wf96dx0jfz"))))))
4028 ;; Pygments 2.6 and later does not support Python 2.
4029 (define-public python2-pygments
4030 (let ((base (package-with-python2 (strip-python2-variant python-pygments))))
4036 (uri (pypi-uri "Pygments" version))
4039 "1zmhnswy0wxfn0xprs9aqsvx2c3kmzfn2wx14q8cv3vpkxdamj4q")))))))
4041 (define-public python-pygments-github-lexers
4043 (name "python-pygments-github-lexers")
4048 (uri (pypi-uri "pygments-github-lexers" version))
4051 "0cz14clcc9z4pn79ll8hp3xzgsrfjscak5zfsvlgrz6ngkkmgjma"))))
4052 (build-system python-build-system)
4054 `(("python-pygments" ,python-pygments)))
4055 (home-page "https://github.com/liluo/pygments-github-lexers")
4056 (synopsis "Pygments Github custom lexers")
4057 (description "This package installs Github custom lexers to Pygments.")
4058 (license license:bsd-3)))
4060 (define-public python-bump2version
4062 (name "python-bump2version")
4067 (uri (pypi-uri "bump2version" version))
4069 (base32 "1rinm4gv1fyh7xjv3v6r1p3zh5kl4ry2qifz5f7frx31mnzv4b3n"))))
4070 (build-system python-build-system)
4072 ;; XXX: Tests fail with "bumpversion: error: the following arguments are
4073 ;; required: --new-version".
4075 (home-page "https://github.com/c4urself/bump2version")
4076 (synopsis "Version-bump your software with a single command!")
4078 "This package provides a small command line tool to simplify releasing
4079 software by updating all version strings in your source code by the correct
4080 increment. It also creates commits and tags.")
4081 (license license:expat)))
4083 (define-public python-bumpversion
4085 (name "python-bumpversion")
4090 (uri (pypi-uri "bumpversion" version))
4093 "0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37"))))
4094 (build-system python-build-system)
4095 (home-page "https://github.com/peritus/bumpversion")
4096 (synopsis "Tool to bump software version")
4097 (description "This tool provides a command-line interface (CLI) to bump a
4098 software version simply.")
4099 (license license:expat)))
4101 (define-public python-deprecated
4103 (name "python-deprecated")
4109 (url "https://github.com/tantale/deprecated")
4110 (commit (string-append "v" version))))
4111 (file-name (git-file-name name version))
4114 "14909glxxwwc4b9qpz2b9jdriwzi5n65ichw85xqppap5f79wcwz"))))
4115 (build-system python-build-system)
4117 `(#:phases (modify-phases %standard-phases
4120 (invoke "pytest"))))))
4122 `(("python-wrapt" ,python-wrapt)))
4124 `(("python-bumpversion" ,python-bumpversion)
4125 ("python-pytest" ,python-pytest)
4126 ("python-pytest-cov" ,python-pytest-cov)
4127 ("python-sphinx" ,python-sphinx)
4128 ("python-tox" ,python-tox)))
4129 (home-page "https://github.com/tantale/deprecated")
4130 (synopsis "Python decorator to deprecate classes, functions or methods")
4131 (description "The @code{deprecated} decorator provides a convenient way to deprecate
4132 to deprecate classes, functions or methods.")
4133 (license license:expat)))
4135 (define-public python-pygithub
4137 (name "python-pygithub")
4140 ;; We fetch from the Git repo because there are no tests in the PyPI
4145 (url "https://github.com/PyGithub/PyGithub")
4146 (commit (string-append "v" version))))
4147 (file-name (git-file-name name version))
4149 (base32 "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq"))))
4150 (build-system python-build-system)
4153 (modify-phases %standard-phases
4155 (lambda* (#:key tests? #:allow-other-keys)
4160 `(("python-cryptography" ,python-cryptography)
4161 ("python-deprecated" ,python-deprecated)
4162 ("python-pyjwt" ,python-pyjwt)
4163 ("python-requests" ,python-requests)))
4165 `(("python-httpretty" ,python-httpretty)
4166 ("python-pytest" ,python-pytest)))
4167 (home-page "https://pygithub.readthedocs.io/en/latest/")
4168 (synopsis "Python library for the GitHub API")
4169 (description "This library allows managing GitHub resources such as
4170 repositories, user profiles, and organizations in your Python applications,
4171 using version 3 of the GitHub application programming interface (API).")
4172 (license license:lgpl3+)))
4174 (define-public python-rellu
4176 (name "python-rellu")
4181 (uri (pypi-uri "rellu" version))
4184 "1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x"))))
4185 (build-system python-build-system)
4187 `(("python-invoke" ,python-invoke)
4188 ("python-pygithub" ,python-pygithub)))
4189 (home-page "https://github.com/robotframework/rellu")
4190 (synopsis "Utilities to create PyPI releases")
4191 (description "This collection of utilities contains tooling and templates
4192 to assist in creating releases on GitHub and publishing them on PyPI. It is
4193 designed to be used by Robot Framework and tools and libraries in its
4194 ecosystem, but can naturally be used also by other projects.")
4195 (license license:asl2.0)))
4197 (define-public python-robotframework
4199 (name "python-robotframework")
4201 ;; There are no tests in the PyPI archive.
4206 (url "https://github.com/robotframework/robotframework")
4207 (commit (string-append "v" version))))
4208 (file-name (git-file-name name version))
4210 (base32 "0if0h3myb9m3hgmn1phrhq8pfp89kfqsaq32vmfdjkyjdj7y59ds"))
4211 (patches (search-patches
4212 "python-robotframework-source-date-epoch.patch"))))
4213 (build-system python-build-system)
4215 `(#:phases (modify-phases %standard-phases
4216 (add-before 'build 'build-and-install-doc
4217 (lambda* (#:key outputs #:allow-other-keys)
4218 (let* ((doc-output (assoc-ref outputs "doc"))
4219 (doc (string-append doc-output "/share/"
4220 ,name "-" ,version "/")))
4221 (invoke "invoke" "library-docs" "all")
4223 (copy-recursively "doc/libraries"
4224 (string-append doc "/libraries"))
4227 (lambda* (#:key inputs #:allow-other-keys)
4228 ;; Some tests require timezone data. Otherwise, they
4229 ;; look up /etc/localtime, which doesn't exist, and fail
4232 ;; OverflowError: mktime argument out of range
4234 (string-append (assoc-ref inputs "tzdata")
4236 (setenv "TZ" "Europe/Paris")
4238 (invoke "python" "utest/run.py"))))))
4240 `(("python-invoke" ,python-invoke)
4241 ("python-rellu" ,python-rellu)
4242 ("python:tk" ,python "tk") ;used when building the HTML doc
4243 ("tzdata" ,tzdata-for-tests)))
4244 (outputs '("out" "doc"))
4245 (home-page "https://robotframework.org")
4246 (synopsis "Generic automation framework")
4247 (description "Robot Framework is a generic automation framework for
4248 acceptance testing, acceptance test driven development (ATDD), and robotic
4249 process automation (RPA).")
4250 (license license:asl2.0)))
4252 (define-public python-robotframework-lint
4253 ;; There is no properly tagged release; the commit below seems to correspond
4254 ;; to the 0.9 stable release available from PyPI. The tests are not
4255 ;; included in the PyPI archive, so we fetch the sources from the upstream
4257 (let ((commit "b0619ac58a8b1be125f9c98856a664594614570f")
4260 (name "python-robotframework-lint")
4261 (version (git-version "1.1" ;version taken from 'rflint/version.py'
4267 (url "https://github.com/boakley/robotframework-lint")
4269 (file-name (git-file-name name version))
4272 "180npmvzqync25b2scs878gv8q4y17dsinxyjcc10bw22msfap6b"))))
4273 (build-system python-build-system)
4276 (modify-phases %standard-phases
4279 (invoke "python" "-m" "robot" "-A"
4280 "tests/conf/default.args" "tests"))))))
4282 `(("python-robotframework" ,python-robotframework)))
4283 (home-page "https://github.com/boakley/robotframework-lint/")
4284 (synopsis "Static analysis tool (linter) for Robot Framework")
4285 (description "This package provides the @code{rflint} command-line
4286 utility, a static analysis tool (linter) for Robot Framework source files.")
4287 (license license:asl2.0))))
4289 (define-public python-robotframework-sshlibrary
4291 (name "python-robotframework-sshlibrary")
4293 ;; There are no tests in the PyPI archive.
4298 (url "https://github.com/robotframework/SSHLibrary")
4299 (commit (string-append "v" version))))
4300 (file-name (git-file-name name version))
4303 "1mk6dz2jqqndbx4yji09012q6rmadnqdywi7czvj62b0s07dr3r2"))))
4304 (build-system python-build-system)
4307 (modify-phases %standard-phases
4308 (add-before 'build 'build-and-install-doc
4309 (lambda* (#:key outputs #:allow-other-keys)
4310 (let* ((doc-output (assoc-ref outputs "doc"))
4311 (doc (string-append doc-output "/share/"
4312 ,name "-" ,version "/")))
4313 (invoke "chmod" "-R" "+w" "docs")
4314 (invoke "invoke" "kw-docs" "project-docs")
4316 (for-each delete-file (find-files "docs" "\\.rst"))
4317 (copy-recursively "docs" doc)
4321 ;; Some tests require an SSH server; we remove them.
4322 (delete-file "utest/test_client_api.py")
4323 (delete-file "utest/test_scp.py")
4324 (invoke "python" "utest/run.py"))))))
4326 `(("python-robotframework" ,python-robotframework)
4327 ("python-paramiko" ,python-paramiko)
4328 ("python-scp" ,python-scp)))
4330 `(("openssh" ,openssh)
4332 ;; To generate the documentation
4333 ("python-docutils" ,python-docutils)
4334 ("python-invoke" ,python-invoke)
4335 ("python-pygments" ,python-pygments)
4336 ("python-rellu" ,python-rellu)))
4337 (outputs '("out" "doc"))
4338 (home-page "https://github.com/robotframework/SSHLibrary")
4339 (synopsis "Robot Framework library for SSH and SFTP")
4340 (description "SSHLibrary is a Robot Framework library providing support
4341 for SSH and SFTP. It has the following main usages:
4343 @item Executing commands on the remote machine, either blocking or non-blocking.
4344 @item Writing and reading in an interactive shell.
4345 @item Transferring files and directories over SFTP.
4346 @item Ensuring that files and directories exist on the remote machine.
4348 (license license:asl2.0)))
4350 (define-public python-rstr
4352 (name "python-rstr")
4357 (uri (pypi-uri "rstr" version))
4360 "197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx"))))
4361 (build-system python-build-system)
4362 (home-page "https://github.com/leapfrogonline/rstr")
4363 (synopsis "Generate random strings in Python")
4364 (description "This package provides a python module for generating
4365 random strings of various types. It could be useful for fuzz testing,
4366 generating dummy data, or other applications. It has no dependencies
4367 outside the standard library.")
4368 (license license:bsd-3)))
4370 (define-public python-scp
4377 (uri (pypi-uri "scp" version))
4379 (base32 "1m2v09m407p097cy3xy5rxicqfzrqjwf8v5rd4qhfqkk7lllimwb"))))
4380 (build-system python-build-system)
4382 '(#:tests? #f)) ;tests require an SSH server
4384 `(("python-paramiko" ,python-paramiko)))
4385 (home-page "https://github.com/jbardin/scp.py")
4386 (synopsis "SCP protocol module for Python and Paramiko")
4387 (description "The scp module extends the Paramiko library to send and
4388 receive files via the SCP1 protocol, as implemented by the OpenSSH
4389 @command{scp} program.")
4390 (license license:gpl2+)))
4392 (define-public python-rst.linker
4394 (name "python-rst.linker")
4399 (uri (pypi-uri "rst.linker" version))
4401 (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
4402 (build-system python-build-system)
4404 `(("python-dateutil" ,python-dateutil)
4405 ("python-six" ,python-six)))
4407 `(("python-setuptools-scm" ,python-setuptools-scm)))
4408 ;; Test would require path.py, which would introduce a cyclic dependence.
4409 (arguments `(#:tests? #f))
4410 ;; Note: As of version 1.7 the documentation is not worth building.
4411 (home-page "https://github.com/jaraco/rst.linker")
4412 (synopsis "Sphinx plugin to add links and timestamps")
4413 (description "rst.linker automatically replaces text by a
4414 reStructuredText external reference or timestamps. It's primary purpose is to
4415 augment the changelog, but it can be used for other documents, too.")
4416 (license license:expat)))
4418 (define-public python2-rst.linker
4419 (package-with-python2 python-rst.linker))
4421 (define-public python-sshpubkeys
4423 (name "python-sshpubkeys")
4425 (home-page "https://github.com/ojarva/python-sshpubkeys")
4430 (commit (string-append "v" version))))
4431 (file-name (git-file-name name version))
4434 "1h4gwmcfn84kkqh83km1vfz8sc5kr2g4gzgzmr8gz704jmqiv7nq"))))
4435 (build-system python-build-system)
4437 `(("python-cryptography" ,python-cryptography)
4438 ("python-ecdsa" ,python-ecdsa)))
4439 (synopsis "OpenSSH public key parser")
4441 "This package provides a library for parsing and validating OpenSSH
4443 (license license:bsd-3)))
4445 (define-public python-feedgenerator
4447 (name "python-feedgenerator")
4452 (uri (pypi-uri "feedgenerator" version))
4455 "01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
4456 (modules '((guix build utils)))
4459 ;; Remove pre-compiled .pyc files from source.
4460 (for-each delete-file-recursively
4461 (find-files "." "__pycache__" #:directories? #t))
4462 (for-each delete-file (find-files "." "\\.pyc$"))
4464 (build-system python-build-system)
4466 `(("python-pytz" ,python-pytz)
4467 ("python-six" ,python-six)))
4468 (home-page "https://github.com/getpelican/feedgenerator")
4470 "Standalone version of Django's Atom/RSS feed generator")
4472 "Feedgenerator-py3k is a standalone version of Django's feedgenerator,
4473 which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
4474 (license license:bsd-3)))
4476 (define-public python2-feedgenerator
4477 (package-with-python2 python-feedgenerator))
4479 (define-public python-jsonrpc-server
4481 (name "python-jsonrpc-server")
4486 (uri (pypi-uri "python-jsonrpc-server" version))
4489 "1585ybn3djvx5r5zbxkzlhz2wb1d47y4wrfwaxdyq0gi87jl7ib2"))))
4490 (build-system python-build-system)
4492 `(("python-mock" ,python-mock)
4493 ("python-pytest" ,python-pytest)
4494 ("python-ujson" ,python-ujson)))
4496 "https://github.com/palantir/python-jsonrpc-server")
4497 (synopsis "JSON RPC 2.0 server library")
4499 "This package provides a JSON RPC 2.0 server library for Python.")
4500 (license license:expat)))
4502 (define-public python-pydantic
4504 (name "python-pydantic")
4510 (url "https://github.com/samuelcolvin/pydantic")
4511 (commit (string-append "v" version))))
4512 (file-name (git-file-name name version))
4514 (base32 "06162dss6mvi7wiy2lzxwvzajwxgy8b2fyym7qipaj7zibcqalq2"))))
4515 (build-system python-build-system)
4518 (modify-phases %standard-phases
4519 (add-before 'check 'disable-test
4521 ;; Reported upstream:
4522 ;; <https://github.com/samuelcolvin/pydantic/issues/1580>.
4523 ;; Disable the faulty test as the fix is unclear.
4524 (substitute* "tests/test_validators.py"
4525 (("test_assert_raises_validation_error")
4526 "_test_assert_raises_validation_error"))
4528 ;; These fail because of <https://bugs.python.org/issue40398>.
4529 ;; Remove after Python has been upgraded to >= 3.9.
4530 (substitute* "tests/test_generics.py"
4531 (("assert replace_types\\(Callable, \\{T: int\\}\\) == Callable")
4533 (substitute* "tests/test_schema.py"
4534 (("test_unenforced_constraints_schema")
4535 "_test_unenforced_constraints_schema"))
4537 ;; Disable tests for the Hypothesis plugin because it is tricky
4538 ;; to configure in the build container.
4539 (delete-file "tests/test_hypothesis_plugin.py")))
4541 (lambda _ (invoke "pytest" "-vv"))))))
4543 `(("python-pytest" ,python-pytest)
4544 ("python-pytest-mock" ,python-pytest-mock)))
4546 `(("python-typing-extensions" ,python-typing-extensions)))
4547 (home-page "https://github.com/samuelcolvin/pydantic")
4548 (synopsis "Python data validation and settings management")
4550 "Pydantic enforces type hints at runtime, and provides user friendly
4551 errors when data is invalid.")
4552 (license license:expat)))
4554 (define-public python-pydocstyle
4556 (name "python-pydocstyle")
4561 (uri (pypi-uri "pydocstyle" version))
4564 "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap"))))
4565 (build-system python-build-system)
4567 `(("python-six" ,python-six)
4568 ("python-snowballstemmer" ,python-snowballstemmer)))
4570 "https://github.com/PyCQA/pydocstyle/")
4571 (synopsis "Python docstring style checker")
4573 "This package provides a style checker for the Python Language
4575 (license license:expat)))
4577 (define-public python-language-server
4579 (name "python-language-server")
4584 (uri (pypi-uri "python-language-server" version))
4587 "1c0pnk2aibfhfaanrs0a5gkabkvz81gj20z7r0152b7fcx5ci14r"))))
4588 (build-system python-build-system)
4591 (modify-phases %standard-phases
4592 (add-after 'unpack 'relax-deps
4594 (substitute* "setup.py" (("pycodestyle>=2.6.0,<2.7.0")
4596 (substitute* "setup.py" (("pyflakes>=2.2.0,<2.3.0") "pyflakes"))
4598 (add-before 'check 'set-HOME
4599 (lambda _ (setenv "HOME" "/tmp") #t))
4602 ;; Disable failing test.
4603 (invoke "python" "-m" "pytest" "-k"
4604 "not test_pyqt_completion"))))))
4606 `(("python-autopep8" ,python-autopep8)
4607 ("python-configparser" ,python-configparser)
4608 ("python-pydocstyle" ,python-pydocstyle)
4609 ("python-flake8" ,python-flake8)
4610 ("python-future" ,python-future)
4611 ("python-jedi" ,python-jedi)
4612 ("python-jsonrpc-server" ,python-jsonrpc-server)
4613 ("python-pluggy" ,python-pluggy)
4614 ("python-pycodestyle" ,python-pycodestyle)
4615 ("python-pyflakes" ,python-pyflakes)
4616 ("python-rope" ,python-rope)
4617 ("python-ujson" ,python-ujson)
4618 ("python-yapf" ,python-yapf)))
4620 `(("python-coverage" ,python-coverage)
4621 ("python-flaky" ,python-flaky)
4622 ("python-matplotlib" ,python-matplotlib)
4623 ("python-mock" ,python-mock)
4624 ("python-numpy" ,python-numpy)
4625 ("python-pandas" ,python-pandas)
4626 ("python-pylint" ,python-pylint)
4627 ("python-pytest" ,python-pytest)
4628 ("python-pytest-cov" ,python-pytest-cov)
4629 ("python-versioneer" ,python-versioneer)))
4630 (home-page "https://github.com/palantir/python-language-server")
4631 (synopsis "Python implementation of the Language Server Protocol")
4633 "The Python Language Server (pyls) is an implementation of the Python 3
4634 language specification for the Language Server Protocol (LSP). This tool is
4635 used in text editing environments to provide a complete and integrated
4636 feature-set for programming Python effectively.")
4637 (license license:expat)))
4639 (define-public python-pathspec
4641 (name "python-pathspec")
4646 (uri (pypi-uri "pathspec" version))
4649 "15lvs4awlg8xzl0l4gk9y53xx4yqmqvsv44pglv39m70y85afajn"))))
4650 (build-system python-build-system)
4651 (home-page "https://github.com/cpburnz/python-path-specification")
4652 (synopsis "Utility library for gitignore style pattern matching of file paths")
4654 "This package provides a utility library for gitignore style pattern
4655 matching of file paths.")
4656 (license license:mpl2.0)))
4658 (define-public python-black
4660 (name "python-black")
4665 (uri (pypi-uri "black" version))
4668 "1spv6sldp3mcxr740dh3ywp25lly9s8qlvs946fin44rl1x5a0hw"))))
4669 (build-system python-build-system)
4672 (modify-phases %standard-phases
4673 (add-after 'patch-source-shebangs 'patch-extra-shebangs
4675 (let ((python3 (which "python3")))
4676 (substitute* '("tests/data/fmtonoff.py"
4677 "tests/data/string_prefixes.py"
4678 "tests/data/function.py"
4679 "tests/data/python37.py")
4680 (("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
4681 (string-append "#!" python3 (if (string? minor-version)
4685 (add-after 'unpack 'disable-broken-tests
4686 (lambda* (#:key outputs inputs #:allow-other-keys)
4687 ;; Make installed package available for running the tests
4688 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
4689 ":" (getenv "PATH")))
4691 ;; These tests are supposed to be skipped when the blackd
4692 ;; dependencies are missing, but this doesn't quite work.
4693 (substitute* "tests/test_black.py"
4694 (("( *)class BlackDTestCase.*" match indent)
4695 (string-append indent "@unittest.skip(\"no blackd deps\")\n"
4696 indent "class BlackDTestCase(unittest.TestCase):\n"))
4697 (("web.Application") "False")
4698 (("@unittest_run_loop") ""))
4700 ;; Patching the above file breaks the self test
4701 (substitute* "tests/test_black.py"
4702 (("( *)def test_self" match indent)
4703 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4705 (substitute* "tests/test_black.py"
4706 (("( *)def test_python38" match indent)
4707 (string-append indent "@unittest.skip(\"guix\")\n" match)))
4710 `(("python-click" ,python-click)
4711 ("python-attrs" ,python-attrs)
4712 ("python-appdirs" ,python-appdirs)
4713 ("python-pathspec" ,python-pathspec)
4714 ("python-mypy-extensions" ,python-mypy-extensions)
4715 ("python-regex" ,python-regex)
4716 ("python-toml" ,python-toml)
4717 ("python-typed-ast" ,python-typed-ast)
4718 ("python-typing-extensions" ,python-typing-extensions)))
4720 `(("python-setuptools-scm" ,python-setuptools-scm)))
4721 (home-page "https://github.com/ambv/black")
4722 (synopsis "The uncompromising code formatter")
4723 (description "Black is the uncompromising Python code formatter.")
4724 (license license:expat)))
4726 (define-public python-black-macchiato
4728 (name "python-black-macchiato")
4733 (uri (pypi-uri "black-macchiato" version))
4736 "1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
4737 (build-system python-build-system)
4739 `(("python-black" ,python-black)))
4740 (home-page "https://github.com/wbolster/black-macchiato")
4741 (synopsis "Partial @code{python-black} formatting")
4743 "This package is built on top the @{python-black} code formatter to
4744 enable formatting of partial files.")
4745 (license license:bsd-3)))
4747 (define-public python-blinker
4749 (name "python-blinker")
4754 (uri (pypi-uri "blinker" version))
4757 "1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
4758 (build-system python-build-system)
4759 (home-page "https://pythonhosted.org/blinker/")
4760 (synopsis "Fast, simple object-to-object and broadcast signaling")
4762 "Blinker provides a fast dispatching system that allows any number of
4763 interested parties to subscribe to events, or \"signals\".")
4764 (license license:expat)))
4766 (define-public python2-blinker
4767 (package-with-python2 python-blinker))
4769 (define-public pelican
4776 (uri (pypi-uri "pelican" version))
4779 "0mp7hjyhs38ag1hyfcy882g400z0babqi72pnli46dqijfhajzmy"))))
4780 (build-system python-build-system)
4782 `(("python-blinker" ,python-blinker)
4783 ("python-dateutil" ,python-dateutil)
4784 ("python-docutils" ,python-docutils)
4785 ("python-feedgenerator" ,python-feedgenerator)
4786 ("python-jinja2" ,python-jinja2)
4787 ("python-markdown" ,python-markdown)
4788 ("python-pygments" ,python-pygments)
4789 ("python-pytz" ,python-pytz)
4790 ("python-six" ,python-six)
4791 ("python-unidecode" ,python-unidecode)))
4792 (home-page "https://getpelican.com/")
4794 `(;; XXX Requires a lot more packages to do unit tests :P
4796 (synopsis "Python-based static site publishing system")
4798 "Pelican is a tool to generate a static blog from reStructuredText,
4799 Markdown input files, and more. Pelican uses Jinja2 for templating
4800 and is very extensible.")
4801 (license license:agpl3+)))
4803 (define-public mallard-ducktype
4805 (name "mallard-ducktype")
4810 ;; git-reference because tests are not included in pypi source tarball
4811 ;; https://issues.guix.gnu.org/issue/36755#2
4813 (url "https://github.com/projectmallard/mallard-ducktype")
4815 (file-name (git-file-name name version))
4818 "1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
4819 (build-system python-build-system)
4822 (modify-phases %standard-phases
4825 (with-directory-excursion "tests"
4826 (invoke "sh" "runtests")))))))
4827 (home-page "http://projectmallard.org")
4828 (synopsis "Convert Ducktype to Mallard documentation markup")
4830 "Ducktype is a lightweight syntax that can represent all the semantics
4831 of the Mallard XML documentation system. Ducktype files can be converted to
4832 Mallard using the @command{ducktype} tool. The yelp-tools package
4833 provides additional functionality on the produced Mallard documents.")
4834 (license license:expat)))
4836 (define-public python-cython
4838 (name "python-cython")
4843 (uri (pypi-uri "Cython" version))
4845 (base32 "01jl3544qwsi8lp6anbl55566xqkjd53x452i7m6gnfilv3q6syz"))))
4846 (build-system python-build-system)
4847 ;; we need the full python package and not just the python-wrapper
4848 ;; because we need libpython3.3m.so
4850 `(("python" ,python)))
4853 (modify-phases %standard-phases
4854 (add-before 'check 'set-HOME
4855 ;; some tests require access to "$HOME/.cython"
4856 (lambda _ (setenv "HOME" "/tmp") #t))
4859 ;; Disable compiler optimizations to greatly reduce the running
4860 ;; time of the test suite.
4861 (setenv "CFLAGS" "-O0")
4863 (invoke "python" "runtests.py" "-vv"
4864 "-j" (number->string (parallel-job-count))
4865 ;; XXX: On 32-bit architectures, running the parallel tests
4866 ;; fails on many-core systems, see
4867 ;; <https://github.com/cython/cython/issues/2807>.
4868 ,@(if (not (target-64bit?))
4869 '("-x" "run.parallel")
4871 (home-page "https://cython.org/")
4872 (synopsis "C extensions for Python")
4873 (description "Cython is an optimising static compiler for both the Python
4874 programming language and the extended Cython programming language. It makes
4875 writing C extensions for Python as easy as Python itself.")
4876 (license license:asl2.0)
4877 (properties `((python2-variant . ,(delay python2-cython))))))
4879 (define-public python2-cython
4880 (let ((base (package-with-python2 (strip-python2-variant python-cython))))
4881 (package/inherit base
4882 (name "python2-cython")
4884 `(("python-2" ,python-2))) ;this is not automatically changed
4886 (substitute-keyword-arguments (package-arguments base)
4888 `(modify-phases ,phases
4889 (add-before 'check 'adjust-test_embed
4891 (substitute* "runtests.py"
4892 ;; test_embed goes great lengths to find the static libpythonX.Y.a
4893 ;; so it can give the right -L flag to GCC when embedding static
4894 ;; builds of Python. It is unaware that the Python "config"
4895 ;; directory (where the static library lives) was renamed in
4896 ;; Python 3, and falls back to sysconfig.get_config_var('LIBDIR'),
4897 ;; which works fine, because that is where the shared library is.
4899 ;; It also appears to be unaware that the Makefile in Demos/embed
4900 ;; already unconditionally pass the static library location to GCC,
4901 ;; after checking sysconfig.get_config_var('LIBPL).
4903 ;; The effect is that the linker is unable to resolve libexpat
4904 ;; symbols when building for Python 2, because neither the Python 2
4905 ;; shared library nor Expat is available. To fix it, we can either
4906 ;; add Expat as an input and make it visible to the linker, or just
4907 ;; prevent it from overriding the Python shared library location.
4908 ;; The end result is identical, so we take the easy route.
4909 ((" or libname not in os\\.listdir\\(libdir\\)")
4913 ;; The RPython toolchain currently does not support Python 3.
4914 (define-public python2-rpython
4916 (name "python2-rpython")
4921 (uri (pypi-uri "rpython" version))
4924 "02z9cvxf0y41dcvwnvf2zn0albhhw1drvjjbq27m6i1piw1k6fc0"))))
4925 (build-system python-build-system)
4926 (arguments `(#:python ,python-2))
4928 `(("python2-pytest" ,python2-pytest))) ; needed for running tests
4929 (home-page "https://rpython.readthedocs.org")
4930 (synopsis "Framework for implementing interpreters and virtual machines")
4931 (description "RPython is a translation and support framework for
4932 producing implementations of dynamic languages, emphasizing a clean separation
4933 between language specification and implementation aspects.")
4934 (license license:expat)))
4936 ;; NOTE: when upgrading numpy please make sure that python-pandas and
4937 ;; python-scipy still build, as these three packages are often used together.
4938 (define-public python-numpy
4940 (name "python-numpy")
4946 "https://github.com/numpy/numpy/releases/download/v"
4947 version "/numpy-" version ".tar.gz"))
4950 "1ak9dmjja0q90a7fsxli51ypcwssh8c4pb6f8wkrsnf2xgdk6dy9"))))
4951 (build-system python-build-system)
4953 `(("openblas" ,openblas)))
4955 `(("python-cython" ,python-cython)
4956 ("python-pytest" ,python-pytest)
4957 ("gfortran" ,gfortran)))
4960 (modify-phases %standard-phases
4961 (add-before 'build 'configure-blas-lapack
4962 (lambda* (#:key inputs #:allow-other-keys)
4963 (call-with-output-file "site.cfg"
4967 libraries = openblas
4968 library_dirs = ~a/lib
4969 include_dirs = ~a/include
4971 # backslash-n to make emacs happy
4973 lapack_libs = lapack
4974 library_dirs = ~a/lib
4975 include_dirs = ~a/include
4977 (assoc-ref inputs "openblas")
4978 (assoc-ref inputs "openblas")
4979 (assoc-ref inputs "lapack")
4980 (assoc-ref inputs "lapack"))))
4982 (add-before 'build 'fix-executable-paths
4983 (lambda* (#:key inputs #:allow-other-keys)
4984 ;; Make /gnu/store/...-bash-.../bin/sh the default shell,
4985 ;; instead of /bin/sh.
4986 (substitute* "numpy/distutils/exec_command.py"
4987 (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end)
4988 (string-append match-start (assoc-ref inputs "bash") match-end)))
4989 ;; Use "gcc" executable, not "cc".
4990 (substitute* "numpy/distutils/system_info.py"
4991 (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
4992 "c = distutils.ccompiler.new_compiler(); c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc -shared')"))
4994 ;; Tests can only be run after the library has been installed and not
4995 ;; within the source directory.
4997 (add-after 'install 'check
4998 (lambda* (#:key outputs inputs #:allow-other-keys)
4999 ;; Make installed package available for running the tests
5000 (add-installed-pythonpath inputs outputs)
5001 ;; Make sure "f2py" etc is found.
5002 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
5003 ":" (getenv "PATH")))
5004 (with-directory-excursion "/tmp"
5005 (invoke "python" "-c"
5006 "import numpy; numpy.test(verbose=2)")))))))
5007 (home-page "https://numpy.org")
5008 (synopsis "Fundamental package for scientific computing with Python")
5009 (description "NumPy is the fundamental package for scientific computing
5010 with Python. It contains among other things: a powerful N-dimensional array
5011 object, sophisticated (broadcasting) functions, tools for integrating C/C++
5012 and Fortran code, useful linear algebra, Fourier transform, and random number
5014 (properties `((python2-variant . ,(delay python2-numpy))))
5015 (license license:bsd-3)))
5017 ;; Numpy 1.16.x are the last versions that support Python 2.
5018 (define-public python2-numpy
5019 (let ((numpy (package-with-python2
5020 (strip-python2-variant python-numpy))))
5027 "https://github.com/numpy/numpy/releases/download/v"
5028 version "/numpy-" version ".tar.gz"))
5031 "0lg1cycxzi4rvvrd5zxinpdz0ni792fpx6xjd75z1923zcac8qrb")))))))
5033 ;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
5034 ;; interest only for legacy code going back to NumPy's predecessor
5036 (define-public python2-numpy-1.8
5037 (package (inherit python2-numpy)
5043 (url "https://github.com/numpy/numpy")
5044 (commit (string-append "v" version))))
5045 (file-name (git-file-name "numpy" version))
5048 "0ikgi15rsqwbkfsjjxrwh40lqyal2wvyp3923y6w6ch3dcr82sfk"))))
5050 (substitute-keyword-arguments (package-arguments python2-numpy)
5052 `(modify-phases ,phases
5053 (replace 'configure-blas-lapack
5054 (lambda* (#:key inputs #:allow-other-keys)
5055 (call-with-output-file "site.cfg"
5059 libraries = openblas,lapack
5060 library_dirs = ~a/lib:~a/lib
5061 include_dirs = ~a/include:~a/include
5063 (assoc-ref inputs "openblas")
5064 (assoc-ref inputs "lapack")
5065 (assoc-ref inputs "openblas")
5066 (assoc-ref inputs "lapack"))))
5069 `(("python2-nose" ,python2-nose)))
5070 (description "NumPy is the fundamental package for scientific computing
5071 with Python. It contains among other things: a powerful N-dimensional array
5072 object, sophisticated (broadcasting) functions, tools for integrating C/C++
5073 and Fortran code, useful linear algebra, Fourier transform, and random number
5074 capabilities. Version 1.8 is the last one to contain the numpy.oldnumeric API
5075 that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
5077 (license license:bsd-3)))
5079 (define-public python-munch
5081 (name "python-munch")
5086 (uri (pypi-uri "munch" version))
5089 "1cmqg91xnqx8gvnh4pmp0bfl1dfcm65d5p9mg73zz8pkjhx6h80l"))))
5090 (build-system python-build-system)
5091 (home-page "https://github.com/Infinidat/munch")
5092 (synopsis "Dot-accessible dictionary")
5093 (description "Munch is a dot-accessible dictionary similar to JavaScript
5095 (license license:expat)))
5097 (define-public python2-munch
5098 (package-with-python2 python-munch))
5100 (define-public python-colormath
5102 (name "python-colormath")
5107 (uri (pypi-uri "colormath" version))
5110 "05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
5111 (build-system python-build-system)
5113 `(("python-networkx" ,python-networkx)
5114 ("python-numpy" ,python-numpy)))
5115 (home-page "https://github.com/gtaylor/python-colormath")
5116 (synopsis "Color math and conversion library")
5118 "This is a Python library for color math and conversions.")
5119 (license license:bsd-3)))
5121 (define-public python2-colormath
5122 (package-with-python2 python-colormath))
5124 (define-public python-sparse
5126 (name "python-sparse")
5131 (uri (pypi-uri "sparse" version))
5134 "05lmzckv69cvxavhdr36k803bgr5dl04cppglid1l880xswc759c"))))
5135 (build-system python-build-system)
5138 (modify-phases %standard-phases
5140 (lambda* (#:key tests? #:allow-other-keys)
5142 (invoke "python" "-m" "pytest" "-v")))))))
5144 `(("python-numba" ,python-numba)
5145 ("python-numpy" ,python-numpy)
5146 ("python-scipy" ,python-scipy)))
5148 `(("python-dask" ,python-dask)
5149 ("python-pytest" ,python-pytest)
5150 ("python-pytest-black" ,python-pytest-black)
5151 ("python-pytest-cov" ,python-pytest-cov)))
5152 (home-page "https://github.com/pydata/sparse/")
5153 (synopsis "Library for multi-dimensional sparse arrays")
5155 "This package implements sparse arrays of arbitrary dimension on top of
5156 @code{numpy} and @code{scipy.sparse}. Sparse array is a matrix in which most
5157 of the elements are zero. @code{python-sparse} generalizes the
5158 @code{scipy.sparse.coo_matrix} and @code{scipy.sparse.dok_matrix} layouts, but
5159 extends beyond just rows and columns to an arbitrary number of dimensions.
5160 Additionally, this project maintains compatibility with the
5161 @code{numpy.ndarray} interface rather than the @code{numpy.matrix} interface
5162 used in @code{scipy.sparse}. These differences make this project useful in
5163 certain situations where @code{scipy.sparse} matrices are not well suited, but
5164 it should not be considered a full replacement. It lacks layouts that are not
5165 easily generalized like @dfn{compressed sparse row/column}(CSR/CSC) and
5166 depends on @code{scipy.sparse} for some computations.")
5167 (license license:bsd-3)))
5169 (define-public python-spectra
5171 (name "python-spectra")
5176 (uri (pypi-uri "spectra" version))
5179 "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
5180 (build-system python-build-system)
5183 (modify-phases %standard-phases
5185 (lambda _ (invoke "nosetests" "-v"))))))
5187 `(("python-colormath" ,python-colormath)))
5189 `(("python-nose" ,python-nose)))
5190 (home-page "https://github.com/jsvine/spectra")
5191 (synopsis "Color scales and color conversion")
5193 "This package provides a Python library intended to make color math,
5194 color scales, and color space conversion easy. It has support for:
5199 @item Color blending
5200 @item Brightening/darkening colors
5201 @item Saturating/desaturating colors
5202 @item Conversion to/from multiple color spaces.
5204 (license license:expat)))
5206 (define-public python2-spectra
5207 (package-with-python2 python-spectra))
5209 (define-public python-numpy-documentation
5211 (name "python-numpy-documentation")
5212 (version (package-version python-numpy))
5213 (source (package-source python-numpy))
5214 (build-system python-build-system)
5216 `(("python-matplotlib" ,python-matplotlib)
5217 ("python-numpy" ,python-numpy)
5218 ("pkg-config" ,pkg-config)
5219 ("python-sphinx" ,python-sphinx)
5220 ("python-numpydoc" ,python-numpydoc)
5221 ("texlive" ,(texlive-union (list texlive-fonts-cm-super
5223 texlive-generic-ifxetex
5224 texlive-generic-pdftex
5225 texlive-amsfonts/patched
5226 texlive-latex-capt-of
5228 texlive-latex-environ
5229 texlive-latex-eqparbox
5230 texlive-latex-etoolbox
5231 texlive-latex-expdlist
5232 texlive-latex-fancyhdr
5233 texlive-latex-fancyvrb
5234 texlive-latex-fncychap
5236 texlive-latex-framed
5237 texlive-latex-geometry
5238 texlive-latex-graphics
5239 texlive-latex-hyperref
5240 texlive-latex-mdwtools
5241 texlive-latex-multirow
5242 texlive-latex-needspace
5243 texlive-latex-oberdiek
5244 texlive-latex-parskip
5245 texlive-latex-preview
5246 texlive-latex-tabulary
5247 texlive-latex-threeparttable
5248 texlive-latex-titlesec
5249 texlive-latex-trimspaces
5251 texlive-latex-upquote
5253 texlive-latex-varwidth
5254 texlive-latex-wrapfig)))
5255 ("texinfo" ,texinfo)
5257 ("scipy-sphinx-theme"
5258 ,(let ((commit "c466764e2231ba132c09826b5b138fffa1cfcec3"))
5259 (origin ;the build script expects scipy-sphinx-theme as a git submodule
5262 (url "https://github.com/scipy/scipy-sphinx-theme")
5264 (file-name (git-file-name "python-scipy-sphinx-theme"
5265 (string-take commit 7)))
5268 "0q2y87clwlsgc7wvlsn9pzyssybcq10plwhq2w1ydykfsyyqbmkl")))))
5269 ,@(package-native-inputs python-numpy)))
5271 `(#:tests? #f ; we're only generating the documentation
5273 (modify-phases %standard-phases
5276 (lambda* (#:key inputs outputs #:allow-other-keys)
5277 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
5279 data "/doc/" ,name "-"
5280 ,(package-version python-numpy)))
5281 (info-reader (string-append data "/info"))
5282 (html (string-append doc "/html"))
5283 (scipy-sphinx-theme "scipy-sphinx-theme")
5284 (sphinx-theme-checkout (assoc-ref inputs scipy-sphinx-theme))
5285 (pyver ,(string-append "PYVER=")))
5287 ;; FIXME: this is needed to for texlive-union to generate
5288 ;; fonts, which are not found.
5289 (setenv "HOME" "/tmp")
5291 (with-directory-excursion "doc"
5292 (copy-recursively sphinx-theme-checkout scipy-sphinx-theme)
5294 (invoke "make" "html" pyver)
5295 (invoke "make" "latex" "PAPER=a4" pyver)
5296 (invoke "make" "-C" "build/latex"
5297 "all-pdf" "PAPER=a4" pyver)
5298 ;; FIXME: Generation of the info file fails.
5299 ;; (invoke "make" "info" pyver)
5301 ;; (copy-file "build/texinfo/numpy.info"
5302 ;; (string-append info "/numpy.info"))
5303 (for-each (lambda (file)
5304 (copy-file (string-append "build/latex" file)
5305 (string-append doc file)))
5306 '("/numpy-ref.pdf" "/numpy-user.pdf"))
5307 (with-directory-excursion "build/html"
5308 (for-each (lambda (file)
5309 (let* ((dir (dirname file))
5310 (tgt-dir (string-append html "/" dir)))
5311 (unless (equal? "." dir)
5313 (install-file file html)))
5314 (find-files "." ".*")))))
5316 (home-page (package-home-page python-numpy))
5317 (synopsis "Documentation for the python-numpy package")
5318 (description (package-description python-numpy))
5319 (license (package-license python-numpy))))
5321 (define-public python-pygit2
5323 (name "python-pygit2")
5328 (uri (pypi-uri "pygit2" version))
5330 (base32 "0qjd5aqpmla64da4pb47vdnrmnqdbn7248a4fzs7f5q1ax7fmb3s"))))
5331 (build-system python-build-system)
5333 '(#:tests? #f)) ; tests don't run correctly in our environment
5335 `(("python-cached-property" ,python-cached-property)
5336 ("python-cffi" ,python-cffi)
5337 ("libgit2" ,libgit2)))
5339 `(("python-pytest" ,python-pytest)))
5340 (home-page "https://github.com/libgit2/pygit2")
5341 (synopsis "Python bindings for libgit2")
5342 (description "Pygit2 is a set of Python bindings to the libgit2 shared
5343 library, libgit2 implements Git plumbing.")
5344 ;; GPL2.0 only, with linking exception.
5345 (license license:gpl2)))
5347 (define-public python-patiencediff
5349 (name "python-patiencediff")
5354 (uri (pypi-uri "patiencediff" version))
5357 "0yjk50lsd4gnllxls925xbcdxwvmda37w2a1shk0p1nvl3fcha6q"))))
5358 (build-system python-build-system)
5359 (home-page "https://www.breezy-vcs.org/")
5360 (synopsis "Python implementation of the patiencediff algorithm")
5362 "This package contains a Python implementation of the @code{patiencediff}
5363 algorithm. Patiencediff provides a good balance of performance, nice output for
5364 humans, and implementation simplicity.")
5365 (license license:gpl2)))
5367 (define-public python-pdftotext
5369 (name "python-pdftotext")
5374 (uri (pypi-uri "pdftotext" version))
5376 (base32 "1555wbgr5spj8xflrs4mwsrdmba2f9s72nk50xzqk9ghxaxdvy6a"))))
5377 (build-system python-build-system)
5379 `(("poppler" ,poppler)))
5380 (home-page "https://github.com/jalan/pdftotext")
5381 (synopsis "Simple PDF text extraction")
5382 (description "Pdftotext is a Python library of PDF text extraction.")
5383 (license license:expat)))
5385 (define-public python-pyparsing
5387 (name "python-pyparsing")
5392 (uri (pypi-uri "pyparsing" version))
5394 (base32 "17wn5zlijc9m9zj26gy3f541y7smpj8rfhl51d025c2gm210b0sc"))))
5395 (build-system python-build-system)
5396 (outputs '("out" "doc"))
5398 `(#:tests? #f ; no test target
5400 (modify-phases %standard-phases
5401 (add-after 'install 'install-doc
5402 (lambda* (#:key outputs #:allow-other-keys)
5403 (let* ((doc (string-append (assoc-ref outputs "doc")
5404 "/share/doc/" ,name "-" ,version))
5405 (html-doc (string-append doc "/html"))
5406 (examples (string-append doc "/examples")))
5412 (install-file file tgt))
5413 (find-files dir ".*")))
5414 (list "docs" "htmldoc" "examples")
5415 (list doc html-doc examples))
5417 (home-page "https://github.com/pyparsing/pyparsing")
5418 (synopsis "Python parsing class library")
5420 "The pyparsing module is an alternative approach to creating and
5421 executing simple grammars, vs. the traditional lex/yacc approach, or the use
5422 of regular expressions. The pyparsing module provides a library of classes
5423 that client code uses to construct the grammar directly in Python code.")
5424 (license license:expat)))
5426 (define-public python2-pyparsing
5427 (package-with-python2 python-pyparsing))
5429 (define-public python-pyparsing-2.4.7
5431 (inherit python-pyparsing)
5436 (uri (pypi-uri "pyparsing" version))
5438 (base32 "1hgc8qrbq1ymxbwfbjghv01fm3fbpjwpjwi0bcailxxzhf3yq0y2"))))))
5440 (define-public python-numpydoc
5442 (name "python-numpydoc")
5447 (uri (pypi-uri "numpydoc" version))
5450 "1zazxg3m8j4fksv3f7v7vpf4bj9qb1vj3r326am0vdip141vzx31"))))
5451 (build-system python-build-system)
5453 `(("python-sphinx" ,python-sphinx)))
5455 `(("python-nose" ,python-nose)))
5456 (home-page "https://pypi.org/project/numpydoc/")
5458 "Numpy's Sphinx extensions")
5460 "Sphinx extension to support docstrings in Numpy format.")
5461 (license license:bsd-2)
5462 (properties `((python2-variant . ,(delay python2-numpydoc))))))
5464 (define-public python2-numpydoc
5465 (let ((base (package-with-python2
5466 (strip-python2-variant python-numpydoc))))
5467 (package/inherit base
5469 `(("python2-jinja2" ,python2-jinja2)
5470 ,@(package-propagated-inputs base))))))
5472 (define-public python-numexpr
5474 (name "python-numexpr")
5479 (uri (pypi-uri "numexpr" version))
5482 "1frnbcwmsi312154x274xl28xazr1k8vjby83fwyla2n10a81bgq"))))
5483 (build-system python-build-system)
5484 (arguments `(#:tests? #f)) ; no tests included
5486 `(("python-numpy" ,python-numpy)))
5487 (home-page "https://github.com/pydata/numexpr")
5488 (synopsis "Fast numerical expression evaluator for NumPy")
5490 "Numexpr is a fast numerical expression evaluator for NumPy. With it,
5491 expressions that operate on arrays are accelerated and use less memory than
5492 doing the same calculation in Python. In addition, its multi-threaded
5493 capabilities can make use of all your cores, which may accelerate
5494 computations, most specially if they are not memory-bounded (e.g. those using
5495 transcendental functions).")
5496 (license license:expat)))
5498 (define-public python2-numexpr
5499 (package-with-python2 python-numexpr))
5501 (define-public python-cycler
5503 (name "python-cycler")
5507 (uri (pypi-uri "cycler" version))
5510 "1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
5511 (build-system python-build-system)
5513 ;; XXX: The current version requires 'coveralls' which we don't have.
5514 ;; Enable this for the next release which uses 'python-pytest'.
5517 `(("python-six" ,python-six)))
5518 (home-page "https://matplotlib.org/cycler/")
5519 (synopsis "Composable keyword argument iterator")
5521 "When using @code{matplotlib} and plotting more than one line, it is
5522 common to want to be able to want to be able to cycle over one or more artist
5523 styles; but the plotting logic can quickly become involved.
5524 To address this and enable easy cycling over arbitrary @code{kwargs}, the
5525 @code{Cycler} class was developed.")
5526 (license license:bsd-3)))
5528 (define-public python2-cycler
5529 (package-with-python2 python-cycler))
5531 (define-public python-colorspacious
5533 (name "python-colorspacious")
5539 (url "https://github.com/njsmith/colorspacious")
5540 (commit (string-append "v" version))))
5541 (file-name (git-file-name name version))
5543 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
5544 (build-system python-build-system)
5546 `(("python-numpy" ,python-numpy)))
5548 `(("python-nose" ,python-nose)))
5551 (modify-phases %standard-phases
5554 (invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
5555 (home-page "https://github.com/njsmith/colorspacious")
5556 (synopsis "Python library for colorspace conversions")
5557 (description "@code{colorspacious} is a Python library that lets you
5558 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
5559 (license license:expat)))
5561 (define-public python2-colorspacious
5562 (package-with-python2 python-colorspacious))
5564 (define-public python-matplotlib
5566 (name "python-matplotlib")
5571 (uri (pypi-uri "matplotlib" version))
5573 (base32 "1nmshfqh7wyg15i16hx1yiylcvzkws29ivn66n3i0wyqwcpjr3lf"))
5575 (search-patches "python-matplotlib-run-under-wayland-gtk3.patch"))))
5576 (build-system python-build-system)
5577 (propagated-inputs ; the following packages are all needed at run time
5578 `(("python-cycler" ,python-cycler)
5579 ("python-kiwisolver" ,python-kiwisolver)
5580 ("python-pyparsing" ,python-pyparsing)
5581 ("python-pygobject" ,python-pygobject)
5582 ("gobject-introspection" ,gobject-introspection)
5583 ("python-tkinter" ,python "tk")
5584 ("python-dateutil" ,python-dateutil)
5585 ("python-numpy" ,python-numpy)
5586 ("python-pillow" ,python-pillow)
5587 ("python-pytz" ,python-pytz)
5588 ("python-six" ,python-six)
5589 ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
5590 ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
5591 ;; object. For this reason we need to import both libraries.
5592 ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
5593 ("python-pycairo" ,python-pycairo)
5594 ("python-cairocffi" ,python-cairocffi)))
5596 `(("libpng" ,libpng)
5597 ("freetype" ,freetype)
5600 ;; FIXME: Add backends when available.
5601 ;("python-wxpython" ,python-wxpython)
5605 `(("pkg-config" ,pkg-config)
5606 ("python-pytest" ,python-pytest)
5607 ("python-mock" ,python-mock)
5612 (uri "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip")
5615 "0kb21xf38diqgxcdi1z3s9ssq36pldvyqxy56hn6pcva6rs3c8zq"))))))
5618 (modify-phases %standard-phases
5619 ;; XXX We disable all image comparison tests because we're using a
5620 ;; newer version of FreeType than matplotlib expects. This leads to
5621 ;; minor differences throughout the tests.
5622 (add-after 'unpack 'fix-and-disable-failing-tests
5624 (substitute* (append (find-files "lib/matplotlib/tests/"
5626 (find-files "lib/mpl_toolkits/tests"
5628 (("^from matplotlib" match)
5629 (string-append "import pytest\n" match))
5630 (("( *)@image_comparison" match indent)
5631 (string-append indent
5632 "@pytest.mark.skip(reason=\"unknown minor image differences\")\n"
5634 (substitute* "lib/matplotlib/tests/test_animation.py"
5635 (("/bin/sh") (which "sh")))
5636 (for-each delete-file
5637 ;; test_normal_axes, test_get_tightbbox_polar
5638 '("lib/matplotlib/tests/test_axes.py"
5639 ;; We don't use the webagg backend and this test forces it.
5640 "lib/matplotlib/tests/test_backend_webagg.py"
5641 ;; test_outward_ticks
5642 "lib/matplotlib/tests/test_tightlayout.py"
5643 ;; test_hidden_axes fails with minor extent
5644 ;; differences, possibly due to the use of a
5645 ;; different version of FreeType.
5646 "lib/matplotlib/tests/test_constrainedlayout.py"
5647 ;; Fontconfig returns no fonts.
5648 "lib/matplotlib/tests/test_font_manager.py"))
5650 (add-before 'install 'install-jquery-ui
5651 (lambda* (#:key outputs inputs #:allow-other-keys)
5652 (let* ((python-version (python-version
5653 (assoc-ref inputs "python")))
5654 (dir (string-append (assoc-ref outputs "out")
5655 "/lib/python" python-version "/site-packages"
5656 "/matplotlib/backends/web_backend/")))
5659 (assoc-ref inputs "jquery-ui")
5663 (lambda* (#:key outputs inputs #:allow-other-keys)
5664 (add-installed-pythonpath inputs outputs)
5665 (invoke "python" "tests.py" "-v"
5666 "-m" "not network and not webagg")))
5667 (add-before 'build 'configure-environment
5668 (lambda* (#:key outputs inputs #:allow-other-keys)
5669 (let ((cairo (assoc-ref inputs "cairo")))
5670 ;; Setting this directory in the 'basedirlist' of 'setup.cfg'
5672 (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib"))
5673 (setenv "HOME" (getcwd))
5674 ;; Fix rounding errors when using the x87 FPU.
5675 (when (string-prefix? "i686" ,(%current-system))
5676 (setenv "CFLAGS" "-ffloat-store"))
5677 (call-with-output-file "setup.cfg"
5679 (format port "[directories]~%
5680 basedirlist = ~a,~a~%
5683 (assoc-ref inputs "tcl")
5684 (assoc-ref inputs "tk")))))
5686 (home-page "https://matplotlib.org/")
5687 (synopsis "2D plotting library for Python")
5689 "Matplotlib is a Python 2D plotting library which produces publication
5690 quality figures in a variety of hardcopy formats and interactive environments
5691 across platforms. Matplotlib can be used in Python scripts, the python and
5692 ipython shell, web application servers, and six graphical user interface
5694 (license license:psfl)
5695 (properties `((python2-variant . ,(delay python2-matplotlib))))))
5697 (define-public python2-matplotlib
5698 (let ((matplotlib (package-with-python2
5699 (strip-python2-variant python-matplotlib))))
5700 (package (inherit matplotlib)
5705 (uri (pypi-uri "matplotlib" version))
5708 "09i1gnrra1590brc1f8d5rh2zvnknmfgzp613ab0462qkrwj15h2"))))
5710 (substitute-keyword-arguments (package-arguments matplotlib)
5712 `(modify-phases ,phases
5713 (replace 'install-jquery-ui
5714 (lambda* (#:key outputs inputs #:allow-other-keys)
5715 (let ((dir (string-append (assoc-ref outputs "out")
5716 "/lib/python2.7/site-packages/"
5717 "matplotlib/backends/web_backend/")))
5720 (assoc-ref inputs "jquery-ui")
5723 (delete 'fix-and-disable-failing-tests)
5724 (delete 'check))))) ; These tests weren't run the the past.
5725 ;; Make sure to use special packages for Python 2 instead
5726 ;; of those automatically rewritten by package-with-python2.
5728 `(("python2-pycairo" ,python2-pycairo)
5729 ("python2-backports-functools-lru-cache"
5730 ,python2-backports-functools-lru-cache)
5731 ("python2-functools32" ,python2-functools32)
5732 ("python2-pygobject-2" ,python2-pygobject-2)
5733 ("python2-subprocess32" ,python2-subprocess32)
5734 ("python2-tkinter" ,python-2 "tk")
5735 ,@(fold alist-delete (package-propagated-inputs matplotlib)
5736 '("python-cairocffi"
5739 "python-tkinter")))))))
5741 (define-public python-matplotlib-documentation
5743 (name "python-matplotlib-documentation")
5744 (version (package-version python-matplotlib))
5745 (source (package-source python-matplotlib))
5746 (build-system python-build-system)
5748 `(("python-matplotlib" ,python-matplotlib)
5749 ("python-colorspacious" ,python-colorspacious)
5750 ("python-sphinx" ,python-sphinx)
5751 ("python-sphinx-copybutton" ,python-sphinx-copybutton)
5752 ("python-sphinx-gallery" ,python-sphinx-gallery)
5753 ("python-numpydoc" ,python-numpydoc)
5754 ("python-ipython" ,python-ipython)
5755 ("python-ipykernel" ,python-ipykernel)
5756 ("python-mock" ,python-mock)
5757 ("graphviz" ,graphviz)
5758 ("texlive" ,(texlive-union (list texlive-amsfonts/patched
5759 texlive-latex-amsmath
5760 texlive-latex-enumitem
5761 texlive-latex-expdlist
5762 texlive-latex-geometry
5763 texlive-latex-preview
5764 texlive-latex-type1cm
5767 texlive-generic-pdftex
5770 texlive-fonts-adobe-times
5771 texlive-fonts-txfonts)))
5772 ("texinfo" ,texinfo)
5773 ,@(package-native-inputs python-matplotlib)))
5775 `(#:tests? #f ; we're only generating documentation
5777 (modify-phases %standard-phases
5778 ;; The tests in python-matplotlib are run after the install phase, so
5779 ;; we need to delete the extra phase here.
5784 (setenv "PYTHONPATH"
5785 (string-append (getenv "PYTHONPATH")
5786 ":" (getcwd) "/../examples/units"))
5787 (substitute* "conf.py"
5789 (("^SHA = check_output.*")
5790 (string-append "SHA = \"" ,version "\"\n"))
5791 ;; Don't fetch intersphinx files from the Internet
5792 (("^explicit_order_folders" m)
5793 (string-append "intersphinx_mapping = {}\n" m))
5794 (("'sphinx.ext.intersphinx',") "")
5795 ;; Disable URL embedding which requires internet access.
5796 (("'https://docs.scipy.org/doc/numpy'") "None")
5797 (("'https://docs.scipy.org/doc/scipy/reference'") "None"))
5799 "SPHINXBUILD=sphinx-build"
5800 "SPHINXOPTS=" ; don't abort on warnings
5803 (lambda* (#:key inputs outputs #:allow-other-keys)
5804 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
5805 (doc (string-append data "/doc/python-matplotlib-" ,version))
5806 (info (string-append data "/info"))
5807 (html (string-append doc "/html")))
5810 (copy-recursively "build/html" html)
5811 (symlink (string-append html "/_images")
5812 (string-append info "/matplotlib-figures"))
5813 (with-directory-excursion "build/texinfo"
5814 (substitute* "matplotlib.texi"
5815 (("@image\\{([^,]*)" all file)
5816 (string-append "@image{matplotlib-figures/" file)))
5817 (symlink (string-append html "/_images")
5818 "./matplotlib-figures")
5819 (invoke "makeinfo" "--no-split"
5820 "-o" "matplotlib.info" "matplotlib.texi"))
5821 (install-file "build/texinfo/matplotlib.info" info))
5823 (home-page (package-home-page python-matplotlib))
5824 (synopsis "Documentation for the python-matplotlib package")
5825 (description (package-description python-matplotlib))
5826 (license (package-license python-matplotlib))))
5828 (define-public python-matplotlib-venn
5830 (name "python-matplotlib-venn")
5835 (uri (pypi-uri "matplotlib-venn" version ".zip"))
5838 "13w3i1wih0mij08hrgppzg0g9z50y54rc28l6gdi1r5w45l7l0dy"))))
5839 (build-system python-build-system)
5840 (arguments '(#:tests? #f)) ; tests are not included
5842 `(("python-matplotlib" ,python-matplotlib)
5843 ("python-numpy" ,python-numpy)
5844 ("python-scipy" ,python-scipy)))
5846 `(("unzip" ,unzip)))
5847 (home-page "https://github.com/konstantint/matplotlib-venn")
5848 (synopsis "Plot area-proportional Venn diagrams")
5850 "This package provides tools for plotting area-proportional two- and
5851 three-way Venn diagrams in @code{matplotlib}.")
5852 (license license:expat)))
5854 (define-public python-pysnptools
5856 (name "python-pysnptools")
5861 (uri (pypi-uri "pysnptools" version))
5864 "0gxr0bjix307wvk0qh7vkafbxbzfpdmq0wlswpxyyaymy0fwcypv"))))
5865 (build-system python-build-system)
5867 `(#:tests? #f ; no test data are included
5869 (modify-phases %standard-phases
5871 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5874 (add-installed-pythonpath inputs outputs)
5875 (invoke "python3" "pysnptools/test.py"))
5878 `(("python-dill" ,python-dill)
5879 ("python-h5py" ,python-h5py)
5880 ("python-numpy" ,python-numpy)
5881 ("python-pandas" ,python-pandas)
5882 ("python-psutil" ,python-psutil)
5883 ("python-scipy" ,python-scipy)))
5885 `(("python-cython" ,python-cython)))
5886 (home-page "http://microsoftgenomics.github.io/PySnpTools/")
5887 (synopsis "Library for reading and manipulating genetic data")
5889 "PySnpTools is a library for reading and manipulating genetic data. It
5890 can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
5891 those files. It can also efficiently manipulate ranges of integers using set
5892 operators such as union, intersection, and difference.")
5893 (license license:asl2.0)))
5895 (define-public python2-pysnptools
5896 (package-with-python2 python-pysnptools))
5898 (define-public python-wurlitzer
5900 (name "python-wurlitzer")
5905 (uri (pypi-uri "wurlitzer" version))
5907 (base32 "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"))))
5908 (build-system python-build-system)
5911 (modify-phases %standard-phases
5914 (invoke "pytest" "-vv" "test.py"))))))
5916 `(("python-mock" ,python-mock)
5917 ("python-pytest" ,python-pytest)))
5918 (home-page "https://github.com/minrk/wurlitzer")
5919 (synopsis "Capture C-level output in context managers")
5921 "This library helps to redirect @code{sys.stdout} to a stream or a file
5922 while executing some piece of code, including C code running within a Python
5924 (license license:expat)))
5926 (define-public python-socksipy-branch
5928 (name "python-socksipy-branch")
5933 (uri (pypi-uri "SocksiPy-branch" version))
5936 "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
5937 (build-system python-build-system)
5939 `(#:tests? #f)) ; There are no tests
5940 (home-page "https://code.google.com/archive/p/socksipy-branch/")
5941 (synopsis "Python SOCKS module")
5943 "SocksiPy - A Python SOCKS client module. It provides a
5944 socket-like interface that supports connections to any TCP
5945 service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
5946 The original version was developed by Dan Haim, this is a
5947 branch created by Mario Vilas to address some open issues,
5948 as the original project seems to have been abandoned circa 2007.")
5949 (license license:bsd-3)))
5951 (define-public python2-socksipy-branch
5952 (package-with-python2 python-socksipy-branch))
5954 (define-public python-socksipychain
5956 (name "python-socksipychain")
5962 (url "https://github.com/pagekite/PySocksipyChain")
5963 (commit (string-append "v" version))))
5964 (file-name (git-file-name name version))
5967 "02pp994qmiivkdx4y6az5q80l6rzy8g6d2ipvp7kns7lsxvmc2y7"))))
5968 (build-system python-build-system)
5970 `(#:tests? #f)) ; Tests try to access the network.
5971 (home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
5972 (synopsis "Python SOCKS module with chained proxies support")
5974 "SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
5975 adds support for arbitrary chaining of proxy servers and various modes of
5976 TLS/SSL encryption. It was developed for use in PageKite, and also includes
5977 a simple netcat replacement with chaining support.")
5978 (license license:bsd-3)))
5980 (define-public python-pycodestyle
5982 (name "python-pycodestyle")
5987 (uri (pypi-uri "pycodestyle" version))
5990 "1vqwmzmjdv331kmfq3q9j3as2x7r2r49lf83r9w4147pdg8c32f3"))))
5991 (build-system python-build-system)
5994 (modify-phases %standard-phases
5997 (invoke "pytest" "-vv"))))))
5999 `(("python-pytest" ,python-pytest)))
6000 (home-page "https://pycodestyle.readthedocs.io/")
6001 (synopsis "Python style guide checker")
6002 (description "@code{pycodestyle} (formerly pep8) is a tool to check
6003 Python code against some of the style conventions in
6004 @url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
6005 (license license:expat)))
6007 (define-public python2-pycodestyle
6008 (package-with-python2 python-pycodestyle))
6010 (define-public python-pycodestyle-2.6
6012 (inherit python-pycodestyle)
6016 (uri (pypi-uri "pycodestyle" version))
6019 "0bhr6ia0hmgx3nhgibc9pmkzhlh1zcqk707i5fbxgs702ll7v2n5"))))))
6021 (define-public python-multidict
6023 (name "python-multidict")
6028 (uri (pypi-uri "multidict" version))
6031 "07ikq2c72kd263hpldw55y0px2l3g34hjk66ml9lryh1jv287qmf"))))
6032 (build-system python-build-system)
6034 '(#:modules ((ice-9 ftw)
6038 (guix build python-build-system))
6039 #:phases (modify-phases %standard-phases
6041 (lambda* (#:key tests? #:allow-other-keys)
6044 (let ((libdir (find (cut string-prefix? "lib." <>)
6045 (scandir "build"))))
6046 (setenv "PYTHONPATH"
6047 (string-append "./build/" libdir ":"
6048 (getenv "PYTHONPATH")))
6049 (invoke "pytest" "-vv")))
6050 (format #t "test suite not run~%"))
6053 `(("python-pytest" ,python-pytest)
6054 ("python-pytest-cov" ,python-pytest-cov)))
6055 (home-page "https://github.com/aio-libs/multidict/")
6056 (synopsis "Multidict implementation")
6057 (description "Multidict is dict-like collection of key-value pairs
6058 where key might be occurred more than once in the container.")
6059 (license license:asl2.0)))
6061 (define-public python-orderedmultidict
6063 (name "python-orderedmultidict")
6068 (uri (pypi-uri "orderedmultidict" version))
6071 "1idjbl933avgaadscrjw1np3xkvnz3phq0l8vw5qs0rqcjx9b65q"))))
6072 (build-system python-build-system)
6075 (modify-phases %standard-phases
6076 (add-after 'unpack 'fix-tests
6078 ;; The package uses nosetest for running the tests.
6079 ;; Adding this initfile allows to run the test suite
6080 ;; without requiring nosetest.
6081 (with-output-to-file "tests/__init__.py" newline)
6084 `(("python-six" ,python-six)))
6086 `(("python-pycodestyle" ,python-pycodestyle)))
6087 (home-page "https://github.com/gruns/orderedmultidict")
6088 (synopsis "Python Ordered Multivalue Dictionary - omdict")
6089 (description "This package contains a library for ordered multivalue
6090 dictionaries. A multivalue dictionary is a dictionary that can store
6091 multiple values for the same key. An ordered multivalue dictionary is a
6092 multivalue dictionary that retains the order of insertions and deletions.")
6093 (license license:unlicense)))
6095 (define-public python2-orderedmultidict
6096 (package-with-python2 python-orderedmultidict))
6098 (define-public python-autopep8
6100 (name "python-autopep8")
6105 (uri (pypi-uri "autopep8" version))
6108 "1w6vh627vrmgfbvrdcxrc3k4gxcldrb2lpgxv9irkdds851qrzb0"))))
6109 (build-system python-build-system)
6111 `(("python-pycodestyle" ,python-pycodestyle)
6112 ("python-toml" ,python-toml)))
6113 (home-page "https://github.com/hhatto/autopep8")
6114 (synopsis "Format Python code according to the PEP 8 style guide")
6116 "@code{autopep8} automatically formats Python code to conform to
6117 the PEP 8 style guide. It uses the pycodestyle utility to determine
6118 what parts of the code needs to be formatted. @code{autopep8} is
6119 capable of fixing most of the formatting issues that can be reported
6121 (license (license:non-copyleft
6122 "https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
6124 (define-public python2-autopep8
6125 (package-with-python2 python-autopep8))
6127 (define-public python-distlib
6129 (name "python-distlib")
6134 (uri (pypi-uri "distlib" version ".zip"))
6137 "08fyi2r246733vharl2yckw20rilci28r91mzrnnvcr638inw5if"))))
6138 (build-system python-build-system)
6141 (modify-phases %standard-phases
6142 (add-before 'build 'no-/bin/sh
6144 (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
6145 (("/bin/sh") (which "sh")))
6147 (add-before 'check 'prepare-test-env
6149 (setenv "HOME" "/tmp")
6150 ;; NOTE: Any value works, the variable just has to be present.
6151 (setenv "SKIP_ONLINE" "1")
6153 (native-inputs `(("unzip" ,unzip)))
6154 (home-page "https://bitbucket.org/pypa/distlib")
6155 (synopsis "Distribution utilities")
6156 (description "Distlib is a library which implements low-level functions that
6157 relate to packaging and distribution of Python software. It is intended to be
6158 used as the basis for third-party packaging tools.")
6159 (license license:psfl)))
6161 ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
6162 (define-public python-distlib/next
6164 (inherit python-distlib)
6169 (uri (pypi-uri "distlib" version ".zip"))
6172 "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))))
6174 (define-public python-distutils-extra
6176 (name "python-distutils-extra")
6181 (uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
6182 version "/+download/python-distutils-extra-"
6186 "0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
6187 (build-system python-build-system)
6188 (home-page "https://launchpad.net/python-distutils-extra/")
6189 (synopsis "Enhancements to Python's distutils")
6191 "The python-distutils-extra module enables you to easily integrate
6192 gettext support, themed icons, and scrollkeeper-based documentation into
6193 Python's distutils.")
6194 (license license:gpl2)))
6196 (define-public python2-distutils-extra
6197 (package-with-python2 python-distutils-extra))
6199 (define-public python2-elib.intl
6201 (name "python2-elib.intl")
6205 ;; This project doesn't tag releases or publish tarballs, so we take
6206 ;; source from a (semi-arbitrary, i.e. latest as of now) git commit.
6209 (url "https://github.com/dieterv/elib.intl")
6210 (commit "d09997cfef")))
6211 (file-name (string-append name "-" version "-checkout"))
6214 "0y7vzff9xgbnaay7m0va1arl6g68ncwrvbgwl7jqlclsahzzb09d"))))
6215 (build-system python-build-system)
6217 ;; incompatible with Python 3 (exception syntax)
6218 `(#:python ,python-2
6220 (home-page "https://github.com/dieterv/elib.intl")
6221 (synopsis "Enhanced internationalization for Python")
6223 "The elib.intl module provides enhanced internationalization (I18N)
6224 services for your Python modules and applications.")
6225 (license license:lgpl3+)))
6227 (define-public python-olefile
6229 (name "python-olefile")
6234 (uri (string-append "https://github.com/decalage2/olefile/releases/"
6235 "download/v" version "/olefile-" version ".tar.gz"))
6236 (file-name (string-append name "-" version ".tar.gz"))
6239 "1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
6240 (build-system python-build-system)
6241 (home-page "https://www.decalage.info/python/olefileio")
6242 (synopsis "Read and write Microsoft OLE2 files.")
6244 "@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
6245 Storage or Compound Document, Microsoft Office). It is an improved version of
6246 the OleFileIO module from PIL, the Python Image Library.")
6247 (license license:bsd-3)))
6249 (define-public python2-olefile
6250 (package-with-python2 python-olefile))
6252 (define-public python-pikepdf
6254 (name "python-pikepdf")
6259 (uri (pypi-uri "pikepdf" version))
6261 (base32 "1di5bbh2mr8m1aydky8ix12pkybrd0cvs8xqf5s2y1xa349r514l"))))
6262 (build-system python-build-system)
6264 `(#:tests? #false)) ;require python-xmp-toolkit
6266 `(("pybind11" ,pybind11)
6267 ("python-setuptools" ,python-setuptools)
6268 ("python-setuptools-scm" ,python-setuptools-scm/next)
6269 ("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)
6270 ("python-toml" ,python-toml)
6271 ("python-wheel" ,python-wheel)))
6275 `(("python-lxml" ,python-lxml)
6276 ("python-pillow" ,python-pillow)))
6277 (home-page "https://github.com/pikepdf/pikepdf")
6278 (synopsis "Read and write PDFs with Python")
6280 "pikepdf is a Python library for reading and writing PDF files.")
6281 (license license:mpl2.0)))
6283 (define-public python-pillow
6285 (name "python-pillow")
6290 (uri (pypi-uri "Pillow" version))
6293 "086g7nhv52wclrwnzbzs2x3nvyzs2hfq1bvgivsrp5f7r7wiiz7n"))))
6294 (build-system python-build-system)
6296 `(("python-pytest" ,python-pytest)))
6298 `(("freetype" ,freetype)
6300 ("libjpeg" ,libjpeg-turbo)
6301 ("libtiff" ,libtiff)
6302 ("libwebp" ,libwebp)
6303 ("openjpeg" ,openjpeg)
6306 `(("python-olefile" ,python-olefile)))
6309 (modify-phases %standard-phases
6310 (add-after 'unpack 'patch-ldconfig
6312 (substitute* "setup.py"
6313 (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
6315 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
6318 (setenv "HOME" (getcwd))
6319 ;; Make installed package available for running the tests.
6320 (add-installed-pythonpath inputs outputs)
6321 (invoke "python" "selftest.py" "--installed")
6322 (invoke "python" "-m" "pytest" "-vv"))
6324 (home-page "https://python-pillow.org")
6325 (synopsis "Fork of the Python Imaging Library")
6327 "The Python Imaging Library adds image processing capabilities to your
6328 Python interpreter. This library provides extensive file format support, an
6329 efficient internal representation, and fairly powerful image processing
6330 capabilities. The core image library is designed for fast access to data
6331 stored in a few basic pixel formats. It should provide a solid foundation for
6332 a general image processing tool.")
6333 (properties `((python2-variant . ,(delay python2-pillow))))
6334 (license (license:x11-style
6335 "http://www.pythonware.com/products/pil/license.htm"
6336 "The PIL Software License"))))
6338 (define-public python2-pillow
6339 (package-with-python2
6341 (inherit (strip-python2-variant python-pillow))
6342 ;; Version 6 is the last series with Python 2 support.
6347 (uri (pypi-uri "Pillow" version))
6350 "0l5rv8jkdrb5q846v60v03mcq64yrhklidjkgwv6s1pda71g17yv")))))))
6352 (define-public python-pillow-2.9
6354 (inherit python-pillow)
6359 (uri (pypi-uri "Pillow" version))
6362 "0ada7lf3lmbdsqm3b7ja920p1pllyfhmqndr85ikpj77fmz9s5qg"))))
6364 (substitute-keyword-arguments (package-arguments python-pillow)
6365 ((#:tests? _ #f) #f)))
6366 (properties '((hidden? #t)))))
6368 (define-public python-pillow-simd
6370 (inherit python-pillow)
6371 (name "python-pillow-simd")
6373 ;; The PyPI tarball does not include test files.
6378 (url "https://github.com/uploadcare/pillow-simd")
6380 (file-name (git-file-name name version))
6382 (base32 "0w11np4cybamry3jsg70x747c79zwjzfq0xiprfp6c186rd6nzp9"))))
6384 (substitute-keyword-arguments
6385 (package-arguments python-pillow)
6387 `(modify-phases ,phases
6388 (add-after 'unpack 'make-tests-writable
6390 (for-each make-file-writable (find-files "Tests"))
6393 `(("libraqm" ,libraqm)
6394 ("libimagequant" ,libimagequant)
6395 ,@(package-inputs python-pillow)))
6396 (home-page "https://github.com/uploadcare/pillow-simd")
6397 (synopsis "Fork of the Python Imaging Library (Pillow)")
6398 (description "This package is a fork of Pillow which adds support for SIMD
6401 (define-public python-imagecodecs
6403 (name "python-imagecodecs")
6404 (version "2021.3.31")
6408 (uri (pypi-uri "imagecodecs" version))
6411 "0q7pslb6wd56vbcq2mdxwsiha32mxjr7mgqqfbq5w42q601p9pi0"))
6412 (modules '((guix build utils)))
6415 ;; Unbundle 3rd party modules.
6416 (delete-file-recursively "3rdparty")
6417 ;; Delete pre-generated Cython files.
6418 (for-each delete-file (find-files "imagecodecs" "_.*\\.c$"))
6420 (build-system python-build-system)
6422 `(#:tests? #f ; Tests are disabled, because dependencies are missing.
6424 (modify-phases %standard-phases
6425 (add-after 'unpack 'create-configuration
6426 (lambda* (#:key inputs #:allow-other-keys)
6427 ;; By default everything is enabled. We can selectively disable
6428 ;; extensions (and thus dependencies) by deleting them from the
6429 ;; EXTENSIONS dictionary. This is upstream’s preferred way.
6430 (call-with-output-file "imagecodecs_distributor_setup.py"
6433 def customize_build(EXTENSIONS, OPTIONS):
6434 del EXTENSIONS['aec']
6435 del EXTENSIONS['avif']
6436 del EXTENSIONS['bitshuffle']
6437 del EXTENSIONS['deflate']
6438 del EXTENSIONS['jpeg2k']
6439 del EXTENSIONS['jpeg12']
6440 del EXTENSIONS['jpegls']
6441 del EXTENSIONS['jpegxl']
6442 del EXTENSIONS['jpegxr']
6443 del EXTENSIONS['lerc']
6444 del EXTENSIONS['ljpeg']
6445 del EXTENSIONS['lzf']
6446 del EXTENSIONS['zfp']
6447 del EXTENSIONS['zopfli']
6448 OPTIONS['cythonize']
6452 `(("c-blosc" ,c-blosc)
6454 ("google-brotli" ,google-brotli)
6455 ("libjpeg-turbo" ,libjpeg-turbo)
6457 ("libtiff" ,libtiff)
6458 ("libwebp" ,libwebp)
6463 ("zstd" ,zstd "lib")))
6465 `(("python-numpy" ,python-numpy)))
6468 `(("python-cython" ,python-cython)
6469 ;; For testing. Incomplete.
6470 ;("python-numcodecs" ,python-numcodecs)
6471 ;("python-zarr" ,python-zarr)
6472 ;("python-pytest" ,python-pytest)
6474 (home-page "https://www.lfd.uci.edu/~gohlke/")
6476 "Image transformation, compression, and decompression codecs")
6478 "Imagecodecs is a Python library that provides block-oriented, in-memory
6479 buffer transformation, compression, and decompression functions for use in the
6480 tifffile, czifile, and other scientific image input/output modules.")
6481 (license license:bsd-3)))
6483 (define-public python-roifile
6485 (name "python-roifile")
6486 (version "2020.11.28")
6490 (uri (pypi-uri "roifile" version))
6493 "04argnc7qccybkrj9ww18bf81ghsghhh93hnqy3p111rcdlyn66p"))))
6494 (build-system python-build-system)
6495 (arguments `(#:tests? #f)) ; there are none
6497 `(("python-numpy" ,python-numpy)))
6498 (home-page "https://www.lfd.uci.edu/~gohlke/")
6499 (synopsis "Read and write ImageJ ROI format")
6500 (description "Roifile is a Python library to read, write, create, and plot
6501 ImageJ ROIs, an undocumented and ImageJ application specific format to store
6502 regions of interest, geometric shapes, paths, text, etc for image overlays.")
6503 (license license:bsd-3)))
6505 (define-public python-tifffile
6507 (name "python-tifffile")
6508 (version "2021.4.8")
6512 (uri (pypi-uri "tifffile" version))
6515 "16r0hw7shka1bqf28bv198lj2jhf2r9gy3s5zv4nf5cfsfm8pajm"))))
6516 (build-system python-build-system)
6517 ;; Tests require lfdfiles, which depends on tifffile
6518 (arguments `(#:tests? #f))
6520 `(("python-numpy" ,python-numpy)
6521 ("python-imagecodecs" ,python-imagecodecs)))
6522 (home-page "https://www.lfd.uci.edu/~gohlke/")
6523 (synopsis "Read and write TIFF(r) files")
6524 (description "This package lets you read image and metadata from many
6525 bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,
6526 NIH, ImageJ, MicroManager, MD GEL, and FluoView files. It also lets you write
6527 numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
6528 (license license:bsd-3)))
6530 (define-public python-lfdfiles
6532 (name "python-lfdfiles")
6533 (version "2021.2.22")
6537 (uri (pypi-uri "lfdfiles" version))
6540 "12fxm4v805dgjrih7x6jnl1wd7y7jw1rkhjs3d4am8s6qk1cbar2"))
6541 (modules '((guix build utils)))
6544 ;; Delete pre-generated Cython files.
6545 (for-each delete-file (find-files "lfdfiles" "_.*\\.c$"))
6547 (build-system python-build-system)
6549 `(#:tests? #f)) ; No tests exist, despite a test dependency on pytest.
6551 `(("python-click" ,python-click)
6552 ("python-numpy" ,python-numpy)
6553 ("python-tifffile" ,python-tifffile)))
6554 (native-inputs `(("python-cython" ,python-cython)))
6555 (home-page "https://www.lfd.uci.edu/~gohlke/")
6556 (synopsis "Work with LFD data files")
6558 "Lfdfiles is a Python library and console script for reading, writing,
6559 converting, and viewing many of the proprietary file formats used to store
6560 experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
6561 (license license:bsd-3)))
6563 (define-public python-imageio
6565 (name "python-imageio")
6570 (uri (pypi-uri "imageio" version))
6573 "1ksjl523fm0fikrd85llxfba35rc1qsgwadgr6mbn9kis79xcpzv"))))
6574 (build-system python-build-system)
6576 `(#:tests? #f ; many tests require online data
6578 (modify-phases %standard-phases
6580 (lambda* (#:key outputs inputs tests? #:allow-other-keys)
6583 ;; Make installed package available for running the tests.
6584 (add-installed-pythonpath inputs outputs)
6585 (invoke "pytest" "-vv"))
6588 `(("python-numpy" ,python-numpy)
6589 ("python-pillow" ,python-pillow)
6590 ("python-psutil" ,python-psutil)))
6592 `(("python-pytest" ,python-pytest)))
6593 (home-page "https://imageio.github.io/")
6594 (synopsis "Library for reading and writing a wide range of image data")
6596 "Imageio is a Python library that provides an easy interface to read and
6597 write a wide range of image data, including animated images, video, volumetric
6598 data, and scientific formats.")
6599 (license license:bsd-2)))
6601 (define-public python-pycparser
6603 (name "python-pycparser")
6608 (uri (pypi-uri "pycparser" version))
6611 "1w0m3xvlrzq4lkbvd1ngfm8mdw64r1yxy6n7djlw6qj5d0km6ird"))))
6612 (outputs '("out" "doc"))
6613 (build-system python-build-system)
6615 `(("pkg-config" ,pkg-config)))
6618 (modify-phases %standard-phases
6621 (with-directory-excursion "tests"
6622 (invoke "python" "all_tests.py"))
6624 (add-after 'install 'install-doc
6625 (lambda* (#:key outputs #:allow-other-keys)
6626 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6627 (doc (string-append data "/doc/" ,name "-" ,version))
6628 (examples (string-append doc "/examples")))
6630 (for-each (lambda (file)
6631 (copy-file (string-append "." file)
6632 (string-append doc file)))
6633 '("/README.rst" "/CHANGES" "/LICENSE"))
6634 (copy-recursively "examples" examples)
6636 (home-page "https://github.com/eliben/pycparser")
6637 (synopsis "C parser in Python")
6639 "Pycparser is a complete parser of the C language, written in pure Python
6640 using the PLY parsing library. It parses C code into an AST and can serve as
6641 a front-end for C compilers or analysis tools.")
6642 (license license:bsd-3)))
6644 (define-public python2-pycparser
6645 (package-with-python2 python-pycparser))
6647 (define-public python-xlsxwriter
6649 (name "python-xlsxwriter")
6653 ;; There are no tests in the PyPI tarball.
6656 (url "https://github.com/jmcnamara/XlsxWriter")
6657 (commit (string-append "RELEASE_" version))))
6658 (file-name (git-file-name name version))
6660 (base32 "04idf331rp0iyhlnh7268jmim8ydw4jjb81hr5rh548sqnq4bhpl"))))
6661 (build-system python-build-system)
6662 (home-page "https://github.com/jmcnamara/XlsxWriter")
6663 (synopsis "Python module for creating Excel XLSX files")
6665 "XlsxWriter is a Python module that can be used to write text, numbers,
6666 formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
6667 (license license:bsd-2)))
6669 (define-public python-pywavelets
6671 (name "python-pywavelets")
6673 (home-page "https://github.com/PyWavelets/pywt")
6676 (uri (pypi-uri "PyWavelets" version))
6679 "1j88c0r4j1d4mb3f8qhz6nalyx21qrzmsm70rjngnkybd87v8r0s"))))
6680 (build-system python-build-system)
6682 '(#:modules ((ice-9 ftw)
6686 (guix build python-build-system))
6688 (modify-phases %standard-phases
6691 (let ((cwd (getcwd))
6692 (libdir (find (cut string-prefix? "lib." <>)
6693 (scandir "build"))))
6694 (with-directory-excursion (string-append cwd "/build/" libdir)
6695 (invoke "pytest" "-vv"))))))))
6697 `(("python-matplotlib" ,python-matplotlib) ;for tests
6698 ("python-pytest" ,python-pytest)))
6700 `(("python-numpy" ,python-numpy)))
6701 (synopsis "Wavelet transforms in Python")
6703 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
6704 mathematical basis functions that are localized in both time and frequency.
6705 Wavelet transforms are time-frequency transforms employing wavelets. They are
6706 similar to Fourier transforms, the difference being that Fourier transforms are
6707 localized only in frequency instead of in time and frequency.")
6708 (license license:expat)))
6710 (define-public python-pywal
6712 (name "python-pywal")
6718 (url "https://github.com/dylanaraps/pywal")
6720 (file-name (git-file-name name version))
6722 (base32 "039m7dch479hlwddynacdrr0klz6a5bdly5swqbs94hfimficiyf"))))
6723 (build-system python-build-system)
6726 (modify-phases %standard-phases
6727 (add-before 'check 'fix-home-directory
6729 ;; Tests fail with "Permission denied: '/homeless-shelter'".
6730 (setenv "HOME" "/tmp")
6733 `(("imagemagick" ,imagemagick)))
6734 (home-page "https://github.com/dylanaraps/pywal")
6735 (synopsis "Color palette generator and applicator")
6737 "Pywal is a tool that generates a color palette from the dominant colors
6738 in an image. It then applies the colors system-wide and on-the-fly in all of
6739 your favourite programs.")
6740 (license license:expat)))
6742 (define-public python-pywinrm
6744 (name "python-pywinrm")
6749 (uri (pypi-uri "pywinrm" version))
6752 "10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
6753 (build-system python-build-system)
6755 `(("python-six" ,python-six)
6756 ("python-requests_ntlm" ,python-requests_ntlm)
6757 ("python-xmltodict" ,python-xmltodict)
6758 ("python-kerberos" ,python-kerberos)))
6760 `(("python-mock" ,python-mock)
6761 ("python-pytest" ,python-pytest)))
6762 (home-page "https://github.com/diyan/pywinrm/")
6764 "Python library for Windows Remote Management (WinRM)")
6766 "pywinrm is a Python client for the Windows Remote Management (WinRM)
6767 service. It allows you to invoke commands on target Windows machines from
6768 any machine that can run Python.")
6769 (license license:expat)))
6771 (define-public python-xcffib
6773 (name "python-xcffib")
6778 (uri (pypi-uri "xcffib" version))
6781 "04k91yxyb3pgc5lvxmivh8w71yjrap2g57yk3s73x4rm4nvjq51n"))))
6782 (build-system python-build-system)
6784 `(("libxcb" ,libxcb)))
6786 `(("python-cffi" ,python-cffi) ; used at run time
6787 ("python-six" ,python-six)))
6789 `(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
6792 (modify-phases %standard-phases
6793 (add-after 'unpack 'fix-libxcb-path
6794 (lambda* (#:key inputs #:allow-other-keys)
6795 (let ((libxcb (assoc-ref inputs "libxcb")))
6796 (substitute* '("xcffib/__init__.py")
6797 (("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
6799 (add-after 'install 'install-doc
6800 (lambda* (#:key outputs #:allow-other-keys)
6801 (let ((doc (string-append (assoc-ref outputs "out") "/share"
6802 "/doc/" ,name "-" ,version)))
6804 (copy-file "README.md"
6805 (string-append doc "/README.md"))
6807 (home-page "https://github.com/tych0/xcffib")
6808 (synopsis "XCB Python bindings")
6810 "Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
6811 support for Python 3 and PyPy. It is based on cffi.")
6812 (license license:expat)))
6814 (define-public python2-xcffib
6815 (package-with-python2 python-xcffib))
6817 (define-public python-cairocffi
6819 (name "python-cairocffi")
6823 ;; The PyPI archive does not include the documentation, so use Git.
6826 (url "https://github.com/Kozea/cairocffi")
6827 (commit (string-append "v" version))))
6828 (file-name (git-file-name name version))
6831 "1ypw0c2lr43acn57hbmckk183zq4h477j7p4ig2zjvw0mcpvia50"))))
6832 (build-system python-build-system)
6833 (outputs '("out" "doc"))
6837 ("gdk-pixbuf" ,gdk-pixbuf)
6840 `(("python-numpy" ,python-numpy)
6841 ("python-pytest" ,python-pytest)
6842 ("python-pytest-cov" ,python-pytest-cov)
6843 ("python-pytest-runner" ,python-pytest-runner)
6844 ("python-sphinx" ,python-sphinx)
6845 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)))
6847 `(("python-xcffib" ,python-xcffib))) ; used at run time
6850 (modify-phases %standard-phases
6851 (add-after 'unpack 'patch-paths
6852 (lambda* (#:key inputs #:allow-other-keys)
6853 (substitute* "cairocffi/__init__.py"
6854 ;; Hack the dynamic library loading mechanism.
6855 (("find_library\\(library_name\\)")
6857 (("filenames = \\(library_filename,\\) \\+ filenames")
6860 (string-append (assoc-ref inputs "cairo")
6861 "/lib/libcairo.so.2")))
6862 (substitute* "cairocffi/pixbuf.py"
6863 (("libgdk_pixbuf-2.0.so.0")
6864 (string-append (assoc-ref inputs "gdk-pixbuf")
6865 "/lib/libgdk_pixbuf-2.0.so.0"))
6866 (("libgobject-2.0.so.0")
6867 (string-append (assoc-ref inputs "glib")
6868 "/lib/libgobject-2.0.so.0"))
6869 (("libglib-2.0.so.0")
6870 (string-append (assoc-ref inputs "glib")
6871 "/lib/libglib-2.0.so.0"))
6873 (string-append (assoc-ref inputs "gtk+")
6874 "/lib/libgdk-3.so.0")))
6876 (add-after 'unpack 'disable-linters
6877 ;; Their check fails; none of our business.
6879 (substitute* "setup.cfg"
6880 ((".*pytest-flake8.*") "")
6881 ((".*pytest-isort.*") "")
6885 (add-after 'install 'install-doc
6886 (lambda* (#:key inputs outputs #:allow-other-keys)
6887 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
6888 (doc (string-append data "/doc/" ,name "-" ,version))
6889 (html (string-append doc "/html")))
6890 (setenv "LD_LIBRARY_PATH"
6891 (string-append (assoc-ref inputs "cairo") "/lib" ":"
6892 (assoc-ref inputs "gdk-pixbuf") "/lib"))
6893 (setenv "LANG" "en_US.UTF-8")
6895 (for-each (lambda (file)
6896 (copy-file (string-append "." file)
6897 (string-append doc file)))
6898 '("/README.rst" "/NEWS.rst"))
6899 (system* "python" "setup.py" "build_sphinx")
6900 (copy-recursively "docs/_build/html" html)
6902 (home-page "https://github.com/Kozea/cairocffi")
6903 (synopsis "Python bindings and object-oriented API for Cairo")
6905 "Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
6906 Python bindings and object-oriented API for cairo. Cairo is a 2D vector
6907 graphics library with support for multiple backends including image buffers,
6908 PNG, PostScript, PDF, and SVG file output.")
6909 (license license:bsd-3)))
6911 (define-public python-decorator
6913 (name "python-decorator")
6918 (uri (pypi-uri "decorator" version))
6920 (base32 "0308djallnh00v112y5b7nadl657ysmkp6vc8xn51d6yzc9zm7n3"))))
6921 (build-system python-build-system)
6922 (home-page "https://pypi.org/project/decorator/")
6923 (synopsis "Python module to simplify usage of decorators")
6925 "The aim of the decorator module is to simplify the usage of decorators
6926 for the average programmer, and to popularize decorators usage giving examples
6927 of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
6928 etc. The core of this module is a decorator factory.")
6929 (license license:expat)))
6931 (define-public python2-decorator
6932 (package-with-python2 python-decorator))
6934 (define-public python-drmaa
6936 (name "python-drmaa")
6941 (uri (pypi-uri "drmaa" version))
6943 (base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
6944 (build-system python-build-system)
6945 ;; The test suite requires libdrmaa which is provided by the cluster
6946 ;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
6947 ;; should be set to the path of the libdrmaa library.
6948 (arguments '(#:tests? #f))
6950 `(("python-nose" ,python-nose)))
6951 (home-page "https://pypi.org/project/drmaa/")
6952 (synopsis "Python bindings for the DRMAA library")
6954 "A Python package for Distributed Resource Management (DRM) job
6955 submission and control. This package is an implementation of the DRMAA 1.0
6956 Python language binding specification.")
6957 (license license:bsd-3)))
6959 (define-public python2-drmaa
6960 (package-with-python2 python-drmaa))
6962 (define-public python-grako
6964 (name "python-grako")
6970 (pypi-uri "grako" version ".zip"))
6973 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
6974 (build-system python-build-system)
6975 (arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
6978 ("python-pytest" ,python-pytest)
6979 ("python-pytest-runner" ,python-pytest-runner)))
6980 (home-page "https://bitbucket.org/neogeny/grako")
6981 (synopsis "EBNF parser generator")
6983 "Grako takes a grammar in a variation of EBNF as input, and outputs a
6984 memoizing PEG/Packrat parser in Python.")
6985 (license license:bsd-3)))
6987 (define-public python2-grako
6988 (package-with-python2 python-grako))
6990 (define-public python-grandalf
6992 (name "python-grandalf")
6996 ;; There's no source tarball on PyPI.
6999 (url "https://github.com/bdcht/grandalf")
7000 (commit (string-append "v" version))))
7001 (file-name (git-file-name name version))
7004 "03p8w8ljpb87qbyldm3s6b7qi30hfcn43h33iwlgqcf31fjsyr4g"))))
7005 (build-system python-build-system)
7008 (modify-phases %standard-phases
7011 (invoke "python" "setup.py" "pytest"))))))
7013 `(("python-pytest" ,python-pytest)
7014 ("python-pytest-runner" ,python-pytest-runner)))
7016 `(("python-numpy" ,python-numpy)
7017 ("python-ply" ,python-ply)))
7018 (home-page "https://github.com/bdcht/grandalf")
7019 (synopsis "Graph and drawing algorithms framework")
7021 "Grandalf is a Python package made for experimentations with graphs
7022 drawing algorithms. It is written in pure Python, and currently implements
7023 two layouts: the Sugiyama hierarchical layout and the force-driven or energy
7024 minimization approach. While not as fast or featured as graphviz or other
7025 libraries like OGDF (C++), it provides a way to walk and draw graphs no larger
7026 than thousands of nodes, while keeping the source code simple enough to tweak
7027 and hack any part of it for experimental purpose. With a total of about 1500
7028 lines of Python, the code involved in drawing the Sugiyama (dot) layout fits
7029 in less than 600 lines. The energy minimization approach is comprised of only
7032 Grandalf does only 2 not-so-simple things:
7034 @item computing the nodes (x,y) coordinates (based on provided nodes
7035 dimensions, and a chosen layout)
7036 @item routing the edges with lines or nurbs
7039 It doesn’t depend on any GTK/Qt/whatever graphics toolkit. This means that it
7040 will help you find where to draw things like nodes and edges, but it’s up to
7041 you to actually draw things with your favorite toolkit.")
7042 ;; The user can choose either license.
7043 (license (list license:gpl2 license:epl1.0))))
7045 (define-public python-gridmap
7047 (name "python-gridmap")
7053 (url "https://github.com/pygridtools/gridmap")
7054 (commit (string-append "v" version))))
7055 (file-name (git-file-name name version))
7057 (base32 "0v0sgpg6pz8h61f9aqjf5xk0ipr512bbz8dxzjjylksj135qr19l"))))
7058 (build-system python-build-system)
7060 '(#:tests? #f)) ; FIXME: Requires python-cherrypy.
7062 `(("python-psutil" ,python-psutil)
7063 ("python-drmaa" ,python-drmaa)
7064 ("python-pyzmq" ,python-pyzmq)))
7065 (home-page "https://github.com/pygridtools/gridmap")
7066 (synopsis "Create jobs on a cluster directly from Python")
7068 "Gridmap is a Python package to allow you to easily create jobs on the
7069 cluster directly from Python. You can directly map Python functions onto the
7070 cluster without needing to write any wrapper code yourself.")
7071 (license license:gpl3+)))
7073 (define-public python-honcho
7075 (name "python-honcho")
7081 (url "https://github.com/nickstenning/honcho")
7082 (commit (string-append "v" version))))
7083 (file-name (git-file-name name version))
7085 (base32 "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b"))))
7086 (build-system python-build-system)
7088 `(("python-pytest" ,python-pytest)
7089 ("python-mock" ,python-mock)
7090 ("python-tox" ,python-tox)
7091 ("which" ,which))) ;for tests
7093 `(("python-jinja2" ,python-jinja2)))
7096 (modify-phases %standard-phases
7098 (add-after 'install 'check
7099 (lambda* (#:key outputs inputs #:allow-other-keys)
7100 ;; fix honcho path in testsuite
7101 (substitute* "tests/conftest.py"
7102 (("'honcho'") (string-append "'" (assoc-ref outputs "out")
7103 "/bin/honcho" "'")))
7104 ;; It's easier to run tests after install.
7105 ;; Make installed package available for running the tests
7106 (add-installed-pythonpath inputs outputs)
7107 (invoke "py.test" "-v"))))))
7108 (home-page "https://github.com/nickstenning/honcho")
7109 (synopsis "Manage Procfile-based applications")
7111 "A Procfile is a file which describes how to run an application
7112 consisting of several processes. honcho starts all listed processes.
7113 The output of all running processes is collected by honcho and
7115 (license license:expat)))
7117 (define-public python-pexpect
7119 (name "python-pexpect")
7124 (uri (pypi-uri "pexpect" version))
7126 (base32 "032cg337h8awydgypz6f4wx848lw8dyrj4zy988x0lyib4ws8rgw"))))
7127 (build-system python-build-system)
7130 (modify-phases %standard-phases
7131 (add-before 'check 'prepare-tests
7133 (substitute* (find-files "tests")
7134 (("/bin/ls") (which "ls"))
7135 (("/bin/echo") (which "echo"))
7136 (("/bin/which") (which "which"))
7137 ;; Many tests try to use the /bin directory which
7138 ;; is not present in the build environment.
7139 ;; Use one that's non-empty and unlikely to change.
7141 ;; Disable failing test. See upstream bug report
7142 ;; https://github.com/pexpect/pexpect/issues/568
7143 (("def test_bash") "def _test_bash"))
7144 ;; XXX: Socket connection test gets "Connection reset by peer".
7145 ;; Why does it not work? Delete for now.
7146 (delete-file "tests/test_socket.py")
7148 (replace 'check (lambda _ (invoke "nosetests" "-v"))))))
7150 `(("python-nose" ,python-nose)
7151 ("python-pytest" ,python-pytest)
7154 ("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
7156 `(("python-ptyprocess" ,python-ptyprocess)))
7157 (home-page "http://pexpect.readthedocs.org/")
7158 (synopsis "Controlling interactive console applications")
7160 "Pexpect is a pure Python module for spawning child applications;
7161 controlling them; and responding to expected patterns in their output.
7162 Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
7163 child application and control it as if a human were typing commands.")
7164 (license license:isc)))
7166 (define-public python2-pexpect
7167 (package-with-python2 python-pexpect))
7169 (define-public python-setuptools-scm
7171 (name "python-setuptools-scm")
7175 (uri (pypi-uri "setuptools_scm" version))
7178 "083k93wi7mrmp1cn28hcbnr6sivbgls0y7zz2m5qzn1wg04a3f16"))))
7179 (build-system python-build-system)
7180 (home-page "https://github.com/pypa/setuptools_scm/")
7181 (synopsis "Manage Python package versions in SCM metadata")
7183 "Setuptools_scm handles managing your Python package versions in
7184 @dfn{software configuration management} (SCM) metadata instead of declaring
7185 them as the version argument or in a SCM managed file.")
7186 (license license:expat)))
7188 ;; TODO: Merge with 'python-setuptools-scm' on the next rebuild cycle.
7189 (define-public python-setuptools-scm/next
7191 (inherit python-setuptools-scm)
7196 (uri (pypi-uri "setuptools_scm" version))
7198 (base32 "0ahlrxxkx2xhmxskx57gc96w3bdndflxx30304ihvm7ds136nny8"))))))
7200 (define-public python2-setuptools-scm
7201 (package-with-python2 python-setuptools-scm))
7203 (define-public python-sexpdata
7205 (name "python-sexpdata")
7210 (uri (pypi-uri "sexpdata" version))
7213 "1q4lsjyzzqrdv64l0pv4ij9nd8gqhvxqcrpxc2xpxs652sk2gj0s"))))
7214 (build-system python-build-system)
7215 (home-page "https://github.com/jd-boyd/sexpdata")
7216 (synopsis "S-expression parser for Python")
7218 "Sexpdata is an S-expression parser/serializer. It has load and dump
7219 functions like pickle, json or PyYAML module.")
7220 (license license:bsd-3)))
7222 (define-public python-pathlib2
7224 (name "python-pathlib2")
7229 (uri (pypi-uri "pathlib2" version))
7232 "0hpp92vqqgcd8h92msm9slv161b1q160igjwnkf2ag6cx0c96695"))))
7233 (build-system python-build-system)
7235 `(("python-scandir" ,python-scandir)
7236 ("python-six" ,python-six)))
7237 (home-page "https://pypi.org/project/pathlib2/")
7238 (synopsis "Object-oriented file system paths")
7239 (description "The goal of pathlib2 is to provide a backport of the
7240 standard @code{pathlib} module which tracks the standard library module, so
7241 all the newest features of the standard @code{pathlib} can be used also on
7242 older Python versions.")
7243 (license license:expat)))
7245 (define-public python-importlib-resources
7247 (name "python-importlib-resources")
7252 (uri (pypi-uri "importlib_resources" version))
7255 "1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
7256 (build-system python-build-system)
7258 `(("python-setuptools-scm" ,python-setuptools-scm)
7259 ("python-toml" ,python-toml)))
7260 (home-page "http://importlib-resources.readthedocs.io/")
7261 (synopsis "Read resources from Python packages")
7263 "@code{importlib_resources} is a backport of Python 3's standard library
7264 @code{importlib.resources} module for Python 2.7, and Python 3.")
7265 (properties `((python2-variant . ,(delay python2-importlib-resources))))
7266 (license license:asl2.0)))
7268 (define-public python2-importlib-resources
7270 (name "python2-importlib-resources")
7274 (uri (pypi-uri "importlib_resources" version))
7277 "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
7278 (build-system python-build-system)
7280 `(#:python ,python-2
7281 #:phases (modify-phases %standard-phases
7282 ;; The build system tests for python-wheel, but it is
7283 ;; not required for Guix nor the test suite. Just drop
7284 ;; it to make bootstrapping pytest easier.
7285 (add-after 'unpack 'drop-wheel-dependency
7287 (substitute* "setup.cfg"
7288 (("^[[:blank:]]+wheel")
7292 `(("python-pathlib2" ,python2-pathlib2)
7293 ("python-typing" ,python2-typing)))
7294 (home-page "https://gitlab.com/python-devs/importlib_resources")
7295 (synopsis "Backport of @code{importlib.resources} from Python 3.7")
7297 "This package provides an implementation of @code{importlib.resources}
7298 for older versions of Python.")
7299 (license license:asl2.0)))
7301 ;; For importlib-metadata-bootstrap below.
7302 (define-public python2-importlib-resources-bootstrap
7305 python2-importlib-resources
7306 (name "python2-importlib-resources-bootstrap")
7308 `(("python-pathlib2-bootstrap" ,python2-pathlib2-bootstrap)
7309 ("python-typing" ,python2-typing))))))
7311 (define-public python-importlib-metadata
7313 (name "python-importlib-metadata")
7318 (uri (pypi-uri "importlib_metadata" version))
7321 "00ikdj4gjhankdljnz7g5ggak4k9lql2926x0x117ir9j2lv7x86"))))
7322 (build-system python-build-system)
7324 `(("python-zipp" ,python-zipp)))
7326 `(("python-setuptools-scm" ,python-setuptools-scm)
7327 ("python-pyfakefs" ,python-pyfakefs)
7328 ("python-packaging" ,python-packaging)))
7329 (home-page "https://importlib-metadata.readthedocs.io/")
7330 (synopsis "Read metadata from Python packages")
7332 "@code{importlib_metadata} is a library which provides an API for
7333 accessing an installed Python package's metadata, such as its entry points or
7334 its top-level name. This functionality intends to replace most uses of
7335 @code{pkg_resources} entry point API and metadata API. Along with
7336 @code{importlib.resources} in Python 3.7 and newer, this can eliminate the
7337 need to use the older and less efficient @code{pkg_resources} package.")
7338 (properties `((python2-variant . ,(delay python2-importlib-metadata))))
7339 (license license:asl2.0)))
7341 (define-public python2-importlib-metadata
7342 (let ((base (package-with-python2 (strip-python2-variant
7343 python-importlib-metadata))))
7346 (name "python2-importlib-metadata")
7348 `(("python-setuptools-scm" ,python2-setuptools-scm)
7349 ("python-pyfakefs" ,python2-pyfakefs-bootstrap)
7350 ("python-packaging" ,python2-packaging-bootstrap)))
7352 `(("python-configparser" ,python2-configparser)
7353 ("python-contextlib2" ,python2-contextlib2)
7354 ("python-importlib-resources" ,python2-importlib-resources)
7355 ("python-pathlib2" ,python2-pathlib2)
7356 ,@(package-propagated-inputs base))))))
7358 ;; This package is used by python2-pytest, and thus must not depend on it.
7359 (define-public python2-importlib-metadata-bootstrap
7362 python2-importlib-metadata
7363 (name "python2-importlib-metadata-bootstrap")
7366 ,@(package-arguments python2-importlib-metadata)))
7368 `(("python-zipp" ,python2-zipp-bootstrap)
7369 ("python-pathlib2" ,python2-pathlib2-bootstrap)
7370 ("python-configparser" ,python2-configparser)
7371 ("python-contextlib2" ,python2-contextlib2-bootstrap)
7372 ("python-importlib-resources" ,python2-importlib-resources-bootstrap))))))
7374 (define-public python-importmagic
7376 (name "python-importmagic")
7381 (uri (pypi-uri "importmagic" version))
7384 "1n7qxa1snj06aw45mcfz7bxc46zp7fxj687140g2k6jcnyjmfxrz"))))
7385 (build-system python-build-system)
7386 (home-page "https://github.com/alecthomas/importmagic")
7387 (synopsis "Library for adding, removing and managing Python imports")
7389 "Importmagic is a Python library for automatically managing imports by
7390 finding unresolved symbols in Python code and their corresponding imports.")
7391 (license license:bsd-3)))
7393 (define-public python-inotify-simple
7395 (name "python-inotify-simple")
7401 (url "https://github.com/chrisjbillington/inotify_simple")
7403 (file-name (git-file-name name version))
7405 (base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05"))))
7406 (build-system python-build-system)
7408 "https://github.com/chrisjbillington/inotify_simple")
7409 (synopsis "Simple wrapper around inotify library")
7411 "@code{inotify-simple} is a simple wrapper around inotify library.")
7412 (license license:bsd-3)))
7414 (define-public python-jaraco-packaging
7416 (name "python-jaraco-packaging")
7421 (uri (pypi-uri "jaraco.packaging" version))
7424 "0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
7425 (build-system python-build-system)
7427 `(("python-pytest" ,python-pytest)
7428 ("python-pytest-checkdocs" ,python-pytest-checkdocs)
7429 ("python-pytest-flake8" ,python-pytest-flake8)
7430 ("python-rst.linker" ,python-rst.linker)
7431 ("python-setuptools" ,python-setuptools)
7432 ("python-setuptools-scm" ,python-setuptools-scm)
7433 ("python-six" ,python-six)
7434 ("python-sphinx" ,python-sphinx)))
7435 (home-page "https://github.com/jaraco/jaraco.packaging")
7436 (synopsis "Tools to supplement packaging Python releases")
7438 "This package provides various tools to supplement packaging Python
7440 (license license:expat)))
7442 (define-public python-pathpy
7444 (name "python-pathpy")
7449 (uri (pypi-uri "path.py" version))
7451 (base32 "0ir9j1haq2jbi7aip6k2fa9l7q1l03k4hp1awxhjhcwzsnwp3ll8"))))
7452 (outputs '("out" "doc"))
7453 (build-system python-build-system)
7455 `(("python-appdirs" ,python-appdirs)
7456 ("python-importlib-metadata" ,python-importlib-metadata)))
7458 `(("python-setuptools-scm" ,python-setuptools-scm)
7459 ("python-sphinx" ,python-sphinx)
7460 ("python-rst.linker" ,python-rst.linker)
7461 ("python-pytest" ,python-pytest)
7462 ("python-pytest-runner" ,python-pytest-runner)
7463 ("python-jaraco-packaging" ,python-jaraco-packaging)))
7466 (modify-phases %standard-phases
7467 (add-after 'build 'build-doc
7469 (setenv "LANG" "en_US.UTF-8")
7470 (invoke "python" "setup.py" "build_sphinx")))
7471 (add-after 'install 'install-doc
7472 (lambda* (#:key outputs #:allow-other-keys)
7473 (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
7474 (doc (string-append data "/doc/" ,name "-" ,version))
7475 (html (string-append doc "/html")))
7477 (for-each (lambda (file)
7478 (copy-file file (string-append doc "/" file)))
7479 '("README.rst" "CHANGES.rst"))
7480 (copy-recursively "build/sphinx/html" html)
7484 ;; The import time test aborts if an import takes longer than
7485 ;; 100ms. It may very well take a little longer than that.
7486 (invoke "pytest" "-v" "-k" "not test_import_time"))))))
7487 (home-page "https://github.com/jaraco/path.py")
7488 (synopsis "Python module wrapper for built-in os.path")
7490 "@code{path.py} implements path objects as first-class entities, allowing
7491 common operations on files to be invoked on those path objects directly.")
7492 (license license:expat)))
7494 (define-public python-simplegeneric
7496 (name "python-simplegeneric")
7501 (uri (pypi-uri "simplegeneric" version ".zip"))
7503 (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
7504 (build-system python-build-system)
7506 `(("unzip" ,unzip)))
7507 (home-page "http://cheeseshop.python.org/pypi/simplegeneric")
7508 (synopsis "Python module for simple generic functions")
7510 "The simplegeneric module lets you define simple single-dispatch generic
7511 functions, akin to Python’s built-in generic functions like @code{len()},
7512 @code{iter()} and so on. However, instead of using specially-named methods,
7513 these generic functions use simple lookup tables, akin to those used by
7514 e.g. @code{pickle.dump()} and other generic functions found in the Python
7516 (license license:zpl2.1)))
7518 (define-public python2-simplegeneric
7519 (package-with-python2 python-simplegeneric))
7521 (define-public python-ipython-genutils
7522 ;; TODO: This package is retired, check if can be removed, see description.
7524 (name "python-ipython-genutils")
7529 (uri (pypi-uri "ipython_genutils" version))
7531 (base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
7532 (build-system python-build-system)
7533 (arguments `(#:tests? #f)) ; no tests
7534 (home-page "https://ipython.org")
7535 (synopsis "Vestigial utilities from IPython")
7537 "This package provides retired utilities from IPython. No packages
7538 outside IPython/Jupyter should depend on it.
7540 This package shouldn't exist. It contains some common utilities shared by
7541 Jupyter and IPython projects during The Big Split. As soon as possible, those
7542 packages will remove their dependency on this, and this package will go
7544 (license license:bsd-3)))
7546 (define-public python2-ipython-genutils
7547 (package-with-python2 python-ipython-genutils))
7549 (define-public python-ipyparallel
7551 (name "python-ipyparallel")
7556 (uri (pypi-uri "ipyparallel" version))
7559 "0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn"))))
7560 (build-system python-build-system)
7562 `(#:tests? #f ; RuntimeError: IO Loop failed to start
7564 (modify-phases %standard-phases
7565 (add-before 'check 'prepare-for-tests
7567 (setenv "HOME" (getcwd))
7570 `(("python-dateutil" ,python-dateutil)
7571 ("python-decorator" ,python-decorator)
7572 ("python-ipykernel" ,python-ipykernel)
7573 ("python-ipython" ,python-ipython)
7574 ("python-ipython-genutils" ,python-ipython-genutils)
7575 ("python-jupyter-client" ,python-jupyter-client)
7576 ("python-pyzmq" ,python-pyzmq)
7577 ("python-tornado" ,python-tornado)
7578 ("python-traitlets" ,python-traitlets)))
7580 `(("python-ipython" ,python-ipython)
7581 ("python-mock" ,python-mock)
7582 ("python-nose" ,python-nose)
7583 ("python-pytest" ,python-pytest)
7584 ("python-pytest-cov" ,python-pytest-cov)
7585 ("python-testpath" ,python-testpath)))
7586 (home-page "https://ipython.org/")
7587 (synopsis "Interactive Parallel Computing with IPython")
7589 "@code{ipyparallel} is a Python package and collection of CLI scripts for
7590 controlling clusters for Jupyter. @code{ipyparallel} contains the following
7593 @item ipcluster - start/stop a cluster
7594 @item ipcontroller - start a scheduler
7595 @item ipengine - start an engine
7597 (license license:bsd-3)))
7599 (define-public python-ipython-cluster-helper
7601 (name "python-ipython-cluster-helper")
7606 (uri (pypi-uri "ipython-cluster-helper" version))
7609 "1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj"))
7610 (modules '((guix build utils)))
7612 '(begin (substitute* "requirements.txt"
7613 (("ipython.*") "ipython\n"))
7615 (build-system python-build-system)
7617 `(#:tests? #f ; Test suite can't find IPython.
7619 (modify-phases %standard-phases
7621 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
7624 (setenv "HOME" (getcwd))
7625 (add-installed-pythonpath inputs outputs)
7626 (invoke "python" "example/example.py" "--local"))
7629 `(("python-ipyparallel" ,python-ipyparallel)
7630 ("python-ipython" ,python-ipython)
7631 ("python-netifaces" ,python-netifaces)
7632 ("python-pyzmq" ,python-pyzmq)
7633 ("python-setuptools" ,python-setuptools)
7634 ("python-six" ,python-six)))
7635 (home-page "https://github.com/roryk/ipython-cluster-helper")
7637 "Simplify IPython cluster start up and use for multiple schedulers")
7639 "@code{ipython-cluster-helper} creates a throwaway parallel IPython
7640 profile, launches a cluster and returns a view. On program exit it shuts the
7641 cluster down and deletes the throwaway profile.")
7642 (license license:expat)))
7644 (define-public python-traitlets
7646 (name "python-traitlets")
7651 (uri (pypi-uri "traitlets" version))
7654 "1xsrwgivpkxlbr4dfndfsi098s29yqgswgjc1qqn69yxklvfw8yh"))))
7655 (build-system python-build-system)
7658 (modify-phases %standard-phases
7659 (replace 'check (lambda _ (invoke "pytest" "-vv" "traitlets"))))))
7661 `(("python-ipython-genutils" ,python-ipython-genutils)
7662 ("python-decorator" ,python-decorator)
7663 ("python-six" ,python-six)))
7665 `(("python-pytest" ,python-pytest)))
7666 (properties `((python2-variant . ,(delay python2-traitlets))))
7667 (home-page "https://ipython.org")
7668 (synopsis "Configuration system for Python applications")
7670 "Traitlets is a framework that lets Python classes have attributes with
7671 type checking, dynamically calculated default values, and ‘on change’
7672 callbacks. The package also includes a mechanism to use traitlets for
7673 configuration, loading values from files or from command line arguments. This
7674 is a distinct layer on top of traitlets, so you can use traitlets in your code
7675 without using the configuration machinery.")
7676 (license license:bsd-3)))
7678 (define-public python2-traitlets
7679 (let ((traitlets (package-with-python2 (strip-python2-variant python-traitlets))))
7680 (package/inherit traitlets
7682 `(("python2-enum34" ,python2-enum34)
7683 ,@(package-propagated-inputs traitlets))))))
7685 (define-public python-jupyter-core
7687 (name "python-jupyter-core")
7692 (uri (string-append (pypi-uri "jupyter_core" version)))
7695 "1d12j5hkff0xiax87pnhmzbsph3jqqzhz16h8xld7z2y4armq0kr"))))
7696 (build-system python-build-system)
7699 (modify-phases %standard-phases
7701 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
7703 ; Some tests write to $HOME.
7704 (setenv "HOME" "/tmp")
7705 ; Some tests load the installed package.
7706 (add-installed-pythonpath inputs outputs)
7707 (invoke "pytest" "-vv"))))
7708 (add-after 'unpack 'patch-testsuite
7710 ;; test_not_on_path() and test_path_priority() try to run a test
7711 ;; that loads jupyter_core, so we need PYTHONPATH
7712 (substitute* "jupyter_core/tests/test_command.py"
7713 (("env = \\{'PATH': ''\\}")
7714 "env = {'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}")
7715 (("env = \\{'PATH': str\\(b\\)\\}")
7716 "env = {'PATH': str(b), 'PYTHONPATH': os.environ['PYTHONPATH']}"))
7718 ;; Migration is running whenever etc/jupyter exists, but the
7719 ;; Guix-managed directory will never contain any migratable IPython
7720 ;; config files and cannot be written to anyway, so just pretend we
7721 ;; already did that.
7722 (add-after 'install 'disable-migration
7723 (lambda* (#:key outputs #:allow-other-keys)
7724 (mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
7727 (assoc-ref outputs "out")
7728 "/etc/jupyter/migrated")))))))
7730 `(("python-traitlets" ,python-traitlets)))
7732 `(("python-six" ,python-six)
7733 ("python-pytest" ,python-pytest)))
7734 ;; This package provides the `jupyter` binary and thus also exports the
7736 (native-search-paths
7737 (list (search-path-specification
7738 (variable "JUPYTER_CONFIG_DIR")
7739 (files '("etc/jupyter")))
7740 (search-path-specification
7741 (variable "JUPYTER_PATH")
7742 (files '("share/jupyter")))))
7743 (home-page "https://jupyter.org/")
7744 (synopsis "Jupyter base package")
7746 "Jupyter core is the base package on which Jupyter projects rely.")
7747 (license license:bsd-3)))
7749 (define-public python-jupyter-client
7751 (name "python-jupyter-client")
7756 (uri (pypi-uri "jupyter_client" version))
7759 "10p7fcgvv9hvz9zical9wk68ks5ssak2ykbzx65wm1k1hk8a3g64"))))
7760 (build-system python-build-system)
7763 (modify-phases %standard-phases
7764 (add-after 'unpack 'set-tool-file-names
7765 (lambda* (#:key inputs #:allow-other-keys)
7766 (let ((iproute (assoc-ref inputs "iproute")))
7767 (substitute* "jupyter_client/localinterfaces.py"
7769 (string-append "'" iproute "/sbin/ip'")))
7772 (lambda* (#:key tests? #:allow-other-keys)
7774 ;; Some tests try to write to $HOME.
7775 (setenv "HOME" "/tmp")
7776 (invoke "pytest" "-vv")))))))
7778 `(("iproute" ,iproute)))
7780 `(("python-dateutil" ,python-dateutil)
7781 ("python-jupyter-core" ,python-jupyter-core)
7782 ("python-pyzmq" ,python-pyzmq)
7783 ("python-tornado" ,python-tornado-6)
7784 ("python-traitlets" ,python-traitlets)))
7786 `(("python-pytest" ,python-pytest)
7787 ("python-pytest-asyncio" ,python-pytest-asyncio)
7788 ("python-pytest-timeout" ,python-pytest-timeout)
7789 ("python-async-generator" ,python-async-generator)
7790 ("python-mock" ,python-mock)
7791 ("python-msgpack" ,python-msgpack)
7792 ("python-ipython" ,python-ipython)
7793 ("python-ipykernel" ,python-ipykernel-bootstrap)))
7794 (home-page "https://jupyter.org/")
7795 (synopsis "Jupyter protocol implementation and client libraries")
7797 "The @code{jupyter_client} package contains the reference implementation
7798 of the Jupyter protocol. It also provides client and kernel management APIs
7799 for working with kernels, and the @code{jupyter kernelspec} entrypoint for
7800 installing @code{kernelspec}s for use with Jupyter frontends.")
7801 (license license:bsd-3)))
7803 ;; Bootstrap variant of jupyter-client, which breaks the loop between ipykernel
7804 ;; and jupyter-client by removing the former from its native-inputs and
7806 (define-public python-jupyter-client-bootstrap
7807 (let ((base python-jupyter-client))
7811 (name "python-jupyter-client-bootstrap")
7814 ,@(package-arguments base)))
7815 (native-inputs `())))))
7817 (define-public python2-jupyter-client
7818 (package-with-python2 python-jupyter-client))
7820 (define-public python-ipykernel
7822 (name "python-ipykernel")
7827 (uri (pypi-uri "ipykernel" version))
7829 (base32 "02f55cjkp5q64x7ikjxznbxwjpkdmfy237b9kg7dk1pxmzvy90m6"))))
7830 (build-system python-build-system)
7833 (modify-phases %standard-phases
7836 (setenv "HOME" "/tmp")
7837 (invoke "pytest" "-v")
7839 (add-after 'install 'set-python-file-name
7840 (lambda* (#:key outputs #:allow-other-keys)
7841 ;; Record the absolute file name of the 'python' executable in
7843 (let ((out (assoc-ref outputs "out")))
7844 (substitute* (string-append out "/share/jupyter"
7845 "/kernels/python3/kernel.json")
7847 (string-append "\"" (which "python") "\"")))
7850 `(("python-ipython" ,python-ipython)
7851 ("python-tornado" ,python-tornado-6)
7852 ("python-traitlets" ,python-traitlets)
7853 ;; imported at runtime during connect
7854 ("python-jupyter-client" ,python-jupyter-client)))
7856 `(("python-flaky" ,python-flaky)
7857 ("python-nose" ,python-nose)
7858 ("python-pytest" ,python-pytest)))
7859 (home-page "https://ipython.org")
7860 (synopsis "IPython Kernel for Jupyter")
7862 "This package provides the IPython kernel for Jupyter.")
7863 (license license:bsd-3)))
7865 ;; Bootstrap variant of ipykernel, which uses the bootstrap jupyter-client to
7866 ;; break the cycle between ipykernel and jupyter-client.
7867 (define-public python-ipykernel-bootstrap
7868 (let ((parent python-ipykernel))
7872 (name "python-ipykernel-bootstrap")
7874 `(("python-jupyter-client" ,python-jupyter-client-bootstrap)
7875 ,@(fold alist-delete (package-propagated-inputs parent)
7876 '("python-jupyter-client"))))))))
7878 (define-public python-pari-jupyter
7880 (name "python-pari-jupyter")
7885 (uri (pypi-uri "pari_jupyter" version))
7888 "1yash0p422nnin7z58b99d0p23nx79f5m0mainc9hsjg72jhdhr6"))))
7889 (build-system python-build-system)
7891 `(("python-ipykernel" ,python-ipykernel)))
7893 `(("pari-gp" ,pari-gp)
7894 ("readline" ,readline)))
7896 `(#:tests? #f)) ; no test suite
7898 "https://github.com/jdemeyer/pari_jupyter")
7899 (synopsis "A Jupyter kernel for PARI/GP")
7900 (description "The package provides a PARI/GP kernel for Jupyter.")
7901 (license license:gpl3+)))
7903 (define-public python-backcall
7905 (name "python-backcall")
7910 (uri (pypi-uri "backcall" version))
7913 "07jy4562lvnhkk6kfr3cphmizy88anlhmbwb8kdzlz2ypqkvzgaw"))))
7914 (build-system python-build-system)
7915 (home-page "https://github.com/takluyver/backcall/")
7916 (synopsis "Specifications for callback functions passed in to an API")
7918 "If your code lets other people supply callback functions, it's important
7919 to specify the function signature you expect, and check that functions support
7920 that. Adding extra parameters later would break other peoples code unless
7921 you're careful. The @code{backcall} package provides a way of specifying the
7922 callback signature using a prototype function.")
7923 (license license:bsd-3)))
7925 (define-public python-ipython
7927 (name "python-ipython")
7932 (uri (pypi-uri "ipython" version ".tar.gz"))
7934 (base32 "103jkw18z7fnwdal1mdbijjxi1fndzn31g887lmj7ddpf2r07lyz"))))
7935 (build-system python-build-system)
7937 `(("python-backcall" ,python-backcall)
7938 ("python-pyzmq" ,python-pyzmq)
7939 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
7940 ("python-terminado" ,python-terminado)
7941 ("python-matplotlib" ,python-matplotlib)
7942 ("python-numpy" ,python-numpy)
7943 ("python-numpydoc" ,python-numpydoc)
7944 ("python-jedi" ,python-jedi)
7945 ("python-jinja2" ,python-jinja2)
7946 ("python-mistune" ,python-mistune)
7947 ("python-pexpect" ,python-pexpect)
7948 ("python-pickleshare" ,python-pickleshare)
7949 ("python-simplegeneric" ,python-simplegeneric)
7950 ("python-jsonschema" ,python-jsonschema)
7951 ("python-traitlets" ,python-traitlets)
7952 ("python-nbformat" ,python-nbformat)
7953 ("python-pygments" ,python-pygments)))
7955 `(("readline" ,readline)
7958 `(("graphviz" ,graphviz)
7959 ("pkg-config" ,pkg-config)
7960 ("python-requests" ,python-requests) ;; for tests
7961 ("python-testpath" ,python-testpath)
7962 ("python-nose" ,python-nose)))
7965 (modify-phases %standard-phases
7966 (add-after 'unpack 'make-docs-reproducible
7968 (substitute* "IPython/sphinxext/ipython_directive.py"
7969 ((".*import datetime") "")
7970 ((".*datetime.datetime.now\\(\\)") "")
7971 (("%timeit") "# %timeit"))
7973 ;; Tests can only be run after the library has been installed and not
7974 ;; within the source directory.
7976 (add-after 'install 'check
7977 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
7980 ;; Make installed package available for running the tests
7981 (add-installed-pythonpath inputs outputs)
7982 (setenv "HOME" "/tmp/") ;; required by a test
7983 ;; We only test the core because one of the other tests
7984 ;; tries to import ipykernel.
7985 (invoke "python" "IPython/testing/iptest.py"
7986 "-v" "IPython/core/tests"))
7988 (add-before 'check 'fix-tests
7989 (lambda* (#:key inputs #:allow-other-keys)
7990 (substitute* "./IPython/utils/_process_posix.py"
7991 (("/usr/bin/env', 'which") (which "which")))
7992 (substitute* "./IPython/core/tests/test_inputtransformer.py"
7993 (("#!/usr/bin/env python")
7994 (string-append "#!" (which "python"))))
7995 ;; This test introduces a circular dependency on ipykernel
7996 ;; (which depends on ipython).
7997 (delete-file "IPython/core/tests/test_display.py")
7998 ;; AttributeError: module 'IPython.core' has no attribute 'formatters'
7999 (delete-file "IPython/core/tests/test_interactiveshell.py")
8001 (home-page "https://ipython.org")
8002 (synopsis "IPython is a tool for interactive computing in Python")
8004 "IPython provides a rich architecture for interactive computing with:
8005 Powerful interactive shells, a browser-based notebook, support for interactive
8006 data visualization, embeddable interpreters and tools for parallel
8008 (properties `((python2-variant . ,(delay python2-ipython))))
8009 (license license:bsd-3)))
8011 ;; This is the latest release of the LTS version of ipython with support for
8012 ;; Python 2.7 and Python 3.x. Later non-LTS versions starting from 6.0 have
8013 ;; dropped support for Python 2.7.
8014 (define-public python2-ipython
8016 (name "python2-ipython")
8021 (uri (pypi-uri "ipython" version ".tar.gz"))
8023 (base32 "01l93i4hspf0lvhmycvc8j378bslm9rw30mwfspsl6v1ayc69b2b"))))
8024 (build-system python-build-system)
8026 `(("python2-backports-shutil-get-terminal-size"
8027 ,python2-backports-shutil-get-terminal-size)
8028 ("python2-pathlib2" ,python2-pathlib2)
8029 ("python2-pyzmq" ,python2-pyzmq)
8030 ("python2-prompt-toolkit" ,python2-prompt-toolkit-1)
8031 ("python2-terminado" ,python2-terminado)
8032 ("python2-matplotlib" ,python2-matplotlib)
8033 ("python2-numpy" ,python2-numpy)
8034 ("python2-numpydoc" ,python2-numpydoc)
8035 ("python2-jinja2" ,python2-jinja2)
8036 ("python2-mistune" ,python2-mistune)
8037 ("python2-pexpect" ,python2-pexpect)
8038 ("python2-pickleshare" ,python2-pickleshare)
8039 ("python2-simplegeneric" ,python2-simplegeneric)
8040 ("python2-jsonschema" ,python2-jsonschema)
8041 ("python2-traitlets" ,python2-traitlets)
8042 ("python2-nbformat" ,python2-nbformat)
8043 ("python2-pygments" ,python2-pygments)))
8045 `(("readline" ,readline)
8048 `(("graphviz" ,graphviz)
8049 ("pkg-config" ,pkg-config)
8050 ("python2-requests" ,python2-requests) ;; for tests
8051 ("python2-testpath" ,python2-testpath)
8052 ("python2-mock" ,python2-mock)
8053 ("python2-nose" ,python2-nose)))
8055 `(#:python ,python-2
8057 (modify-phases %standard-phases
8058 (add-before 'check 'delete-broken-tests
8059 (lambda* (#:key inputs #:allow-other-keys)
8060 ;; These tests throw errors for unknown reasons.
8061 (delete-file "IPython/core/tests/test_displayhook.py")
8062 (delete-file "IPython/core/tests/test_magic_terminal.py")
8063 (delete-file "IPython/core/tests/test_profile.py")
8065 (home-page "https://ipython.org")
8066 (synopsis "IPython is a tool for interactive computing in Python")
8068 "IPython provides a rich architecture for interactive computing with:
8069 Powerful interactive shells, a browser-based notebook, support for interactive
8070 data visualization, embeddable interpreters and tools for parallel
8072 (license license:bsd-3)))
8074 (define-public python-ipython-documentation
8076 (inherit python-ipython)
8077 (name "python-ipython-documentation")
8078 (version (package-version python-ipython))
8081 (modify-phases %standard-phases
8085 (lambda* (#:key outputs #:allow-other-keys)
8086 (let* ((data (string-append (assoc-ref outputs "out") "/share"))
8087 (doc (string-append data "/doc/" ,name "-" ,version))
8088 (html (string-append doc "/html"))
8089 (man1 (string-append data "/man/man1"))
8090 (info (string-append data "/info"))
8091 (examples (string-append doc "/examples"))
8092 (python-arg (string-append "PYTHON=" (which "python"))))
8093 (setenv "LANG" "en_US.utf8")
8094 (with-directory-excursion "docs"
8095 ;; FIXME: pdf fails to build
8096 ;;(system* "make" "pdf" "PAPER=a4")
8097 (system* "make" python-arg "html")
8098 ;; FIXME: the generated texi file contains ^@^@, which trips
8100 ;; (system* "make" python-arg "info")
8102 (copy-recursively "docs/man" man1)
8103 (copy-recursively "examples" examples)
8104 (copy-recursively "docs/build/html" html)
8105 ;; (copy-file "docs/build/latex/ipython.pdf"
8106 ;; (string-append doc "/ipython.pdf"))
8108 ;; (copy-file "docs/build/texinfo/ipython.info"
8109 ;; (string-append info "/ipython.info"))
8110 (copy-file "COPYING.rst" (string-append doc "/COPYING.rst")))
8113 `(("python-ipython" ,python-ipython)
8114 ("python-ipykernel" ,python-ipykernel)))
8116 `(("python-sphinx" ,python-sphinx)
8117 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
8118 ;; FIXME: It's possible that a smaller union would work just as well.
8119 ("texlive" ,(texlive-union (list texlive-amsfonts/patched
8121 texlive-generic-ifxetex
8122 texlive-generic-pdftex
8123 texlive-latex-capt-of
8125 texlive-latex-environ
8126 texlive-latex-eqparbox
8127 texlive-latex-etoolbox
8128 texlive-latex-expdlist
8129 texlive-latex-fancyhdr
8130 texlive-latex-fancyvrb
8131 texlive-latex-fncychap
8133 texlive-latex-framed
8134 texlive-latex-geometry
8135 texlive-latex-graphics
8136 texlive-latex-hyperref
8137 texlive-latex-mdwtools
8138 texlive-latex-multirow
8139 texlive-latex-needspace
8140 texlive-latex-oberdiek
8141 texlive-latex-parskip
8142 texlive-latex-preview
8143 texlive-latex-tabulary
8144 texlive-latex-threeparttable
8145 texlive-latex-titlesec
8146 texlive-latex-trimspaces
8148 texlive-latex-upquote
8150 texlive-latex-varwidth
8151 texlive-latex-wrapfig)))
8152 ("texinfo" ,texinfo)))))
8154 (define-public python-urwid
8156 (name "python-urwid")
8161 (uri (pypi-uri "urwid" version))
8164 "1bky2bra6673xx8jy0826znw6cmxs89wcwwzda8d025j3jffx2sq"))))
8165 (build-system python-build-system)
8166 (home-page "http://urwid.org")
8167 (synopsis "Console user interface library for Python")
8169 "Urwid is a curses-based UI/widget library for Python. It includes many
8170 features useful for text console applications.")
8171 (properties `((python2-variant . ,(delay python2-urwid))))
8172 (license license:lgpl2.1+)))
8174 (define-public python2-urwid
8175 (let ((base (package-with-python2
8176 (strip-python2-variant python-urwid))))
8183 (uri (pypi-uri "urwid" version))
8186 "11ndnhxd41m13darf5s0c6bafdpkzq1l6mfb04wbzdmyc1hg75h8")))))))
8188 (define-public python-urwid-readline
8190 (name "python-urwid-readline")
8196 (url "https://github.com/rr-/urwid_readline")
8198 (file-name (git-file-name name version))
8201 "0sq5qgxj7gcfww3ww7idr87isnmp0hi36n241b3q395x1zafdv22"))))
8202 (build-system python-build-system)
8205 (modify-phases %standard-phases
8207 (lambda* (#:key tests? #:allow-other-keys)
8209 (invoke "python" "-m" "pytest"))
8212 `(("python-urwid" ,python-urwid)))
8214 `(("python-pytest" ,python-pytest)))
8215 (home-page "https://github.com/rr-/urwid_readline")
8216 (synopsis "Text input widget for urwid that supports readline shortcuts")
8218 "This package provides a textbox edit widget for @code{python-urwid} that
8219 supports @code{readline} shortcuts.")
8220 (license license:expat)))
8222 (define-public python-textdistance
8224 (name "python-textdistance")
8228 ;; There are no tests in the PyPI tarball.
8231 (url "https://github.com/life4/textdistance")
8232 (commit (string-append "v." version))))
8233 (file-name (git-file-name name version))
8235 (base32 "1g17i356fnny4k6hjr2ayy9k77jbvd6zzmngws2kbrnvhss1wgwf"))))
8236 (build-system python-build-system)
8238 `(#:test-target "pytest"
8240 (modify-phases %standard-phases
8241 (add-after 'unpack 'delete-external-test
8243 ;; All tests in this file require external libraries.
8244 (delete-file "tests/test_external.py")
8247 `(("python-hypothesis" ,python-hypothesis)
8248 ("python-isort" ,python-isort)
8249 ("python-numpy" ,python-numpy)
8250 ("python-pytest" ,python-pytest)
8251 ("python-pytest-runner" ,python-pytest-runner)
8252 ("python-tabulate" ,python-tabulate)))
8253 (home-page "https://github.com/life4/textdistance")
8254 (synopsis "Compute distance between the two texts")
8255 (description "@code{textdistance} is a pure Python library for comparing
8256 distance between two or more sequences by many algorithms.")
8257 (license license:expat)))
8259 (define-public python-urwidtrees
8261 (name "python-urwidtrees")
8266 ;; package author intends on distributing via github rather than pypi:
8267 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
8269 (url "https://github.com/pazz/urwidtrees")
8271 (file-name (git-file-name name version))
8274 "1n1kpidvkdnsqyb82vlvk78gmly96kh8351lqxn2pzgwwns6fml2"))))
8275 (build-system python-build-system)
8277 '(#:use-setuptools? #f
8278 #:tests? #f)) ; no tests
8279 (propagated-inputs `(("python-urwid" ,python-urwid)))
8280 (home-page "https://github.com/pazz/urwidtrees")
8281 (synopsis "Tree widgets for urwid")
8282 (description "Urwidtrees is a Widget Container API for the @code{urwid}
8283 toolkit. Use it to build trees of widgets.")
8284 (license license:gpl3+)))
8286 (define-public python2-urwidtrees
8287 (package-with-python2 python-urwidtrees))
8289 (define-public python-ua-parser
8291 (name "python-ua-parser")
8296 (uri (pypi-uri "ua-parser" version))
8299 "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp"))))
8300 (build-system python-build-system)
8302 `(#:tests? #f)) ;no test suite in release
8304 `(("python-pyyaml" ,python-pyyaml)))
8305 (home-page "https://github.com/ua-parser/uap-python")
8306 (synopsis "User agent parser")
8308 "@code{ua-parser} is a Python port of Browserscope's user agent parser.")
8309 (license license:asl2.0)))
8311 (define-public python2-ua-parser
8312 (package-with-python2 python-ua-parser))
8314 (define-public python-user-agents
8316 (name "python-user-agents")
8321 (uri (pypi-uri "user-agents" version))
8324 "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4"))))
8325 (build-system python-build-system)
8327 `(#:tests? #f)) ;missing devices.json test file in release
8329 `(("python-ua-parser" ,python-ua-parser)))
8330 (home-page "https://github.com/selwin/python-user-agents")
8331 (synopsis "User Agent strings parsing library")
8333 "A library to identify devices (phones, tablets) and their capabilities by
8334 parsing (browser/HTTP) user agent strings.")
8335 (license license:expat)))
8337 (define-public python2-user-agents
8338 (package-with-python2 python-user-agents))
8340 (define-public python-dbus
8342 (name "python-dbus")
8347 (uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
8348 "dbus-python-" version ".tar.gz"))
8350 (base32 "196m5rk3qzw5nkmgzjl7wmq0v7vpwfhh8bz2sapdi5f9hqfqy8qi"))))
8351 (build-system gnu-build-system)
8353 `(("pkg-config" ,pkg-config)))
8355 `(("python" ,python-wrapper)
8356 ("dbus-glib" ,dbus-glib)))
8357 (synopsis "Python bindings for D-bus")
8358 (description "python-dbus provides bindings for libdbus, the reference
8359 implementation of D-Bus.")
8360 (home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
8361 (license license:expat)))
8363 (define-public python2-dbus
8364 (package/inherit python-dbus
8365 (name "python2-dbus")
8366 (inputs `(("python" ,python-2)
8367 ,@(alist-delete "python"
8368 (package-inputs python-dbus)
8371 (define-public python-notify2
8373 (name "python-notify2")
8378 (uri (pypi-uri "notify2" version))
8381 "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
8382 (build-system python-build-system)
8383 (arguments `(#:tests? #f)) ; tests depend on system state
8385 `(("python-dbus" ,python-dbus)))
8386 (home-page "https://bitbucket.org/takluyver/pynotify2")
8387 (synopsis "Python interface to D-Bus notifications")
8389 "Pynotify2 provides a Python interface for sending D-Bus notifications.
8390 It is a reimplementation of pynotify in pure Python, and an alternative to
8391 the GObject Introspection bindings to libnotify for non-GTK applications.")
8392 (license (list license:bsd-2
8393 license:lgpl2.1+))))
8395 (define-public python2-notify2
8396 (package-with-python2 python-notify2))
8398 ;; beautifulsoup4 has a totally different namespace than 3.x,
8399 ;; and pypi seems to put it under its own name, so I guess we should too
8400 (define-public python-beautifulsoup4
8402 (name "python-beautifulsoup4")
8407 (uri (pypi-uri "beautifulsoup4" version))
8410 "09gbd49mwz86k572r1231x2rdp82p42zlnw0bz9b9mfi58r9wwl4"))))
8411 (build-system python-build-system)
8414 (modify-phases %standard-phases
8415 ;; The Python 2 source is the definitive source of beautifulsoup4. We
8416 ;; must use this conversion script when building with Python 3. The
8417 ;; conversion script also runs the tests.
8418 ;; For more information, see the file 'convert-py3k' in the source
8421 (lambda _ (invoke "./convert-py3k"))))))
8423 `(("python-soupsieve" ,python-soupsieve)))
8425 "https://www.crummy.com/software/BeautifulSoup/bs4/")
8427 "Python screen-scraping library")
8429 "Beautiful Soup is a Python library designed for rapidly setting up
8430 screen-scraping projects. It offers Pythonic idioms for navigating,
8431 searching, and modifying a parse tree, providing a toolkit for
8432 dissecting a document and extracting what you need. It automatically
8433 converts incoming documents to Unicode and outgoing documents to UTF-8.")
8434 (license license:expat)
8435 (properties `((python2-variant . ,(delay python2-beautifulsoup4))))))
8437 (define-public python2-beautifulsoup4
8438 (let ((base (package-with-python2
8439 (strip-python2-variant python-beautifulsoup4))))
8440 (package/inherit base
8441 (arguments `(#:python ,python-2)))))
8443 (define-public python-soupsieve
8445 (name "python-soupsieve")
8450 (uri (pypi-uri "soupsieve" version))
8453 "1k70gpn2d3vgdyxbdy536dgm4kchcraxz6lmgsfg3324iy2789q5"))))
8454 (build-system python-build-system)
8455 (arguments `(#:tests? #f))
8456 ;;XXX: 2 tests fail currently despite claming they were to be
8457 ;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
8458 ;;don't want to create a circular dependency.
8459 (home-page "https://github.com/facelessuser/soupsieve")
8460 (synopsis "CSS selector library")
8462 "Soup Sieve is a CSS selector library designed to be used with Beautiful
8463 Soup 4. It aims to provide selecting, matching, and filtering using modern
8464 CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
8465 specifications up through the latest CSS level 4 drafts and beyond (though
8466 some are not yet implemented).")
8467 (properties `((python2-variant . ,(delay python2-soupsieve))))
8468 (license license:expat)))
8470 ;; This is the last version that supports python-2
8471 (define-public python2-soupsieve
8472 (let ((base (package-with-python2 (strip-python2-variant python-soupsieve))))
8479 (uri (pypi-uri "soupsieve" version))
8482 "1apgqxngi1216h1cyvrvj9gy3wf45mh1lz4n76j26jf3k36bm1br"))))
8484 `(("python2-backports-functools-lru-cache"
8485 ,python2-backports-functools-lru-cache)
8486 ,@(package-propagated-inputs base))))))
8488 (define-public python-netifaces
8490 (name "python-netifaces")
8495 (uri (pypi-uri "netifaces" version))
8498 "1wxby874kcr3pp4ygzk5aiarbzhg1yi093d56s1qg4k2s7yrzvid"))))
8499 (build-system python-build-system)
8500 (home-page "https://github.com/al45tair/netifaces")
8502 "Python module for portable network interface information")
8504 "Netifaces is a Python module providing information on network
8505 interfaces in an easy and portable manner.")
8506 (license license:expat)))
8508 (define-public python2-netifaces
8509 (package-with-python2 python-netifaces))
8511 (define-public python-networkx
8513 (name "python-networkx")
8518 (uri (pypi-uri "networkx" version))
8520 (base32 "0ni3pdisdr8vfp5m9sw8jzr7jwzgqqmc9hq327vrf4n4ra2xb70h"))))
8521 (build-system python-build-system)
8523 '(#:phases (modify-phases %standard-phases
8525 (lambda* (#:key tests? #:allow-other-keys)
8527 (invoke "pytest" "-vv" "--pyargs" "networkx")
8528 (format #t "test suite not run~%"))
8530 ;; python-decorator is needed at runtime.
8532 `(("python-decorator" ,python-decorator)))
8534 `(("python-pytest" ,python-pytest)))
8535 (home-page "https://networkx.github.io/")
8536 (synopsis "Python module for creating and manipulating graphs and networks")
8538 "NetworkX is a Python package for the creation, manipulation, and study
8539 of the structure, dynamics, and functions of complex networks.")
8540 (properties `((python2-variant . ,(delay python2-networkx))))
8541 (license license:bsd-3)))
8543 ;; NetworkX 2.2 is the last version with support for Python 2.
8544 (define-public python2-networkx
8545 (let ((base (package-with-python2 (strip-python2-variant python-networkx))))
8551 (uri (pypi-uri "networkx" version ".zip"))
8554 "12swxb15299v9vqjsq4z8rgh5sdhvpx497xwnhpnb0gynrx6zra5"))))
8556 `(#:python ,python-2))
8558 `(("python-nose" ,python2-nose)
8559 ("unzip" ,unzip))))))
8561 (define-public python-datrie
8563 (name "python-datrie")
8568 (uri (pypi-uri "datrie" version))
8571 "0pbn32flkrpjiwfcknmj6398qa81ba783kbcvwan3kym73v0hnsj"))))
8572 (build-system python-build-system)
8574 `(("python-cython" ,python-cython)
8575 ("python-hypothesis" ,python-hypothesis)
8576 ("python-pytest" ,python-pytest)
8577 ("python-pytest-runner" ,python-pytest-runner)))
8578 (home-page "https://github.com/kmike/datrie")
8579 (synopsis "Fast, efficiently stored trie for Python")
8581 "This package provides a fast, efficiently stored trie implementation for
8583 (license license:lgpl2.1+)))
8585 (define-public python-amply
8587 (name "python-amply")
8592 (uri (pypi-uri "amply" version))
8595 "0f1db9zp0rsfzxvaz55xwh8h5rfdgr9a2a715g06ic8nknsdq4nb"))))
8596 (build-system python-build-system)
8598 `(("python-docutils" ,python-docutils)
8599 ("python-pyparsing" ,python-pyparsing)))
8601 `(("python-setuptools-scm" ,python-setuptools-scm)))
8602 (home-page "https://github.com/willu47/amply")
8603 (synopsis "Load and manipulate AMPL/GLPK data as Python data structures")
8605 "Amply allows you to load and manipulate AMPL/GLPK data as Python data
8607 (license license:epl1.0)))
8609 (define-public python-pulp
8611 (name "python-pulp")
8616 (uri (pypi-uri "PuLP" version))
8619 "1dammrg0f1v0r028i3rpxbf2bsyxmjq0q6ihb4x2wsdki44z3bxj"))))
8620 (build-system python-build-system)
8622 `(("python-amply" ,python-amply)))
8623 (home-page "https://github.com/coin-or/pulp")
8624 (synopsis "Linear Programming modeler")
8626 "PuLP is a Linear Programming modeler written in Python. PuLP can
8627 generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to
8628 solve linear problems.")
8629 (license license:expat)))
8631 (define-public python-toposort
8633 (name "python-toposort")
8638 (uri (pypi-uri "toposort" version))
8641 "1b2hppzjg3p006qya3yfdnp76dwq8frl97lypdam0kw4xxb8yhm7"))))
8642 (build-system python-build-system)
8643 (home-page "https://gitlab.com/ericvsmith/toposort")
8644 (synopsis "Topological sort algorithm")
8646 "This package provides an implementation of a topological sort
8648 (license license:asl2.0)))
8650 (define-public python-three-merge
8652 (name "python-three-merge")
8656 ;; There are no tests in the PyPI tarball.
8659 (url "https://github.com/spyder-ide/three-merge")
8660 (commit (string-append "v" version))))
8661 (file-name (git-file-name name version))
8663 (base32 "1fw28swh6jq4myr09j7gv68l241b8vwg470ak5xv0x4xwh2a1m86"))))
8664 (build-system python-build-system)
8666 `(#:test-target "pytest"))
8668 `(("python-diff-match-patch" ,python-diff-match-patch)))
8670 `(("python-flaky" ,python-flaky)
8671 ("python-pytest" ,python-pytest)
8672 ("python-pytest-cov" ,python-pytest-cov)
8673 ("python-pytest-runner" ,python-pytest-runner)
8674 ("python-pytest-timeout" ,python-pytest-timeout)))
8675 (home-page "https://github.com/spyder-ide/three-merge")
8676 (synopsis "Library for merging two strings with respect to a base one")
8678 "This package provides a Python library to perform a 3-way merge between
8679 strings, based on @code{diff-match-patch}. This library performs merges at a
8680 character level, as opposed to most VCS systems, which opt for a line-based
8682 (license license:expat)))
8684 (define-public snakemake
8691 (uri (pypi-uri "snakemake" version))
8693 (base32 "13013gdavwvyj1qr9xfi9fpwhb3km8c3z53bja5b7ic3sb2z6dgz"))))
8694 (build-system python-build-system)
8696 ;; TODO: Package missing test dependencies.
8699 (modify-phases %standard-phases
8700 ;; For cluster execution Snakemake will call Python. Since there is
8701 ;; no suitable PYTHONPATH set, cluster execution will fail. We fix
8702 ;; this by calling the snakemake wrapper instead.
8703 (add-after 'unpack 'call-wrapper-not-wrapped-snakemake
8704 (lambda* (#:key outputs #:allow-other-keys)
8705 (substitute* "snakemake/executors/__init__.py"
8706 (("\\{sys.executable\\} -m snakemake")
8707 (string-append (assoc-ref outputs "out")
8711 `(("python-appdirs" ,python-appdirs)
8712 ("python-configargparse" ,python-configargparse)
8713 ("python-datrie" ,python-datrie)
8714 ("python-docutils" ,python-docutils)
8715 ("python-gitpython" ,python-gitpython)
8716 ("python-jinja2" ,python-jinja2)
8717 ("python-jsonschema" ,python-jsonschema)
8718 ("python-nbformat" ,python-nbformat)
8719 ("python-networkx" ,python-networkx)
8720 ("python-psutil" ,python-psutil)
8721 ("python-pulp" ,python-pulp)
8722 ("python-pyyaml" ,python-pyyaml)
8723 ("python-ratelimiter" ,python-ratelimiter)
8724 ("python-requests" ,python-requests)
8725 ("python-toposort" ,python-toposort)
8726 ("python-wrapt" ,python-wrapt)))
8727 (home-page "https://snakemake.readthedocs.io")
8728 (synopsis "Python-based execution environment for make-like workflows")
8730 "Snakemake aims to reduce the complexity of creating workflows by
8731 providing a clean and modern domain specific specification language (DSL) in
8732 Python style, together with a fast and comfortable execution environment.")
8733 (license license:expat)))
8735 (define-public python-pyqrcode
8737 (name "python-pyqrcode")
8742 (uri (pypi-uri "PyQRCode" version))
8745 "1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
8746 (build-system python-build-system)
8748 "https://github.com/mnooner256/pyqrcode")
8749 (synopsis "QR code generator")
8751 "Pyqrcode is a QR code generator written purely in Python with
8752 SVG, EPS, PNG and terminal output.")
8753 (license license:bsd-3)))
8755 (define-public python-seaborn
8757 (name "python-seaborn")
8762 (uri (pypi-uri "seaborn" version))
8764 (base32 "1ffbms4kllihfycf6j57dziq4imgdjw03sqgifh5wzcd2d743zjr"))))
8765 (build-system python-build-system)
8768 (modify-phases %standard-phases
8769 (add-before 'check 'start-xserver
8770 (lambda* (#:key inputs #:allow-other-keys)
8771 (let ((xorg-server (assoc-ref inputs "xorg-server")))
8772 ;; There must be a running X server and make check doesn't
8773 ;; start one. Therefore we must do it.
8774 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
8775 (setenv "DISPLAY" ":1")
8777 (replace 'check (lambda _ (invoke "pytest" "seaborn") #t)))))
8779 `(("python-pandas" ,python-pandas)
8780 ("python-matplotlib" ,python-matplotlib)
8781 ("python-numpy" ,python-numpy)
8782 ("python-scipy" ,python-scipy)))
8784 `(("python-pytest" ,python-pytest)
8785 ("xorg-server" ,xorg-server-for-tests)))
8786 (home-page "https://seaborn.pydata.org/")
8787 (synopsis "Statistical data visualization")
8789 "Seaborn is a library for making attractive and informative statistical
8790 graphics in Python. It is built on top of matplotlib and tightly integrated
8791 with the PyData stack, including support for numpy and pandas data structures
8792 and statistical routines from scipy and statsmodels.")
8793 (properties `((python2-variant . ,(delay python2-seaborn))))
8794 (license license:bsd-3)))
8796 ;; 0.9.1 is the last release with support for Python 2.
8797 (define-public python2-seaborn
8798 (let ((base (package-with-python2 (strip-python2-variant python-seaborn))))
8804 (uri (pypi-uri "seaborn" version))
8807 "1bjnshjz4d6z3vrwfwall1a3yh8h3a1h47c3fg7458x9426alcys")))))))
8809 (define-public python-mpmath
8811 (name "python-mpmath")
8815 (uri (pypi-uri "mpmath" version))
8816 (file-name (git-file-name name version))
8819 "1xlrcja213jpfhw25q1jl5pl10w1a2cc68x1c4mkicxsbzhan5zw"))))
8820 (build-system python-build-system)
8822 `(("python-pytest" ,python-pytest)))
8825 (modify-phases %standard-phases
8828 (invoke "python" "mpmath/tests/runtests.py" "-local"))))))
8829 (home-page "https://mpmath.org")
8830 (synopsis "Arbitrary-precision floating-point arithmetic in python")
8832 "@code{mpmath} can be used as an arbitrary-precision substitute for
8833 Python's float/complex types and math/cmath modules, but also does much
8834 more advanced mathematics.")
8835 (license license:bsd-3)))
8837 (define-public python2-mpmath
8838 (package-with-python2 python-mpmath))
8840 (define-public python-bigfloat
8842 (name "python-bigfloat")
8847 (uri (pypi-uri "bigfloat" version))
8849 (base32 "0xd7q4l7v0f463diznjv4k9wlaks80pn9drdqmfifi7zx8qvybi6"))))
8850 (build-system python-build-system)
8853 (home-page "https://github.com/mdickinson/bigfloat")
8854 (synopsis "Arbitrary precision floating-point arithmetic for Python")
8856 "This package provides a Python interface to the MPFR library for
8857 multiprecision arithmetic.")
8858 (license license:lgpl3+)))
8860 (define-public python-sympy
8862 (name "python-sympy")
8867 (uri (pypi-uri "sympy" version))
8869 (base32 "0bkb4jf24yv5i4kjpsmg1xjjccfhqyi0syv0p0xvhdbmx5hr5pm3"))))
8870 (build-system python-build-system)
8873 (modify-phases %standard-phases
8875 (lambda* (#:key outputs #:allow-other-keys)
8877 (or (which "python3") (which "python"))
8878 "-c" "import sympy; sympy.test(\"/core\")"))))))
8880 `(("python-mpmath" ,python-mpmath)))
8881 (home-page "https://www.sympy.org/")
8882 (synopsis "Python library for symbolic mathematics")
8884 "SymPy is a Python library for symbolic mathematics. It aims to become a
8885 full-featured computer algebra system (CAS) while keeping the code as simple
8886 as possible in order to be comprehensible and easily extensible.")
8887 (license license:bsd-3)))
8889 (define-public python2-sympy
8891 (inherit (package-with-python2 python-sympy))
8892 (version "1.5.1") ; last release for python2
8896 (uri (pypi-uri "sympy" version))
8898 (base32 "0zjfbxlkazzh9z22gf62azrkipb2xw7mpzjz3wl1az9893bh2yfp"))))))
8900 (define-public python-q
8907 (uri (pypi-uri "q" version))
8910 "1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
8911 (build-system python-build-system)
8912 (home-page "https://github.com/zestyping/q")
8913 (synopsis "Quick-and-dirty debugging output for tired programmers")
8915 "q is a Python module for \"print\" style of debugging Python code. It
8916 provides convenient short API for print out of values, tracebacks, and
8917 falling into the Python interpreter.")
8918 (license license:asl2.0)))
8920 (define-public python2-q
8921 (package-with-python2 python-q))
8923 (define-public python-xlib
8925 (name "python-xlib")
8931 (url "https://github.com/python-xlib/python-xlib")
8933 (file-name (git-file-name name version))
8935 (base32 "17cwd2knqm2vwrii3kqii9abwsnydhpg4byqx1vy7rjs6i1vbqfc"))))
8936 (build-system python-build-system)
8939 (modify-phases %standard-phases
8940 (add-before 'check 'start-xserver
8941 (lambda* (#:key inputs #:allow-other-keys)
8942 (let ((xorg-server (assoc-ref inputs "xorg-server")))
8943 ;; There must be a running X server and make check doesn't
8944 ;; start one. Therefore we must do it.
8945 (system (format #f "~a/bin/Xvfb :1 &" xorg-server))
8946 (setenv "DISPLAY" ":1")
8949 `(("python-mock" ,python-mock)
8950 ("python-setuptools-scm" ,python-setuptools-scm)
8951 ("xorg-server" ,xorg-server)))
8953 `(("python-six" ,python-six)))
8954 (home-page "https://github.com/python-xlib/python-xlib")
8955 (synopsis "Python X11 client library")
8957 "The Python X Library is intended to be a fully functional
8958 X client library for Python programs. It is useful to implement
8959 low-level X clients. It is written entirely in Python.")
8960 (license license:gpl2+)))
8962 (define-public python2-xlib
8963 (package-with-python2 python-xlib))
8965 (define-public python-singledispatch
8967 (name "python-singledispatch")
8972 (uri (pypi-uri "singledispatch" version))
8975 "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
8976 (build-system python-build-system)
8978 `(("python-six" ,python-six))) ; required for conversion, not at run-time
8980 "https://docs.python.org/3/library/functools.html#functools.singledispatch")
8981 (synopsis "Backport of singledispatch feature from Python 3.4")
8983 "This library brings functools.singledispatch from Python 3.4 to Python
8985 (license license:expat)))
8987 (define-public python2-singledispatch
8988 (package-with-python2 python-singledispatch))
8990 ;; the python- version can be removed with python-3.5
8991 (define-public python-backports-abc
8993 (name "python-backports-abc")
8998 (uri (pypi-uri "backports_abc" version))
9001 "1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
9002 (build-system python-build-system)
9003 (home-page "https://github.com/cython/backports_abc")
9004 (synopsis "Backport of additions to the 'collections.abc' module")
9006 "Python-backports-abc provides a backport of additions to the
9007 @code{collections.abc} module in Python-3.5.")
9008 (license license:psfl)))
9010 (define-public python2-backports-abc
9011 (package-with-python2 python-backports-abc))
9013 (define-public python-backports-csv
9015 (name "python-backports-csv")
9020 (uri (pypi-uri "backports.csv" version))
9022 (base32 "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj"))))
9023 (build-system python-build-system)
9024 (home-page "https://github.com/ryanhiebert/backports.csv")
9025 (synopsis "Backport of Python 3's csv module for Python 2")
9027 "Provides a backport of Python 3's @code{csv} module for parsing
9028 comma separated values. The API of the @code{csv} module in Python 2
9029 is drastically different from the @code{csv} module in Python 3.
9030 This is due, for the most part, to the difference between str in
9031 Python 2 and Python 3.")
9032 (license license:psfl)))
9034 (define-public python2-backports-csv
9035 (package-with-python2 python-backports-csv))
9037 (define-public python2-backports-shutil-get-terminal-size
9039 (name "python2-backports-shutil-get-terminal-size")
9044 (uri (pypi-uri "backports.shutil_get_terminal_size" version))
9047 "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
9048 (build-system python-build-system)
9050 `(#:python ,python-2
9052 (modify-phases %standard-phases
9055 (setenv "PYTHONPATH" (string-append "./build/lib:"
9056 (getenv "PYTHONPATH")))
9057 (invoke "py.test" "-v"))))))
9059 `(("python2-pytest" ,python2-pytest)))
9060 (home-page "https://github.com/chrippa/backports.shutil_get_terminal_size")
9061 (synopsis "Backport of Python 3.3's @code{shutil.get_terminal_size}")
9063 "This package provides a backport of the @code{get_terminal_size
9064 function} from Python 3.3's @code{shutil}.
9065 Unlike the original version it is written in pure Python rather than C,
9066 so it might be a tiny bit slower.")
9067 (license license:expat)))
9069 (define-public python-waf
9075 (uri (string-append "https://waf.io/"
9076 "waf-" version ".tar.bz2"))
9079 "19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
9080 (build-system python-build-system)
9083 (modify-phases %standard-phases
9086 ;; XXX: Find a way to add all extra tools.
9087 (let ((tools '("gccdeps"
9088 "clang_compilation_database")))
9089 (invoke "python" "waf-light" "configure" "build"
9090 (string-append "--tools="
9091 (string-join tools ","))))))
9094 (invoke "python" "waf" "--version")))
9096 (lambda* (#:key outputs #:allow-other-keys)
9097 (let ((out (assoc-ref outputs "out")))
9098 (install-file "waf" (string-append out "/bin")))
9100 ;; waf breaks when it is wrapped.
9102 (home-page "https://waf.io/")
9103 (synopsis "Python-based build system")
9105 "Waf is a Python-based framework for configuring, compiling and installing
9107 (license license:bsd-3)))
9109 (define-public python2-waf
9110 (package-with-python2 python-waf))
9112 (define-public python-pyzmq
9114 (name "python-pyzmq")
9119 (uri (pypi-uri "pyzmq" version))
9121 (base32 "0pa1y97z75xqyca9xfp9zrzksydbgzsxf8yh0hwp0rgahpfxch3h"))))
9122 (build-system python-build-system)
9125 (list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
9127 (modify-phases %standard-phases
9128 (add-before 'check 'build-extensions
9130 ;; Cython extensions have to be built before running the tests.
9131 (invoke "python" "setup.py" "build_ext" "--inplace"))))))
9133 `(("zeromq" ,zeromq)))
9135 `(("pkg-config" ,pkg-config)
9136 ("python-cython" ,python-cython)
9137 ("python-pytest" ,python-pytest)))
9138 (home-page "https://github.com/zeromq/pyzmq")
9139 (synopsis "Python bindings for 0MQ")
9141 "PyZMQ is the official Python binding for the ZeroMQ messaging library.")
9142 (license license:bsd-4)))
9144 (define-public python2-pyzmq
9145 (package-with-python2 python-pyzmq))
9147 (define-public python-pep8
9148 ;; This package has been renamed to ‘pycodestyle’ and is no longer updated.
9149 ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking
9150 ;; some dependents' test suites, and nothing more.
9152 (name "python-pep8")
9157 (uri (pypi-uri "pep8" version))
9160 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))
9161 (patches (search-patches "python-pep8-stdlib-tokenize-compat.patch"))))
9162 (build-system python-build-system)
9163 (home-page "https://pep8.readthedocs.org/")
9164 (synopsis "Python style guide checker")
9166 "This tools checks Python code against some of the style conventions in
9168 (license license:expat)))
9170 (define-public python2-pep8
9171 (package-with-python2 python-pep8))
9173 (define-public python-pep517
9175 (inherit python-pep517-bootstrap)
9176 (name "python-pep517")
9179 (modify-phases %standard-phases
9181 (lambda* (#:key tests? #:allow-other-keys)
9182 (delete-file "pytest.ini")
9183 ;; This test tries to connect to the internet
9184 (delete-file "tests/test_meta.py")
9189 `(("python-mock" ,python-mock)
9190 ("python-pytest" ,python-pytest)
9191 ("python-testpath" ,python-testpath)))
9192 (properties `((python2-variant . ,(delay python2-pep517))))))
9194 ;; Skip the tests so we don't create a cyclical dependency with pytest.
9195 (define-public python2-pep517
9196 (let ((base (package-with-python2
9197 (strip-python2-variant python-pep517))))
9198 (package/inherit base
9199 (name "python2-pep517")
9202 ,@(package-arguments base)))
9203 (native-inputs `()))))
9205 (define-public python-pyflakes
9207 (name "python-pyflakes")
9212 (uri (pypi-uri "pyflakes" version))
9215 "1ny10364ciqh4ripasj4zzv4145l21l3s85m3qlrvfq5pk58xg7m"))))
9216 (build-system python-build-system)
9218 "https://github.com/pyflakes/pyflakes")
9219 (synopsis "Passive checker of Python programs")
9221 "Pyflakes statically checks Python source code for common errors.")
9222 (license license:expat)))
9224 (define-public python2-pyflakes
9225 (package-with-python2 python-pyflakes))
9227 (define-public python-pyflakes-2.2
9229 (inherit python-pyflakes)
9233 (uri (pypi-uri "pyflakes" version))
9236 "1j3zqbiwkyicvww499bblq33x0bjpzdrxajhaysr7sk7x5gdgcim"))))))
9238 (define-public python-mccabe
9240 (name "python-mccabe")
9245 (uri (pypi-uri "mccabe" version))
9248 "07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
9249 (build-system python-build-system)
9251 `(("python-pytest" ,python-pytest-bootstrap)
9252 ("python-pytest-runner" ,python-pytest-runner)))
9253 (home-page "https://github.com/flintwork/mccabe")
9254 (synopsis "McCabe checker, plugin for flake8")
9256 "This package provides a Flake8 plug-in to compute the McCabe cyclomatic
9257 complexity of Python source code.")
9258 (license license:expat)))
9260 (define-public python2-mccabe
9261 (package-with-python2 python-mccabe))
9263 (define-public python-flake8
9265 (name "python-flake8")
9269 (uri (pypi-uri "flake8" version))
9272 "0y732h02n2aih8gzyfj4bbhg4jgahyv84mjwfindk2g6w45rka0s"))))
9273 (build-system python-build-system)
9276 (modify-phases %standard-phases
9278 (lambda* (#:key inputs outputs #:allow-other-keys)
9279 (add-installed-pythonpath inputs outputs)
9280 (invoke "pytest" "-v"))))))
9282 `(("python-pycodestyle" ,python-pycodestyle)
9283 ("python-entrypoints" ,python-entrypoints)
9284 ("python-pyflakes" ,python-pyflakes)
9285 ("python-mccabe" ,python-mccabe)))
9287 `(("python-mock" ,python-mock)
9288 ("python-pytest" ,python-pytest)))
9289 (home-page "https://gitlab.com/pycqa/flake8")
9291 "The modular source code checker: pep8, pyflakes and co")
9293 "Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
9294 (properties `((python2-variant . ,(delay python2-flake8))))
9295 (license license:expat)))
9297 (define-public python2-flake8
9298 (let ((base (package-with-python2 (strip-python2-variant python-flake8))))
9299 (package/inherit base
9301 `(("python2-configparser" ,python2-configparser)
9302 ("python2-enum34" ,python2-enum34)
9303 ("python2-functools32" ,python2-functools32)
9304 ("python2-typing" ,python2-typing)
9305 ,@(package-propagated-inputs base))))))
9307 (define-public python-flake8-3.8
9309 (inherit python-flake8)
9313 (uri (pypi-uri "flake8" version))
9316 "0fvcrsbyzjpcli8ldbpsdbpmf238nkvwc1dy4hy82lf63rvfinma"))))
9318 `(("python-pycodestyle" ,python-pycodestyle-2.6)
9319 ("python-entrypoints" ,python-entrypoints)
9320 ("python-pyflakes" ,python-pyflakes-2.2)
9321 ("python-mccabe" ,python-mccabe)))))
9323 (define-public python-flake8-bugbear
9325 (name "python-flake8-bugbear")
9330 (uri (pypi-uri "flake8-bugbear" version))
9333 "0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx"))))
9334 (build-system python-build-system)
9337 (modify-phases %standard-phases
9338 (add-before 'check 'disable-test
9340 ;; This test fails on slow computers.
9341 (substitute* "tests/test_bugbear.py"
9342 (("def test_does_not_crash_on_any_valid_code")
9343 "def _test_does_not_crash_on_any_valid_code")))))))
9345 `(("python-hypothesis" ,python-hypothesis)
9346 ("python-hypothesmith" ,python-hypothesmith)))
9348 `(("python-attrs" ,python-attrs)
9349 ("python-flake8" ,python-flake8)))
9350 (home-page "https://github.com/PyCQA/flake8-bugbear")
9352 "Flake8 plugin for finding likely bugs and design problems in your program")
9354 "This package contains a plugin for Flake8 finding likely bugs and
9355 design problems in your program. It contains warnings that don't belong
9356 in pyflakes and pycodestyle.")
9357 (license license:expat)))
9359 (define-public python-flake8-continuation
9361 (name "python-flake8-continuation")
9366 (uri (pypi-uri "flake8-continuation" version))
9369 "0dzaw8jr7yhlabxhrblnrizxx17xa9ngjnbr1kidg5lapq6b9q1y"))))
9370 (build-system python-build-system)
9372 `(("python-flake8" ,python-flake8)
9373 ("python-pycodestyle" ,python-pycodestyle)
9374 ("python-six" ,python-six)))
9375 (home-page "https://github.com/planetlabs/flake8-continuation")
9376 (synopsis "Flake8 Line Continuation Plugin")
9377 (description "A Flake8 plugin that checks for the line continuation
9378 style to be in the preferred method according to PEP-8, specifically:
9380 The preferred way of wrapping long lines is by using Python's implied
9381 line continuation inside parentheses, brackets and braces. Long lines
9382 can be broken over multiple lines by wrapping expressions in parentheses.
9383 These should be used in preference to using a backslash for line continuation.
9385 (license license:asl2.0)))
9387 (define-public python-flake8-implicit-str-concat
9389 (name "python-flake8-implicit-str-concat")
9394 (uri (pypi-uri "flake8_implicit_str_concat" version))
9396 (base32 "1v0y29xlmbr2q12a4nnpm1dm9aw1mjiys1x8jif4z8c90d63cqm6"))))
9397 (build-system python-build-system)
9399 `(("python-attrs" ,python-attrs)
9400 ("python-more-itertools" ,python-more-itertools)))
9401 (home-page "https://github.com/keisheiled/flake8-implicit-str-concat")
9402 (synopsis "Flake8 plugin to encourage correct string literal concatenation")
9404 "This is a plugin for the Python code checking tool Flake8 to encourage
9405 correct string literal concatenation.
9407 It looks for style problems like implicitly concatenated string literals on
9408 the same line (which can be introduced by the code formatting tool Black), or
9409 unnecessary plus operators for explicit string literal concatenation.")
9410 (license license:expat)))
9412 (define-public python-flake8-polyfill
9414 (name "python-flake8-polyfill")
9419 (uri (pypi-uri "flake8-polyfill" version))
9422 "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"))))
9423 (build-system python-build-system)
9426 (modify-phases %standard-phases
9429 ;; Be compatible with Pytest 4:
9430 ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
9431 (substitute* "setup.cfg"
9435 (setenv "PYTHONPATH"
9436 (string-append (getcwd) "/build/lib:"
9437 (getenv "PYTHONPATH")))
9438 (invoke "py.test" "-v"))))))
9440 `(("python-flake8" ,python-flake8)
9441 ("python-mock" ,python-mock)
9442 ("python-pep8" ,python-pep8)
9443 ("python-pycodestyle" ,python-pycodestyle)
9444 ("python-pytest" ,python-pytest)))
9445 (home-page "https://gitlab.com/pycqa/flake8-polyfill")
9446 (synopsis "Polyfill package for Flake8 plugins")
9448 "This package that provides some compatibility helpers for Flake8
9449 plugins that intend to support Flake8 2.x and 3.x simultaneously.")
9450 (license license:expat)))
9452 (define-public python2-flake8-polyfill
9453 (package-with-python2 python-flake8-polyfill))
9455 (define-public python-flake8-print
9457 (name "python-flake8-print")
9462 (uri (pypi-uri "flake8-print" version))
9464 (base32 "05k5kkvyk6fdmvnacxfzypk74vbl3pmva13dqg1aljfwnxsc7yjs"))))
9465 (build-system python-build-system)
9467 `(("python-flake8" ,python-flake8)
9468 ("python-pycodestyle" ,python-pycodestyle)
9469 ("python-six" ,python-six)))
9470 (home-page "https://github.com/jbkahn/flake8-print")
9471 (synopsis "Print statement checker plugin for Flake8")
9473 "This plugin for Flake8 checks for @code{print} statements in Python
9475 (license license:expat)))
9477 (define-public python-flake8-pyi
9479 (name "python-flake8-pyi")
9484 (uri (pypi-uri "flake8-pyi" version))
9487 "1zpq4s9kp8w95pccmhhyyx1ff2zhnidcf1zb3xs46lzcx9plvnzk"))))
9488 (build-system python-build-system)
9490 `(("python-attrs" ,python-attrs)
9491 ("python-flake8" ,python-flake8)
9492 ("python-pyflakes" ,python-pyflakes)))
9493 (home-page "https://github.com/ambv/flake8-pyi")
9495 "Flake8 plugin that provides specializations for type hinting stub files")
9497 "This package contains a plugin that provides specializations for
9498 type hinting stub files, especially interesting for linting typeshed. It
9499 adds the @file{.pyi} extension to the default value of the @code{--filename}
9500 command-line argument to Flake8. This means stubs are linted by default with
9501 this plugin enabled, without needing to explicitly list every file. It
9502 modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
9503 expressions after the entire file has been read. This enables support for
9504 first-class forward references that stub files use.")
9505 (license license:expat)))
9507 (define-public python-flake8-pie
9509 (name "python-flake8-pie")
9514 (uri (pypi-uri "flake8-pie" version))
9516 (base32 "0kgipl5gljlp7aa7ykx15pswpzkd0d0qiznihb2z0d9a73181dyd"))))
9517 (build-system python-build-system)
9518 (home-page "https://github.com/sbdchd/flake8-pie")
9519 (synopsis "Flake8 extension that implements lints")
9521 "This package provides a flake8 extension that implements miscellaneous
9523 (license license:bsd-2)))
9525 (define-public python-flake8-quotes
9527 (name "python-flake8-quotes")
9532 (uri (pypi-uri "flake8-quotes" version))
9535 "0ph5s6lxgpzz4an0ax6s5xjqypqmngwr5b1i0h9pqhzghplic49z"))))
9536 (build-system python-build-system)
9538 `(("python-flake8" ,python-flake8)))
9539 (home-page "https://github.com/zheller/flake8-quotes/")
9540 (synopsis "Flake8 lint for quotes")
9541 (description "This package provides a Flake8 lint for quotes.")
9542 (license license:expat)))
9544 (define-public python-autoflake
9546 (name "python-autoflake")
9551 (uri (pypi-uri "autoflake" version))
9553 (base32 "0nzr057dbmgprp4a52ymafdkdd5zp2wcqf42913xc7hhvvdbj338"))))
9554 (build-system python-build-system)
9556 `(("python-pyflakes" ,python-pyflakes)))
9557 (home-page "https://github.com/myint/autoflake")
9558 (synopsis "Removes unused imports and unused variables")
9560 "@code{autoflake} removes unused imports and unused variables from Python
9561 code as reported by @code{pyflakes}.
9563 By default, it only removes unused imports for modules that are part of the
9564 standard library. Removal of unused variables is also disabled by default.
9565 It also removes useless @code{pass} statements.")
9566 (license license:expat)))
9568 (define-public python-mistune
9570 (name "python-mistune")
9575 (uri (pypi-uri "mistune" version))
9578 "0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr"))))
9579 (build-system python-build-system)
9581 `(("python-nose" ,python-nose)
9582 ("python-cython" ,python-cython)))
9583 (home-page "https://github.com/lepture/mistune")
9584 (synopsis "Markdown parser in pure Python")
9585 (description "This package provides a fast markdown parser in pure
9587 (license license:bsd-3)))
9589 (define-public python2-mistune
9590 (package-with-python2 python-mistune))
9592 (define-public python-markdown
9594 (name "python-markdown")
9599 (uri (pypi-uri "Markdown" version))
9602 "0jbs73nincha8fkfxx267sfxac6pl0ckszjbqbb8gk4dhs8v9d9i"))))
9603 (build-system python-build-system)
9605 `(("python-nose" ,python-nose)
9606 ("python-pyyaml" ,python-pyyaml)))
9607 (home-page "https://python-markdown.github.io/")
9608 (synopsis "Python implementation of Markdown")
9610 "This package provides a Python implementation of John Gruber's
9611 Markdown. The library features international input, various Markdown
9612 extensions, and several HTML output formats. A command line wrapper
9613 markdown_py is also provided to convert Markdown files to HTML.")
9614 (properties `((python2-variant . ,(delay python2-markdown))))
9615 (license license:bsd-3)))
9617 ;; Markdown 3.2 dropped support for Python 2.
9618 (define-public python2-markdown
9619 (let ((base (package-with-python2 (strip-python2-variant python-markdown))))
9625 (uri (pypi-uri "Markdown" version))
9628 "0yhylk4ffqqs7x086fav4pnfsl1021v7lghznzkififprmmqfl1f")))))))
9630 (define-public python-ptyprocess
9632 (name "python-ptyprocess")
9637 (uri (pypi-uri "ptyprocess" version))
9640 "0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
9641 (build-system python-build-system)
9643 `(("python-nose" ,python-nose)))
9646 (modify-phases %standard-phases
9648 (lambda _ (invoke "nosetests"))))))
9649 (home-page "https://github.com/pexpect/ptyprocess")
9650 (synopsis "Run a subprocess in a pseudo terminal")
9652 "This package provides a Python library used to launch a subprocess in a
9653 pseudo terminal (pty), and interact with both the process and its pty.")
9654 (license license:isc)))
9656 (define-public python2-ptyprocess
9657 (package-with-python2 python-ptyprocess))
9659 (define-public python-cram
9661 (name "python-cram")
9663 (home-page "https://bitheap.org/cram/")
9666 (uri (list (string-append home-page "cram-"
9668 (pypi-uri "cram" version)))
9671 "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
9674 (modify-phases %standard-phases
9675 (add-after 'unpack 'patch-source
9677 (substitute* (find-files "cram" ".*\\.py$")
9678 ;; Replace default shell path.
9679 (("/bin/sh") (which "sh")))
9680 (substitute* (find-files "tests" ".*\\.t$")
9682 (("/bin/bash") (which "bash"))
9683 (("/bin/sh") (which "sh")))
9684 (substitute* "cram/_test.py"
9685 ;; This hack works around a bug triggered by substituting
9686 ;; the /bin/sh paths. "tests/usage.t" compares the output of
9687 ;; "cram -h", which breaks the output at 80 characters. This
9688 ;; causes the line showing the default shell to break into two
9689 ;; lines, but the test expects a single line...
9690 (("env\\['COLUMNS'\\] = '80'")
9691 "env['COLUMNS'] = '160'"))
9693 (substitute* "Makefile"
9694 ;; Recent versions of python-coverage have caused the test
9695 ;; coverage to decrease (as of version 0.7). Allow that.
9696 (("--fail-under=100")
9701 ;; The test phase uses the built library and executable.
9702 (lambda* (#:key inputs outputs #:allow-other-keys)
9703 (add-installed-pythonpath inputs outputs)
9704 (setenv "PATH" (string-append (getenv "PATH") ":"
9705 (assoc-ref outputs "out") "/bin"))
9706 (invoke "make" "test"))))))
9707 (build-system python-build-system)
9709 `(("python-coverage" ,python-coverage)
9711 (synopsis "Simple testing framework for command line applications")
9713 "Cram is a functional testing framework for command line applications.
9714 Cram tests look like snippets of interactive shell sessions. Cram runs each
9715 command and compares the command output in the test with the command’s actual
9717 (license license:gpl2+)))
9719 (define-public python2-cram
9720 (package-with-python2 python-cram))
9722 (define-public python-crashtest
9724 (name "python-crashtest")
9729 (uri (pypi-uri "crashtest" version))
9731 (base32 "1p9p7mn8x2j9psc4jxab98897v4i9s4fliyfw8rp8v4bx1n7pjj2"))))
9732 (build-system python-build-system)
9733 (home-page "https://github.com/sdispater/crashtest")
9734 (synopsis "Manage Python errors with ease")
9736 "Python library that makes exceptions handling and inspection easier.")
9737 (license license:expat)))
9739 (define-public python-stdlib-list
9741 (name "python-stdlib-list")
9745 (uri (pypi-uri "stdlib-list" version))
9748 "17vdn4q0sdlndc2fr9svapxx6366hnrhkn0fswp1xmr0jxqh7rd1"))))
9749 (build-system python-build-system)
9751 `(#:tests? #f)) ; Tests require more dependencies.
9753 `(("python-sphinx" ,python-sphinx)))
9754 (home-page "https://github.com/jackmaney/python-stdlib-list")
9755 (synopsis "Python Standard Libraries")
9756 (description "This package contains a list of Python Standard Libraries.")
9757 (license license:expat)))
9759 (define-public python-straight-plugin
9761 (name "python-straight-plugin")
9766 (uri (pypi-uri "straight.plugin" version))
9769 "069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
9770 (build-system python-build-system)
9771 (home-page "https://github.com/ironfroggy/straight.plugin")
9772 (synopsis "Simple namespaced plugin facility")
9773 (description "Straight Plugin provides a type of plugin you can create from
9774 almost any existing Python modules, and an easy way for outside developers to
9775 add functionality and customization to your projects with their own plugins.")
9776 (license license:expat)))
9778 (define-public python2-straight-plugin
9779 (package-with-python2 python-straight-plugin))
9781 (define-public python-fonttools
9783 (name "python-fonttools")
9787 (uri (pypi-uri "fonttools" version ".zip"))
9790 "1mq9kdzhcsp96bhv7smnrpdg1s4z5wh70bsl99c0jmcrahqdisqq"))))
9791 (build-system python-build-system)
9794 ("python-pytest" ,python-pytest)
9795 ("python-pytest-runner" ,python-pytest-runner)))
9796 (home-page "https://github.com/fonttools/fonttools")
9797 (synopsis "Tools to manipulate font files")
9799 "FontTools/TTX is a library to manipulate font files from Python. It
9800 supports reading and writing of TrueType/OpenType fonts, reading and writing
9801 of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
9802 also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
9803 from an XML-based format.")
9804 (license license:expat)))
9806 ;; Fonttools 4.x dropped support for Python 2, so stick with 3.x here.
9807 (define-public python2-fonttools
9808 (let ((base (package-with-python2 (strip-python2-variant python-fonttools))))
9814 (uri (pypi-uri "fonttools" version ".zip"))
9817 "0v6399g755f2hn1ry62i5b6gdinf2fpx2966v3bxh6bjw1accb5p")))))))
9819 (define-public python-ly
9826 (uri (pypi-uri name version))
9829 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
9830 (build-system python-build-system)
9832 ;; FIXME: Some tests need network access.
9834 (synopsis "Tool and library for manipulating LilyPond files")
9835 (description "This package provides a Python library to parse, manipulate
9836 or create documents in LilyPond format. A command line program ly is also
9837 provided that can be used to do various manipulations with LilyPond files.")
9838 (home-page "https://pypi.org/project/python-ly/")
9839 (license license:gpl2+)))
9841 (define-public python-appdirs
9843 (name "python-appdirs")
9848 (uri (pypi-uri "appdirs" version))
9851 "14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
9852 (build-system python-build-system)
9853 (home-page "https://github.com/ActiveState/appdirs")
9855 "Determine platform-specific dirs, e.g. a \"user data dir\"")
9857 "This module provides a portable way of finding out where user data
9858 should be stored on various operating systems.")
9859 (license license:expat)))
9861 (define-public python2-appdirs
9862 (package-with-python2 python-appdirs))
9864 (define-public python-gorilla
9866 (name "python-gorilla")
9870 (uri (pypi-uri "gorilla" version))
9873 "0b40blcp6fih4nvqbilra4qw1dfccv1ahjmr41ac4d9rjadqkcpy"))))
9874 (build-system python-build-system)
9875 (home-page "https://github.com/christophercrouzet/gorilla")
9876 (synopsis "Convenient monkey patching with Python")
9878 "Gorilla is a Python library that provides a convenient approach to
9879 monkey patching. Monkey patching is the process of modifying module and
9880 class attributes at runtime with the purpose of replacing or extending
9882 (license license:expat)))
9884 (define-public python-llfuse
9886 (name "python-llfuse")
9890 (uri (pypi-uri "llfuse" version))
9893 "1g2cdhdqrb6m7655qp61pn61pwj1ql61cdzhr2jvl3w4i8877ddr"))))
9894 (build-system python-build-system)
9899 `(("pkg-config" ,pkg-config)))
9900 (synopsis "Python bindings for FUSE")
9902 "Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
9903 (home-page "https://bitbucket.org/nikratio/python-llfuse/")
9904 (license license:lgpl2.0+)
9905 (properties `((python2-variant . ,(delay python2-llfuse))))))
9907 (define-public python2-llfuse
9908 (let ((base (package-with-python2
9909 (strip-python2-variant python-llfuse))))
9910 (package/inherit base
9911 (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))))
9913 (define-public python-msgpack
9915 (name "python-msgpack")
9919 (uri (pypi-uri "msgpack" version))
9922 "1h5mxh84rcw04dvxy1qbfn2hisavfqgilh9k09rgyjhd936dad4m"))))
9923 (build-system python-build-system)
9925 `(#:modules ((guix build utils)
9926 (guix build python-build-system)
9931 (modify-phases %standard-phases
9934 (let ((cwd (getcwd)))
9935 (setenv "PYTHONPATH"
9936 (string-append cwd "/build/"
9937 (find (cut string-prefix? "lib" <>)
9938 (scandir (string-append cwd "/build")))
9940 (getenv "PYTHONPATH")))
9941 (invoke "pytest" "-v" "test")))))))
9943 `(("python-pytest" ,python-pytest)))
9944 (synopsis "MessagePack (de)serializer")
9945 (description "MessagePack is a fast, compact binary serialization format,
9946 suitable for similar data to JSON. This package provides CPython bindings for
9947 reading and writing MessagePack data.")
9948 (home-page "https://pypi.org/project/msgpack/")
9949 (license license:asl2.0)))
9951 ;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
9952 ;; release 0.5. Some packages like borg still call it by the old name for now.
9953 ;; <https://bugs.gnu.org/30662>
9954 (define-public python-msgpack-transitional
9956 (inherit python-msgpack)
9957 (name "python-msgpack-transitional")
9961 (uri (pypi-uri "msgpack" version))
9964 "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
9966 (substitute-keyword-arguments (package-arguments python-msgpack)
9968 `(modify-phases ,phases
9969 (add-after 'unpack 'configure-transitional
9971 ;; Keep using the old name.
9972 (substitute* "setup.py"
9973 (("TRANSITIONAL = False")
9974 "TRANSITIONAL = 1"))
9977 (define-public python2-msgpack
9978 (package-with-python2 python-msgpack))
9980 (define-public python-netaddr
9982 (name "python-netaddr")
9987 (uri (pypi-uri "netaddr" version))
9990 "0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n"))))
9991 (build-system python-build-system)
9992 (arguments `(#:tests? #f)) ;; No tests.
9993 (home-page "https://github.com/drkjam/netaddr/")
9994 (synopsis "Pythonic manipulation of network addresses")
9996 "A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
9997 and MAC network addresses.")
9998 (license license:bsd-3)))
10000 (define-public python2-netaddr
10001 (package-with-python2 python-netaddr))
10003 (define-public python2-pyroute2
10005 (name "python2-pyroute2")
10010 (uri (pypi-uri "pyroute2" version))
10013 "1gmz4r1w0yzj6fjjypnalmfyy0lnfznydyn62gi3wk50j5hhxbny"))))
10014 (build-system python-build-system)
10016 `(#:python ,python-2)) ;Python 3.x is not supported
10017 (home-page "https://github.com/svinota/pyroute2")
10018 (synopsis "Python netlink library")
10020 "Pyroute2 is a pure Python netlink library with minimal dependencies.
10021 Supported netlink families and protocols include:
10023 @item rtnl, network settings - addresses, routes, traffic controls
10024 @item nfnetlink - netfilter API: ipset, nftables, ...
10025 @item ipq - simplest userspace packet filtering, iptables QUEUE target
10026 @item devlink - manage and monitor devlink-enabled hardware
10027 @item generic - generic netlink families
10029 @item nl80211 - wireless functions API (basic support)
10030 @item taskstats - extended process statistics
10031 @item acpi_events - ACPI events monitoring
10032 @item thermal_events - thermal events monitoring
10033 @item VFS_DQUOT - disk quota events monitoring
10036 (license license:gpl2+)))
10038 (define-public python-wrapt
10040 (name "python-wrapt")
10045 (uri (pypi-uri "wrapt" version))
10048 "1q81762dgsgrd12f8qc39zk8s5wll3m5xc32jdmlf6cls4gh4njn"))))
10049 (build-system python-build-system)
10051 ;; Tests are not included in the tarball, they are only available in the
10054 (home-page "https://github.com/GrahamDumpleton/wrapt")
10055 (synopsis "Module for decorators, wrappers and monkey patching")
10057 "The aim of the wrapt module is to provide a transparent object proxy for
10058 Python, which can be used as the basis for the construction of function
10059 wrappers and decorator functions.")
10060 (license license:bsd-2)))
10062 (define-public python2-wrapt
10063 (package-with-python2 python-wrapt))
10065 (define-public python-commonmark
10067 (name "python-commonmark")
10072 (uri (pypi-uri "commonmark" version))
10074 (base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
10075 (build-system python-build-system)
10078 (modify-phases %standard-phases
10080 (lambda* (#:key inputs outputs #:allow-other-keys)
10081 (add-installed-pythonpath inputs outputs)
10082 (invoke "python" "setup.py" "test"))))))
10083 (home-page "https://github.com/readthedocs/commonmark.py")
10084 (synopsis "Python parser for the CommonMark Markdown spec")
10086 "This module is a pure Python port of jgm's @code{commonmark.js}, a
10087 Markdown parser and renderer for the CommonMark specification, using only
10089 (license license:bsd-3)))
10091 (define-public python-xlrd
10093 (name "python-xlrd")
10097 (uri (pypi-uri "xlrd" version))
10100 "1ci93fda4n67qhdvfl16zasyxrpygzk53hs6m8z0rd4dxrnb6vjl"))))
10101 (build-system python-build-system)
10104 (modify-phases %standard-phases
10105 ;; Some tests depend on writing a temporary file to the user's home
10107 (add-after 'unpack 'fix-tests
10109 (delete-file "tests/test_open_workbook.py")
10111 (home-page "http://www.python-excel.org/")
10112 (synopsis "Library for extracting data from Excel files")
10113 (description "This package provides a library to extract data from
10114 spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
10115 @samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
10116 Unicode-aware. It is not intended as an end-user tool.")
10117 (license license:bsd-3)))
10119 (define-public python2-xlrd
10120 (package-with-python2 python-xlrd))
10122 (define-public python-immutables
10124 (name "python-immutables")
10129 (uri (pypi-uri "immutables" version))
10131 (base32 "0y0aqw29g525frdnmv9paljzacpp4s21sadfbca5b137iciwr8d0"))))
10132 (build-system python-build-system)
10133 (home-page "https://github.com/MagicStack/immutables")
10134 (synopsis "High-performance immutable mapping type for Python")
10136 "An immutable mapping type for Python. The underlying datastructure is a
10137 Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other
10138 functional languages.")
10139 (license license:asl2.0)))
10141 (define-public python-prettytable
10143 (name "python-prettytable")
10148 (uri (pypi-uri "prettytable" version ".tar.bz2"))
10151 "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
10152 (build-system python-build-system)
10153 (home-page "https://code.google.com/archive/p/prettytable/")
10154 (synopsis "Display tabular data in an ASCII table format")
10156 "A library designed to represent tabular data in visually appealing ASCII
10157 tables. PrettyTable allows for selection of which columns are to be printed,
10158 independent alignment of columns (left or right justified or centred) and
10159 printing of sub-tables by specifying a row range.")
10160 (license license:bsd-3)))
10162 (define-public python2-prettytable
10163 (package-with-python2 python-prettytable))
10165 (define-public python-curio
10167 (name "python-curio")
10172 (uri (pypi-uri "curio" version))
10174 (base32 "16wkww6kh511b9bzsfhpvrv0766cc6ssgbzz4lgpjnrzzgx21wwh"))))
10175 (build-system python-build-system)
10178 (modify-phases %standard-phases
10180 (lambda* (#:key inputs outputs #:allow-other-keys)
10181 (add-installed-pythonpath inputs outputs)
10182 (invoke "pytest" "-vv" "-k"
10183 ;; Tries to open an outgoing connection.
10184 "not test_ssl_outgoing"))))))
10186 `(("python-pytest" ,python-pytest)))
10187 (home-page "https://github.com/dabeaz/curio")
10188 (synopsis "Coroutine-based library for concurrent Python")
10190 "Curio is a coroutine-based library for concurrent Python systems
10191 programming. It provides standard programming abstractions such as as
10192 tasks, sockets, files, locks, and queues.")
10193 (license license:bsd-3)))
10195 (define-public python-tables
10197 (name "python-tables")
10202 (uri (pypi-uri "tables" version))
10205 "0j8vnxh2m5n0cyk9z3ndcj5n1zj5rdxgc1gb78bqlyn2lyw75aa9"))
10206 (modules '((guix build utils)))
10209 ;; Remove pre-compiled .pyc files from source.
10210 (for-each delete-file-recursively
10211 (find-files "." "__pycache__" #:directories? #t))
10212 (for-each delete-file (find-files "." "\\.pyc$"))
10214 (build-system python-build-system)
10216 `(;; FIXME: python-build-system does not pass configure-flags to "build"
10217 ;; or "check", so we must override the build and check phases.
10219 (modify-phases %standard-phases
10220 (add-after 'unpack 'use-gcc
10222 (substitute* "setup.py"
10223 (("^( +)compiler = new_compiler\\(\\)" line indent)
10224 (string-append line
10227 "compiler.set_executables(compiler='gcc',"
10228 "compiler_so='gcc',"
10229 "linker_exe='gcc',"
10230 "linker_so='gcc -shared')")))
10232 (add-after 'unpack 'disable-tuning
10234 (substitute* "setup.py"
10235 (("cpu_flags = .*")
10236 "cpu_flags = ['sse2']\n"))
10239 (lambda* (#:key inputs #:allow-other-keys)
10240 (invoke "python" "setup.py" "build"
10241 (string-append "--hdf5="
10242 (assoc-ref inputs "hdf5")))))
10244 (lambda* (#:key inputs #:allow-other-keys)
10245 (invoke "python" "setup.py" "check"
10246 (string-append "--hdf5="
10247 (assoc-ref inputs "hdf5"))))))))
10249 `(("python-numexpr" ,python-numexpr)
10250 ("python-numpy" ,python-numpy)))
10252 `(("python-cython" ,python-cython)
10253 ("pkg-config" ,pkg-config)))
10255 `(("hdf5" ,hdf5-1.10)
10258 (home-page "https://www.pytables.org/")
10259 (synopsis "Hierarchical datasets for Python")
10260 (description "PyTables is a package for managing hierarchical datasets and
10261 designed to efficiently cope with extremely large amounts of data.")
10262 (license license:bsd-3)))
10264 (define-public python-sniffio
10266 (name "python-sniffio")
10271 (uri (pypi-uri "sniffio" version))
10273 (base32 "1pnkvi6wvn4qd37y69n1ls6n8l63gfmn3pvb1jb50gqxxkn6wrn4"))))
10274 (build-system python-build-system)
10277 (modify-phases %standard-phases
10280 (invoke "pytest" "-vv"))))))
10282 `(("python-curio" ,python-curio)
10283 ("python-pytest" ,python-pytest)
10284 ("python-pytest-cov" ,python-pytest-cov)))
10285 (home-page "https://github.com/python-trio/sniffio")
10286 (synopsis "Detect which async library a program is running under")
10287 (description "This package detects which async library a program is
10288 running under. It supports multiple async I/O packages, like Trio, and
10290 ;; Either license applies.
10291 (license (list license:expat license:asl2.0))))
10293 (define-public python-pytest-black
10295 (name "python-pytest-black")
10300 (uri (pypi-uri "pytest-black" version))
10303 "04lppqydxm0f3f3x0l8hj7v0j6d8syj34jc37yzqwqcyqsnaga81"))))
10304 (build-system python-build-system)
10306 `(("python-pytest" ,python-pytest)
10307 ("python-black" ,python-black)
10308 ("python-toml" ,python-toml)))
10310 `(("python-setuptools-scm" ,python-setuptools-scm)))
10311 (home-page "https://github.com/shopkeep/pytest-black")
10312 (synopsis "Pytest plugin to enable format checking with black")
10314 "This package provides a pytest plugin to enable format checking with the
10315 Python code formatter \"black\".")
10316 (license license:expat)))
10318 (define-public python-get-version
10320 (name "python-get-version")
10325 (uri (pypi-uri "get_version" version))
10328 "1g15jyx33vkxavv9hwv275cs4g9bp2i1y942raw3fxamq8kbaml1"))))
10329 (build-system python-build-system)
10331 `(("python-pygments" ,python-pygments)
10332 ("python-pytest" ,python-pytest)
10333 ("python-pytest-black" ,python-pytest-black)
10334 ("python-pytest-cov" ,python-pytest-cov)
10335 ("python-setuptools" ,python-setuptools)
10336 ("python-testpath" ,python-testpath)))
10337 (home-page "https://github.com/flying-sheep/get_version")
10338 (synopsis "Version helper in the spirit of versioneer")
10340 "This package provides a version helper that lets you automatically use
10341 the latest @code{vX.X.X} Git tag as the version in your Python package. It
10342 also supports getting the version from Python source distributions or, once
10343 your package is installed, via @code{pkg_resources} (part of
10344 @code{setuptools}).")
10345 (license license:gpl3+)))
10347 (define-public python-legacy-api-wrap
10349 (name "python-legacy-api-wrap")
10354 (uri (pypi-uri "legacy-api-wrap" version))
10357 "06qhp0g543dy98vpa41hwdalvdbsjfc3ldk474yr9sd75mhl8jh3"))))
10358 (build-system python-build-system)
10360 `(("python-get-version" ,python-get-version)
10361 ("python-pytest" ,python-pytest)
10362 ("python-pytest-black" ,python-pytest-black)
10363 ("python-pytest-cov" ,python-pytest-cov)
10364 ("python-setuptools" ,python-setuptools)))
10365 (home-page "https://github.com/flying-sheep/legacy-api-wrap")
10366 (synopsis "Legacy API wrapper")
10367 (description "This module defines a decorator to wrap legacy APIs. The
10368 primary use case is APIs defined before keyword-only parameters existed.")
10369 (license license:gpl3+)))
10371 (define-public python-pyasn1
10373 (name "python-pyasn1")
10378 (uri (pypi-uri "pyasn1" version))
10381 "1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
10382 (build-system python-build-system)
10383 (home-page "http://pyasn1.sourceforge.net/")
10384 (synopsis "ASN.1 types and codecs")
10386 "This is an implementation of ASN.1 types and codecs in Python. It is
10387 suitable for a wide range of protocols based on the ASN.1 specification.")
10388 (license license:bsd-2)))
10390 (define-public python2-pyasn1
10391 (package-with-python2 python-pyasn1))
10393 (define-public python-pyasn1-modules
10395 (name "python-pyasn1-modules")
10400 (uri (pypi-uri "pyasn1-modules" version))
10403 "0ivm850yi7ajjbi8j115qpsj95bgxdsx48nbjzg0zip788c3xkx0"))))
10404 (build-system python-build-system)
10406 `(("python-pyasn1" ,python-pyasn1)))
10407 (home-page "https://sourceforge.net/projects/pyasn1/")
10408 (synopsis "ASN.1 codec implementations")
10410 "Pyasn1-modules is a collection of Python modules providing ASN.1 types and
10411 implementations of ASN.1-based codecs and protocols.")
10412 (license license:bsd-3)))
10414 (define-public python2-pyasn1-modules
10415 (package-with-python2 python-pyasn1-modules))
10417 (define-public python2-ipaddress
10419 (name "python2-ipaddress")
10423 (uri (pypi-uri "ipaddress" version))
10426 "1qp743h30s04m3cg3yk3fycad930jv17q7dsslj4mfw0jlvf1y5p"))))
10427 (build-system python-build-system)
10429 `(#:python ,python-2))
10430 (home-page "https://github.com/phihag/ipaddress")
10431 (synopsis "IP address manipulation library")
10433 "This package provides a fast, lightweight IPv4/IPv6 manipulation library
10434 in Python. This library is used to create, poke at, and manipulate IPv4 and
10435 IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
10436 module to older versions of Python.")
10437 (license license:psfl)))
10439 (define-public python-asn1tools
10441 (name "python-asn1tools")
10442 (version "0.158.0")
10446 (uri (pypi-uri "asn1tools" version))
10448 (base32 "1k88a1azmyvp2ab6qcf2i40dig5abhyn7cmlyhmwwh8kr3syvma0"))))
10449 (build-system python-build-system)
10451 `(("python-bitstruct" ,python-bitstruct)
10452 ("python-diskcache" ,python-diskcache)
10453 ("python-prompt-toolkit" ,python-prompt-toolkit)
10454 ("python-pyparsing" ,python-pyparsing)))
10455 (home-page "https://github.com/eerimoq/asn1tools")
10456 (synopsis "ASN.1 parsing, encoding and decoding")
10457 (description "This package provides ASN.1 parsing, encoding and decoding
10458 for Python, including constraints checking. It supports several
10459 codecs (e.g. BER, PER, UPER, XER) as well as limited C source code generating
10460 for OER and UPER.")
10461 (license license:expat)))
10463 (define-public python2-ipaddr
10465 (name "python2-ipaddr")
10470 (uri (pypi-uri "ipaddr" version))
10472 (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
10473 (build-system python-build-system)
10475 `(#:python ,python-2 ;version 2 only
10477 (modify-phases %standard-phases
10479 (lambda _ (invoke "python" "ipaddr_test.py"))))))
10480 (home-page "https://github.com/google/ipaddr-py")
10481 (synopsis "IP address manipulation library")
10483 "Ipaddr is a Python@tie{}2 library for creating and manupilating IPv4 and
10484 IPv6 addresses and networks.
10486 For new implementations you may prefer to use the standard module
10487 @code{ipaddress}, which was introduced in Python 3.3 and backported to older
10488 versions of Python.")
10489 (license license:asl2.0)))
10491 (define-public python-idna
10493 (name "python-idna")
10498 (uri (pypi-uri "idna" version))
10501 "1xmk3s92d2vq42684p61wixfmh3qpr2mw762w0n6662vhlpqf1xk"))))
10502 (build-system python-build-system)
10503 (home-page "https://github.com/kjd/idna")
10504 (synopsis "Internationalized domain names in applications")
10506 "This is a library to support the Internationalised Domain Names in
10507 Applications (IDNA) protocol as specified in RFC 5891. This version of the
10508 protocol is often referred to as “IDNA2008” and can produce different results
10509 from the earlier standard from 2003. The library is also intended to act as a
10510 suitable drop-in replacement for the “encodings.idna” module that comes with
10511 the Python standard library but currently only supports the older 2003
10513 (license license:bsd-4)))
10515 (define-public python-idna-2.7
10516 (package (inherit python-idna)
10520 (uri (pypi-uri "idna" version))
10523 "05jam7d31767dr12x0rbvvs8lxnpb1mhdb2zdlfxgh83z6k3hjk8"))))))
10526 (define-public python2-idna
10527 (package-with-python2 python-idna))
10529 (define-public python-libsass
10531 (name "python-libsass")
10535 ;; PyPI tarball is missing some test files.
10537 (uri (git-reference
10538 (url "https://github.com/sass/libsass-python")
10540 (file-name (git-file-name name version))
10542 (base32 "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh"))))
10543 (build-system python-build-system)
10546 (modify-phases %standard-phases
10547 ;; Use Guix package of libsass instead of compiling from a checkout.
10548 (add-before 'build 'set-libsass
10550 (setenv "SYSTEM_SASS" (assoc-ref %build-inputs "libsass"))
10553 (lambda* (#:key inputs outputs #:allow-other-keys)
10554 (add-installed-pythonpath inputs outputs)
10555 (invoke "pytest" "sasstests.py"))))))
10557 `(("python-pytest" ,python-pytest)
10558 ("python-werkzeug" ,python-werkzeug)))
10560 `(("libsass" ,libsass)))
10562 `(("python-six" ,python-six)))
10563 (home-page "https://sass.github.io/libsass-python/")
10564 (synopsis "Straightforward binding of libsass for Python")
10566 "This package provides a simple Python extension module @code{sass} which
10567 is binding LibSass.")
10568 (license license:expat)))
10570 (define-public python-idna-ssl
10572 (name "python-idna-ssl")
10577 (uri (pypi-uri "idna-ssl" version))
10580 "0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
10581 (build-system python-build-system)
10583 `(#:tests? #f)) ;circular dependency with python-aiohttp
10584 (home-page "https://github.com/aio-libs/idna-ssl")
10585 (synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
10586 (description "Patch @code{ssl.match_hostname} for Unicode(idna)
10588 (license license:expat)))
10590 (define-public python-pretend
10592 (name "python-pretend")
10597 (uri (pypi-uri "pretend" version))
10600 "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
10601 (build-system python-build-system)
10602 (home-page "https://github.com/alex/pretend")
10603 (synopsis "Library for stubbing in Python")
10605 "Pretend is a library to make stubbing with Python easier. Stubbing is a
10606 technique for writing tests. You may hear the term mixed up with mocks,
10607 fakes, or doubles. Basically, a stub is an object that returns pre-canned
10608 responses, rather than doing any computation.")
10609 (license license:bsd-3)))
10611 (define-public python2-pretend
10612 (package-with-python2 python-pretend))
10614 (define-public python-pip
10616 (name "python-pip")
10621 (uri (pypi-uri "pip" version))
10624 "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
10625 (build-system python-build-system)
10627 '(#:tests? #f)) ; there are no tests in the pypi archive.
10628 (home-page "https://pip.pypa.io/")
10629 (synopsis "Package manager for Python software")
10631 "Pip is a package manager for Python software, that finds packages on the
10632 Python Package Index (PyPI).")
10633 (license license:expat)))
10635 (define-public python2-pip
10636 (package-with-python2 python-pip))
10638 (define-public python-tlsh
10640 (name "python-tlsh")
10642 (home-page "https://github.com/trendmicro/tlsh")
10646 (uri (git-reference
10647 (url "https://github.com/trendmicro/tlsh")
10648 (commit (string-append "v" version))))
10649 (file-name (git-file-name name version))
10651 (base32 "1ydliir308xn4ywy705mmsh7863ldlixdvpqwdhbipzq9vfpmvll"))))
10652 (build-system cmake-build-system)
10654 '(#:out-of-source? #f
10655 #:phases (modify-phases %standard-phases
10658 (lambda* (#:key outputs #:allow-other-keys)
10659 ;; Build and install the Python bindings. The underlying
10660 ;; C++ library is apparently not meant to be installed.
10661 (let ((out (assoc-ref outputs "out")))
10662 (with-directory-excursion "py_ext"
10663 (and (system* "python" "setup.py" "build")
10664 (system* "python" "setup.py" "install"
10665 (string-append "--prefix=" out))))))))))
10666 (inputs `(("python" ,python-wrapper))) ;for the bindings
10667 (synopsis "Fuzzy matching library for Python")
10669 "Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
10670 Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
10671 value which can be used for similarity comparisons. Similar objects have
10672 similar hash values, which allows for the detection of similar objects by
10673 comparing their hash values. The byte stream should have a sufficient amount
10674 of complexity; for example, a byte stream of identical bytes will not generate
10676 (license license:asl2.0)))
10678 (define-public python2-tlsh
10679 (package/inherit python-tlsh
10680 (name "python2-tlsh")
10681 (inputs `(("python" ,python-2)))))
10683 (define-public python-termcolor
10685 (name "python-termcolor")
10690 (uri (pypi-uri "termcolor" version))
10693 "0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
10694 (build-system python-build-system)
10696 ;; There are no tests.
10698 (home-page "https://pypi.org/project/termcolor/")
10699 (synopsis "ANSII Color formatting for terminal output")
10701 "This package provides ANSII Color formatting for output in terminals.")
10702 (license license:expat)))
10704 (define-public python2-termcolor
10705 (package-with-python2 python-termcolor))
10707 (define-public python-terminaltables
10709 (name "python-terminaltables")
10714 (uri (pypi-uri "terminaltables" version))
10717 "109vhldk6nv1z3hzp4dyqf6rjvlhl0y2k5k7qcm9fcrq5swhxszk"))))
10718 (build-system python-build-system)
10719 (home-page "https://github.com/Robpol86/terminaltables")
10721 "Generate simple tables in terminals from a nested list of strings")
10723 "This package makes it easy to draw tables in terminal/console
10724 applications from a list of lists of strings. It supports multi-line rows.")
10725 (license license:expat)))
10727 (define-public python-libarchive-c
10729 (name "python-libarchive-c")
10733 (uri (pypi-uri "libarchive-c" version))
10736 "0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
10737 (build-system python-build-system)
10739 '(#:phases (modify-phases %standard-phases
10741 'build 'reference-libarchive
10742 (lambda* (#:key inputs #:allow-other-keys)
10743 ;; Retain the absolute file name of libarchive.so.
10744 (let ((libarchive (assoc-ref inputs "libarchive")))
10745 (substitute* "libarchive/ffi.py"
10746 (("find_library\\('archive'\\)")
10747 (string-append "'" libarchive
10748 "/lib/libarchive.so'"))))))
10750 (lambda _ (invoke "pytest" "-vv"))))))
10752 `(("python-mock" ,python-mock)
10753 ("python-pytest" ,python-pytest)))
10755 `(("libarchive" ,libarchive)))
10756 (home-page "https://github.com/Changaco/python-libarchive-c")
10757 (synopsis "Python interface to libarchive")
10759 "This package provides Python bindings to libarchive, a C library to
10760 access possibly compressed archives in many different formats. It uses
10761 Python's @code{ctypes} foreign function interface (FFI).")
10762 (license license:lgpl2.0+)))
10764 (define-public python2-libarchive-c
10765 (package-with-python2 python-libarchive-c))
10767 (define-public python-file
10768 (package/inherit file
10769 (name "python-file")
10770 (build-system python-build-system)
10772 '(#:tests? #f ;no tests
10773 #:configure-flags '("--single-version-externally-managed" "--root=/")
10774 #:phases (modify-phases %standard-phases
10775 (add-before 'build 'change-directory
10779 (add-before 'build 'set-library-file-name
10780 (lambda* (#:key inputs #:allow-other-keys)
10781 (let ((file (assoc-ref inputs "file")))
10782 (substitute* "magic.py"
10783 (("find_library\\('magic'\\)")
10784 (string-append "'" file "/lib/libmagic.so'")))
10786 (inputs `(("file" ,file)))
10787 (native-inputs (if (%current-target-system)
10788 `(("self" ,this-package))
10790 (synopsis "Python bindings to the libmagic file type guesser")
10791 (description "This package provides Python bindings to the libmagic file
10794 Note that this module and the @code{python-magic} module both provide a
10795 @file{magic.py} file; these two modules, which are different and were
10796 developed separately, both serve the same purpose: provide Python bindings for
10799 (define-public python2-file
10800 (package-with-python2 python-file))
10802 (define-public python-debian
10804 (name "python-debian")
10805 (home-page "https://salsa.debian.org/python-debian-team/python-debian")
10809 ;; Use git-fetch, as pypi doesn't include test suite.
10811 (uri (git-reference
10814 (file-name (git-file-name name version))
10817 "0qy6x28bj6yfikhjww932v5xq4mf5bm1iczl7acy4c7zm6mwhqfa"))))
10818 (build-system python-build-system)
10820 `(#:phases (modify-phases %standard-phases
10821 (add-after 'unpack 'remove-debian-specific-tests
10822 ;; python-apt, apt and dpkg are not yet available in guix,
10823 ;; and these tests heavily depend on them.
10825 (delete-file "lib/debian/tests/test_deb822.py")
10826 (delete-file "lib/debian/tests/test_debfile.py")
10829 `(("python-six" ,python-six)
10830 ("python-chardet" ,python-chardet)))
10831 (synopsis "Debian package related modules")
10833 ;; XXX: Use @enumerate instead of @itemize to work around
10834 ;; <http://bugs.gnu.org/21772>.
10835 "This package provides Python modules that abstract many formats of
10836 Debian-related files, such as:
10839 @item Debtags information;
10840 @item @file{debian/changelog} files;
10841 @item packages files, pdiffs;
10842 @item control files of single or multiple RFC822-style paragraphs---e.g.
10843 @file{debian/control}, @file{.changes}, @file{.dsc};
10844 @item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
10845 contained files and meta-information.
10848 ;; Modules are either GPLv2+ or GPLv3+.
10849 (license license:gpl3+)))
10851 (define-public python-json-spec
10853 (name "python-json-spec")
10858 (uri (pypi-uri "json-spec" version))
10861 "06dpbsq61ja9r89wpa2pzdii47qh3xri9ajdrgn1awfl102znchb"))))
10862 (build-system python-build-system)
10864 `(("python-pathlib" ,python-pathlib)
10865 ("python-six" ,python-six)))
10867 `(("python-pytest" ,python-pytest)))
10868 (home-page "http://py.errorist.io/json-spec")
10870 "JSON Schema, JSON Pointer and JSON Reference for Python")
10872 "This Python library implements several JSON specs, like JSON Schema,
10873 JSON Reference and JSON Pointer.")
10874 (license license:bsd-3)))
10876 (define-public python-fastjsonschema
10878 (name "python-fastjsonschema")
10883 (uri (pypi-uri "fastjsonschema" version))
10885 (base32 "1ln2j60jzyn6p8i8ljygfgrji58hc23452g7nllkcjdk4p93c7v7"))))
10886 (build-system python-build-system)
10888 `(#:tests? #f ; Fail with a strange backtrace ending in importlib.
10890 (modify-phases %standard-phases
10892 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
10894 (invoke "pytest" "-vv" "-m" "not benchmark")))))))
10896 `(("python-colorama" ,python-colorama)
10897 ("python-json-spec" ,python-json-spec)
10898 ("python-jsonschema" ,python-jsonschema)
10899 ("python-pylint" ,python-pylint)
10900 ("python-pytest" ,python-pytest-6)
10901 ("python-pytest-benchmark"
10902 ,python-pytest-benchmark)
10903 ("python-pytest-cache" ,python-pytest-cache)
10904 ("python-validictory" ,python-validictory)))
10906 "https://github.com/horejsek/python-fastjsonschema")
10908 "Fast Python implementation of JSON schema")
10910 "This library implements validation of JSON documents by JSON schema for
10911 drafts 04, 06 and 07.")
10912 (license license:bsd-3)))
10914 (define-public python-nbformat
10916 (name "python-nbformat")
10918 ;; The PyPi release tarball lacks some test cases and test data.
10921 (uri (git-reference
10922 (url "https://github.com/jupyter/nbformat.git")
10926 "033v16cfmxzh3jn5phnil4p3silr49iwh9wiigzhv0crc6sanvwz"))
10927 (file-name (git-file-name name version))))
10928 (build-system python-build-system)
10931 (modify-phases %standard-phases
10933 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
10935 (invoke "pytest" "-vv")))))))
10937 `(("python-ipython-genutils" ,python-ipython-genutils)
10938 ("python-jsonschema" ,python-jsonschema)
10939 ("python-jupyter-core" ,python-jupyter-core)
10940 ("python-traitlets" ,python-traitlets)))
10942 `(("python-pytest" ,python-pytest)
10943 ("python-fastjsonschema" ,python-fastjsonschema) ; This is only active
10944 ; when setting NBFORMAT_VALIDATOR="fastjsonschema", so include it for
10946 ("python-testpath" ,python-testpath)))
10947 (home-page "https://jupyter.org")
10948 (synopsis "Jupyter Notebook format")
10949 (description "This package provides the reference implementation of the
10950 Jupyter Notebook format and Python APIs for working with notebooks.")
10951 (properties `((python2-variant . ,(delay python2-nbformat))))
10952 (license license:bsd-3)))
10954 (define-public python2-nbformat
10955 (let ((parent (package-with-python2
10956 (strip-python2-variant python-nbformat))))
10963 (uri (pypi-uri "nbformat" version))
10966 "00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp")))))))
10968 (define-public python-bleach
10970 (name "python-bleach")
10975 (uri (pypi-uri "bleach" version))
10977 (base32 "0jqa8f1ni10cyf4h7sjpf8mbqlcbkyvmsnli77qrxdcxvc7m4k1w"))))
10978 (build-system python-build-system)
10980 `(("python-webencodings" ,python-webencodings)
10981 ("python-six" ,python-six)))
10983 `(("python-datrie" ,python-datrie)
10984 ("python-genshi" ,python-genshi)
10985 ("python-lxml" ,python-lxml)
10986 ("python-pytest" ,python-pytest)))
10987 (home-page "https://github.com/mozilla/bleach")
10988 (synopsis "Whitelist-based HTML-sanitizing tool")
10989 (description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
10990 (license license:asl2.0)))
10992 (define-public python2-bleach
10993 (package-with-python2 python-bleach))
10995 (define-public python-entrypoints
10997 (name "python-entrypoints")
11002 (uri (pypi-uri "entrypoints" version))
11005 "0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
11006 (build-system python-build-system)
11007 ;; The package does not come with a setup.py file, so we have to generate
11012 (modify-phases %standard-phases
11013 (add-after 'unpack 'create-setup.py
11015 (call-with-output-file "setup.py"
11018 from setuptools import setup
11019 setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
11021 (home-page "https://github.com/takluyver/entrypoints")
11022 (synopsis "Discover and load entry points from installed Python packages")
11023 (description "Entry points are a way for Python packages to advertise
11024 objects with some common interface. The most common examples are
11025 @code{console_scripts} entry points, which define shell commands by
11026 identifying a Python function to run. The @code{entrypoints} module contains
11027 functions to find and load entry points.")
11028 (license license:expat)))
11030 (define-public python2-entrypoints
11031 (package-with-python2 python-entrypoints))
11033 (define-public python-epc
11035 (name "python-epc")
11040 (uri (pypi-uri "epc" version))
11043 "09bx1ln1bwa00917dndlgs4k589h8qx2x080xch5m58p92kjwkd1"))))
11044 (build-system python-build-system)
11046 `(("python-sexpdata" ,python-sexpdata)))
11048 `(("python-nose" ,python-nose)))
11049 (home-page "https://github.com/tkf/python-epc")
11050 (synopsis "Remote procedure call (RPC) stack for Emacs Lisp and Python")
11052 "Python-EPC can call elisp functions from Python and Python functions
11054 (license license:gpl3)))
11056 (define-public python-forex-python
11058 (name "python-forex-python")
11063 (uri (pypi-uri "forex-python" version))
11065 (base32 "1ma8cl1i2dh8aa99pifnlilyy4d1gd1s07fj0yd17wcbpsh532cj"))))
11066 (build-system python-build-system)
11068 ;; Tests are not included in the PyPI tarball. Also, the tests in the
11069 ;; repository require online data.
11072 `(("python-requests" ,python-requests)
11073 ("python-simplejson" ,python-simplejson)))
11074 (home-page "https://github.com/MicroPyramid/forex-python")
11075 (synopsis "Foreign exchange rates and currency conversion")
11077 "@code{python-forex-python} can be used to manipulate foreign
11078 exchange rates and to operate currency conversions.
11082 @item List all currency rates.
11083 @item BitCoin price for all currencies.
11084 @item Converting amount to BitCoins.
11085 @item Get historical rates for any day since 1999.
11086 @item Conversion rate for one currency(ex; USD to INR).
11087 @item Convert amount from one currency to other.('USD 10$' to INR).
11088 @item Currency symbols.
11089 @item Currency names.
11091 (license license:expat)))
11093 (define-public python-simpleeval
11095 (name "python-simpleeval")
11100 (uri (pypi-uri "simpleeval" version))
11102 (base32 "1skvl467kj83rzkhk01i0wm8m5vmh6j5znrfdizn6r18ii45a839"))))
11103 (build-system python-build-system)
11104 (home-page "https://github.com/danthedeckie/simpleeval")
11105 (synopsis "Simple, safe single expression evaluator library")
11107 "This package provides a quick single file library for easily adding
11108 evaluatable expressions into python projects. Say you want to allow a user
11109 to set an alarm volume, which could depend on the time of day, alarm level,
11110 how many previous alarms had gone off, and if there is music playing at the
11112 (license license:expat)))
11114 (define-public python-nbconvert
11116 (name "python-nbconvert")
11121 (uri (pypi-uri "nbconvert" version))
11124 "00lhqaxn481qvk2w5568asqlsnvrw2fm61p1vssx3m7vdnl17g6b"))))
11125 (build-system python-build-system)
11128 (modify-phases %standard-phases
11129 (add-after 'unpack 'fix-paths-and-tests
11131 ;; Use pandoc binary from input.
11132 (substitute* "nbconvert/utils/pandoc.py"
11133 (("'pandoc'") (string-append "'" (which "pandoc") "'")))
11135 (substitute* "nbconvert/exporters/pdf.py"
11136 (("\"xelatex\"") (string-append "\"" (which "xelatex") "\""))
11137 (("\"bibtex\"") (string-append "\"" (which "bibtex") "\"")))
11138 ;; Make sure tests are not skipped.
11139 (substitute* (find-files "." "test_.+\\.py$")
11140 (("@onlyif_cmds_exist\\(('(pandoc|xelatex)'(, )?)+\\)") ""))
11141 ;; Pandoc is never missing, disable test.
11142 (substitute* "nbconvert/utils/tests/test_pandoc.py"
11143 (("import os" all) (string-append all "\nimport pytest"))
11144 (("(.+)(def test_pandoc_available)" all indent def)
11145 (string-append indent "@pytest.mark.skip('disabled by guix')\n"
11147 ;; Not installing pyppeteer, delete test.
11148 (delete-file "nbconvert/exporters/tests/test_webpdf.py")
11149 (substitute* "nbconvert/tests/test_nbconvertapp.py"
11150 (("(.+)(def test_webpdf_with_chromium)" all indent def)
11151 (string-append indent "@pytest.mark.skip('disabled by guix')\n"
11154 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
11156 ;; Some tests invoke the installed nbconvert binary.
11157 (add-installed-pythonpath inputs outputs)
11158 ;; Tries to write to this path.
11159 (unsetenv "JUPYTER_CONFIG_DIR")
11160 ;; Tests depend on templates installed to output.
11161 (setenv "JUPYTER_PATH"
11163 (assoc-ref outputs "out")
11165 (getenv "JUPYTER_PATH")))
11166 ;; Some tests need HOME
11167 (setenv "HOME" "/tmp")
11168 (invoke "pytest" "-vv")))))))
11170 `(("pandoc" ,pandoc)
11171 ;; XXX: Disabled, needs substitute*.
11172 ;;("inkscape" ,inkscape)
11175 `(("python-ipykernel" ,python-ipykernel)
11176 ;; XXX: Disabled, not in guix.
11177 ;;("python-pyppeteer" ,python-pyppeteer)
11178 ("python-pytest" ,python-pytest)
11179 ("python-pytest-cov" ,python-pytest-cov)
11180 ("python-pytest-dependency" ,python-pytest-dependency)
11181 ("texlive" ,(texlive-union (list texlive-adjustbox
11182 texlive-amsfonts/patched
11187 texlive-generic-ulem
11190 texlive-latex-amsmath
11191 texlive-latex-enumitem
11192 texlive-latex-fancyvrb
11193 texlive-latex-float
11194 texlive-latex-fontspec
11195 texlive-latex-geometry
11196 texlive-latex-hyperref
11197 texlive-latex-jknapltx
11199 texlive-latex-oberdiek
11200 texlive-latex-parskip
11201 texlive-latex-trimspaces
11202 texlive-latex-upquote
11210 texlive-zapfding)))))
11212 `(("python-bleach" ,python-bleach)
11213 ("python-defusedxml" ,python-defusedxml)
11214 ("python-entrypoints" ,python-entrypoints)
11215 ("python-jinja2" ,python-jinja2)
11216 ("python-jupyter-core" ,python-jupyter-core)
11217 ("python-mistune" ,python-mistune)
11218 ("python-nbclient" ,python-nbclient)
11219 ("python-nbformat" ,python-nbformat)
11220 ("python-pandocfilters" ,python-pandocfilters)
11221 ("python-pygments" ,python-pygments)
11222 ("python-jupyterlab-pygments" ,python-jupyterlab-pygments)
11223 ("python-testpath" ,python-testpath)
11224 ("python-traitlets" ,python-traitlets)
11225 ;; Required, even if [serve] is not used.
11226 ("python-tornado" ,python-tornado-6)))
11227 (home-page "https://jupyter.org")
11228 (synopsis "Converting Jupyter Notebooks")
11229 (description "The @code{nbconvert} tool, @{jupyter nbconvert}, converts
11230 notebooks to various other formats via Jinja templates. It allows you to
11231 convert an @code{.ipynb} notebook file into various static formats including:
11238 @item Markdown (md)
11239 @item ReStructured Text (rst)
11240 @item executable script
11242 (license license:bsd-3)
11243 (properties `((python2-variant . ,(delay python2-nbconvert))))))
11245 (define-public python2-nbconvert
11247 (package-with-python2
11248 (strip-python2-variant python-nbconvert))))
11251 (version "5.0.0b1")
11255 (uri (pypi-uri "nbconvert" version))
11258 "0brclbb18l4nmd5qy3dl9wn05rjdh1fz4rmzdlfqacj12rcdvdgp"))))
11260 `(;; The "bdist_egg" target is disabled by default, causing the installation
11262 #:configure-flags (list "bdist_egg")
11263 ;; FIXME: 5 failures, 40 errors.
11266 `(("python-bleach" ,python-bleach)
11267 ("python-entrypoints" ,python-entrypoints)
11268 ("python-jinja2" ,python-jinja2)
11269 ("python-jupyter-core" ,python-jupyter-core)
11270 ("python-mistune" ,python-mistune)
11271 ("python-nbformat" ,python-nbformat)
11272 ("python-pygments" ,python-pygments)
11273 ("python-traitlets" ,python-traitlets))))))
11275 (define-public python-notebook
11277 (name "python-notebook")
11281 (uri (pypi-uri "notebook" version))
11284 "0zfwr87ndjzmdp9adpc9lby1hdqdkjp2q7c9vff3wiw1dj6kkjfb"))))
11285 (build-system python-build-system)
11288 (modify-phases %standard-phases
11290 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
11291 ;; These tests require a browser
11292 (delete-file-recursively "notebook/tests/selenium")
11294 (add-installed-pythonpath inputs outputs)
11295 ;; Some tests do not expect all files to be installed in the
11296 ;; same directory, but JUPYTER_PATH contains multiple entries.
11297 (unsetenv "JUPYTER_PATH")
11298 ;; Some tests need HOME
11299 (setenv "HOME" "/tmp")
11300 (with-directory-excursion "/tmp"
11301 (invoke "pytest" "-vv"
11302 ;; TODO: This tests fails because nbconvert does not
11303 ;; list "python" as a format.
11304 "-k" "not test_list_formats"))))))))
11306 `(("python-argon2-cffi" ,python-argon2-cffi)
11307 ("python-ipykernel" ,python-ipykernel)
11308 ("python-ipython-genutils" ,python-ipython-genutils)
11309 ("python-jinja2" ,python-jinja2)
11310 ("python-jupyter-client" ,python-jupyter-client)
11311 ("python-jupyter-core" ,python-jupyter-core)
11312 ("python-nbconvert" ,python-nbconvert)
11313 ("python-nbformat" ,python-nbformat)
11314 ("python-prometheus-client" ,python-prometheus-client)
11315 ("python-pyzmq" ,python-pyzmq)
11316 ("python-send2trash" ,python-send2trash)
11317 ("python-terminado" ,python-terminado)
11318 ("python-tornado" ,python-tornado-6)
11319 ("python-traitlets" ,python-traitlets)))
11321 `(("python-coverage" ,python-coverage)
11322 ("python-nbval" ,python-nbval)
11323 ("python-pytest" ,python-pytest)
11324 ("python-pytest-cov" ,python-pytest-cov)
11325 ("python-requests" ,python-requests)
11326 ("python-requests-unixsocket" ,python-requests-unixsocket)))
11327 (home-page "https://jupyter.org/")
11328 (synopsis "Web-based notebook environment for interactive computing")
11330 "The Jupyter HTML notebook is a web-based notebook environment for
11331 interactive computing.")
11332 (license license:bsd-3)))
11334 (define-public python-widgetsnbextension
11336 (name "python-widgetsnbextension")
11341 (uri (pypi-uri "widgetsnbextension" version))
11344 "1ismyaxbv9d56yqqqb8xl58hg0iq0bbyy014a53y1g3hfbc8g7q7"))))
11345 (build-system python-build-system)
11347 `(("python-notebook" ,python-notebook)))
11348 (home-page "https://ipython.org")
11349 (synopsis "IPython HTML widgets for Jupyter")
11350 (description "This package provides interactive HTML widgets for Jupyter
11352 (license license:bsd-3)))
11354 (define-public python-ipywidgets
11356 (name "python-ipywidgets")
11361 (uri (pypi-uri "ipywidgets" version))
11364 "1w217j8i53x14l7b05fk300k222zs9vkcjaa1rbrw3sk43k466lz"))))
11365 (build-system python-build-system)
11367 `(("python-ipykernel" ,python-ipykernel)
11368 ("python-ipython" ,python-ipython)
11369 ("python-jupyterlab-widgets" ,python-jupyterlab-widgets)
11370 ("python-nbformat" ,python-nbformat)
11371 ("python-traitlets" ,python-traitlets)
11372 ("python-widgetsnbextension" ,python-widgetsnbextension)))
11374 `(("python-mock" ,python-mock)
11375 ("python-pytest" ,python-pytest)
11376 ("python-pytest-cov" ,python-pytest-cov)))
11377 (home-page "https://ipython.org")
11378 (synopsis "IPython HTML widgets for Jupyter")
11379 (description "Ipywidgets are interactive HTML widgets for Jupyter
11380 notebooks and the IPython kernel. Notebooks come alive when interactive
11381 widgets are used. Users gain control of their data and can visualize changes
11383 (license license:bsd-3)))
11385 (define-public python-jupyter-console
11387 (name "python-jupyter-console")
11392 (uri (pypi-uri "jupyter_console" version))
11395 "06s3kr5vx0l1y1b7fxb04dmrppscl7q69sl9yyfr0d057d1ssvkg"))))
11396 (build-system python-build-system)
11398 `(("python-ipykernel" ,python-ipykernel)
11399 ("python-jupyter-client" ,python-jupyter-client)
11400 ("python-prompt-toolkit" ,python-prompt-toolkit-2)
11401 ("python-pygments" ,python-pygments)))
11403 `(("python-nose" ,python-nose)))
11404 (home-page "https://jupyter.org")
11405 (synopsis "Jupyter terminal console")
11406 (description "This package provides a terminal-based console frontend for
11407 Jupyter kernels. It also allows for console-based interaction with non-Python
11408 Jupyter kernels such as IJulia and IRKernel.")
11409 (license license:bsd-3)))
11411 ;; The python-ipython and python-jupyter-console require each other. To get
11412 ;; the functionality in both packages working, strip down the
11413 ;; python-jupyter-console package when using it as an input to python-ipython.
11414 (define python-jupyter-console-minimal
11415 (package/inherit python-jupyter-console
11416 (name "python-jupyter-console-minimal")
11418 (substitute-keyword-arguments
11419 (package-arguments python-jupyter-console)
11421 `(modify-phases ,phases
11422 (add-after 'install 'delete-bin
11423 (lambda* (#:key outputs #:allow-other-keys)
11424 ;; Delete the bin files, to avoid conflicts in profiles
11425 ;; where python-ipython and python-jupyter-console are
11427 (delete-file-recursively
11429 (assoc-ref outputs "out") "/bin"))))))))
11430 ;; Remove the python-ipython propagated input, to avoid the cycle
11434 (package-propagated-inputs python-jupyter-console)))))
11436 (define-public python-qtconsole
11438 (name "python-qtconsole")
11443 (uri (pypi-uri "qtconsole" version))
11446 "1b03n1ixzscm0jw97l4dq5iy4fslnqxq5bb8287xb7n2a1gs26xw"))))
11447 (build-system python-build-system)
11449 ;; XXX: Tests are disabled, because this package needs python-ipython 7,
11450 ;; but we only have the LTS version 5.x. This means that there might be
11451 ;; runtime errors, but since this is a dependency of the Jupyter package,
11452 ;; and Jupyter can be used without the qtconsole we can overlook this for
11456 (modify-phases %standard-phases
11457 (add-before 'check 'pre-check
11459 (setenv "QT_QPA_PLATFORM" "offscreen")
11462 `(("python-ipykernel" ,python-ipykernel)
11463 ("python-ipython" ,python-ipython)))
11465 `(("python-pytest" ,python-pytest)))
11466 (home-page "https://jupyter.org")
11467 (synopsis "Jupyter Qt console")
11468 (description "This package provides a Qt-based console for Jupyter with
11469 support for rich media output.")
11470 (license license:bsd-3)))
11472 (define-public python-jsbeautifier
11474 (name "python-jsbeautifier")
11476 (home-page "https://github.com/beautify-web/js-beautify")
11479 (uri (git-reference
11481 (commit (string-append "v" version))))
11482 (file-name (git-file-name name version))
11485 "0wawb070ki1axb3jc9xvsrgpji52vcfif3zmjzc3z4g98m5xw4kg"))))
11486 (build-system python-build-system)
11488 `(#:phases (modify-phases %standard-phases
11489 (add-after 'unpack 'chdir
11491 ;; The upstream Git repository contains all the code,
11492 ;; but this package only builds the python code.
11495 (add-after 'unpack 'patch-python-six-requirements
11497 (substitute* "python/setup.py"
11502 `(("python-editorconfig" ,python-editorconfig)
11503 ("python-six" ,python-six)))
11505 `(("python-pytest" ,python-pytest)))
11506 (synopsis "JavaScript unobfuscator and beautifier")
11507 (description "Beautify, unpack or deobfuscate JavaScript, leveraging
11508 popular online obfuscators.")
11509 (license license:expat)))
11511 (define-public jupyter
11518 (uri (pypi-uri "jupyter" version))
11521 "0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
11522 (build-system python-build-system)
11523 (arguments '(#:tests? #f)) ; there are none.
11525 `(("python-ipykernel" ,python-ipykernel)
11526 ("python-ipywidgets" ,python-ipywidgets)
11527 ("python-jupyter-console" ,python-jupyter-console)
11528 ("python-nbconvert" ,python-nbconvert)
11529 ("python-notebook" ,python-notebook)
11530 ("python-qtconsole" ,python-qtconsole)))
11531 (home-page "https://jupyter.org")
11532 (synopsis "Web application for interactive documents")
11534 "The Jupyter Notebook is a web application that allows you to create and
11535 share documents that contain live code, equations, visualizations and
11536 explanatory text. Uses include: data cleaning and transformation, numerical
11537 simulation, statistical modeling, machine learning and much more.")
11538 (license license:bsd-3)))
11540 (define-public python-chardet
11542 (name "python-chardet")
11547 (uri (pypi-uri "chardet" version))
11550 "1bpalpia6r5x1kknbk11p1fzph56fmmnp405ds8icksd3knr5aw4"))))
11552 `(("python-hypothesis" ,python-hypothesis)
11553 ("python-pytest" ,python-pytest)
11554 ("python-pytest-runner" ,python-pytest-runner)))
11555 (build-system python-build-system)
11556 ;; XXX: Incompatible with Pytest 4: <https://github.com/chardet/chardet/issues/173>.
11557 (arguments `(#:tests? #f))
11558 (home-page "https://github.com/chardet/chardet")
11559 (synopsis "Universal encoding detector for Python 2 and 3")
11561 "This package provides @code{chardet}, a Python module that can
11562 automatically detect a wide range of file encodings.")
11563 (license license:lgpl2.1+)))
11565 (define-public python2-chardet
11566 (package-with-python2 python-chardet))
11568 (define-public python-docopt
11570 (name "python-docopt")
11575 ;; The release on PyPI does not include tests.
11576 (uri (git-reference
11577 (url "https://github.com/docopt/docopt")
11579 (file-name (git-file-name name version))
11582 "0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))))
11583 (build-system python-build-system)
11585 `(("python-pytest" ,python-pytest)))
11588 (modify-phases %standard-phases
11590 (lambda _ (invoke "py.test"))))))
11591 (home-page "http://docopt.org")
11592 (synopsis "Command-line interface description language for Python")
11593 (description "This library allows the user to define a command-line
11594 interface from a program's help message rather than specifying it
11595 programmatically with command-line parsers like @code{getopt} and
11597 (license license:expat)))
11599 (define-public python2-docopt
11600 (package-with-python2 python-docopt))
11602 (define-public python-pythondialog
11604 (name "python-pythondialog")
11609 (uri (pypi-uri "pythondialog" version))
11612 "1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
11613 (build-system python-build-system)
11616 (modify-phases %standard-phases
11617 (add-after 'unpack 'patch-path
11618 (lambda* (#:key inputs #:allow-other-keys)
11619 (let* ((dialog (assoc-ref inputs "dialog")))
11620 ;; Since this library really wants to grovel the search path, we
11621 ;; must hardcode dialog's store path into it.
11622 (substitute* "dialog.py"
11623 (("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)")
11624 (string-append "os.getenv(\"PATH\") + \":" dialog "/bin\"")))
11626 #:tests? #f)) ; no test suite
11628 `(("dialog" ,dialog)))
11629 (home-page "http://pythondialog.sourceforge.net/")
11630 (synopsis "Python interface to the UNIX dialog utility")
11631 (description "A Python wrapper for the dialog utility. Its purpose is to
11632 provide an easy to use, pythonic and comprehensive Python interface to dialog.
11633 This allows one to make simple text-mode user interfaces on Unix-like systems")
11634 (license license:lgpl2.1)
11635 (properties `((python2-variant . ,(delay python2-pythondialog))))))
11637 (define-public python2-pythondialog
11638 (let ((base (package-with-python2 (strip-python2-variant python-pythondialog))))
11641 (version (package-version python-pythondialog))
11644 (uri (pypi-uri "python2-pythondialog" version))
11647 "0d8k7lxk50imdyx85lv8j98i4c93a71iwpapnl1506rpkbm9qvd9")))))))
11649 (define-public python-configobj
11651 (name "python-configobj")
11655 (uri (pypi-uri "configobj" version))
11658 "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
11659 ;; Patch setup.py so it looks for python-setuptools, which is
11660 ;; required to parse the keyword 'install_requires' in setup.py.
11661 (patches (search-patches "python-configobj-setuptools.patch"))))
11662 (build-system python-build-system)
11664 `(("python-six" ,python-six)))
11665 (synopsis "Config file reading, writing and validation")
11666 (description "ConfigObj is a simple but powerful config file reader and
11667 writer: an ini file round tripper. Its main feature is that it is very easy to
11668 use, with a straightforward programmer’s interface and a simple syntax for
11670 (home-page "https://github.com/DiffSK/configobj")
11671 (license license:bsd-3)))
11673 (define-public python2-configobj
11674 (package-with-python2 python-configobj))
11676 (define-public python-configargparse
11678 (name "python-configargparse")
11682 (uri (pypi-uri "ConfigArgParse" version))
11685 "1p1pzpf5qpf80bfxsx1mbw9blyhhypjvhl3i60pbmhfmhvlpplgd"))))
11686 (build-system python-build-system)
11688 `(("python-pyyaml" ,python-pyyaml)))
11691 (modify-phases %standard-phases
11694 ;; Bypass setuptools-shim because one test relies on "setup.py"
11695 ;; being the first argument passed to the python call.
11697 ;; NOTE: Many tests do not run because they rely on Python's
11698 ;; built-in test.test_argparse, but we remove the unit tests from
11699 ;; our Python installation.
11700 (invoke "python" "setup.py" "test"))))))
11701 (synopsis "Replacement for argparse")
11702 (description "A drop-in replacement for argparse that allows options to also
11703 be set via config files and/or environment variables.")
11704 (home-page "https://github.com/bw2/ConfigArgParse")
11705 (license license:expat)))
11707 (define-public python-argparse-manpage
11709 (name "python-argparse-manpage")
11714 (uri (pypi-uri "argparse-manpage" version))
11717 "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p"))))
11718 (build-system python-build-system)
11719 (home-page "https://github.com/praiskup/argparse-manpage")
11720 (synopsis "Build manual page from Python's ArgumentParser object")
11722 "This package provides tools to build manual pages from Python's
11723 @code{ArgumentParser} object.")
11724 (license license:asl2.0)))
11726 (define-public python-contextlib2
11728 (name "python-contextlib2")
11729 (version "0.6.0.post1")
11733 (uri (pypi-uri "contextlib2" version))
11736 "0bhnr2ac7wy5l85ji909gyljyk85n92w8pdvslmrvc8qih4r1x01"))))
11737 (build-system python-build-system)
11738 (home-page "https://contextlib2.readthedocs.org/")
11739 (synopsis "Tools for decorators and context managers")
11740 (description "This module is primarily a backport of the Python
11741 3.2 contextlib to earlier Python versions. Like contextlib, it
11742 provides utilities for common tasks involving decorators and context
11743 managers. It also contains additional features that are not part of
11744 the standard library.")
11745 (properties `((python2-variant . ,(delay python2-contextlib2))))
11746 (license license:psfl)))
11748 (define-public python2-contextlib2
11749 (let ((base (package-with-python2
11750 (strip-python2-variant python-contextlib2))))
11751 (package/inherit base
11753 (substitute-keyword-arguments (package-arguments base)
11755 `(modify-phases ,phases
11757 (lambda _ (invoke "python" "test_contextlib2.py" "-v")))))))
11759 `(("python2-unittest2" ,python2-unittest2))))))
11761 ;; This package is used by python2-pytest via python2-importlib-metadata,
11762 ;; and thus can not depend on python-unittest2 (which depends on pytest).
11763 (define-public python2-contextlib2-bootstrap
11766 python2-contextlib2
11767 (name "python2-contextlib2-bootstrap")
11770 ,@(package-arguments python2-contextlib2)))
11771 (native-inputs '()))))
11773 (define-public python-texttable
11775 (name "python-texttable")
11780 (uri (pypi-uri "texttable" version))
11783 "1x5l77akfc20x52jma9573qp8l8r07q103pm4l0pbizvh4vp1wzg"))))
11784 (build-system python-build-system)
11787 (modify-phases %standard-phases
11789 (lambda _ (invoke "pytest" "tests.py"))))))
11791 `(("python-pytest" ,python-pytest)))
11792 (home-page "https://github.com/foutaise/texttable/")
11793 (synopsis "Python module for creating simple ASCII tables")
11794 (description "Texttable is a Python module for creating simple ASCII
11796 (license license:expat)))
11798 (define-public python2-texttable
11799 (package-with-python2 python-texttable))
11801 (define-public python-atomicwrites
11803 (name "python-atomicwrites")
11807 (uri (pypi-uri "atomicwrites" version))
11810 "19ngcscdf3jsqmpcxn6zl5b6anmsajb6izp1smcd1n02midl9abm"))))
11811 (build-system python-build-system)
11812 (synopsis "Atomic file writes in Python")
11813 (description "Library for atomic file writes using platform dependent tools
11814 for atomic file system operations.")
11815 (home-page "https://github.com/untitaker/python-atomicwrites")
11816 (license license:expat)))
11818 (define-public python2-atomicwrites
11819 (package-with-python2 python-atomicwrites))
11821 (define-public python-qstylizer
11823 (name "python-qstylizer")
11828 (uri (git-reference
11829 (url "https://github.com/blambright/qstylizer")
11831 (file-name (git-file-name name version))
11833 (base32 "0zvkn6g1dn51kkw33v8qrlnwlmf5h6sw1ay3bh14ifjr8b9xsjjz"))))
11834 (build-system python-build-system)
11836 `(#:test-target "pytest"
11838 (modify-phases %standard-phases
11839 (add-before 'build 'set-pbr-version
11841 (setenv "PBR_VERSION" "3.0.1"))))))
11843 `(("python-pbr" ,python-pbr)
11844 ("python-pytest" ,python-pytest)
11845 ("python-pytest-catchlog" ,python-pytest-catchlog)
11846 ("python-pytest-cov" ,python-pytest-cov)
11847 ("python-pytest-mock" ,python-pytest-mock)
11848 ("python-pytest-runner" ,python-pytest-runner)
11849 ("python-pytest-xdist" ,python-pytest-xdist)))
11851 `(("python-inflection" ,python-inflection)
11852 ("python-tinycss" ,python-tinycss)))
11853 (home-page "https://github.com/blambright/qstylizer")
11854 (synopsis "Qt stylesheet generation utility for PyQt/PySide")
11855 (description "@code{qstylizer} is a Python package designed to help with
11856 the construction of PyQt/PySide stylesheets.")
11857 (license license:expat)))
11859 (define-public python-click-threading
11861 (name "python-click-threading")
11865 (uri (pypi-uri "click-threading" version))
11868 "1rsxc2fbkxlhwhlmxsdjzq3spn284l6rvjfcz9mbb17ibgdgmc5j"))))
11869 (build-system python-build-system)
11871 `(("python-click" ,python-click)))
11872 (synopsis "Utilities for multithreading in Click")
11873 (description "This package provides utilities for multithreading in Click
11875 (home-page "https://github.com/click-contrib/click-threading")
11876 (license license:expat)))
11878 (define-public python-click-log
11880 (name "python-click-log")
11884 (uri (pypi-uri "click-log" version))
11887 "091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
11888 (build-system python-build-system)
11890 `(("python-click" ,python-click)))
11891 (synopsis "Logging for click applications")
11892 (description "This package provides a Python library for logging Click
11894 (home-page "https://github.com/click-contrib/click-log")
11895 (license license:expat)))
11897 (define-public python-click-default-group
11899 (name "python-click-default-group")
11903 (uri (pypi-uri "click-default-group" version))
11906 "015r78jk8gznfw0dphpwaqcx5mhg5822b55w5xbb6i7sin70wmnr"))))
11907 (build-system python-build-system)
11909 `(#:tests? #f)) ; no target
11911 `(("python-click" ,python-click)))
11912 (synopsis "Extends click.Group")
11913 (description "This package extends click.Group to invoke a command without
11914 explicit subcommand name.")
11915 (home-page "https://github.com/click-contrib/click-default-group")
11916 (license license:bsd-3)))
11918 (define-public python-structlog
11920 (name "python-structlog")
11925 (uri (pypi-uri "structlog" version))
11928 "0x1i21vn3xjfa3j9ijbblia5z0jlzc9aqvpqc26sy16i8yjxyydg"))))
11929 (build-system python-build-system)
11932 (modify-phases %standard-phases
11934 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
11936 (add-installed-pythonpath inputs outputs)
11940 `(("python-coverage" ,python-coverage)
11941 ("python-freezegun" ,python-freezegun)
11942 ("python-pretend" ,python-pretend)
11943 ("python-pytest" ,python-pytest)
11944 ("python-pytest-asyncio" ,python-pytest-asyncio)
11945 ("python-simplejson" ,python-simplejson)
11946 ("python-twisted" ,python-twisted)))
11947 (home-page "https://www.structlog.org/")
11948 (synopsis "Structured Logging for Python")
11949 (description "@code{structlog} changes logging in Python by adding structure
11950 to your log entries.")
11951 (license (list license:asl2.0 license:expat))))
11953 (define-public python-apipkg
11955 (name "python-apipkg")
11959 (uri (pypi-uri "apipkg" version))
11962 "1xhak74yj3lqflvpijg15rnkklrigvsp5q7s4as4h6a157d8q8ip"))))
11963 (build-system python-build-system)
11965 `(("python-pytest" ,python-pytest)
11966 ("python-setuptools-scm" ,python-setuptools-scm)))
11967 (synopsis "Namespace control and lazy-import mechanism")
11968 (description "With apipkg you can control the exported namespace of a Python
11969 package and greatly reduce the number of imports for your users. It is a small
11970 pure Python module that works on virtually all Python versions.")
11971 (home-page "https://github.com/pytest-dev/apipkg")
11972 (license license:expat)))
11974 (define-public python-execnet
11976 (name "python-execnet")
11980 (uri (pypi-uri "execnet" version))
11983 "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn"))))
11984 (build-system python-build-system)
11986 `(;; 2 failed, 275 passed, 670 skipped, 4 xfailed
11987 ;; The two test failures are caused by the lack of an `ssh` executable.
11988 ;; The test suite can be run with pytest after the 'install' phase.
11991 `(("python-pytest" ,python-pytest)
11992 ("python-setuptools-scm" ,python-setuptools-scm)))
11994 `(("python-apipkg" ,python-apipkg)))
11995 (synopsis "Rapid multi-Python deployment")
11996 (description "Execnet provides a share-nothing model with
11997 channel-send/receive communication for distributing execution across many
11998 Python interpreters across version, platform and network barriers. It has a
11999 minimal and fast API targeting the following uses:
12001 @item distribute tasks to (many) local or remote CPUs
12002 @item write and deploy hybrid multi-process applications
12003 @item write scripts to administer multiple environments
12005 (home-page "https://codespeak.net/execnet/")
12006 (license license:expat)))
12008 (define-public python2-execnet
12009 (package-with-python2 python-execnet))
12011 (define-public python-icalendar
12013 (name "python-icalendar")
12017 (uri (pypi-uri "icalendar" version))
12020 "19574j3jwssm2dkqykih4568xqfgjsa3hcd79yl5s2vfys3qvh8g"))))
12021 (build-system python-build-system)
12023 `(("python-dateutil" ,python-dateutil)
12024 ("python-pytz" ,python-pytz)))
12025 (synopsis "Python library for parsing iCalendar files")
12026 (description "The icalendar package is a parser/generator of iCalendar
12027 files for use with Python.")
12028 (home-page "https://github.com/collective/icalendar")
12029 (license license:bsd-2)))
12031 (define-public python-args
12033 (name "python-args")
12037 (uri (pypi-uri "args" version))
12040 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7"))))
12041 (build-system python-build-system)
12042 (home-page "https://github.com/kennethreitz/args")
12043 (synopsis "Command-line argument parser")
12045 "This library provides a Python module to parse command-line arguments.")
12046 (license license:bsd-3)))
12048 (define-public python2-args
12049 (package-with-python2 python-args))
12051 (define-public python-clint
12053 (name "python-clint")
12057 (uri (pypi-uri "clint" version))
12060 "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
12061 (build-system python-build-system)
12064 (modify-phases %standard-phases
12066 (lambda _ (invoke "py.test" "-v"))))))
12068 `(("python-pytest" ,python-pytest)))
12070 `(("python-args" ,python-args)))
12071 (home-page "https://github.com/kennethreitz/clint")
12072 (synopsis "Command-line interface tools")
12074 "Clint is a Python module filled with a set of tools for developing
12075 command-line applications, including tools for colored and indented
12076 output, progress bar display, and pipes.")
12077 (license license:isc)))
12079 (define-public python2-clint
12080 (package-with-python2 python-clint))
12082 (define-public python-rply
12084 (name "python-rply")
12088 (uri (pypi-uri "rply" version))
12091 "1j81nddvnb145x4p81bnfpyai6g26i2dc1633ycsk025bb18m01a"))))
12092 (build-system python-build-system)
12094 `(("python-appdirs" ,python-appdirs)))
12095 (home-page "https://github.com/alex/rply")
12096 (synopsis "Parser generator for Python")
12098 "This package provides a pure Python based parser generator, that also
12099 works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
12100 with a new public API, and RPython support.")
12101 (license license:bsd-3)))
12103 (define-public python2-rply
12104 (package-with-python2 python-rply))
12106 (define-public python-hy
12112 (uri (pypi-uri "hy" version))
12115 "04dfwm336gw61fmgwikvh0cnxk682p19b4w555wl5d7mlym4rwj2"))))
12116 (build-system python-build-system)
12119 (modify-phases %standard-phases
12120 (add-before 'install 'set-HOME
12122 (setenv "HOME" "/tmp") #t))
12125 ;; Tests require write access to HOME.
12126 (setenv "HOME" "/tmp")
12127 (invoke "nosetests"))))))
12129 `(("python-coverage" ,python-coverage)
12130 ("python-nose" ,python-nose)))
12132 `(("python-astor" ,python-astor)
12133 ("python-colorama" ,python-colorama)
12134 ("python-rply" ,python-rply)
12135 ("python-funcparserlib"
12136 ,python-funcparserlib)))
12137 (home-page "http://hylang.org/")
12138 (synopsis "Lisp frontend to Python")
12140 "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
12141 its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
12142 Python at your fingertips, in Lisp form.")
12143 (license license:expat)))
12145 (define-public python-hissp
12147 (name "python-hissp")
12152 (uri (pypi-uri "hissp" version))
12155 "0yns7f0q699zn2ziagyas2nkndl7mp1hhssv9x9mpl7jxj2p5myw"))))
12156 (build-system python-build-system)
12157 (home-page "https://github.com/gilch/hissp")
12158 (synopsis "It's Python with a Lissp")
12159 (description "Hissp is a modular Lisp implementation that compiles to a
12160 functional subset of Python—Syntactic macro metaprogramming with full access
12161 to the Python ecosystem.")
12162 (license license:asl2.0)))
12164 (define-public python2-functools32
12166 (name "python2-functools32")
12167 (version "3.2.3-2")
12171 (uri (pypi-uri "functools32" version))
12174 "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn"))))
12175 (build-system python-build-system)
12177 `(#:python ,python-2
12178 #:tests? #f)) ; no test target
12179 (home-page "https://github.com/MiCHiLU/python-functools32")
12181 "Backport of the functools module from Python 3.2.3")
12183 "This package is a backport of the @code{functools} module from Python
12184 3.2.3 for use with older versions of Python and PyPy.")
12185 (license license:expat)))
12187 (define-public python2-subprocess32
12189 (name "python2-subprocess32")
12193 (uri (pypi-uri "subprocess32" version))
12196 "14350dhhlhyz5gqzi3lihn9m6lvskx5mcb20srx1kgsk9i50li8y"))
12198 (search-patches "python2-subprocess32-disable-input-test.patch"))))
12199 (build-system python-build-system)
12201 `(#:python ,python-2
12202 ;; The test suite fails with Python > 2.7.13:
12203 ;; import test.support
12204 ;; ImportError: No module named support
12207 (modify-phases %standard-phases
12208 (add-after 'unpack 'patch-/bin/sh
12210 (substitute* '("subprocess32.py"
12211 "test_subprocess32.py")
12212 (("/bin/sh") (which "sh")))
12214 (home-page "https://github.com/google/python-subprocess32")
12215 (synopsis "Backport of the subprocess module from Python 3.2")
12217 "This is a backport of the @code{subprocess} standard library module
12218 from Python 3.2 and 3.3 for use on Python 2. It includes bugfixes and some
12219 new features. On POSIX systems it is guaranteed to be reliable when used
12220 in threaded applications. It includes timeout support from Python 3.3 but
12221 otherwise matches 3.2’s API.")
12222 (license license:psfl)))
12224 (define-public python2-futures
12226 (name "python2-futures")
12231 (uri (pypi-uri "futures" version))
12234 "0rdjmmsab550kxsssdq49jcniz77zlkpw4pvi9hvib3lsskjmh4y"))))
12235 (build-system python-build-system)
12237 `(#:python ,python-2
12239 (modify-phases %standard-phases
12242 (invoke "python" "test_futures.py")
12244 (home-page "https://github.com/agronholm/pythonfutures")
12246 "Backport of the concurrent.futures package from Python 3.2")
12248 "The concurrent.futures module provides a high-level interface for
12249 asynchronously executing callables. This package backports the
12250 concurrent.futures package from Python 3.2")
12251 (license license:bsd-3)))
12253 (define-public python-promise
12255 (name "python-promise")
12260 (uri (pypi-uri "promise" version))
12263 "1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
12264 (build-system python-build-system)
12265 ;; Tests wants python-futures, which is a python2 only program, and
12266 ;; can't be found by python-promise at test time.
12267 (arguments `(#:tests? #f))
12268 (home-page "https://github.com/syrusakbary/promise")
12269 (synopsis "Promises/A+ implementation for Python")
12271 "Promises/A+ implementation for Python")
12272 (properties `((python2-variant . ,(delay python2-promise))))
12273 (license license:expat)))
12275 (define-public python2-promise
12276 (let ((promise (package-with-python2
12277 (strip-python2-variant python-promise))))
12278 (package/inherit promise
12279 (arguments (substitute-keyword-arguments (package-arguments promise)
12280 ((#:tests? _) #t)))
12282 `(("python2-futures" ,python2-futures)
12283 ("python2-pytest" ,python2-pytest)
12284 ,@(package-native-inputs promise))))))
12286 (define-public python-progressbar2
12288 (name "python-progressbar2")
12293 (uri (pypi-uri "progressbar2" version))
12296 "0b2v3mim90rmfvixkaniz2qrs650sk230rzgd5zhcjfldmlqgxpc"))))
12297 (build-system python-build-system)
12299 `(("python-six" ,python-six)
12300 ("python-utils" ,python-utils)))
12302 `(("python-flake8" ,python-flake8)
12303 ("python-freezegun" ,python-freezegun)
12304 ("python-pycodestyle" ,python-pycodestyle)
12305 ("python-pytest" ,python-pytest)
12306 ("python-pytest-cache" ,python-pytest-cache)
12307 ("python-pytest-cov" ,python-pytest-cov)
12308 ("python-pytest-flakes" ,python-pytest-flakes)
12309 ("python-pytest-pep8" ,python-pytest-pep8)
12310 ("python-sphinx" ,python-sphinx)))
12311 (home-page "https://github.com/WoLpH/python-progressbar")
12312 (synopsis "Text progress bar library for Python")
12314 "This package provides a Python progressbar library to provide
12315 visual (yet text based) progress to long running operations.")
12316 (license license:bsd-3)))
12318 (define-public python-progressbar33
12320 (name "python-progressbar33")
12325 (uri (pypi-uri "progressbar33" version))
12328 "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji"))))
12329 (build-system python-build-system)
12330 (home-page "https://github.com/germangh/python-progressbar")
12331 (synopsis "Text progress bar library for Python")
12333 "This package provides a text progress bar library for Python. This
12334 version only differs from the original @code{progressbar} package in that it
12335 uses relative package imports instead of absolute imports, which is necessary
12336 for the module to work under Python 3.3.")
12337 ;; Either or both of these licenses may be selected.
12338 (license (list license:lgpl2.1+ license:bsd-3))))
12340 (define-public python-colorama
12342 (name "python-colorama")
12347 (uri (pypi-uri "colorama" version))
12349 (base32 "16w62sm95hmh55rqxn4zwdz0bkh3fqm1qnz9cwi3s510iasb4har"))))
12350 (build-system python-build-system)
12351 (synopsis "Colored terminal text rendering for Python")
12352 (description "Colorama is a Python library for rendering colored terminal
12354 (home-page "https://pypi.org/project/colorama/")
12355 (license license:bsd-3)))
12357 (define-public python2-colorama
12358 (package-with-python2 python-colorama))
12360 (define-public python-moto
12362 (name "python-moto")
12363 ;; XXX: Use a pre-release for compatibility with latest botocore & friends.
12364 (version "1.3.16.dev134")
12367 (uri (pypi-uri "moto" version))
12370 "1pix0c7zszjwzfy88n1rpih9vkdm25nqcvz93z850xvgwb4v81bd"))))
12371 (build-system python-build-system)
12373 `(#:phases (modify-phases %standard-phases
12374 (add-after 'unpack 'patch-hardcoded-executable-names
12376 (substitute* "moto/batch/models.py"
12379 (substitute* (find-files "tests" "\\.py$")
12381 (string-append "#!" (which "bash"))))
12385 (setenv "PYTHONPATH" (string-append "./build/lib:"
12386 (getenv "PYTHONPATH")))
12387 (invoke "pytest" "-vv" "-m" "not network"
12388 ;; These tests require Docker.
12389 "-k" "not test_terminate_job \
12390 and not test_invoke_function_from_sqs_exception"))))))
12392 `(("python-flask" ,python-flask)
12393 ("python-flask-cors" ,python-flask-cors)
12394 ("python-freezegun" ,python-freezegun)
12395 ("python-parameterized" ,python-parameterized)
12396 ("python-pytest" ,python-pytest)
12397 ("python-sure" ,python-sure)))
12399 `(("python-aws-xray-sdk" ,python-aws-xray-sdk)
12400 ("python-boto" ,python-boto)
12401 ("python-boto3" ,python-boto3)
12402 ("python-botocore" ,python-botocore)
12403 ("python-cfn-lint" ,python-cfn-lint)
12404 ("python-cryptography" ,python-cryptography)
12405 ("python-dateutil" ,python-dateutil)
12406 ("python-docker" ,python-docker)
12407 ("python-idna" ,python-idna)
12408 ("python-jinja2" ,python-jinja2)
12409 ("python-jose" ,python-jose)
12410 ("python-jsondiff" ,python-jsondiff)
12411 ("python-mock" ,python-mock)
12412 ("python-pytz" ,python-pytz)
12413 ("python-pyyaml" ,python-pyyaml)
12414 ("python-requests" ,python-requests)
12415 ("python-responses" ,python-responses)
12416 ("python-six" ,python-six)
12417 ("python-sshpubkeys" ,python-sshpubkeys)
12418 ("python-werkzeug" ,python-werkzeug)
12419 ("python-xmltodict" ,python-xmltodict)))
12420 (home-page "https://github.com/spulec/moto")
12421 (synopsis "Mock out the boto library")
12423 "@code{moto} is a library designed to easily mock out the
12424 @code{boto} library.")
12425 (license license:asl2.0)))
12427 (define-public python-rsa
12429 (name "python-rsa")
12434 (uri (pypi-uri "rsa" version))
12437 "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
12438 (build-system python-build-system)
12440 `(("python-pyasn1" ,python-pyasn1)))
12441 (synopsis "Pure-Python RSA implementation")
12442 (description "Python-RSA is a pure-Python RSA implementation. It supports
12443 encryption and decryption, signing and verifying signatures, and key
12444 generation according to PKCS#1 version 1.5. It can be used as a Python
12445 library as well as on the command line.")
12446 (home-page "https://stuvel.eu/rsa")
12447 (license license:asl2.0)))
12449 (define-public python2-rsa
12450 (package-with-python2 python-rsa))
12452 (define-public python-pluggy
12454 (name "python-pluggy")
12459 (uri (pypi-uri "pluggy" version))
12462 "1c35qyhvy27q9ih9n899f3h4sdnpgq027dbiilly2qb5cvgarchm"))))
12463 (build-system python-build-system)
12465 `(("python-setuptools-scm" ,python-setuptools-scm)))
12466 (synopsis "Plugin and hook calling mechanism for Python")
12467 (description "Pluggy is an extraction of the plugin manager as used by
12468 Pytest but stripped of Pytest specific details.")
12469 (home-page "https://pypi.org/project/pluggy/")
12470 (properties `((python2-variant . ,(delay python2-pluggy))))
12471 (license license:expat)))
12473 (define-public python2-pluggy
12474 (let ((base (package-with-python2 (strip-python2-variant
12479 `(("python-importlib-metadata" ,python2-importlib-metadata))))))
12481 ;; This package requires python2-importlib-metadata, but that package
12482 ;; ends up needing python2-pluggy via python2-pytest, so we need this
12483 ;; variant to solve the circular dependency.
12484 (define-public python2-pluggy-bootstrap
12488 (name "python2-pluggy-bootstrap")
12491 ,@(package-arguments python2-pluggy)))
12493 `(("python-importlib-metadata" ,python2-importlib-metadata-bootstrap))))))
12495 (define-public python-plumbum
12497 (name "python-plumbum")
12502 (uri (pypi-uri "plumbum" version))
12504 (base32 "1kidj821k79dw064rlxh84xamb9h79ychg3pgj81jlvm5hs48xri"))))
12505 (build-system python-build-system)
12507 `(#:tests? #f)) ;no tests
12509 ;; XXX: Not actually used since there are no tests but required for
12511 `(("python-pytest" ,python-pytest)))
12512 (home-page "https://plumbum.readthedocs.io")
12513 (synopsis "Python shell combinators library")
12515 "Plumbum is a library of tools for replacing shell scripts with Python
12517 (license license:expat)))
12519 (define-public python-deprecation
12521 (name "python-deprecation")
12526 (uri (pypi-uri "deprecation" version))
12529 "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
12530 (build-system python-build-system)
12532 `(("python-packaging" ,python-packaging)))
12534 `(("python-unittest2" ,python-unittest2)))
12535 (home-page "https://deprecation.readthedocs.io/")
12536 (synopsis "Python library to handle automated deprecations")
12538 "This is a library that enables automated deprecations. It offers the
12539 @code{deprecated()} decorator to wrap functions, providing proper warnings
12540 both in documentation and via Python’s warnings system, as well as the
12541 @code{deprecation.fail_if_not_removed()} decorator for test methods to ensure
12542 that deprecated code is eventually removed.")
12543 (license license:asl2.0)))
12545 (define-public python-tox
12547 (name "python-tox")
12552 (uri (pypi-uri "tox" version))
12555 "0nk0nyzhzamcrvn0qqzzy54isxxqwdi28swml7a2ym78c3f9sqpb"))))
12556 (build-system python-build-system)
12558 ;; FIXME: Tests require pytest-timeout, which itself requires
12559 ;; pytest>=2.8.0 for installation.
12562 `(("python-filelock" ,python-filelock)
12563 ("python-packaging" ,python-packaging)
12564 ("python-pluggy" ,python-pluggy)
12565 ("python-py" ,python-py)
12566 ("python-six" ,python-six)
12567 ("python-toml" ,python-toml)
12568 ("python-virtualenv" ,python-virtualenv)))
12570 `(; FIXME: Missing: ("python-pytest-timeout" ,python-pytest-timeout)
12571 ("python-pytest" ,python-pytest) ; >= 2.3.5
12572 ("python-setuptools-scm" ,python-setuptools-scm)))
12573 (home-page "https://tox.readthedocs.io")
12574 (synopsis "Virtualenv-based automation of test activities")
12575 (description "Tox is a generic virtualenv management and test command line
12576 tool. It can be used to check that a package installs correctly with
12577 different Python versions and interpreters, or run tests in each type of
12578 supported environment, or act as a frontend to continuous integration
12580 (license license:expat)))
12582 (define-public python-jmespath
12584 (name "python-jmespath")
12589 (uri (pypi-uri "jmespath" version))
12592 "0k0765x1mybcrzajh3hiqkl8sy9hs0bmn4900frxy0j3ykvaxqmx"))))
12593 (build-system python-build-system)
12595 `(("python-nose" ,python-nose)))
12596 (synopsis "JSON Matching Expressions")
12597 (description "JMESPath (pronounced “james path”) is a Python library that
12598 allows one to declaratively specify how to extract elements from a JSON
12600 (home-page "https://github.com/jmespath/jmespath.py")
12601 (license license:expat)))
12603 (define-public python2-jmespath
12604 (package-with-python2 python-jmespath))
12606 (define-public python-symengine
12608 (name "python-symengine")
12613 (uri (pypi-uri "symengine" version))
12615 (base32 "1kn1w4dp9mrsq6kzmhf4pjmx3wicxc3dw1mwa924q8g48g77lr4c"))))
12616 (build-system python-build-system)
12619 ("python-cython" ,python-cython)))
12621 `(("symengine" ,symengine)))
12622 (home-page "https://github.com/symengine/symengine.py")
12623 (synopsis "Python library providing wrappers to SymEngine")
12625 "This library provides a Python wrapper to SymEngine, a fast C++ symbolic
12626 manipulation library.")
12627 (license license:expat)))
12629 (define-public python-uncertainties
12631 (name "python-uncertainties")
12636 (uri (pypi-uri "uncertainties" version))
12639 "00z9xl40czmqk0vmxjvmjvwb41r893l4dad7nj1nh6blw3kw28li"))))
12640 (build-system python-build-system)
12641 ;; While there are test files, there is no "tests" directory, so the tests
12643 (arguments '(#:tests? #false))
12645 `(("python-future" ,python-future)))
12647 `(("python-nose" ,python-nose)
12648 ("python-numpy" ,python-numpy)))
12649 (home-page "https://uncertainties-python-package.readthedocs.io/")
12650 (synopsis "Calculations with uncertainties")
12652 "The uncertainties package transparently handles calculations with
12653 numbers with uncertainties. It can also yield the derivatives of any
12655 (license license:bsd-3)))
12657 (define-public python-asteval
12659 (name "python-asteval")
12664 (uri (pypi-uri "asteval" version))
12667 "0f54sd4w1a72ij1bcxs2x7dk9xf8bzclawijf1z18bqx9f96l2gm"))))
12668 (build-system python-build-system)
12670 `(("python-pytest" ,python-pytest)))
12671 (home-page "https://github.com/newville/asteval")
12672 (synopsis "Minimalistic evaluator of Python expressions")
12674 "This package provides a minimalistic evaluator of Python expression
12675 using the @code{ast} module")
12676 (license license:expat)))
12678 (define-public python-lmfit
12680 (name "python-lmfit")
12685 (uri (pypi-uri "lmfit" version))
12688 "0iab33jjb60f8kn0k0cqb0vjp1mdskks2n3kpn97zkw5cvjhq2b7"))))
12689 (build-system python-build-system)
12691 `(("python-asteval" ,python-asteval)
12692 ("python-numpy" ,python-numpy)
12693 ("python-scipy" ,python-scipy)
12694 ("python-uncertainties" ,python-uncertainties)))
12696 `(("python-pytest" ,python-pytest)))
12697 (home-page "https://lmfit.github.io/lmfit-py/")
12698 (synopsis "Least-Squares minimization with bounds and constraints")
12700 "Lmfit provides a high-level interface to non-linear optimization and
12701 curve fitting problems for Python. It builds on and extends many of the
12702 optimization methods of @code{scipy.optimize}. Initially inspired by (and
12703 named for) extending the Levenberg-Marquardt method from
12704 @code{scipy.optimize.leastsq}, lmfit now provides a number of useful
12705 enhancements to optimization and data fitting problems.")
12706 (license license:bsd-3)))
12708 (define-public python-boto
12710 (name "python-boto")
12714 (uri (pypi-uri "boto" version))
12717 "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
12718 (build-system python-build-system)
12720 ;; XXX: This package is unmaintained and has problems with newer versions
12721 ;; of Python 3 as well as test libraries. 'python-moto' still uses a
12722 ;; subset of this library, so keep it around for now, but disable tests.
12725 `(("python-paramiko" ,python-paramiko)
12726 ("python-requests" ,python-requests)))
12727 (home-page "https://github.com/boto/boto")
12728 (synopsis "Python interfaces for Amazon Web Services")
12730 "This package provides various facilities for interacting with Amazon
12731 Web Services through Python.
12733 This software is unmaintained, and new projects should use @code{boto3} instead.")
12734 (license license:expat)))
12736 (define-public python-botocore
12737 ;; Note: When updating botocore, also make sure that boto3 and awscli
12740 (name "python-botocore")
12741 (version "1.19.22")
12745 (uri (pypi-uri "botocore" version))
12748 "0iim86x7c6hqmvd61ygz6x6x9glnsfbnyzv2y67qjdcdx8jpkmw7"))))
12749 (build-system python-build-system)
12751 ;; FIXME: Many tests are failing.
12754 `(("python-dateutil" ,python-dateutil)
12755 ("python-jmespath" ,python-jmespath)
12756 ("python-urllib3" ,python-urllib3)))
12757 (home-page "https://github.com/boto/botocore")
12758 (synopsis "Low-level interface to AWS")
12759 (description "Botocore is a Python library that provides a low-level
12760 interface to the Amazon Web Services (AWS) API.")
12761 (license license:asl2.0)))
12763 (define-public python2-botocore
12764 (package-with-python2 python-botocore))
12766 (define-public python-boto3
12768 (name "python-boto3")
12769 (version "1.16.22")
12770 (home-page "https://github.com/boto/boto3")
12773 (uri (git-reference (url home-page) (commit version)))
12774 (file-name (git-file-name name version))
12777 "0h20hgl4yfl58g75qhb6ibrdmzn47md3srgar7hask14cjmfhfy3"))))
12780 (modify-phases %standard-phases
12781 (add-after 'unpack 'delete-network-tests
12782 ;; Deleting integration tests because they are trying to connect to AWS.
12784 (delete-file-recursively "tests/integration")
12786 (build-system python-build-system)
12788 `(("python-nose" ,python-nose)
12789 ("python-mock" ,python-mock)))
12791 `(("python-botocore" ,python-botocore)
12792 ("python-jmespath" ,python-jmespath)
12793 ("python-s3transfer" ,python-s3transfer)))
12794 (synopsis "AWS SDK for Python")
12796 "Boto3 is a Python library for writing programs that interact with
12797 @acronym{AWS,Amazon Web Services}.")
12798 (license license:asl2.0)))
12800 (define-public python-pyfiglet
12802 (name "python-pyfiglet")
12803 (version "0.8.post1")
12807 (uri (pypi-uri "pyfiglet" version))
12810 "0f9n2076ga2ccsg174k2d7n0z4d44ml96yzc72s6g4nhalbk5hn6"))))
12811 (build-system python-build-system)
12812 (home-page "https://github.com/pwaller/pyfiglet")
12813 (synopsis "Draw ASCII art big letters in Python")
12814 (description "This module lets you draw large letter from ordinary characters
12816 (license license:expat)))
12818 (define-public python-xdo
12820 (name "python-xdo")
12824 (uri (string-append
12825 "http://http.debian.net/debian/pool/main/p/python-xdo/"
12826 "python-xdo_" version ".orig.tar.gz"))
12829 "1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
12830 (build-system python-build-system)
12833 (modify-phases %standard-phases
12834 (add-before 'install 'patch-libxdo-path
12835 ;; Hardcode the path of dynamically loaded libxdo library.
12836 (lambda* (#:key inputs #:allow-other-keys)
12837 (let ((libxdo (string-append
12838 (assoc-ref inputs "xdotool")
12839 "/lib/libxdo.so")))
12840 (substitute* "xdo/_xdo.py"
12841 (("find_library\\(\"xdo\"\\)")
12842 (simple-format #f "\"~a\"" libxdo)))
12844 #:tests? #f)) ; no tests provided
12846 `(("python-six" ,python-six)))
12848 `(("xdotool" ,xdotool)
12849 ("libX11" ,libx11)))
12850 (home-page "https://tracker.debian.org/pkg/python-xdo")
12851 (synopsis "Python library for simulating X11 keyboard/mouse input")
12852 (description "Provides bindings to libxdo for manipulating X11 via simulated
12853 input. (Note that this is mostly a legacy library; you may wish to look at
12854 python-xdo for newer bindings.)")
12855 (license license:bsd-3)))
12857 (define-public python2-xdo
12858 (package-with-python2 python-xdo))
12860 (define-public python-mako
12862 (name "python-mako")
12867 (uri (pypi-uri "Mako" version))
12870 "09ywrmhr6gdyfx6d5727wwjnz73i6rklqcb4c14m7sqc830wi5c1"))))
12871 (build-system python-build-system)
12873 `(#:phases (modify-phases %standard-phases
12875 (lambda* (#:key tests? #:allow-other-keys)
12877 (invoke "nosetests" "-v")
12878 (format #t "test suite not run~%"))
12881 `(("python-markupsafe" ,python-markupsafe)))
12883 `(("python-mock" ,python-mock)
12884 ("python-nose" ,python-nose)))
12885 (home-page "https://www.makotemplates.org/")
12886 (synopsis "Templating language for Python")
12887 (description "Mako is a templating language for Python that compiles
12888 templates into Python modules.")
12889 (license license:expat)))
12891 (define-public python2-mako
12892 (package-with-python2 python-mako))
12894 (define-public python-waitress
12896 (name "python-waitress")
12901 (uri (pypi-uri "waitress" version))
12902 (patches (search-patches "python-waitress-fix-tests.patch"))
12905 "1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
12906 (build-system python-build-system)
12907 (home-page "https://github.com/Pylons/waitress")
12908 (synopsis "Waitress WSGI server")
12909 (description "Waitress is meant to be a production-quality pure-Python WSGI
12910 server with very acceptable performance.")
12911 (license license:zpl2.1)))
12913 (define-public python2-waitress
12914 (package-with-python2 python-waitress))
12916 (define-public python-whichcraft
12918 (name "python-whichcraft")
12923 (uri (pypi-uri "whichcraft" version))
12926 "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
12927 (build-system python-build-system)
12929 `(("python-pytest" ,python-pytest)))
12930 (home-page "https://github.com/pydanny/whichcraft")
12931 (synopsis "Cross-platform cross-python shutil.which functionality")
12933 "This package provides a shim of the shutil.which function that's
12934 designed to work across multiple versions of Python.")
12935 (license license:bsd-3)))
12937 (define-public python-cookiecutter
12939 (name "python-cookiecutter")
12944 (uri (pypi-uri "cookiecutter" version))
12946 (base32 "0mx49whhwcxmvcak27zr7p7ndzkn3w7psfd7fzh3n91fi1r4v6kb"))))
12947 (build-system python-build-system)
12949 `(("python-freezegun" ,python-freezegun)
12950 ("python-pytest" ,python-pytest)
12951 ("python-pytest-catchlog" ,python-pytest-catchlog)
12952 ("python-pytest-cov" ,python-pytest-cov)
12953 ("python-pytest-mock" ,python-pytest-mock)))
12955 `(("python-binaryornot" ,python-binaryornot)
12956 ("python-click" ,python-click)
12957 ("python-future" ,python-future)
12958 ("python-jinja2" ,python-jinja2)
12959 ("python-jinja2-time" ,python-jinja2-time)
12960 ("python-poyo" ,python-poyo)
12961 ("python-requests" ,python-requests)
12962 ("python-slugify" ,python-slugify)
12963 ("python-text-unidecode" ,python-text-unidecode)
12964 ("python-whichcraft" ,python-whichcraft)))
12965 (home-page "https://github.com/cookiecutter/cookiecutter")
12967 "Command-line utility that creates projects from project templates")
12969 "This package provides a command-line utility that creates projects from
12970 project templates, e.g. creating a Python package project from a Python package
12971 project template.")
12972 (license license:bsd-3)))
12974 (define-public python-pyquery
12976 (name "python-pyquery")
12981 (uri (pypi-uri "pyquery" version))
12984 "1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
12985 (build-system python-build-system)
12987 `(("python-webob" ,python-webob)
12988 ("python-webtest" ,python-webtest)))
12990 `(("python-lxml" ,python-lxml)
12991 ("python-cssselect" ,python-cssselect)))
12992 (home-page "https://github.com/gawel/pyquery")
12993 (synopsis "Make jQuery-like queries on xml documents")
12994 (description "pyquery allows you to make jQuery queries on xml documents.
12995 The API is as much as possible the similar to jQuery. pyquery uses lxml for
12996 fast xml and html manipulation.")
12997 (license license:bsd-3)))
12999 (define-public python-anyjson
13001 (name "python-anyjson")
13006 (uri (pypi-uri "anyjson" version))
13009 "1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
13010 (build-system python-build-system)
13012 `(;; We could possibly get tests working, but on Python 3 it's not so easy.
13013 ;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
13014 ;; whatever) so this transformation needs to be done before the tests
13015 ;; can be run. Maybe we could add a build step to transform beforehand
13016 ;; but it could be annoying/difficult.
13017 ;; We can enable tests for the Python 2 version, though, and do below.
13019 (home-page "https://bitbucket.org/runeh/anyjson/")
13021 "Wraps best available JSON implementation in a common interface")
13023 "Anyjson loads whichever is the fastest JSON module installed
13024 and provides a uniform API regardless of which JSON implementation is used.")
13025 (license license:bsd-3)
13026 (properties `((python2-variant . ,(delay python2-anyjson))))))
13028 (define-public python2-anyjson
13029 (let ((anyjson (package-with-python2
13030 (strip-python2-variant python-anyjson))))
13031 (package/inherit anyjson
13032 (arguments `(;; Unlike the python 3 variant, we do run tests. See above!
13034 ,@(package-arguments anyjson)))
13035 (native-inputs `(("python2-nose" ,python2-nose))))))
13037 (define-public python-amqp
13039 (name "python-amqp")
13044 (uri (pypi-uri "amqp" version))
13047 "1sv600dgqwpimr6i1g59y9hpn50mc236gdqkr7zin13kvlpx0g87"))))
13048 (build-system python-build-system)
13050 `(("python-case" ,python-case)
13051 ("python-pytest-sugar" ,python-pytest-sugar)
13052 ("python-mock" ,python-mock)))
13054 `(("python-vine" ,python-vine)))
13055 (home-page "https://github.com/celery/py-amqp")
13057 "Low-level AMQP client for Python (fork of amqplib)")
13059 "This is a fork of amqplib which was originally written by Barry Pederson.
13060 It is maintained by the Celery project, and used by kombu as a pure python
13061 alternative when librabbitmq is not available.")
13062 (license license:lgpl2.1+)
13063 (properties `((python2-variant . ,(delay python2-amqp))))))
13065 (define-public python2-amqp
13066 (let ((amqp (package-with-python2
13067 (strip-python2-variant python-amqp))))
13068 (package/inherit amqp
13069 (arguments `(;; Tries to run coverage tests with nose-cover3, which seems
13070 ;; unmaintained. Weirdly, does not do this on the python 3
13073 ,@(package-arguments amqp))))))
13075 (define-public python-txamqp
13077 (name "python-txamqp")
13082 (uri (pypi-uri "txAMQP" version))
13085 "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4"))))
13086 (build-system python-build-system)
13088 `(("python-six" ,python-six)
13089 ("python-twisted" ,python-twisted)))
13090 (home-page "https://github.com/txamqp/txamqp")
13091 (synopsis "Communicate with AMQP peers and brokers using Twisted")
13093 "This package provides a Python library for communicating with AMQP peers
13094 and brokers using the asynchronous networking framework Twisted. It contains
13095 all the necessary code to connect, send and receive messages to/from an
13096 AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
13097 also includes support for using Thrift RPC over AMQP in Twisted
13099 (license license:asl2.0)))
13101 (define-public python2-txamqp
13102 (package-with-python2 python-txamqp))
13104 (define-public python-kombu
13106 (name "python-kombu")
13111 (uri (pypi-uri "kombu" version))
13114 "15k8f7mzqr049sg9vi48m19vjykviafk3f0p5xzgw9by0x0kyxjj"))))
13115 (build-system python-build-system)
13117 `(("python-mock" ,python-mock)
13118 ("python-case" ,python-case)
13119 ("python-pyro4" ,python-pyro4)
13120 ("python-pytest-sugar" ,python-pytest-sugar)
13121 ("python-pytz" ,python-pytz)))
13123 `(("python-anyjson" ,python-anyjson)
13124 ("python-amqp" ,python-amqp)
13125 ("python-redis" ,python-redis)))
13126 (home-page "https://kombu.readthedocs.io")
13127 (synopsis "Message passing library for Python")
13128 (description "The aim of Kombu is to make messaging in Python as easy as
13129 possible by providing an idiomatic high-level interface for the AMQ protocol,
13130 and also provide proven and tested solutions to common messaging problems.
13131 AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
13132 message orientation, queuing, routing, reliability and security, for which the
13133 RabbitMQ messaging server is the most popular implementation.")
13134 (license license:bsd-3)
13135 (properties `((python2-variant . ,(delay python2-kombu))))))
13137 (define-public python2-kombu
13138 (let ((kombu (package-with-python2
13139 (strip-python2-variant python-kombu))))
13140 (package/inherit kombu
13141 (arguments `(;; FIXME: 'TestTransport.test_del_sync' fails on python2.
13142 ;; It works fine on the python3 variant.
13144 ,@(package-arguments kombu)))
13145 (native-inputs `(("python2-unittest2" ,python2-unittest2)
13146 ,@(package-native-inputs kombu))))))
13148 (define-public python-billiard
13150 (name "python-billiard")
13151 (version "3.5.0.5")
13155 (uri (pypi-uri "billiard" version))
13158 "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2"))))
13159 (build-system python-build-system)
13161 `(("python-case" ,python-case)
13162 ("python-pytest" ,python-pytest)))
13163 (home-page "https://github.com/celery/billiard")
13165 "Python multiprocessing fork with improvements and bugfixes")
13167 "Billiard is a fork of the Python 2.7 multiprocessing package. The
13168 multiprocessing package itself is a renamed and updated version of R Oudkerk's
13169 pyprocessing package. This standalone variant is intended to be compatible with
13170 Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
13171 (license license:bsd-3)
13172 (properties `((python2-variant . ,(delay python2-billiard))))))
13174 (define-public python2-billiard
13175 (let ((billiard (package-with-python2
13176 (strip-python2-variant python-billiard))))
13177 (package/inherit billiard
13178 (native-inputs `(("python2-unittest2" ,python2-unittest2)
13179 ("python2-mock" ,python2-mock)
13180 ,@(package-native-inputs billiard))))))
13182 (define-public python-celery
13184 (name "python-celery")
13189 (uri (pypi-uri "celery" version))
13192 "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp"))))
13193 (build-system python-build-system)
13195 '(;; TODO The tests fail with Python 3.7
13196 ;; https://github.com/celery/celery/issues/4849
13199 (modify-phases %standard-phases
13200 (add-after 'unpack 'patch-requirements
13202 (substitute* "requirements/test.txt"
13203 (("pytest>=3\\.0,<3\\.3")
13207 `(("python-case" ,python-case)
13208 ("python-pytest" ,python-pytest)))
13210 `(("python-pytz" ,python-pytz)
13211 ("python-billiard" ,python-billiard)
13212 ("python-kombu" ,python-kombu)))
13213 (home-page "https://celeryproject.org")
13214 (synopsis "Distributed Task Queue")
13215 (description "Celery is an asynchronous task queue/job queue based on
13216 distributed message passing. It is focused on real-time operation, but
13217 supports scheduling as well. The execution units, called tasks, are executed
13218 concurrently on a single or more worker servers using multiprocessing,
13219 Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
13220 synchronously (wait until ready).")
13221 (license license:bsd-3)
13222 (properties `((python2-variant . ,(delay python2-celery))))))
13224 (define-public python2-celery
13225 (let ((celery (package-with-python2
13226 (strip-python2-variant python-celery))))
13227 (package/inherit celery
13228 (native-inputs `(("python2-unittest2" ,python2-unittest2)
13229 ("python2-mock" ,python2-mock)
13230 ,@(package-native-inputs celery))))))
13232 (define-public python-translitcodec
13234 (name "python-translitcodec")
13239 (uri (pypi-uri "translitcodec" version))
13242 "10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
13243 (build-system python-build-system)
13245 `(#:tests? #f)) ; no tests provided
13247 "https://github.com/claudep/translitcodec")
13249 "Unicode to 8-bit charset transliteration codec")
13251 "This package contains codecs for transliterating ISO 10646 texts into
13252 best-effort representations using smaller coded character sets (ASCII,
13254 (license license:expat)))
13256 (define-public python2-translitcodec
13257 (package-with-python2 python-translitcodec))
13259 (define-public python-anyqt
13261 (name "python-anyqt")
13266 (uri (pypi-uri "AnyQt" version))
13268 (base32 "0gl2czirzjvhbq963i2awxp8kwbc1grh67lpcwfipyn9w3kdwdj4"))))
13269 (build-system python-build-system)
13271 `(#:tests? #f ;there are no tests
13273 (modify-phases %standard-phases
13274 (add-after 'unpack 'delete-files
13275 ;; Delete files related to other operating systems.
13277 (delete-file "AnyQt/QtMacExtras.py")
13278 (delete-file "AnyQt/QtWinExtras.py")
13280 (home-page "https://github.com/ales-erjavec/anyqt")
13281 (synopsis "PyQt4/PyQt5 compatibility layer")
13282 (description "AnyQt is a PyQt4/PyQt5 compatibility layer.")
13283 (license license:gpl3)))
13285 (define-public python-pyqtgraph
13287 (name "python-pyqtgraph")
13292 (uri (pypi-uri "pyqtgraph" version))
13294 (base32 "0kc7ncv0lr3spni29i9g8nszyr4xinswqi2zzs6v8kqqi593pvyj"))))
13295 (build-system python-build-system)
13298 (modify-phases %standard-phases
13299 (add-before 'check 'set-home-and-qpa
13301 (setenv "HOME" "/tmp")
13302 (setenv "QT_QPA_PLATFORM" "offscreen")
13305 (lambda* (#:key inputs outputs #:allow-other-keys)
13306 (add-installed-pythonpath inputs outputs)
13307 (invoke "pytest" "-vv" "-k"
13308 ;; These tests try to download online data.
13309 (string-append "not test_PolyLineROI"
13310 " and not test_getArrayRegion_axisorder"
13311 " and not test_getArrayRegion"
13312 " and not test_PlotCurveItem"
13313 " and not test_NonUniformImage_colormap"
13314 " and not test_NonUniformImage_lut"
13315 " and not test_ImageItem_axisorder"
13316 " and not test_ImageItem")))))))
13318 `(("python-pytest" ,python-pytest)
13319 ("python-pytest-cov" ,python-pytest-cov)
13320 ("python-pytest-xdist" ,python-pytest-xdist)))
13322 `(("qtbase" ,qtbase-5)))
13324 `(("python-h5py" ,python-h5py)
13325 ("python-numpy" ,python-numpy)
13326 ("python-pyopengl" ,python-pyopengl)
13327 ("python-scipy" ,python-scipy)
13328 ("python-pyqt" ,python-pyqt)))
13329 (home-page "http://www.pyqtgraph.org")
13330 (synopsis "Scientific graphics and GUI library for Python")
13332 "PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2
13333 and PySide6. It is intended for use in mathematics, scientific or engineering
13335 (license license:expat)))
13337 (define-public python-qasync
13339 (name "python-qasync")
13343 ;; There are no tests in the PyPI tarball.
13345 (uri (git-reference
13346 (url "https://github.com/CabbageDevelopment/qasync/")
13347 (commit (string-append "v" version))))
13348 (file-name (git-file-name name version))
13350 (base32 "0va9h6v102d7mxz608banjc0l0v02dq3ywhr5i4nqaxx3qkazc2l"))))
13351 (build-system python-build-system)
13353 `(#:test-target "pytest"
13355 (modify-phases %standard-phases
13356 (add-before 'check 'set-qpa
13358 (setenv "QT_QPA_PLATFORM" "offscreen")
13361 `(("python-pytest" ,python-pytest)
13362 ("python-pytest-runner" ,python-pytest-runner)))
13364 `(("python-pyqt" ,python-pyqt)))
13365 (home-page "https://github.com/CabbageDevelopment/qasync")
13366 (synopsis "Implementation of the PEP 3156 Event-Loop with Qt")
13368 "@code{qasync} allows coroutines to be used in PyQt/PySide applications
13369 by providing an implementation of the PEP 3156 event-loop.")
13370 (license license:bsd-2)))
13372 (define-public python-editor
13374 (name "python-editor")
13379 (uri (pypi-uri "python-editor" version))
13382 "0yrjh8w72ivqxi4i7xsg5b1vz15x8fg51xra7c3bgfyxqnyadzai"))))
13383 (build-system python-build-system)
13385 '(#:tests? #f)) ;XXX: needs a TTY and an editor
13386 (home-page "https://github.com/fmoo/python-editor")
13387 (synopsis "Programmatically open an editor, capture the result")
13389 "python-editor is a library that provides the editor module for
13390 programmatically interfacing with your system's $EDITOR.")
13391 (license license:asl2.0)))
13393 (define-public python2-editor
13394 (package-with-python2 python-editor))
13396 (define-public python-multiprocessing-logging
13398 (name "python-multiprocessing-logging")
13400 (home-page "https://github.com/jruere/multiprocessing-logging")
13403 (uri (git-reference
13405 (commit (string-append "v" version))))
13406 (file-name (git-file-name name version))
13409 "1625wy3djlr3b2fpd3vi822f8gw6b75mnls5a4318dbi9za5pf0y"))))
13410 (build-system python-build-system)
13411 (synopsis "Manage logs from multiple processes")
13413 "This Python module implements a multiprocessing-aware @code{Handler}
13414 that, when set on the root @code{Logger}, will tunnel log records to the
13415 main process so that they are handled correctly.")
13416 (license license:lgpl3+)))
13418 (define-public python-vobject
13420 (name "python-vobject")
13421 (version "0.9.6.1")
13424 (uri (pypi-uri "vobject" version))
13427 "0081g4gngw28j7vw8101jk600wz4gzfrhf5myrqvn2mrfkn2llcn"))))
13428 (build-system python-build-system)
13430 '(;; The test suite relies on some non-portable Windows interfaces.
13433 `(("python-dateutil" ,python-dateutil)
13434 ("python-pyicu" ,python-pyicu)))
13435 (synopsis "Parse and generate vCard and vCalendar files")
13436 (description "Vobject is intended to be a full featured Python package for
13437 parsing and generating vCard and vCalendar files. Currently, iCalendar files
13438 are supported and well tested. vCard 3.0 files are supported, and all data
13439 should be imported, but only a few components are understood in a sophisticated
13441 (home-page "https://eventable.github.io/vobject/")
13442 (license license:asl2.0)))
13444 (define-public python2-vobject
13445 (package-with-python2 python-vobject))
13447 (define-public python-munkres
13449 (name "python-munkres")
13453 (uri (pypi-uri "munkres" version))
13456 "0mbspx4zv8id4x6pim6ybsa1xh96qwpbqj7skbqz4c9c9nf1lpqq"))))
13457 (build-system python-build-system)
13459 '(#:tests? #f)) ; no test suite
13460 (home-page "https://software.clapper.org/munkres/")
13461 (synopsis "Implementation of the Munkres algorithm")
13462 (description "The Munkres module provides an implementation of the Munkres
13463 algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
13464 useful for solving the Assignment Problem.")
13465 (license license:bsd-3)))
13467 (define-public python2-munkres
13468 (package-with-python2 python-munkres))
13470 (define-public python-whoosh
13472 (name "python-whoosh")
13477 (uri (pypi-uri "Whoosh" version))
13480 "10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
13481 (build-system python-build-system)
13482 (arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
13484 `(("python-pytest" ,python-pytest)))
13485 (home-page "https://bitbucket.org/mchaput/whoosh")
13486 (synopsis "Full text indexing, search, and spell checking library")
13488 "Whoosh is a fast, pure-Python full text indexing, search, and spell
13489 checking library.")
13490 (license license:bsd-2)))
13492 (define-public python2-whoosh
13493 (let ((whoosh (package-with-python2 (strip-python2-variant python-whoosh))))
13494 (package/inherit whoosh
13496 `(("python2-backport-ssl-match-hostname"
13497 ,python2-backport-ssl-match-hostname)
13498 ,@(package-propagated-inputs whoosh))))))
13500 (define-public python-pathlib
13502 (name "python-pathlib")
13506 (uri (pypi-uri "pathlib" version))
13509 "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
13510 (build-system python-build-system)
13511 ;; The tests depend on the internal "test" module, which does not provide
13512 ;; a stable interface.
13513 (arguments `(#:tests? #f))
13514 (home-page "https://pathlib.readthedocs.org/")
13515 (synopsis "Object-oriented file system paths")
13516 (description "Pathlib offers a set of classes to handle file system paths.
13517 It offers the following advantages over using string objects:
13520 @item No more cumbersome use of os and os.path functions. Everything can
13521 be done easily through operators, attribute accesses, and method calls.
13522 @item Embodies the semantics of different path types. For example,
13523 comparing Windows paths ignores casing.
13524 @item Well-defined semantics, eliminating any inconsistencies or
13525 ambiguities (forward vs. backward slashes, etc.).
13528 Note: In Python 3.4, pathlib is now part of the standard library. For other
13529 Python versions please consider python-pathlib2 instead, which tracks the
13530 standard library module. This module (python-pathlib) isn't maintained
13532 (license license:expat)))
13534 (define-public python2-pathlib
13535 (package-with-python2 python-pathlib))
13537 (define-public python2-pathlib2
13539 (name "python2-pathlib2")
13543 (uri (pypi-uri "pathlib2" version))
13546 "0s4qa8c082fdkb17izh4mfgwrjd1n5pya18wvrbwqdvvb5xs9nbc"))))
13547 (build-system python-build-system)
13548 ;; We only need the the Python 2 variant, since for Python 3 our minimum
13549 ;; version is 3.4 which already includes this package as part of the
13550 ;; standard library.
13552 `(#:python ,python-2))
13554 `(("python2-scandir" ,python2-scandir)
13555 ("python2-six" ,python2-six)))
13556 (home-page "https://pypi.org/project/pathlib2/")
13557 (synopsis "Object-oriented file system paths - backport of standard
13559 (description "The goal of pathlib2 is to provide a backport of standard
13560 pathlib module which tracks the standard library module, so all the newest
13561 features of the standard pathlib can be used also on older Python versions.
13563 Pathlib offers a set of classes to handle file system paths. It offers the
13564 following advantages over using string objects:
13567 @item No more cumbersome use of os and os.path functions. Everything can
13568 be done easily through operators, attribute accesses, and method calls.
13569 @item Embodies the semantics of different path types. For example,
13570 comparing Windows paths ignores casing.
13571 @item Well-defined semantics, eliminating any inconsistencies or
13572 ambiguities (forward vs. backward slashes, etc.).
13574 (license license:expat)))
13576 (define-public python2-pathlib2-bootstrap
13579 (inherit python2-pathlib2)
13580 (name "python2-pathlib2-bootstrap")
13582 `(("python2-scandir" ,python2-scandir)
13583 ("python2-six" ,python2-six-bootstrap))))))
13585 (define-public python-jellyfish
13587 (name "python-jellyfish")
13591 (uri (pypi-uri "jellyfish" version))
13594 "1j9rplb16ba2prjj6mip46z0w9pnhnqpwgiwi0x93vnas14rlyl8"))))
13595 (build-system python-build-system)
13597 `(("python-pytest" ,python-pytest)))
13598 (home-page "https://github.com/jamesturk/jellyfish")
13599 (synopsis "Approximate and phonetic matching of strings")
13600 (description "Jellyfish uses a variety of string comparison and phonetic
13601 encoding algorithms to do fuzzy string matching.")
13602 (license license:bsd-2)
13603 (properties `((python2-variant . ,(delay python2-jellyfish))))))
13605 (define-public python2-jellyfish
13606 (let ((jellyfish (package-with-python2
13607 (strip-python2-variant python-jellyfish))))
13608 (package/inherit jellyfish
13609 (native-inputs `(("python2-unicodecsv" ,python2-unicodecsv)
13610 ,@(package-native-inputs jellyfish))))))
13612 (define-public python2-unicodecsv
13614 (name "python2-unicodecsv")
13618 ;; The test suite is not included in the PyPi release.
13619 ;; https://github.com/jdunck/python-unicodecsv/issues/19
13620 (uri (git-reference
13621 (url "https://github.com/jdunck/python-unicodecsv")
13623 (file-name (git-file-name name version))
13626 "15hx2k41a2lpv4hcml9zp4cvlx1171mnb5s4s13xc1pxkq3vgdjy"))))
13627 (build-system python-build-system)
13629 `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
13630 #:python ,python-2))
13632 `(("python2-unittest2" ,python2-unittest2)))
13633 (home-page "https://github.com/jdunck/python-unicodecsv")
13634 (synopsis "Unicode CSV module for Python 2")
13635 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
13636 module, adding support for Unicode strings.")
13637 (license license:bsd-2)))
13639 (define-public python-pdfminer-six
13641 (name "python-pdfminer-six")
13642 (version "20201018")
13643 ;; There are no tests in the PyPI tarball.
13647 (uri (git-reference
13648 (url "https://github.com/pdfminer/pdfminer.six")
13650 (file-name (git-file-name name version))
13652 (base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr"))))
13653 (build-system python-build-system)
13656 (modify-phases %standard-phases
13657 ;; Tests write to the source tree.
13658 (add-after 'unpack 'make-git-checkout-writable
13660 (for-each make-file-writable (find-files "."))
13664 (invoke "make" "test")))
13665 (add-before 'reset-gzip-timestamps 'make-files-writable
13666 (lambda* (#:key outputs #:allow-other-keys)
13667 (let ((out (assoc-ref outputs "out")))
13668 (for-each make-file-writable
13669 (find-files out "\\.gz$"))
13672 `(("python-chardet" ,python-chardet)
13673 ("python-cryptography" ,python-cryptography)
13674 ("python-sortedcontainers" ,python-sortedcontainers)))
13676 `(("python-nose" ,python-nose)
13677 ("python-tox" ,python-tox)))
13678 (home-page "https://github.com/pdfminer/pdfminer.six")
13679 (synopsis "PDF parser and analyzer")
13680 (description "@code{pdfminer.six} is a community maintained fork of
13681 the original PDFMiner. It is a tool for extracting information from PDF
13682 documents. It focuses on getting and analyzing text data. Pdfminer.six
13683 extracts the text from a page directly from the sourcecode of the PDF. It
13684 can also be used to get the exact location, font or color of the text.")
13685 (license license:expat)))
13687 (define-public python-rarfile
13689 (name "python-rarfile")
13693 (uri (pypi-uri "rarfile" version))
13696 "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra"))))
13697 (build-system python-build-system)
13700 (modify-phases %standard-phases
13702 ;; Many tests fail, but the installation proceeds.
13703 (lambda _ (invoke "make" "-C" "test" "test"))))))
13705 `(("which" ,which))) ; required for tests
13707 `(("libarchive" ,libarchive)))
13708 (home-page "https://github.com/markokr/rarfile")
13709 (synopsis "RAR archive reader for Python")
13710 (description "This is Python module for RAR archive reading. The interface
13711 is made as zipfile like as possible.")
13712 (license license:isc)))
13714 (define-public python2-rarfile
13715 (package-with-python2 python-rarfile))
13717 (define-public python-rich
13719 (name "python-rich")
13723 (uri (pypi-uri "rich" version))
13726 "1z5m5brcdf3vndpavcqj5nl35xby4x5rfj48klhwqycfqf3g9cqp"))))
13727 (build-system python-build-system)
13730 (modify-phases %standard-phases
13732 (lambda* (#:key inputs tests? #:allow-other-keys)
13734 (copy-recursively (string-append
13735 (assoc-ref inputs "tests") "/tests")
13737 (invoke "python" "-m" "pytest" "-vv")))))))
13739 `(("python-attrs" ,python-attrs)
13740 ("python-colorama" ,python-colorama)
13741 ("python-commonmark" ,python-commonmark)
13742 ("python-ipywidgets" ,python-ipywidgets)
13743 ("python-pygments" ,python-pygments)
13744 ("python-typing-extensions" ,python-typing-extensions)))
13746 `(("python-pytest" ,python-pytest)
13748 ;; The release on pypi comes without tests. We can't build from this
13749 ;; checkout, though, because installation requires an invocation of
13753 (uri (git-reference
13754 (url "https://github.com/willmcgugan/rich")
13755 (commit (string-append "v" version))))
13756 (file-name (git-file-name name version))
13759 "19f4svb363sn5708qkpa6lakmiwzyb25h8kmh7bqrsbbrvi9hr70"))))))
13760 (home-page "https://github.com/willmcgugan/rich")
13761 (synopsis "Render rich text and more to the terminal")
13763 "This is a Python package for rendering rich text, tables, progress bars,
13764 syntax highlighting, markdown and more to the terminal.")
13765 (license license:expat)))
13767 (define-public python-magic
13769 (name "python-magic")
13774 (uri (pypi-uri "python-magic" version))
13777 "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
13778 (file-name (string-append name "-" version "-checkout"))))
13779 (build-system python-build-system)
13781 ;; The tests are unreliable, so don't run them. The tests fail
13782 ;; under Python3 because they were written for Python2 and
13783 ;; contain import statements that do not work in Python3. One of
13784 ;; the tests fails under Python2 because its assertions are
13785 ;; overly stringent; it relies on comparing output strings which
13786 ;; are brittle and can change depending on the version of
13787 ;; libmagic being used and the system on which the test is
13788 ;; running. In my case, under GuixSD 0.10.0, only one test
13789 ;; failed, and it seems to have failed only because the version
13790 ;; of libmagic that is packaged in Guix outputs a slightly
13791 ;; different (but not wrong) string than the one that the test
13794 #:phases (modify-phases %standard-phases
13795 ;; Replace a specific method call with a hard-coded
13796 ;; path to the necessary libmagic.so file in the
13797 ;; store. If we don't do this, then the method call
13798 ;; will fail to find the libmagic.so file, which in
13799 ;; turn will cause any application using
13800 ;; python-magic to fail.
13801 (add-before 'build 'hard-code-path-to-libmagic
13802 (lambda* (#:key inputs #:allow-other-keys)
13803 (let ((file (assoc-ref inputs "file")))
13804 (substitute* "magic.py"
13805 (("ctypes.util.find_library\\('magic'\\)")
13806 (string-append "'" file "/lib/libmagic.so'")))
13808 (add-before 'install 'disable-egg-compression
13810 (let ((port (open-file "setup.cfg" "a")))
13811 (display "\n[easy_install]\nzip_ok = 0\n"
13816 ;; python-magic needs to be able to find libmagic.so.
13819 "https://github.com/ahupp/python-magic")
13821 "File type identification using libmagic")
13823 "This module uses ctypes to access the libmagic file type
13824 identification library. It makes use of the local magic database and
13825 supports both textual and MIME-type output. Note that this module and
13826 the python-file module both provide a \"magic.py\" file; these two
13827 modules, which are different and were developed separately, both serve
13828 the same purpose: to provide Python bindings for libmagic.")
13829 (license license:expat)))
13831 (define-public python2-magic
13832 (package-with-python2 python-magic))
13834 (define-public python2-s3cmd
13836 (name "python2-s3cmd")
13841 (uri (string-append "mirror://sourceforge/s3tools/s3cmd/" version "/"
13842 "s3cmd-" version ".tar.gz"))
13845 "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6"))))
13846 (build-system python-build-system)
13848 ;; s3cmd is written for python2 only and contains no tests.
13849 `(#:python ,python-2
13852 `(("python2-dateutil" ,python2-dateutil)
13853 ;; The python-file package also provides a magic.py module.
13854 ;; This is an unfortunate state of affairs; however, s3cmd
13855 ;; fails to install if it cannot find specifically the
13856 ;; python-magic package. Thus we include it, instead of using
13857 ;; python-file. Ironically, s3cmd sometimes works better
13858 ;; without libmagic bindings at all:
13859 ;; https://github.com/s3tools/s3cmd/issues/198
13860 ("python2-magic" ,python2-magic)))
13861 (home-page "https://s3tools.org/s3cmd")
13862 (synopsis "Command line tool for S3-compatible storage services")
13864 "S3cmd is a command line tool for uploading, retrieving and managing data
13865 in storage services that are compatible with the Amazon Simple Storage
13866 Service (S3) protocol, including S3 itself. It supports rsync-like backup,
13867 GnuPG encryption, and more. It also supports management of Amazon's
13868 CloudFront content delivery network.")
13869 (license license:gpl2+)))
13871 (define-public python-pkgconfig
13873 (name "python-pkgconfig")
13878 (uri (pypi-uri "pkgconfig" version))
13881 "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb"))))
13882 (build-system python-build-system)
13884 `(("python-nose" ,python-nose)))
13886 `(("pkg-config" ,pkg-config)))
13889 (modify-phases %standard-phases
13890 (add-before 'build 'patch
13891 ;; Hard-code the path to pkg-config.
13893 (substitute* "pkgconfig/pkgconfig.py"
13894 (("cmd = 'pkg-config")
13895 (string-append "cmd = '" (which "pkg-config"))))
13899 (invoke "nosetests" "test.py"))))))
13900 (home-page "https://github.com/matze/pkgconfig")
13901 (synopsis "Python interface for pkg-config")
13902 (description "This module provides a Python interface to pkg-config. It
13903 can be used to find all pkg-config packages, check if a package exists,
13904 check if a package meets certain version requirements, query CFLAGS and
13905 LDFLAGS and parse the output to build extensions with setup.py.")
13906 (license license:expat)))
13908 (define-public python2-pkgconfig
13909 (package-with-python2 python-pkgconfig))
13911 (define-public python-bz2file
13913 (name "python-bz2file")
13918 (uri (pypi-uri "bz2file" version))
13921 "126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
13922 (build-system python-build-system)
13924 `(#:tests? #f)) ; Tests use deprecated python modules.
13925 (home-page "https://github.com/nvawda/bz2file")
13926 (synopsis "Read and write bzip2-compressed files")
13928 "Bz2file is a Python library for reading and writing bzip2-compressed
13929 files. It contains a drop-in replacement for the I/O interface in the
13930 standard library's @code{bz2} module, including features from the latest
13931 development version of CPython that are not available in older releases.")
13932 (license license:asl2.0)))
13934 (define-public python2-bz2file
13935 (package-with-python2 python-bz2file))
13937 (define-public python-future
13939 (name "python-future")
13944 (uri (pypi-uri "future" version))
13947 "1f2rlqn9rh7adgir52dlbqz69gsab44x0mlm8gf1cs7xvhv54137"))))
13948 (build-system python-build-system)
13949 ;; Many tests connect to the network or are otherwise flawed.
13950 ;; https://github.com/PythonCharmers/python-future/issues/210
13953 (home-page "https://python-future.org")
13954 (synopsis "Single-source support for Python 3 and 2")
13956 "@code{python-future} is the missing compatibility layer between Python 2 and
13957 Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
13958 to support both Python 2 and Python 3 with minimal overhead.")
13959 (license license:expat)))
13961 (define-public python2-future
13962 (package-with-python2 python-future))
13964 (define-public python-cysignals
13966 (name "python-cysignals")
13971 (uri (pypi-uri "cysignals" version))
13974 "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
13975 (build-system python-build-system)
13977 `(("python-cython" ,python-cython)
13978 ("python-sphinx" ,python-sphinx)))
13980 `(("pari-gp" ,pari-gp)))
13982 `(#:modules ((guix build python-build-system)
13983 ((guix build gnu-build-system) #:prefix gnu:)
13984 (guix build utils))
13985 ;; FIXME: Tests are executed after installation and currently fail
13986 ;; when not installing into standard locations; the author is working
13990 (modify-phases %standard-phases
13993 (assoc-ref gnu:%standard-phases 'configure)))))
13995 "https://github.com/sagemath/cysignals")
13997 "Handling of interrupts and signals for Cython")
13999 "The cysignals package provides mechanisms to handle interrupts (and
14000 other signals and errors) in Cython code, using two related approaches,
14001 for mixed Cython/Python code or external C libraries and pure Cython code,
14003 (license license:lgpl3+)))
14005 (define-public python2-cysignals
14006 (package-with-python2 python-cysignals))
14008 (define-public python2-shedskin
14010 (name "python2-shedskin")
14015 (uri (string-append "https://github.com/shedskin/shedskin/"
14016 "releases/download/v" version
14017 "/shedskin-" version ".tgz"))
14020 "0nzwrzgw1ga8rw6f0ryq7zr9kkiavd1cqz5hzxkcbicl1dk7kz41"))))
14021 (build-system python-build-system)
14023 `(#:python ,python-2
14024 #:phases (modify-phases %standard-phases
14025 (add-after 'unpack 'fix-resulting-include-libs
14026 (lambda* (#:key inputs #:allow-other-keys)
14027 (let ((libgc (assoc-ref inputs "libgc"))
14028 (pcre (assoc-ref inputs "pcre")))
14029 (substitute* "shedskin/makefile.py"
14030 (("variable == 'CCFLAGS':[ ]*")
14031 (string-append "variable == 'CCFLAGS':\n"
14032 " line += ' -I " pcre "/include"
14033 " -I " libgc "/include'"))
14034 (("variable == 'LFLAGS':[ ]*")
14035 (string-append "variable == 'LFLAGS':\n"
14036 " line += ' -L" pcre "/lib"
14037 " -L " libgc "/lib'")))
14039 (inputs `(("pcre" ,pcre)
14041 (home-page "https://shedskin.github.io/")
14042 (synopsis "Experimental Python-2 to C++ Compiler")
14043 (description (string-append "This is an experimental compiler for a subset of
14044 Python. It generates C++ code and a Makefile."))
14045 (license (list license:gpl3 license:bsd-3 license:expat))))
14047 (define-public python2-rope
14049 (name "python2-rope")
14054 (uri (pypi-uri "rope" version))
14057 "1cppm0pa9aqgsbkq130lskrzmrvjs5vpiavjjbhpz2fdw52w8251"))))
14059 ;; Rope has only partial python3 support, see `python-rope'
14060 `(#:python ,python-2))
14061 (build-system python-build-system)
14063 `(("python2-unittest2" ,python2-unittest2)))
14064 (home-page "https://github.com/python-rope/rope")
14065 (synopsis "Refactoring library for Python")
14066 (description "Rope is a refactoring library for Python. It facilitates
14067 the renaming, moving and extracting of attributes, functions, modules, fields
14068 and parameters in Python 2 source code. These refactorings can also be applied
14069 to occurrences in strings and comments.")
14070 (license license:gpl2)))
14072 (define-public python-rope
14073 (package/inherit python2-rope
14074 (name "python-rope")
14075 (arguments `(#:python ,python-wrapper
14076 ;; XXX: Only partial python3 support, results in some failing
14077 ;; tests: <https://github.com/python-rope/rope/issues/247>.
14079 (properties `((python2-variant . ,(delay python2-rope))))))
14081 (define-public python-py3status
14083 (name "python-py3status")
14088 (uri (pypi-uri "py3status" version))
14090 (base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262"))))
14091 (build-system python-build-system)
14096 (modify-phases %standard-phases
14097 ;; 'file' is used for detection of configuration file encoding
14098 ;; let's make link the dependency to particular input
14099 (add-before 'build 'patch-file-path
14100 (lambda* (#:key inputs #:allow-other-keys)
14101 (let ((file-path (assoc-ref inputs "file")))
14102 (substitute* "py3status/parse_config.py"
14103 (("\\[\"file\", \"-b\"")
14104 (string-append "['" file-path "/bin/file', '-b'")))
14106 #:tests? #f)) ; TODO: Requires many libraries not in Guix.
14107 (home-page "https://github.com/ultrabug/py3status")
14108 (synopsis "Extensible i3status wrapper written in Python")
14109 (description "py3status is an i3status wrapper which extends i3status
14110 functionality in a modular way, allowing you to extend your panel with your
14111 own code, responding to click events and updating clock every second.")
14112 (license license:bsd-3)))
14114 (define-public python2-selectors2
14116 (name "python2-selectors2")
14120 (uri (pypi-uri "selectors2" version))
14123 "110qr00b9axz1f1jm12b495jkvrz80smknxvssqlhwk0dx67rdw1"))))
14124 (build-system python-build-system)
14126 `(#:python ,python-2))
14128 `(("python2-mock" ,python2-mock)
14129 ("python2-psutil" ,python2-psutil)))
14130 (home-page "https://www.github.com/SethMichaelLarson/selectors2")
14131 (synopsis "Backport of the selectors module from Python 3.5+")
14133 "This package provides a drop-in replacement for the @code{selectors}
14134 module in Python 3.5 and later.")
14135 (license license:expat)))
14137 (define-public python-tblib
14139 (name "python-tblib")
14143 (uri (pypi-uri "tblib" version))
14146 "0i136n5pydmd202254wzrdbspkw0br0c9mbxhfs9hpfbahvyx6r2"))))
14147 (build-system python-build-system)
14150 (modify-phases %standard-phases
14153 ;; Upstream runs tests after installation and the package itself
14154 ;; resides in a subdirectory. Extend PYTHONPATH so it will be
14156 (setenv "PYTHONPATH"
14157 (string-append (getcwd) "/build/lib:"
14158 (getenv "PYTHONPATH")))
14159 (invoke "py.test" "-vv" "tests" "README.rst"))))))
14161 `(("python-pytest" ,python-pytest)
14162 ("python-six" ,python-six)))
14163 (home-page "https://github.com/ionelmc/python-tblib")
14164 (synopsis "Traceback serialization library")
14166 "Traceback serialization allows you to:
14169 @item Pickle tracebacks and raise exceptions with pickled tracebacks in
14170 different processes. This allows better error handling when running code over
14171 multiple processes (imagine multiprocessing, billiard, futures, celery etc).
14173 @item Parse traceback strings and raise with the parsed tracebacks.
14175 (license license:bsd-3)))
14177 (define-public python2-tblib
14178 (package-with-python2 python-tblib))
14180 (define-public python-greenlet
14182 (name "python-greenlet")
14186 (uri (pypi-uri "greenlet" version))
14189 "1y6wbg9yhm9dw6m768n4yslp56h85pnxkk3drz6icn15g6f1d7ki"))))
14190 (build-system python-build-system)
14191 (home-page "https://greenlet.readthedocs.io/")
14192 (synopsis "Lightweight in-process concurrent programming")
14194 "Greenlet package is a spin-off of Stackless, a version of CPython
14195 that supports micro-threads called \"tasklets\". Tasklets run
14196 pseudo-concurrently (typically in a single or a few OS-level threads) and
14197 are synchronized with data exchanges on \"channels\".")
14198 (license (list license:psfl license:expat))))
14200 (define-public python-objgraph
14202 (name "python-objgraph")
14207 (uri (pypi-uri "objgraph" version))
14210 "19qmqsh984zq1rzzjy4vqnmviaqnymcyl8h7z99pnicbgwnm2adz"))))
14211 (build-system python-build-system)
14213 `(("python-graphviz" ,python-graphviz)))
14215 `(("python-mock" ,python-mock)
14216 ("graphviz" ,graphviz)))
14217 (home-page "https://mg.pov.lt/objgraph/")
14218 (synopsis "Draw Python object reference graphs with graphviz")
14220 "This package provides tools to draw Python object reference graphs with
14222 (license license:expat)))
14224 (define-public python2-objgraph
14225 (package-with-python2 python-objgraph))
14227 (define-public python-gevent
14229 (name "python-gevent")
14233 (uri (pypi-uri "gevent" version))
14236 "10f9y899y9nmq51pv4r1zb51b4w5yxx00sz5whvg9vm956hc432j"))
14237 (modules '((guix build utils)))
14240 ;; unbunding libev and c-ares
14241 (delete-file-recursively "deps")))))
14242 (build-system python-build-system)
14244 `(#:modules ((ice-9 ftw)
14248 (guix build python-build-system))
14249 #:phases (modify-phases %standard-phases
14250 (add-before 'patch-source-shebangs 'patch-hard-coded-paths
14252 (substitute* "src/gevent/subprocess.py"
14253 (("/bin/sh") (which "sh")))
14254 (for-each (lambda (file)
14256 (("/bin/sh") (which "sh"))
14257 (("/bin/true") (which "true"))))
14258 (find-files "src/greentest" "\\.py$"))))
14259 (add-before 'build 'do-not-use-bundled-sources
14261 (setenv "GEVENTSETUP_EMBED" "0")
14263 ;; Prevent building bundled libev.
14264 (substitute* "setup.py"
14265 (("run_make=_BUILDING")
14266 "run_make=False"))))
14267 (add-before 'build 'add-greenlet-on-C_INCLUDE_PATH
14268 (lambda* (#:key inputs #:allow-other-keys)
14269 (let ((greenlet (string-append
14270 (assoc-ref inputs "python-greenlet")
14272 (match (scandir greenlet
14274 (string-prefix? "python" item)))
14276 (setenv "C_INCLUDE_PATH"
14277 (string-append greenlet "/" python ":"
14278 (or (getenv "C_INCLUDE_PATH")
14280 (add-before 'check 'pretend-to-be-CI
14282 ;; A few tests are skipped due to network constraints or
14283 ;; get longer timeouts when running in a CI environment.
14284 ;; Piggy-back on that, as we need the same adjustments.
14285 (setenv "TRAVIS" "1")
14286 (setenv "APPVEYOR" "1")))
14287 (add-before 'check 'adjust-tests
14289 (let ((disabled-tests
14290 '(;; These tests relies on networking which is
14291 ;; not available in the build container.
14292 "test__getaddrinfo_import.py"
14293 "test__server_pywsgi.py"
14294 ;; XXX: These tests borrow functionality from the
14295 ;; Python builtin 'test' module, but it is not
14296 ;; installed with the Guix Python distribution.
14301 "test_threading.py"
14302 "test__threading_2.py"
14303 ;; These tests rely on KeyboardInterrupts which do not
14304 ;; work inside the build container for some reason
14305 ;; (lack of controlling terminal?).
14306 "test_subprocess.py"
14307 "test__issues461_471.py"
14308 ;; TODO: Patch out the tests that use getprotobyname, etc
14309 ;; instead of disabling all the tests from these files.
14310 "test__resolver_dnspython.py"
14311 "test__doctests.py"
14314 "test__execmodules.py")))
14315 (call-with-output-file "skipped_tests.txt"
14317 (format port "~a~%"
14318 (string-join disabled-tests "\n")))))))
14321 ;; Make sure the build directory is on PYTHONPATH.
14322 (setenv "PYTHONPATH"
14324 (getenv "PYTHONPATH") ":"
14326 (car (scandir "build" (cut string-prefix? "lib." <>)))))
14328 ;; Use the build daemons configured number of workers.
14329 (setenv "NWORKERS" (number->string (parallel-job-count)))
14331 (invoke "python" "-m" "gevent.tests" "-unone" "--config"
14332 "known_failures.py" "--ignore" "skipped_tests.txt"))))))
14334 `(("python-greenlet" ,python-greenlet)
14335 ("python-objgraph" ,python-objgraph)
14336 ("python-zope.event" ,python-zope-event)
14337 ("python-zope.interface" ,python-zope-interface)))
14339 `(("python-six" ,python-six)
14342 ("python-dnspython" ,python-dnspython)
14343 ("python-psutil" ,python-psutil)))
14345 `(("c-ares" ,c-ares)
14347 (home-page "https://www.gevent.org/")
14348 (synopsis "Coroutine-based network library")
14350 "@code{gevent} is a coroutine-based Python networking library that uses
14351 @code{greenlet} to provide a high-level synchronous API on top of the
14352 @code{libev} event loop.")
14353 (license license:expat)))
14355 (define-public python-fastimport
14357 (name "python-fastimport")
14362 (uri (pypi-uri "fastimport" version))
14364 (base32 "06gk14qgm9dxx3pzjn0ckdbywc8ial2bjfzddqwlr4bn1nnqkbll"))))
14365 (build-system python-build-system)
14366 (home-page "https://github.com/jelmer/python-fastimport")
14367 (synopsis "VCS fastimport parser and generator in Python")
14368 (description "This package provides a parser for and generator of the Git
14369 @url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
14371 (license license:gpl2+)))
14373 (define-public python-twisted
14375 (name "python-twisted")
14379 (uri (pypi-uri "Twisted" version ".tar.bz2"))
14382 "17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
14383 (build-system python-build-system)
14385 '(#:tests? #f)) ; FIXME: some tests fail
14387 `(("python-zope-interface" ,python-zope-interface)
14388 ("python-pyhamcrest" ,python-pyhamcrest)
14389 ("python-incremental" ,python-incremental)
14390 ("python-hyperlink" ,python-hyperlink)
14391 ("python-constantly" ,python-constantly)
14392 ("python-automat" ,python-automat)))
14393 (home-page "https://twistedmatrix.com/")
14394 (synopsis "Asynchronous networking framework written in Python")
14396 "Twisted is an extensible framework for Python programming, with special
14397 focus on event-based network programming and multiprotocol integration.")
14398 (license license:expat)))
14400 (define-public python2-twisted
14401 (package-with-python2 python-twisted))
14403 (define-public python-pika
14405 (name "python-pika")
14410 (uri (git-reference
14411 (url "https://github.com/pika/pika")
14413 (file-name (git-file-name name version))
14416 "0cm45xydk2jigydwszwik89qlbk6l3l18sxhzppzqmxw2rdkm22s"))))
14417 (build-system python-build-system)
14419 '(#:phases (modify-phases %standard-phases
14420 (add-before 'check 'disable-live-tests
14422 ;; Disable tests that require RabbitMQ, which is not
14423 ;; yet available in Guix.
14424 (substitute* "setup.cfg"
14425 (("tests/unit,tests/acceptance")
14427 (with-directory-excursion "tests"
14428 (for-each delete-file
14429 '("unit/base_connection_tests.py"
14430 "unit/threaded_test_wrapper_test.py")))))
14433 (invoke "nosetests"))))))
14435 `(("python-mock" ,python-mock)
14436 ("python-nose" ,python-nose)
14438 ;; These are optional at runtime, and provided here for tests.
14439 ("python-gevent" ,python-gevent)
14440 ("python-tornado" ,python-tornado)
14441 ("python-twisted" ,python-twisted)))
14442 (home-page "https://pika.readthedocs.org")
14443 (synopsis "Pure Python AMQP Client Library")
14445 "Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
14446 Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
14447 network support library.")
14448 (license license:bsd-3)))
14450 (define-public python-ply
14452 (name "python-ply")
14457 (uri (pypi-uri "ply" version))
14460 "18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
14461 (build-system python-build-system)
14462 (home-page "http://www.dabeaz.com/ply/")
14463 (synopsis "Python Lex & Yacc")
14464 (description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
14465 It uses LR parsing and does extensive error checking.")
14466 (license license:bsd-3)))
14468 (define-public python-tabulate
14470 (name "python-tabulate")
14474 (uri (pypi-uri "tabulate" version))
14477 "19qkdz8xwk5jxa5xn53mnk76qnh4ysm81vzj664jw1b0azr167gb"))))
14478 (build-system python-build-system)
14480 ;; FIXME: The pypi release tarball is missing a 'test/common.py'
14481 ;; and the latest release is not tagged in the upstream repository.
14483 (home-page "https://bitbucket.org/astanin/python-tabulate")
14484 (synopsis "Pretty-print tabular data")
14486 "Tabulate is a library and command-line utility to pretty-print tabular
14488 (license license:expat)))
14490 (define-public python2-tabulate
14491 (package-with-python2 python-tabulate))
14493 (define-public python-kazoo
14495 (name "python-kazoo")
14500 (uri (pypi-uri "kazoo" version))
14503 "16y213k7r8shyn2zw1k6lkzjgcrvm441pqv8scvcjixhvpbx3hm7"))))
14504 (build-system python-build-system)
14505 (arguments '(#:tests? #f)) ; XXX: needs zookeeper
14507 `(("python-six" ,python-six)))
14508 (home-page "https://kazoo.readthedocs.org")
14509 (synopsis "High-level Zookeeper client library")
14511 "Kazoo is a Python client library for the Apache Zookeeper distributed
14512 application service. It is designed to be easy to use and to avoid common
14513 programming errors.")
14514 (license license:asl2.0)))
14516 (define-public python2-kazoo
14517 (package-with-python2 python-kazoo))
14519 (define-public python-pykafka
14521 (name "python-pykafka")
14525 (uri (pypi-uri "pykafka" version))
14528 "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
14529 (build-system python-build-system)
14530 (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
14532 `(("python-gevent" ,python-gevent)
14533 ("python-kazoo" ,python-kazoo)
14534 ("python-tabulate" ,python-tabulate)))
14536 `(("librdkafka" ,librdkafka)))
14537 (home-page "https://pykafka.readthedocs.io/")
14538 (synopsis "Apache Kafka client for Python")
14540 "PyKafka is a client for the Apache Kafka distributed messaging system.
14541 It includes Python implementations of Kafka producers and consumers, which
14542 are optionally backed by a C extension built on librdkafka.")
14543 (license license:asl2.0)))
14545 (define-public python-wcwidth
14547 (name "python-wcwidth")
14551 (uri (pypi-uri "wcwidth" version))
14554 "1a1pzds3xzfylm5mnc5f6c1p8kiig0daqjc9gygd9rc3cj53x2zj"))))
14555 (build-system python-build-system)
14556 (home-page "https://github.com/jquast/wcwidth")
14557 (synopsis "Measure number of terminal column cells of wide-character codes")
14558 (description "Wcwidth measures the number of terminal column cells of
14559 wide-character codes. It is useful for those implementing a terminal emulator,
14560 or programs that carefully produce output to be interpreted by one. It is a
14561 Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
14562 specified in POSIX.1-2001 and POSIX.1-2008.")
14563 (license license:expat)))
14565 (define-public python2-wcwidth
14566 (package-with-python2 python-wcwidth))
14568 (define-public python2-jsonrpclib
14570 (name "python2-jsonrpclib")
14574 (uri (pypi-uri "jsonrpclib" version))
14577 "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
14578 (build-system python-build-system)
14581 #:python ,python-2))
14582 (home-page "https://github.com/joshmarshall/jsonrpclib/")
14583 (synopsis "Implementation of JSON-RPC specification for Python")
14585 "This library is an implementation of the JSON-RPC specification.
14586 It supports both the original 1.0 specification, as well as the
14587 new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
14589 (license license:asl2.0)))
14591 (define-public python-chai
14593 (name "python-chai")
14597 (uri (pypi-uri "chai" version))
14600 "1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))))
14601 (build-system python-build-system)
14602 (home-page "https://github.com/agoragames/chai")
14603 (synopsis "Mocking framework for Python")
14605 "Chai provides an api for mocking, stubbing and spying your python
14606 objects, patterned after the Mocha library for Ruby.")
14607 (license license:bsd-3)))
14609 (define-public python2-chai
14610 (package-with-python2 python-chai))
14612 (define-public python-inflection
14614 (name "python-inflection")
14617 (origin (method url-fetch)
14618 (uri (pypi-uri "inflection" version))
14621 "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
14622 (build-system python-build-system)
14624 `(("python-pytest" ,python-pytest)))
14625 (home-page "https://github.com/jpvanhal/inflection")
14626 (synopsis "Python string transformation library")
14628 "Inflection is a string transformation library. It singularizes
14629 and pluralizes English words, and transforms strings from CamelCase to
14630 underscored string.")
14631 (license license:expat)))
14633 (define-public python2-inflection
14634 (package-with-python2 python-inflection))
14636 (define-public python-pylev
14638 (name "python-pylev")
14642 (uri (pypi-uri "pylev" version))
14645 "1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
14646 (build-system python-build-system)
14647 (home-page "https://github.com/toastdriven/pylev")
14648 (synopsis "Levenshtein distance implementation in Python")
14649 (description "Pure Python Levenshtein implementation, based off the
14650 Wikipedia code samples at
14651 @url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
14652 (license license:bsd-3)))
14654 (define-public python2-pylev
14655 (package-with-python2 python-pylev))
14657 (define-public python-cleo
14659 (name "python-cleo")
14663 (uri (pypi-uri "cleo" version))
14666 "17q6wi3q280kxmxzb2iwnnqih2xbljn18v0bjx2ip18p079j43ix"))))
14667 (build-system python-build-system)
14670 ("python-mock" ,python-mock)
14671 ("python-pytest-mock" ,python-pytest-mock)
14672 ("python-pytest" ,python-pytest)))
14674 `(("python-backpack" ,python-backpack)
14675 ("python-clikit" ,python-clikit)
14676 ("python-pastel" ,python-pastel)
14677 ("python-pylev" ,python-pylev)))
14678 (home-page "https://github.com/sdispater/cleo")
14679 (synopsis "Command-line arguments library for Python")
14681 "Cleo allows you to create command-line commands with signature in
14682 docstring and colored output.")
14683 (license license:expat)))
14685 (define-public python2-cleo
14686 (package-with-python2 python-cleo))
14688 (define-public python-tomlkit
14690 (name "python-tomlkit")
14695 (uri (pypi-uri "tomlkit" version))
14697 (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
14698 (build-system python-build-system)
14700 `(("python-pytest" ,python-pytest)
14701 ("python-pyyaml" ,python-pyyaml)))
14702 (home-page "https://github.com/sdispater/tomlkit")
14703 (synopsis "Style-preserving TOML library")
14705 "TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that
14706 preserves all comments, indentations, whitespace and internal element ordering,
14707 and makes them accessible and editable via an intuitive API. It can also
14708 create new TOML documents from scratch using the provided helpers. Part of the
14709 implementation has been adapted, improved, and fixed from Molten.")
14710 (license license:expat)))
14712 (define-public python-shellingham
14714 (name "python-shellingham")
14719 (uri (pypi-uri "shellingham" version))
14721 (base32 "07kmia2hvd2q7wik89m82hig9mqr2faynvy38vxq5fm0ps11jv2p"))))
14722 (build-system python-build-system)
14725 (modify-phases %standard-phases
14726 (add-after 'unpack 'restore-setup.py
14727 ;; setup.py will return in the next release.
14728 ;; <https://github.com/sarugaku/shellingham/issues/33>
14730 (with-output-to-file "setup.py"
14732 (display "from setuptools import setup\nsetup()\n")))
14734 (home-page "https://github.com/sarugaku/shellingham")
14735 (synopsis "Tool to detect surrounding shell")
14737 "Shellingham detects what shell the current Python executable is
14739 (license license:isc)))
14741 (define-public python-memcached
14743 (name "python-memcached")
14748 (uri (pypi-uri "python-memcached" version))
14751 "0kvyapavbirk2x3n1jx4yb9nyigrj1s3x15nm3qhpvhkpqvqdqm2"))
14752 (patches (search-patches "python-memcached-syntax-warnings.patch"))))
14753 (build-system python-build-system)
14754 (propagated-inputs `(("python-six" ,python-six)))
14756 "https://github.com/linsomniac/python-memcached")
14757 (synopsis "Pure python memcached client")
14759 "This software is a pure Python interface to the memcached memory cache
14760 daemon. It is the client side software which allows storing values in one or
14761 more, possibly remote, memcached servers.")
14762 (license license:psfl)))
14764 (define-public python-clikit
14766 (name "python-clikit")
14771 (uri (pypi-uri "clikit" version))
14774 "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4"))))
14775 (build-system python-build-system)
14776 (arguments '(#:tests? #f)) ; no test in the PyPI tarball
14778 `(("python-crashtest" ,python-crashtest)
14779 ("python-pastel" ,python-pastel)
14780 ("python-pylev" ,python-pylev)))
14781 (home-page "https://github.com/sdispater/clikit")
14782 (synopsis "Group of utilities to build command line interfaces")
14784 "CliKit is a group of utilities to build testable command line
14786 (properties `((python2-variant . ,(delay python2-clikit))))
14787 (license license:expat)))
14789 (define-public python2-clikit
14790 (let ((base (package-with-python2 (strip-python2-variant python-clikit))))
14794 `(("python-enum34" ,python2-enum34)
14795 ("python-typing" ,python2-typing)
14796 ,@(package-propagated-inputs base))))))
14798 (define-public python-msgpack-python
14800 (name "python-msgpack-python")
14805 (uri (pypi-uri "msgpack-python" version))
14808 "16wh8qgybmfh4pjp8vfv78mdlkxfmcasg78lzlnm6nslsfkci31p"))))
14809 (build-system python-build-system)
14810 (home-page "https://msgpack.org/")
14811 (synopsis "Package to deserialize messages in MessagePack binary format")
14813 "MessagePack is an efficient binary serialization format. It lets you
14814 exchange data among multiple languages like JSON. But it's faster and
14815 smaller. Small integers are encoded into a single byte, and typical short
14816 strings require only one extra byte in addition to the strings themselves.")
14817 (license license:asl2.0)))
14819 (define-public python-cachy
14821 (name "python-cachy")
14826 (uri (pypi-uri "cachy" version))
14829 "1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
14830 (build-system python-build-system)
14833 (modify-phases %standard-phases
14835 (lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
14838 `(("memcached" ,memcached)
14839 ("python-fakeredis" ,python-fakeredis)
14840 ("python-flexmock" ,python-flexmock)
14841 ("python-pifpaf" ,python-pifpaf)
14842 ("python-pytest" ,python-pytest)))
14844 `(("python-memcached" ,python-memcached)
14845 ("python-msgpack-python" ,python-msgpack-python)
14846 ("python-redis" ,python-redis)))
14847 (home-page "https://github.com/sdispater/cachy")
14848 (synopsis "Simple yet effective caching library")
14850 "Cachy provides a simple yet effective caching library. A simple but
14851 powerful API: thread-safety; decorator syntax; support for memcached, redis,
14852 database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
14853 (license license:expat)))
14855 (define-public poetry
14859 ;; Poetry can only be built from source with Poetry.
14863 (uri (pypi-uri "poetry" version))
14866 "1dvx08ksv5wnsj45db23921rj136akmcnxa0kmlsddf3wbh6wcka"))))
14867 (build-system python-build-system)
14869 `(#:tests? #f ;; Pypi does not have tests.
14871 (modify-phases %standard-phases
14872 (add-before 'build 'patch-setup-py
14874 (substitute* "setup.py"
14875 ;; Allow newer versions of python-keyring.
14876 (("(keyring>=21.2.0),<22.0.0" _ keyring) keyring)
14877 ;; TODO: remove after the next release cycle,
14878 ;; when packaging has been updated.
14879 (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0"))
14882 `(("python-cachecontrol" ,python-cachecontrol)
14883 ("python-cachy" ,python-cachy)
14884 ("python-cleo" ,python-cleo)
14885 ("python-clikit" ,python-clikit)
14886 ("python-html5lib" ,python-html5lib)
14887 ("python-keyring" ,python-keyring)
14888 ("python-msgpack-transitional" ,python-msgpack-transitional)
14889 ("python-packaging" ,python-packaging)
14890 ("python-pexpect" ,python-pexpect)
14891 ("python-pip" ,python-pip)
14892 ("python-pkginfo" ,python-pkginfo)
14893 ("python-poetry-core" ,python-poetry-core)
14894 ("python-requests" ,python-requests)
14895 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
14896 ("python-shellingham" ,python-shellingham)
14897 ("python-tomlkit" ,python-tomlkit)
14898 ("python-virtualenv" ,python-virtualenv)))
14899 (home-page "https://python-poetry.org")
14900 (synopsis "Python dependency management and packaging made easy")
14901 (description "Poetry is a tool for dependency management and packaging
14902 in Python. It allows you to declare the libraries your project depends on and
14903 it will manage (install/update) them for you.")
14904 (license license:expat)))
14906 (define-public python-lark-parser
14908 (name "python-lark-parser")
14912 (uri (pypi-uri "lark-parser" version))
14915 "1kd61asrb3h9spgsj4bslfbgp8q4271sw3hblk6f2vbbblv8jxcy"))))
14916 (build-system python-build-system)
14917 (home-page "https://github.com/lark-parser/lark")
14918 (synopsis "Multi-language parser for Python")
14920 "Lark is a parser built with a focus on ergonomics, performance and
14921 resilience. Lark can parse all context-free languages. That means it is
14922 capable of parsing almost any programming language out there, and to
14923 some degree most natural languages too.")
14924 (license license:expat)))
14926 (define-public python-libcst
14928 (name "python-libcst")
14932 (uri (pypi-uri "libcst" version))
14935 "05zsc61gsd2pyb6wiyh58zczndxi6rm4d2jl94rpf5cv1fzw6ks8"))))
14936 (build-system python-build-system)
14939 (modify-phases %standard-phases
14940 (add-after 'unpack 'remove-failing-tests
14942 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>.
14943 (delete-file "libcst/tests/test_fuzz.py")
14944 ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>.
14945 (delete-file "libcst/tests/test_pyre_integration.py")
14946 (delete-file "libcst/codemod/tests/test_codemod_cli.py")
14947 (delete-file "libcst/metadata/tests/test_full_repo_manager.py")
14948 (delete-file "libcst/metadata/tests/test_type_inference_provider.py")
14950 (add-before 'check 'generate-test-data
14952 (setenv "PYTHONPATH" (string-append (getcwd) ":" (getenv "PYTHONPATH")))
14953 (invoke "python" "-m" "libcst.codegen.generate" "visitors")
14954 (invoke "python" "-m" "libcst.codegen.generate" "return_types")))
14957 (invoke "python" "-m" "unittest")
14960 `(("python-black" ,python-black)
14961 ("python-isort" ,python-isort)))
14963 `(("python-typing-extensions" ,python-typing-extensions)
14964 ("python-typing-inspect" ,python-typing-inspect)
14965 ("python-pyyaml" ,python-pyyaml)))
14966 (home-page "https://github.com/Instagram/LibCST")
14967 (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python")
14969 "LibCST parses Python source code as a CST tree that keeps all
14970 formatting details (comments, whitespaces, parentheses, etc). It's useful
14971 for building automated refactoring (codemod) applications and linters.
14972 LibCST creates a compromise between an Abstract Syntax Tree (AST) and
14973 a traditional Concrete Syntax Tree (CST). By carefully reorganizing and
14974 naming node types and fields, LibCST creates a lossless CST that looks and
14975 feels like an AST.")
14976 (license (list license:expat
14977 ;; Some files unde libcst/_parser/ are under Python Software
14978 ;; Foundation license (see LICENSE file for details)
14980 ;; libcst/_add_slots.py
14983 (define-public python-typing-inspect
14985 (name "python-typing-inspect")
14989 (uri (pypi-uri "typing_inspect" version))
14992 "1dzs9a1pr23dhbvmnvms2jv7l7jk26023g5ysf0zvnq8b791s6wg"))))
14993 (build-system python-build-system)
14995 `(("python-mypy-extensions" ,python-mypy-extensions)
14996 ("python-typing-extensions" ,python-typing-extensions)))
14997 (home-page "https://github.com/ilevkivskyi/typing_inspect")
14998 (synopsis "API for inspection of types in the Python @code{typing} module")
15000 "The @code{typing_inspect} module defines experimental API for runtime
15001 inspection of types defined in the Python standard typing module.")
15002 (license license:expat)))
15004 (define-public python-lazy-object-proxy
15006 (name "python-lazy-object-proxy")
15010 (uri (pypi-uri "lazy-object-proxy" version))
15013 "0hwh29m9wa582ramj30p4pysckdrmki1z1b8iaaxk6mpfx2kc8wp"))))
15015 `(("python-setuptools-scm" ,python-setuptools-scm)))
15016 (build-system python-build-system)
15017 (home-page "https://github.com/ionelmc/python-lazy-object-proxy")
15018 (synopsis "Lazy object proxy for python")
15020 "Lazy object proxy is an object that wraps a callable but defers the call
15021 until the object is actually required, and caches the result of said call.")
15022 (license license:bsd-2)))
15024 (define-public python2-lazy-object-proxy
15025 (package-with-python2 python-lazy-object-proxy))
15027 (define-public python-dnspython
15029 (name "python-dnspython")
15033 (uri (pypi-uri "dnspython" version ".zip"))
15036 "1m0xvyby8baaxp6pfm0fgq8d2pq5dd8qm8bzfbrs009jaw5pza74"))))
15037 (build-system python-build-system)
15038 (native-inputs `(("unzip" ,unzip)))
15039 (arguments '(#:tests? #f)) ; XXX: requires internet access
15040 (home-page "https://www.dnspython.org")
15041 (synopsis "DNS toolkit for Python")
15043 "dnspython is a DNS toolkit for Python. It supports almost all record
15044 types. It can be used for queries, zone transfers, and dynamic updates.
15045 It supports TSIG authenticated messages and EDNS0.")
15046 (license license:expat)))
15048 (define-public python-dnspython-1.16
15050 (inherit python-dnspython)
15054 (uri (string-append "http://www.dnspython.org/kits/"
15055 version "/dnspython-" version ".tar.gz"))
15058 "1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
15059 (native-inputs '())))
15061 (define-public python2-dnspython-1.16
15062 (package-with-python2 python-dnspython-1.16))
15064 (define-public python-py3dns
15066 (name "python-py3dns")
15071 (uri (pypi-uri "py3dns" version))
15074 "1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz"))))
15075 (build-system python-build-system)
15076 ;; This package wants to read /etc/resolv.conf. We can't patch it without
15077 ;; removing functionality so we copy from Nix and "just don't build it".
15080 (modify-phases %standard-phases
15081 (add-after 'unpack 'patch-source
15083 (substitute* "setup.py"
15084 (("import DNS") "")
15085 (("DNS.__version__") (string-append "\"" ,version "\"")))
15087 #:tests? #f)) ; Also skip the tests.
15088 (home-page "https://launchpad.net/py3dns")
15089 (synopsis "Python 3 DNS library")
15090 (description "This Python 3 module provides a DNS API for looking up DNS
15091 entries from within Python 3 modules and applications. This module is a
15092 simple, lightweight implementation.")
15093 (license license:psfl)))
15095 (define-public python-email-validator
15097 (name "python-email-validator")
15100 (origin (method url-fetch)
15101 (uri (pypi-uri "email_validator" version))
15104 "1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
15105 (build-system python-build-system)
15108 (modify-phases %standard-phases
15109 (add-before 'build 'use-dnspython
15111 (substitute* "setup.py"
15112 (("dnspython3") "dnspython"))
15115 `(("python-dnspython" ,python-dnspython)
15116 ("python-idna" ,python-idna)))
15117 (home-page "https://github.com/JoshData/python-email-validator")
15118 (synopsis "Email address validation library for Python")
15120 "This library validates email address syntax and deliverability.")
15121 (license license:cc0)))
15123 (define-public python2-email-validator
15124 (package-with-python2 python-email-validator))
15126 (define-public python-ukpostcodeparser
15128 (name "python-ukpostcodeparser")
15132 (uri (pypi-uri "UkPostcodeParser" version))
15135 "1jwg9z4rz51mcka1821rwgycsd0mcicyp1kiwjfa2kvg8bm9p2qd"))))
15136 (build-system python-build-system)
15137 (home-page "https://github.com/hamstah/ukpostcodeparser")
15138 (synopsis "UK Postcode parser for Python")
15140 "This library provides the @code{parse_uk_postcode} function for
15141 parsing UK postcodes.")
15142 (license license:expat)))
15144 (define-public python2-ukpostcodeparser
15145 (package-with-python2 python-ukpostcodeparser))
15147 (define-public python-faker
15149 (name "python-faker")
15153 (uri (pypi-uri "Faker" version))
15156 "13qq485ydxmdnqn3xbfv1xfyqbf9qfnfw33v1vw5l6jyy9p8cgrd"))))
15157 (build-system python-build-system)
15160 (modify-phases %standard-phases
15162 (lambda _ (invoke "python" "-m" "pytest" "-v"))))))
15165 ("python-freezegun" ,python-freezegun)
15166 ("python-pytest" ,python-pytest)
15167 ("python-random2" ,python-random2)
15168 ("python-ukpostcodeparser" ,python-ukpostcodeparser)
15169 ("python-validators" ,python-validators)))
15171 `(("python-dateutil" ,python-dateutil)
15172 ("python-text-unidecode" ,python-text-unidecode)))
15173 (home-page "https://github.com/joke2k/faker")
15174 (synopsis "Python package that generates fake data")
15176 "Faker is a Python package that generates fake data such as names,
15177 addresses, and phone numbers.")
15178 (license license:expat)
15179 (properties `((python2-variant . ,(delay python2-faker))))))
15181 ;; Faker 4.0 dropped Python 2 support, so we stick with this older version here.
15182 (define-public python2-faker
15183 (let ((base (package-with-python2 (strip-python2-variant
15190 (uri (pypi-uri "Faker" version))
15193 "11cr0qvspkdh6198rqy56qildk7bnp6llj8kyy1dan5sp5n4dxy7"))))
15195 `(("python-mock" ,python2-mock)
15196 ,@(package-native-inputs base)))
15198 `(("python2-ipaddress" ,python2-ipaddress)
15199 ("python2-six" ,python2-six)
15200 ,@(package-propagated-inputs base))))))
15202 (define-public python-pyaml
15204 (name "python-pyaml")
15205 (version "18.11.0")
15208 (uri (pypi-uri "pyaml" version))
15211 "0fi604ix8lbpj1266q7js6szm771saprdzzcdwmj43wy83694qmr"))))
15212 (build-system python-build-system)
15214 `(("python-unidecode" ,python-unidecode)))
15216 `(("python-pyyaml" ,python-pyyaml)))
15217 (home-page "https://github.com/mk-fg/pretty-yaml")
15218 (synopsis "YAML pretty-print library for Python")
15220 "pyaml is a PyYAML based python module to produce pretty and readable
15221 YAML-serialized data.")
15222 (license license:wtfpl2)))
15224 (define-public python2-pyaml
15225 (package-with-python2 python-pyaml))
15227 (define-public python-backpack
15229 (name "python-backpack")
15234 (uri (pypi-uri "backpack" version))
15237 "14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
15238 (build-system python-build-system)
15240 `(("python-pytest" ,python-pytest)
15241 ("python-nose" ,python-nose)))
15243 `(("python-simplejson" ,python-simplejson)))
15244 (home-page "https://github.com/sdispater/backpack")
15245 (synopsis "Utilities for working with Python collections")
15246 (description "Backpack provides some useful utilities for working with
15247 collections of data.")
15248 (license license:expat)))
15250 (define-public python2-backpack
15251 (package-with-python2 python-backpack))
15253 (define-public python-prompt-toolkit
15255 (name "python-prompt-toolkit")
15260 (uri (pypi-uri "prompt_toolkit" version))
15262 (base32 "1g1kq1aimhm23k2dmlmnznfzc83l6ly65g0h32hqz8injcdz3d71"))))
15263 (build-system python-build-system)
15266 (modify-phases %standard-phases
15268 (add-after 'install 'post-install-check
15269 (lambda* (#:key inputs outputs #:allow-other-keys)
15270 ;; HOME is needed for the test
15271 ;; "test_pathcompleter_can_expanduser".
15272 (setenv "HOME" "/tmp")
15273 (add-installed-pythonpath inputs outputs)
15274 (invoke "py.test"))))))
15276 `(("python-wcwidth" ,python-wcwidth)))
15278 `(("python-pytest" ,python-pytest)))
15279 (home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
15280 (synopsis "Library for building command line interfaces in Python")
15282 "Prompt-Toolkit is a library for building interactive command line
15283 interfaces in Python. It's like GNU Readline but it also features syntax
15284 highlighting while typing, out-of-the-box multi-line input editing, advanced
15285 code completion, incremental search, support for Chinese double-width
15286 characters, mouse support, and auto suggestions.")
15287 (license license:bsd-3)
15288 (properties `((python2-variant . ,(delay python-prompt-toolkit-2))))))
15290 (define-public python-prompt-toolkit-2
15291 (package (inherit python-prompt-toolkit)
15292 (name "python-prompt-toolkit")
15297 (uri (pypi-uri "prompt_toolkit" version))
15300 "0fgacqk73w7s932vy46pan2yp8rvjmlkag20xvaydh9mhf6h85zx"))))
15302 `(("python-wcwidth" ,python-wcwidth)
15303 ("python-six" ,python-six)
15304 ("python-pygments" ,python-pygments)))
15307 (define-public python2-prompt-toolkit
15308 (package-with-python2 python-prompt-toolkit-2))
15310 (define-public python-prompt-toolkit-1
15311 (package (inherit python-prompt-toolkit-2)
15316 (uri (pypi-uri "prompt_toolkit" version ".tar.gz"))
15319 "05v9h5nydljwpj5nm8n804ms0glajwfy1zagrzqrg91wk3qqi1c5"))))))
15321 (define-public python2-prompt-toolkit-1
15322 (package-with-python2 python-prompt-toolkit-1))
15324 (define-public python-jedi
15326 (name "python-jedi")
15331 (uri (pypi-uri "jedi" version))
15333 (base32 "080xyf97ifabdz7jp8clg00b8zv5g33fva1fb2xf80q6fndpvvc6"))))
15334 (build-system python-build-system)
15337 (modify-phases %standard-phases
15339 (lambda* (#:key tests? #:allow-other-keys)
15341 (setenv "HOME" "/tmp")
15342 (invoke "python" "-m" "pytest" "-vv"))
15345 `(("python-pytest" ,python-pytest)
15346 ("python-docopt" ,python-docopt)))
15348 `(("python-parso" ,python-parso)))
15349 (home-page "https://github.com/davidhalter/jedi")
15350 (synopsis "Autocompletion and static analysis library for Python")
15352 "Jedi is a static analysis tool for Python that can be used in Integrated
15353 Development Environments (@dfn{IDE}s) and text editors. It understands Python
15354 on a deeper level than many other static analysis frameworks for Python.
15356 Jedi understands docstrings and you can use Jedi autocompletion in your REPL as
15358 (license license:expat)))
15360 (define-public python2-jedi
15361 (package-with-python2 python-jedi))
15363 (define-public ptpython
15369 (uri (pypi-uri "ptpython" version))
15372 "1phk1grcvn456igjg8gwjjg8bf4kszddq5nd5sdlz3hslg62a7ci"))))
15373 (build-system python-build-system)
15375 `(#:tests? #f)) ;there are no tests
15377 `(("python-appdirs" ,python-appdirs)
15378 ("python-black" ,python-black)
15379 ("python-jedi" ,python-jedi)
15380 ("python-prompt-toolkit" ,python-prompt-toolkit)
15381 ("python-pygments" ,python-pygments)))
15382 (home-page "https://github.com/jonathanslenders/ptpython")
15383 (synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
15385 "ptpython is a Python read-eval-print loop with IDE-like features.
15386 It supports syntax highlighting, multiline editing, autocompletion, mouse,
15387 color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
15389 (license license:bsd-3)
15390 (properties `((python2-variant . ,(delay ptpython-2))))))
15392 (define-public ptpython-2
15393 (let ((base (package-with-python2 (strip-python2-variant ptpython))))
15394 (package/inherit base
15395 (name "ptpython2"))))
15397 (define-public python-easyprocess
15399 (name "python-easyprocess")
15404 (uri (pypi-uri "EasyProcess" version))
15406 (base32 "115rzzr0hx4af4m6krf7dxn8851n4l8jfxahjzjc2r0zq2m8v57v"))))
15407 (build-system python-build-system)
15409 ;; Tests require pyvirtualdisplay, which requires this package.
15411 (home-page "https://github.com/ponty/easyprocess")
15412 (synopsis "Python subprocess interface")
15414 "@code{easyprocess} is an easy to use Python subprocess interface.")
15415 (license license:bsd-3)))
15417 (define-public python-entrypoint2
15419 (name "python-entrypoint2")
15424 (uri (pypi-uri "entrypoint2" version))
15426 (base32 "1qyxq54r2fbh09ab5sffbxajy8arbk6czxz5lq3ccr9qrypw6w27"))))
15427 (build-system python-build-system)
15429 `(#:test-target "pytest"))
15431 `(("python-easyprocess" ,python-easyprocess)
15432 ("python-pytest" ,python-pytest)
15433 ("python-pytest-runner" ,python-pytest-runner)))
15434 (home-page "https://github.com/ponty/entrypoint2")
15435 (synopsis "Command-line interface for Python modules")
15437 "@code{entrypoint2} is an easy to use command-line interface for Python
15438 modules based on @code{argparse}. It translates function signature and
15439 documentation to argparse configuration.")
15440 (license license:bsd-3)))
15442 (define-public python-pyvirtualdisplay
15444 (name "python-pyvirtualdisplay")
15449 (uri (pypi-uri "PyVirtualDisplay" version))
15451 (base32 "1z2fzgiw3xv3m1d9ppn53g07zhnpj05addiz56sm6ircxibnjk4x"))))
15452 (build-system python-build-system)
15454 ;; Tests fail with:
15455 ;; FileNotFoundError: [Errno 2] No such file or directory: 'Xvnc'.
15458 `(("python-entrypoint2" ,python-entrypoint2)
15459 ("python-psutil" ,python-psutil)
15460 ("python-pytest" ,python-pytest)
15461 ("python-pytest-runner" ,python-pytest-runner)))
15463 `(("python-easyprocess" ,python-easyprocess)
15464 ("python-pillow" ,python-pillow)))
15465 (home-page "https://github.com/ponty/pyvirtualdisplay")
15466 (synopsis "Python wrapper for Xvfb, Xephyr and Xvnc")
15468 "@code{pyvirtualdisplay} is a Python wrapper for Xvfb, Xephyr and Xvnc.")
15469 (license license:bsd-3)))
15471 (define-public python-stem
15473 (name "python-stem")
15478 (uri (pypi-uri "stem" version))
15481 "1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"))))
15482 (build-system python-build-system)
15485 (modify-phases %standard-phases
15488 (invoke "./run_tests.py" "--unit")
15491 `(("python-mock" ,python-mock)
15492 ("python-pycodestyle" ,python-pycodestyle)
15493 ("python-pyflakes" ,python-pyflakes)))
15494 (home-page "https://stem.torproject.org/")
15496 "Python controller library that allows applications to interact with Tor")
15498 "Stem is a Python controller library for Tor. With it you can use Tor's
15499 control protocol to script against the Tor process and read descriptor data
15500 relays publish about themselves.")
15501 (license license:lgpl3)))
15503 (define-public python-pyserial
15505 (name "python-pyserial")
15510 (uri (pypi-uri "pyserial" version))
15513 "1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw"))))
15514 (build-system python-build-system)
15516 '(#:tests? #f)) ; FIXME: 3/49 tests are failing.
15518 ;; (modify-phases %standard-phases
15521 ;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
15523 "https://github.com/pyserial/pyserial")
15524 (synopsis "Python Serial Port Bindings")
15525 (description "@code{pyserial} provide serial port bindings for Python. It
15526 supports different byte sizes, stop bits, parity and flow control with RTS/CTS
15527 and/or Xon/Xoff. The port is accessed in RAW mode.")
15528 (license license:bsd-3)))
15530 (define-public python2-pyserial
15531 (package-with-python2 python-pyserial))
15533 (define-public python-kivy
15535 (name "python-kivy")
15540 (uri (pypi-uri "Kivy" version))
15541 (file-name (string-append name "-" version ".tar.gz"))
15544 "1zzxjdp78hfjjiklzr82l4zwibwcq4j6kgicspqs6iyyfn5yisbw"))))
15545 (build-system python-build-system)
15547 `(#:tests? #f ; Tests require many optional packages
15549 (modify-phases %standard-phases
15550 (add-after 'patch-generated-file-shebangs 'set-sdl-paths
15551 (lambda* (#:key inputs #:allow-other-keys)
15552 (setenv "KIVY_SDL2_PATH"
15553 (string-append (assoc-ref inputs "sdl-union")
15557 `(("pkg-config" ,pkg-config)
15558 ("python-cython" ,python-cython)))
15560 `(("gstreamer" ,gstreamer)
15563 ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
15564 (home-page "https://kivy.org")
15566 "Multitouch application framework")
15568 "A software library for rapid development of
15569 hardware-accelerated multitouch applications.")
15570 (license license:expat)))
15572 (define-public python2-kivy
15573 (package-with-python2 python-kivy))
15575 (define-public python-binaryornot
15577 (name "python-binaryornot")
15581 (uri (pypi-uri "binaryornot" version))
15584 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
15585 (build-system python-build-system)
15588 (modify-phases %standard-phases
15589 (add-after 'unpack 'patch-tests
15591 ;; TypeError: binary() got an unexpected keyword argument
15593 (substitute* "tests/test_check.py"
15594 (("average_size=512") ""))
15597 `(("python-chardet" ,python-chardet)
15598 ("python-hypothesis" ,python-hypothesis)))
15599 (home-page "https://github.com/audreyr/binaryornot")
15600 (synopsis "Package to check if a file is binary or text")
15601 (description "Ultra-lightweight pure Python package to check if a file is
15603 (license license:bsd-3)
15604 (properties `((python2-variant . ,(delay python2-binaryornot))))))
15606 (define-public python2-binaryornot
15607 (let ((base (package-with-python2 (strip-python2-variant python-binaryornot))))
15608 (package/inherit base
15610 `(("python2-enum34" ,python2-enum34)
15611 ,@(package-propagated-inputs base))))))
15613 (define-public python-binwalk
15615 (name "python-binwalk")
15620 (uri (git-reference
15621 (url "https://github.com/ReFirmLabs/binwalk")
15622 (commit (string-append "v" version))))
15623 (file-name (git-file-name name version))
15626 "1bxgj569fzwv6jhcbl864nmlsi9x1k1r20aywjxc8b9b1zgqrlvc"))))
15627 (build-system python-build-system)
15630 (modify-phases %standard-phases
15631 (add-before 'check 'set-pythonpath
15633 (setenv "PYTHONPATH"
15636 ":" (getenv "PYTHONPATH")))
15640 `(("python-coverage" ,python-coverage)
15641 ("python-nose" ,python-nose)))
15642 (home-page "https://github.com/ReFirmLabs/binwalk")
15643 (synopsis "Firmware analysis tool")
15644 (description "Binwalk is a tool for analyzing, reverse engineering, and
15645 extracting firmware images")
15646 (license license:expat)))
15648 (define-public python-nltk
15650 (name "python-nltk")
15654 (uri (pypi-uri "nltk" version ".zip"))
15657 "1sq32lwgij9h8rsksymnxxr7bqfw3vgx5ijw4azbj6k2xnmmdmap"))))
15658 (build-system python-build-system)
15660 '(;; The tests require some extra resources to be downloaded.
15661 ;; TODO Try packaging these resources.
15664 `(("python-click" ,python-click)
15665 ("python-joblib" ,python-joblib)
15666 ("python-regex" ,python-regex)
15667 ("python-tqdm" ,python-tqdm)))
15669 `(("unzip" ,unzip)))
15670 (home-page "http://nltk.org/")
15671 (synopsis "Natural Language Toolkit")
15672 (description "It provides interfaces to over 50 corpora and lexical
15673 resources such as WordNet, along with a suite of text processing libraries
15674 for classification, tokenization, stemming, tagging, parsing, and semantic
15675 reasoning, wrappers for natural language processing libraries.")
15676 (license license:asl2.0)))
15678 ;; Versions >=3.5 breaks backward-compatibility,
15679 ;; so we keep version 3.4.x around for a while.
15680 (define-public python-nltk-3.4
15682 (inherit python-nltk)
15687 (uri (pypi-uri "nltk" version ".zip"))
15689 (base32 "153x2clrnigs74jdgnn3qmljdjj4gprmvpdvh49i18ls4m8mbm5y"))))
15690 (propagated-inputs `(("python-six" ,python-six)))))
15692 (define-public python2-nltk
15693 (package-with-python2 python-nltk))
15695 (define-public python-pymongo
15697 (name "python-pymongo")
15701 (uri (pypi-uri "pymongo" version))
15704 "0zis4707r9hdg5qgkhp3wss9camr9h56ixyfc8n9dxwlnnly4x4c"))))
15705 (build-system python-build-system)
15707 `(("python-certifi" ,python-certifi)))
15708 (home-page "https://github.com/mongodb/mongo-python-driver")
15709 (synopsis "Python driver for MongoDB")
15710 (description "Python driver for MongoDB.")
15711 (license license:asl2.0)))
15713 (define-public python2-pymongo
15714 (package-with-python2 python-pymongo))
15716 (define-public python-consul
15718 (name "python-consul")
15723 (uri (pypi-uri "python-consul" version))
15726 "0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
15727 (build-system python-build-system)
15729 '(#:tests? #f)) ; The tests are not distributed
15731 `(("python-requests" ,python-requests)
15732 ("python-six" ,python-six)))
15733 (home-page "https://github.com/cablehead/python-consul")
15734 (synopsis "Python client for Consul")
15736 "Python client for @url{http://www.consul.io/,Consul}, a tool for service
15737 discovery, monitoring and configuration.")
15738 (license license:expat)))
15740 (define-public python2-consul
15741 (package-with-python2 python-consul))
15743 (define-public python-schematics
15745 (name "python-schematics")
15750 (uri (git-reference
15751 (url "https://github.com/schematics/schematics")
15752 (commit (string-append "v" version))))
15753 (file-name (git-file-name name version))
15755 (base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd"))))
15756 (build-system python-build-system)
15758 `(("python-six" ,python-six)))
15760 ;; The tests require a bunch of not very nice packages with fixed
15761 ;; version requirements (e.g. python-coveralls).
15763 (home-page "https://github.com/schematics/schematics")
15764 (synopsis "Python Data Structures for Humans")
15765 (description "Python Data Structures for Humans.")
15766 (license license:bsd-3)))
15768 (define-public python2-schematics
15769 (package-with-python2 python-schematics))
15771 (define-public python-odfpy
15773 (name "python-odfpy")
15777 (uri (pypi-uri "odfpy" version))
15780 "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv"))))
15783 (modify-phases %standard-phases
15786 (setenv "PYTHONPATH" (string-append "./build/lib:"
15787 (getenv "PYTHONPATH")))
15788 (invoke "pytest" "-vv"))))))
15789 (build-system python-build-system)
15791 `(("python-pytest" ,python-pytest)))
15793 `(("python-defusedxml" ,python-defusedxml)))
15794 (home-page "https://github.com/eea/odfpy")
15795 (synopsis "Python API and tools to manipulate OpenDocument files")
15796 (description "Collection of libraries and utility programs written in
15797 Python to manipulate OpenDocument 1.2 files.")
15799 ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
15800 ;; number of files with other licenses.
15801 (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
15803 (define-public python2-odfpy
15804 (package-with-python2 python-odfpy))
15806 (define-public python-natsort
15808 (name "python-natsort")
15812 (uri (pypi-uri "natsort" version))
15815 "1ksqfai72dbcfbwx43pxl658j59mx2rvqypjy1fk0ax2qd6lccx6"))))
15816 (build-system python-build-system)
15818 `(#:modules ((guix build utils)
15819 (guix build python-build-system)
15824 (modify-phases %standard-phases
15825 (add-before 'check 'set-cachedir
15826 ;; Tests require write access to $HOME by default
15827 (lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))
15830 (let ((cwd (getcwd)))
15831 (setenv "PYTHONPATH"
15834 (find (cut string-prefix? "lib" <>)
15835 (scandir (string-append cwd "/build")))
15837 (getenv "PYTHONPATH")))
15838 (invoke "pytest" "-v")))))))
15840 `(("python-hypothesis" ,python-hypothesis)
15841 ("python-pytest-cov" ,python-pytest-cov)
15842 ("python-pytest-mock" ,python-pytest-mock)
15843 ("python-pytest" ,python-pytest)))
15844 (propagated-inputs ; TODO: Add python-fastnumbers.
15845 `(("python-pyicu" ,python-pyicu)))
15846 (home-page "https://github.com/SethMMorton/natsort")
15847 (synopsis "Natural sorting for python and shell")
15849 "Natsort lets you apply natural sorting on lists instead of
15850 lexicographical. If you use the built-in @code{sorted} method in python
15851 on a list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4},
15852 @code{a10}]}, it would be returned as @code{[@code{a1}, @code{a10}, @code{a20},
15853 @code{a4}, @code{a9}]}. Natsort provides a function @code{natsorted} that
15854 identifies numbers and sorts them separately from strings. It can also sort
15855 version numbers, real numbers, mixed types and more, and comes with a shell
15856 command @command{natsort} that exposes this functionality in the command line.")
15857 (license license:expat)
15858 (properties `((python2-variant . ,(delay python2-natsort))))))
15860 ;; Natsort 6.x are the last versions with support for Python 2.
15861 (define-public python2-natsort
15862 (let ((base (package-with-python2 (strip-python2-variant python-natsort))))
15863 (package (inherit base)
15867 (uri (pypi-uri "natsort" version))
15870 "1mc9hbh6fv76xyz13frm7dgi05cf74f9j5wvcyjiy5234gylz565"))))
15872 `(("python2-pathlib" ,python2-pathlib)
15873 ,@(package-native-inputs base))))))
15875 (define-public glances
15882 (uri (pypi-uri "Glances" version))
15884 (base32 "020vb38qrb0m3sdr7xjr43cmcfxpnyg4hmb97wgxsa9zvwsjwa5x"))
15885 (modules '((guix build utils)))
15888 ;; Glances phones PyPI for weekly update checks by default.
15889 ;; Disable these. The user can re-enable them if desired.
15890 (substitute* "glances/outdated.py"
15891 (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
15892 (string-append indentation
15893 "self.args.disable_check_update = True\n"
15896 (build-system python-build-system)
15898 `(("python-future" ,python-future)
15899 ("python-psutil" ,python-psutil)))
15900 (home-page "https://github.com/nicolargo/glances")
15901 (synopsis "Cross-platform curses-based monitoring tool")
15903 "Glances is a curses-based monitoring tool for a wide variety of platforms.
15904 Glances uses the PsUtil library to get information from your system. It
15905 monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
15906 (license license:lgpl3+)))
15908 (define-public python-glances
15909 (deprecated-package "python-glances" glances))
15911 (define-public python-graphql-core
15913 (name "python-graphql-core")
15918 (uri (pypi-uri "graphql-core" version))
15921 "0fjv5w2wvgdr8gb27v241bavliipyir9fdz48rsgc3xapm644mn0"))))
15922 (build-system python-build-system)
15924 `(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
15926 (modify-phases %standard-phases
15927 (add-after 'unpack 'patch-hardcoded-version
15928 (lambda _ (substitute*
15930 (("'gevent==1.1rc1'") "'gevent'"))
15933 `(("python-gevent" ,python-gevent)
15934 ("python-mock" ,python-mock)
15935 ("python-pytest-mock" ,python-pytest-mock)))
15937 `(("python-promise" ,python-promise)
15938 ("python-six" ,python-six)))
15939 (home-page "https://github.com/graphql-python/graphql-core")
15940 (synopsis "GraphQL implementation for Python")
15942 "GraphQL implementation for Python. GraphQL is a data query language and
15943 runtime designed and used to request and deliver data to mobile and web apps.
15944 This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
15946 (license license:expat)))
15948 (define-public python-graphql-relay
15950 (name "python-graphql-relay")
15955 (uri (pypi-uri "graphql-relay" version))
15958 "1nv5dxcj59zv31qvl8bd142njmxcmymny2dz3br1l2cpbljbf5i7"))))
15959 (build-system python-build-system)
15961 '(#:tests? #f)) ; The tests are not distributed
15963 `(("python-graphql-core" ,python-graphql-core)
15964 ("python-promise" ,python-promise)
15965 ("python-six" ,python-six)))
15966 (home-page "https://github.com/graphql-python/graphql-relay-py")
15967 (synopsis "Relay implementation for Python")
15969 "This is a library to allow the easy creation of Relay-compliant servers
15970 using the GraphQL Python reference implementation of a GraphQL server. It
15971 should be noted that the code is a exact port of the original
15972 @url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
15974 (license license:expat)))
15976 (define-public python-graphene
15978 (name "python-graphene")
15983 (uri (pypi-uri "graphene" version))
15986 "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
15987 (build-system python-build-system)
15989 `(("python-graphql-core" ,python-graphql-core)
15990 ("python-graphql-relay" ,python-graphql-relay)
15991 ("python-iso8601" ,python-iso8601)
15992 ("python-promise" ,python-promise)
15993 ("python-six" ,python-six)))
15995 `(#:tests? #f)) ; no tests/ in the PyPI tarball
15996 (home-page "https://graphene-python.org/")
15997 (synopsis "GraphQL Framework for Python")
15999 "Graphene is a Python library for building GraphQL schemas/types.
16000 A GraphQL schema describes your data model, and provides a GraphQL server
16001 with an associated set of resolve methods that know how to fetch data.")
16002 (license license:expat)))
16004 (define-public python-nautilus
16006 (name "python-nautilus")
16011 (uri (pypi-uri "nautilus" version))
16014 "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
16015 (build-system python-build-system)
16016 (arguments `(#:tests? #f)) ; fails to import test modules
16018 `(("python-bcrypt" ,python-bcrypt)
16019 ("python-click" ,python-click)
16020 ("python-consul" ,python-consul)
16021 ("python-graphene" ,python-graphene)
16022 ("python-jinja2" ,python-jinja2)
16023 ("python-peewee" ,python-peewee)
16024 ("python-pika" ,python-pika)
16025 ("python-tornado" ,python-tornado)
16026 ("python-wtforms" ,python-wtforms)))
16028 `(("python-nose2" ,python-nose2)))
16029 (home-page "https://github.com/AlecAivazis/nautilus")
16030 (synopsis "Library for creating microservice applications")
16032 "Nautilus is a framework for flux based microservices that looks to
16033 provide extendible implementations of common aspects of a cloud so that you can
16034 focus on building massively scalable web applications.")
16035 (license license:expat)))
16037 (define-public python-random2
16039 (name "python-random2")
16043 (uri (pypi-uri "random2" version ".zip"))
16046 "01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))))
16047 (build-system python-build-system)
16048 (native-inputs `(("unzip" ,unzip)))
16049 (home-page "http://pypi.python.org/pypi/random2")
16050 (synopsis "Python 3 version of the Python 2 @code{random} module")
16052 "This package provides a Python 3 ported version of Python 2.7’s
16053 @code{random} module. It has also been back-ported to work in Python 2.6.
16055 In Python 3, the implementation of @code{randrange()} was changed, so that
16056 even with the same seed you get different sequences in Python 2 and 3.
16058 This package closes that gap, allowing stable random number generation
16059 between the different Python versions.")
16060 (license license:psfl)))
16062 (define-public python2-random2
16063 (package-with-python2 python-random2))
16065 (define-public python-snowballstemmer
16067 (name "python-snowballstemmer")
16071 (uri (pypi-uri "snowballstemmer" version))
16074 "0ligk61idlz8kkgd5hpip5whm172riwglb6xydii7h62yhysqfyz"))))
16075 (build-system python-build-system)
16077 `(;; No tests exist
16079 (home-page "https://github.com/shibukawa/snowball_py")
16080 (synopsis "Snowball stemming library collection for Python")
16081 (description "This package provides 16 word stemmer algorithms generated
16082 from Snowball algorithms. It includes the 15 original ones plus the Poerter
16084 (license license:bsd-3)))
16086 (define-public python2-snowballstemmer
16087 (package-with-python2 python-snowballstemmer))
16089 (define-public python-setproctitle
16091 (name "python-setproctitle")
16096 (uri (pypi-uri "setproctitle" version))
16099 "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2"))))
16100 (build-system python-build-system)
16103 (modify-phases %standard-phases
16104 (add-before 'check 'patch-Makefile
16105 ;; Stricly this is only required for the python2 variant.
16106 ;; But adding a phase in an inherited package seems to be
16107 ;; cumbersum. So we patch even for python3.
16109 (let ((nose (assoc-ref %build-inputs "python2-nose")))
16111 (substitute* "Makefile"
16112 (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ")
16113 (string-append nose "/bin/nosetests "))))
16117 (setenv "PYTHON" (or (which "python3") (which "python")))
16118 (setenv "PYCONFIG" (if (which "python3-config")
16119 "python3-config --embed"
16121 (setenv "CC" "gcc")
16122 ;; No need to extend PYTHONPATH to find the built package, since
16123 ;; the Makefile will build anyway
16124 (invoke "make" "check"))))))
16126 `(("procps" ,procps))) ; required for tests
16127 (home-page "https://github.com/dvarrazzo/py-setproctitle")
16129 "Setproctitle implementation for Python to customize the process title")
16130 (description "The library allows a process to change its title (as displayed
16131 by system tools such as ps and top).
16133 Changing the title is mostly useful in multi-process systems, for
16134 example when a master process is forked: changing the children's title
16135 allows identifying the task each process is busy with. The technique
16136 is used by PostgreSQL and the OpenSSH Server for example.")
16137 (license license:bsd-3)
16138 (properties `((python2-variant . ,(delay python2-setproctitle))))))
16140 (define-public python2-setproctitle
16141 (let ((base (package-with-python2
16142 (strip-python2-variant python-setproctitle))))
16143 (package/inherit base
16144 (native-inputs `(("python2-nose" ,python2-nose)
16145 ,@(package-native-inputs base))))))
16147 (define-public python-validictory
16149 (name "python-validictory")
16154 (uri (pypi-uri "validictory" version))
16157 "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
16158 (build-system python-build-system)
16161 (modify-phases %standard-phases
16162 (add-after 'unpack 'bootstrap
16163 ;; Move the tests out of the package directory to avoid
16166 (rename-file "validictory/tests" "tests")
16167 (delete-file "tests/__init__.py")))
16170 ;; Extend PYTHONPATH so the built package will be found.
16171 (setenv "PYTHONPATH"
16172 (string-append (getcwd) "/build/lib:"
16173 (getenv "PYTHONPATH")))
16174 (invoke "py.test" "-vv" ))))))
16176 `(("python-pytest" ,python-pytest)))
16178 "https://github.com/jamesturk/validictory")
16179 (synopsis "General purpose Python data validator")
16180 (description "It allows validation of arbitrary Python data structures.
16182 The schema format is based on the JSON Schema
16183 proposal (http://json-schema.org), so combined with json the library is also
16184 useful as a validator for JSON data.")
16185 (license license:expat)))
16187 (define-public python2-validictory
16188 (package-with-python2 python-validictory))
16190 (define-public python-pyelftools
16192 (name "python-pyelftools")
16197 (uri (pypi-uri "pyelftools" version))
16200 "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9"))))
16201 (build-system python-build-system)
16204 (modify-phases %standard-phases
16205 (add-before 'check 'set-pythonpath
16207 (setenv "PYTHONPATH"
16210 ":" (getenv "PYTHONPATH")))
16213 "https://github.com/eliben/pyelftools")
16215 "Analyze binary and library file information")
16216 (description "This Python library provides interfaces for parsing and
16217 analyzing two binary and library file formats; the Executable and Linking
16218 Format (ELF), and debugging information in the Debugging With Attributed
16219 Record Format (DWARF).")
16220 (license license:public-domain)))
16222 (define-public python-pyev
16224 (name "python-pyev")
16229 (uri (pypi-uri "pyev" version))
16232 "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
16233 (build-system python-build-system)
16235 `(#:tests? #f ; no test suite
16237 (modify-phases %standard-phases
16238 (add-after 'unpack 'patch
16239 (lambda* (#:key inputs #:allow-other-keys)
16240 (let ((libev (string-append (assoc-ref inputs "libev")
16241 "/lib/libev.so.4")))
16242 (substitute* "setup.py"
16243 (("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
16244 (string-append "libev_dll_name = \"" libev "\"")))))))))
16246 `(("libev" ,libev)))
16247 (home-page "https://github.com/gabrielfalcao/pyev")
16248 (synopsis "Python libev interface")
16249 (description "Pyev provides a Python interface to libev.")
16250 (license license:gpl3)))
16252 (define-public python2-pyev
16253 (package-with-python2 python-pyev))
16255 (define-public python-imagesize
16257 (name "python-imagesize")
16262 (uri (pypi-uri "imagesize" version))
16265 "1cd24x0vqbd6c8ym1n21qc0aj54mfb7rzdqglmwk9xxixajbbxmi"))))
16266 (build-system python-build-system)
16267 (home-page "https://github.com/shibukawa/imagesize_py")
16268 (synopsis "Gets image size of files in various formats in Python")
16270 "This package allows determination of image size from
16271 PNG, JPEG, JPEG2000 and GIF files in pure Python.")
16272 (license license:expat)))
16274 (define-public python2-imagesize
16275 (package-with-python2 python-imagesize))
16277 (define-public python-termstyle
16279 (name "python-termstyle")
16284 (uri (pypi-uri "termstyle" version))
16287 "17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
16288 (build-system python-build-system)
16291 (modify-phases %standard-phases
16294 (invoke "python" "test3.py"))))))
16295 (home-page "https://github.com/gfxmonk/termstyle")
16296 (synopsis "Console text coloring for Python")
16297 (description "This package provides console text coloring for Python.")
16298 (license license:bsd-3)))
16300 (define-public python-argcomplete
16302 (name "python-argcomplete")
16307 (uri (pypi-uri "argcomplete" version))
16310 "0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss"))
16311 (patches (search-patches "python-argcomplete-1.11.1-fish31.patch"))))
16312 (build-system python-build-system)
16314 `(("python-coverage" ,python-coverage)
16315 ("python-flake8" ,python-flake8)
16316 ("python-pexpect" ,python-pexpect)
16317 ("python-wheel" ,python-wheel)
16320 ("bash-full" ,bash))) ;full Bash for 'test_file_completion'
16321 (home-page "https://github.com/kislyuk/argcomplete")
16322 (synopsis "Shell tab completion for Python argparse")
16323 (description "argcomplete provides extensible command line tab completion
16324 of arguments and options for Python scripts using @code{argparse}. It's
16325 particularly useful for programs with many options or sub-parsers that can
16326 dynamically suggest completions; for example, when browsing resources over the
16328 (license license:asl2.0)
16329 (properties `((python2-variant . ,(delay python2-argcomplete))))))
16331 (define-public python2-argcomplete
16332 (let ((variant (package-with-python2
16333 (strip-python2-variant python-argcomplete))))
16334 (package/inherit variant
16336 (substitute-keyword-arguments (package-arguments variant)
16337 ((#:phases phases '%standard-phases)
16338 `(modify-phases ,phases
16339 (add-after 'unpack 'set-my-HOME
16340 (lambda _ (setenv "HOME" "/tmp")))))))
16342 `(("python2-importlib-metadata" ,python2-importlib-metadata)
16343 ,@(package-native-inputs variant))))))
16345 (define-public python-csscompressor
16347 (name "python-csscompressor")
16352 (uri (pypi-uri "csscompressor" version))
16355 "018ssffvlpnc1salmnpyl52c11glzzwj4k9f757hl4pkpjnjp8mg"))))
16356 (build-system python-build-system)
16359 (modify-phases %standard-phases
16362 (invoke "py.test"))))))
16364 `(("python-pytest" ,python-pytest)))
16365 (home-page "https://github.com/sprymix/csscompressor")
16366 (synopsis "Python port of YUI CSS Compressor")
16368 "This package provides a python port of YUI CSS Compressor.")
16369 (license license:bsd-3)))
16371 (define-public python-rcssmin
16373 (name "python-rcssmin")
16378 (uri (pypi-uri "rcssmin" version))
16381 "0w42l4dhxghcz7pj3q7hkxp015mvb8z2cq9sfxbl31npsfavd1ya"))))
16382 (build-system python-build-system)
16385 (modify-phases %standard-phases
16388 (invoke "python" "run_tests.py" "tests"))))))
16389 (home-page "http://opensource.perlig.de/rcssmin/")
16390 (synopsis "CSS Minifier")
16391 (description "The minifier is based on the semantics of the YUI compressor,
16392 which itself is based on the rule list by Isaac Schlueter.")
16393 (license license:asl2.0)))
16395 (define-public python-rjsmin
16397 (name "python-rjsmin")
16402 (uri (pypi-uri "rjsmin" version))
16405 "0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi"))
16406 (modules '((guix build utils)))
16409 (for-each delete-file (find-files "bench" "\\.js$"))
16411 (build-system python-build-system)
16413 '(#:tests? #f ; Not all test files included.
16415 (modify-phases %standard-phases
16417 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
16418 (add-installed-pythonpath inputs outputs)
16420 (invoke "py.test" "-vv" "tests")
16423 `(("python-pytest" ,python-pytest)))
16424 (home-page "http://opensource.perlig.de/rjsmin/")
16425 (synopsis "Javascript Minifier")
16426 (description "@code{rJSmin} is a javascript minifier written in Python. The
16427 minifier is based on the semantics of jsmin.c by Douglas Crockford. The module
16428 is a re-implementation aiming for speed, so it can be used at runtime (rather
16429 than during a preprocessing step).")
16430 (license license:asl2.0)))
16432 (define-public python-xopen
16434 (name "python-xopen")
16439 (uri (pypi-uri "xopen" version))
16442 "17xbrgi23l87yg6h0qcknssp2q812miiy33qw6v45v5gx0jwv5xh"))))
16443 (build-system python-build-system)
16445 `(("python-setuptools-scm" ,python-setuptools-scm)))
16446 (home-page "https://github.com/marcelm/xopen/")
16447 (synopsis "Open compressed files transparently")
16448 (description "This module provides an @code{xopen} function that works like
16449 Python's built-in @code{open} function, but can also deal with compressed files.
16450 Supported compression formats are gzip, bzip2 and, xz, and are automatically
16451 recognized by their file extensions. The focus is on being as efficient as
16452 possible on all supported Python versions.")
16453 (license license:expat)))
16455 (define-public python2-xopen
16456 (let ((base (package-with-python2
16457 (strip-python2-variant python-xopen))))
16458 (package/inherit base
16459 (propagated-inputs `(("python2-bz2file" ,python2-bz2file)
16460 ,@(package-propagated-inputs base))))))
16462 (define-public python-cheetah
16464 (name "python-cheetah")
16469 (uri (pypi-uri "Cheetah3" version))
16472 "0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
16473 (build-system python-build-system)
16475 `(#:modules ((guix build utils)
16476 (guix build python-build-system)
16480 #:phases (modify-phases %standard-phases
16481 (add-after 'unpack 'use-absolute-python
16483 (substitute* "Cheetah/CheetahWrapper.py"
16484 (("#!/usr/bin/env python")
16485 (string-append "#!" (which "python"))))
16487 (add-after 'unpack 'fix-tests
16489 (substitute* "Cheetah/Tests/ImportHooks.py"
16490 (("os.path.dirname\\(__file__\\)")
16491 (string-append "'" (getcwd) "/Cheetah/Tests'")))
16495 (let ((cwd (getcwd)))
16496 (setenv "PYTHONPATH"
16499 (find (cut string-prefix? "lib" <>)
16500 (scandir (string-append cwd "/build")))
16501 ":" (getenv "PYTHONPATH")))
16503 (string-append (getenv "PATH")
16505 (setenv "TMPDIR" "/tmp")
16507 (substitute* "Cheetah/Tests/Test.py"
16508 (("unittest.TextTestRunner\\(\\)")
16509 "unittest.TextTestRunner(verbosity=2)"))
16511 (invoke "python" "Cheetah/Tests/Test.py")))))))
16513 `(("python-markdown" ,python-markdown))) ;optional
16514 (home-page "https://cheetahtemplate.org/")
16515 (synopsis "Template engine")
16516 (description "Cheetah is a text-based template engine and Python code
16519 Cheetah can be used as a standalone templating utility or referenced as
16520 a library from other Python applications. It has many potential uses,
16521 but web developers looking for a viable alternative to ASP, JSP, PHP and
16522 PSP are expected to be its principle user group.
16526 @item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
16528 @item Cleanly separates content, graphic design, and program code.
16529 @item Blends the power and flexibility of Python with a simple template language
16530 that non-programmers can understand.
16531 @item Gives template writers full access to any Python data structure, module,
16532 function, object, or method in their templates.
16533 @item Makes code reuse easy by providing an object-orientated interface to
16534 templates that is accessible from Python code or other Cheetah templates.
16535 One template can subclass another and selectively reimplement sections of it.
16536 @item Provides a simple, yet powerful, caching mechanism that can dramatically
16537 improve the performance of a dynamic website.
16538 @item Compiles templates into optimized, yet readable, Python code.
16540 (license (license:x11-style "file://LICENSE"))))
16542 (define-public python2-cheetah
16543 (package-with-python2 python-cheetah))
16545 (define-public python-dulwich
16547 (name "python-dulwich")
16548 (version "0.19.16")
16552 (uri (list (string-append "https://www.dulwich.io/releases/"
16553 "dulwich-" version ".tar.gz")
16554 (pypi-uri "dulwich" version)))
16557 "0l589jl0lxx59yq0p6vmgw0q0hmfh48iqwyy0x6g1dmz93262igp"))))
16558 (build-system python-build-system)
16561 (modify-phases %standard-phases
16562 (add-before 'check 'fix-tests
16563 (lambda* (#:key inputs #:allow-other-keys)
16564 ;; The tests use Popen with a custom environment which doesn't
16566 (substitute* "dulwich/tests/compat/utils.py"
16567 (("'git'") (string-append "'"
16570 (substitute* '("dulwich/tests/test_repository.py"
16571 "dulwich/tests/test_hooks.py")
16572 (("#!/bin/sh") (string-append "#!" (which "sh"))))
16573 (setenv "TEST_RUNNER" "unittest")
16574 (setenv "PYTHONHASHSEED" "random")
16577 `(("python-fastimport" ,python-fastimport)
16578 ("python-urllib3" ,python-urllib3)))
16580 `(("python-mock" ,python-mock)
16581 ("python-geventhttpclient" ,python-geventhttpclient)
16583 (home-page "https://www.dulwich.io/")
16584 (synopsis "Git implementation in Python")
16585 (description "Dulwich is an implementation of the Git file formats and
16586 protocols written in pure Python.")
16587 ;; Can be used with either license.
16588 (license (list license:asl2.0 license:gpl2+))))
16590 (define-public python-pbkdf2
16592 (name "python-pbkdf2")
16597 (uri (pypi-uri "pbkdf2" version))
16600 "0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
16601 (build-system python-build-system)
16604 (modify-phases %standard-phases
16607 (setenv "PYTHONPATH"
16608 (string-append (getcwd) "/build/lib:"
16609 (getenv "PYTHONPATH")))
16610 (invoke "python" "test/test_pbkdf2.py"))))))
16612 `(("python-pycrypto" ,python-pycrypto))) ; optional
16613 (home-page "https://www.dlitz.net/software/python-pbkdf2/")
16614 (synopsis "Password-based key derivation")
16615 (description "This module implements the password-based key derivation
16616 function, PBKDF2, specified in RSA PKCS#5 v2.0.
16618 PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
16619 is part of the RSA Public Key Cryptography Standards series. The provided
16620 implementation takes a password or a passphrase and a salt value (and
16621 optionally a iteration count, a digest module, and a MAC module) and provides
16622 a file-like object from which an arbitrarily-sized key can be read.")
16623 (license license:expat)))
16625 (define-public python2-pbkdf2
16626 (package-with-python2 python-pbkdf2))
16628 (define-public python-qrcode
16630 (name "python-qrcode")
16635 (uri (pypi-uri "qrcode" version))
16637 (base32 "0sa3n298b9jpz6zn0birnjii3mg9sihjq28n9nzjlzv09y2m6ljh"))))
16638 (build-system python-build-system)
16640 ;; FIXME: Tests require packaging 'pymaging'.
16643 `(("python-lxml" ,python-lxml) ; for SVG output
16644 ("python-pillow" ,python-pillow) ; for PNG output
16645 ("python-six" ,python-six)))
16646 (home-page "https://github.com/lincolnloop/python-qrcode")
16647 (synopsis "QR Code image generator")
16648 (description "This package provides a pure Python QR Code generator
16649 module. It uses the Python Imaging Library (PIL) to allow for the generation
16652 In addition this package provides a command line tool to generate QR codes and
16653 either write these QR codes to a file or do the output as ascii art at the
16655 (license license:bsd-3)))
16657 (define-public python2-qrcode
16658 (package-with-python2 python-qrcode))
16660 (define-public python-rst2ansi
16662 (name "python-rst2ansi")
16667 (uri (pypi-uri "rst2ansi" version))
16670 "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
16671 (build-system python-build-system)
16673 `(("python-docutils" ,python-docutils)))
16674 (home-page "https://github.com/Snaipe/python-rst-to-ansi")
16675 (synopsis "Convert RST to ANSI-decorated console output")
16677 "Python module dedicated to rendering RST (reStructuredText) documents
16678 to ansi-escaped strings suitable for display in a terminal.")
16679 (license license:expat)))
16681 (define-public python-ansi2html
16683 (name "python-ansi2html")
16688 (uri (pypi-uri "ansi2html" version))
16691 "1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
16692 (build-system python-build-system)
16694 `(("python-mock" ,python-mock)
16695 ("python-nose" ,python-nose)))
16697 `(("python-six" ,python-six)))
16698 (home-page "https://github.com/ralphbean/ansi2html")
16699 (synopsis "Convert ANSI-decorated console output to HTML")
16701 "@command{ansi2html} is a Python library and command line utility for
16702 converting text with ANSI color codes to HTML or LaTeX.")
16703 (license license:gpl3+)))
16705 (define-public python2-ansi2html
16706 (package-with-python2 python-ansi2html))
16708 (define-public python-easy-ansi
16710 (name "python-easy-ansi")
16715 (uri (git-reference
16716 (url "https://gitlab.com/joeysbytes/easy-ansi")
16717 (commit (string-append "v" version))))
16718 (file-name (git-file-name name version))
16720 (base32 "0albh55ynzs98qy9pln4qaxw5qhhh3lk09jy9bx19gycrp1c3lc3"))))
16721 (build-system python-build-system)
16722 (home-page "https://gitlab.com/joeysbytes/easy-ansi")
16723 (synopsis "Terminal framework API")
16725 "Easy ANSI is a terminal framework API to give you an easy way to use
16726 colors, cursor control movements, and line/box drawing. It is not meant as a
16727 replacement to more full-featured frameworks (such as curses or urwid), but as
16728 a tool to quickly create nice-looking screens in your terminal window. You
16729 can even create animations with the cursor controls.")
16730 (license license:expat)))
16732 (define-public python-ddt
16734 (name "python-ddt")
16739 (uri (pypi-uri "ddt" version))
16742 "0y2k756qjz1rhpivi60hy29b4bf0bh3wck39i1mn6pkil9k779k4"))))
16743 (build-system python-build-system)
16745 `(("python-pytest" ,python-pytest)))
16747 `(("python-pyyaml" ,python-pyyaml)))
16748 (home-page "https://github.com/datadriventests/ddt")
16749 (synopsis "Data-Driven Tests")
16751 "Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
16752 running it with different test data, and make it appear as multiple test
16754 (license license:expat)))
16756 (define-public python-pycountry
16758 (name "python-pycountry")
16759 (version "18.5.26")
16763 (uri (pypi-uri "pycountry" version))
16766 "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz"))))
16767 (build-system python-build-system)
16768 (home-page "https://bitbucket.org/flyingcircus/pycountry")
16769 (synopsis "ISO databases for languages, countries, currencies, etc.")
16771 "@code{pycountry} provides the ISO databases for the standards:
16773 @item 639-3 (Languages)
16774 @item 3166 (Countries)
16775 @item 3166-3 (Deleted Countries)
16776 @item 3166-2 (Subdivisions of countries)
16777 @item 4217 (Currencies)
16778 @item 15924 (Scripts)
16780 It includes a copy from Debian’s pkg-isocodes and makes the data accessible
16781 through a Python API.")
16782 (license license:lgpl2.1+)))
16784 (define-public python2-pycountry
16785 (package-with-python2 python-pycountry))
16787 (define-public python-pycosat
16789 (name "python-pycosat")
16794 (uri (pypi-uri "pycosat" version ".zip"))
16797 "1vg0f2fwcybpdqv92z0hwdl603n2safh3fqvjjxkksd78r4qg6ac"))))
16798 ;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
16799 (build-system python-build-system)
16801 `(("unzip" ,unzip)))
16802 (home-page "https://github.com/ContinuumIO/pycosat")
16803 (synopsis "Bindings to picosat (a SAT solver)")
16805 "This package provides efficient Python bindings to @code{picosat} on
16806 the C level. When importing pycosat, the @code{picosat} solver becomes part
16807 of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
16808 Problem} (SAT) solver.")
16809 (license license:expat)))
16811 (define-public python2-pycosat
16812 (package-with-python2 python-pycosat))
16814 (define-public python2-ruamel.ordereddict
16816 (name "python2-ruamel.ordereddict")
16821 (uri (pypi-uri "ruamel.ordereddict" version))
16824 "1xmkl8v9l9inm2pyxgc1fm5005yxm7fkd5gv74q7lj1iy5qc8n3h"))))
16825 (build-system python-build-system)
16827 `(#:python ,python-2
16829 (modify-phases %standard-phases
16831 (add-after 'install 'check
16832 (lambda* (#:key inputs outputs #:allow-other-keys)
16833 (add-installed-pythonpath inputs outputs)
16834 (invoke "python" "test/testordereddict.py"))))))
16835 (home-page "https://bitbucket.org/ruamel/ordereddict")
16836 (synopsis "Version of dict that keeps keys in insertion order")
16838 "This is an implementation of an ordered dictionary with @dfn{Key
16839 Insertion Order} (KIO: updates of values do not affect the position of the
16840 key), @dfn{Key Value Insertion Order} (KVIO, an existing key's position is
16841 removed and put at the back). The standard library module @code{OrderedDict},
16842 implemented later, implements a subset of @code{ordereddict} functionality.
16843 Sorted dictionaries are also provided. Currently only with @dfn{Key Sorted
16844 Order} (KSO, no sorting function can be specified, but a transform can be
16845 specified to apply on the key before comparison (e.g. @code{string.lower})).")
16846 (license license:expat)))
16848 (define-public python-pypeg2
16850 (name "python-pypeg2")
16855 (uri (pypi-uri "pyPEG2" version))
16858 "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
16859 (build-system python-build-system)
16860 (propagated-inputs `(("python-lxml" ,python-lxml)))
16862 ;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
16864 (home-page "https://fdik.org/pyPEG/")
16865 (synopsis "Parsing Expression Grammars in Python")
16866 (description "PyPEG is an intrinsic parser interpreter framework for
16867 Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
16868 parse many formal languages.")
16869 (license license:gpl2)))
16871 (define-public python-incremental
16873 (name "python-incremental")
16878 (uri (pypi-uri "incremental" version))
16881 "1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
16882 (build-system python-build-system)
16883 (home-page "https://github.com/hawkowl/incremental")
16884 (synopsis "Library for versioning Python projects")
16885 (description "Incremental is a small library that versions your Python
16887 (license license:expat)))
16889 (define-public python2-incremental
16890 (package-with-python2 python-incremental))
16892 (define-public python-invoke
16894 (name "python-invoke")
16895 (home-page "https://www.pyinvoke.org/")
16899 (uri (pypi-uri "invoke" version))
16902 "0l16v7zcbgi36z6pvmdrs5q4ks8lalcafi5d9nhrpcjzbc3n1igh"))))
16903 (build-system python-build-system)
16905 ;; XXX: Requires many dependencies that are not yet in Guix.
16908 (modify-phases %standard-phases
16909 (add-after 'unpack 'fix-bash-path
16910 (lambda* (#:key inputs #:allow-other-keys)
16911 (let ((bash (assoc-ref inputs "bash")))
16912 (substitute* "invoke/config.py"
16913 (("shell = \"/bin/bash\"")
16914 (string-append "shell = \"" bash "/bin/bash\""))
16918 `(("bash" ,bash-minimal)))
16919 (synopsis "Pythonic task execution")
16921 "Invoke is a Python task execution tool and library, drawing inspiration
16922 from various sources to arrive at a powerful and clean feature set. It is
16923 evolved from the Fabric project, but focuses on local and abstract concerns
16924 instead of servers and network commands.")
16925 (license license:bsd-3)))
16927 (define-public python2-invoke
16928 (package-with-python2 python-invoke))
16930 (define-public python-automat
16932 (name "python-automat")
16936 (uri (pypi-uri "Automat" version))
16939 "0cyzrcqiibwdsp4y0djkllnzab8m5faa4s0d1kpi23k1fhy80ybr"))))
16940 (build-system python-build-system)
16941 ;; We disable the tests because they require python-twisted, while
16942 ;; python-twisted depends on python-automat. Twisted is optional, but the
16943 ;; tests fail if it is not available. Also see
16944 ;; <https://github.com/glyph/automat/issues/71>.
16945 (arguments '(#:tests? #f))
16947 `(("python-m2r" ,python-m2r)
16948 ("python-setuptools-scm" ,python-setuptools-scm)
16949 ("python-graphviz" ,python-graphviz)))
16951 `(("python-six" ,python-six)
16952 ("python-attrs" ,python-attrs)))
16953 (home-page "https://github.com/glyph/Automat")
16954 (synopsis "Self-service finite-state machines")
16955 (description "Automat is a library for concise, idiomatic Python
16956 expression of finite-state automata (particularly deterministic finite-state
16958 (license license:expat)))
16960 (define-public python2-automat
16961 (package-with-python2 python-automat))
16963 (define-public python-m2r
16965 (name "python-m2r")
16969 (uri (pypi-uri "m2r" version))
16972 "16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))))
16973 (build-system python-build-system)
16975 `(("python-docutils" ,python-docutils)
16976 ("python-mistune" ,python-mistune)))
16978 `(("python-pygments" ,python-pygments)
16979 ("python-mock" ,python-mock)))
16980 (home-page "https://github.com/miyakogi/m2r")
16981 (synopsis "Markdown to reStructuredText converter")
16982 (description "M2R converts a markdown file including reST markups to valid
16984 (license license:expat)))
16986 (define-public python2-m2r
16987 (package-with-python2 python-m2r))
16989 (define-public python-constantly
16991 (name "python-constantly")
16995 (uri (pypi-uri "constantly" version))
16998 "0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
16999 (build-system python-build-system)
17000 (home-page "https://github.com/twisted/constantly")
17001 (synopsis "Symbolic constants in Python")
17002 (description "Constantly is a Python library that provides symbolic
17003 constant support. It includes collections and constants with text, numeric,
17004 and bit flag values.")
17005 (license license:expat)))
17007 (define-public python2-constantly
17008 (package-with-python2 python-constantly))
17010 (define-public python-attrs
17012 (name "python-attrs")
17016 (uri (pypi-uri "attrs" version))
17019 "1yzmwi5d197p0qhl7rl4xi9q1w8mk9i3zn6hrl22knbcrb1slspg"))))
17020 (build-system python-build-system)
17022 `(#:modules ((guix build utils)
17023 (guix build python-build-system)
17028 (modify-phases %standard-phases
17030 (lambda* (#:key tests? #:allow-other-keys)
17032 (let ((cwd (getcwd)))
17033 (setenv "PYTHONPATH"
17036 (find (cut string-prefix? "lib" <>)
17037 (scandir (string-append cwd "/build")))
17039 (getenv "PYTHONPATH")))
17040 (invoke "python" "-m" "pytest"))))))))
17042 `(("python-coverage" ,python-coverage)
17043 ("python-hypothesis" ,python-hypothesis)
17044 ("python-pympler" ,python-pympler)
17045 ("python-pytest" ,python-pytest)
17046 ("python-six" ,python-six)
17047 ("python-sphinx" ,python-sphinx)
17048 ("python-zope-interface" ,python-zope-interface)))
17049 (home-page "https://github.com/python-attrs/attrs/")
17050 (synopsis "Attributes without boilerplate")
17051 (description "@code{attrs} is a Python package with class decorators that
17052 ease the chores of implementing the most common attribute-related object
17054 (license license:expat)))
17056 (define-public python2-attrs
17057 (package-with-python2 python-attrs))
17059 (define-public python-attrs-bootstrap
17061 (inherit python-attrs)
17062 (name "python-attrs-bootstrap")
17066 (uri (pypi-uri "attrs" version))
17069 "0wky4h28n7xnr6xv69p9z6kv8bzn50d10c3drmd9ds8gawbcxdzp"))))
17070 (native-inputs `())
17071 (arguments `(#:tests? #f))))
17073 (define-public python2-attrs-bootstrap
17074 (package-with-python2 python-attrs-bootstrap))
17076 (define-public python-cliapp
17078 (name "python-cliapp")
17079 (version "1.20180812.1")
17083 (uri (string-append
17084 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
17085 version ".tar.gz"))
17088 "1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
17089 (build-system python-build-system)
17091 `(;; XXX: The tests only do style and coverage checks, which
17092 ;; fails due to deprecation warnings, etc.
17095 `(("python-coverage-test-runner" ,python-coverage-test-runner)
17096 ("python-pep8" ,python-pep8)))
17098 `(("python-pyaml" ,python-pyaml)))
17099 (home-page "https://liw.fi/cliapp/")
17100 (synopsis "Python framework for command line programs")
17101 (description "@code{cliapp} is a Python framework for command line
17102 programs. It contains the typical stuff such programs need to do, such
17103 as parsing the command line for options, and iterating over input files.")
17104 (license license:gpl2+)))
17106 (define-public python2-cliapp
17107 (package-with-python2 python-cliapp))
17109 (define-public python-ttystatus
17111 (name "python-ttystatus")
17116 (uri (git-reference
17117 (url "http://git.liw.fi/ttystatus")
17118 ;; There are no tags after ttystatus-0.36.
17119 (commit "e9fc573326c5d1348f5fe56263b4f7a8c32f58c9")))
17121 (base32 "0v49q839nrwdm19c83wfmj6n2kw80xslwq9k0n5509r2h7wzjiqj"))
17122 (file-name (git-file-name name version))))
17123 (build-system python-build-system)
17125 `(("python-coverage-test-runner" ,python-coverage-test-runner)
17126 ("python-pep8" ,python-pep8)))
17129 (modify-phases %standard-phases
17130 ;; check phase needs to be run before the build phase. If not,
17131 ;; coverage-test-runner looks for tests for the built source files,
17134 (add-before 'build 'check
17135 (lambda _ (invoke "make" "check"))))))
17136 (home-page "https://liw.fi/ttystatus/")
17137 (synopsis "Python library for showing progress reporting and
17138 status updates on terminals")
17139 (description "@code{ttystatus} is a Python library for showing progress
17140 reporting and status updates on terminals, for command line programs.
17141 Output is automatically adapted to the width of the terminal: truncated
17142 if it does not fit, and resized if the terminal size changes.")
17143 (license license:gpl3+)))
17145 (define-public python2-ttystatus
17146 (package-with-python2 python-ttystatus))
17148 (define-public python2-tracing
17150 (name "python2-tracing")
17155 (uri (string-append
17156 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/python-tracing/snapshot/tracing-"
17157 version ".tar.gz"))
17160 "06cw4zg42fsvqy372vi2whj26w56vzg5axhzwdjc2bgwf03garbw"))))
17161 (build-system python-build-system)
17163 `(#:python ,python-2))
17164 (home-page "https://liw.fi/tracing/")
17165 (synopsis "Python debug logging helper")
17166 (description "@code{python2-tracing} is a python library for
17167 logging debug messages. It provides a way to turn debugging messages
17168 on and off, based on the filename they occur in. It is much faster
17169 than using @code{logging.Filter} to accomplish the same thing, which
17170 matters when code is run in production mode. The actual logging still
17171 happens using the @code{logging} library.")
17172 (license license:gpl3+)))
17174 (define-public python2-larch
17176 (name "python2-larch")
17177 (version "1.20151025")
17181 (uri (string-append
17182 "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/larch/snapshot/larch-"
17183 version ".tar.gz"))
17184 (patches (search-patches
17185 "python2-larch-coverage-4.0a6-compatibility.patch"))
17188 "1p4knkkavlqymgciz2wbcnfrdgdbafhg14maplnk4vbw0q8xs663"))))
17189 (build-system python-build-system)
17191 `(#:python ,python-2
17193 (modify-phases %standard-phases
17194 ;; check phase needs to be run before the build phase. If not,
17195 ;; coverage-test-runner looks for tests for the built source files,
17198 (add-before 'build 'check
17199 (lambda _ (invoke "make" "check"))))))
17201 `(("cmdtest" ,cmdtest)
17202 ("python2-coverage-test-runner" ,python2-coverage-test-runner)))
17204 `(("python2-tracing" ,python2-tracing)))
17205 (home-page "https://liw.fi/larch/")
17206 (synopsis "Python copy-on-write B-tree library")
17207 (description "@code{python2-larch} is an implementation of
17208 particular kind of B-tree, based on research by Ohad Rodeh. See
17209 @url{http://liw.fi/larch/ohad-btrees-shadowing-clones.pdf} for details
17210 on the data structure.
17212 The distinctive feature of this B-tree is that a node is never
17213 (conceptually) modified. Instead, all updates are done by
17214 copy-on-write. This makes it easy to clone a tree, and modify only the
17215 clone, while other processes access the original tree.")
17216 (license license:gpl3+)))
17218 (define-public python-astroid
17220 (name "python-astroid")
17225 (uri (pypi-uri "astroid" version))
17227 (base32 "00xp5gqxidxvgg1bwd91myqzdf2fpb9cjwbdl3p7gwqvlk17hh1g"))
17228 (modules '((guix build utils)))
17231 ;; Check to see if the version pinning has been removed.
17232 (substitute* "astroid/__pkginfo__.py"
17233 (("==1\\.4\\.\\*") ">=1.4.0"))
17235 (build-system python-build-system)
17237 `(("python-lazy-object-proxy" ,python-lazy-object-proxy)
17238 ("python-six" ,python-six)
17239 ("python-wrapt" ,python-wrapt)))
17241 `(("python-dateutil" ,python-dateutil)
17242 ("python-pytest" ,python-pytest)
17243 ("python-pytest-runner" ,python-pytest-runner)))
17244 (home-page "https://github.com/PyCQA/astroid")
17245 (synopsis "Common base representation of python source code for pylint and
17247 (description "@code{python-astroid} provides a common base representation
17248 of python source code for projects such as pychecker, pyreverse, pylint, etc.
17250 It provides a compatible representation which comes from the _ast module. It
17251 rebuilds the tree generated by the builtin _ast module by recursively walking
17252 down the AST and building an extended ast. The new node classes have
17253 additional methods and attributes for different usages. They include some
17254 support for static inference and local name scopes. Furthermore, astroid
17255 builds partial trees by inspecting living objects.")
17256 (license license:lgpl2.1+)
17257 (properties `((python2-variant . ,(delay python2-astroid))))))
17259 (define-public python2-astroid
17260 (let ((base (package-with-python2
17261 (strip-python2-variant python-astroid))))
17262 (package (inherit base)
17263 ;; Version 2.x removes python2 support.
17268 (uri (pypi-uri "astroid" version))
17271 "0fir4b67sm7shcacah9n61pvq313m523jb4q80sycrh3p8nmi6zw"))))
17273 (substitute-keyword-arguments (package-arguments base)
17275 `(modify-phases ,phases
17276 (add-after 'unpack 'remove-spurious-test
17278 ;; https://github.com/PyCQA/astroid/issues/276
17279 (delete-file "astroid/tests/unittest_brain.py")
17283 (invoke"python" "-m" "unittest" "discover"
17284 "-p" "unittest*.py")))))))
17285 (native-inputs `())
17287 `(("python2-backports-functools-lru-cache"
17288 ,python2-backports-functools-lru-cache)
17289 ("python2-enum34" ,python2-enum34)
17290 ("python2-singledispatch" ,python2-singledispatch)
17291 ,@(alist-delete "python-typed-ast"
17292 (package-propagated-inputs base)))))))
17294 (define-public python-isbnlib
17296 (name "python-isbnlib")
17301 (uri (pypi-uri "isbnlib" version))
17304 "0iin0x2xqwyphyyzd0mzrq5v5xm7b6dlbb294k4dywra5qvbrgzm"))))
17305 (build-system python-build-system)
17306 (arguments '(#:tests? #f)) ; No test
17307 (home-page "https://github.com/xlcnd/isbnlib")
17308 (synopsis "Python library to work with ISBN strings")
17309 (description "@code{python-isbnlib} is a (pure) python library that provides
17310 several useful methods and functions to validate, clean, transform, hyphenate and
17311 get metadata for ISBN strings. Its origin was as the core of isbntools. This short
17312 version, is suitable to be include as a dependency in other projects.")
17313 (license license:lgpl3+)))
17315 (define-public python-isort
17317 (name "python-isort")
17322 (uri (git-reference
17323 ;; Tests pass only from the Github sources
17324 (url "https://github.com/timothycrosley/isort")
17326 (file-name (git-file-name name version))
17329 "1q0mlrpki5vjbgwxag5rghljjcfg7mvb0pbkwid80p0sqrxlm2p6"))))
17330 (build-system python-build-system)
17332 `(("python-mock" ,python-mock)
17333 ("python-pytest" ,python-pytest)))
17334 (home-page "https://github.com/timothycrosley/isort")
17335 (synopsis "Python utility/library to sort python imports")
17336 (description "@code{python-isort} is a python utility/library to sort
17337 imports alphabetically, and automatically separated into sections. It
17338 provides a command line utility, a python library and plugins for various
17340 (license license:expat)
17341 (properties `((python2-variant . ,(delay python2-isort))))))
17343 (define-public python2-isort
17344 (let ((base (package-with-python2
17345 (strip-python2-variant python-isort))))
17346 (package/inherit base
17348 `(("python2-futures" ,python2-futures)
17349 ,@(package-native-inputs base))))))
17351 (define-public python2-backports-functools-lru-cache
17353 (name "python2-backports-functools-lru-cache")
17358 ;; only the pypi tarballs contain the necessary metadata
17359 (uri (pypi-uri "backports.functools_lru_cache" version))
17362 "0jidrkk2w6bhjm197plxiaxrav64mgcrign0bfyr7md2ilc5zplg"))))
17363 (build-system python-build-system)
17365 `(("python2-setuptools-scm" ,python2-setuptools-scm)))
17367 `(#:python ,python-2))
17368 (home-page "https://github.com/jaraco/backports.functools_lru_cache")
17369 (synopsis "Backport of functools.lru_cache from Python 3.3")
17370 (description "@code{python2-backports-functools-lru-cache} is a backport
17371 of @code{functools.lru_cache} from python 3.3.")
17372 (license license:expat)))
17374 (define-public python-configparser
17376 (name "python-configparser")
17381 (uri (pypi-uri "configparser" version))
17384 "1priacxym85yjcf68hh38w55nqswaxp71ryjyfdk222kg9l85ln7"))))
17386 `(("python-setuptools_scm" ,python-setuptools-scm)))
17387 (build-system python-build-system)
17388 (home-page "https://github.com/jaraco/configparser/")
17389 (synopsis "Backport of configparser from python 3.5")
17390 (description "@code{python-configparser} is a backport of
17391 @code{configparser} from Python 3.5 so that it can be used directly
17392 in other versions.")
17393 (license license:expat)))
17395 (define-public python2-configparser
17396 (package-with-python2 python-configparser))
17398 (define-public python-iniconfig
17400 (name "python-iniconfig")
17405 (uri (pypi-uri "iniconfig" version))
17408 "0ckzngs3scaa1mcfmsi1w40a1l8cxxnncscrxzjjwjyisx8z0fmw"))))
17409 (build-system python-build-system)
17410 (home-page "https://github.com/RonnyPfannschmidt/iniconfig")
17411 (synopsis "Simple INI-file parser")
17412 (description "The @code{iniconfig} package provides a small and simple
17413 INI-file parser module having a unique set of features; @code{iniconfig}
17415 @item maintains the order of sections and entries;
17416 @item supports multi-line values with or without line-continuations;
17417 @item supports \"#\" comments everywhere;
17418 @item raises errors with proper line-numbers;
17419 @item raises an error when two sections have the same name.
17421 (license license:expat)))
17423 (define-public python-mamba
17425 (name "python-mamba")
17429 (uri (pypi-uri "mamba" version))
17432 "15m4dpnpv9m60pdaygvwgi43fwqaivs3qxfxhspwrp47sbgwdkvm"))))
17433 (build-system python-build-system)
17434 (arguments `(#:tests? #f)) ; No test
17436 `(("python-clint" ,python-clint)
17437 ("python-coverage" ,python-coverage)))
17438 (home-page "https://nestorsalceda.com/mamba/")
17439 (synopsis "Test runner for Python")
17441 "Mamba is a Behaviour-Driven Development tool for Python developers.
17442 Is heavily influenced from RSpec, Mocha, Jasmine or Ginkgo.")
17443 (license license:expat)))
17445 (define-public python-mando
17447 (name "python-mando")
17451 (uri (pypi-uri "mando" version))
17454 "0q6rl085q1hw1wic52pqfndr0x3nirbxnhqj9akdm5zhq2fv3zkr"))))
17455 (build-system python-build-system)
17457 `(("python-rst2ansi" ,python-rst2ansi)
17458 ("python-six" ,python-six)))
17460 `(("python-pytest" ,python-pytest)))
17461 (home-page "https://mando.readthedocs.org/")
17463 "Wrapper around argparse, allowing creation of complete CLI applications")
17465 "This package is a wrapper around argparse, allowing you to write complete CLI
17466 applications in seconds while maintaining all the flexibility.")
17467 (license license:expat)))
17469 (define-public python2-mando
17470 (package-with-python2 python-mando))
17472 (define-public python2-argparse
17474 (name "python2-argparse")
17479 (uri (pypi-uri "argparse" version))
17482 "1r6nznp64j68ih1k537wms7h57nvppq0szmwsaf99n71bfjqkc32"))))
17483 (build-system python-build-system)
17485 `(#:python ,python-2))
17486 (home-page "https://github.com/ThomasWaldmann/argparse/")
17487 (synopsis "Python command-line parsing library")
17489 "This package is mostly for people who want to have @code{argparse} on
17490 older Pythons because it was not part of the standard library back then.")
17491 (license license:psfl)))
17493 (define-public python-fudge
17495 (name "python-fudge")
17496 ;; 0.9.6 is the latest version suitable for testing the "fabric" Python 2
17497 ;; package, which is currently the only use of this package.
17502 (uri (pypi-uri "fudge" version))
17505 "185ia3vr3qk4f2s1a9hdxb8ci4qc0x0xidrad96pywg8j930qs9l"))))
17506 (build-system python-build-system)
17508 `(#:tests? #f)) ;XXX: Tests require the NoseJS Python package.
17509 (home-page "https://github.com/fudge-py/fudge")
17510 (synopsis "Replace real objects with fakes/mocks/stubs while testing")
17512 "Fudge is a Python module for using fake objects (mocks and stubs) to
17515 In readable Python code, you declare the methods available on your fake object
17516 and how they should be called. Then you inject that into your application and
17517 start testing. This declarative approach means you don’t have to record and
17518 playback actions and you don’t have to inspect your fakes after running code.
17519 If the fake object was used incorrectly then you’ll see an informative
17520 exception message with a traceback that points to the culprit.")
17521 (license license:expat)))
17523 (define-public python2-fudge
17524 (package-with-python2 python-fudge))
17526 (define-public python-mwclient
17528 (name "python-mwclient")
17533 ;; The PyPI version wouldn't contain tests.
17534 (uri (git-reference
17535 (url "https://github.com/mwclient/mwclient")
17536 (commit (string-append "v" version))))
17537 (file-name (git-file-name name version))
17539 (base32 "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj"))))
17540 (build-system python-build-system)
17542 `(("python-requests-oauthlib" ,python-requests-oauthlib)
17543 ("python-six" ,python-six)))
17545 `(("python-mock" ,python-mock)
17546 ("python-pytest" ,python-pytest)
17547 ("python-pytest-cov" ,python-pytest-cov)
17548 ("python-pytest-runner" ,python-pytest-runner)
17549 ("python-responses" ,python-responses)))
17550 (home-page "https://github.com/btongminh/mwclient")
17551 (synopsis "MediaWiki API client")
17552 (description "This package provides a MediaWiki API client.")
17553 (license license:expat)))
17555 (define-public python-utils
17557 (name "python-utils")
17561 (uri (pypi-uri "python-utils" version))
17564 "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj"))))
17565 (build-system python-build-system)
17568 (modify-phases %standard-phases
17570 (lambda* (#:key inputs outputs #:allow-other-keys)
17571 (add-installed-pythonpath inputs outputs)
17572 (delete-file "pytest.ini")
17573 (invoke "pytest" "-vv"))))))
17575 `(("pytest-runner" ,python-pytest-runner)
17576 ("pytest" ,python-pytest)
17577 ("six" ,python-six)))
17578 (home-page "https://github.com/WoLpH/python-utils")
17579 (synopsis "Convenient utilities not included with the standard Python install")
17581 "Python Utils is a collection of small Python functions and classes which
17582 make common patterns shorter and easier.")
17583 (license license:bsd-2)))
17585 (define-public python-diff-match-patch
17587 (name "python-diff-match-patch")
17588 (version "20121119")
17592 (uri (pypi-uri "diff-match-patch" version))
17595 "0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
17596 (build-system python-build-system)
17597 (home-page "https://code.google.com/p/google-diff-match-patch")
17598 (synopsis "Synchronize plain text")
17599 (description "Diff Match and Patch libraries offer robust algorithms to
17600 perform the operations required for synchronizing plain text.")
17601 (license license:asl2.0)))
17603 (define-public python2-diff-match-patch
17604 (package-with-python2 python-diff-match-patch))
17606 (define-public python-dirsync
17608 (name "python-dirsync")
17613 (uri (pypi-uri "dirsync" version))
17616 "1gm82jddm1lkazdi8lfsl1b3vi1z0252ng60mzjym8irnv94qfhy"))))
17617 (build-system python-build-system)
17619 `(("six" ,python-six)))
17620 (home-page "https://github.com/tkhyn/dirsync")
17621 (synopsis "Advanced directory tree synchronisation tool")
17622 (description "Advanced directory tree synchronisation tool.")
17623 (license license:expat)))
17625 (define-public python2-dirsync
17626 (package-with-python2 python-dirsync))
17628 (define-public python-levenshtein
17630 (name "python-levenshtein")
17635 (uri (pypi-uri "python-Levenshtein" version))
17638 "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"))))
17639 (build-system python-build-system)
17640 (home-page "https://github.com/ztane/python-Levenshtein")
17641 (synopsis "Fast computation of Levenshtein distance and string similarity")
17643 "The Levenshtein Python C extension module contains functions for fast computation of
17645 @item Levenshtein (edit) distance, and edit operations
17646 @item string similarity
17647 @item approximate median strings, and generally string averaging
17648 @item string sequence and set similarity
17650 It supports both normal and Unicode strings.")
17651 (license license:gpl2+)))
17653 (define-public python2-levenshtein
17654 (package-with-python2 python-levenshtein))
17656 (define-public python-scandir
17658 (name "python-scandir")
17663 (uri (pypi-uri "scandir" version))
17665 (base32 "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd"))))
17666 (build-system python-build-system)
17668 `(#:phases (modify-phases %standard-phases
17671 (invoke "python" "test/run_tests.py"))))))
17672 (home-page "https://github.com/benhoyt/scandir")
17673 (synopsis "Directory iteration function")
17675 "Directory iteration function like os.listdir(), except that instead of
17676 returning a list of bare filenames, it yields DirEntry objects that include
17677 file type and stat information along with the name. Using scandir() increases
17678 the speed of os.walk() by 2-20 times (depending on the platform and file
17679 system) by avoiding unnecessary calls to os.stat() in most cases.
17681 This package is part of the Python standard library since version 3.5.")
17682 (license license:bsd-3)))
17684 (define-public python2-scandir
17685 (package-with-python2 python-scandir))
17687 (define-public python2-stemming
17689 (name "python2-stemming")
17694 (uri (pypi-uri "stemming" version))
17696 (base32 "0ldwa24gnnxhniv0fhygkpc2mwgd93q10ag8rvzayv6hw418frsr"))))
17697 (build-system python-build-system)
17699 `(#:python ,python-2))
17700 (home-page "https://bitbucket.org/mchaput/stemming/overview")
17701 (synopsis "Python implementations of various stemming algorithms")
17703 "Python implementations of the Porter, Porter2, Paice-Husk, and Lovins
17704 stemming algorithms for English. These implementations are straightforward and
17705 efficient, unlike some Python versions of the same algorithms available on the
17706 Web. This package is an extraction of the stemming code included in the Whoosh
17708 (license license:public-domain)))
17710 (define-public python-factory-boy
17712 (name "python-factory-boy")
17717 (uri (pypi-uri "factory_boy" version))
17719 (base32 "1fvin6san5xsjh2c4y18caj2lnmwxlylyqm8mh1yc6rp38wlwr56"))))
17720 (build-system python-build-system)
17722 ;; Tests are not included in the tarball.
17725 `(("faker" ,python-faker)))
17726 (home-page "https://github.com/benhoyt/scandir")
17727 (synopsis "Versatile test fixtures replacement")
17729 "Factory_boy is a fixtures replacement based on thoughtbot’s factory_girl.
17731 As a fixtures replacement tool, it aims to replace static, hard to maintain
17732 fixtures with easy-to-use factories for complex object.
17734 Instead of building an exhaustive test setup with every possible combination
17735 of corner cases, factory_boy allows you to use objects customized for the
17736 current test, while only declaring the test-specific fields")
17737 (license license:expat)))
17739 (define-public python2-factory-boy
17740 (package-with-python2 python-factory-boy))
17742 (define-public python-translate-toolkit
17744 (name "python-translate-toolkit")
17749 (uri (pypi-uri "translate-toolkit" version ".tar.bz2"))
17751 (base32 "1vlkwrg83vb17jc36pmwh2b7jphwf390lz0jw8hakcg16qhwypvq"))))
17752 (build-system python-build-system)
17754 `(("python-pytest" ,python-pytest)
17755 ("python-sphinx" ,python-sphinx)))
17757 `(("python-babel" ,python-babel)
17758 ("python-beautifulsoup4" ,python-beautifulsoup4)
17759 ("python-chardet" ,python-chardet)
17760 ("python-diff-match-patch" ,python-diff-match-patch)
17761 ("python-levenshtein" ,python-levenshtein)
17762 ("python-lxml" ,python-lxml)
17763 ("python-six" ,python-six)
17764 ("python-vobject" ,python-vobject)
17765 ("python-pyyaml" ,python-pyyaml)))
17767 ;; TODO: tests are not run, because they end with
17768 ;; TypeError: parse() missing 2 required positional arguments: 'tree' and
17770 ;; during test setup.
17772 (home-page "https://toolkit.translatehouse.org")
17773 (synopsis "Tools and API for translation and localization engineering")
17775 "Tools and API for translation and localization engineering. It contains
17776 several utilities, as well as an API for building localization tools.")
17777 (license license:gpl2+)))
17779 (define-public python2-translate-toolkit
17780 (package-with-python2 python-translate-toolkit))
17782 (define-public python-packaging
17784 (name "python-packaging")
17789 (uri (pypi-uri "packaging" version))
17790 ;; XXX: The URL in the patch file is wrong, it should be
17791 ;; <https://github.com/pypa/packaging/pull/256>.
17792 (patches (search-patches "python-packaging-test-arch.patch"))
17795 "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
17796 (build-system python-build-system)
17798 `(#:phases (modify-phases %standard-phases
17800 (lambda* (#:key tests? #:allow-other-keys)
17802 (invoke "py.test" "-vv")
17803 (format #t "test suite not run~%"))
17806 `(("python-pretend" ,python-pretend)
17807 ("python-pytest" ,python-pytest)))
17809 `(("python-pyparsing" ,python-pyparsing)
17810 ("python-six" ,python-six)))
17811 (home-page "https://github.com/pypa/packaging")
17812 (synopsis "Core utilities for Python packages")
17813 (description "Packaging is a Python module for dealing with Python packages.
17814 It offers an interface for working with package versions, names, and dependency
17816 ;; From 'LICENSE': This software is made available under the terms of
17817 ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
17818 ;; Contributions to this software is made under the terms of *both* these
17820 (license (list license:asl2.0 license:bsd-2))))
17822 (define-public python2-packaging
17823 (package-with-python2 python-packaging))
17825 ;; Variants with minimal dependencies, for bootstrapping Pytest.
17826 (define-public python-packaging-bootstrap
17830 (name "python-packaging-bootstrap")
17831 (native-inputs '())
17833 `(("python-pyparsing" ,python-pyparsing)))
17834 (arguments '(#:tests? #f)))))
17836 (define-public python2-packaging-bootstrap
17840 (name "python2-packaging-bootstrap")
17841 (native-inputs '())
17843 `(("python-pyparsing" ,python2-pyparsing)))
17846 ,@(package-arguments python2-packaging))))))
17848 (define-public python-relatorio
17850 (name "python-relatorio")
17855 (uri (pypi-uri "relatorio" version))
17858 "1na6hlhz1awi1hbjg1gyclq0khz42iz90wvdjw7mmj655788bpxx"))))
17859 (build-system python-build-system)
17861 `(("python-lxml" ,python-lxml)
17862 ("python-genshi" ,python-genshi)))
17864 `(("python-magic" ,python-magic)))
17865 (home-page "https://relatorio.tryton.org/")
17866 (synopsis "Templating library able to output ODT and PDF files")
17867 (description "Relatorio is a templating library which provides a way to
17868 easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
17869 for more filetypes can be easily added by creating plugins for them.")
17870 (license license:gpl3+)))
17872 (define-public python2-relatorio
17873 (package-with-python2 python-relatorio))
17875 (define-public python-radon
17877 (name "python-radon")
17882 (uri (pypi-uri "radon" version))
17885 "0vfxxzbnz5lxfvp0yxp35g6c8qqnnbhi4dm7shkm1d3d4192q22n"))))
17886 (build-system python-build-system)
17888 `(#:phases (modify-phases %standard-phases
17891 (invoke "python" "radon/tests/run.py"))))))
17893 `(("python-colorama" ,python-colorama)
17894 ("python-flake8-polyfill" ,python-flake8-polyfill)
17895 ("python-mando" ,python-mando)))
17897 `(("python-pytest" ,python-pytest)
17898 ("python-pytest-mock" ,python-pytest-mock)))
17899 (home-page "https://radon.readthedocs.org/")
17900 (synopsis "Code Metrics in Python")
17901 (description "Radon is a Python tool which computes various code metrics.
17902 Supported metrics are:
17904 @item raw metrics: SLOC, comment lines, blank lines, &c.
17905 @item Cyclomatic Complexity (i.e. McCabe’s Complexity)
17906 @item Halstead metrics (all of them)
17907 @item the Maintainability Index (a Visual Studio metric)
17909 (properties `((python2-variant . ,(delay python2-radon))))
17910 (license license:expat)))
17912 (define-public python2-radon
17913 (let ((base (package-with-python2 (strip-python2-variant python-radon))))
17914 (package/inherit base
17916 `(("python-configparser" ,python2-configparser)
17917 ("python-future" ,python2-future)
17918 ,@(package-propagated-inputs base))))))
17920 (define-public python-sure
17922 (name "python-sure")
17927 (uri (pypi-uri "sure" version))
17930 "1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w"))))
17931 (build-system python-build-system)
17933 `(("python-mock" ,python-mock)
17934 ("python-six" ,python-six)))
17936 `(("python-nose" ,python-nose)))
17937 (home-page "https://github.com/gabrielfalcao/sure")
17938 (synopsis "Automated testing library in python for python")
17940 "Sure is a python library that leverages a DSL for writing assertions.
17941 Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
17942 (license license:gpl3+)))
17944 (define-public python2-sure
17945 (package-with-python2 python-sure))
17947 (define-public python2-couleur
17948 ;; This package does not seem to support python3 at all, hence,
17949 ;; only the python2 variant definition is provided.
17951 (name "python2-couleur")
17956 (uri (pypi-uri "couleur" version))
17959 "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
17960 (build-system python-build-system)
17962 `(#:python ,python-2))
17963 (home-page "https://github.com/gabrielfalcao/couleur")
17965 "ANSI terminal tool for python, colored shell and other handy fancy features")
17967 "@code{Couleur} provides python programs a way to use the ANSI features in a unix
17968 terminal such as coloured output in the shell, overwriting output, indentation, etc.")
17969 ;; README.md says ASL2.0, but all source code headers are LGPL3+.
17970 ;; https://github.com/gabrielfalcao/couleur/issues/11
17971 (license license:lgpl3+)))
17973 (define-public python-misaka
17975 (name "python-misaka")
17980 (uri (pypi-uri "misaka" version))
17983 "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"))))
17984 (build-system python-build-system)
17986 `(;; Line 37 of setup.py calls self.run_command('develop')
17987 ;; in the 'check' phase. This command seems to be trying
17989 ;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
17990 ;; for which it does not have the permission to write.
17993 `(("python-cffi" ,python-cffi)))
17994 (home-page "https://github.com/FSX/misaka")
17995 (synopsis "Python binding for Hoedown")
17997 "@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
17998 library written in C. It features a fast HTML renderer and functionality to make custom
17999 renderers (e.g. man pages or LaTeX).")
18000 (license license:expat)))
18002 (define-public python2-misaka
18003 (package-with-python2 python-misaka))
18005 (define-public python2-steadymark
18006 ;; This is forced into being a python2 only variant
18007 ;; due to its dependence on couleur that has no support
18010 (name "python2-steadymark")
18015 (uri (pypi-uri "steadymark" version))
18018 "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
18019 (build-system python-build-system)
18021 `(("python-couleur" ,python2-couleur)
18022 ("python-sure" ,python2-sure)
18023 ("python-misaka" ,python2-misaka)))
18025 `(#:python ,python-2
18027 (modify-phases %standard-phases
18028 (add-before 'build 'patch-setup-py
18030 ;; Update requirements from dependency==version
18031 ;; to dependency>=version
18032 (substitute* "setup.py"
18035 (home-page "https://github.com/gabrielfalcao/steadymark")
18036 (synopsis "Markdown-based test runner for python")
18038 "@code{Steadymark} allows documentation to be written in github-flavoured
18039 markdown. The documentation may contain snippets of code surrounded by python
18040 code blocks and @code{Steadymark} will find these snippets and run them, making
18041 sure that there are no old malfunctional examples in the documentation examples.")
18042 (license license:expat)))
18044 (define-public python-jsonpointer
18046 (name "python-jsonpointer")
18051 (uri (pypi-uri "jsonpointer" version))
18054 "1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
18055 (build-system python-build-system)
18056 (home-page "https://github.com/stefankoegl/python-json-pointer")
18057 (synopsis "Identify specific nodes in a JSON document")
18058 (description "@code{jsonpointer} allows you to access specific nodes
18059 by path in a JSON document (see RFC 6901).")
18060 (license license:bsd-3)))
18062 (define-public python2-jsonpointer
18063 (package-with-python2 python-jsonpointer))
18065 (define-public python-jsonpatch
18067 (name "python-jsonpatch")
18072 ;; pypi version lacks tests.js
18073 (uri (git-reference
18074 (url "https://github.com/stefankoegl/python-json-patch")
18075 (commit (string-append "v" version))))
18076 (file-name (git-file-name name version))
18079 "0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
18080 (build-system python-build-system)
18082 `(("python-jsonpointer" ,python-jsonpointer)))
18083 (home-page "https://github.com/stefankoegl/python-json-patch")
18084 (synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
18085 (description "@code{jsonpatch} is a library and program that allows
18086 applying JSON Patches according to RFC 6902.")
18087 (license license:bsd-3)))
18089 (define-public python2-jsonpatch
18090 (package-with-python2 python-jsonpatch))
18092 (define-public python-jsonpatch-0.4
18093 (package (inherit python-jsonpatch)
18094 (name "python-jsonpatch")
18099 (uri (git-reference
18100 (url "https://github.com/stefankoegl/python-json-patch")
18101 (commit (string-append "v" version))))
18102 (file-name (git-file-name name version))
18105 "1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
18107 (define-public python2-jsonpatch-0.4
18108 (package-with-python2 python-jsonpatch-0.4))
18110 (define-public python-rfc3986
18112 (name "python-rfc3986")
18116 (uri (pypi-uri "rfc3986" version))
18119 "17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
18120 (build-system python-build-system)
18122 `(#:modules ((guix build utils)
18123 (guix build python-build-system)
18128 (modify-phases %standard-phases
18131 (let ((cwd (getcwd)))
18132 (setenv "PYTHONPATH"
18133 (string-append cwd "/build/"
18134 (find (cut string-prefix? "lib" <>)
18135 (scandir (string-append cwd "/build")))
18137 (getenv "PYTHONPATH")))
18138 (invoke "pytest" "-v")))))))
18140 `(("python-pytest" ,python-pytest)))
18141 (home-page "https://rfc3986.readthedocs.io/")
18142 (synopsis "Parse and validate URI references")
18144 "@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
18145 validation and authority parsing. This module also supports RFC@tie{}6874
18146 which adds support for zone identifiers to IPv6 addresses.")
18147 (license license:asl2.0)))
18149 (define-public python2-rfc3986
18150 (package-with-python2 python-rfc3986))
18152 (define-public python-rfc3987
18154 (name "python-rfc3987")
18159 (uri (pypi-uri "rfc3987" version))
18162 "192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
18163 (build-system python-build-system)
18164 (home-page "https://pypi.org/project/rfc3987/")
18165 (synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
18166 (description "@code{rfc3987} provides routines for parsing and
18167 validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
18168 (license license:gpl3+)))
18170 (define-public python2-rfc3987
18171 (package-with-python2 python-rfc3987))
18173 ;; The latest commit contains fixes for building with both python3 and python2.
18174 (define-public python-rfc6555
18175 (let ((commit "1a181b432312731f6742a5eb558dae4761d32361")
18178 (name "python-rfc6555")
18179 (version (git-version "0.0.0" revision commit))
18182 (uri (git-reference
18183 (url "https://github.com/sethmlarson/rfc6555")
18185 (file-name (git-file-name name version))
18188 "1bxl17j9vs69cshcqnlwamr03hnykxqnwz3mdgi6x3s2k4q18npp"))))
18189 (build-system python-build-system)
18192 (modify-phases %standard-phases
18194 (lambda* (#:key tests? #:allow-other-keys)
18196 ;; Other tests require network access.
18197 (invoke "pytest" "tests/test_ipv6.py")
18200 `(("python-pytest" ,python-pytest)))
18201 (home-page "https://pypi.org/project/rfc6555/")
18202 (synopsis "Python implementation of RFC 6555")
18204 "Python implementation of the Happy Eyeballs Algorithm described in RFC
18205 6555. Provided with a single file and dead-simple API to allow easy vendoring
18206 and integration into other projects.")
18207 (properties `((python2-variant . ,(delay python2-rfc6555))))
18208 (license license:asl2.0))))
18210 (define-public python2-rfc6555
18211 (let ((base (package-with-python2
18212 (strip-python2-variant python-rfc6555))))
18213 (package/inherit base
18215 `(("python2-selectors2" ,python2-selectors2))))))
18217 (define-public python-bagit
18219 (name "python-bagit")
18224 (uri (pypi-uri "bagit" version))
18227 "1m6y04qmig0b5hzb35lnaw3d2yfydb7alyr1579yblvgs3da6j7j"))))
18228 (build-system python-build-system)
18230 `(("python-setuptools-scm" ,python-setuptools-scm)
18231 ("python-coverage" ,python-coverage)
18232 ("python-mock" ,python-mock)))
18233 (home-page "https://libraryofcongress.github.io/bagit-python/")
18234 (synopsis "Create and validate BagIt packages")
18235 (description "Bagit is a Python library and command line utility for working
18236 with BagIt style packages. BagIt is a minimalist packaging format for digital
18238 (license license:cc0)))
18240 (define-public python-prov
18242 (name "python-prov")
18247 (uri (pypi-uri "prov" version))
18250 "1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
18251 (build-system python-build-system)
18253 `(("python-dateutil" ,python-dateutil)
18254 ("python-lxml" ,python-lxml)
18255 ("python-networkx" ,python-networkx)
18256 ("python-rdflib" ,python-rdflib)))
18258 `(("graphviz" ,graphviz)
18259 ("python-pydot" ,python-pydot)))
18260 (home-page "https://github.com/trungdong/prov")
18262 "W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
18264 "This package provides a library for W3C Provenance Data Model supporting
18265 PROV-O (RDF), PROV-XML, PROV-JSON import/export.")
18266 (license license:expat)))
18268 (define-public python-arcp
18270 (name "python-arcp")
18275 (uri (pypi-uri "arcp" version))
18278 "1p8mfyjssa6pbn5dp6pyzv9yy6kwm2rz5jn2kjbq5vy9f9wsq5sw"))))
18279 (build-system python-build-system)
18281 `(("python-pytest" ,python-pytest)))
18282 (home-page "http://arcp.readthedocs.io/")
18284 "Archive and Package URI parser and generator")
18286 "@acronym{arcp, Archive and Package} provides functions for creating
18287 @code{arcp_} URIs, which can be used for identifying or parsing hypermedia files
18288 packaged in an archive or package, like a ZIP file. arcp URIs can be used to
18289 consume or reference hypermedia resources bundled inside a file archive or an
18290 application package, as well as to resolve URIs for archive resources within a
18291 programmatic framework. This URI scheme provides mechanisms to generate a
18292 unique base URI to represent the root of the archive, so that relative URI
18293 references in a bundled resource can be resolved within the archive without
18294 having to extract the archive content on the local file system. An arcp URI can
18295 be used for purposes of isolation (e.g. when consuming multiple archives),
18296 security constraints (avoiding \"climb out\" from the archive), or for
18297 externally identiyfing sub-resources referenced by hypermedia formats.")
18298 (license license:asl2.0)))
18300 (define-public python-shellescape
18302 (name "python-shellescape")
18307 (uri (git-reference
18308 (url "https://github.com/chrissimpkins/shellescape")
18309 (commit (string-append "v" version))))
18310 (file-name (git-file-name name version))
18313 "0wzccxk139qx1lb2g70f5b2yh9zq15nr2mgvqdbfabg5zm0vf1qw"))))
18314 (build-system python-build-system)
18317 (modify-phases %standard-phases
18319 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
18321 (add-installed-pythonpath inputs outputs)
18322 (invoke "python" "tests/test_shellescape.py"))
18325 `(("python-pytest" ,python-pytest)))
18326 (home-page "https://github.com/chrissimpkins/shellescape")
18328 "Shell escape a string to safely use it as a token in a shell command")
18330 "The shellescape Python module defines the @code{shellescape.quote()}
18331 function that returns a shell-escaped version of a Python string. This is a
18332 backport of the @code{shlex.quote()} function from Python 3.8 that makes it
18333 accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
18334 (license license:expat)))
18336 (define-public python-validators
18338 (name "python-validators")
18342 (uri (pypi-uri "validators" version))
18345 "024m15j33szd0v8k5l4ccish6n0b4knq81gmb4fq25ynwyyyd4mi"))))
18346 (build-system python-build-system)
18348 '(#:phases (modify-phases %standard-phases
18351 (invoke "pytest" "-vv"))))))
18353 `(("python-decorator" ,python-decorator)
18354 ("python-six" ,python-six)))
18356 `(("python-flake8" ,python-flake8)
18357 ("python-isort" ,python-isort)
18358 ("python-pytest" ,python-pytest)))
18359 (home-page "https://github.com/kvesteri/validators")
18360 (synopsis "Data validation library")
18362 "This package contains validators for different things such as email
18363 addresses, IP addresses, URLs, hashes and more. It has been designed to
18364 be easy to use and not require defining a schema or form just to validate
18366 (license license:expat)))
18368 (define-public python2-validators
18369 (package-with-python2 python-validators))
18371 (define-public python-validate-email
18373 (name "python-validate-email")
18378 (uri (pypi-uri "validate_email" version))
18381 "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
18382 (build-system python-build-system)
18383 (home-page "https://github.com/syrusakbary/validate_email")
18384 (synopsis "Verifies if an email address is valid and really exists")
18385 (description "@code{validate_email} can be used to verify if an email
18386 address is valid and really exists.")
18387 (license license:lgpl3+)))
18389 (define-public python2-validate-email
18390 (package-with-python2 python-validate-email))
18392 (define-public python-flex
18394 (name "python-flex")
18399 (uri (pypi-uri "flex" version))
18402 "00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
18403 (build-system python-build-system)
18405 `(("python-click" ,python-click)
18406 ("python-iso8601" ,python-iso8601)
18407 ("python-jsonpointer" ,python-jsonpointer)
18408 ("python-pyyaml" ,python-pyyaml)
18409 ("python-requests" ,python-requests)
18410 ("python-rfc3987" ,python-rfc3987)
18411 ("python-six" ,python-six)
18412 ("python-validate-email" ,python-validate-email)))
18413 (home-page "https://github.com/pipermerriam/flex")
18414 (synopsis "Validates Swagger schemata")
18415 (description "@code{flex} can be used to validate Swagger schemata.")
18416 (license license:bsd-3)))
18418 (define-public python2-flex
18419 (package-with-python2 python-flex))
18421 (define-public python-marshmallow
18423 (name "python-marshmallow")
18428 (uri (pypi-uri "marshmallow" version))
18431 "0kizhh3mnhpa08wfnsv1gagy22bpxzxszgbiylkhpz1d8qvwrykk"))))
18432 (build-system python-build-system)
18434 `(("python-dateutil" ,python-dateutil)
18435 ("python-simplejson" ,python-simplejson)))
18437 `(("python-pytest" ,python-pytest)
18438 ("python-pytz" ,python-pytz)))
18439 (home-page "https://github.com/marshmallow-code/marshmallow")
18440 (synopsis "Convert complex datatypes to and from native
18441 Python datatypes.")
18442 (description "@code{marshmallow} provides a library for converting
18443 complex datatypes to and from native Python datatypes.")
18444 (license license:expat)))
18446 (define-public python-apispec
18448 (name "python-apispec")
18453 (uri (pypi-uri "apispec" version))
18456 "12n4w5zkn4drcn8izq68vmixmqvz6abviqkdn4ip0kaax3jjh3in"))))
18457 (build-system python-build-system)
18459 '(#:phases (modify-phases %standard-phases
18460 (add-after 'unpack 'disable-prance-tests
18462 ;; Disable validation tests since they require the
18463 ;; optional 'prance' library which is not yet in Guix.
18464 (substitute* "tests/test_ext_marshmallow_openapi.py"
18465 (("def test_openapi_tools_validate.*" all)
18466 (string-append "@pytest.mark.xfail\n" all)))))
18469 (setenv "PYTHONPATH"
18470 (string-append "./build/lib:"
18471 (getenv "PYTHONPATH")))
18472 (invoke "pytest" "-vv"))))))
18474 `(("python-pyyaml" ,python-pyyaml)))
18476 `(("python-pytest" ,python-pytest)
18477 ("python-marshmallow" ,python-marshmallow)))
18478 (home-page "https://github.com/marshmallow-code/apispec")
18479 (synopsis "Swagger/OpenAPI specification generator")
18480 (description "@code{python-apispec} is a pluggable API specification
18481 generator. It currently supports the OpenAPI specification, formerly known
18483 (license license:expat)))
18485 (define-public python-flasgger
18487 (name "python-flasgger")
18492 (uri (git-reference
18493 (url "https://github.com/rochacbruno/flasgger")
18495 (file-name (git-file-name name version))
18497 (base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn"))))
18498 (build-system python-build-system)
18501 (modify-phases %standard-phases
18503 (lambda* (#:key inputs outputs #:allow-other-keys)
18504 (substitute* "Makefile"
18505 (("flake8 flasgger --ignore=F403")
18506 "flake8 flasgger --ignore=E731,F403"))
18507 (setenv "PYTHONPATH" (string-append (getcwd)
18509 (getenv "PYTHONPATH")))
18510 (invoke "py.test"))))))
18512 `(("python-flask" ,python-flask)
18513 ("python-pyyaml" ,python-pyyaml)
18514 ("python-jsonschema" ,python-jsonschema)
18515 ("python-mistune" ,python-mistune)
18516 ("python-six" ,python-six)))
18518 `(("python-decorator" ,python-decorator)
18519 ("python-flake8" ,python-flake8)
18520 ("python-flask-restful" ,python-flask-restful)
18521 ("python-flex" ,python-flex)
18522 ("python-pytest" ,python-pytest)
18523 ("python-pytest-cov" ,python-pytest-cov)
18524 ("python-marshmallow" ,python-marshmallow)
18525 ("python-apispec" ,python-apispec)))
18526 (home-page "https://github.com/rochacbruno/flasgger/")
18527 (synopsis "Extract Swagger specs from your Flask project")
18528 (description "@code{python-flasgger} allows extracting Swagger specs
18529 from your Flask project. It is a fork of Flask-Swagger.")
18530 (license license:expat)))
18532 (define-public python-swagger-spec-validator
18534 (name "python-swagger-spec-validator")
18539 (uri (pypi-uri "swagger-spec-validator" version))
18542 "11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp"))))
18543 (build-system python-build-system)
18545 `(("python-jsonschema" ,python-jsonschema)
18546 ("python-pyyaml" ,python-pyyaml)
18547 ("python-six" ,python-six)))
18549 "https://github.com/Yelp/swagger_spec_validator")
18550 (synopsis "Validation of Swagger specifications")
18551 (description "@code{swagger_spec_validator} provides a library for
18552 validating Swagger API specifications.")
18553 (license license:asl2.0)))
18555 (define-public python2-swagger-spec-validator
18556 (package-with-python2 python-swagger-spec-validator))
18558 (define-public python-apache-libcloud
18560 (name "python-apache-libcloud")
18565 (uri (pypi-uri "apache-libcloud" version))
18568 "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v"))))
18569 (build-system python-build-system)
18572 (modify-phases %standard-phases
18573 (add-after 'unpack 'patch-ssh
18574 (lambda* (#:key inputs #:allow-other-keys)
18575 (substitute* "libcloud/compute/ssh.py"
18576 (("'ssh'") (string-append "'" (assoc-ref inputs "openssh")
18579 (add-after 'unpack 'patch-tests
18581 (substitute* "libcloud/test/compute/test_ssh_client.py"
18582 (("class ShellOutSSHClientTests")
18583 "@unittest.skip(\"Guix container doesn't have ssh service\")
18584 class ShellOutSSHClientTests"))
18586 (add-before 'check 'copy-secret
18588 (copy-file "libcloud/test/secrets.py-dist"
18589 "libcloud/test/secrets.py")
18592 `(("openssh" ,openssh)))
18594 `(("python-paramiko" ,python-paramiko)
18595 ("python-requests" ,python-requests)))
18597 `(("python-lockfile" ,python-lockfile)
18598 ("python-mock" ,python-mock)
18599 ("python-pytest" ,python-pytest)
18600 ("python-pytest-runner" ,python-pytest-runner)
18601 ("python-requests-mock" ,python-requests-mock)))
18602 (home-page "https://libcloud.apache.org/")
18603 (synopsis "Unified Cloud API")
18604 (description "@code{libcloud} is a Python library for interacting with
18605 many of the popular cloud service providers using a unified API.")
18606 (license license:asl2.0)))
18608 (define-public python-smmap
18610 (name "python-smmap")
18615 (uri (pypi-uri "smmap" version))
18617 (base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
18618 (build-system python-build-system)
18620 `(("python-nosexcover" ,python-nosexcover)))
18621 (home-page "https://github.com/Byron/smmap")
18622 (synopsis "Python sliding window memory map manager")
18623 (description "@code{smmap} is a pure Python implementation of a sliding
18624 window memory map manager.")
18625 (license license:bsd-3)))
18627 (define-public python-smmap2
18628 (deprecated-package "python-smmap2" python-smmap))
18630 (define-public python2-smmap
18631 (package-with-python2 python-smmap))
18633 (define-public python2-smmap2
18634 (deprecated-package "python2-smmap2" python2-smmap))
18636 (define-public python-regex
18638 (name "python-regex")
18639 (version "2020.6.8")
18642 (uri (pypi-uri "regex" version))
18645 "1b3k0zi1pd99q5mk7ri7vcx2y1mq5inm9hk8dryqyhrpkmh4xdp9"))))
18646 (build-system python-build-system)
18649 (modify-phases %standard-phases
18651 (lambda* (#:key inputs outputs #:allow-other-keys)
18652 (add-installed-pythonpath inputs outputs)
18653 (invoke "python" "-c"
18654 "from regex.test_regex import test_main; test_main()"))))))
18655 (home-page "https://bitbucket.org/mrabarnett/mrab-regex")
18656 (synopsis "Alternative regular expression module")
18657 (description "This regular expression implementation is backwards-
18658 compatible with the standard @code{re} module, but offers additional
18659 functionality like full case-folding for case-insensitive matches in Unicode.")
18660 (license license:psfl)))
18662 (define-public python2-regex
18663 (package-with-python2 python-regex))
18665 (define-public python-pyopengl
18667 (name "python-pyopengl")
18672 (uri (pypi-uri "PyOpenGL" version))
18675 "091lp9bpqi8yf1nmyg19xmvw611lrzq2q94cl1k5gnlh0c6vl1s1"))))
18676 (build-system python-build-system)
18679 ("freeglut" ,freeglut)
18682 `(#:tests? #f ; Tests fail: AttributeError: 'GLXPlatform' object has no
18683 ;attribute 'OSMesa'
18685 (modify-phases %standard-phases
18686 (add-before 'build 'fix-paths
18687 (lambda* (#:key inputs outputs #:allow-other-keys)
18688 (substitute* '("OpenGL/platform/ctypesloader.py")
18689 (("filenames_to_try = \\[\\]") "filenames_to_try = [name]"))
18690 (substitute* '("OpenGL/platform/glx.py" "tests/check_glut_load.py")
18692 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'"))
18694 (string-append "'" (assoc-ref inputs "glu") "/lib/libGLU.so'"))
18696 (string-append "'" (assoc-ref inputs "freeglut") "/lib/libglut.so',"))
18698 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv1_CM.so'"))
18700 (string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv2.so'")))
18701 ;; Not providing libgle. It seems to be very old.
18703 (home-page "http://pyopengl.sourceforge.net")
18704 (synopsis "Standard OpenGL bindings for Python")
18706 "PyOpenGL is the most common cross platform Python binding to OpenGL and
18707 related APIs. The binding is created using the standard @code{ctypes}
18709 (license license:bsd-3)))
18711 (define-public python-pyopengl-accelerate
18713 (inherit python-pyopengl)
18714 (name "python-pyopengl-accelerate")
18719 (uri (pypi-uri "PyOpenGL-accelerate" version))
18722 "01iggy5jwxv7lxnj51zbmlbhag9wcb7dvrbwgi97i90n0a5m3r8j"))))
18725 ("python-numpy" ,python-numpy))) ; for cython module
18726 ; numpy_formathandler, thus not propagated
18730 (modify-phases %standard-phases
18731 (delete 'fix-paths))))
18732 (synopsis "Acceleration code for PyOpenGL")
18734 "This is the Cython-coded accelerator module for PyOpenGL.")))
18736 (define-public python-rencode
18738 (name "python-rencode")
18743 (uri (pypi-uri "rencode" version))
18746 "0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
18747 (build-system python-build-system)
18750 (modify-phases %standard-phases
18751 (add-before 'check 'delete-bogus-test
18752 ;; This test requires /home/aresch/Downloads, which is not provided by
18753 ;; the build environment.
18755 (delete-file "rencode/t.py")
18757 (native-inputs `(("pkg-config" ,pkg-config)
18758 ("python-cython" ,python-cython)))
18759 (home-page "https://github.com/aresch/rencode")
18760 (synopsis "Serialization of heterogeneous data structures")
18762 "The @code{rencode} module is a data structure serialization library,
18763 similar to @code{bencode} from the BitTorrent project. For complex,
18764 heterogeneous data structures with many small elements, r-encoding stake up
18765 significantly less space than b-encodings. This version of rencode is a
18766 complete rewrite in Cython to attempt to increase the performance over the
18767 pure Python module.")
18768 (license license:bsd-3)))
18770 (define-public python2-rencode
18771 (package-with-python2 python-rencode))
18773 (define-public python-xenon
18775 (name "python-xenon")
18780 (uri (pypi-uri "xenon" version))
18783 "0nv207ql2wmh9q62503np056c4vf1c1hlsi5cvv5p5kx574k6r2y"))))
18784 (build-system python-build-system)
18786 `(("python-pyyaml" ,python-pyyaml)
18787 ("python-radon" ,python-radon)
18788 ("python-requests" ,python-requests)
18789 ("python-flake8" ,python-flake8)
18790 ("python-tox" ,python-tox)))
18792 `(#:tests? #f ;test suite not shipped with the PyPI archive
18794 (modify-phases %standard-phases
18795 (add-before 'build 'patch-test-requirements
18797 ;; Remove httpretty dependency for tests.
18798 (substitute* "setup.py"
18799 (("httpretty") ""))
18801 (home-page "https://xenon.readthedocs.org/")
18802 (synopsis "Monitor code metrics for Python on your CI server")
18804 "Xenon is a monitoring tool based on Radon. It monitors code complexity.
18805 Ideally, @code{xenon} is run every time code is committed. Through command
18806 line options, various thresholds can be set for the complexity of code. It
18807 will fail (i.e. it will exit with a non-zero exit code) when any of these
18808 requirements is not met.")
18809 (license license:expat)))
18811 (define-public python-pysocks
18813 (name "python-pysocks")
18818 (uri (pypi-uri "PySocks" version))
18821 "184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
18822 (build-system python-build-system)
18823 (arguments `(#:tests? #f))
18824 (home-page "https://github.com/Anorov/PySocks")
18825 (synopsis "SOCKS client module")
18826 (description "@code{pysocks} is an updated and semi-actively maintained
18827 version of @code{SocksiPy} with bug fixes and extra features.")
18828 (license license:bsd-3)))
18830 (define-public python2-pysocks
18831 (package-with-python2 python-pysocks))
18833 (define-public python-pydiff
18835 (name "python-pydiff")
18840 (uri (pypi-uri "pydiff" version))
18843 "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
18844 (build-system python-build-system)
18845 (home-page "https://github.com/myint/pydiff")
18846 (synopsis "Library to diff two Python files at the bytecode level")
18848 "@code{pydiff} makes it easy to look for actual code changes while
18849 ignoring formatting changes.")
18850 (license license:expat)))
18852 (define-public python2-pydiff
18853 (package-with-python2 python-pydiff))
18855 (define-public python-pydub
18857 (name "python-pydub")
18862 (uri (pypi-uri "pydub" version))
18865 "0sfwfq7yjv4bl3yqbmizszscafvwf4zr40hzbsy7rclvzyznh333"))))
18866 (build-system python-build-system)
18869 (modify-phases %standard-phases
18870 (add-after 'unpack 'fix-ffmpeg-path
18871 (lambda* (#:key inputs #:allow-other-keys)
18872 (let ((ffmpeg (assoc-ref inputs "ffmpeg")))
18873 (substitute* '("pydub/utils.py")
18874 (("return \"ffmpeg\"")
18875 (string-append "return \"" ffmpeg "/bin/ffmpeg\""))
18876 (("return \"ffplay\"")
18877 (string-append "return \"" ffmpeg "/bin/ffplay\""))
18878 (("return \"ffprobe\"")
18879 (string-append "return \"" ffmpeg "/bin/ffprobe\""))
18880 (("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't find ff"))
18882 (home-page "https://pydub.com")
18884 `(("ffmpeg" ,ffmpeg)))
18886 `(("python-scipy" ,python-scipy)))
18887 (synopsis "Manipulate audio with a high level interface in Python")
18889 "@code{pydub} makes it easy to manipulate audio in Python. It relies on
18890 @code{ffmpeg} to open various audio formats.")
18891 (license license:expat))) ; MIT license
18893 (define-public python-tqdm
18895 (name "python-tqdm")
18900 (uri (pypi-uri "tqdm" version))
18903 "093v4c2x5hpigv47zvyxl8wh10y2yd2gvz3l9vchn0zsp8hv2pzk"))))
18904 (build-system python-build-system)
18906 '(#:phases (modify-phases %standard-phases
18908 (lambda* (#:key inputs outputs #:allow-other-keys)
18909 (add-installed-pythonpath inputs outputs)
18910 ;; This invokation is taken from tox.ini.
18911 (invoke "nosetests" "--ignore-files=\"test_perf.py\""
18912 "-d" "-v" "tqdm/"))))))
18914 `(("python-nose" ,python-nose)))
18915 (home-page "https://github.com/tqdm/tqdm")
18916 (synopsis "Fast, extensible progress meter")
18918 "Make loops show a progress bar on the console by just wrapping any
18919 iterable with @code{|tqdm(iterable)|}. Offers many options to define
18920 design and layout.")
18921 (license (list license:mpl2.0 license:expat))))
18923 (define-public python2-tqdm
18924 (package-with-python2 python-tqdm))
18926 (define-public python-pkginfo
18928 (name "python-pkginfo")
18933 (uri (pypi-uri "pkginfo" version))
18936 "1d1xn1xmfvz0jr3pj8irdwnwby3r13g0r2gwklr1q5y68p5p16h2"))))
18937 (build-system python-build-system)
18940 (modify-phases %standard-phases
18941 (add-before 'check 'patch-tests
18943 (substitute* "pkginfo/tests/test_installed.py"
18944 (("test_ctor_w_package_no_PKG_INFO")
18945 "_test_ctor_w_package_no_PKG_INFO"))
18948 "https://code.launchpad.net/~tseaver/pkginfo/trunk")
18950 "Query metadatdata from sdists, bdists, and installed packages")
18952 "API to query the distutils metadata written in @file{PKG-INFO} inside a
18953 source distriubtion (an sdist) or a binary distribution (e.g., created by
18954 running bdist_egg). It can also query the EGG-INFO directory of an installed
18955 distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
18956 created by running @code{python setup.py develop}).")
18957 (license license:expat)))
18959 (define-public python2-pkginfo
18960 (package-with-python2 python-pkginfo))
18962 (define-public python-twine
18964 (name "python-twine")
18969 (uri (pypi-uri "twine" version))
18971 (base32 "11rpd653zcgzkq3sgwkzs3mpxl3r5rij59745ni84ikv8smjmlm3"))))
18972 (build-system python-build-system)
18974 `(("python-tqdm" ,python-tqdm)
18975 ("python-packaging" ,python-packaging)
18976 ("python-pkginfo" ,python-pkginfo)
18977 ("python-readme-renderer" ,python-readme-renderer)
18978 ("python-requests" ,python-requests)
18979 ("python-requests-toolbelt" ,python-requests-toolbelt)))
18980 (home-page "https://github.com/pypa/twine")
18981 (synopsis "Collection of utilities for interacting with PyPI")
18983 "@code{twine} currently supports registering projects and uploading
18984 distributions. It authenticates the user over HTTPS, allows them to pre-sign
18985 their files and supports any packaging format (including wheels).")
18986 (license license:asl2.0)))
18988 (define-public python2-twine
18989 (package-with-python2 python-twine))
18991 (define-public python-linecache2
18993 (name "python-linecache2")
18998 (uri (pypi-uri "linecache2" version))
19001 "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
19002 (build-system python-build-system)
19004 `(;; The tests depend on unittest2, and our version is a bit too old.
19007 `(("python-pbr" ,python-pbr-minimal)))
19009 "https://github.com/testing-cabal/linecache2")
19010 (synopsis "Backports of the linecache module")
19012 "The linecache module allows one to get any line from any file, while
19013 attempting to optimize internally, using a cache, the common case where many
19014 lines are read from a single file.")
19015 (license license:psfl)))
19017 (define-public python2-linecache2
19018 (package-with-python2 python-linecache2))
19020 (define-public python-traceback2
19022 (name "python-traceback2")
19027 (uri (pypi-uri "traceback2" version))
19030 "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
19031 (build-system python-build-system)
19033 `(;; python-traceback2 and python-unittest2 depend on one another.
19036 `(("python-pbr" ,python-pbr-minimal)))
19038 `(("python-linecache2" ,python-linecache2)))
19040 "https://github.com/testing-cabal/traceback2")
19041 (synopsis "Backports of the traceback module")
19043 "This module provides a standard interface to extract, format and print
19044 stack traces of Python programs. It exactly mimics the behavior of the Python
19045 interpreter when it prints a stack trace.")
19046 (license license:psfl)))
19048 (define-public python2-traceback2
19049 (package-with-python2 python-traceback2))
19051 (define-public python-ratelimiter
19053 (name "python-ratelimiter")
19058 (uri (pypi-uri "ratelimiter" version))
19061 "1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
19062 (build-system python-build-system)
19064 '(#:tests? #f)) ; There are no tests in the pypi archive.
19065 (home-page "https://github.com/RazerM/ratelimiter")
19066 (synopsis "Simple rate limiting object")
19068 "The @code{ratelimiter} module ensures that an operation will not be
19069 executed more than a given number of times during a given period.")
19070 (license license:asl2.0)))
19072 (define-public python2-ratelimiter
19073 (package-with-python2 python-ratelimiter))
19075 (define-public python-dukpy
19077 (name "python-dukpy")
19082 (uri (git-reference
19083 (url "https://github.com/kovidgoyal/dukpy")
19084 (commit (string-append "v" version))))
19085 (file-name (git-file-name name version))
19087 (base32 "13h21nqzasv4zj32xs61brmc106pr2cx243672crcmwxxnjgaxls"))))
19088 (build-system python-build-system)
19089 (home-page "https://github.com/kovidgoyal/dukpy")
19090 (synopsis "Run JavaScript in python")
19092 "dukpy is a JavaScript runtime environment for Python using the duktape
19093 embeddable JavaScript engine.")
19094 ;; Dukpy is licensed under MIT like the embedded duktape library,
19095 ;; with 'errors.c' as GPL3.
19096 (license (list license:expat license:gpl3))))
19098 (define-public python2-dukpy
19099 (package-with-python2 python-dukpy))
19101 (define-public python-jsonrpclib-pelix
19103 (name "python-jsonrpclib-pelix")
19108 (uri (pypi-uri "jsonrpclib-pelix" version))
19111 "0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
19112 (build-system python-build-system)
19114 `(#:tests? #f)) ; no tests in PyPI tarball
19115 (home-page "https://github.com/tcalmant/jsonrpclib/")
19116 (synopsis "JSON-RPC 2.0 client library for Python")
19118 "This library implements the JSON-RPC v2.0
19119 specification (backwards-compatible) as a client library for Python. This
19120 version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
19122 (license license:asl2.0)))
19124 (define-public python2-jsonrpclib-pelix
19125 (package-with-python2 python-jsonrpclib-pelix))
19127 (define-public python-setuptools-scm-git-archive
19129 (name "python-setuptools-scm-git-archive")
19134 (uri (pypi-uri "setuptools_scm_git_archive" version))
19137 "1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
19138 (build-system python-build-system)
19140 `(("python-pytest" ,python-pytest)))
19142 `(("python-setuptools-scm" ,python-setuptools-scm)))
19143 (home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
19144 (synopsis "Setuptools_scm plugin for git archives")
19146 "The setuptools_scm_git_archive package is a plugin to
19147 setuptools_scm, which supports obtaining versions from git archives that
19148 belong to tagged versions.")
19149 (license license:expat)))
19151 (define-public python2-setuptools-scm-git-archive
19152 (package-with-python2 python-setuptools-scm-git-archive))
19154 (define-public python-setuptools-git
19156 (name "python-setuptools-git")
19161 (uri (pypi-uri "setuptools-git" version))
19164 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
19165 (build-system python-build-system)
19168 (modify-phases %standard-phases
19169 ;; This is needed for tests.
19170 (add-after 'unpack 'configure-git
19172 (setenv "HOME" "/tmp")
19173 (invoke "git" "config" "--global" "user.email" "guix")
19174 (invoke "git" "config" "--global" "user.name" "guix")
19177 `(("git" ,git-minimal)))
19178 (home-page "https://github.com/msabramo/setuptools-git")
19179 (synopsis "Setuptools revision control system plugin for Git")
19181 "This package provides a plugin for Setuptools for revision control with
19183 (license license:bsd-3)))
19185 (define-public python-pyclipper
19187 (name "python-pyclipper")
19188 (version "1.1.0.post3")
19192 (uri (pypi-uri "pyclipper" version ".zip"))
19194 (base32 "164yksvqwqvwzh8f8lq92asg87hd8rvcy2xb5vm4y4ccvd5xgb7i"))
19195 (modules '((guix build utils)))
19198 ;; This file is generated by Cython.
19199 (delete-file "pyclipper/pyclipper.cpp") #t))))
19200 (build-system python-build-system)
19203 (modify-phases %standard-phases
19204 (add-before 'build 'cythonize-sources
19206 (with-directory-excursion "pyclipper"
19207 (invoke "cython" "--cplus" "pyclipper.pyx")))))))
19209 `(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
19211 `(("python-cython" ,python-cython)
19212 ("python-pytest" ,python-pytest)
19213 ("python-pytest-runner" ,python-pytest-runner)
19214 ("python-unittest2" ,python-unittest2)
19216 (home-page "https://github.com/greginvm/pyclipper")
19217 (synopsis "Wrapper for Angus Johnson's Clipper library")
19219 "Pyclipper is a Cython wrapper for the C++ translation of the
19220 Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
19221 (license license:expat)))
19223 (define-public python2-pyclipper
19224 (package-with-python2 python-pyclipper))
19226 (define-public python2-booleanoperations
19228 (name "python2-booleanoperations")
19233 (uri (pypi-uri "booleanOperations" version ".zip"))
19236 "1hw42fazdpvsn77glx96hwsj9l17mvx37sc5707s08y5w6fx16mn"))))
19237 (build-system python-build-system)
19239 `(#:python ,python-2))
19242 ("python2-pytest" ,python2-pytest)
19243 ("python2-pytest-runner" ,python2-pytest-runner)))
19245 `(("python-fonttools" ,python2-fonttools)
19246 ("python-pyclipper" ,python2-pyclipper)
19247 ("python-ufolib" ,python2-ufolib)))
19248 (home-page "https://github.com/typemytype/booleanOperations")
19249 (synopsis "Boolean operations on paths")
19251 "BooleanOperations provides a Python library that enables
19252 boolean operations on paths.")
19253 (license license:expat)))
19255 (define-public python-tempdir
19257 (name "python-tempdir")
19262 (uri (pypi-uri "tempdir" version))
19265 "13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
19266 (build-system python-build-system)
19267 (home-page "https://pypi.org/project/tempdir/")
19269 ;; the package has no tests
19271 (synopsis "Python library for managing temporary directories")
19273 "This library manages temporary directories that are automatically
19274 deleted with all their contents when they are no longer needed. It is
19275 particularly convenient for use in tests.")
19276 (license license:expat)))
19278 (define-public python2-tempdir
19279 (package-with-python2 python-tempdir))
19281 (define-public python-activepapers
19283 (name "python-activepapers")
19288 (uri (pypi-uri "ActivePapers.Py" version))
19291 "12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
19292 (build-system python-build-system)
19294 `(#:modules ((ice-9 ftw)
19297 (guix build python-build-system))
19300 (modify-phases %standard-phases
19301 (add-after 'unpack 'delete-python2-code
19303 (for-each delete-file
19304 '("lib/activepapers/builtins2.py"
19305 "lib/activepapers/standardlib2.py"
19306 "lib/activepapers/utility2.py"))))
19309 ;; Deactivate the test cases that download files
19310 (setenv "NO_NETWORK_ACCESS" "1")
19311 ;; For some strange reason, some tests fail if nosetests runs all
19312 ;; test modules in a single execution. They pass if each test
19313 ;; module is run individually.
19314 (for-each (lambda (filename)
19315 (invoke "nosetests"
19316 (string-append "tests/" filename)))
19319 (string-suffix? ".py" filename)))))))))
19321 `(("python-tempdir" ,python-tempdir)
19322 ("python-nose" ,python-nose)))
19324 `(("python-h5py" ,python-h5py)))
19325 (home-page "https://www.activepapers.org/")
19326 (synopsis "Executable papers for scientific computing")
19328 "ActivePapers is a tool for working with executable papers, which
19329 combine data, code, and documentation in single-file packages,
19330 suitable for publication as supplementary material or on repositories
19331 such as figshare or Zenodo.")
19332 (properties `((python2-variant . ,(delay python2-activepapers))))
19333 (license license:bsd-3)))
19335 (define-public python2-activepapers
19336 (let ((base (package-with-python2
19337 (strip-python2-variant python-activepapers))))
19338 (package/inherit base
19340 (substitute-keyword-arguments (package-arguments base)
19342 `(modify-phases ,phases
19343 (delete 'delete-python2-code)
19344 (add-after 'unpack 'delete-python3-code
19346 (for-each delete-file
19347 '("lib/activepapers/builtins3.py"
19348 "lib/activepapers/standardlib3.py"
19349 "lib/activepapers/utility3.py")))))))))))
19351 (define-public python-semver
19353 (name "python-semver")
19358 (uri (pypi-uri "semver" version))
19361 "183kg1rhzz3hqizvphkd8hlbf1zxfx8737zhfkmqzxi71jmdw7pd"))))
19362 (build-system python-build-system)
19364 `(#:phases (modify-phases %standard-phases
19367 (delete-file "setup.cfg")
19368 (invoke "py.test"))))))
19370 `(("python-pytest" ,python-pytest)))
19371 (home-page "https://github.com/k-bx/python-semver")
19372 (synopsis "Python helper for Semantic Versioning")
19373 (description "This package provides a Python library for
19374 @url{Semantic Versioning, http://semver.org/}.")
19375 (license license:bsd-3)))
19377 (define-public python2-semver
19378 (package-with-python2 python-semver))
19380 (define-public python-pyro4
19382 (name "python-pyro4")
19387 (uri (pypi-uri "Pyro4" version))
19389 (base32 "0gsjg869y4gpy265s1gj1f2qy6jn5iz8r2bwwnq78r1r5yi15zib"))))
19390 (build-system python-build-system)
19392 '(#:tests? #f)) ;FIXME: Some tests require network access.
19394 `(("python-cloudpickle" ,python-cloudpickle)
19395 ("python-dill" ,python-dill)
19396 ("python-msgpack" ,python-msgpack)))
19398 `(("python-serpent" ,python-serpent)))
19399 (home-page "https://pyro4.readthedocs.io")
19400 (synopsis "Distributed object middleware for Python")
19402 "Pyro enables you to build applications in which objects can talk to each
19403 other over the network. You can just use normal Python method calls to call
19404 objects on other machines, also known as remote procedure calls (RPC).")
19405 (license license:expat)))
19407 (define-public python2-pyro
19409 (name "python2-pyro")
19414 (uri (pypi-uri "Pyro" version))
19415 (file-name (string-append "Pyro-" version ".tar.gz"))
19418 "0y75wzdqbjy565rpxaxscav4j8xg060sa90lnmb7aypgaf251v8v"))))
19419 (build-system python-build-system)
19421 ;; Pyro is not compatible with Python 3
19422 `(#:python ,python-2
19423 ;; Pyro has no test cases for automatic execution
19425 (home-page "https://pythonhosted.org/Pyro/")
19426 (synopsis "Distributed object manager for Python")
19427 (description "Pyro is a Distributed Object Technology system
19428 written in Python that is designed to be easy to use. It resembles
19429 Java's Remote Method Invocation (RMI). It has less similarity to CORBA,
19430 which is a system and language independent Distributed Object Technology
19431 and has much more to offer than Pyro or RMI. Pyro 3.x is no
19432 longer maintained. New projects should use Pyro4 instead, which
19433 is the new Pyro version that is actively developed.")
19434 (license license:expat)))
19436 (define-public python2-scientific
19438 (name "python2-scientific")
19443 (uri (git-reference
19444 (url "https://github.com/khinsen/ScientificPython")
19445 (commit (string-append "rel" version))))
19446 (file-name (git-file-name name version))
19449 "16l48aj9fps9r7jyk8gpxppwrv0fqvlc13sayxskz28r5s6sjwbl"))))
19450 (build-system python-build-system)
19452 `(("netcdf" ,netcdf)))
19454 `(("python-numpy" ,python2-numpy-1.8)
19455 ("python-pyro" ,python2-pyro)))
19457 ;; ScientificPython is not compatible with Python 3
19458 `(#:python ,python-2
19459 #:tests? #f ; No test suite
19461 (modify-phases %standard-phases
19463 (lambda* (#:key inputs #:allow-other-keys)
19464 (invoke "python" "setup.py" "build"
19465 (string-append "--netcdf_prefix="
19466 (assoc-ref inputs "netcdf"))))))))
19467 (home-page "http://dirac.cnrs-orleans.fr/ScientificPython")
19468 (synopsis "Python modules for scientific computing")
19469 (description "ScientificPython is a collection of Python modules that are
19470 useful for scientific computing. Most modules are rather general (Geometry,
19471 physical units, automatic derivatives, ...) whereas others are more
19472 domain-specific (e.g. netCDF and PDB support). The library is currently
19473 not actively maintained and works only with Python 2 and NumPy < 1.9.")
19474 (license license:cecill-c)))
19476 (define-public python2-mmtk
19478 (name "python2-mmtk")
19483 (uri (git-reference
19484 (url "https://github.com/khinsen/MMTK")
19485 (commit (string-append "rel" version))))
19486 (file-name (git-file-name name version))
19489 "1fqwh3ba9jd42nigvn5shndgwb1zy7kh9520ncvqci7n8ffjr6p1"))))
19490 (build-system python-build-system)
19492 `(("netcdf" ,netcdf)))
19494 `(("python-scientific" ,python2-scientific)
19495 ("python-tkinter" ,python-2 "tk")))
19497 `(#:python ,python-2
19500 (modify-phases %standard-phases
19501 (add-before 'build 'includes-from-scientific
19502 (lambda* (#:key inputs #:allow-other-keys)
19503 (mkdir-p "Include/Scientific")
19506 (assoc-ref inputs "python-scientific")
19507 "/include/python2.7/Scientific")
19508 "Include/Scientific"))))))
19509 (home-page "http://dirac.cnrs-orleans.fr/MMTK")
19510 (synopsis "Python library for molecular simulation")
19511 (description "MMTK is a library for molecular simulations with an emphasis
19512 on biomolecules. It provides widely used methods such as Molecular Dynamics
19513 and normal mode analysis, but also basic routines for implementing new methods
19514 for simulation and analysis. The library is currently not actively maintained
19515 and works only with Python 2 and NumPy < 1.9.")
19516 (license license:cecill-c)))
19518 (define-public python-phonenumbers
19520 (name "python-phonenumbers")
19525 (uri (pypi-uri "phonenumbers" version))
19528 "03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
19529 (build-system python-build-system)
19531 "https://github.com/daviddrysdale/python-phonenumbers")
19533 "Python library for dealing with international phone numbers")
19535 "This package provides a Python port of Google's libphonenumber library.")
19536 (license license:asl2.0)))
19538 (define-public python2-phonenumbers
19539 (package-with-python2 python-phonenumbers))
19541 (define-public python-send2trash
19543 (name "python-send2trash")
19546 (origin (method git-fetch)
19547 ;; Source tarball on PyPI doesn't include tests.
19548 (uri (git-reference
19549 (url "https://github.com/hsoft/send2trash")
19551 (file-name (git-file-name name version))
19554 "1c76zldhw2ay7q7r00nnzcampjz9lkqfcbzqpm0iqp5i6bmmv30v"))))
19555 (build-system python-build-system)
19558 (modify-phases %standard-phases
19559 (add-before 'check 'pre-check
19561 (mkdir-p "/tmp/foo")
19562 (setenv "HOME" "/tmp/foo")
19564 (home-page "https://github.com/hsoft/send2trash")
19565 (synopsis "Send files to the user's @file{~/Trash} directory")
19566 (description "This package provides a Python library to send files to the
19567 user's @file{~/Trash} directory.")
19568 (properties `((python2-variant . ,(delay python2-send2trash))))
19569 (license license:bsd-3)))
19571 (define-public python2-send2trash
19572 (let ((base (package-with-python2
19573 (strip-python2-variant python-send2trash))))
19574 (package/inherit base
19576 (substitute-keyword-arguments (package-arguments python-send2trash)
19578 `(modify-phases ,phases
19579 (add-before 'check 'setenv
19581 (setenv "PYTHONPATH"
19582 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
19585 (define-public python-pyfavicon
19587 (name "python-pyfavicon")
19592 (uri (pypi-uri "pyfavicon" version))
19594 (base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
19595 (build-system python-build-system)
19597 ;; There are no tests in the PyPI tarball and the tests from the
19598 ;; repository require online data.
19601 `(("python-aiohttp" ,python-aiohttp)
19602 ("python-beautifulsoup4" ,python-beautifulsoup4)
19603 ("python-pillow" ,python-pillow)))
19604 (home-page "https://github.com/bilelmoussaoui/pyfavicon")
19605 (synopsis "Async favicon fetcher")
19607 "@code{pyfavicon} is an async favicon fetcher.")
19608 (license license:expat)))
19610 (define-public python-yamllint
19612 (name "python-yamllint")
19617 (uri (pypi-uri "yamllint" version))
19619 (base32 "090krlxj7az0d9yl8i20vjrqi66dfxx7y5xakjhxzsfp7qmldnc7"))))
19620 (build-system python-build-system)
19622 `(("python-pathspec" ,python-pathspec)
19623 ("python-pyyaml" ,python-pyyaml)
19624 ("python-setuptools" ,python-setuptools)))
19625 (home-page "https://github.com/adrienverge/yamllint")
19626 (synopsis "Linter for YAML files")
19628 "Yamllint is a linter for YAML files. yamllint does not only check for
19629 syntax validity, but for weirdnesses like key repetition and cosmetic problems
19630 such as lines length, trailing spaces, indentation, etc.")
19631 (license license:gpl3+)))
19633 (define-public python-yapf
19635 (name "python-yapf")
19640 (uri (pypi-uri "yapf" version))
19643 "1pj3xzblmbssshi889b6n9hwqbjpabw6j0fimlng2sshd3226bki"))))
19644 (build-system python-build-system)
19645 (home-page "https://github.com/google/yapf")
19646 (synopsis "Formatter for Python code")
19647 (description "YAPF is a formatter for Python code. It's based off of
19648 @dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
19649 takes the code and reformats it to the best formatting that conforms to the
19650 style guide, even if the original code didn't violate the style guide.")
19651 (license license:asl2.0)))
19653 (define-public python2-yapf
19654 (package-with-python2 python-yapf))
19656 (define-public python-yq
19663 (uri (pypi-uri "yq" version))
19666 "1q4rky0a6n4izmq7slb91a54g8swry1xrbfqxwc8lkd3hhvlxxkl"))))
19667 (build-system python-build-system)
19670 (modify-phases %standard-phases
19671 (add-after 'unpack 'patch
19672 (lambda* (#:key inputs #:allow-other-keys)
19673 (substitute* "yq/__init__.py"
19674 (("Popen\\(\\[\"jq")
19677 (assoc-ref inputs "jq")
19681 `(("python-argcomplete" ,python-argcomplete)
19682 ("python-pyyaml" ,python-pyyaml)
19683 ("python-xmltodict" ,python-xmltodict)
19686 `(("python-coverage" ,python-coverage)
19687 ("python-flake8" ,python-flake8)
19688 ("python-wheel" ,python-wheel)))
19689 (home-page "https://github.com/kislyuk/yq")
19690 (synopsis "Command-line YAML/XML processor")
19692 "This package provides @command{yq} and @command{xq} for processing YAML
19693 and XML respectively. The processing is done through @command{jq}, @command{jq}
19694 filters can be used to process the data as it passes through.")
19695 (license license:asl2.0)))
19697 (define-public python-gyp
19698 (let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
19701 (name "python-gyp")
19702 ;; Google does not release versions,
19703 ;; based on second most recent commit date.
19704 (version (git-version "0.0.0" revision commit))
19707 ;; Google does not release tarballs,
19708 ;; git checkout is needed.
19710 (uri (git-reference
19711 (url "https://chromium.googlesource.com/external/gyp")
19713 (file-name (git-file-name name version))
19716 "0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
19717 (build-system python-build-system)
19718 (home-page "https://gyp.gsrc.io/")
19719 (synopsis "GYP is a Meta-Build system")
19721 "GYP builds build systems for large, cross platform applications.
19722 It can be used to generate XCode projects, Visual Studio projects, Ninja build
19723 files, and Makefiles.")
19724 (license license:bsd-3))))
19726 (define-public python2-gyp
19727 (package-with-python2 python-gyp))
19729 (define-public python-whatever
19731 (name "python-whatever")
19736 (uri (git-reference
19737 (url "https://github.com/Suor/whatever")
19739 (file-name (git-file-name name version))
19741 (base32 "1q7ajgqjfivxqsqgnhp4lc4p6jxyh4zprcsdbpd6dw54inaf0av5"))))
19742 (build-system python-build-system)
19745 (modify-phases %standard-phases
19748 (invoke "py.test"))))))
19750 `(("python-pytest" ,python-pytest)))
19751 (home-page "https://github.com/Suor/whatever")
19752 (synopsis "Make anonymous functions by partial application of operators")
19753 (description "@code{whatever} provides an easy way to make anonymous
19754 functions by partial application of operators.")
19755 (license license:bsd-3)))
19757 (define-public python2-whatever
19758 (package-with-python2 python-whatever))
19760 (define-public python-funcy
19762 (name "python-funcy")
19767 (uri (git-reference
19768 (url "https://github.com/Suor/funcy")
19771 (base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
19772 (file-name (git-file-name name version))))
19773 (build-system python-build-system)
19776 (modify-phases %standard-phases
19779 (invoke "py.test"))))))
19781 `(("python-pytest" ,python-pytest)
19782 ("python-whatever" ,python-whatever)))
19783 (home-page "https://github.com/Suor/funcy")
19784 (synopsis "Functional tools")
19785 (description "@code{funcy} is a library that provides functional tools.
19788 @item merge - Merges collections of the same type
19789 @item walk - Type-preserving map
19790 @item select - Selects a part of a collection
19791 @item take - Takes the first n items of a collection
19792 @item first - Takes the first item of a collection
19793 @item remove - Predicated-removes items of a collection
19794 @item concat - Concatenates two collections
19795 @item flatten - Flattens a collection with subcollections
19796 @item distinct - Returns only distinct items
19797 @item split - Predicated-splits a collection
19798 @item split_at - Splits a collection at a given item
19799 @item group_by - Groups items by group
19800 @item pairwise - Pairs off adjacent items
19801 @item partial - Partially-applies a function
19802 @item curry - Curries a function
19803 @item compose - Composes functions
19804 @item complement - Complements a predicate
19805 @item all_fn - \"all\" with predicate
19807 (license license:bsd-3)))
19809 (define-public python2-funcy
19810 (package-with-python2 python-funcy))
19812 (define-public python-isoweek
19814 (name "python-isoweek")
19819 (uri (pypi-uri "isoweek" version))
19822 "1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
19823 (build-system python-build-system)
19824 (home-page "https://github.com/gisle/isoweek")
19825 (synopsis "Objects representing a week")
19826 (description "The @code{isoweek} module provide the class Week that
19827 implements the week definition of ISO 8601. This standard also defines
19828 a notation for identifying weeks; yyyyWww (where the W is a literal).
19829 Week instances stringify to this form.")
19830 (license license:bsd-3)))
19832 (define-public python2-isoweek
19833 (package-with-python2 python-isoweek))
19835 (define-public python-pyzbar
19837 (name "python-pyzbar")
19841 ;; There's no source tarball on PyPI.
19843 (uri (git-reference
19844 (url "https://github.com/NaturalHistoryMuseum/pyzbar")
19845 (commit (string-append "v" version))))
19846 (file-name (git-file-name name version))
19848 (base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
19849 (build-system python-build-system)
19852 (modify-phases %standard-phases
19853 (add-after 'unpack 'remove-failing-test
19855 ;; This tests if find_library was called once, but we remove
19856 ;; the call in the stage below to make the library find libzbar.
19857 (delete-file "pyzbar/tests/test_zbar_library.py")
19859 (add-before 'build 'set-library-file-name
19860 (lambda* (#:key inputs #:allow-other-keys)
19861 (let ((libzbar (assoc-ref inputs "zbar")))
19862 (substitute* "pyzbar/zbar_library.py"
19863 (("find_library\\('zbar'\\)")
19864 (string-append "'" libzbar "/lib/libzbar.so.0'")))
19867 `(("pkg-config" ,pkg-config)
19868 ("python-numpy" ,python-numpy)
19869 ("python-pillow" ,python-pillow)))
19872 (home-page "https://github.com/NaturalHistoryMuseum/pyzbar/")
19873 (synopsis "Read one-dimensional barcodes and QR codes")
19875 "Read one-dimensional barcodes and QR codes using the zbar library.
19881 @item Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
19882 @item Decodes locations of barcodes
19883 @item No dependencies, other than the zbar library itself
19885 (license license:expat)))
19887 (define-public python-tokenize-rt
19889 (name "python-tokenize-rt")
19894 (uri (pypi-uri "tokenize-rt" version))
19897 "1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
19898 (build-system python-build-system)
19899 (home-page "https://github.com/asottile/tokenize-rt")
19900 (synopsis "Wrapper around the stdlib tokenize which roundtrips.")
19902 "This Python library is a wrapper around @code{tokenize} from the Python
19903 standard library. It provides two additional tokens @code{ESCAPED_NL} and
19904 @code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
19905 and @code{tokens_to_src} to roundtrip.")
19906 (license license:expat)))
19908 (define-public python-future-fstrings
19910 (name "python-future-fstrings")
19915 (uri (pypi-uri "future_fstrings" version))
19918 "0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
19919 (build-system python-build-system)
19921 `(("python-tokenize-rt" ,python-tokenize-rt)))
19922 (home-page "https://github.com/asottile/future-fstrings")
19923 (synopsis "Backport of fstrings to Python < 3.6")
19925 "This package provides a UTF-8 compatible encoding
19926 @code{future_fstrings}, which performs source manipulation. It decodes the
19927 source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
19928 @code{f} strings.")
19929 (license license:expat)))
19931 (define-public python-typed-ast
19933 (name "python-typed-ast")
19938 (uri (git-reference
19939 (url "https://github.com/python/typed_ast")
19942 (base32 "0l0hz809f7i356kmqkvfsaswiidb98j9hs9rrjnfawzqcbffzgyb"))
19943 (file-name (git-file-name name version))))
19944 (build-system python-build-system)
19946 `(#:modules ((guix build utils)
19947 (guix build python-build-system)
19952 (modify-phases %standard-phases
19955 (let ((cwd (getcwd)))
19956 (setenv "PYTHONPATH"
19957 (string-append cwd "/build/"
19958 (find (cut string-prefix? "lib" <>)
19959 (scandir (string-append cwd "/build")))
19961 (getenv "PYTHONPATH"))))
19964 (native-inputs `(("python-pytest" ,python-pytest)))
19965 (home-page "https://github.com/python/typed_ast")
19966 (synopsis "Fork of Python @code{ast} modules with type comment support")
19967 (description "This package provides a parser similar to the standard
19968 @code{ast} library. Unlike @code{ast}, the parsers in @code{typed_ast}
19969 include PEP 484 type comments and are independent of the version of Python
19970 under which they are run. The @code{typed_ast} parsers produce the standard
19971 Python AST (plus type comments), and are both fast and correct, as they are
19972 based on the CPython 2.7 and 3.7 parsers.")
19973 ;; See the file "LICENSE" for the details.
19974 (license (list license:psfl
19976 license:expat)))) ;ast27/Parser/spark.py
19978 (define-public python-typer
19980 (name "python-typer")
19984 ;; Building `python-typer` from the git repository requires the `flit-core`
19985 ;; Python package that is not installed by `python-flit`.
19987 (uri (pypi-uri "typer" version))
19989 (base32 "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal"))))
19990 (build-system python-build-system)
19993 (modify-phases %standard-phases
19994 (add-before 'check 'disable-failing-tests
19996 (substitute* "tests/test_completion/test_completion.py"
19997 (("def test_show_completion")
19998 "def _test_show_completion")
19999 (("def test_install_completion")
20000 "def _test_install_completion"))
20001 (substitute* "tests/test_completion/test_completion_install.py"
20002 (("def test_completion_install_bash")
20003 "def _test_completion_install_bash")
20004 (("def test_completion_install_zsh")
20005 "def _test_completion_install_zsh")
20006 (("def test_completion_install_fish")
20007 "def _test_completion_install_fish")
20008 (("def test_completion_install_powershell")
20009 "def _test_completion_install_powershell"))
20013 (setenv "PYTHONPATH"
20014 (string-append (getcwd) ":"
20015 (getenv "PYTHONPATH")))
20016 (invoke "python" "-m" "pytest" "tests/")
20019 `(("python-click" ,python-click)))
20021 `(("python-coverage" ,python-coverage)
20022 ("python-pytest" ,python-pytest)
20023 ("python-shellingham" ,python-shellingham)))
20024 (home-page "https://github.com/tiangolo/typer")
20026 "Typer builds CLI based on Python type hints")
20028 "Typer is a library for building CLI applications. It's based on
20029 Python 3.6+ type hints.")
20031 (license license:expat)))
20033 (define-public python-typing
20035 (name "python-typing")
20036 (version "3.7.4.3")
20040 (uri (pypi-uri "typing" version))
20042 (base32 "1j8wnz8c9s049w9xbf7ssr1dmgg4rz7vdfq7m880srzxhafgp1qi"))))
20043 (build-system python-build-system)
20044 (home-page "https://docs.python.org/3/library/typing.html")
20045 (synopsis "Type hints for Python")
20046 (description "This is a backport of the standard library @code{typing}
20047 module to Python versions older than 3.5. Typing defines a standard notation
20048 for Python function and variable type annotations. The notation can be used
20049 for documenting code in a concise, standard format, and it has been designed
20050 to also be used by static and runtime type checkers, static analyzers, IDEs
20052 (license license:psfl)))
20054 (define-public python2-typing
20055 (package-with-python2 python-typing))
20057 (define-public python-typing-extensions
20059 (name "python-typing-extensions")
20060 (version "3.7.4.3")
20064 (uri (pypi-uri "typing_extensions" version))
20067 "0356ljrrplm917dqgpn8wjkw6j3mpp916gwxas7jhc3xc4xhgm4r"))))
20068 (build-system python-build-system)
20070 "https://github.com/python/typing/blob/master/typing_extensions/README.rst")
20071 (synopsis "Experimental type hints for Python")
20073 "The typing_extensions module contains additional @code{typing} hints not
20074 yet present in the of the @code{typing} standard library.
20075 Included are implementations of:
20078 @item ContextManager
20089 @item TYPE_CHECKING
20090 @item AsyncGenerator
20092 (license license:psfl)))
20094 (define-public bpython
20101 (uri (pypi-uri "bpython" version))
20103 (base32 "00vmkkc79mlnkyvwww1cr7bpwmf4p61704dhayz6kd0kc203hxvf"))))
20104 (build-system python-build-system)
20107 (modify-phases %standard-phases
20108 (add-after 'unpack 'remove-failing-test
20110 ;; Remove failing test. FIXME: make it pass
20111 (delete-file "bpython/test/test_args.py")
20113 (add-after 'wrap 'add-aliases
20114 ;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
20115 (lambda* (#:key outputs #:allow-other-keys)
20116 (let ((out (assoc-ref outputs "out")))
20119 (symlink old (string-append out "/bin/" new)))
20120 '("bpython" "bpython-curses" "bpython-urwid" "bpdb")
20121 '("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
20124 `(("python-pygments" ,python-pygments)
20125 ("python-requests" ,python-requests)
20126 ("python-curtsies" ,python-curtsies)
20127 ("python-greenlet" ,python-greenlet)
20128 ("python-six" ,python-six)
20129 ("python-wcwidth" ,python-wcwidth)
20130 ;; optional dependencies
20131 ("python-urwid" ,python-urwid) ; for bpython-urwid only
20132 ("python-watchdog" ,python-watchdog)
20133 ("python-jedi" ,python-jedi)))
20135 `(("python-sphinx" ,python-sphinx)
20136 ("python-mock" ,python-mock)))
20137 (home-page "https://bpython-interpreter.org/")
20138 (synopsis "Fancy interface to the Python interpreter")
20139 (description "Bpython is a fancy interface to the Python
20140 interpreter. bpython's main features are
20143 @item in-line syntax highlighting,
20144 @item readline-like autocomplete with suggestions displayed as you type,
20145 @item expected parameter list for any Python function,
20146 @item \"rewind\" function to pop the last line of code from memory and
20148 @item send the code you've entered off to a pastebin,
20149 @item save the code you've entered to a file, and
20150 @item auto-indentation.
20152 (license license:expat)))
20154 (define-public python-pyinotify
20156 (name "python-pyinotify")
20160 (uri (pypi-uri "pyinotify" version))
20163 "1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
20164 (build-system python-build-system)
20165 (arguments `(#:tests? #f)) ;no tests
20166 (home-page "https://github.com/seb-m/pyinotify")
20167 (synopsis "Python library for monitoring inotify events")
20169 "@code{pyinotify} provides a Python interface for monitoring
20170 file system events on Linux.")
20171 (license license:expat)))
20173 (define-public python2-pyinotify
20174 (package-with-python2 python-pyinotify))
20176 ;; Ada parser uses this version.
20177 (define-public python2-quex-0.67.3
20179 (name "python2-quex")
20184 (uri (string-append "mirror://sourceforge/quex/HISTORY/"
20185 (version-major+minor version)
20186 "/quex-" version ".zip"))
20189 "14gv8ll3ipqv4kyc2xiy891nrmjl4ic823zfyx8hassagyclyppw"))))
20190 (build-system python-build-system)
20192 `(("unzip" ,unzip)))
20194 `(#:python ,python-2
20197 (modify-phases %standard-phases
20198 (delete 'configure)
20201 (lambda* (#:key outputs #:allow-other-keys)
20202 (let* ((out (assoc-ref outputs "out"))
20203 (share/quex (string-append out "/share/quex"))
20204 (bin (string-append out "/bin")))
20205 (copy-recursively "." share/quex)
20207 (symlink (string-append share/quex "/quex-exe.py")
20208 (string-append bin "/quex"))
20210 (native-search-paths
20211 (list (search-path-specification
20212 (variable "QUEX_PATH")
20213 (files '("share/quex")))))
20214 (home-page "http://quex.sourceforge.net/")
20215 (synopsis "Lexical analyzer generator in Python")
20216 (description "@code{quex} is a lexical analyzer generator in Python.")
20217 (license license:lgpl2.1+))) ; Non-military
20219 (define-public python2-quex
20220 (package (inherit python2-quex-0.67.3)
20221 (name "python2-quex")
20226 (uri (string-append "mirror://sourceforge/quex/DOWNLOAD/quex-" version ".tar.gz"))
20229 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j"))
20230 (file-name (string-append name "-" version ".tar.gz"))))))
20232 (define-public python-more-itertools
20234 (name "python-more-itertools")
20239 (uri (pypi-uri "more-itertools" version))
20242 "01x5nwm1zxmnd06cllbdd095xxc2nd25ing1a726m2kd30rbkpdi"))))
20243 (build-system python-build-system)
20244 (home-page "https://github.com/erikrose/more-itertools")
20245 (synopsis "More routines for operating on iterables, beyond itertools")
20246 (description "Python's built-in @code{itertools} module implements a
20247 number of iterator building blocks inspired by constructs from APL, Haskell,
20248 and SML. @code{more-itertools} includes additional building blocks for
20249 working with iterables.")
20250 (properties `((python2-variant . ,(delay python2-more-itertools))))
20251 (license license:expat)))
20253 ;; The 5.x series are the last versions supporting Python 2.7.
20254 (define-public python2-more-itertools
20256 (inherit python-more-itertools)
20257 (name "python2-more-itertools")
20261 (uri (pypi-uri "more-itertools" version))
20264 "1r12cm6mcdwdzz7d47a6g4l437xsvapdlgyhqay3i2nrlv03da9q"))))
20266 `(#:python ,python-2))
20268 `(("python2-six" ,python2-six-bootstrap)))))
20270 (define-public python-latexcodec
20272 (name "python-latexcodec")
20277 (uri (pypi-uri "latexcodec" version))
20279 (base32 "0wnp3yqcgx0rpy8dz51vh75lbp2qif67da19zi7m3ca98n887hgb"))))
20280 (build-system python-build-system)
20282 `(("python-six" ,python-six)))
20283 (home-page "https://readthedocs.org/projects/latexcodec/")
20284 (synopsis "Work with LaTeX code in Python")
20285 (description "Lexer and codec to work with LaTeX code in Python.")
20286 (license license:expat)))
20288 (define-public python-pybtex
20290 (name "python-pybtex")
20295 (uri (pypi-uri "pybtex" version))
20297 (base32 "070wfcmxrd7xg1si421mi9150gmx2qwx431nwf69sq3hhmgnx080"))))
20298 (build-system python-build-system)
20300 `(("python-nose" ,python-nose)))
20302 `(("python-latexcodec" ,python-latexcodec)
20303 ("python-pyyaml" ,python-pyyaml)
20304 ("python-six" ,python-six)))
20306 `(#:test-target "nosetests"))
20307 (home-page "https://pybtex.org/")
20308 (synopsis "BibTeX-compatible bibliography processor")
20309 (description "Pybtex is a BibTeX-compatible bibliography processor written
20310 in Python. You can simply type pybtex instead of bibtex.")
20311 (license license:expat)))
20313 (define-public python-onetimepass
20315 (name "python-onetimepass")
20320 (uri (pypi-uri "onetimepass" version))
20322 (base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
20323 (build-system python-build-system)
20324 (propagated-inputs `(("python-six" ,python-six)))
20325 (home-page "https://github.com/tadeck/onetimepass/")
20326 (synopsis "One-time password library")
20327 (description "Python one-time password library for HMAC-based (HOTP) and
20328 time-based (TOTP) passwords.")
20329 (license license:expat)))
20331 (define-public python-parso
20333 (name "python-parso")
20338 (uri (pypi-uri "parso" version))
20340 (base32 "1f9fc99mjx0h2ad4mgsid728nnmw58hvnq3411g8ljlr9dr49fna"))))
20342 `(("python-pytest" ,python-pytest)))
20343 (build-system python-build-system)
20345 `(#:phases (modify-phases %standard-phases
20347 (lambda _ (invoke "pytest" "-vv"))))))
20348 (home-page "https://github.com/davidhalter/parso")
20349 (synopsis "Python Parser")
20350 (description "Parso is a Python parser that supports error recovery and
20351 round-trip parsing for different Python versions (in multiple Python versions).
20352 Parso is also able to list multiple syntax errors in your Python file.")
20353 (license license:expat)))
20355 (define-public python2-parso
20356 (package-with-python2 python-parso))
20358 (define-public python-async-generator
20360 (name "python-async-generator")
20365 (uri (pypi-uri "async_generator" version))
20368 "0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
20369 (build-system python-build-system)
20371 `(("python-pytest" ,python-pytest)))
20372 (home-page "https://github.com/python-trio/async_generator")
20373 (synopsis "Async generators and context managers for Python 3.5+")
20374 (description "@code{async_generator} back-ports Python 3.6's native async
20375 generators and Python 3.7's context managers into Python 3.5.")
20377 (license (list license:expat license:asl2.0))))
20379 (define-public python-async-timeout
20381 (name "python-async-timeout")
20386 (uri (pypi-uri "async-timeout" version))
20389 "0pscbyr840m7fyfc3r8zv9kgkwdcn9f78p7zsrczciwd09m82g0c"))))
20390 (build-system python-build-system)
20391 (home-page "https://github.com/aio-libs/async_timeout/")
20392 (synopsis "Timeout context manager for asyncio programs")
20393 (description "@code{async-timeout} provides a timeout timeout context
20394 manager compatible with @code{asyncio}.")
20395 (license license:asl2.0)))
20397 (define-public python-glob2
20399 (name "python-glob2")
20404 (uri (git-reference
20405 (url "https://github.com/miracle2k/python-glob2")
20406 (commit (string-append "v" version))))
20407 (file-name (git-file-name name version))
20409 (base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
20410 (build-system python-build-system)
20411 (home-page "https://github.com/miracle2k/python-glob2/")
20412 (synopsis "Extended Version of the python buildin glob module")
20413 (description "This is an extended version of the Python
20414 @url{http://docs.python.org/library/glob.html, built-in glob module} which
20418 @item The ability to capture the text matched by glob patterns, and return
20419 those matches alongside the file names.
20420 @item A recursive @code{**} globbing syntax, akin for example to the
20421 @code{globstar} option of Bash.
20422 @item The ability to replace the file system functions used, in order to glob
20423 on virtual file systems.
20424 @item Compatible with Python 2 and Python 3 (tested with 3.3).
20427 Glob2 currently based on the glob code from Python 3.3.1.")
20428 (license license:bsd-2)))
20430 (define-public python2-glob2
20431 (package-with-python2 python-glob2))
20433 (define-public python-gipc
20435 (name "python-gipc")
20440 (uri (pypi-uri "gipc" version ".zip"))
20443 "0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
20444 (build-system python-build-system)
20446 `(("unzip" ,unzip)))
20448 `(("python-gevent" ,python-gevent)))
20449 (home-page "https://gehrcke.de/gipc/")
20450 (synopsis "Child process management in the context of gevent")
20451 (description "Usage of Python's multiprocessing package in a
20452 gevent-powered application may raise problems. With @code{gipc},
20453 process-based child processes can safely be created anywhere within a
20454 gevent-powered application.")
20455 (license license:expat)))
20457 (define-public python-beautifultable
20459 (name "python-beautifultable")
20464 (uri (pypi-uri "beautifultable" version))
20467 "0wwlbifcbpzy3wfv6yzsxncarsngzizmmxbn6cy5gazlcq7h4k5x"))))
20468 (build-system python-build-system)
20470 `(("python-wcwidth" ,python-wcwidth)))
20473 (modify-phases %standard-phases
20474 (add-after 'unpack 'patch-setup.py
20476 (substitute* "setup.py"
20478 "setup(\n test_suite=\"test\",")))))))
20479 (home-page "https://github.com/pri22296/beautifultable")
20480 (synopsis "Print ASCII tables for terminals")
20481 (description "@code{python-beautifultable} provides a class for easily
20482 printing tabular data in a visually appealing ASCII format to a terminal.
20484 Features include, but are not limited to:
20486 @item Full customization of the look and feel of the table
20487 @item Row and column accessors.
20488 @item Full support for colors using ANSI sequences or any library.
20489 @item Plenty of predefined styles and option to create custom ones.
20490 @item Support for Unicode characters.
20491 @item Supports streaming table when data is slow to retrieve.
20493 (license license:expat)))
20495 (define-public python-globber
20497 (name "python-globber")
20502 (uri (git-reference
20503 (url "https://github.com/asharov/globber")
20505 (file-name (git-file-name name version))
20508 "055xf7ja7zjhxis0ab5fnfsx16fsvr5fvc6mixqybanwxh8sgfjk"))))
20509 (build-system python-build-system)
20510 (home-page "https://github.com/asharov/globber")
20511 (synopsis "Library for string matching with glob patterns")
20513 "Globber is a Python library for matching file names against glob patterns.
20514 In contrast to other glob-matching libraries, it matches arbitrary strings and
20515 doesn't require the matched names to be existing files. In addition, it
20516 supports the globstar @code{**} operator to match an arbitrary number of
20518 (license license:asl2.0)))
20520 (define-public python-git-hammer
20522 (name "python-git-hammer")
20527 (uri (git-reference
20528 (url "https://github.com/asharov/git-hammer")
20530 (file-name (git-file-name name version))
20533 "0f9xlk86ijzpdj25hr1q4wcy8k72v3w470ngwm9mpdkfj8ng84wr"))))
20534 (build-system python-build-system)
20537 (modify-phases %standard-phases
20538 (add-after 'unpack 'patch-setup.py
20540 (substitute* "setup.py"
20542 "setup(\n test_suite=\"test\",")))))))
20544 `(("python-beautifultable" ,python-beautifultable)
20545 ("python-dateutil" ,python-dateutil)
20546 ("python-gitpython" ,python-gitpython)
20547 ("python-globber" ,python-globber)
20548 ("python-matplotlib" ,python-matplotlib)
20549 ("python-sqlalchemy" ,python-sqlalchemy)
20550 ("python-sqlalchemy-utils"
20551 ,python-sqlalchemy-utils)))
20552 (home-page "https://github.com/asharov/git-hammer")
20553 (synopsis "Provide statistics for git repositories")
20555 "Git Hammer is a statistics tool for projects in git repositories.
20556 Its major feature is tracking the number of lines authored by each person for every
20557 commit, but it also includes some other useful statistics.")
20558 (license license:asl2.0)))
20560 (define-public python-fusepy
20562 (name "python-fusepy")
20567 (uri (pypi-uri "fusepy" version))
20570 "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
20571 (build-system python-build-system)
20574 (modify-phases %standard-phases
20575 (add-before 'build 'set-library-file-name
20576 (lambda* (#:key inputs #:allow-other-keys)
20577 (let ((fuse (assoc-ref inputs "fuse")))
20578 (substitute* "fuse.py"
20579 (("find_library\\('fuse'\\)")
20580 (string-append "'" fuse "/lib/libfuse.so'")))
20584 (home-page "https://github.com/fusepy/fusepy")
20585 (synopsis "Simple ctypes bindings for FUSE")
20586 (description "Python module that provides a simple interface to FUSE and
20587 MacFUSE. The binding is created using the standard @code{ctypes} library.")
20588 (license license:isc)))
20590 (define-public python2-fusepy
20591 (package-with-python2 python-fusepy))
20593 (define-public python-fusepyng
20595 (name "python-fusepyng")
20600 (uri (pypi-uri "fusepyng" version))
20603 "17w9iw6m6zjbmnhs4ikd27pq4mb1nan6k4ahlwyz40463vw6wkwb"))))
20604 (build-system python-build-system)
20607 (modify-phases %standard-phases
20608 (add-after 'unpack 'set-libfuse-path
20609 (lambda* (#:key inputs #:allow-other-keys)
20610 (let ((fuse (assoc-ref inputs "fuse")))
20611 (substitute* "fusepyng.py"
20612 (("os.environ.get\\('FUSE_LIBRARY_PATH'\\)")
20613 (string-append "\"" fuse "/lib/libfuse.so\""))))
20618 `(("python-paramiko" ,python-paramiko)))
20619 (home-page "https://github.com/rianhunter/fusepyng")
20620 (synopsis "Simple ctypes bindings for FUSE")
20621 (description "@code{fusepyng} is a Python module that provides a simple
20622 interface to FUSE on various operating systems. It's just one file and is
20623 implemented using @code{ctypes}.")
20624 (license license:isc)))
20626 (define-public python-userspacefs
20628 (name "python-userspacefs")
20633 (uri (pypi-uri "userspacefs" version))
20636 "1v6saf62ml3j63adalvlkj4iavxjbsbapl20b21mn73p7kvn4ayf"))))
20637 (build-system python-build-system)
20639 `(("python-fusepyng" ,python-fusepyng)))
20640 (home-page "https://github.com/rianhunter/userspacefs")
20641 (synopsis "User-space file systems for Python")
20643 "@code{userspacefs} is a library that allows you to easily write
20644 user-space file systems in Python.")
20645 (license license:gpl3+)))
20647 (define-public python-stone
20649 (name "python-stone")
20654 (uri (pypi-uri "stone" version))
20657 "0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"))))
20658 (build-system python-build-system)
20661 (modify-phases %standard-phases
20662 (add-after 'unpack 'change-version-requirements
20664 ;; Match the requirement in test/requirements.txt
20665 (substitute* "setup.py"
20666 (("pytest < 5") "pytest < 7"))
20667 ;; We don't care about a coverage report.
20668 (substitute* "test/requirements.txt"
20669 (("coverage.*") "coverage\n"))
20672 (lambda* (#:key tests? #:allow-other-keys)
20674 ;; These tests don't import currectly.
20675 (delete-file "test/test_js_client.py")
20676 (delete-file "test/test_tsd_types.py")
20677 (delete-file "test/test_python_gen.py")
20678 (setenv "PYTHONPATH"
20679 (string-append (getcwd) ":"
20680 (getenv "PYTHONPATH")))
20684 `(("python-ply" ,python-ply)
20685 ("python-six" ,python-six)))
20687 `(("python-coverage" ,python-coverage)
20688 ("python-mock" ,python-mock)
20689 ("python-pytest" ,python-pytest)
20690 ("python-pytest-runner" ,python-pytest-runner)))
20691 (home-page "https://github.com/dropbox/stone")
20692 (synopsis "Official Api Spec Language for Dropbox")
20694 "Stone is an interface description language (IDL) for APIs.")
20695 (license license:expat)))
20697 (define-public pybind11
20703 (uri (git-reference
20704 (url "https://github.com/pybind/pybind11")
20705 (commit (string-append "v" version))))
20708 "1lsacpawl2gb5qlh0cawj9swsyfbwhzhwiv6553a7lsigdbadqpy"))
20709 (file-name (git-file-name name version))))
20710 (build-system cmake-build-system)
20712 `(("python" ,python-wrapper)
20714 ;; The following dependencies are used for tests.
20715 ("python-pytest" ,python-pytest)
20716 ("catch" ,catch-framework2-1)
20719 `(#:configure-flags
20720 (list (string-append "-DCATCH_INCLUDE_DIR="
20721 (assoc-ref %build-inputs "catch")
20724 #:phases (modify-phases %standard-phases
20725 (add-after 'install 'install-python
20726 (lambda* (#:key outputs #:allow-other-keys)
20727 (let ((out (assoc-ref outputs "out")))
20728 (with-directory-excursion "../source"
20729 (setenv "PYBIND11_USE_CMAKE" "yes")
20730 (invoke "python" "setup.py" "install"
20731 "--single-version-externally-managed"
20733 (string-append "--prefix=" out)))))))
20735 #:test-target "check"))
20736 (home-page "https://github.com/pybind/pybind11/")
20737 (synopsis "Seamless operability between C++11 and Python")
20739 "@code{pybind11} is a lightweight header-only library that exposes C++
20740 types in Python and vice versa, mainly to create Python bindings of existing
20741 C++ code. Its goals and syntax are similar to the @code{Boost.Python}
20742 library: to minimize boilerplate code in traditional extension modules by
20743 inferring type information using compile-time introspection.")
20744 (license license:bsd-3)))
20746 (define-public python-pooch
20748 (name "python-pooch")
20753 (uri (pypi-uri "pooch" version))
20755 (base32 "1618adsg9r8fsv422sv35z1i723q3a1iir5v7dv2sklh4pl4im1h"))))
20756 (build-system python-build-system)
20758 `(#:tests? #f)) ;requires online data
20760 `(("python-appdirs" ,python-appdirs)
20761 ("python-packaging" ,python-packaging)
20762 ("python-requests" ,python-requests)))
20763 (home-page "https://github.com/fatiando/pooch")
20764 (synopsis "Manage your Python library's sample data files")
20766 "Pooch manages your Python library's sample data files: it automatically
20767 downloads and stores them in a local directory, with support for versioning
20768 and corruption checks.")
20769 (license license:bsd-3)))
20771 (define-public python-fasteners
20773 (name "python-fasteners")
20778 (uri (pypi-uri "fasteners" version))
20781 "1vzmz1xh38b84dv0f4hlp7arwmx8wjlih6lf964bpy8dnyk6s5rs"))))
20782 (build-system python-build-system)
20784 `(("python-monotonic" ,python-monotonic)
20785 ("python-six" ,python-six)))
20787 `(("python-testtools" ,python-testtools)))
20788 (home-page "https://github.com/harlowja/fasteners")
20789 (synopsis "Python package that provides useful locks")
20791 "This package provides a Python program that provides following locks:
20794 @item Locking decorator
20795 @item Reader-writer locks
20796 @item Inter-process locks
20797 @item Generic helpers
20799 (license license:asl2.0)))
20801 (define-public python-requests-file
20803 (name "python-requests-file")
20808 (uri (pypi-uri "requests-file" version))
20811 "1yp2jaxg3v86pia0q512dg3hz6s9y5vzdivsgrba1kds05ial14g"))))
20812 (build-system python-build-system)
20814 `(("python-requests" ,python-requests)
20815 ("python-six" ,python-six)))
20817 "https://github.com/dashea/requests-file")
20818 (synopsis "File transport adapter for Requests")
20820 "Requests-File is a transport adapter for use with the Requests Python
20821 library to allow local file system access via @code{file://} URLs.")
20822 (license license:asl2.0)))
20824 (define-public python2-requests-file
20825 (package-with-python2 python-requests-file))
20827 (define-public python-identify
20829 (name "python-identify")
20833 ;; There are no tests in the PyPI tarball.
20835 (uri (git-reference
20836 (url "https://github.com/chriskuehl/identify")
20837 (commit (string-append "v" version))))
20838 (file-name (git-file-name name version))
20840 (base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz"))))
20841 (build-system python-build-system)
20844 (modify-phases %standard-phases
20847 (invoke "pytest" "-vv"))))))
20849 `(("python-coverage" ,python-coverage)
20850 ("python-pytest" ,python-pytest)))
20852 `(("python-editdistance" ,python-editdistance)))
20853 (home-page "https://github.com/chriskuehl/identify")
20854 (synopsis "File identification library for Python")
20856 "@code{identify} is a file identification library for Python. Given
20857 a file (or some information about a file), return a set of standardized tags
20858 identifying what the file is.")
20859 (license license:expat)))
20861 (define-public python-tldextract
20863 (name "python-tldextract")
20868 (uri (pypi-uri "tldextract" version))
20871 "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99"))))
20872 (build-system python-build-system)
20874 `(("python-pytest" ,python-pytest)
20875 ("python-responses" ,python-responses)))
20877 `(("python-idna" ,python-idna)
20878 ("python-requests" ,python-requests)
20879 ("python-requests-file" ,python-requests-file)))
20881 "https://github.com/john-kurkowski/tldextract")
20883 "Separate the TLD from the registered domain and subdomains of a URL")
20885 "TLDExtract accurately separates the TLD from the registered domain and
20886 subdomains of a URL, using the Public Suffix List. By default, this includes
20887 the public ICANN TLDs and their exceptions. It can optionally support the
20888 Public Suffix List's private domains as well.")
20889 (license license:bsd-3)))
20891 (define-public python2-tldextract
20892 (package-with-python2 python-tldextract))
20894 (define-public python-nodeenv
20896 (name "python-nodeenv")
20900 ;; There's no tarball in PyPI.
20902 (uri (git-reference
20903 (url "https://github.com/ekalinin/nodeenv")
20905 (file-name (git-file-name name version))
20907 (base32 "0y443icx0w7jlzmxmmcm4q8dqfiwgafbb9cp8jpm68mbqxbz40a7"))))
20908 (build-system python-build-system)
20911 (modify-phases %standard-phases
20914 ;; This test fails. It tries to open a network socket.
20915 (invoke "pytest" "-vv" "-k" "not test_smoke"))))))
20917 `(("python-coverage" ,python-coverage)
20918 ("python-mock" ,python-mock)
20919 ("python-pytest" ,python-pytest)))
20920 (home-page "https://ekalinin.github.io/nodeenv/")
20921 (synopsis "Create isolated node.js environments")
20923 "Nodeenv (node.js virtual environment) is a tool to create isolated
20924 node.js environments. It creates an environment that has its own installation
20925 directories, that doesn't share libraries with other node.js virtual
20927 (license license:bsd-3)))
20929 (define-public python-pynamecheap
20931 (name "python-pynamecheap")
20936 (uri (pypi-uri "PyNamecheap" version))
20939 "0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
20940 (build-system python-build-system)
20942 `(("python-requests" ,python-requests)))
20944 "https://github.com/Bemmu/PyNamecheap")
20946 "Namecheap API client in Python")
20948 "PyNamecheap is a Namecheap API client in Python.")
20949 (license license:expat)))
20951 (define-public python2-pynamecheap
20952 (package-with-python2 python-pynamecheap))
20954 (define-public python-dns-lexicon
20956 (name "python-dns-lexicon")
20961 (uri (pypi-uri "dns-lexicon" version))
20964 "0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
20965 (build-system python-build-system)
20967 `(#:tests? #f)) ;requires internet access
20969 `(("python-future" ,python-future)
20970 ("python-pynamecheap" ,python-pynamecheap)
20971 ("python-requests" ,python-requests)
20972 ("python-tldextract" ,python-tldextract)
20973 ("python-urllib3" ,python-urllib3)))
20974 (home-page "https://github.com/AnalogJ/lexicon")
20976 "Manipulate DNS records on various DNS providers")
20978 "Lexicon provides a way to manipulate DNS records on multiple DNS
20979 providers in a standardized way. It has a CLI but it can also be used as a
20980 Python library. It was designed to be used in automation, specifically with
20982 (license license:expat)))
20984 (define-public python2-dns-lexicon
20985 (package-with-python2 python-dns-lexicon))
20987 (define-public python-cfgv
20989 (name "python-cfgv")
20993 ;; There are no tests in the PyPI tarball.
20995 (uri (git-reference
20996 (url "https://github.com/asottile/cfgv")
20997 (commit (string-append "v" version))))
20998 (file-name (git-file-name name version))
21000 (base32 "1vvkkqw92sak4b28bpscpppq483amy52ch2yqy1i2m23q7xjkabx"))))
21001 (build-system python-build-system)
21004 (modify-phases %standard-phases
21007 (invoke "pytest" "-vv"))))))
21009 `(("python-covdefaults" ,python-covdefaults)
21010 ("python-coverage" ,python-coverage)
21011 ("python-pytest" ,python-pytest)))
21012 (home-page "https://github.com/asottile/cfgv")
21013 (synopsis "Configuration validation library")
21015 "This library helps to validate configuration files and produce human
21016 readable error messages.")
21017 (license license:expat)))
21019 (define-public python-commandlines
21021 (name "python-commandlines")
21026 (uri (pypi-uri "commandlines" version))
21029 "0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
21030 (build-system python-build-system)
21031 (home-page "https://github.com/chrissimpkins/commandlines")
21032 (synopsis "Command line argument to object parsing library")
21034 "@code{Commandlines} is a Python library for command line application
21035 development that supports command line argument parsing, command string
21036 validation testing and application logic.")
21037 (license license:expat)))
21039 ;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
21040 ;; python-numba. They have a very unflexible relationship.
21041 (define-public python-numba
21043 (name "python-numba")
21048 (uri (pypi-uri "numba" version))
21051 "0s0777m8kq4l96i88zj78np7283v1n4878qfc1gvzb8l45bmkg8n"))))
21052 (build-system python-build-system)
21055 (modify-phases %standard-phases
21056 (add-after 'unpack 'disable-proprietary-features
21058 (setenv "NUMBA_DISABLE_HSA" "1")
21059 (setenv "NUMBA_DISABLE_CUDA" "1")
21062 (lambda* (#:key inputs outputs #:allow-other-keys)
21063 (add-installed-pythonpath inputs outputs)
21064 ;; Something is wrong with the PYTHONPATH when running the
21065 ;; tests from the build directory, as it complains about not being
21066 ;; able to import certain modules.
21067 (with-directory-excursion "/tmp"
21068 (setenv "HOME" (getcwd))
21069 (invoke "python3" "-m" "numba.runtests" "-v" "-m")))))))
21071 `(("python-llvmlite" ,python-llvmlite)
21072 ("python-numpy" ,python-numpy)
21073 ("python-singledispatch" ,python-singledispatch)))
21074 (native-inputs ;for tests
21075 `(("python-jinja2" ,python-jinja2)
21076 ("python-pygments" ,python-pygments)))
21077 (home-page "https://numba.pydata.org")
21078 (synopsis "Compile Python code using LLVM")
21079 (description "Numba gives you the power to speed up your applications with
21080 high performance functions written directly in Python. With a few
21081 annotations, array-oriented and math-heavy Python code can be just-in-time
21082 compiled to native machine instructions, similar in performance to C, C++ and
21083 Fortran, without having to switch languages or Python interpreters.
21085 Numba works by generating optimized machine code using the LLVM compiler
21086 infrastructure at import time, runtime, or statically (using the included pycc
21088 (license license:bsd-3)))
21090 (define-public python-numcodecs
21092 (name "python-numcodecs")
21097 (uri (pypi-uri "numcodecs" version))
21100 "0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))))
21101 (build-system python-build-system)
21103 `(("python-numpy" ,python-numpy)
21104 ("python-msgpack" ,python-msgpack)))
21106 `(("python-pytest" ,python-pytest)
21107 ("python-setuptools-scm" ,python-setuptools-scm)))
21108 (home-page "https://github.com/zarr-developers/numcodecs")
21109 (synopsis "Buffer compression and transformation codecs")
21111 "This Python package provides buffer compression and transformation
21112 codecs for use in data storage and communication applications.")
21113 (license license:expat)))
21115 (define-public python-asciitree
21117 (name "python-asciitree")
21122 (uri (pypi-uri "asciitree" version))
21125 "0vhgri2m2xlnibhz4xwn4hpbc7xacisxjqrk6k5kyppq96vbk92a"))))
21126 (build-system python-build-system)
21127 (home-page "https://github.com/mbr/asciitree")
21128 (synopsis "Draws ASCII trees")
21129 (description "This package draws tree structures using characters.")
21130 (license license:expat)))
21132 (define-public python-zarr
21134 (name "python-zarr")
21139 (uri (pypi-uri "zarr" version))
21142 "026n3sjzjv2gmwx6y72b8ij0hk42bc8zdbvfj5gdqzd4i6wj3ajk"))))
21143 (build-system python-build-system)
21146 (modify-phases %standard-phases
21147 (add-after 'unpack 'disable-service-tests
21149 (setenv "ZARR_TEST_ABS" "0")
21150 (setenv "ZARR_TEST_MONGO" "0")
21151 (setenv "ZARR_TEST_REDIS" "0")
21155 (invoke "pytest" "-vv" "-k" "not lmdb")
21158 `(("python-asciitree" ,python-asciitree)
21159 ("python-fasteners" ,python-fasteners)
21160 ("python-numcodecs" ,python-numcodecs)
21161 ("python-numpy" ,python-numpy)))
21163 `(("python-pytest" ,python-pytest)
21164 ("python-setuptools-scm" ,python-setuptools-scm)))
21165 (home-page "https://github.com/zarr-developers/zarr-python")
21166 (synopsis "Chunked, compressed, N-dimensional arrays for Python")
21168 "This package provides an implementation of chunked, compressed,
21169 N-dimensional arrays for Python.")
21170 (license license:expat)))
21172 (define-public python-anndata
21174 (name "python-anndata")
21179 (uri (pypi-uri "anndata" version))
21182 "1ch8yp0xmag6z0kl01pljm35lbbwax7lrimfhiclpkd4m6xngk53"))))
21183 (build-system python-build-system)
21185 `(#:tests? #f ; The tarball from PyPi doesn't include tests.
21187 (modify-phases %standard-phases
21189 (add-before 'build 'relax-dependency-requirements
21191 ;; We need to upgrade python-pandas to avoid
21192 ;; https://github.com/pandas-dev/pandas/issues/35446
21193 (substitute* "pyproject.toml"
21194 (("pandas>=1.1.1") "pandas>=1.0.5"))))
21197 ;; ZIP does not support timestamps before 1980.
21198 (setenv "SOURCE_DATE_EPOCH" "315532800")
21199 (invoke "flit" "build")))
21201 (lambda* (#:key inputs outputs #:allow-other-keys)
21202 (add-installed-pythonpath inputs outputs)
21203 (let ((out (assoc-ref outputs "out")))
21204 (for-each (lambda (wheel)
21205 (format #true wheel)
21206 (invoke "python" "-m" "pip" "install"
21207 wheel (string-append "--prefix=" out)))
21208 (find-files "dist" "\\.whl$")))
21211 `(("python-h5py" ,python-h5py)
21212 ("python-importlib-metadata" ,python-importlib-metadata)
21213 ("python-natsort" ,python-natsort)
21214 ("python-numcodecs" ,python-numcodecs)
21215 ("python-packaging" ,python-packaging)
21216 ("python-pandas" ,python-pandas)
21217 ("python-scipy" ,python-scipy)
21218 ("python-zarr" ,python-zarr)))
21220 `(("python-joblib" ,python-joblib)
21221 ("python-pytest" ,python-pytest)
21222 ("python-toml" ,python-toml)
21223 ("python-flit" ,python-flit)
21224 ("python-setuptools-scm" ,python-setuptools-scm)))
21225 (home-page "https://github.com/theislab/anndata")
21226 (synopsis "Annotated data for data analysis pipelines")
21227 (description "Anndata is a package for simple (functional) high-level APIs
21228 for data analysis pipelines. In this context, it provides an efficient,
21229 scalable way of keeping track of data together with learned annotations and
21230 reduces the code overhead typically encountered when using a mostly
21231 object-oriented library such as @code{scikit-learn}.")
21232 (license license:bsd-3)))
21234 (define-public python-dill
21236 (name "python-dill")
21237 (version "0.3.1.1")
21241 (uri (pypi-uri "dill" version))
21243 (base32 "1704g8z70d210ksgbccs2v545v9w0wc6lx15m296alb7jf0yzn22"))))
21244 (build-system python-build-system)
21247 (modify-phases %standard-phases
21250 (with-directory-excursion "/tmp"
21251 (invoke "nosetests" "-v"))
21254 `(("python-nose" ,python-nose)))
21255 (home-page "https://pypi.org/project/dill/")
21256 (synopsis "Serialize all of Python")
21257 (description "Dill extends Python's @code{pickle} module for serializing
21258 and de-serializing Python objects to the majority of the built-in Python
21259 types. Dill provides the user the same interface as the @code{pickle} module,
21260 and also includes some additional features. In addition to pickling Python
21261 objects, @code{dill} provides the ability to save the state of an interpreter
21262 session in a single command. Hence, it would be feasible to save a
21263 interpreter session, close the interpreter, ship the pickled file to another
21264 computer, open a new interpreter, unpickle the session and thus continue from
21265 the saved state of the original interpreter session.")
21266 (license license:bsd-3)))
21268 (define-public python-multiprocess
21270 (name "python-multiprocess")
21275 (uri (pypi-uri "multiprocess" version))
21278 "1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
21279 (build-system python-build-system)
21282 (modify-phases %standard-phases
21283 (add-after 'unpack 'disable-broken-tests
21285 ;; This test is broken as there is no keyboard interrupt.
21286 (substitute* "py3.7/multiprocess/tests/__init__.py"
21287 (("^(.*)def test_wait_result"
21289 (string-append indent
21290 "@unittest.skip(\"Disabled by Guix\")\n"
21293 ;; Tests must be run after installation.
21295 (add-after 'install 'check
21296 (lambda* (#:key inputs outputs #:allow-other-keys)
21297 (add-installed-pythonpath inputs outputs)
21298 (invoke "python" "-m" "multiprocess.tests")
21301 `(("python-dill" ,python-dill)))
21302 (home-page "https://pypi.org/project/multiprocess/")
21303 (synopsis "Multiprocessing and multithreading in Python")
21305 "This package is a fork of the multiprocessing Python package, a package
21306 which supports the spawning of processes using the API of the standard
21307 library's @code{threading} module.")
21308 (license license:bsd-3)))
21310 (define-public python-toolz
21312 (name "python-toolz")
21317 (uri (pypi-uri "toolz" version))
21320 "1grz3zvw5ixwqqlbv0n7j11mlcxb66cirh5i9x9zw8kqy0hpk967"))))
21321 (build-system python-build-system)
21324 (modify-phases %standard-phases
21326 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
21328 (add-installed-pythonpath inputs outputs)
21329 (invoke "python" "-m" "pytest" "--doctest-modules"
21330 "--pyargs" "toolz")))))))
21332 `(("python-pytest" ,python-pytest)))
21333 (home-page "https://github.com/pytoolz/toolz/")
21334 (synopsis "List processing tools and functional utilities")
21336 "This package provides a set of utility functions for iterators,
21337 functions, and dictionaries.")
21338 (license license:bsd-3)))
21340 (define-public python2-toolz
21341 (package-with-python2 python-toolz))
21343 (define-public python-cytoolz
21345 (name "python-cytoolz")
21346 (version "0.9.0.1")
21350 (uri (pypi-uri "cytoolz" version))
21353 "1r80p88hm3f3r4zpixzr047y5hw4bzy41m4xywnhycda83x0dk44"))))
21354 (build-system python-build-system)
21355 ;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
21357 (arguments '(#:tests? #f))
21359 `(("python-toolz" ,python-toolz)))
21361 `(("python-cython" ,python-cython)))
21362 (home-page "https://github.com/pytoolz/cytoolz")
21363 (synopsis "High performance functional utilities")
21365 "The cytoolz package implements the same API as provided by toolz. The
21366 main differences are that @code{cytoolz} is faster and cytoolz offers a C API
21367 that is accessible to other projects developed in Cython.")
21368 (license license:bsd-3)))
21370 (define-public python-sortedcollections
21372 (name "python-sortedcollections")
21377 (uri (pypi-uri "sortedcollections" version))
21380 "1kfabpnjyjm5ml2zspry9jy3xq49aybchgaa4ahic2jqdjfn1sfq"))))
21381 (build-system python-build-system)
21383 `(("python-sortedcontainers" ,python-sortedcontainers)))
21384 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
21385 (home-page "http://www.grantjenks.com/docs/sortedcollections/")
21386 (synopsis "Python Sorted Collections")
21387 (description "Sorted Collections is a Python sorted collections library.")
21388 (license license:asl2.0)))
21390 (define-public python-sortedcontainers
21392 (name "python-sortedcontainers")
21397 (uri (pypi-uri "sortedcontainers" version))
21400 "0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
21401 (build-system python-build-system)
21403 ;; FIXME: Tests require many extra dependencies, and would introduce
21404 ;; a circular dependency on hypothesis, which uses this package.
21407 `(("python-appdirs" ,python-appdirs)
21408 ("python-distlib" ,python-distlib)
21409 ("python-filelock" ,python-filelock)
21410 ("python-six" ,python-six-bootstrap)))
21411 (home-page "http://www.grantjenks.com/docs/sortedcontainers/")
21412 (synopsis "Sorted List, Sorted Dict, Sorted Set")
21414 "This package provides a sorted collections library, written in
21416 (license license:asl2.0)))
21418 (define-public python2-sortedcontainers
21419 (package-with-python2 python-sortedcontainers))
21421 (define-public python-cloudpickle
21423 (name "python-cloudpickle")
21428 (uri (pypi-uri "cloudpickle" version))
21431 "0lx7gy9clp427qwcm7b23zdsldpr03gy3vxxhyi8fpbhwz859brq"))))
21432 (build-system python-build-system)
21434 '(#:phases (modify-phases %standard-phases
21435 (add-before 'check 'do-not-override-PYTHONPATH
21437 ;; Append to PYTHONPATH instead of overriding it so
21438 ;; that dependencies from Guix can be found.
21439 (substitute* "tests/testutils.py"
21440 (("env\\['PYTHONPATH'\\] = pythonpath")
21441 "env['PYTHONPATH'] += os.pathsep + pythonpath"))
21444 (lambda* (#:key tests? #:allow-other-keys)
21446 (invoke "pytest" "-s" "-vv")
21447 (format #t "test suite not run~%"))
21451 ("python-psutil" ,python-psutil)
21452 ("python-pytest" ,python-pytest)
21453 ("python-tornado" ,python-tornado)))
21454 (home-page "https://github.com/cloudpipe/cloudpickle")
21455 (synopsis "Extended pickling support for Python objects")
21457 "Cloudpickle makes it possible to serialize Python constructs not
21458 supported by the default pickle module from the Python standard library. It
21459 is especially useful for cluster computing where Python expressions are
21460 shipped over the network to execute on remote hosts, possibly close to the
21462 (properties `((python2-variant . ,(delay python2-cloudpickle))))
21463 (license license:bsd-3)))
21465 (define-public python2-cloudpickle
21466 (let ((base (package-with-python2 (strip-python2-variant python-cloudpickle))))
21467 (package/inherit base
21469 `(("python-mock" ,python2-mock)
21470 ,@(package-native-inputs base)))
21472 `(("python-futures" ,python2-futures)
21473 ,@(package-propagated-inputs base))))))
21475 (define-public python-locket
21477 (name "python-locket")
21482 (uri (pypi-uri "locket" version))
21485 "1d4z2zngrpqkrfhnd4yhysh66kjn4mblys2l06sh5dix2p0n7vhz"))))
21486 (build-system python-build-system)
21487 (home-page "https://github.com/mwilliamson/locket.py")
21488 (synopsis "File-based locks for Python")
21490 "Locket implements a lock that can be used by multiple processes provided
21491 they use the same path.")
21492 (license license:bsd-2)))
21494 (define-public python2-locket
21495 (package-with-python2 python-locket))
21497 (define-public python-blosc
21499 (name "python-blosc")
21504 (uri (pypi-uri "blosc" version))
21507 "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
21508 (build-system python-build-system)
21509 ;; FIXME: all tests pass, but then this error is printed:
21510 ;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
21511 (arguments '(#:tests? #f))
21513 `(("python-numpy" ,python-numpy)))
21514 (home-page "https://github.com/blosc/python-blosc")
21515 (synopsis "Python wrapper for the Blosc data compressor library")
21516 (description "Blosc is a high performance compressor optimized for binary
21517 data. It has been designed to transmit data to the processor cache faster
21518 than the traditional, non-compressed, direct memory fetch approach via a
21519 @code{memcpy()} system call.
21521 Blosc works well for compressing numerical arrays that contains data with
21522 relatively low entropy, like sparse data, time series, grids with
21523 regular-spaced values, etc.
21525 This Python package wraps the Blosc library.")
21526 (license license:bsd-3)))
21528 (define-public python2-blosc
21529 (package-with-python2 python-blosc))
21531 (define-public python-partd
21533 (name "python-partd")
21538 (uri (pypi-uri "partd" version))
21541 "0sz6rwlnl4fqq220pyz863cnv0gjdxl4m7lscl71ishl5z0xkmhz"))))
21542 (build-system python-build-system)
21544 `(("python-blosc" ,python-blosc)
21545 ("python-locket" ,python-locket)
21546 ("python-numpy" ,python-numpy)
21547 ("python-pandas" ,python-pandas)
21548 ("python-pyzmq" ,python-pyzmq)
21549 ("python-toolz" ,python-toolz)))
21550 (home-page "https://github.com/dask/partd/")
21551 (synopsis "Appendable key-value storage")
21552 (description "Partd stores key-value pairs. Values are raw bytes. We
21553 append on old values. Partd excels at shuffling operations.")
21554 (license license:bsd-3)))
21556 (define-public python-fsspec
21558 (name "python-fsspec")
21563 (uri (pypi-uri "fsspec" version))
21566 "1g9ba8v04s1nrh7pvzfm2md7ivl2mrz3hcq3y9d1a44gd62h17zj"))))
21567 (build-system python-build-system)
21568 (arguments '(#:tests? #f)) ; there are none
21569 (home-page "https://github.com/intake/filesystem_spec")
21570 (synopsis "File-system specification")
21571 (description "The purpose of this package is to produce a template or
21572 specification for a file-system interface, that specific implementations
21573 should follow, so that applications making use of them can rely on a common
21574 behavior and not have to worry about the specific internal implementation
21575 decisions with any given backend.")
21576 (license license:bsd-3)))
21578 (define-public python-dask
21580 (name "python-dask")
21585 (uri (pypi-uri "dask" version))
21587 (base32 "031j0j26s0675v0isyps2dphm03330n7dy8ifdy70jgvf78d119q"))))
21588 (build-system python-build-system)
21591 (modify-phases %standard-phases
21592 (add-after 'unpack 'disable-broken-tests
21594 ;; This test is marked as xfail when pytest-xdist is used.
21595 (substitute* "dask/tests/test_threaded.py"
21596 (("def test_interrupt\\(\\)" m)
21597 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
21599 ;; This one fails with a type error:
21600 ;; TypeError: Already tz-aware, use tz_convert to convert.
21601 (substitute* "dask/dataframe/tests/test_shuffle.py"
21602 (("def test_set_index_timestamp\\(\\)" m)
21603 (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
21607 (lambda _ (invoke "pytest" "-vv"))))))
21609 `(("python-cloudpickle" ,python-cloudpickle)
21610 ("python-fsspec" ,python-fsspec)
21611 ("python-numpy" ,python-numpy)
21612 ("python-packaging" ,python-packaging)
21613 ("python-pandas" ,python-pandas)
21614 ("python-partd" ,python-partd)
21615 ("python-toolz" ,python-toolz)
21616 ("python-pyyaml" ,python-pyyaml)))
21618 `(("python-pytest" ,python-pytest)
21619 ("python-pytest-runner" ,python-pytest-runner)))
21620 (home-page "https://github.com/dask/dask/")
21621 (synopsis "Parallel computing with task scheduling")
21623 "Dask is a flexible parallel computing library for analytics. It
21624 consists of two components: dynamic task scheduling optimized for computation,
21625 and large data collections like parallel arrays, dataframes, and lists that
21626 extend common interfaces like NumPy, Pandas, or Python iterators to
21627 larger-than-memory or distributed environments. These parallel collections
21628 run on top of the dynamic task schedulers. ")
21629 (license license:bsd-3)))
21631 (define-public python-ilinkedlist
21633 (name "python-ilinkedlist")
21638 (uri (pypi-uri "ilinkedlist" version))
21641 "0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l"))))
21642 (build-system python-build-system)
21643 (native-inputs `(("python-pytest" ,python-pytest)))
21644 (inputs `(("python" ,python)))
21645 (home-page "https://github.com/luther9/ilinkedlist-py")
21646 (synopsis "Immutable linked list library")
21648 "This is a implementation of immutable linked lists for Python. It
21649 contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
21650 Since a linked list is treated as immutable, it is hashable, and its length
21651 can be retrieved in constant time. Some of the terminology is inspired by
21652 LISP. It is possible to create an improper list by creating a @code{Pair}
21653 with a non-list @code{cdr}.")
21654 (license license:gpl3+)))
21656 (define-public python-readlike
21658 (name "python-readlike")
21663 (uri (pypi-uri "readlike" version))
21665 (base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
21666 (build-system python-build-system)
21667 (home-page "https://github.com/jangler/readlike")
21668 (synopsis "GNU Readline-like line editing module")
21670 "This Python module provides line editing functions similar to the default
21671 Emacs-style ones of GNU Readline. Unlike the Python standard library's
21672 @code{readline} package, this one allows access to those capabilities in settings
21673 outside of a standard command-line interface. It is especially well-suited to
21674 interfacing with Urwid, due to a shared syntax for describing key inputs.
21676 Currently, all stateless Readline commands are implemented. Yanking and history
21677 are not supported.")
21678 (license license:expat)))
21680 (define-public python2-readlike
21681 (package-with-python2 python-readlike))
21683 (define-public python-reparser
21685 (name "python-reparser")
21690 (uri (pypi-uri "ReParser" version))
21692 (base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
21693 (build-system python-build-system)
21694 (home-page "https://github.com/xmikos/reparser")
21695 (synopsis "Simple lexer/parser for inline markup based on regular expressions")
21697 "This Python library provides a simple lexer/parser for inline markup based
21698 on regular expressions.")
21699 (license license:expat)))
21701 (define-public python2-reparser
21702 (let ((reparser (package-with-python2
21703 (strip-python2-variant python-reparser))))
21704 (package/inherit reparser
21706 `(("python2-enum34" ,python2-enum34)
21707 ,@(package-propagated-inputs reparser))))))
21709 (define-public python-retrying
21711 (name "python-retrying")
21716 (uri (git-reference
21717 (url "https://github.com/rholder/retrying")
21718 (commit (string-append "v" version))))
21719 (file-name (git-file-name name version))
21722 "1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
21723 (build-system python-build-system)
21725 `(("python-six" ,python-six)))
21726 (home-page "https://github.com/rholder/retrying")
21727 (synopsis "Library for adding retry behavior")
21728 (description "Retrying is a general-purpose retrying library to simplify
21729 the task of adding retry behavior to just about anything.
21734 @item Generic Decorator API.
21735 @item Specify stop condition (i.e. limit by number of attempts).
21736 @item Specify wait condition (i.e. exponential backoff sleeping between attempts).
21737 @item Customize retrying on Exceptions.
21738 @item Customize retrying on expected returned result.
21740 (license license:asl2.0)))
21742 (define-public python-pre-commit
21744 (name "python-pre-commit")
21749 (uri (pypi-uri "pre_commit" version))
21751 (base32 "1ycf6wpxrhxhdzz0vpryhbdxlwik5khgcvp3hxwvfr447a6k84zl"))))
21752 (build-system python-build-system)
21754 ;; Tests fail with "AttributeError: module 'pre_commit.resources' has no
21755 ;; attribute 'empty_template_setup'".
21756 `(#:tests? #false))
21758 `(("python-cfgv" ,python-cfgv)
21759 ("python-identify" ,python-identify)
21760 ("python-importlib-metadata" ,python-importlib-metadata)
21761 ("python-importlib-resources" ,python-importlib-resources)
21762 ("python-nodeenv" ,python-nodeenv)
21763 ("python-pyyaml" ,python-pyyaml)
21764 ("python-toml" ,python-toml)
21765 ("python-virtualenv" ,python-virtualenv)))
21766 (home-page "https://github.com/pre-commit/pre-commit")
21767 (synopsis "Framework for managing multi-language pre-commit hooks")
21769 "This package provides a framework for managing and maintaining
21770 multi-language pre-commit hooks.")
21771 (license license:expat)))
21773 (define-public python-precis-i18n
21775 (name "python-precis-i18n")
21780 (uri (pypi-uri "precis_i18n" version))
21783 "0gjhvwd8aifx94rl1ag08vlmndyx2q3fkyqb0c4i46x3p2bc2yi2"))))
21784 (build-system python-build-system)
21785 (home-page "https://github.com/byllyfish/precis_i18n")
21786 (synopsis "Implementation of the PRECIS framework")
21788 "This module implements the PRECIS Framework as described in RFC 8264,
21789 RFC 8265 and RFC 8266.")
21790 (license license:expat)))
21792 (define-public python-absl-py
21794 (name "python-absl-py")
21799 (uri (pypi-uri "absl-py" version))
21802 "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
21803 (build-system python-build-system)
21805 `(("python-six" ,python-six)))
21806 (home-page "https://github.com/abseil/abseil-py")
21807 (synopsis "Abseil Python common libraries")
21809 "This package provides the Abseil Python Common Libraries, a collection
21810 of Python libraries for building Python applications.")
21811 (license license:asl2.0)))
21813 (define-public python-astor
21815 (name "python-astor")
21820 (uri (pypi-uri "astor" version))
21823 "0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka"))))
21824 (build-system python-build-system)
21825 ;; FIXME: There are two errors and two test failures.
21826 (arguments `(#:tests? #f))
21827 (home-page "https://github.com/berkerpeksag/astor")
21828 (synopsis "Read and write Python ASTs")
21829 (description "Astor is designed to allow easy manipulation of Python
21830 source via the Abstract Syntax Tree.")
21831 (license license:bsd-3)))
21833 (define-public python2-astor
21834 (package-with-python2 python-astor))
21836 (define-public python-astunparse
21838 (name "python-astunparse")
21843 (uri (pypi-uri "astunparse" version))
21845 (base32 "0rzbc44xcvzjhhiy7wac96mgal5mcjz1mfq8rmvgswskf4kf9cys"))))
21846 (build-system python-build-system)
21847 (arguments '(#:tests? #f)) ; there are none
21849 `(("python-six" ,python-six)
21850 ("python-wheel" ,python-wheel)))
21851 (home-page "https://github.com/simonpercivall/astunparse")
21852 (synopsis "AST unparser for Python")
21853 (description "This package provides an AST unparser for Python. It is a
21854 factored out version of @code{unparse} found in the Python source
21856 (license license:bsd-3)))
21858 (define-public python-gast
21860 (name "python-gast")
21865 (uri (pypi-uri "gast" version))
21867 (base32 "0mrvvfzqafj1wzd0xxfmjf4vphnlxypbhpic1m283aj9i8lfz0dq"))))
21868 (build-system python-build-system)
21870 `(("python-astunparse" ,python-astunparse)))
21871 (home-page "https://pypi.org/project/gast/")
21872 (synopsis "Generic Python AST that abstracts the underlying Python version")
21874 "GAST provides a compatibility layer between the AST of various Python
21875 versions, as produced by @code{ast.parse} from the standard @code{ast}
21877 (license license:bsd-3)))
21879 (define-public python-wikidata
21881 (name "python-wikidata")
21886 (uri (pypi-uri "Wikidata" version))
21889 "08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
21890 (build-system python-build-system)
21892 `(("python-babel" ,python-babel)))
21893 (home-page "https://github.com/dahlia/wikidata")
21894 (synopsis "Wikidata client library")
21896 "This package provides a Python interface to
21897 @url{https://www.wikidata.org/, Wikidata}.")
21898 (properties '((upstream-name . "Wikidata")))
21899 (license license:gpl3+)))
21901 (define-public python-doctest-ignore-unicode
21903 (name "python-doctest-ignore-unicode")
21908 (uri (pypi-uri "doctest-ignore-unicode" version))
21911 "1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w"))))
21912 (build-system python-build-system)
21914 `(("python-nose" ,python-nose)))
21915 (home-page "https://github.com/gnublade/doctest-ignore-unicode")
21916 (synopsis "Ignore Unicode literal prefixes in doctests")
21918 "This package adds support for a flag to ignore Unicode literal prefixes
21920 (license license:asl2.0)))
21922 (define-public python-attr
21924 (name "python-attr")
21929 (uri (pypi-uri "attr" version))
21932 "0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch"))))
21933 (build-system python-build-system)
21934 (home-page "https://github.com/denis-ryzhkov/attr")
21935 (synopsis "Decorator for attributes of target function or class")
21936 (description "Simple decorator to set attributes of target function or
21937 class in a @acronym{DRY, Don't Repeat Yourself} way.")
21938 (license license:expat)))
21940 (define-public python-construct
21942 (name "python-construct")
21943 (version "2.10.56")
21947 (uri (pypi-uri "construct" version))
21950 "0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp"))))
21951 (build-system python-build-system)
21953 `(#:tests? #f)) ; No tests exist.
21955 `(("python-extras" ,python-extras)
21956 ("python-arrow" ,python-arrow)
21957 ("python-numpy" ,python-numpy)
21958 ("python-ruamel.yaml" ,python-ruamel.yaml)))
21959 (home-page "https://construct.readthedocs.io")
21960 (synopsis "Declarative and symmetrical parser and builder for binary data")
21962 "This package provides both simple, atomic constructs (such as
21963 integers of various sizes), as well as composite ones which allow you
21964 form hierarchical and sequential structures of increasing complexity.
21965 It features bit and byte granularity, easy debugging and testing, an
21966 easy-to-extend subclass system, and lots of primitive constructs to
21967 make your work easier.")
21968 (license license:expat)))
21970 (define-public python-outcome
21972 (name "python-outcome")
21977 (uri (pypi-uri "outcome" version))
21979 (base32 "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
21980 (build-system python-build-system)
21983 (modify-phases %standard-phases
21985 (lambda* (#:key inputs outputs #:allow-other-keys)
21986 (add-installed-pythonpath inputs outputs)
21987 (invoke "pytest" "-vv"))))))
21989 `(("python-pytest" ,python-pytest)
21990 ("python-pytest-cov" ,python-pytest-cov)
21991 ("python-pytest-asyncio" ,python-pytest-asyncio)))
21993 `(("python-async-generator" ,python-async-generator)
21994 ("python-attrs" ,python-attrs)))
21995 (home-page "https://github.com/python-trio/outcome")
21996 (synopsis "Capture the outcome of Python function calls")
21998 "Capture the outcome of Python function calls. Extracted from the Trio
22000 ;; Either license applies.
22001 (license (list license:expat license:asl2.0))))
22003 (define-public python-trio
22005 (name "python-trio")
22010 (uri (pypi-uri "trio" version))
22012 (base32 "0zcxirpdvvl54pbfkgw7vz984879xwvdygqfpggnam24is2zjp78"))))
22013 (build-system python-build-system)
22016 (modify-phases %standard-phases
22017 (add-before 'check 'change-home
22019 ;; Tests require a writable home.
22020 (setenv "HOME" "/tmp")
22024 (invoke "pytest" "-vv" "-k"
22026 ;; This test times out.
22027 "not test_ki_protection_works"
22028 ;; Assertion errors.
22029 " and not test_guest_mode_ki"
22030 " and not test_run_in_trio_thread_ki"
22031 ;; These try to raise KeyboardInterrupt which does not work
22032 ;; in the build environment.
22033 " and not test_ki_self"
22034 " and not test_ki_wakes_us_up"
22035 ;; Failure in name resolution.
22036 " and not test_getnameinfo"
22037 " and not test_SocketType_resolve"
22038 ;; OSError: protocol not found.
22039 " and not test_getprotobyname")))))))
22041 `(("python-astor" ,python-astor)
22042 ("python-ipython" ,python-ipython)
22043 ("python-jedi" ,python-jedi)
22044 ("python-pylint" ,python-pylint)
22045 ("python-pyopenssl" ,python-pyopenssl)
22046 ("python-pytest" ,python-pytest)
22047 ("python-pytest-cov" ,python-pytest-cov)
22048 ("python-trustme" ,python-trustme)))
22050 `(("python-attrs" ,python-attrs)
22051 ("python-idna" ,python-idna)
22052 ("python-outcome" ,python-outcome)
22053 ("python-sniffio" ,python-sniffio)
22054 ("python-sortedcontainers"
22055 ,python-sortedcontainers)))
22056 (home-page "https://github.com/python-trio/trio")
22057 (synopsis "Friendly Python library for async concurrency and I/O")
22059 "Trio strives to be a production-quality, async/await-native I/O library
22060 for Python. Like all async libraries, its main purpose is to help you write
22061 programs that do multiple things at the same time with parallelized I/O.")
22062 ;; Either license applies.
22063 (license (list license:expat license:asl2.0))))
22065 (define-public python-trio-typing
22067 (name "python-trio-typing")
22072 (uri (pypi-uri "trio-typing" version))
22074 (base32 "1yvlj4vf3wyvp16dw6vyfm4i2idm8lvdc3fvjhi6mhm62zv7s07j"))))
22075 (build-system python-build-system)
22078 (modify-phases %standard-phases
22081 (invoke "pytest" "-vv"))))))
22083 `(("python-attrs" ,python-attrs)
22084 ("python-pytest" ,python-pytest)))
22086 `(("python-mypy" ,python-mypy)
22087 ("python-mypy-extensions"
22088 ,python-mypy-extensions)
22089 ("python-trio" ,python-trio)
22090 ("python-typing-extensions"
22091 ,python-typing-extensions)))
22092 (home-page "https://github.com/python-trio/trio-typing")
22093 (synopsis "Static type checking support for Trio and related projects")
22095 "This package provides:
22098 @item PEP 561 typing stubs packages for the Trio project packages:
22101 @item trio (@code{trio-stubs})
22102 @item outcome (@code{outcome-stubs})
22103 @item async_generator (@code{async_generator-stubs})
22106 @item A package @code{trio_typing} containing types that Trio programs often
22107 want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
22108 a mypy plugin that smooths over some limitations in the basic type hints.
22110 ;; Either license applies.
22111 (license (list license:expat license:asl2.0))))
22113 (define-public python-humanize
22115 (name "python-humanize")
22120 (uri (pypi-uri "humanize" version))
22123 "06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4"))))
22125 '(#:tests? #f)) ; tests not in pypi archive
22126 (build-system python-build-system)
22127 (home-page "https://github.com/jmoiron/humanize")
22128 (synopsis "Print numerical information in a human-readable form")
22129 (description "This package provides a Python module that displays numbers
22130 and dates in \"human readable\" forms. For example, it would display
22131 \"12345591313\" as \"12.3 billion\".")
22132 (license license:expat)))
22134 (define-public python-txaio
22136 (name "python-txaio")
22141 (uri (pypi-uri "txaio" version))
22144 "1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7"))))
22145 (build-system python-build-system)
22147 `(("python-twisted" ,python-twisted)
22148 ("python-six" ,python-six)))
22149 (home-page "https://github.com/crossbario/txaio")
22150 (synopsis "Compatibility layer between Python asyncio and Twisted")
22151 (description "Txaio provides a compatibility layer between the Python
22152 @code{asyncio} module and @code{Twisted}.")
22153 (license license:expat)))
22155 (define-public python-toolshed
22157 (name "python-toolshed")
22162 (uri (pypi-uri "toolshed" version))
22165 "14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3"))))
22166 (build-system python-build-system)
22168 `(("python-nose" ,python-nose)))
22169 (home-page "https://github.com/brentp/toolshed/")
22170 (synopsis "Collection of modules and functions for working with data")
22171 (description "This is a collection of well-tested, simple modules and
22172 functions that aim to reduce boilerplate when working with data.")
22173 (license license:bsd-2)))
22175 (define-public python-annoy
22177 (name "python-annoy")
22182 (uri (pypi-uri "annoy" version))
22185 "1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
22186 (build-system python-build-system)
22188 `(("python-nose" ,python-nose)))
22189 (home-page "https://github.com/spotify/annoy/")
22190 (synopsis "Approximate nearest neighbors library")
22192 "Annoy is a C++ library with Python bindings to search for points in
22193 space that are close to a given query point. It also creates large read-only
22194 file-based data structures that are @code{mmap}ped into memory so that many
22195 processes may share the same data.")
22196 (license license:asl2.0)))
22198 (define-public python-croniter
22200 (name "python-croniter")
22204 (uri (pypi-uri "croniter" version))
22207 "0r79cx4v2dw4hzr0annkkxxis46c8hivq61sr39z6p7lcjsbk1ki"))))
22208 (build-system python-build-system)
22210 `(("python-dateutil" ,python-dateutil)
22211 ("python-natsort" ,python-natsort)))
22212 (home-page "https://github.com/kiorky/croniter")
22213 (synopsis "Iterate datetime objects with cron-like syntax")
22215 "@code{croniter} provides iteration for datetime object with cron-like
22217 (license license:expat)))
22219 (define-public python-pylzma
22221 (name "python-pylzma")
22226 (uri (pypi-uri "pylzma" version))
22229 "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
22230 (build-system python-build-system)
22231 (home-page "https://www.joachim-bauch.de/projects/pylzma/")
22232 (synopsis "Python bindings for the LZMA library by Igor Pavlov.")
22233 (description "This package provides Python bindings for the LZMA library
22235 (license license:lgpl2.1+)))
22237 (define-public python2-pylzma
22238 (package-with-python2 python-pylzma))
22240 (define-public python-ifaddr
22242 (name "python-ifaddr")
22247 (uri (pypi-uri "ifaddr" version))
22250 "150sxdlicwrphmhnv03ykxplyd2jdrxz0mikgnivavgilrn8m7hz"))))
22251 (build-system python-build-system)
22254 (modify-phases %standard-phases
22256 (lambda _ (invoke "nosetests"))))))
22258 `(("python-nose" ,python-nose)))
22259 (home-page "https://github.com/pydron/ifaddr")
22260 (synopsis "Network interface and IP address enumeration library")
22261 (description "This package provides a network interface and IP address
22262 enumeration library in Python.")
22263 (license license:expat)))
22265 (define-public python-zeroconf
22267 (name "python-zeroconf")
22272 (uri (pypi-uri "zeroconf" version))
22275 "0narq8haa3b375vfblbyil77n8bw0wxqnanl91pl0wwwm884mqjb"))))
22276 (build-system python-build-system)
22278 `(("python-nose" ,python-nose)))
22280 `(("python-ifaddr" ,python-ifaddr)))
22283 (modify-phases %standard-phases
22285 (lambda _ ;; Networking isn't available for these tests.
22286 (invoke "nosetests" "-v"
22287 "--exclude" "test_integration_with_listener_ipv6"
22288 "--exclude" "test_launch_and_close_v6_only"
22289 "--exclude" "test_launch_and_close_v4_v6"
22290 "--exclude" "test_launch_and_close"))))))
22291 (home-page "https://github.com/jstasiak/python-zeroconf")
22292 (synopsis "Pure Python mDNS service discovery")
22294 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
22296 (license license:lgpl2.1+)))
22298 (define-public python2-zeroconf
22300 (name "python2-zeroconf")
22302 ;; This is the last version that supports Python 2.x.
22307 (uri (pypi-uri "zeroconf" version))
22310 "0ykzg730n915qbrq9bn5pn06bv6rb5zawal4sqjyfnjjm66snkj3"))))
22311 (build-system python-build-system)
22313 `(#:python ,python-2
22315 (modify-phases %standard-phases
22316 (add-after 'unpack 'patch-requires
22317 (lambda* (#:key inputs #:allow-other-keys)
22318 (substitute* "setup.py"
22323 `(("python2-six" ,python2-six)
22324 ("python2-enum32" ,python2-enum34)
22325 ("python2-netifaces" ,python2-netifaces)
22326 ("python2-typing" ,python2-typing)))
22327 (home-page "https://github.com/jstasiak/python-zeroconf")
22328 (synopsis "Pure Python mDNS service discovery")
22330 "Pure Python multicast DNS (mDNS) service discovery library (Bonjour/Avahi
22332 (license license:lgpl2.1+)))
22334 (define-public python-bsddb3
22336 (name "python-bsddb3")
22341 (uri (pypi-uri "bsddb3" version))
22344 "019db2y6bfmiqbrgg9x9f6h72qjmqh05czdn2v5sy9bl0gs23mj2"))))
22345 (build-system python-build-system)
22350 (modify-phases %standard-phases
22351 (add-after 'unpack 'configure-locations
22352 (lambda* (#:key inputs #:allow-other-keys)
22353 (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
22354 (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")
22358 (invoke "python3" "test3.py" "-v"))))))
22359 (home-page "https://www.jcea.es/programacion/pybsddb.htm")
22360 (synopsis "Python bindings for Oracle Berkeley DB")
22362 "This module provides a nearly complete wrapping of the Oracle/Sleepycat
22363 C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
22364 Transaction objects, and each of these is exposed as a Python type in the
22365 bsddb3.db module. The database objects can use various access methods: btree,
22366 hash, recno, and queue. Complete support of Berkeley DB distributed
22367 transactions. Complete support for Berkeley DB Replication Manager.
22368 Complete support for Berkeley DB Base Replication. Support for RPC.")
22369 (license license:bsd-3)))
22371 (define-public python-dbfread
22373 (name "python-dbfread")
22377 (uri (pypi-uri "dbfread" version))
22380 "0gdpwdzf1fngsi6jrdyj4qdf6cr7gnnr3zp80dpkzbgz0spskj07"))))
22381 (build-system python-build-system)
22383 `(("python-pytest" ,python-pytest)))
22384 (home-page "https://dbfread.readthedocs.io")
22385 (synopsis "Read DBF Files with Python")
22387 "This library reads DBF files and returns the data as native Python data
22388 types for further processing. It is primarily intended for batch jobs and
22390 (license license:expat)))
22392 (define-public python-cached-property
22394 (name "python-cached-property")
22399 (uri (pypi-uri "cached-property" version))
22402 "0c51i6yzg6dlq6zhk4c6nv33mg8gv05kkan36k9b5jzf71c7b9cz"))))
22403 (build-system python-build-system)
22406 (modify-phases %standard-phases
22407 ;; https://github.com/pydanny/cached-property/issues/131
22408 ;; recent versions of freezegun break one test
22409 (add-after 'unpack 'disable-broken-test
22411 (substitute* "tests/test_cached_property.py"
22412 (("def test_threads_ttl_expiry\\(self\\)" m)
22413 (string-append "@unittest.skip(\"Disabled by Guix\")\n"
22417 `(("python-freezegun" ,python-freezegun)))
22419 "https://github.com/pydanny/cached-property")
22421 "Decorator for caching properties in classes")
22423 "This package provides a decorator which makes caching
22424 time-or-computationally-expensive properties quick and easy and works in Python
22426 (license license:bsd-3)))
22428 (define-public python-folium
22430 (name "python-folium")
22434 ;; PyPI has a ".whl" file but not a proper source release.
22435 ;; Thus, fetch code from Git.
22437 (uri (git-reference
22438 (url "https://github.com/python-visualization/folium")
22439 (commit (string-append "v" version))))
22440 (file-name (git-file-name name version))
22442 (base32 "0yi5y9pfpbc4bc4ibr8cblif8ls1wf3k0zawyx86r2qwxxkkyd6k"))))
22443 (build-system python-build-system)
22445 `(("python-branca" ,python-branca)
22446 ("python-jinja2" ,python-jinja2)
22447 ("python-numpy" ,python-numpy)
22448 ("python-requests" ,python-requests)))
22450 `(("python-pytest" ,python-pytest)))
22451 (home-page "https://github.com/python-visualization/folium")
22452 (synopsis "Make beautiful maps with Leaflet.js & Python")
22453 (description "@code{folium} makes it easy to visualize data that’s been
22454 manipulated in Python on an interactive leaflet map. It enables both the
22455 binding of data to a map for @code{choropleth} visualizations as well as
22456 passing rich vector/raster/HTML visualizations as markers on the map.
22458 The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
22459 Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
22460 supports Image, Video, GeoJSON and TopoJSON overlays.")
22461 (license license:expat)))
22463 (define-public jube
22465 ;; This is a command-line tool, so no "python-" prefix.
22470 (uri (string-append
22471 "http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
22475 "0xq4k1q63s1p6swgyp61vahlrd1fqmgbm0gm5kpj8ikwy0yc0nqk"))
22476 (file-name (string-append "jube-" version ".tar.gz"))))
22477 (build-system python-build-system)
22478 (home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
22479 (synopsis "Benchmarking environment")
22481 "JUBE helps perform and analyze benchmarks in a systematic way. For each
22482 benchmarked application, benchmark data is stored in a format that allows JUBE
22483 to deduct the desired information. This data can be parsed by automatic pre-
22484 and post-processing scripts that draw information and store it more densely
22485 for manual interpretation.")
22486 (license license:gpl3+)))
22488 (define-public python-pyroutelib3
22490 (name "python-pyroutelib3")
22491 (version "1.3.post1")
22495 (uri (pypi-uri "pyroutelib3" version))
22498 "1hpbydpn2alyswiajfbvhzq4c7f36vdmvxy91hgv8l1lb2g2vfrj"))))
22499 (build-system python-build-system)
22501 `(("python-dateutil" ,python-dateutil)))
22502 (home-page "https://github.com/MKuranowski/pyroutelib3")
22503 (synopsis "Library for simple routing on OSM data")
22504 (description "Library for simple routing on OSM data")
22505 (license license:gpl3+)))
22507 (define-public python-bibtexparser
22509 (name "python-bibtexparser")
22514 (uri (pypi-uri "bibtexparser" version))
22517 "0zwhfkrzf3n5847dbnfng92k7ak199l9v6x6ax3dgdidfpm6d2fz"))))
22518 (build-system python-build-system)
22520 `(("python-pyparsing" ,python-pyparsing)))
22522 `(("python-future" ,python-future)))
22523 (home-page "https://github.com/sciunto-org/python-bibtexparser")
22524 (synopsis "Python library to parse BibTeX files")
22525 (description "BibtexParser is a Python library to parse BibTeX files.")
22526 (license (list license:bsd-3 license:lgpl3))))
22528 (define-public python-distro
22530 (name "python-distro")
22535 (uri (pypi-uri "distro" version))
22538 "0mrg75w4ap7mdzyga75yaid9n8bgb345ih5mwjp3plj6v1jxwb9n"))))
22539 (build-system python-build-system)
22541 `(("python-pytest" ,python-pytest)))
22542 (home-page "https://github.com/nir0s/distro")
22544 "OS platform information API")
22546 "@code{distro} provides information about the OS distribution it runs on,
22547 such as a reliable machine-readable ID, or version information.
22549 It is the recommended replacement for Python's original
22550 `platform.linux_distribution` function (which will be removed in Python 3.8).
22551 @code{distro} also provides a command-line interface to output the platform
22552 information in various formats.")
22553 (license license:asl2.0)))
22555 (define-public python-cairosvg
22557 (name "python-cairosvg")
22562 (uri (pypi-uri "CairoSVG" version))
22564 (base32 "1ylsisha2cc4w0yydxwhy7idkfw1inl9fsipxsrm7vyby080vi9z"))))
22565 (build-system python-build-system)
22568 (modify-phases %standard-phases
22570 (lambda _ (invoke "pytest"))))))
22572 `(("python-cairocffi" ,python-cairocffi)
22573 ("python-cssselect2" ,python-cssselect2)
22574 ("python-defusedxml" ,python-defusedxml)
22575 ("python-pillow" ,python-pillow)
22576 ("python-tinycss2" ,python-tinycss2)))
22578 `(("python-pytest-flake8" ,python-pytest-flake8)
22579 ("python-pytest-isort" ,python-pytest-isort)
22580 ("python-pytest-runner" ,python-pytest-runner)))
22581 (home-page "https://cairosvg.org/")
22582 (synopsis "SVG to PDF/PS/PNG converter based on Cairo")
22583 (description "CairoSVG is a SVG converter based on Cairo. It can export
22584 SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
22585 SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
22586 parsed, the result is drawn to a Cairo surface that can be exported to
22587 qvarious formats: PDF, PostScript, PNG and even SVG.")
22588 (license license:lgpl3+)))
22590 (define-public python-pyphen
22592 (name "python-pyphen")
22597 (uri (pypi-uri "Pyphen" version))
22599 (base32 "0a1iwrgs4hzwzz60q4i1813kbzimhm0i4q8grh8vqkxhnkgj36vi"))))
22600 (build-system python-build-system)
22601 ;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
22602 ;; embedded set provided by upstream - like Debian does.
22603 (home-page "https://github.com/Kozea/Pyphen")
22604 (synopsis "Pure Python module to hyphenate text")
22605 (description "Pyphen is a pure Python module to hyphenate text using
22606 existing Hunspell hyphenation dictionaries.")
22607 (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
22609 (define-public python-intelhex
22611 (name "python-intelhex")
22616 (uri (pypi-uri "intelhex" version))
22619 "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780"))))
22620 (build-system python-build-system)
22621 (arguments '(#:tests? #f)) ;issue with version
22622 (home-page "https://pypi.org/project/IntelHex/")
22623 (synopsis "Python library for Intel HEX files manipulations")
22624 (description "The Intel HEX file format is widely used in microprocessors
22625 and microcontrollers area (embedded systems etc.) as the de facto standard for
22626 representation of code to be programmed into microelectronic devices. This
22627 package provides an intelhex Python library to read, write, create from
22628 scratch and manipulate data from Intel HEX file format. It also includes
22629 several convenience Python scripts, including \"classic\" hex2bin and bin2hex
22630 converters and more, those based on the library itself.")
22631 (license license:bsd-3)))
22633 (define-public python-pykwalify
22635 (name "python-pykwalify")
22640 (uri (pypi-uri "pykwalify" version))
22643 "1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"))))
22644 (build-system python-build-system)
22645 (arguments '(#:tests? #f)) ;missing dependencies
22647 `(("python-dateutil" ,python-dateutil)
22648 ("python-docopt" ,python-docopt)
22649 ("python-pyyaml" ,python-pyyaml)))
22650 (home-page "https://github.com/grokzen/pykwalify")
22652 "Python lib/cli for JSON/YAML schema validation")
22654 "This package provides a parser, schema validator, and data binding tool
22655 for YAML and JSON.")
22656 (license license:expat)))
22658 (define-public python-dbusmock
22660 (name "python-dbusmock")
22665 (uri (pypi-uri "python-dbusmock" version))
22668 "0hp2kyac88nh9iv6l8hlmv7s1sa1s5f1a3wc2pmlmmxnd211fjlr"))))
22669 (build-system python-build-system)
22672 (modify-phases %standard-phases
22673 (add-after 'unpack 'patch-shell-path
22675 (substitute* "tests/test_code.py"
22676 (("/bin/bash") (which "bash")))
22680 ("dbus" ,dbus) ; for dbus-daemon
22681 ("python-nose" ,python-nose)
22684 `(("python-dbus" ,python-dbus)
22685 ("python-pygobject" ,python-pygobject)))
22686 (home-page "https://github.com/martinpitt/python-dbusmock")
22687 (synopsis "Python library for mock D-Bus objects")
22688 (description "python-dbusmock allows for the easy creation of mock objects on
22689 D-Bus. This is useful for writing tests for software which talks to D-Bus
22690 services such as upower, systemd, logind, gnome-session or others, and it is
22691 hard (or impossible without root privileges) to set the state of the real
22692 services to what you expect in your tests.")
22693 (license license:lgpl3+)))
22695 (define-public python-jsonplus
22697 (name "python-jsonplus")
22699 (home-page "https://github.com/randomir/jsonplus")
22702 (uri (pypi-uri "jsonplus" version))
22705 "05yv3dw813zwas9snz124k2hki49y268b3mx0gj9w7v1nrjmglq1"))))
22706 (build-system python-build-system)
22707 ;; XXX: No tests on PyPI, and the repository has no tags.
22708 (arguments '(#:tests? #f))
22710 `(("python-dateutil" ,python-dateutil)
22711 ("python-simplejson" ,python-simplejson)
22712 ("python-sortedcontainers" ,python-sortedcontainers)))
22713 (synopsis "Serialize Python types to/from JSON")
22715 "This package provides functionality to serialize arbitrary data types
22716 to and from JSON. Common data types are implemented and it is easy to
22717 register custom encoders and decoders.")
22718 (license license:expat)))
22720 (define-public python-ujson
22722 (name "python-ujson")
22727 (uri (pypi-uri "ujson" version))
22730 "0k9w0kypy7vlskzzp2vsjswaw8lbqdrplzkbflxki9vqwglsj5f6"))
22731 (modules '((guix build utils)))
22733 '(begin (delete-file-recursively "deps") #t))))
22734 (build-system python-build-system)
22737 (modify-phases %standard-phases
22738 (add-after 'unpack 'link-to-system-double-conversion
22739 (lambda* (#:key inputs #:allow-other-keys)
22740 (let ((d-c (assoc-ref inputs "double-conversion")))
22741 (substitute* "setup.py"
22742 (("./deps/double-conversion/double-conversion\"")
22743 (string-append d-c "/include/double-conversion\""))
22745 (string-append "-L" d-c "/lib\","
22746 " \"-ldouble-conversion\","
22750 (lambda* (#:key inputs outputs #:allow-other-keys)
22751 (add-installed-pythonpath inputs outputs)
22752 (invoke "pytest"))))))
22754 `(("double-conversion" ,double-conversion)
22755 ("python-setuptools-scm" ,python-setuptools-scm)
22756 ("python-pytest" ,python-pytest)))
22757 (home-page "https://github.com/ultrajson/ultrajson")
22758 (synopsis "Ultra fast JSON encoder and decoder for Python")
22760 "UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
22761 bindings for Python 3.")
22762 (license license:bsd-3)))
22764 (define-public python-iocapture
22765 ;; The latest release is more than a year older than this commit.
22766 (let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
22769 (name "python-iocapture")
22774 (uri (git-reference
22775 (url "https://github.com/oinume/iocapture")
22777 (file-name (git-file-name name version))
22780 "1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
22781 (build-system python-build-system)
22784 (modify-phases %standard-phases
22786 (add-after 'install 'check
22787 (lambda* (#:key inputs outputs #:allow-other-keys)
22788 (add-installed-pythonpath inputs outputs)
22789 (invoke "py.test" "-v" "tests")
22792 `(("python-flexmock" ,python-flexmock)
22793 ("python-pytest" ,python-pytest)
22794 ("python-pytest-cov" ,python-pytest-cov)
22795 ("python-six" ,python-six)))
22796 (home-page "https://github.com/oinume/iocapture")
22797 (synopsis "Python capturing tool for stdout and stderr")
22799 "This package helps you to capture the standard out (stdout) and the
22800 standard error channel (stderr) in your program.")
22801 (license license:expat))))
22803 (define-public python-argh
22804 ;; There are 21 commits since the latest release containing important
22806 (let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4")
22809 (name "python-argh")
22810 (version (git-version "0.26.2" revision commit))
22814 (uri (git-reference
22815 (url "https://github.com/neithere/argh")
22817 (file-name (git-file-name name version))
22820 "1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
22821 (build-system python-build-system)
22823 `(("python-iocapture" ,python-iocapture)
22824 ("python-mock" ,python-mock)
22825 ("python-pytest" ,python-pytest)
22826 ("python-pytest-cov" ,python-pytest-cov)
22827 ("python-pytest-xdist" ,python-pytest-xdist)))
22828 (home-page "https://github.com/neithere/argh/")
22829 (synopsis "Argparse wrapper with natural syntax")
22831 "python-argh is a small library that provides several layers of
22832 abstraction on top of @code{python-argparse}. The layers can be mixed. It is
22833 always possible to declare a command with the highest possible (and least
22834 flexible) layer and then tune the behaviour with any of the lower layers
22835 including the native API of @code{python-argparse}.")
22836 (license license:lgpl3+))))
22838 (define-public python-ppft
22840 (name "python-ppft")
22841 (version "1.6.6.1")
22845 (uri (pypi-uri "ppft" version))
22848 "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
22849 (build-system python-build-system)
22850 (arguments '(#:tests? #f)) ; there are none
22852 `(("python-six" ,python-six)))
22853 (home-page "https://pypi.org/project/ppft/")
22854 (synopsis "Fork of Parallel Python")
22856 "This package is a fork of Parallel Python. The Parallel Python
22857 module (@code{pp}) provides an easy and efficient way to create
22858 parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
22859 computers and clusters. It features cross-platform portability and dynamic
22861 (license license:bsd-3)))
22863 (define-public python-pox
22865 (name "python-pox")
22870 (uri (pypi-uri "pox" version))
22873 "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
22874 (build-system python-build-system)
22877 (modify-phases %standard-phases
22880 (mkdir-p "/tmp/guix")
22881 (setenv "SHELL" "bash")
22882 (setenv "USERNAME" "guix")
22883 (setenv "HOME" "/tmp/guix") ; must end on USERNAME...
22884 (invoke "py.test" "-vv")
22887 `(("python-pytest" ,python-pytest)
22889 (home-page "https://pypi.org/project/pox/")
22890 (synopsis "Python utilities for file system exploration and automated builds")
22892 "Pox provides a collection of utilities for navigating and manipulating
22893 file systems. This module is designed to facilitate some of the low-level
22894 operating system interactions that are useful when exploring a file system on a
22895 remote host. Pox provides Python equivalents of several shell commands such
22896 as @command{which} and @command{find}. These commands allow automated
22897 discovery of what has been installed on an operating system, and where the
22898 essential tools are located.")
22899 (license license:bsd-3)))
22901 (define-public python-pathos
22903 (name "python-pathos")
22908 (uri (pypi-uri "pathos" version))
22911 "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
22912 (build-system python-build-system)
22915 (modify-phases %standard-phases
22918 (setenv "PYTHONPATH"
22919 (string-append (getcwd) ":" (getenv "PYTHONPATH")))
22920 (invoke "python" "./tests/__main__.py"))))))
22922 `(("python-dill" ,python-dill)
22923 ("python-multiprocess" ,python-multiprocess)
22924 ("python-pox" ,python-pox)
22925 ("python-ppft" ,python-ppft)))
22927 `(("python-pytest" ,python-pytest)))
22928 (home-page "https://pypi.org/project/pathos/")
22930 "Parallel graph management and execution in heterogeneous computing")
22932 "Python-pathos is a framework for heterogeneous computing. It provides a
22933 consistent high-level interface for configuring and launching parallel
22934 computations across heterogeneous resources. Python-pathos provides configurable
22935 launchers for parallel and distributed computing, where each launcher contains
22936 the syntactic logic to configure and launch jobs in an execution environment.")
22937 (license license:bsd-3)))
22939 (define-public python-flit
22941 (name "python-flit")
22943 ;; We fetch the sources via git because on pypi the package is split into
22944 ;; two parts: flit and flit_core; flit_core cannot be built without flit.
22947 (uri (git-reference
22948 (url "https://github.com/takluyver/flit")
22950 (file-name (git-file-name name version))
22953 "0fpqxpz5bv2xpv1akmc0c8yfss6sj09wdzxrlf3qw1lp1jhbzpyc"))))
22954 (build-system python-build-system)
22957 (modify-phases %standard-phases
22958 (add-before 'build 'bootstrap
22959 (lambda* (#:key inputs #:allow-other-keys)
22960 (let ((home (string-append (getcwd) "/home")))
22962 (setenv "HOME" home))
22963 (for-each make-file-writable (find-files "."))
22964 (copy-recursively (assoc-ref inputs "python-testpath")
22965 (string-append (getcwd) "/testpath"))
22966 (substitute* "pyproject.toml"
22967 (("\"testpath\",") ""))
22968 (invoke "python" "bootstrap_dev.py")))
22971 ;; A ZIP archive should be generated, but it fails with "ZIP does
22972 ;; not support timestamps before 1980". Luckily,
22973 ;; SOURCE_DATE_EPOCH is respected, which we set to some time in
22975 (setenv "SOURCE_DATE_EPOCH" "315532800")
22976 (for-each (lambda (toml)
22977 (invoke "python3" "-m" "flit"
22978 "--debug" "--ini-file" toml
22980 '("testpath/pyproject.toml"
22982 (with-directory-excursion "flit_core"
22983 (invoke "python" "build_dists.py"))))
22985 (lambda* (#:key inputs outputs #:allow-other-keys)
22986 (add-installed-pythonpath inputs outputs)
22987 (let ((out (assoc-ref outputs "out")))
22988 (delete-file-recursively "./home")
22989 (for-each (lambda (wheel)
22990 (format #true wheel)
22991 (invoke "python" "-m" "pip" "install"
22992 wheel (string-append "--prefix=" out)))
22994 (find-files "flit_core/dist" "\\.whl$")
22995 (find-files "dist" "\\.whl$")))))))
22996 #:tests? #f)) ; XXX: Check requires network access.
22998 `(("python-pytoml" ,python-pytoml)
22999 ("python-toml" ,python-toml)))
23001 `(("python-docutils" ,python-docutils)
23002 ("python-responses" ,python-responses)
23003 ("python-pygments-github-lexers" ,python-pygments-github-lexers)
23004 ("python-pytest" ,python-pytest)
23005 ("python-pytest-cov" ,python-pytest-cov)
23006 ("python-sphinx" ,python-sphinx)
23007 ("python-sphinxcontrib-github-alt" ,python-sphinxcontrib-github-alt)
23008 ;; This package needs testpath, but testpath also needs flit...
23010 ,(let ((name "python-testpath")
23014 (uri (git-reference
23015 (url "https://github.com/jupyter/testpath")
23017 (file-name (git-file-name name version))
23020 "1fwv4d3p54xx1x942s104irr35lszvv6jnr4nn1scsfvc0m1qmbk")))))))
23021 (home-page "https://flit.readthedocs.io/")
23023 "Simple packaging tool for simple packages")
23025 "Flit is a simple way to put Python packages and modules on PyPI. Flit
23026 packages a single importable module or package at a time, using the import
23027 name as the name on PyPI. All subpackages and data files within a package
23028 are included automatically.")
23029 (license license:bsd-3)))
23031 (define-public python-pathtools
23033 (name "python-pathtools")
23038 (uri (pypi-uri "pathtools" version))
23041 "1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
23042 (build-system python-build-system)
23044 "https://github.com/gorakhargosh/pathtools")
23045 (synopsis "Path utilities for Python")
23046 (description "Pattern matching and various utilities for file systems
23048 (license license:expat)))
23050 (define-public python-fastentrypoints
23052 (name "python-fastentrypoints")
23057 (uri (pypi-uri "fastentrypoints" version))
23060 "02s1j8i2dzbpbwgq2a3fiqwm3cnmhii2qzc0k42l0rdxd4a4ya7z"))))
23061 (build-system python-build-system)
23063 "https://github.com/ninjaaron/fast-entry_points")
23065 "Makes entry_points specified in setup.py load more quickly")
23067 "Using entry_points in your setup.py makes scripts that start really
23068 slowly because it imports pkg_resources. This package allows such setup
23069 scripts to load entry points more quickly.")
23070 (license license:bsd-3)))
23072 (define-public python-funcparserlib
23074 (name "python-funcparserlib")
23079 (uri (pypi-uri "funcparserlib" version))
23082 "07f9cgjr3h4j2m67fhwapn8fja87vazl58zsj4yppf9y3an2x6dp"))))
23084 `(("python-tox" ,python-tox)))
23087 (modify-phases %standard-phases
23090 (invoke "tox"))))))
23091 (build-system python-build-system)
23093 "https://github.com/vlasovskikh/funcparserlib")
23095 "Recursive descent parsing library based on functional combinators")
23097 "This package is a recursive descent parsing library for Python based on
23098 functional combinators. Parser combinators are just higher-order functions
23099 that take parsers as their arguments and return them as result values.")
23100 (license license:expat)))
23102 (define-public python-speg
23104 (name "python-speg")
23109 (uri (pypi-uri "speg" version ".zip"))
23111 (base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
23113 `(#:tests? #f)) ;FIXME: tests fail, not sure why
23115 `(("unzip" ,unzip)))
23116 (build-system python-build-system)
23117 (home-page "https://github.com/avakar/speg")
23118 (synopsis "PEG-based parser interpreter with memoization")
23119 (description "This package is a PEG-based parser and interpreter with
23121 (license license:expat)))
23123 (define-public python-cson
23125 (name "python-cson")
23130 (uri (pypi-uri "cson" version))
23132 (base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
23133 (build-system python-build-system)
23135 `(("python-speg" ,python-speg)))
23136 (home-page "https://github.com/avakar/pycson")
23137 (synopsis "Parser for Coffeescript Object Notation (CSON)")
23138 (description "This package is a parser for Coffeescript Object
23140 (license license:expat)))
23142 (define-public python-asynctest
23144 (name "python-asynctest")
23149 (uri (pypi-uri "asynctest" version))
23152 "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
23153 (build-system python-build-system)
23156 (modify-phases %standard-phases
23159 (invoke "python" "-X" "dev" "-m" "unittest" "-v" "test")))
23160 (add-after 'unpack 'disable-tests
23162 ;; XXX: 7 tests fail out of 220. Disable them for now.
23163 (substitute* (list "test/test_selector.py"
23164 "test/test_mock.py")
23165 (("def test_events_watched_outside_test_are_ignored")
23166 "@unittest.skip('disabled by guix')
23167 def test_events_watched_outside_test_are_ignored")
23168 (("def test_awaited_from_autospec_mock.*" line)
23169 (string-append line " return True\n"))
23170 (("def test_create_autospec_on_coroutine_and_using_assert_methods.*" line)
23171 (string-append line " return True\n"))
23172 (("def test_patch_coroutine_with_multiple_scopes.*" line)
23173 (string-append line " return True\n"))
23174 (("def test_multiple_patches_on_coroutine.*" line)
23175 (string-append line " return True\n"))
23176 (("def test_patch_coroutine_only_when_running.*" line)
23177 (string-append line " return True\n")))
23179 (home-page "https://github.com/Martiusweb/asynctest")
23180 (synopsis "Extension of unittest for testing asyncio libraries")
23182 "The package asynctest is built on top of the standard unittest module
23183 and cuts down boilerplate code when testing libraries for asyncio.")
23184 (license license:asl2.0)))
23186 (define-public python-aionotify
23188 (name "python-aionotify")
23192 ;; Source tarball on PyPi lacks tests
23194 (uri (git-reference
23195 (url "https://github.com/rbarrois/aionotify")
23196 (commit (string-append "v" version))))
23197 (file-name (git-file-name name version))
23199 (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))
23200 (patches (search-patches "python-aionotify-0.2.0-py3.8.patch"))))
23201 (build-system python-build-system)
23202 (home-page "https://github.com/rbarrois/aionotify")
23203 (synopsis "Asyncio-powered inotify library")
23205 "@code{aionotify} is a simple, asyncio-based inotify library.")
23206 (license license:bsd-3)))
23208 (define-public python-forbiddenfruit
23210 (name "python-forbiddenfruit")
23214 ;; Source tarball on PyPi lacks Makefile that builds and runs tests
23216 (uri (git-reference
23217 (url "https://github.com/clarete/forbiddenfruit")
23219 (file-name (git-file-name name version))
23221 (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
23222 (build-system python-build-system)
23225 (modify-phases %standard-phases
23228 (invoke "make" "SKIP_DEPS=1"))))))
23230 `(("python-nose" ,python-nose)
23231 ("python-coverage" ,python-coverage)))
23232 (home-page "https://github.com/clarete/forbiddenfruit")
23233 (synopsis "Patch python built-in objects")
23234 (description "This project allows Python code to extend built-in types.")
23235 (license (list license:gpl3+ license:expat))))
23237 (define-public python-k5test
23239 (name "python-k5test")
23244 (uri (pypi-uri "k5test" version))
23247 "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
23248 (build-system python-build-system)
23250 `(("python-six" ,python-six)
23251 ;; `which`, `kadmin.local` binaries called inside library
23253 ("mit-krb5" ,mit-krb5)))
23254 (native-inputs `(("mit-krb5" ,mit-krb5)))
23257 (modify-phases %standard-phases
23258 (add-after 'unpack 'patch-paths
23260 (substitute* "k5test/realm.py"
23261 (("'kadmin_local'") "'kadmin.local'")))))))
23262 (home-page "https://github.com/pythongssapi/k5test")
23263 (synopsis "Library for setting up self-contained Kerberos 5 environments")
23265 "@code{k5test} is a library for setting up self-contained Kerberos 5
23266 environments, and running Python unit tests inside those environments. It is
23267 based on the file of the same name found alongside the MIT Kerberos 5 unit
23269 (license license:isc)))
23271 (define-public python-gssapi
23273 (name "python-gssapi")
23278 (uri (pypi-uri "gssapi" version))
23281 "1j2idrbrbczykzlb56q1bn0ivc9c0rjjljpk4yz86xn3gxfkpv8n"))))
23282 (build-system python-build-system)
23284 `(("python-decorator" ,python-decorator)
23285 ("python-six" ,python-six)))
23287 `(("mit-krb5" ,mit-krb5)))
23290 `(("python-parameterized" ,python-parameterized)
23291 ("python-k5test" ,python-k5test)
23292 ("python-nose" ,python-nose)))
23293 (home-page "https://github.com/pythongssapi/python-gssapi")
23294 (synopsis "Python GSSAPI Wrapper")
23296 "Python-GSSAPI provides both low-level and high level wrappers around the
23297 GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
23298 also be usable with other GSSAPI mechanisms.")
23299 (license license:isc)))
23301 (define-public python-check-manifest
23303 (name "python-check-manifest")
23308 (uri (pypi-uri "check-manifest" version))
23311 "0lk45ifdv2cpkl6ayfyix7jwmnxa1rha7xvb0ih5999k115wzqs4"))))
23312 (build-system python-build-system)
23314 `(("python-mock" ,python-mock)
23316 (home-page "https://github.com/mgedmin/check-manifest")
23317 (synopsis "Check MANIFEST.in in a Python source package for completeness")
23318 (description "Python package can include a MANIFEST.in file to help with
23319 sending package files to the Python Package Index. This package checks that
23320 file to ensure it completely and accurately describes your project.")
23321 (license license:expat)))
23323 (define-public python-android-stringslib
23325 (name "python-android-stringslib")
23330 (uri (git-reference
23331 (url "https://framagit.org/tyreunom/python-android-strings-lib")
23332 (commit (string-append "v" version))))
23333 (file-name (git-file-name name version))
23336 "0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
23337 (build-system python-build-system)
23340 (home-page "https://framagit.org/tyreunom/python-android-strings-lib")
23341 (synopsis "Android strings.xml support")
23342 (description "Android Strings Lib provides support for android's strings.xml
23343 files. These files are used to translate strings in android apps.")
23344 (license license:expat)))
23346 (define-public python-watchdog
23348 (name "python-watchdog")
23353 (uri (pypi-uri "watchdog" version))
23356 "07cnvvlpif7a6cg4rav39zq8fxa5pfqawchr46433pij0y6napwn"))))
23357 (build-system python-build-system)
23360 (modify-phases %standard-phases
23361 (add-before 'check 'remove-failing
23363 (delete-file "tests/test_inotify_buffer.py")
23364 (delete-file "tests/test_snapshot_diff.py")
23367 `(("python-argh" ,python-argh)
23368 ("python-pathtools" ,python-pathtools)
23369 ("python-pyyaml" ,python-pyyaml)))
23371 `(("python-pytest-cov" ,python-pytest-cov)
23372 ("python-pytest-timeout" ,python-pytest-timeout)))
23373 (home-page "https://github.com/gorakhargosh/watchdog")
23374 (synopsis "File system events monitoring")
23375 (description "This package provides a way to monitor file system events
23376 such as a file modification and trigger an action. This is similar to inotify,
23378 (license license:asl2.0)))
23380 (define-public python-watchgod
23382 (name "python-watchgod")
23386 ;; There are no tests in the PyPI tarball.
23388 (uri (git-reference
23389 (url "https://github.com/samuelcolvin/watchgod")
23390 (commit (string-append "v" version))))
23391 (file-name (git-file-name name version))
23393 (base32 "1lqx44wkryakgpyqj3m0hsz61bqr07vc7smgzh188374hwvscp66"))))
23394 (build-system python-build-system)
23397 (modify-phases %standard-phases
23400 (invoke "pytest" "-vv"))))))
23402 `(("python-coverage" ,python-coverage)
23403 ("python-docutils" ,python-docutils)
23404 ("python-flake8" ,python-flake8)
23405 ("python-isort" ,python-isort)
23406 ("python-pycodestyle" ,python-pycodestyle)
23407 ("python-pyflakes" ,python-pyflakes)
23408 ("python-pygments" ,python-pygments)
23409 ("python-pytest" ,python-pytest)
23410 ("python-pytest-cov" ,python-pytest-cov)
23411 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
23412 ("python-pytest-mock" ,python-pytest-mock)
23413 ("python-pytest-sugar" ,python-pytest-sugar)
23414 ("python-pytest-toolbox" ,python-pytest-toolbox)))
23415 (home-page "https://github.com/samuelcolvin/watchgod")
23416 (synopsis "Simple, modern file watching and code reload in Python")
23418 "Simple, modern file watching and code reload in Python inspired by
23419 @code{watchdog}. Among the differences are a unified approach for each
23420 operating systems and an elegant approach to concurrency using threading.")
23421 (license license:expat)))
23423 (define-public python-wget
23425 (name "python-wget")
23430 (uri (pypi-uri "wget" version ".zip"))
23433 "0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
23434 (build-system python-build-system)
23435 (native-inputs `(("unzip" ,unzip)))
23436 (home-page "https://bitbucket.org/techtonik/python-wget/")
23437 (synopsis "Pure Python download utility")
23438 (description "The python-wget library provides an API to download files
23439 with features similar to the @command{wget} utility.")
23440 (license license:unlicense)))
23442 (define-public offlate
23449 (uri (git-reference
23450 (url "https://framagit.org/tyreunom/offlate")
23452 (file-name (git-file-name name version))
23455 "13pqnbl05wcyldfvl75fp89vjgwsvxyc69vhnb17kkha2rc2k1h7"))))
23456 (build-system python-build-system)
23461 `(("python-android-stringslib" ,python-android-stringslib)
23462 ("python-dateutil" ,python-dateutil)
23463 ("python-gitlab" ,python-gitlab)
23464 ("python-lxml" ,python-lxml)
23465 ("python-polib" ,python-polib)
23466 ("python-pyenchant" ,python-pyenchant)
23467 ("python-pygit2" ,python-pygit2)
23468 ("python-pygithub" ,python-pygithub)
23469 ("python-pyqt" ,python-pyqt)
23470 ("python-requests" ,python-requests)
23471 ("python-ruamel.yaml" ,python-ruamel.yaml)
23472 ("python-translation-finder" ,python-translation-finder)
23473 ("python-watchdog" ,python-watchdog)))
23475 `(("qttools" ,qttools)))
23476 (home-page "https://framagit.org/tyreunom/offlate")
23477 (synopsis "Offline translation interface for online translation tools")
23478 (description "Offlate offers a unified interface for different translation
23479 file formats, as well as many different online translation platforms. You can
23480 use it to get work from online platforms, specialized such as the Translation
23481 Project, or not such a gitlab instance when your upstream doesn't use any
23482 dedicated platform. The tool proposes a unified interface for any format and
23483 an upload option to send your work back to the platform.")
23484 (license license:gpl3+)))
23486 (define-public python-titlecase
23488 (name "python-titlecase")
23493 (uri (pypi-uri "titlecase" version))
23496 "0486i99wf8ssa7sgn81fn6fv6i4rhhq6n751bc740b3hzfbpmpl4"))))
23497 (build-system python-build-system)
23499 `(("python-nose" ,python-nose)))
23500 (home-page "https://github.com/ppannuto/python-titlecase")
23501 (synopsis "Capitalize strings similar to book titles")
23503 "Python-Titlecase is a Python port of John Gruber's titlecase.pl.
23504 It capitalizes (predominantly English) strings in a way that is similar to
23505 book titles, using the New York Times Manual of Style to leave certain words
23507 (license license:expat)))
23509 (define-public python-pypng
23511 (name "python-pypng")
23516 (uri (pypi-uri "pypng" version))
23518 (base32 "02qpa22ls41vwsrzw9r9qhj1nhq05p03hb5473pay6y980s86chh"))))
23519 (build-system python-build-system)
23520 (home-page "https://github.com/drj11/pypng")
23521 (synopsis "Pure Python PNG image encoder/decoder")
23523 "The PyPNG module implements support for PNG images. It reads and writes
23524 PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
23525 pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
23526 LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
23527 images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
23528 A number of optional chunks can be specified (when writing) and
23529 understood (when reading): tRNS, bKGD, gAMA.
23531 PyPNG is not a high level toolkit for image processing (like PIL) and does not
23532 aim at being a replacement or competitor. Its strength lies in fine-grained
23533 extensive support of PNG features. It can also read and write Netpbm PAM
23534 files, with a focus on its use as an intermediate format for implementing
23535 custom PNG processing.")
23536 (license license:expat)))
23538 (define-public python-fuzzywuzzy
23540 (name "python-fuzzywuzzy")
23545 (uri (pypi-uri "fuzzywuzzy" version))
23548 "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"))))
23549 (build-system python-build-system)
23551 `(("python-hypothesis" ,python-hypothesis)
23552 ("python-pycodestyle" ,python-pycodestyle)
23553 ("python-pytest" ,python-pytest)))
23555 `(("python-levenshtein" ,python-levenshtein)))
23556 (home-page "https://github.com/seatgeek/fuzzywuzzy")
23557 (synopsis "Fuzzy string matching in Python")
23558 (description "Approximate string matching using
23559 @emph{Levenshtein Distance} to calculate the differences between
23561 (license license:gpl2)))
23563 (define-public python2-fuzzywuzzy
23564 (package-with-python2 python-fuzzywuzzy))
23566 (define-public python-block-tracing
23568 (name "python-block-tracing")
23573 (uri (pypi-uri "block_tracing" version))
23576 "0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
23577 (build-system python-build-system)
23578 (arguments '(#:tests? #f)) ; no tests
23579 (home-page "https://github.com/rianhunter/block_tracing")
23580 (synopsis "Protect process memory")
23582 "@code{block_tracing} is a tiny Python library that can be used to
23583 prevent debuggers and other applications from inspecting the memory within
23585 (license license:expat)))
23587 (define-public python-gcovr
23589 (name "python-gcovr")
23594 (uri (pypi-uri "gcovr" version))
23597 "0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs"))))
23598 (build-system python-build-system)
23600 `(("python-lxml" ,python-lxml)
23601 ("python-jinja2" ,python-jinja2)))
23602 (home-page "https://gcovr.com/")
23603 (synopsis "Utility for generating code coverage results")
23605 "Gcovr provides a utility for managing the use of the GNU gcov
23606 utility and generating summarized code coverage results. It is inspired
23607 by the Python coverage.py package, which provides a similar utility for
23609 (license license:bsd-3)))
23611 (define-public python-owslib
23613 (name "python-owslib")
23618 (uri (pypi-uri "OWSLib" version))
23620 (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
23621 (build-system python-build-system)
23623 '(#:tests? #f)) ; TODO: package dependencies required for tests.
23624 (synopsis "Interface for Open Geospatial Consortium web service")
23626 "OWSLib is a Python package for client programming with Open Geospatial
23627 Consortium (OGC) web service (hence OWS) interface standards, and their related
23629 (home-page "https://geopython.github.io/OWSLib/")
23630 (license license:bsd-3)))
23632 (define-public python-docusign-esign
23634 (name "python-docusign-esign")
23638 (uri (pypi-uri "docusign_esign" version))
23641 "01f3h03vc97syjlmqyl7xa5j90pzgmwpspc5a0gra9saynnbkx37"))))
23642 (build-system python-build-system)
23643 ;; Testing requires undocumented setup changes, and so testing is disabled here.
23644 (arguments `(#:tests? #f))
23646 `(("python-certifi" ,python-certifi)
23647 ("python-six" ,python-six)
23648 ("python-dateutil" ,python-dateutil)
23649 ("python-urllib3" ,python-urllib3)
23650 ("python-pyjwt" ,python-pyjwt)
23651 ("python-cryptography" ,python-cryptography)
23652 ("python-nose" ,python-nose)))
23653 (synopsis "DocuSign Python Client")
23654 (description "The Official DocuSign Python Client Library used to interact
23655 with the eSign REST API. Send, sign, and approve documents using this client.")
23656 (home-page "https://www.docusign.com/devcenter")
23657 (license license:expat)))
23659 (define-public python-xattr
23661 (name "python-xattr")
23666 (uri (pypi-uri "xattr" version))
23669 "0i4xyiqbhjz2g16zbim17zjdbjkw79xsw8k59942vvq4is1cmfxh"))))
23670 (build-system python-build-system)
23672 `(("python-cffi" ,python-cffi)))
23673 (home-page "https://github.com/xattr/xattr")
23675 "Python wrapper for extended file system attributes")
23676 (description "This package provides a Python wrapper for using extended
23677 file system attributes. Extended attributes extend the basic attributes of files
23678 and directories in the file system. They are stored as name:data pairs
23679 associated with file system objects (files, directories, symlinks, etc).")
23680 (license license:expat)))
23682 (define-public python-json-logger
23684 (name "python-json-logger")
23689 (uri (pypi-uri "python-json-logger" version))
23692 "10g2ya6nsvn5vxzvq2wb8q4d43i3d7756i5rxyjna6d0y9i138xp"))))
23693 (build-system python-build-system)
23695 "https://github.com/madzak/python-json-logger")
23696 (synopsis "JSON log formatter in Python")
23697 (description "This library allows standard Python logging to output log data
23698 as JSON objects. With JSON we can make our logs more readable by machines and
23699 we can stop writing custom parsers for syslog-type records.")
23700 (license license:bsd-3)))
23702 (define-public python-daiquiri
23704 (name "python-daiquiri")
23709 (uri (pypi-uri "daiquiri" version))
23712 "1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
23713 (build-system python-build-system)
23715 `(("python-json-logger" ,python-json-logger)))
23717 `(("python-mock" ,python-mock)
23718 ("python-pytest" ,python-pytest)
23719 ("python-setuptools-scm" ,python-setuptools-scm)
23720 ("python-six" ,python-six)))
23721 (home-page "https://github.com/jd/daiquiri")
23723 "Library to configure Python logging easily")
23724 (description "The daiquiri library provides an easy way to configure
23725 logging in Python. It also provides some custom formatters and handlers.")
23726 (license license:asl2.0)))
23728 (define-public python-pifpaf
23730 (name "python-pifpaf")
23735 (uri (pypi-uri "pifpaf" version))
23738 "1gy9p4nqf70fh38wn4icyfm7i9wrvx22wnjpg71g89wxbz27igaa"))))
23739 (build-system python-build-system)
23742 (modify-phases %standard-phases
23745 (invoke "python" "setup.py" "testr" "--slowest"
23746 "--testr-args=until-failure"))))))
23748 `(("python-click" ,python-click)
23749 ("python-daiquiri" ,python-daiquiri)
23750 ("python-fixtures" ,python-fixtures)
23751 ("python-jinja2" ,python-jinja2)
23752 ("python-pbr" ,python-pbr)
23753 ("python-psutil" ,python-psutil)
23754 ("python-six" ,python-six)
23755 ("python-xattr" ,python-xattr)))
23757 `(("python-mock" ,python-mock)
23758 ("python-os-testr" ,python-os-testr)
23759 ("python-requests" ,python-requests)
23760 ("python-testrepository" ,python-testrepository)
23761 ("python-testtools" ,python-testtools)))
23762 (home-page "https://github.com/jd/pifpaf")
23763 (synopsis "Tools and fixtures to manage daemons for testing in Python")
23764 (description "Pifpaf is a suite of fixtures and a command-line tool that
23765 starts and stops daemons for a quick throw-away usage. This is typically
23766 useful when needing these daemons to run integration testing. It originally
23767 evolved from its precursor @code{overtest}.")
23768 (license license:asl2.0)))
23770 (define-public python-pytest-check-links
23772 (name "python-pytest-check-links")
23777 ;; URI uses underscores
23778 (uri (pypi-uri "pytest_check_links" version))
23781 "12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
23782 (build-system python-build-system)
23784 `(("python-docutils" ,python-docutils)
23785 ("python-html5lib" ,python-html5lib)
23786 ("python-nbconvert" ,python-nbconvert)
23787 ("python-nbformat" ,python-nbformat)
23788 ("python-pytest" ,python-pytest)
23789 ("python-six" ,python-six)))
23791 `(("python-pbr-minimal" ,python-pbr-minimal)))
23792 (home-page "https://github.com/minrk/pytest-check-links")
23793 (synopsis "Check links in files")
23794 (description "This package provides a pytest plugin that checks URLs for
23795 HTML-containing files.")
23796 (license license:bsd-3)))
23798 (define-public python-json5
23800 (name "python-json5")
23804 ;; sample.json5 is missing from PyPi source tarball
23806 (uri (git-reference
23807 (url "https://github.com/dpranke/pyjson5")
23808 (commit (string-append "v" version))))
23809 (file-name (git-file-name name version))
23811 (base32 "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn"))))
23812 (build-system python-build-system)
23813 (home-page "https://github.com/dpranke/pyjson5")
23815 "Python implementation of the JSON5 data format")
23817 "JSON5 extends the JSON data interchange format to make it slightly more
23818 usable as a configuration language. This Python package implements parsing and
23819 dumping of JSON5 data structures.")
23820 (license license:asl2.0)))
23822 (define-public python-frozendict
23824 (name "python-frozendict")
23829 (uri (pypi-uri "frozendict" version))
23831 (base32 "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"))))
23832 (build-system python-build-system)
23833 (home-page "https://github.com/slezica/python-frozendict")
23834 (synopsis "Simple immutable mapping for Python")
23836 "@dfn{frozendict} is an immutable wrapper around dictionaries that
23837 implements the complete mapping interface. It can be used as a drop-in
23838 replacement for dictionaries where immutability is desired.")
23839 (license license:expat)))
23841 (define-public python-unpaddedbase64
23843 (name "python-unpaddedbase64")
23848 (uri (git-reference
23849 (url "https://github.com/matrix-org/python-unpaddedbase64")
23850 (commit (string-append "v" version))))
23851 (file-name (git-file-name name version))
23854 "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd"))))
23855 (build-system python-build-system)
23856 (home-page "https://pypi.org/project/unpaddedbase64/")
23857 (synopsis "Encode and decode Base64 without “=” padding")
23859 "RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
23860 using “=” characters. However this conveys no benefit so many protocols
23861 choose to use Base64 without the “=” padding.")
23862 (license license:asl2.0)))
23864 (define-public python-py-cpuinfo
23866 (name "python-py-cpuinfo")
23871 (uri (pypi-uri "py-cpuinfo" version))
23874 "0045y6832gqjg63jmw0qj2jwyypgjwr7sfdq3lfv49b6fxpl5xic"))))
23875 (build-system python-build-system)
23876 (home-page "https://github.com/workhorsy/py-cpuinfo")
23877 (synopsis "Get CPU info with Python")
23879 "This Python module returns the CPU info by using the best sources of
23880 information for your operating system.")
23881 (license license:expat)))
23883 (define-public python-canonicaljson
23885 (name "python-canonicaljson")
23890 (uri (pypi-uri "canonicaljson" version))
23892 (base32 "0c86g0vvzdcg3nrcsqnbzlfhpprc2i894p8i14hska56yl27d6w9"))))
23893 (build-system python-build-system)
23895 `(("python-six" ,python-six)
23896 ("python-frozendict" ,python-frozendict)
23897 ("python-simplejson" ,python-simplejson)))
23898 (home-page "https://github.com/matrix-org/python-canonicaljson")
23899 (synopsis "Canonical JSON")
23901 "Deterministically encode JSON.
23904 @item Encodes objects and arrays as RFC 7159 JSON.
23905 @item Sorts object keys so that you get the same result each time.
23906 @item Has no insignificant whitespace to make the output as small as possible.
23907 @item Escapes only the characters that must be escaped, U+0000 to
23908 U+0019 / U+0022 / U+0056, to keep the output as small as possible.
23909 @item Uses the shortest escape sequence for each escaped character.
23910 @item Encodes the JSON as UTF-8.
23911 @item Can encode frozendict immutable dictionaries.
23913 (license license:asl2.0)))
23915 (define-public python-signedjson
23917 (name "python-signedjson")
23922 (uri (pypi-uri "signedjson" version))
23924 (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
23925 (build-system python-build-system)
23927 `(("python-canonicaljson" ,python-canonicaljson)
23928 ("python-importlib-metadata" ,python-importlib-metadata)
23929 ("python-pynacl" ,python-pynacl)
23930 ("python-typing-extensions" ,python-typing-extensions)
23931 ("python-unpaddedbase64" ,python-unpaddedbase64)))
23933 `(("python-setuptools-scm" ,python-setuptools-scm)))
23934 (home-page "https://github.com/matrix-org/python-signedjson")
23935 (synopsis "Sign JSON objects with ED25519 signatures")
23937 "Sign JSON objects with ED25519 signatures.
23940 @item More than one entity can sign the same object.
23941 @item Each entity can sign the object with more than one key making it easier to
23943 @item ED25519 can be replaced with a different algorithm.
23944 @item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
23947 (license license:asl2.0)))
23949 (define-public python-daemonize
23951 (name "python-daemonize")
23956 (uri (pypi-uri "daemonize" version))
23958 (base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
23959 (build-system python-build-system)
23960 (home-page "https://github.com/thesharp/daemonize")
23961 (synopsis "Library for writing system daemons in Python")
23962 (description "Daemonize is a library for writing system daemons in Python.")
23963 (license license:expat)))
23965 (define-public python-pymacaroons
23967 (name "python-pymacaroons")
23972 (uri (pypi-uri "pymacaroons" version))
23974 (base32 "1f0357a6g1h96sk6wy030xmc1p4rd80a999qvxd28v7nlm1blsqy"))))
23975 (build-system python-build-system)
23977 `(("python-six" ,python-six)
23978 ("python-pynacl" ,python-pynacl)))
23979 (home-page "https://github.com/ecordell/pymacaroons")
23980 (synopsis "Python Macaroon Library")
23982 "Macaroons, like cookies, are a form of bearer credential. Unlike opaque
23983 tokens, macaroons embed caveats that define specific authorization
23984 requirements for the target service, the service that issued the root macaroon
23985 and which is capable of verifying the integrity of macaroons it receives.
23987 Macaroons allow for delegation and attenuation of authorization. They are
23988 simple and fast to verify, and decouple authorization policy from the
23989 enforcement of that policy.")
23990 (license license:expat)))
23992 (define-public python-ldap3
23994 (name "python-ldap3")
23996 (home-page "https://github.com/cannatag/ldap3")
24000 (uri (git-reference (url home-page)
24001 (commit (string-append "v" version))))
24002 (file-name (git-file-name name version))
24004 (base32 "0xw9fkqld21xsvdpaqir8ccc2l805xnn9gxahsnl70xzp3mwl0xv"))))
24005 (build-system python-build-system)
24007 '(#:tests? #f ;TODO: Tests need a real LDAP server to run
24008 #:phases (modify-phases %standard-phases
24010 (lambda* (#:key tests? #:allow-other-keys)
24012 (invoke "nosetests" "-s" "test"))
24015 `(("python-nose" ,python-nose)))
24017 `(("python-gssapi" ,python-gssapi)
24018 ("python-pyasn1" ,python-pyasn1)))
24019 (synopsis "Python LDAP client")
24021 "LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
24023 (license license:lgpl3+)))
24025 (define-public python-boltons
24027 (name "python-boltons")
24032 (uri (pypi-uri "boltons" version))
24035 "0lrr40qqj3ch8xarvyzbnbjs79pz5aywklllq53l347h1b8xnkg4"))))
24036 (build-system python-build-system)
24037 (home-page "https://github.com/mahmoud/boltons")
24038 (synopsis "Extensions to the Python standard library")
24040 "Boltons is a set of over 230 pure-Python utilities in the same spirit
24041 as — and yet conspicuously missing from — the standard library, including:
24044 @item Atomic file saving, bolted on with fileutils
24045 @item A highly-optimized OrderedMultiDict, in dictutils
24046 @item Two types of PriorityQueue, in queueutils
24047 @item Chunked and windowed iteration, in iterutils
24048 @item Recursive data structure iteration and merging, with iterutils.remap
24049 @item Exponential backoff functionality, including jitter, through
24051 @item A full-featured TracebackInfo type, for representing stack traces, in
24054 (license license:bsd-3)))
24056 (define-public python-eliot
24058 (name "python-eliot")
24063 (uri (pypi-uri "eliot" version))
24065 (base32 "0wabv7hk63l12881f4zw02mmj06583qsx2im0yywdjlj8f56vqdn"))))
24066 (build-system python-build-system)
24069 (modify-phases %standard-phases
24070 (add-after 'unpack 'remove-journald-support
24072 (for-each delete-file
24073 '("eliot/tests/test_journald.py"
24074 "eliot/journald.py"))
24076 (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
24077 ;; remove command-line tool's tests. TODO eliot-prettyprint should
24078 ;; be installed and these tests should pass.
24080 (delete-file "eliot/tests/test_prettyprint.py")
24083 `(("python-boltons" ,python-boltons)
24084 ("python-pyrsistent" ,python-pyrsistent)
24085 ("python-six" ,python-six)
24086 ("python-zope-interface" ,python-zope-interface)))
24088 `(("python-black" ,python-black)
24089 ("python-coverage" ,python-coverage)
24090 ("python-dask" ,python-dask)
24091 ("python-flake8" ,python-flake8)
24092 ("python-hypothesis" ,python-hypothesis)
24093 ("python-pytest" ,python-pytest)
24094 ("python-setuptools" ,python-setuptools)
24095 ("python-sphinx" ,python-sphinx)
24096 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
24097 ("python-testtools" ,python-testtools)
24098 ("python-twine" ,python-twine)
24099 ("python-twisted" ,python-twisted)))
24100 (home-page "https://github.com/itamarst/eliot/")
24101 (synopsis "Eliot: the logging system that tells you why it happened")
24103 "@dfn{eliot} is a Python logging system that outputs causal chains of
24104 actions: actions can spawn other actions, and eventually they either succeed
24105 or fail. The resulting logs tell you the story of what your software did: what
24106 happened, and what caused it.")
24107 (license license:asl2.0)))
24109 (define-public python-pem
24111 (name "python-pem")
24116 (uri (pypi-uri "pem" version))
24119 "1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7"))))
24120 (build-system python-build-system)
24122 `(("python-certifi" ,python-certifi)
24123 ("python-coverage" ,python-coverage)
24124 ("python-pretend" ,python-pretend)
24125 ("python-pyopenssl" ,python-pyopenssl)
24126 ("python-pytest" ,python-pytest)
24127 ("python-sphinx" ,python-sphinx)
24128 ("python-twisted" ,python-twisted)))
24129 (home-page "https://pem.readthedocs.io/")
24130 (synopsis "Easy PEM file parsing in Python")
24132 "This package provides a Python module for parsing and splitting PEM files.")
24133 (license license:expat)))
24135 (define-public python-txsni
24136 ;; We need a few commits on top of 0.1.9 for compatibility with newer
24137 ;; Python and OpenSSL.
24138 (let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
24141 (name "python-txsni")
24142 (version (git-version "0.1.9" revision commit))
24143 (home-page "https://github.com/glyph/txsni")
24147 (uri (git-reference (url home-page) (commit commit)))
24148 (file-name (git-file-name name version))
24151 "0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
24152 (build-system python-build-system)
24154 `(("python-pyopenssl" ,python-pyopenssl)
24155 ("python-service-identity" ,python-service-identity)
24156 ("python-twisted" ,python-twisted)))
24157 (synopsis "Run TLS servers with Twisted")
24159 "This package provides an easy-to-use SNI endpoint for use
24160 with the Twisted web framework.")
24161 (license license:expat))))
24163 (define-public python-txacme
24165 (name "python-txacme")
24170 (uri (pypi-uri "txacme" version))
24172 (base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
24173 (build-system python-build-system)
24175 `(("python-acme" ,python-acme)
24176 ("python-attrs" ,python-attrs)
24177 ("python-eliot" ,python-eliot)
24178 ("python-josepy" ,python-josepy)
24179 ("python-pem" ,python-pem)
24180 ("python-treq" ,python-treq)
24181 ("python-twisted" ,python-twisted)
24182 ("python-txsni" ,python-txsni)))
24184 `(("python-fixtures" ,python-fixtures)
24185 ("python-hypothesis" ,python-hypothesis)
24186 ("python-mock" ,python-mock)
24187 ("python-service-identity"
24188 ,python-service-identity)
24189 ("python-testrepository" ,python-testrepository)
24190 ("python-testscenarios" ,python-testscenarios)
24191 ("python-testtools" ,python-testtools)))
24192 (home-page "https://github.com/twisted/txacme")
24193 (synopsis "Twisted implexmentation of the ACME protocol")
24195 "ACME is Automatic Certificate Management Environment, a protocol that
24196 allows clients and certificate authorities to automate verification and
24197 certificate issuance. The ACME protocol is used by the free Let's Encrypt
24198 Certificate Authority.
24200 txacme is an implementation of the protocol for Twisted, the event-driven
24201 networking engine for Python.")
24202 (license license:expat)))
24204 (define-public python-pysaml2
24206 (name "python-pysaml2")
24211 (uri (pypi-uri "pysaml2" version))
24214 "1xk2x0slz1f8cqv7vn77qx99xfd1mshhswiwrljk9m72w2m9iivd"))))
24215 (build-system python-build-system)
24217 `(("python-cryptography" ,python-cryptography)
24218 ("python-dateutil" ,python-dateutil)
24219 ("python-defusedxml" ,python-defusedxml)
24220 ("python-importlib-resources"
24221 ,python-importlib-resources)
24222 ("python-pyopenssl" ,python-pyopenssl)
24223 ("python-pytz" ,python-pytz)
24224 ("python-requests" ,python-requests)
24225 ("python-six" ,python-six)
24226 ("python-xmlschema" ,python-xmlschema)))
24227 (home-page "https://idpy.org")
24228 (synopsis "Python implementation of SAML Version 2 Standard")
24230 "PySAML2 is a pure python implementation of SAML Version 2 Standard.
24231 It contains all necessary pieces for building a SAML2 service provider or
24232 an identity provider. The distribution contains examples of both.
24234 This package was originally written to work in a WSGI environment, but
24235 there are extensions that allow you to use it with other frameworks.")
24236 (license license:asl2.0)))
24238 (define-public python-click-plugins
24240 (name "python-click-plugins")
24245 (uri (pypi-uri "click-plugins" version))
24247 (base32 "0jr6bxj67vg988vkm6nz8jj98v9lg46bn49lkhak3n598jbrkas6"))))
24248 (build-system python-build-system)
24250 `(("python-pytest" ,python-pytest)))
24252 `(("python-click" ,python-click)))
24253 (synopsis "Extension for Click to register external CLI commands")
24254 (description "This package provides n extension module for Click to
24255 register external CLI commands via setuptools entry-points.")
24256 (home-page "https://github.com/click-contrib/click-plugins")
24257 (license license:bsd-3)))
24259 (define-public python-diceware
24261 (name "python-diceware")
24266 (uri (pypi-uri "diceware" version))
24269 "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby"))))
24270 (build-system python-build-system)
24272 `(("python-coverage" ,python-coverage)
24273 ("python-pytest" ,python-pytest)
24274 ("python-pytest-runner" ,python-pytest-runner)))
24275 (home-page "https://github.com/ulif/diceware/")
24276 (synopsis "Generates memorable passphrases")
24277 (description "This package generates passphrases by concatenating words
24278 randomly picked from wordlists. It supports several sources of
24279 randomness (including real life dice) and different wordlists (including
24280 cryptographically signed ones).")
24281 (license license:gpl3+)))
24283 (define-public python-dictdiffer
24285 (name "python-dictdiffer")
24289 (uri (pypi-uri "dictdiffer" version))
24292 "1lk3qmy1hkaphk4n7ayfk0wl6m2yvd6r7qkam6yncqfzgkbc1phs"))))
24293 (build-system python-build-system)
24295 `(("python-check-manifest" ,python-check-manifest)
24296 ("python-coverage" ,python-coverage)
24297 ("python-isort" ,python-isort)
24298 ("python-mock" ,python-mock)
24299 ("python-pydoctstyle" ,python-pydocstyle)
24300 ("python-pytest-cache" ,python-pytest-cache)
24301 ("python-pytest-cov" ,python-pytest-cov)
24302 ("python-pytest-pep8" ,python-pytest-pep8)
24303 ("python-pytest-runner" ,python-pytest-runner)
24304 ("python-pytest" ,python-pytest)
24305 ("python-setuptools-scm" ,python-setuptools-scm)
24306 ("python-tox" ,python-tox)))
24307 (home-page "https://github.com/inveniosoftware/dictdiffer")
24308 (synopsis "Diff and patch Python dictionary objects")
24310 "Dictdiffer is a Python module that helps you to diff and patch
24312 (license license:expat)))
24314 (define-public pyzo
24321 (uri (pypi-uri "pyzo" version))
24323 (base32 "1jk5f79lj09vnsdk9h01w21p9h49z2hhf8xhkx8471pjbg9vrlzr"))))
24324 (build-system python-build-system)
24327 (modify-phases %standard-phases
24328 (add-before 'check 'fix-home-directory
24330 ;; Tests fail with "Permission denied: '/homeless-shelter'".
24331 (setenv "HOME" "/tmp")
24333 ;; Tests fail with "Uncaught Python exception: python: undefined
24334 ;; symbol: objc_getClass".
24337 `(("python-pyqt" ,python-pyqt)))
24338 (home-page "https://pyzo.org")
24340 "Python IDE for scientific computing")
24342 "Pyzo is a Python IDE focused on interactivity and introspection,
24343 which makes it very suitable for scientific computing. Its practical
24344 design is aimed at simplicity and efficiency.
24346 It consists of two main components, the editor and the shell, and uses
24347 a set of pluggable tools to help the programmer in various ways. Some
24348 example tools are source structure, project manager, interactive help,
24350 (license license:bsd-2)))
24352 (define-public python-osc
24354 (name "python-osc")
24359 (uri (pypi-uri "python-osc" version))
24362 "0cnh0z5lnng7fh48nmfaqqn8j25k13gkd4rhxd3m6sjqiix9s3vn"))))
24363 (build-system python-build-system)
24364 (home-page "https://github.com/attwad/python-osc")
24365 (synopsis "Open Sound Control server and client implementations")
24367 "@code{python-osc} is a pure Python library with no external
24368 dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
24369 Open Sound Control 1.0} specification.")
24370 (license license:unlicense)))
24372 (define-public python-voluptuous
24374 (name "python-voluptuous")
24379 (uri (pypi-uri "voluptuous" version))
24382 "0mplkcpb5d8wjf8vk195fys4y6a3wbibiyf708imw33lphfk9g1a"))))
24383 (build-system python-build-system)
24385 `(("python-nose" ,python-nose)))
24386 (home-page "https://github.com/alecthomas/voluptuous")
24387 (synopsis "Python data validation library")
24389 "Voluptuous is a Python data validation library. It is primarily
24390 intended for validating data coming into Python as JSON, YAML, etc.")
24391 (license license:bsd-3)))
24393 (define-public python-cmd2
24395 (name "python-cmd2")
24400 (uri (pypi-uri "cmd2" version))
24403 "1f18plbc9yyvhn0js3d2bii9yld8zfl775gxsaw9jza5pmlg9ss2"))))
24404 (build-system python-build-system)
24406 `(("python-attrs" ,python-attrs)
24407 ("python-colorama" ,python-colorama)
24408 ("python-pyperclip" ,python-pyperclip)
24409 ("python-wcwidth" ,python-wcwidth)))
24411 `(("python-codecov" ,python-codecov)
24412 ("python-coverage" ,python-coverage)
24413 ("python-doc8" ,python-doc8)
24414 ("python-flake8" ,python-flake8)
24415 ("python-invoke" ,python-invoke)
24416 ("python-mock" ,python-mock)
24417 ("python-pytest" ,python-pytest)
24418 ("python-pytest-cov" ,python-pytest-cov)
24419 ("python-pytest-mock" ,python-pytest-mock)
24420 ("python-setuptools-scm" ,python-setuptools-scm)
24421 ("python-sphinx" ,python-sphinx)
24422 ("python-sphinx-autobuild" ,python-sphinx-autobuild)
24423 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
24424 ("python-tox" ,python-tox)
24425 ("python-twine" ,python-twine)
24427 (home-page "https://github.com/python-cmd2/cmd2")
24428 (synopsis "Tool for building interactive command line applications")
24430 "Cmd2 is a tool for building interactive command line applications in
24431 Python. Its goal is to make it quick and easy for developers to build
24432 feature-rich and user-friendly interactive command line applications. It
24433 provides a simple API which is an extension of Python's built-in @code{cmd}
24434 module. @code{cmd2} provides a wealth of features on top of @code{cmd} to
24435 make your life easier and eliminates much of the boilerplate code which would
24436 be necessary when using @code{cmd}.")
24437 (license license:expat)))
24439 (define-public python-pytidylib
24441 (name "python-pytidylib")
24445 (uri (pypi-uri "pytidylib" version))
24448 "1wqa9dv5d7swka14rnky862hc7dgk2g3dhlrz57hdn3hb7bwic92"))))
24449 (build-system python-build-system)
24452 (modify-phases %standard-phases
24453 (add-before 'build 'qualify-libtidy
24454 (lambda* (#:key inputs #:allow-other-keys)
24455 (let ((libtidy (string-append (assoc-ref inputs "tidy")
24456 "/lib/libtidy.so")))
24457 (substitute* "tidylib/tidy.py"
24458 (("ctypes\\.util\\.find_library\\('tidy'\\)")
24459 (format #f "'~a'" libtidy)))
24461 (inputs `(("tidy" ,tidy)))
24462 (home-page "https://github.com/countergram/pytidylib")
24463 (synopsis "Python wrapper for HTML Tidy library")
24465 "PyTidyLib is a Python package that wraps the HTML Tidy library. This
24466 allows you, from Python code, to “fix” invalid (X)HTML markup.")
24467 (license license:expat)))
24469 (define-public python2-pytidylib
24470 (package-with-python2 python-pytidylib))
24472 (define-public python-mujson
24474 (name "python-mujson")
24479 (uri (pypi-uri "mujson" version))
24482 "0wbj6r8yzsdx2b0kbldlkznr1a9nn33za2q9x3g0hbg420dwzn97"))))
24483 (build-system python-build-system)
24484 (home-page "https://github.com/mattgiles/mujson")
24485 (synopsis "Use the fastest JSON functions available at import time")
24486 (description "This package selects the fastest JSON functions available
24488 (license license:expat)))
24490 (define-public python-bashlex
24492 (name "python-bashlex")
24497 (uri (pypi-uri "bashlex" version))
24500 "1z9g96fgsfpdwawp4sb5x6hbdhmda7kgmcrqlf9xx4bs1f8f14js"))))
24501 (build-system python-build-system)
24504 (modify-phases %standard-phases
24505 (add-before 'build 'pregenerate-yacc-tables
24507 ;; parser.py caches tables, which attempts to write to site lib
24508 ;; see https://github.com/idank/bashlex/issues/51
24509 (invoke "python" "-c" "import bashlex"))))))
24511 "https://github.com/idank/bashlex")
24512 (synopsis "Python parser for bash")
24513 (description "@code{bashlex} is a Python port of the parser used
24514 internally by GNU bash.
24516 For the most part it's transliterated from C, the major differences are:
24519 @item it does not execute anything
24520 @item it is reentrant
24521 @item it generates a complete AST
24524 (license license:gpl3+)))
24526 (define-public python-jinxed
24528 (name "python-jinxed")
24533 (uri (pypi-uri "jinxed" version))
24536 "1n7vl03rhjd0xhjgbjlh8x9f8yfbhamcwkgvs4jg7g5qj8f0wk89"))))
24537 (build-system python-build-system)
24540 (modify-phases %standard-phases
24541 (add-before 'check 'set-environment-variables
24542 (lambda* (#:key inputs #:allow-other-keys)
24543 (let ((ncurses (assoc-ref inputs "ncurses")))
24544 (setenv "TERM" "LINUX")
24545 (setenv "TERMINFO" (string-append ncurses "/share/terminfo"))
24547 #:tests? #f)) ; _curses.error: setupterm: could not find terminal
24549 `(("ncurses" ,ncurses)))
24550 (home-page "https://github.com/Rockhopper-Technologies/jinxed")
24551 (synopsis "Jinxed Terminal Library")
24553 "Jinxed is an implementation of a subset of the Python curses library.")
24554 (license license:mpl2.0)))
24556 (define-public python-blessed
24558 (name "python-blessed")
24563 (uri (pypi-uri "blessed" version))
24566 "1wdj342sk22hfrg0n91x2qnqsbzbiyq9y009v3pxnvfzn9bx0wbn"))
24567 (modules '((guix build utils)))
24570 ;; Don't get hung up on Windows test failures.
24571 (delete-file "blessed/win_terminal.py") #t))))
24572 (build-system python-build-system)
24574 `(("python-jinxed" ,python-jinxed)
24575 ("python-six" ,python-six)
24576 ("python-wcwidth" ,python-wcwidth)))
24578 `(("python-mock" ,python-mock)
24579 ("python-pytest" ,python-pytest)))
24580 (home-page "https://github.com/jquast/blessed")
24581 (synopsis "Wrapper around terminal capabilities")
24583 "Blessed is a thin, practical wrapper around terminal styling, screen
24584 positioning, and keyboard input.")
24585 (license license:expat)))
24587 (define-public python-readme-renderer
24589 (name "python-readme-renderer")
24594 (uri (pypi-uri "readme_renderer" version))
24597 "13fnrv7z3y0yfafzcjbl55cqxncvbxadr72ql4l29pgyvrqxpsfb"))))
24598 (build-system python-build-system)
24600 `(("python-bleach" ,python-bleach)
24601 ("python-docutils" ,python-docutils)
24602 ("python-pygments" ,python-pygments)
24603 ("python-six" ,python-six)))
24605 `(("python-mock" ,python-mock)
24606 ("python-pytest" ,python-pytest)))
24607 (home-page "https://github.com/pypa/readme_renderer")
24608 (synopsis "Render README files in Warehouse")
24610 "Readme Renderer is a library that will safely render arbitrary README
24611 files into HTML. It is designed to be used in Warehouse to render the
24612 @code{long_description} for packages. It can handle Markdown, reStructuredText,
24614 (license license:asl2.0)))
24616 (define-public python-lazr-delegates
24618 (name "python-lazr-delegates")
24623 (uri (pypi-uri "lazr.delegates" version))
24626 "1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx"))))
24627 (build-system python-build-system)
24630 (modify-phases %standard-phases
24633 (invoke "python" "setup.py" "nosetests"))))))
24635 `(("python-nose" ,python-nose)))
24637 `(("python-zope-interface" ,python-zope-interface)))
24638 (home-page "https://launchpad.net/lazr.delegates")
24639 (synopsis "Easily write objects that delegate behavior")
24641 "The @code{lazr.delegates} package makes it easy to write objects that
24642 delegate behavior to another object. The new object adds some property or
24643 behavior on to the other object, while still providing the underlying interface,
24644 and delegating behavior.")
24645 (license license:lgpl3)))
24647 (define-public python-lazr-config
24649 (name "python-lazr-config")
24654 (uri (pypi-uri "lazr.config" version))
24657 "11xpddgyhyj7sf27wbmrq5lnqk21wnprx3ajycgwlxjamh6sgffd"))))
24658 (build-system python-build-system)
24661 (modify-phases %standard-phases
24664 (invoke "python" "-s" "-m" "nose" "-P" "lazr"))))))
24666 `(("python-nose" ,python-nose)))
24668 `(("python-lazr-delegates" ,python-lazr-delegates)
24669 ("python-zope-interface" ,python-zope-interface)))
24670 (home-page "https://launchpad.net/lazr.config")
24671 (synopsis "Create configuration schemas and process and validate configurations")
24673 "The LAZR config system is typically used to manage process configuration.
24674 Process configuration is for saying how things change when we run systems on
24675 different machines, or under different circumstances. This system uses ini-like
24676 file format of section, keys, and values. The config file supports inheritance
24677 to minimize duplication of information across files. The format supports schema
24679 (license license:lgpl3)))
24681 (define-public python-flufl-bounce
24683 (name "python-flufl-bounce")
24688 (uri (pypi-uri "flufl.bounce" version))
24691 "01lg1b0jpf8605mzaz9miq3nray6s7a7gc8n4wzg5nsxl8fglcp4"))))
24692 (build-system python-build-system)
24694 `(("python-atpublic" ,python-atpublic)
24695 ("python-zope-interface" ,python-zope-interface)))
24697 `(("python-nose2" ,python-nose2)))
24698 (home-page "https://fluflbounce.readthedocs.io/en/latest/")
24699 (synopsis "Email bounce detectors")
24700 (description "The @code{flufl.bounce} library provides a set of heuristics
24701 and an API for detecting the original bouncing email addresses from a bounce
24702 message. Many formats found in the wild are supported, as are VERP and
24704 (license (list license:asl2.0
24705 license:lgpl3)))) ; only for setup_headers.py
24707 (define-public python-flufl-i18n
24709 (name "python-flufl-i18n")
24714 (uri (pypi-uri "flufl.i18n" version))
24717 "1flwpn1xhgc957zj3zxw92dhdjh0lsy0hdvzq32dzqpsajfsvq1r"))))
24718 (build-system python-build-system)
24720 `(("python-atpublic" ,python-atpublic)))
24721 (home-page "https://flufli18n.readthedocs.io")
24722 (synopsis "API for Python internationalization")
24724 "This package provides a high-level, convenient API for managing
24725 internationalization/translation contexts in Python applications. There is a
24726 simple API for single-context applications, such as command line scripts which
24727 only need to translate into one language during the entire course of their
24728 execution. There is a more flexible, but still convenient API for multi-context
24729 applications, such as servers, which may need to switch language contexts for
24731 (license license:asl2.0)))
24733 (define-public python-flufl-lock
24735 (name "python-flufl-lock")
24740 (uri (pypi-uri "flufl.lock" version))
24743 "055941zyma3wfx25jhm8wcsghpv3jc3iwi1gdrdjhzcnfhn62lxq"))))
24744 (build-system python-build-system)
24746 `(("python-atpublic" ,python-atpublic)
24747 ("python-psutil" ,python-psutil)))
24748 (home-page "https://flufllock.readthedocs.io")
24749 (synopsis "NFS-safe file locking with timeouts for POSIX systems")
24751 "The @dfn{flufl.lock} package provides NFS-safe file locking with
24752 timeouts for POSIX systems. It is similar to the @code{O_EXCL} option of the
24753 @code{open} system call but uses a lockfile. Lock objects support lock-breaking
24754 and have a maximum lifetime built-in.")
24755 (license (list license:asl2.0
24756 license:lgpl3)))) ; only for setup_helpers.py
24758 (define-public python-flufl-testing
24760 (name "python-flufl-testing")
24765 (uri (pypi-uri "flufl.testing" version))
24768 "1nkm95mhcfhl4x5jgs6y97ikszaxsfh07nyawsih6cxxm6l62641"))))
24769 (build-system python-build-system)
24771 `(("python-nose2" ,python-nose2)))
24772 (home-page "https://gitlab.com/warsaw/flufl.testing")
24773 (synopsis "Collection of test tool plugins")
24775 "This package contains a small collection of test tool plugins for
24776 @code{nose2} and @code{flake8}.")
24777 (license license:asl2.0)))
24779 (define-public python-devtools
24781 (name "python-devtools")
24786 (uri (git-reference
24787 (url "https://github.com/samuelcolvin/python-devtools")
24788 (commit (string-append "v" version))))
24789 (file-name (git-file-name name version))
24791 (base32 "15zczdcm90wl54c68f1qjb05nkd5bjsc9xjl3lk4frs7k7wkmrvp"))))
24792 (build-system python-build-system)
24794 `(("python-pytest" ,python-pytest)
24795 ("python-pytest-mock" ,python-pytest-mock)))
24797 `(("python-pygments" ,python-pygments)))
24799 `(#:phases (modify-phases %standard-phases
24804 (home-page "https://github.com/samuelcolvin/python-devtools")
24805 (synopsis "Debug command and development tools")
24807 "This package provides a debug print command and other development tools.
24808 It adds a simple and readable way to print stuff during development.")
24809 (license license:expat)))
24811 (define-public python-dateparser
24813 (name "python-dateparser")
24818 (uri (pypi-uri "dateparser" version))
24821 "1ypbyqxlk7n6zibk90js3ybz37xmin3kk0i35g8c51bwqpcfyxg8"))))
24822 (build-system python-build-system)
24824 `(("python-dateutil" ,python-dateutil)
24825 ("python-pytz" ,python-pytz)
24826 ("python-regex" ,python-regex)
24827 ("python-ruamel.yaml" ,python-ruamel.yaml)
24828 ("python-tzlocal" ,python-tzlocal)))
24830 `(("python-mock" ,python-mock)
24831 ("python-parameterized" ,python-parameterized)
24832 ("tzdata" ,tzdata-for-tests)))
24834 `(;; TODO: Of 23320 tests, 6 fail and 53 error.
24837 (modify-phases %standard-phases
24838 (add-before 'check 'set-check-environment
24839 (lambda* (#:key inputs #:allow-other-keys)
24840 (setenv "TZ" "UTC")
24842 (string-append (assoc-ref inputs "tzdata")
24843 "/share/zoneinfo"))
24845 (home-page "https://github.com/scrapinghub/dateparser")
24847 "Date parsing library designed to parse dates from HTML pages")
24849 "@code{python-dateparser} provides modules to easily parse localized
24850 dates in almost any string formats commonly found on web pages.")
24851 (license license:bsd-3)))
24853 (define-public python-dparse
24855 (name "python-dparse")
24860 (uri (pypi-uri "dparse" version))
24863 "0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1"))))
24864 (build-system python-build-system)
24866 `(("python-pytest" ,python-pytest)))
24868 `(("python-packaging" ,python-packaging)
24869 ("python-pyyaml" ,python-pyyaml)
24870 ("python-toml" ,python-toml)))
24871 (home-page "https://github.com/pyupio/dparse")
24872 (synopsis "Parser for Python dependency files")
24873 (description "This package provides a parser for Python dependency files.")
24874 (license license:expat)))
24876 (define-public python-dpath
24878 (name "python-dpath")
24883 (uri (pypi-uri "dpath" version))
24886 "1ymi9ssk7i0mx3mviplf4csfvzibdd6wyj4qzj6s487n9xgnp85y"))))
24887 (build-system python-build-system)
24889 `(("python-hypothesis" ,python-hypothesis)
24890 ("python-mock" ,python-mock)
24891 ("python-nose" ,python-nose)))
24894 (modify-phases %standard-phases
24896 (lambda* (#:key inputs outputs #:allow-other-keys)
24897 (add-installed-pythonpath inputs outputs)
24898 ;; This invokation is taken from tox.ini.
24899 (invoke "nosetests" "-d" "-v" "tests/"))))))
24900 (home-page "https://github.com/akesterson/dpath-python")
24901 (synopsis "File-system-like pathing and searching for dictionaries")
24903 "@code{python-dpath} is a library for accessing and searching
24904 dictionaries via /slashed/paths ala xpath.
24906 Basically it lets you glob over a dictionary as if it were a file system. It
24907 allows you to specify globs (ala the bash eglob syntax, through some advanced
24908 fnmatch.fnmatch magic) to access dictionary elements, and provides some
24909 facility for filtering those results.")
24910 (license license:expat)))
24912 (define-public python-safety
24914 (name "python-safety")
24919 (uri (pypi-uri "safety" version))
24922 "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
24923 (build-system python-build-system)
24926 (modify-phases %standard-phases
24927 (add-after 'unpack 'disable-tests
24929 (substitute* "tests/test_safety.py"
24930 ;; requires network
24931 (("def test_check_live") "def _test_check_live"))
24934 `(("python-click" ,python-click)
24935 ("python-dparse" ,python-dparse)
24936 ("python-packaging" ,python-packaging)
24937 ("python-requests" ,python-requests)))
24938 (home-page "https://github.com/pyupio/safety")
24939 (synopsis "Check installed dependencies for known vulnerabilities")
24940 (description "Safety checks installed dependencies for known vulnerabilities.
24941 By default it uses the open Python vulnerability database Safety DB.")
24942 (license license:expat)))
24944 (define-public python-pypandoc
24946 (name "python-pypandoc")
24951 (uri (pypi-uri "pypandoc" version))
24954 "1zvn9764cf7kkjkmr9gw6wc8adpk06qxr1rhxwa9pg0zmdvrk90l"))))
24955 (build-system python-build-system)
24957 `(("pandoc" ,pandoc)
24958 ("pandoc-citeproc" ,pandoc-citeproc)))
24960 `(("wheel" ,python-wheel)))
24962 `(("texlive" ,(texlive-union (list texlive-amsfonts/patched
24964 texlive-latex-hyperref
24965 texlive-latex-oberdiek
24967 texlive-xcolor)))))
24970 (modify-phases %standard-phases
24971 (add-before 'check 'disable-tests
24973 ;; Disable test requiring network access
24974 (substitute* "tests.py"
24975 (("test_basic_conversion_from_http_url")
24976 "skip_test_basic_conversion_from_http_url"))
24977 ;; Needed by texlive-union to generate fonts
24978 (setenv "HOME" "/tmp")
24980 (home-page "https://github.com/bebraw/pypandoc")
24981 (synopsis "Python wrapper for pandoc")
24982 (description "pypandoc is a thin Python wrapper around pandoc
24983 and pandoc-citeproc.")
24984 (license license:expat)))
24986 (define-public python-rnc2rng
24988 (name "python-rnc2rng")
24993 (uri (pypi-uri "rnc2rng" version))
24996 "1kmp3iwxxyzjsd47j2sprd47ihhkwhb3yydih3af5bbfq0ibh1w8"))))
24997 (build-system python-build-system)
24999 `(("python-rply" ,python-rply)))
25001 `(#:phases (modify-phases %standard-phases
25004 (invoke "python" "test.py"))))))
25005 (home-page "https://github.com/djc/rnc2rng")
25006 (synopsis "Convert RELAX NG Compact to regular syntax")
25008 "This package provides the @command{rnc2rng} command-line tool as well as
25009 a Python library to convert RELAX NG schemata in Compact syntax (rnc) to
25010 equivalent schemata in the XML-based default RELAX NG syntax.")
25011 (license license:expat)))
25013 (define-public python-telethon
25015 (name "python-telethon")
25020 (uri (git-reference
25021 (url "https://github.com/LonamiWebs/Telethon")
25022 (commit (string-append "v" version))))
25023 (file-name (git-file-name name version))
25025 (base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))))
25026 (build-system python-build-system)
25029 (modify-phases %standard-phases
25031 (lambda* (#:key tests? #:allow-other-keys)
25033 (invoke "py.test" "-v"))
25036 `(("python-rsa" ,python-rsa)
25037 ("python-pyaes" ,python-pyaes)))
25039 `(("python-pytest" ,python-pytest)
25040 ("python-pytest-asyncio" ,python-pytest-asyncio)
25041 ("python-pytest-trio" ,python-pytest-trio)))
25042 (home-page "https://docs.telethon.dev")
25043 (synopsis "Full-featured Telegram client library for Python 3")
25044 (description "This library is designed to make it easy to write Python
25045 programs that can interact with Telegram.")
25046 (license license:expat)))
25048 (define-public python-citeproc-py
25050 (name "python-citeproc-py")
25055 (uri (pypi-uri "citeproc-py" version))
25058 "00aaff50jy4j0nakdzq9258z1gzrac9baarli2ymgspj88jg5968"))))
25059 (build-system python-build-system)
25061 `(("python-lxml" ,python-lxml)
25062 ("python-rnc2rng" ,python-rnc2rng)))
25064 "https://github.com/brechtm/citeproc-py")
25065 (synopsis "Citations and bibliography formatter")
25067 "Citeproc-py is a CSL processor for Python. It aims to implement the
25068 CSL 1.0.1 specification. citeproc-py can output styled citations and
25069 bibliographies in a number of different output formats. Currently supported
25070 are plain text, reStructuredText and HTML.")
25071 (license license:bsd-2)))
25073 (define-public python-inform
25075 (name "python-inform")
25080 (uri (pypi-uri "inform" version))
25083 "0dvc5klbnbryrvspp45nmlg02g40j7xspcz7lqsm0c0dj0z29zdz"))))
25084 (build-system python-build-system)
25086 `(#:tests? #f)) ; PyPI tarball lacks tests
25088 `(("python-hypothesis" ,python-hypothesis)
25089 ("python-pytest-cov" ,python-pytest-cov)
25090 ("python-pytest-runner" ,python-pytest-runner)))
25092 `(("python-arrow" ,python-arrow)
25093 ("python-six" ,python-six)))
25094 (home-page "https://inform.readthedocs.io")
25095 (synopsis "Print & logging utilities for communicating with user")
25097 "Inform is designed to display messages from programs that are typically run from
25098 a console. It provides a collection of ‘print’ functions that allow you to simply and
25099 cleanly print different types of messages.")
25100 (license license:gpl3+)))
25102 (define-public python-nestedtext
25104 (name "python-nestedtext")
25109 (uri (pypi-uri "nestedtext" version))
25112 "0xjx863n7yd1xmkwhy48lhmqrmlzgbx3civhk386hvrzyq4sx148"))))
25113 (build-system python-build-system)
25115 `(#:tests? #f)) ; PyPI tarball lacks tests
25117 `(("python-inform" ,python-inform)))
25118 (home-page "https://nestedtext.org")
25119 (synopsis "Human readable and writable data interchange format")
25121 "NestedText is a file format for holding data that is to be entered, edited, or
25122 viewed by people. It allows data to be organized into a nested collection of
25123 dictionaries, lists, and strings. In this way it is similar to JSON and YAML, but
25124 without the complexity and risk of YAML and without the syntactic clutter of JSON.
25125 NestedText is both simple and natural. Only a small number of concepts and rules must
25126 be kept in mind when creating it. It is easily created, modified, or viewed with
25127 a text editor and easily understood and used by both programmers and non-programmers.")
25128 (license license:expat))) ; MIT license
25130 (define-public python-nest-asyncio
25132 (name "python-nest-asyncio")
25137 (uri (pypi-uri "nest_asyncio" version))
25140 "1anha29fcijminn5bh2icnx8x7nk39lna9wkc72262i12p2s3idg"))))
25141 (build-system python-build-system)
25142 (home-page "https://github.com/erdewit/nest_asyncio")
25143 (synopsis "Patch asyncio to allow nested event loops")
25145 "By design @code{asyncio} does not allow its event loop to be nested.
25146 This presents a practical problem: when in an environment where the event loop
25147 is already running it's impossible to run tasks and wait for the result. This
25148 module patches @code{asyncio} to allow nested use of @code{asyncio.run} and
25149 @code{loop.run_until_complete}.")
25150 (license license:bsd-3)))
25152 (define-public python-simpervisor
25154 (name "python-simpervisor")
25158 ;; Tests not included in release.
25160 (uri (git-reference
25161 (url "https://github.com/yuvipanda/simpervisor")
25162 (commit (string-append "v" version))))
25163 (file-name (git-file-name name version))
25165 (base32 "1brsisx7saf4ic0dih1n5y7rbdbwn1ywv9pl32bch3061r46prvv"))))
25166 (build-system python-build-system)
25168 `(#:tests? #f ; Test suite can't find aiohttp.
25170 (modify-phases %standard-phases
25172 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
25174 (add-installed-pythonpath inputs outputs)
25175 (invoke "pytest" "--maxfail" "3" "--verbose"))
25178 `(("python-aiohttp" ,python-aiohttp)
25179 ("python-pytest" ,python-pytest)
25180 ("python-pytest-asyncio" ,python-pytest-asyncio)))
25181 (home-page "https://github.com/yuvipanda/simpervisor")
25182 (synopsis "Simple async process supervisor")
25184 "This package provides a simple async process supervisor in Python.")
25185 (license license:bsd-3)))
25187 (define-public python-parallel
25189 (name "python-parallel")
25190 (version "1.6.4.4")
25194 (uri (string-append
25195 "https://www.parallelpython.com/downloads/pp/pp-"
25199 "1mzk4yabxj6r149fswhis18hd8dnag5sj8i4wb06450zq3pi8dh7"))))
25201 `(("unzip" ,unzip)))
25202 (build-system python-build-system)
25203 (arguments '(#:tests? #f)) ; No test suite.
25204 (home-page "https://www.parallelpython.com")
25205 (synopsis "Parallel and distributed programming for Python")
25206 (description "Parallel Python module (PP) provides an easy and efficient
25207 way to create parallel-enabled applications for SMP computers and clusters.
25208 PP module features cross-platform portability and dynamic load balancing.
25209 Thus applications written with PP will parallelize efficiently even on
25210 heterogeneous and multi-platform clusters (including clusters running other
25211 applications with variable CPU loads).")
25212 (license license:bsd-3)))
25214 (define-public python2-parallel
25215 (package-with-python2 python-parallel))
25217 (define-public python-djvulibre
25219 (name "python-djvulibre")
25224 (uri (pypi-uri "python-djvulibre" version))
25226 (base32 "089smpq29ll0z37lnq26r2f72d31i33xm9fw9pc6hlcsm6nbjbiv"))))
25227 (build-system python-build-system)
25229 `(("ghostscript" ,ghostscript)
25230 ("pkg-config" ,pkg-config)
25231 ("python-nose" ,python-nose)))
25233 `(("djvulibre" ,djvulibre)
25234 ("python-cython" ,python-cython)))
25237 (modify-phases %standard-phases
25238 (add-after 'unpack 'fix-tests
25240 ;; Unit tests try to load the 'dllpath.py' and fail, because it
25241 ;; doesn't make sense on GNU/Linux.
25242 (delete-file "djvu/dllpath.py")
25244 (synopsis "Python bindings for DjVuLibre")
25245 (description "This is a set of Python bindings for the DjVuLibre library.")
25246 (home-page "https://jwilk.net/software/python-djvulibre")
25247 (license license:gpl2)))
25249 (define-public python2-djvulibre
25250 (package-with-python2 python-djvulibre))
25252 (define-public python-versioneer
25254 (name "python-versioneer")
25259 (uri (pypi-uri "versioneer" version))
25262 "1bmg8y78am371rd9b4clf11b8g1h7xvq8q58z03jvgdwpsdx7zm4"))))
25263 (build-system python-build-system)
25265 "https://github.com/python-versioneer/python-versioneer")
25267 "Version-string management for VCS-controlled trees")
25269 "@code{versioneer} is a tool for managing a recorded version number in
25270 distutils-based python projects. The goal is to remove the tedious and
25271 error-prone \"update the embedded version string\" step from your release
25273 (license license:public-domain)))
25275 (define-public python2-gamera
25277 (name "python2-gamera")
25282 (uri (string-append "https://gamera.informatik.hsnr.de/download/"
25283 "gamera-" version ".tar.gz"))
25285 (base32 "1g4y1kxk1hmxfsiz682hbxvwryqilnb21ci509m559yp7hcliiyy"))
25286 (modules '((guix build utils)))
25289 ;; Remove bundled libraries.
25290 (for-each delete-file-recursively
25291 '("src/libpng-1.2.5"
25293 "src/zlib-1.2.8"))))))
25294 (build-system python-build-system)
25296 `(("libpng" ,libpng)
25297 ("libtiff" ,libtiff)
25298 ("python2-wxpython" ,python2-wxpython)
25301 `(#:python ,python-2))
25302 (synopsis "Framework for building document analysis applications")
25304 "Gamera is a toolkit for building document image recognition systems.")
25305 (home-page "https://gamera.informatik.hsnr.de/")
25306 (license license:gpl2+)))
25308 (define-public python-contextvars
25310 (name "python-contextvars")
25315 (uri (pypi-uri "contextvars" version))
25318 "17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
25319 (build-system python-build-system)
25321 `(("python-immutables" ,python-immutables)))
25323 "https://github.com/MagicStack/contextvars")
25324 (synopsis "PEP 567 Backport")
25325 (description "This package implements a backport of Python 3.7
25326 @code{contextvars} module (see PEP 567) for Python 3.6.")
25327 (license license:asl2.0)))
25329 (define-public python-aiofiles
25331 (name "python-aiofiles")
25336 (uri (pypi-uri "aiofiles" version))
25339 "14m01kjxm2j7zyljjj6xlhlgygcsriymbx730gc5jp9xglaina70"))))
25340 (build-system python-build-system)
25341 (home-page "https://github.com/Tinche/aiofiles")
25342 (synopsis "File support for @code{asyncio}")
25343 (description "@code{python-aiofiles} is a library for handling local
25344 disk files in asyncio applications.")
25345 (license license:asl2.0)))
25347 (define-public python-pyre-extensions
25349 (name "python-pyre-extensions")
25354 (uri (pypi-uri "pyre-extensions" version))
25357 "0c5cbbqrfyjwakdh3kbwxis6mbrbwky1z1fqslgszgpcj4g43q30"))))
25358 (build-system python-build-system)
25360 `(("python-typing-extensions"
25361 ,python-typing-extensions)
25362 ("python-typing-inspect" ,python-typing-inspect)))
25363 (home-page "https://pyre-check.org")
25365 "Type system extensions for use with @code{python-pyre}")
25367 "@code{python-pyre-extensions} defines extensions to the standard
25368 @code{typing} module that are supported by the Pyre typechecker.")
25369 (license license:expat)))
25371 (define-public python-dataclasses
25373 (name "python-dataclasses")
25378 (uri (pypi-uri "dataclasses" version))
25381 "15sc12nrc7gxwb30vfa6frzdnpmbap9ibi1fr1yrbkra6izhcyc4"))))
25382 (build-system python-build-system)
25384 "https://github.com/ericvsmith/dataclasses")
25386 "Backport of the @code{dataclasses} module for Python 3.6")
25388 "This is an implementation of PEP 557, Data Classes. It is a
25389 backport of the @code{dataclasses} module for Python 3.6.")
25390 (license license:asl2.0)))
25392 (define-public python-pywatchman
25394 (name "python-pywatchman")
25399 (uri (pypi-uri "pywatchman" version))
25402 "1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h"))))
25403 (build-system python-build-system)
25405 `(#:tests? #f)) ;there are none
25407 "https://facebook.github.io/watchman/")
25408 (synopsis "Watchman client for python")
25409 (description "@code{python-pywatchman} is a library to connect and
25410 query Watchman to discover file changes.")
25411 (license license:bsd-3)))
25413 (define-public python-helpdev
25415 (name "python-helpdev")
25420 (uri (pypi-uri "helpdev" version))
25423 "0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
25424 (build-system python-build-system)
25427 (modify-phases %standard-phases
25429 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
25431 (add-installed-pythonpath inputs outputs)
25432 (invoke "pytest" "tests"))
25435 `(("python-importlib-metadata" ,python-importlib-metadata)))
25437 `(("python-pytest" ,python-pytest)))
25438 (home-page "https://gitlab.com/dpizetta/helpdev")
25440 "Extract information about the Python environment easily")
25442 "Helpdev is a library to easily extract information about the Python
25444 (license license:expat)))
25446 (define-public python-logutils
25448 (name "python-logutils")
25453 (uri (pypi-uri "logutils" version))
25456 "10lsi5wv5ysnvf9ya4ncbix6mmipnv5067sf2cglc2f2sljql1dw"))))
25457 (build-system python-build-system)
25458 (home-page "https://bitbucket.org/vinay.sajip/logutils/")
25459 (synopsis "Logging utilities")
25460 (description "This package provides a set of handlers for the Python
25461 standard library logging package. Some of these handlers are out-of-scope
25462 for the standard library, and so they are packaged here. Others are updated
25463 versions which have appeared in recent Python releases, but are usable with
25464 older versions of Python and so are packaged here.")
25465 (license license:bsd-3)))
25467 (define-public python-helper
25469 (name "python-helper")
25473 (uri (pypi-uri "helper" version))
25476 "1d2j64wgbggzv5rhvil10zndp2w78wa5np5w0psj122ws9qr9wsa"))))
25477 (build-system python-build-system)
25479 `(("python-mock" ,python-mock)))
25481 `(("python-logutils" ,python-logutils)
25482 ("python-pyyaml" ,python-pyyaml)))
25483 (home-page "https://github.com/gmr/helper")
25484 (synopsis "Library for writing configurable applications and daemons")
25486 "This package provides procedures for quickly writing configurable
25487 applications and daemons.")
25488 (license license:bsd-3)))
25490 (define-public python-qtsass
25492 (name "python-qtsass")
25496 ;; There are no tests in the PyPI tarball.
25498 (uri (git-reference
25499 (url "https://github.com/spyder-ide/qtsass/")
25500 (commit (string-append "v" version))))
25501 (file-name (git-file-name name version))
25503 (base32 "09s04aa14d8jqbh71clrb5y7vcmkxlp94mwmvzrkxahry3bk03cb"))))
25504 (build-system python-build-system)
25506 `(#:test-target "pytest"
25508 (modify-phases %standard-phases
25509 ;; Tests need to read and write files.
25510 (add-before 'check 'make-git-checkout-writable
25512 (for-each make-file-writable (find-files "."))
25515 `(("python-pytest" ,python-pytest)
25516 ("python-pytest-cov" ,python-pytest-cov)
25517 ("python-pytest-runner" ,python-pytest-runner)))
25519 `(("python-libsass" ,python-libsass)))
25520 (home-page "https://github.com/spyder-ide/qtsass")
25521 (synopsis "Compile SCSS files to valid Qt stylesheets")
25523 "Besides being used in web development, CSS is also the way to stylize
25524 Qt-based desktop applications. However, Qt's CSS has a few variations that
25525 prevent the direct use of SASS compiler.
25527 The purpose of this tool is to fill the gap between SASS and Qt-CSS by
25528 handling those variations.")
25529 (license license:expat)))
25531 (define-public python-qdarkstyle
25533 (name "python-qdarkstyle")
25538 (uri (pypi-uri "QDarkStyle" version))
25541 "0883vzg35fzpyl1aiijzpfcdfvpq5vi325w0m7xkx7nxplh02fym"))))
25542 (build-system python-build-system)
25544 `(;; Fails unable to detect valid Qt bindings even when
25545 ;; added as native-inputs.
25548 `(("python-helpdev" ,python-helpdev)
25549 ("python-qtpy" ,python-qtpy)))
25551 "https://github.com/ColinDuquesnoy/QDarkStyleSheet")
25553 "Complete dark stylesheet for Python and Qt applications")
25554 (description "QDarkStyle is the most complete dark stylesheet for Python and
25556 (license license:expat)))
25558 (define-public python-bitstring
25560 (name "python-bitstring")
25565 (uri (pypi-uri "bitstring" version))
25568 "0jl6192dwrlm5ybkbh7ywmyaymrc3cmz9y07nm7qdli9n9rfpwzx"))))
25569 (build-system python-build-system)
25572 (modify-phases %standard-phases
25574 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
25576 (add-installed-pythonpath inputs outputs)
25577 (with-directory-excursion "test"
25578 (invoke "pytest")))
25581 `(("python-pytest" ,python-pytest)))
25582 (home-page "https://github.com/scott-griffiths/bitstring")
25584 "Simple construction, analysis and modification of binary data")
25586 "Bitstring is a library for simple construction, analysis and modification
25588 (license license:expat)))
25590 (define-public python-confuse
25592 (name "python-confuse")
25597 (uri (pypi-uri "confuse" version))
25600 "0r74djc8r6lfx6ldsqnhpvfsn256gsfzbl33qcm77hp2qr8h9z4j"))))
25601 (build-system python-build-system)
25603 `(("python-pathlib" ,python-pathlib)
25604 ("python-pyyaml" ,python-pyyaml)))
25605 (home-page "https://github.com/beetbox/confuse")
25606 (synopsis "Painless YAML configuration.")
25607 (description "Confuse is a configuration library for Python that uses
25608 YAML. It takes care of defaults, overrides, type checking, command-line
25609 integration, human-readable errors, and standard OS-specific locations.")
25610 (license license:expat)))
25612 (define-public python-reflink
25614 (name "python-reflink")
25619 (uri (pypi-uri "reflink" version))
25622 "0fkf3sd958g9hvr3jwlhnhqqzrwxljrc3grsf3yknh94vf13a9f9"))))
25623 (build-system python-build-system)
25625 `(#:tests? #false)) ; almost all tests want to run mkfs.btrfs
25627 `(("python-cffi" ,python-cffi)))
25629 `(("python-pytest" ,python-pytest)
25630 ("python-pytest-runner" ,python-pytest-runner)))
25631 (home-page "https://gitlab.com/rubdos/pyreflink")
25632 (synopsis "Python wrapper around reflink system call")
25634 "Python reflink wraps around platform specific @code{reflink}
25636 (license license:expat)))
25638 (define-public python-pivy
25640 (name "python-pivy")
25645 (uri (git-reference
25646 (url "https://github.com/coin3d/pivy")
25648 (file-name (git-file-name name version))
25650 (base32 "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx"))))
25651 (build-system python-build-system)
25653 `(;; The test suite fails due to an import cycle between 'pivy' and '_coin'
25656 (modify-phases %standard-phases
25657 (add-after 'unpack 'patch-cmake-include-dirs
25659 ;; Patch buildsystem to respect Coin3D include directory
25660 (substitute* "CMakeLists.txt"
25661 (("\\$\\{SoQt_INCLUDE_DIRS}")
25662 "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}"))
25668 `(("python-wrapper" ,python-wrapper)
25669 ("qtbase" ,qtbase-5)
25674 ("coin3D" ,coin3D-4)))
25675 (home-page "https://github.com/coin3d/pivy")
25676 (synopsis "Python bindings to Coin3D")
25678 "Pivy provides python bindings for Coin, a 3D graphics library with an
25679 Application Programming Interface based on the Open Inventor 2.1 API.")
25680 (license license:isc)))
25682 (define-public python-crayons
25684 (name "python-crayons")
25689 (uri (pypi-uri "crayons" version))
25692 "0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx"))))
25693 (build-system python-build-system)
25695 `(("python-colorama" ,python-colorama)))
25696 (home-page "https://github.com/MasterOdin/crayons")
25697 (synopsis "TextUI colors for Python")
25698 (description "This package gives you colored strings for the terminal.
25699 Crayons automatically wraps a given string in the foreground color and
25700 restores the original state after the string is printed.")
25701 (license license:expat)))
25703 (define-public python-sane
25705 (name "python-sane")
25710 (uri (pypi-uri name version))
25713 "1pi597z94n2mkd821ln52fq0g727n2jxfskf280ip3kf7jw8w294"))))
25714 (build-system python-build-system)
25716 `(("python-pytest" ,python-pytest)))
25718 `(("sane-backends" ,sane-backends)))
25719 (home-page "https://github.com/python-pillow/Sane")
25720 (synopsis "Python interface to the SANE scanner")
25721 (description "This package provides Python interface to the SANE scanner
25722 and frame grabber interface.")
25723 (license (license:non-copyleft
25724 ;; Yet another variant of the X/MIT license.
25725 "https://github.com/python-pillow/Sane/blob/master/COPYING"))))
25727 (define-public python-screenkey
25729 (name "python-screenkey")
25734 (uri (git-reference
25735 (url "https://gitlab.com/screenkey/screenkey")
25736 (commit (string-append "v" version))))
25737 (file-name (git-file-name name version))
25740 "1rfngmkh01g5192pi04r1fm7vsz6hg9k3qd313sn9rl9xkjgp11l"))))
25741 (build-system python-build-system)
25744 (modify-phases %standard-phases
25745 (add-after 'unpack 'fix-dlopen-paths
25746 (lambda* (#:key inputs outputs #:allow-other-keys)
25747 (let* ((x11 (assoc-ref inputs "libx11"))
25748 (xtst (assoc-ref inputs "libxtst")))
25749 (substitute* "Screenkey/xlib.py"
25751 (string-append x11 "/lib/libX11.so.6")))
25752 (substitute* "Screenkey/xlib.py"
25754 (string-append xtst "/lib/libXtst.so.6")))
25756 (add-after 'install 'wrap-screenkey
25757 (lambda* (#:key outputs #:allow-other-keys)
25759 (string-append (assoc-ref outputs "out") "/bin/screenkey")
25760 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
25761 `("GI_TYPELIB_PATH"
25762 ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
25765 `(("python-distutils-extra" ,python-distutils-extra)
25766 ("python-tokenize-rt" ,python-tokenize-rt)
25768 ("libxtst" ,libxtst)
25770 ("python-pygobject" ,python-pygobject)
25771 ("python-pycairo" ,python-pycairo)
25772 ("python-setuptools-git" ,python-setuptools-git)
25773 ("python-babel" ,python-babel)))
25774 (home-page "https://www.thregr.org/~wavexx/software/screenkey/")
25776 "Screencast tool to display pressed keys")
25778 "A screencast tool to display your keys inspired by Screenflick.")
25779 (license license:gpl3+)))
25781 (define-public python-jinja2-cli
25783 (name "python-jinja2-cli")
25788 (uri (pypi-uri "jinja2-cli" version))
25791 "0vikx7v6fbvww6kfrv0k5a24jyv3ak7nindg60906pdd1m9qvkcw"))))
25792 (build-system python-build-system)
25794 `(("python-jinja2" ,python-jinja2)))
25796 `(("python-flake8" ,python-flake8)
25797 ("python-jinja2" ,python-jinja2)
25798 ("python-pytest" ,python-pytest)))
25799 (home-page "https://github.com/mattrobenolt/jinja2-cli")
25800 (synopsis "Command-line interface to Jinja2")
25802 "This package provides a command-line interface (CLI) to the Jinja2
25804 (license license:bsd-3)))
25806 (define-public python-readability
25808 (name "python-readability")
25813 (uri (pypi-uri "readability" version))
25816 "1b8gq3g2zwvx0aivvdg56cc0bn7xw6f2v6psmxdx9aiipkw0s0zr"))))
25817 (build-system python-build-system)
25819 "https://github.com/andreasvc/readability/")
25821 "Measure the readability of a given text using surface
25824 "This package provides a Python library that is an implementation of
25825 traditional readability measures based on simple surface
25826 characteristics. These measures are basically linear regressions based on the
25827 number of words, syllables, and sentences.")
25828 (license license:asl2.0)))
25830 (define-public python-listparser
25832 (name "python-listparser")
25837 (uri (pypi-uri "listparser" version))
25840 "0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b"))))
25841 (build-system python-build-system)
25843 "https://github.com/kurtmckee/listparser")
25845 "Parse subscription lists in Python")
25847 "This package provides a Python library that can parse OPML, FOAF, and
25848 iGoogle subscription lists.")
25849 (license license:expat)))
25851 (define-public python-smartypants
25853 (name "python-smartypants")
25857 ;; There's no source tarball for 2.0.1 on PyPI.
25859 (uri (git-reference
25860 (url "https://github.com/leohemsted/smartypants.py")
25861 (commit (string-append "v" version))))
25862 (file-name (git-file-name name version))
25864 (base32 "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"))))
25865 (build-system python-build-system)
25868 (modify-phases %standard-phases
25870 ;; Its `setup.py test` doesn't report failure with exit status, so
25871 ;; we use `nose` instead.
25873 (invoke "nosetests" "-v" "--exclude=^load_tests$"))))))
25876 `(("python-docutils" ,python-docutils)
25877 ("python-nose" ,python-nose)
25878 ("python-pygments" ,python-pygments)))
25879 (home-page "https://github.com/leohemsted/smartypants.py")
25880 (synopsis "Translate punctuation characters into smart quotes")
25882 "@command{smartpants} can perform the following transformations:
25884 @item Straight quotes ( \" and ' ) into \"curly\" quote HTML entities
25885 @item Backticks-style quotes (``like this'') into \"curly\" quote HTML
25887 @item Dashes (-- and ---) into en- and em-dash entities
25888 @item Three consecutive dots (... or . . .) into an ellipsis entity
25890 (license license:bsd-3)))
25892 (define-public python-typogrify
25894 (name "python-typogrify")
25898 (uri (pypi-uri "typogrify" version))
25901 "0f6b2gnnxjbx1fbmkcscc6qjr4hi78kwm1wx4b766ha3va66dr4b"))))
25902 (build-system python-build-system)
25905 (modify-phases %standard-phases
25908 (invoke "nosetests" "-v"))))))
25910 `(("python-smartypants" ,python-smartypants)))
25913 `(("python-nose" ,python-nose)))
25914 (home-page "https://github.com/mintchaos/typogrify")
25915 (synopsis "Filters to transform text into typographically-improved HTML")
25917 "@code{typogrify} provides a set of custom filters that automatically
25918 apply various transformations to plain text in order to yield
25919 typographically-improved HTML. While often used in conjunction with Jinja and
25920 Django template systems, the filters can be used in any environment.")
25921 (license license:bsd-3)))
25923 (define-public python-ld
25930 (uri (pypi-uri "ld" version))
25933 "1k4ydp5rgkv4985v459kcl06i1igjm1ywvh2vkbi9ck1zyyri1z5"))))
25934 (build-system python-build-system)
25936 `(("python-six" ,python-six)))
25937 (home-page "https://github.com/nir0s/ld")
25938 (synopsis "OS platform information API")
25940 "The ld package provides information about the GNU/Linux distribution it
25941 runs on, such as a reliable machine-readable ID, or version information.")
25942 (license license:asl2.0)))
25944 (define-public python-quicktions
25946 (name "python-quicktions")
25951 (uri (pypi-uri "quicktions" version))
25954 "1px21a6x527i1bsr2p6bbf3jziqpvd1vjkvvzh13gsy4iip0yvzn"))
25955 (modules '((guix build utils)))
25958 ;; This file is generated by Cython.
25959 (delete-file "src/quicktions.c") #t))))
25960 (build-system python-build-system)
25963 (modify-phases %standard-phases
25964 (add-before 'build 'cythonize-sources
25966 (with-directory-excursion "src"
25967 (invoke "cython" "quicktions.pyx"))))
25969 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
25971 (add-installed-pythonpath inputs outputs)
25975 `(("python-cython" ,python-cython)
25976 ("python-pytest" ,python-pytest)))
25977 (home-page "https://github.com/scoder/quicktions")
25978 (synopsis "Fast fractions data type for rational numbers")
25980 "This package provides fast fractions data type for rational numbers. It
25981 is the cythonized version of @code{fractions.Fraction}.")
25982 (license license:psfl)))
25984 (define-public python-pathvalidate
25986 (name "python-pathvalidate")
25991 (uri (pypi-uri "pathvalidate" version))
25993 (base32 "0s14ycjgb44lxr2wg8lrq3b7kybmmrbf7yqz47xrqgn2gr6dk6rw"))))
25994 (build-system python-build-system)
25997 ;; Tests disabled because of circular dependencies.
25998 ;; pathvalidate tests depend on pytest-md-report, which
25999 ;; depends on pathvalidate.
26001 `(("python-allpairspy" ,python-allpairspy)
26002 ("python-click" ,python-click)
26003 ("python-faker" ,python-faker)
26004 ("python-pytest" ,python-pytest)))
26005 (home-page "https://github.com/thombashi/pathvalidate")
26006 (synopsis "Sanitize strings representing paths")
26008 "@code{pathvalidate} is a Python library to sanitize/validate strings
26009 representing paths or filenames.")
26010 (license license:expat)))